balmet.com

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

content-image.php (1000B)


      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     <div class="content">
     23       <?php
     24         get_template_part('template-parts/common/post-meta');
     25         the_title( '<h2 class="title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h2>' );
     26         get_template_part('template-parts/common/post-excerpt');
     27         ?>
     28     </div>
     29 </article><!-- #post-<?php the_ID(); ?> -->