balmet.com

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

content.php (935B)


      1 <?php
      2 /**
      3  * Template part for displaying posts
      4  *
      5  * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
      6  *
      7  * @package appside
      8  */
      9 $appside = Appside();
     10 ?>
     11 
     12 <article id="post-<?php the_ID(); ?>" <?php post_class('single-blog-classic-item margin-bottom-30'); ?>>
     13     <?php if ( has_post_thumbnail() ):?>
     14 	<div class="thumb">
     15 		<div class="time">
     16 			<span class="date"><?php echo esc_html(get_the_date('d'))?></span>
     17 			<span class="month"><?php echo esc_html(get_the_date('M'))?></span>
     18 		</div>
     19 		  <?php $appside->post_thumbnail(); ?>
     20 	</div>
     21     <?php endif;?>
     22   
     23     <div class="content">
     24       <?php
     25         get_template_part('template-parts/common/post-meta');
     26         the_title( '<h2 class="title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h2>' );
     27         get_template_part('template-parts/common/post-excerpt');
     28         ?>
     29     </div>
     30 </article><!-- #post-<?php the_ID(); ?> -->