<?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, $userdata;

// CAN WE DISPLAY THE GOOGLE MAP BOX ?
$canShowMap = false;
if( get_post_meta($post->ID,'showgooglemap',true) == "yes"){
$canShowMap = true;
}

// CAN WE SHOW RELATED ITEMS?
$canShowRelated = true;
if($GLOBALS['CORE_THEME']['related_perpage'] == "" || $GLOBALS['CORE_THEME']['related_perpage'] == 0){
$canShowRelated = false;
}

if(defined('WLT_DEMOMODE')){ $canShowMap = true; $canShowRelated = true; }
 
ob_start();
?>

<h1>[TITLE]</h1>

<div class="pull-right hidden-xs" style="margin-top:-10px;">[D_SOCIAL]</div>

[CATEGORY limit=2] / [RATING small=1 rating=1 style=1] /  <i class="fa fa-signal"></i> [hits]
 
<hr />

<div class="panel panel-default">
 
[STICKER]

<div class="panel-body">

[CT_IMAGEBLOCK] 

[CONTACTBAR]

<hr />

[GOOGLEMAP] 

<h3 class="hidden-xs"><?php echo $CORE->_e(array('single','34')); ?> <div class=" pull-right"> <span class="label label-danger"><i class="fa fa-clock-o"></i> Posted [TIMESINCE]</span> </div> </h3>

<div class="clearfix"></div>
<hr />
        

[TOOLBOX show="views|favorites|comments|print|social"]

[LOCATION] [FLAG]

[CONTENT]

[FIELDS hide="price|category"]

<div class="clearfix"></div>
        
</div>

</div>

[COMMENTS]

<HR />

[RELATED]
 
<?php $SavedContent = ob_get_clean(); 
echo hook_item_cleanup($CORE->ITEM_CONTENT($post, hook_content_single_listing($SavedContent)));
?>