archive collection page as template
This commit is contained in:
parent
240f244e2b
commit
bc2588f56b
3 changed files with 21 additions and 31 deletions
|
|
@ -5,9 +5,9 @@ Template Name: Bestand
|
||||||
|
|
||||||
get_header();
|
get_header();
|
||||||
|
|
||||||
$categories = get_the_category();
|
$category_id = get_cat_ID('Bestand');
|
||||||
$args = array(
|
$args = array(
|
||||||
'cat' => $categories[0]->cat_ID,
|
'cat' => $category_id,
|
||||||
'orderby' => 'title',
|
'orderby' => 'title',
|
||||||
'order' => 'ASC',
|
'order' => 'ASC',
|
||||||
'nopaging' => true,
|
'nopaging' => true,
|
||||||
|
|
@ -26,35 +26,13 @@ Template Name: Bestand
|
||||||
|
|
||||||
<main>
|
<main>
|
||||||
|
|
||||||
<section class="background-color-white category">
|
|
||||||
<div class="content-wrap">
|
|
||||||
<h2>
|
|
||||||
<?php
|
<?php
|
||||||
if ( ! empty( $categories ) ) {
|
the_post();
|
||||||
echo esc_html( $categories[0]->name );
|
get_template_part( 'template-parts/content', 'category' );
|
||||||
}
|
|
||||||
?>
|
?>
|
||||||
</h2>
|
|
||||||
|
|
||||||
<p>
|
<section class="background-color-white category" style="margin-top: -7rem;">
|
||||||
<strong>
|
<div class="content-wrap">
|
||||||
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 class="tx-indexedsearch">
|
||||||
|
|
||||||
|
|
@ -93,7 +71,7 @@ Template Name: Bestand
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
$args = array(
|
$args = array(
|
||||||
'cat' => $categories[0]->cat_ID,
|
'cat' => $category_id,
|
||||||
'orderby' => 'title',
|
'orderby' => 'title',
|
||||||
'order' => 'ASC',
|
'order' => 'ASC',
|
||||||
'nopaging' => true,
|
'nopaging' => true,
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,7 @@ get_header();
|
||||||
|
|
||||||
<main>
|
<main>
|
||||||
|
|
||||||
|
|
||||||
<section class="background-color-white">
|
<section class="background-color-white">
|
||||||
<div class="content-wrap">
|
<div class="content-wrap">
|
||||||
|
|
||||||
|
|
|
||||||
11
kit/template-parts/content-category.php
Normal file
11
kit/template-parts/content-category.php
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
<section class="background-color-white category">
|
||||||
|
<div class="content-wrap">
|
||||||
|
|
||||||
|
<?php the_title( '<h2>', '</h2>' ); ?>
|
||||||
|
|
||||||
|
<article>
|
||||||
|
<?php the_content(); ?>
|
||||||
|
</article>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
Loading…
Add table
Add a link
Reference in a new issue