Current File : /home/kelaby89/iluxelectrical.com.au/wp-content/themes/strnix/template-parts/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');
$post_thumb_class = 'no-post-thumb';
if (has_post_thumbnail()) :
	$post_thumb_class = '';
endif;
?>
<div class="news-block-four <?php echo esc_attr( $post_thumb_class ); ?>">
	<?php if (is_sticky()) { ?>
		<div class="sticky_post_icon" title="<?php esc_attr_e('Sticky Post', 'strnix') ?>"><span class="fas fa-map-pin"></span></div>
	<?php } ?>
	<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
		<div class="inner-box">
			<?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('<h3 class="entry-title">', '</h3>');
					else :
						the_title('<h3 class="entry-title"><a href="' . esc_url(get_permalink()) . '" rel="bookmark">', '</a></h3>');
					endif;
				?>
				<?php if( !empty(get_the_excerpt()) ) : ?>
					<div class="text">
						<?php
							if (get_option('rss_use_excerpt')) {
								the_excerpt();
							} else {
								the_excerpt();
							}
						?>
					</div>
				<?php endif; ?>
				<?php
					wp_link_pages(array(
						'before' => '<div class="page-links">',
						'after' => '</div>',
					));
				?>
				<div class="lower-row clearfix">
					<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="link-box">
						<a href="<?php echo esc_url(get_permalink()); ?>"><span class="txt"><?php esc_html_e('Read More ','strnix');?></span> <span class="icon flaticon-arrows-11"></span></a>
					</div>
				</div>
			</div>
		</div>
	</article>
</div>
Page not found – Hello World !