SHARE
TWEET

Untitled

a guest Mar 24th, 2016 85 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. /**
  3.  * @package aReview
  4.  */
  5. ?>
  6.  
  7. <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  8.  
  9.     <?php if ( has_post_thumbnail() ) : ?>
  10.         <div class="entry-thumb col-md-4 col-sm-4 col-xs-12">
  11.             <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>" >
  12.                 <?php the_post_thumbnail('home-thumb'); ?>
  13.             </a>           
  14.         </div>
  15.         <?php $has_thumb = "col-md-8 col-sm-8 col-xs-12"; ?>
  16.     <?php else : ?>
  17.         <?php $has_thumb = ""; ?>
  18.     <?php endif; ?>
  19.  
  20.     <div class="entry-summary <?php echo $has_thumb; ?>">
  21.         <header class="entry-header">
  22.             <?php the_title( sprintf( '<h1 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h1>' ); ?>
  23.         </header><!-- .entry-header -->    
  24.         <div class="post-info">
  25.             <?php if ( 'post' == get_post_type() ) : ?>
  26.                 <?php areview_posted_on(); ?>
  27.             <?php endif; ?>
  28.             <span class="cat-link">
  29.                 <?php
  30.                     $category = get_the_category();
  31.                     if($category[0]){
  32.                         echo '<i class="fa fa-folder"></i><a href="' . esc_url(get_category_link($category[0]->term_id )) . '">' . esc_attr($category[0]->cat_name) . '</a>';
  33.                     }
  34.                 ?>
  35.             </span>            
  36.             <?php if(function_exists('yasr_get_overall_rating') && function_exists('cfs')) {
  37.                 echo do_shortcode('[yasr_overall_rating]');
  38.             } ?>
  39.         </div>     
  40.         <?php the_excerpt(); ?>
  41.     </div><!-- .entry-content -->
  42.  
  43.     <div class="buttons-area">
  44.         <?php if ( function_exists('cfs') && ($cfs->get('button_link') !='' ) && ($cfs->get('button_title') !='') && ($cfs->get('button_index') == 1) ) : ?>
  45.             <a href="<?php echo esc_url($cfs->get('button_link')); ?>" class="buy-button" target="_blank"><?php echo esc_html($cfs->get('button_title')); ?></a>
  46.         <?php endif; ?>
  47.         <a href="<?php the_permalink(); ?>" class="read-more"><?php echo __('Read more', 'areview'); ?></a>
  48.     </div>
  49. </article><!-- #post-## -->
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top