97 lines
2.0 KiB
PHP
97 lines
2.0 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 && ! is_wp_error( $terms )) {
|
|
foreach($terms as $term) {
|
|
?>
|
|
<a href="<?php echo esc_url(get_term_link( $term));?>">
|
|
<?php
|
|
echo $term->name;
|
|
echo '</a>';
|
|
}
|
|
} ?>
|
|
</div>
|
|
|
|
</div>
|
|
<h1 class="single-title">
|
|
<?php the_title();?>
|
|
</h1>
|
|
|
|
</div>
|
|
<!-- /post title -->
|
|
|
|
<div class="single-content">
|
|
<hr class="content-wrap content-begin">
|
|
<?php the_content(); // Dynamic Content ?>
|
|
|
|
<?php
|
|
$terms = get_the_terms( $post->ID, 'Writer' );
|
|
if ($terms && ! is_wp_error( $terms )) {
|
|
?>
|
|
<p class="authors">Szerző:
|
|
<?php
|
|
foreach($terms as $term) {
|
|
?>
|
|
<a href="<?php echo esc_url(get_term_link( $term));?>">
|
|
<?php echo $term->name; ?>
|
|
</a>
|
|
<?php
|
|
}
|
|
echo '<p>';
|
|
} ?>
|
|
|
|
<hr class="content-wrap content-end">
|
|
</div>
|
|
|
|
|
|
|
|
</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();?>
|