<?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; }
?>

<?php global $CORE, $post, $userdata; $showimage = get_option('coupon_showimage');

ob_start(); ?>

<div class="itemdata itemid<?php echo $post->ID; ?> <?php hook_item_class(); ?>" <?php echo $CORE->ITEMSCOPE('itemtype'); ?>>

[STICKER] 



<div class="thumbnail clearfix">

<span id="itemid<?php echo $post->ID; ?>"></span>
	
    <div class="col-md-3  logo">
    
   <?php if($showimage == 1){ ?>[IMAGE]<?php }else{ ?>[COUPONDATA] <?php } ?>  
   
   [STORE text=""]
    
    <div class="clearfix"></div> [RATING style=10]
    
    </div>
    
    <div class="col-md-9 wrap">
    
    [CBUTTON]
    
    <h4>[COUPON_TITLE]</h4>
    
    [COUPON_END]
    
    <div class=" hidden_grid ">
    
    <div class="line1"></div>
    
    <?php if(!isset($GLOBALS['flag-single'])){ ?>[EXCERPT]<?php }else{ ?>[CONTENT] <?php } ?> 
    
    <div class="clearfix"></div>
    
    [FAVS] [COUPON_USED]   
    
    <?php if($userdata->ID == $post->post_author ){ ?>
    <a href="[EDIT]" class="btn btn-success pull-right">Edit Coupon</a>
    <?php } ?>
 
     
    </div>
    
    </div>  
	 
</div>


</div>
 
<?php 
$SavedContent = ob_get_clean(); 

echo hook_item_cleanup($CORE->ITEM_CONTENT($post, hook_content_listing($SavedContent))); ?>  