File: /home/globfdxw/diasporameetsafrica.com/wp-content/themes/DA10/cards/vt/list.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->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:200px;">
<a href="%link%">
<div class="p-2 bg-white" ppt-border1>
<div class="bg-light position-relative overflow-hidden isVideo" style="height:160px;">
<figure>
<i class="fa fa-play-circle opacity-5 vidicon"> </i>
<div class="bg-image" data-ppt-image-bg>
</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:160px;">
<div class="d-sm-flex flex-sm-column">
<div class="fs-4 text-600 mb-2">
<a href="%link%" class="text-dark _adtitle"> %title% </a>
</div>
<nav ppt-nav class="seperator pl-0 text-muted mb-3">
<ul class="list-unstyled">
<li><?php echo do_shortcode('[RATING bg="" short="1" hide_empty="1" reviews_show=0]'); ?></li>
<li>%category%</li>
<li>%hits% <?php echo __("Views","premiumpress"); ?> </li>
</ul>
</nav>
<div style="min-height:60px;">
<?php echo do_shortcode("[CONTENT limit=150]"); ?>...
</div>
</div>
</div>
</div>
</div>
</div>
<?php _ppt_template( 'cards/vt/mobile' ); ?>