14 lines
658 B
PHP
14 lines
658 B
PHP
<?php get_header(); ?>
|
|
<main id="inhalt" class="page-main">
|
|
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
|
|
<?php get_template_part( 'parts/page-head', null, array( 'title' => get_the_title() ) ); ?>
|
|
<article <?php post_class( 'page-wrap' ); ?>>
|
|
<div class="entry-content"><?php the_content(); ?></div>
|
|
</article>
|
|
<?php endwhile; else : ?>
|
|
<?php get_template_part( 'parts/page-head', null, array( 'title' => 'Nichts gefunden' ) ); ?>
|
|
<div class="page-wrap"><p>Diese Seite gibt es leider nicht. <a href="<?php echo esc_url( home_url( '/' ) ); ?>">Zur Startseite</a></p></div>
|
|
<?php endif; ?>
|
|
</main>
|
|
<?php get_footer(); ?>
|