File: /home/globfdxw/diasporameetsafrica.com/wp-content/themes/DA10/cards/dt/mobile.php
<?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->carddata = "";
}
$show_views = 1;
if(_ppt(array('searchcardvals','views')) == "0"){
$show_views = 0;
}
$show_rating = 0;
if(in_array(_ppt(array('searchcardvals','rating')),array("","1"))){
$show_rating = 1;
}
///////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////
if(in_array(_ppt(array('searchcustom', 'mobileperrow')),array("1"))){ }else{ ?>
<div class="show-mobile">
<?php if( isset($post->boosted) || $post->featured){ ?>
<div class="button-featured-new-wrap es" style="left: 5px; top:20px;">
<div class="button-featured-new bg-primary"><?php echo __("Featured","premiumpress"); ?></div>
</div>
<?php } ?>
<div class="position-relative mb-3">
<a href="%link%">
<div class="position-relative" ppt-border1 >
<div class="h-100 position-relative">
<figure style="min-height:150px;">
<?php _ppt_template( 'cards/search_badges' ); ?>
<?php if($show_rating){ ?>
<div class="position-absolute " style="z-index:1; bottom:10px; right:10px;"><?php echo do_shortcode('[RATING reviews_show="0" size="md" short="1"]'); ?> </div>
<?php } ?>
<div class="bg-image z-0" data-bg="%image%" style="min-height:150px;"> </div>
</figure>
</div>
</div>
</a>
<div class="fs-14 text-600" style="margin-top:5px;">
%title%
</div>
<div class="lh-20 fs-sm text-dark" ppt-flex-between style="margin-top:2px;">
<?php if(isset($post->distance) && $post->distance > 0 ){ ?>
<div><?php echo $post->distance_text; ?> </div>
<?php }else{ ?>
<div>%category%</div>
<?php } ?>
<div class="fs-sm text-dark link-dark text-truncate" style="max-width:150px;"> %hits% <?php echo __("views","premiumpress"); ?></div>
</div>
</div>
</div>
<?php } ?>