<?php
/* 
* Theme: PREMIUMPRESS CORE FRAMEWORK FILE
* Url: www.premiumpress.com
* Author: Mark Fail
*
* THIS FILE WILL BE UPDATED WITH EVERY UPDATE
* IF YOU WANT TO MODIFY THIS FILE, CREATE A CHILD THEME
*
* http://codex.wordpress.org/Child_Themes
*/
if (!defined('THEME_VERSION')) {	header('HTTP/1.0 403 Forbidden'); exit; }

global $post, $CORE_UI, $userdata, $CORE;

   // ADMIN PREVIEW
    if(!isset($post->ID)){
		$post = new stdClass();
		$post->ID 			= 1;
		$post->post_title 	= "This is a sample title."; 
		$post->post_author 	= 1; 
		$post->post_excerpt = "";
		$post->post_content = "";
		$post->comment_count = 0;
		$post->thistheme = THEME_KEY;
		
		$post->showupgrades = 1;
	} 

///////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////

$show_rating = 0;
if(in_array(_ppt(array('searchcardvals','rating')),array("","1"))){
$show_rating = 1;
}

///////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////

?>

<div class="hide-mobile mb-4" data-pid='%postid%' <?php if(isset($post->carddata)){ echo $post->carddata; } ?>>

  <div class="d-flex">
  
  
    <div style="min-width:220px;">
      <a href="%link%">
      <div class="p-2 bg-white" ppt-border1>
        <div class="bg-light position-relative overflow-hidden" style="height:220px;">
         <figure>
          <div class="bg-image" data-ppt-image-bg>
            &nbsp;
          </div>
          <?php _ppt_template( 'cards/search_badges' ); ?>
           </figure>
        </div>
      </div>
      </a>
    </div>
    
    
   
    <div class="position-relative w-100 pl-lg-4">
     <div class="p-4 bg-white" ppt-border1 style="min-height:220px;">
      <div class="d-sm-flex flex-sm-column">
        <div class="fs-4 text-600 mb-2">
          
          <a href="%link%" class="text-dark _adtitle">%title%  
		  <?php if(isset($post->online) && $post->online){ ?>
          <span class="text-online">&bull;</span>
          <?php } ?>
          </a>
          
        </div>
         
       <nav ppt-nav class="seperator pl-0 text-muted mb-3"> 
        <ul class="list-unstyled">
          
       
        <li>%category%</li>
        
        <li><?php echo do_shortcode("[TIMELEFT]"); ?></li>
          
         

          <li>%hits% <?php echo __("Views","premiumpress"); ?> </li>

         
           
        
        </ul>
        
        </nav> 
        
        
        <div style="min-height:60px;">
          <?php echo do_shortcode("[CONTENT limit=150]"); ?>...
        </div>
        
        
        <div>        
        <a href="%link%" data-ppt-btn class="btn-primary"><?php echo __("Read More","premiumpress"); ?></a>
        </div>
        
       </div>  
        
        
      </div>
    </div>
  </div>
</div>

 
<?php _ppt_template( 'cards/pj/mobile' );  ?>

