193 lines
6.4 KiB
PHP
193 lines
6.4 KiB
PHP
<?php
|
||
/*
|
||
Template Name: Bestand
|
||
*/
|
||
|
||
get_header();
|
||
|
||
|
||
$numberofusers = $wpdb->get_results( "
|
||
SELECT post_title
|
||
FROM {$wpdb->posts}
|
||
WHERE post_type = 'post' and post_status = 'publish'
|
||
ORDER BY post_title ASC" );
|
||
//echo '<pre>'; print_r($numberofusers); echo '</pre>';
|
||
|
||
$args = array(
|
||
'cat' => $categories[0]->cat_ID,
|
||
'orderby' => 'title',
|
||
'order' => 'ASC',
|
||
);
|
||
$query = new WP_Query( $args );
|
||
$available_chars = [];
|
||
if ( $query->have_posts() ) {
|
||
while ( $query->have_posts() ) :
|
||
$query->the_post();
|
||
array_push($available_chars, substr(get_the_title(),0,1));
|
||
endwhile;
|
||
wp_reset_postdata();
|
||
};
|
||
|
||
?>
|
||
|
||
<main>
|
||
|
||
<section class="background-color-white category">
|
||
<div class="content-wrap">
|
||
<h2>
|
||
<?php $categories = get_the_category();
|
||
if ( ! empty( $categories ) ) {
|
||
echo esc_html( $categories[0]->name );
|
||
} ?>
|
||
</h2>
|
||
|
||
<p>
|
||
<strong>
|
||
Bestände | Personen | Büros | Themen
|
||
</atrong>
|
||
<br><br>
|
||
</p>
|
||
|
||
<p>
|
||
<strong>
|
||
Die Bestände des saai umfassen über 530.000 Pläne, Zeichnungen und Skizzen, 680.000 Fotos, Film- und Tondokumente, 1.100 laufende m Bauakten, 900 Modelle, 50 Möbelstücke und 400 laufende Meter Fachzeitschriften und Bücher.
|
||
</strong>
|
||
</p>
|
||
<p>
|
||
Das Archivgut besteht zu einem kleinen Teil aus themenbezogenen, in der Hauptsache jedoch aus personenbezogenen Sammlungen, von kleineren Konvoluten bis zu umfangreichen geschlossenen Werkarchiven. Diese geben Auskunft über das Schaffen von rund 250 Architekten, Ingenieuren, Bauhistorikern, Architekturfotografen, Garten- und Innenarchitekten.
|
||
</p>
|
||
<p>
|
||
Die ältesten Dokumente stammen aus der Zeit um 1700, der Schwerpunkt der Sammlung liegt jedoch im 20. Jahrhundert, insbesondere in dessen zweiter Hälfte.
|
||
<br><br>
|
||
</p>
|
||
|
||
<div class="tx-indexedsearch">
|
||
|
||
<div id="c139" class="frame frame-default frame-type-list frame-layout-0">
|
||
<div class="tx-indexedsearch">
|
||
<div class="tx-indexedsearch-searchbox">
|
||
<form method="get" role="search" action="<?php echo site_url(‘/’); ?>">
|
||
<fieldset>
|
||
<div class="tx-indexedsearch-form">
|
||
<label for="tx-indexedsearch-searchbox-sword"><?php _e('Ergebnisse filtern', 'kit'); ?>:</label>
|
||
<div>
|
||
<ul class="catFilter">
|
||
<li class='available active'><a href=#>Alle</a></li>
|
||
<?php
|
||
$chars = array("0-9", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "Ä", "Ü", "Ö", "ß");
|
||
foreach($chars as $item) {
|
||
if (in_array($item, $available_chars)) {
|
||
echo "<li class='available'><a href=#>".$item."</a></li>";
|
||
} else {
|
||
echo "<li>".$item."</li>";
|
||
};
|
||
};
|
||
?>
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
</fieldset>
|
||
</form>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="tx-indexedsearch-browsebox">
|
||
<p>
|
||
<?php
|
||
global $wp_query;
|
||
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
|
||
$post_count_start = (($paged -1) * 10) + 1;
|
||
$post_count_end = ((($paged -1) * 10) + $wp_query->post_count);
|
||
_e("Showing results from", 'kit') . _e(" <strong>" . $post_count_start . " to " . $post_count_end . "</strong>. Total results: <strong>" . $wp_query->found_posts. "</strong>");
|
||
?>
|
||
</p>
|
||
<div class="tx-indexedsearch-browsebox">
|
||
<?php the_posts_pagination( array(
|
||
'mid_size' => 2,
|
||
'prev_text' => __( '< Previous', 'kit' ),
|
||
'next_text' => __( 'Next >', 'kit' ),
|
||
'type' => 'list',
|
||
'before_page_number' => __('Page ', 'kit')
|
||
) ); ?>
|
||
</div>
|
||
</div>
|
||
|
||
</div>
|
||
|
||
<br>
|
||
|
||
<div class="container container-3-cols">
|
||
|
||
<?php
|
||
|
||
$args = array(
|
||
'cat' => $categories[0]->cat_ID,
|
||
'orderby' => 'title',
|
||
'order' => 'ASC',
|
||
);
|
||
$query = new WP_Query( $args );
|
||
|
||
if ( $query->have_posts() ) :
|
||
while ( $query->have_posts() ) :
|
||
|
||
$query->the_post();
|
||
?>
|
||
<div class="column">
|
||
<div class="teaser-box teaser-box-color-brand-secondary" id="c959">
|
||
<?php echo '<a href="' . esc_url( get_permalink() ) . '">'; ?>
|
||
<figure class="teaser-box-image">
|
||
<?php if ( has_post_thumbnail() ) { ?>
|
||
<img src="<?php echo get_the_post_thumbnail_url(); ?>">
|
||
<?php } else { ?>
|
||
<img src="<?php echo esc_url( get_option( 'kit_defaultimage' ) ); ?>">
|
||
<?php } ?>
|
||
</figure>
|
||
</a>
|
||
<?php echo '<a href="' . esc_url( get_permalink() ) . '">'; ?>
|
||
<h3>
|
||
<?php echo esc_html( get_the_title() ); ?>
|
||
</h3>
|
||
</a>
|
||
<p>
|
||
<?php echo wp_strip_all_tags( get_the_excerpt(), true ); ?>
|
||
</p>
|
||
<?php echo '<a href="' . esc_url( get_permalink() ) . '" class="teaser-box-category-marker">'; ?>
|
||
Zum Beitrag
|
||
<div class="icon"></div>
|
||
</a>
|
||
</div>
|
||
</div>
|
||
<?php
|
||
endwhile;
|
||
wp_reset_postdata();
|
||
endif;
|
||
?>
|
||
|
||
</div>
|
||
|
||
<div class="tx-indexedsearch">
|
||
<div class="tx-indexedsearch-browsebox">
|
||
<?php the_posts_pagination( array(
|
||
'mid_size' => 2,
|
||
'prev_text' => __( '< Previous', 'kit' ),
|
||
'next_text' => __( 'Next >', 'kit' ),
|
||
'type' => 'list',
|
||
'before_page_number' => __('Page ', 'kit')
|
||
) ); ?>
|
||
</div>
|
||
</div>
|
||
|
||
</div>
|
||
</section>
|
||
|
||
</main>
|
||
|
||
|
||
|
||
|
||
|
||
<?php
|
||
|
||
get_template_part('template-parts/sidebar');
|
||
get_footer();
|