balmet.com

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

content-single.php (2154B)


      1 <?php
      2 /**
      3  * Template part for displaying single post
      4  *
      5  * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
      6  *
      7  * @package appside
      8  */
      9 $appside = Appside();
     10 $post_meta = get_post_meta(get_the_ID(),'appside_post_gallery_options',true);
     11 $post_meta_gallery = isset($post_meta['gallery_images']) && !empty($post_meta['gallery_images']) ? $post_meta['gallery_images'] : '';
     12 $post_single_meta = Appside_Group_Fields_Value::post_meta('blog_single_post');
     13 ?>
     14 
     15 <article id="post-<?php the_ID(); ?>" <?php post_class('single-post-details-item'); ?>>
     16     <?php
     17     if (has_post_thumbnail() || !empty($post_meta_gallery) ):
     18 	    $get_post_format = get_post_format();
     19 	    if ('video' == $get_post_format || 'gallery' == $get_post_format){
     20 		    get_template_part('template-parts/common/thumbnail',$get_post_format);
     21 	    }else{
     22 		    get_template_part('template-parts/common/thumbnail');
     23 	    }
     24     endif;
     25 	    ?>
     26     <div class="entry-content">
     27         <?php if ('post' == get_post_type()):?>
     28         <ul class="post-meta">
     29 	        <?php if($post_single_meta['posted_by']):?>
     30             <li><?php $appside->posted_by();?></li>
     31 	        <?php endif;?>
     32 	        <?php if($post_single_meta['posted_category']):?>
     33             <li class="cat"><i class="fa fa-tags"></i><?php the_category(' ')?></li>
     34             <?php endif;?>
     35         </ul>
     36       <?php
     37       endif;
     38         the_content();
     39         $appside->link_pages();
     40         ?>
     41     </div>
     42     <?php if ( 'post' == get_post_type() && ((has_tag() && $post_single_meta['posted_tag']) || (shortcode_exists('appside_post_share') && $post_single_meta['posted_share']) )):?>
     43     <div class="entry-footer">
     44         <?php if(has_tag() && $post_single_meta['posted_tag']): ?>
     45         <div class="left">
     46             <?php $appside->posted_tag();?>
     47         </div>
     48         <?php endif; ?>
     49         <div class="right">
     50             <?php
     51             if (shortcode_exists('appside_post_share') && $post_single_meta['posted_share']){
     52 	            echo do_shortcode('[appside_post_share]');
     53             }
     54             ?>
     55         </div>
     56     </div>
     57     <?php endif;?>
     58 </article><!-- #post-<?php the_ID(); ?> -->