Current File : /home/kelaby89/iluxelectrical.com.au/wp-content/themes/strnix/template-parts/single/content.php |
<?php
/**
* Template part for displaying posts.
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
*
* @package strnix
*/
$blog_time_style = strnix_get_options('blog_time_style');
$single_post_thumb_class = 'no-single-post-thumb';
if (has_post_thumbnail()) :
$single_post_thumb_class = '';
endif;
?>
<div class="post-details <?php echo esc_attr( $single_post_thumb_class ); ?> single-post-me">
<?php if (has_post_thumbnail()) : ?>
<div class="image-box">
<figure class="image"><?php strnix_post_thumbnail(); ?></figure>
<?php if ($blog_time_style == 2) : ?>
<div class="post-date">
<span class="day"><?php echo get_the_date( 'j' ); ?></span><span class="month"><?php echo get_the_date( 'M' ); ?></span>
</div>
<?php else : ?>
<div class="post-date post-date-with-thumb">
<?php strnix_posted_on(); ?>
</div>
<?php endif; ?>
</div>
<?php else : ?>
<div class="no-post-thumb-date">
<?php if ($blog_time_style == 2 ) : ?>
<div class="post-date">
<span class="day"><?php echo get_the_date( 'j' ); ?></span><span class="month"><?php echo get_the_date( 'M' ); ?></span>
</div>
<?php else : ?>
<div class="post-date-two">
<?php strnix_posted_on(); ?>
</div>
<?php endif; ?>
</div>
<?php endif; ?>
<div class="lower-box">
<?php
if (is_singular()) :
the_title('<h2 class="entry-title">', '</h2>');
else :
the_title('<h2 class="entry-title"><a href="' . esc_url(get_permalink()) . '" rel="bookmark">', '</a></h2>');
endif;
?>
<div class="meta-info"><?php esc_html_e('By ','strnix');?><a href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>"><?php echo esc_html( get_the_author() ); ?></a> <?php esc_html_e('|','strnix');?> <?php strnix_tag_list(); ?></div>
<div class="text">
<?php the_content(); ?>
</div>
<?php
wp_link_pages(array(
'before' => '<div class="page-links">',
'after' => '</div>',
));
?>
<div class="lower-row clearfix">
<div class="tags">
<strong><?php esc_html_e('Tags','strnix');?></strong>
<?php strnix_tag_list(); ?>
</div>
</div>
</div>
</div>