79 lines
1.4 KiB
PHP
79 lines
1.4 KiB
PHP
<?php get_header();?>
|
|
|
|
|
|
<!-- section -->
|
|
<section>
|
|
|
|
<?php if (have_posts()): while (have_posts()): the_post();?>
|
|
|
|
<!-- article -->
|
|
<article id="post-<?php the_ID();?>" <?php post_class();?>>
|
|
|
|
<!-- post thumbnail -->
|
|
<?php if (has_post_thumbnail()): // Check if Thumbnail exists ?>
|
|
<div class="thumbnailwrapper">
|
|
<?php the_post_thumbnail(); // Fullsize image for the single post ?>
|
|
</div>
|
|
|
|
<?php endif;?>
|
|
<!-- /post thumbnail -->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="titlewrapper">
|
|
<div class="metadata">
|
|
<div class="time-cat">
|
|
<?php the_time('Y. m. d.');?> |
|
|
<?php the_category(' | ');?>
|
|
</div>
|
|
<div class="format">
|
|
<?php
|
|
$terms = get_the_terms( $post->ID, 'Format' );
|
|
if ($terms) {
|
|
foreach($terms as $term) {
|
|
echo $term->name;
|
|
}
|
|
} ?>
|
|
</div>
|
|
|
|
</div>
|
|
<h1>
|
|
<?php the_title();?>
|
|
</h1>
|
|
</div>
|
|
<!-- /post title -->
|
|
<h1 class="title2">
|
|
<?php the_title();?>
|
|
</h1>
|
|
|
|
<hr class="content-wrap content-begin">
|
|
<?php the_content(); // Dynamic Content ?>
|
|
<hr class="content-wrap content-end">
|
|
|
|
</article>
|
|
<!-- /article -->
|
|
|
|
<?php endwhile;?>
|
|
|
|
<?php else: ?>
|
|
|
|
<!-- article -->
|
|
<article>
|
|
|
|
<h1><?php _e('Sorry, nothing to display.', 'dis2019');?></h1>
|
|
|
|
</article>
|
|
<!-- /article -->
|
|
|
|
<?php endif;?>
|
|
|
|
</section>
|
|
<!-- /section -->
|
|
|
|
|
|
|
|
|
|
<?php get_footer();?>
|