darshan_saroya

post-content

Mar 3rd, 2016
36
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.49 KB | None | 0 0
  1. <div id="post-<?php the_ID(); ?>" <?php post_class('enigma_blog_full'); ?> >
  2.     <?php if(is_page_template('blog-rightsb.php') || is_home() || is_singular()  || is_archive() || is_author() || is_tag() || is_category() || is_search() ) {
  3.     $class = "blog-date-left";
  4.     } if(is_page_template('blog-leftsb.php')) {
  5.     $class = "blog-date-right";
  6.     }?>
  7.     <ul class=<?php echo $class ;?>>
  8.         <li class="enigma_post_date"><span class="date"><?php echo get_the_date('d'); ?></span><h6><?php echo get_the_date('M  y'); ?></h6></li>
  9.         <li class="enigma_post_author"><?php echo get_avatar(get_the_author_meta( 'ID' ),96); ?></li>
  10.         <li class="enigma_blog_comment"><i class="fa fa-comments-o"></i><h6><?php comments_popup_link( '0', '1', '%', '', '-'); ?></h6></li>
  11.     </ul>
  12.     <div class="post-content-wrap">
  13.         <?php if(has_post_thumbnail()): ?>
  14.         <div class="enigma_blog_thumb_wrapper_showcase">                       
  15.             <div class="enigma_blog-img">
  16.                 <?php $class=array('class'=>'enigma_img_responsive'); ?>
  17.                 <?php the_post_thumbnail('blog_2c_thumb', $class); ?>          
  18.             </div>
  19.             <?php if(!is_single()) { ?>
  20.             <div class="enigma_blog_thumb_wrapper_showcase_overlay">
  21.                 <div class="enigma_blog_thumb_wrapper_showcase_overlay_inner ">
  22.                     <div class="enigma_blog_thumb_wrapper_showcase_icons">
  23.                         <a title="<?php the_title_attribute(); ?>" href="<?php the_permalink(); ?>"><i class="fa fa-link"></i></a>
  24.                     </div>
  25.                 </div>
  26.             </div>
  27.             <?php } ?>
  28.         </div>
  29.         <?php endif; ?>
  30.         <div class="enigma_fuul_blog_detail_padding">
  31.         <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
  32.         <?php if(get_the_tag_list() != '') { ?>
  33.         <?php the_content( __( 'Read More' , 'weblizar' ) ); ?>
  34.         <p class="enigma_tags"><?php the_tags('Tags :&nbsp;', ' ', '<br />'); ?></p>
  35.         <?php } ?>
  36.         <?php $defaults = array(
  37.               'before'           => '<div class="enigma_blog_pagination"><div class="enigma_blog_pagi">' . __( 'Pages:','weblizar' ),
  38.               'after'            => '</div></div>',
  39.               'link_before'      => '',
  40.               'link_after'       => '',
  41.               'next_or_number'   => 'number',
  42.               'separator'        => ' ',
  43.               'nextpagelink'     => __( 'Next page'  ,'weblizar'),
  44.               'previouspagelink' => __( 'Previous page' ,'weblizar' ),
  45.               'pagelink'         => '%',
  46.               'echo'             => 1
  47.               );
  48.               weblizar_link_pages( $defaults );
  49.               ?>   
  50.         </div>
  51.     </div>
  52. </div>         
  53. <div class="push-right">
  54. <hr class="blog-sep header-sep">
  55. </div>
Add Comment
Please, Sign In to add comment