• File: loop.php
  • Full Path: /home/chassiw/www/wp-content/themes/kasuari/inc/format/loop.php
  • File size: 1.56 KB
  • MIME-type: text/html
  • Charset: utf-8
<article id="post-<?php the_ID(); ?>" <?php post_class( 'blog-item'); ?>>

	<?php if ( has_post_thumbnail()) { ?>
		<div class="post-thumb">
			<a href="<?php the_permalink(); ?>">
				<?php the_post_thumbnail(); ?>

				<div class="kasuari-overlay"></div>
			</a>
		</div><!-- thumbnail-->
	<?php } ?> 

	<div class="post-content-wrap">
		<div class="post-content">

			<h2 class="post-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>

			<div class="separator-line"><span></span></div>

			<div class="meta-wrapper clearfix">
				<span class="author">
					<a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>">
						<span class="author-name">
							<span class="author-separator"><?php esc_html_e( 'by', 'kasuari' ); ?></span><span class="vcard"> <?php echo get_the_author_meta( 'display_name' ); ?></span>
						</span>
					</a>
				</span>
				<span class="standard-post-categories">
					<?php esc_html_e( 'in ', 'kasuari' ); ?><?php the_category(', '); ?>
				</span>
				<span class="date">
					<a href="<?php the_permalink(); ?>">
						<span><?php echo get_the_date('F'); ?></span> <span><?php echo get_the_date('d'); ?></span><?php esc_html_e( ',', 'kasuari' ); ?> <span><?php echo get_the_date('Y'); ?></span>
					</a>
				</span>
			</div>

			<div class="post-text">
				<?php the_excerpt(); ?>
			</div>

			<div class="btn-more">
				<a href="<?php the_permalink(); ?>" class="read-more"><?php esc_html_e( 'Read More', 'kasuari' ); ?></a>
			</div>

		</div>
	</div>
</article>