added lot of things
This commit is contained in:
87
singular.php
87
singular.php
@@ -11,34 +11,36 @@
|
||||
|
||||
<!-- 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>
|
||||
<div class="thumbnailwrapper">
|
||||
<?php the_post_thumbnail(); // Fullsize image for the single post ?>
|
||||
</div>
|
||||
|
||||
<?php endif;?>
|
||||
<?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>
|
||||
<?php if (!is_page()): ?>
|
||||
<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>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<h1 class="single-title">
|
||||
<?php the_title();?>
|
||||
</h1>
|
||||
@@ -47,24 +49,26 @@
|
||||
<!-- /post title -->
|
||||
|
||||
<div class="single-content">
|
||||
<hr class="content-wrap content-begin">
|
||||
<?php the_content(); // Dynamic Content ?>
|
||||
<?php if (!is_page()): ?>
|
||||
<hr class="content-wrap content-begin">
|
||||
<?php endif; ?>
|
||||
<?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>';
|
||||
} ?>
|
||||
<?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>
|
||||
@@ -137,9 +141,10 @@
|
||||
<a href="<?php echo esc_url( home_url( '/' ) ); ?>">
|
||||
← <?php _e('Back to home:', 'dis2019');?>
|
||||
</a>
|
||||
<hr class="related-wrap single-end">
|
||||
</div>
|
||||
|
||||
<hr class="related-wrap single-end">
|
||||
|
||||
|
||||
</article>
|
||||
<!-- /article -->
|
||||
|
||||
Reference in New Issue
Block a user