Advertisement
Sjeev

accessible only by post authors

Dec 11th, 2013
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php if(!is_single()) { global $more; $more = 0; } //enable more link ?>
  2. <?php
  3. /** Themify Default Variables
  4.  *  @var object */
  5. global $themify; ?>
  6.  
  7. <?php themify_post_before(); //hook ?>
  8. <article id="post-<?php the_ID(); ?>" <?php post_class( 'post clearfix ' . $themify->get_categories_as_classes(get_the_ID()) . ' ' . $themify->get_post_color_class(get_the_ID()) ); if(function_exists("live_edit")){ live_edit('post_title, post_content, field1'); } ?>>
  9.     <?php themify_post_start(); //hook ?>
  10.    
  11.         <?php if ( $themify->hide_image != 'yes' ) : ?>
  12.        
  13.         <?php themify_before_post_image(); // Hook ?>
  14.        
  15.         <?php if ( themify_get( 'video_url' ) != '' ) : ?>
  16.            
  17.             <?php
  18.                 global $wp_embed;
  19.                 echo $wp_embed->run_shortcode('[embed]' . themify_get('video_url') . '[/embed]');
  20.             ?>
  21.  
  22.         <?php elseif( $post_image = themify_get_image($themify->auto_featured_image . $themify->image_setting . "w=".$themify->width."&h=".$themify->height) ) : ?>
  23.            
  24.             <figure class="post-image <?php echo $themify->image_align; ?>">
  25.                 <?php if( 'yes' == $themify->unlink_image): ?>
  26.                     <?php echo $post_image; ?>
  27.                 <?php else: ?>
  28.                     <a href="<?php echo themify_get_featured_image_link(); ?>"><?php echo $post_image; ?><?php themify_zoom_icon(); ?></a>
  29.                 <?php endif; // unlink image ?>
  30.             </figure>
  31.        
  32.         <?php endif; // video else image ?>
  33.        
  34.         <?php themify_after_post_image(); // Hook ?>
  35.  
  36.     <?php endif; // hide image ?>
  37.  
  38.     <div class="post-inner">
  39.        
  40.         <span class="post-icon"></span>
  41.         <!-- /post-icon -->
  42.        
  43.         <?php if($themify->hide_title != "yes"): ?>
  44.             <?php themify_before_post_title(); // Hook ?>
  45.             <?php if($themify->unlink_title == "yes"): ?>
  46.                 <h1 class="post-title"><?php the_title(); ?></h1>
  47.             <?php else: ?>
  48.                 <h1 class="post-title"><a href="<?php echo themify_get_featured_image_link(); ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h1>
  49.             <?php endif; //unlink post title ?>
  50.             <?php themify_after_post_title(); // Hook ?>
  51.         <?php endif; //post title ?>
  52.         <!-- / Title -->
  53.  
  54.         <?php get_template_part('includes/loop-' . $themify->get_format_template()); ?>
  55.        
  56.         <?php if(is_single()): ?>
  57. <div <?php if(function_exists("live_edit")){ live_edit('post_title, myfield2'); }?>>
  58.     <?php if( function_exists('the_field') ) the_field('myfield1'); ?> </div>
  59.     <?php if( function_exists('the_field') ) the_field('myfield2');  ?>
  60. </div>
  61.             <?php wp_link_pages(array('before' => '<p><strong>' . __('Pages:', 'themify') . '</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
  62.  
  63.             <?php get_template_part( 'includes/author-box', 'single'); ?>
  64.            
  65.             <?php get_template_part( 'includes/post-nav'); ?>
  66.            
  67.             <?php if(!themify_check('setting-comments_posts')): ?>
  68.                 <?php comments_template(); ?>
  69.             <?php endif; ?>
  70.         <?php endif; ?>
  71.        
  72.     </div>
  73.     <!-- /.post-inner -->
  74.    
  75.     <?php themify_post_end(); //hook ?>
  76. </article>
  77. <!-- /.post -->
  78. <?php themify_post_after(); //hook ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement