Advertisement
Guest User

Untitled

a guest
Mar 25th, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.87 KB | None | 0 0
  1. <?php
  2. /**
  3.  * Template for generic post display.
  4.  * @package themify
  5.  * @since 1.0.0
  6.  */
  7. ?>
  8. <?php
  9. $is_single = is_single();
  10. if(!$is_single){
  11.     global $more; $more = 0;
  12. } //enable more link ?>
  13.  
  14. <?php
  15. /** Themify Default Variables
  16.  *  @var object */
  17. global $themify; ?>
  18.  
  19. <?php themify_post_before(); // hook ?>
  20. <article id="post-<?php the_id(); ?>" <?php post_class( 'post clearfix' ); ?>>
  21.     <?php themify_post_start(); // hook ?>
  22.  
  23.     <?php if('below' != $themify->media_position) get_template_part( 'includes/post-media', 'loop'); ?>
  24.  
  25.     <div class="post-content">
  26.         <?php if($themify->unlink_image != 'yes' && $themify->post_layout==='auto_tiles'):?>
  27.             <a href="<?php the_permalink(); ?>" class="tiled_overlay_link"></a>
  28.         <?php endif;?>
  29.         <div class="post-content-inner-wrapper">
  30.             <div class="post-content-inner">
  31.    
  32.             <?php get_template_part( 'includes/post-cats', 'loop')?>
  33.    
  34.            
  35.             <?php if ( $themify->hide_title != 'yes' ): ?>
  36.                 <?php themify_post_title(); ?>
  37.             <?php endif; //post title ?>
  38.            
  39.             <?php if($themify->hide_meta != 'yes'): ?>
  40.                 <p class="post-meta entry-meta">
  41.                     <?php if($themify->hide_meta_author != 'yes'): ?>
  42.                         <span class="post-author"><?php echo themify_get_author_link(); ?></span>
  43.                     <?php endif; ?>
  44.                    
  45.                     <?php  if( !themify_get('setting-comments_posts') && comments_open() && $themify->hide_meta_comment != 'yes' ) : ?>
  46.                         <span class="post-comment"><?php comments_popup_link( __( '0 Comment', 'themify' ), __( '1 Comment', 'themify' ), __( '% Comments', 'themify' ) ); ?></span>
  47.                     <?php endif; ?>
  48.                    
  49.                     <?php get_template_part( 'includes/post-date', 'loop')?>
  50.                 </p>
  51.             <?php endif; //post meta ?>
  52.  
  53.             <?php if('below' == $themify->media_position) get_template_part( 'includes/post-media', 'loop'); ?>
  54.            
  55.             <div class="entry-content">
  56.                 <?php if ( 'excerpt' == $themify->display_content && ! is_attachment() ) : ?>
  57.                    
  58.                     <?php the_excerpt(); ?>
  59.  
  60.                     <?php if(!$is_single && themify_check('setting-excerpt_more') ) : ?>
  61.                         <p><a href="<?php the_permalink(); ?>" class="more-link"><?php echo themify_check('setting-default_more_text')? themify_get('setting-default_more_text') : __('More &rarr;', 'themify') ?></a></p>
  62.                     <?php endif; ?>
  63.                
  64.                 <?php elseif($themify->display_content !== 'none'): ?>
  65.  
  66.                     <?php the_content(themify_check('setting-default_more_text')? themify_get('setting-default_more_text') : __('More &rarr;', 'themify')); ?>
  67.  
  68.                 <?php endif; //display content ?>
  69.             </div>
  70.             <?php edit_post_link(__('Edit', 'themify'), '<span class="edit-button">[', ']</span>'); ?>
  71.             </div>
  72.         </div>
  73.     </div>
  74.     <!-- /.post-content -->
  75.     <?php themify_post_end(); // hook ?>
  76.  
  77.     <?php if ( ! themify_check( 'setting-comments_posts' ) ) : ?>
  78.             <?php comments_template(); ?>
  79.         <?php endif; ?>
  80.  
  81. </article>
  82. <!-- /.post -->
  83. <?php themify_post_after(); // hook ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement