HEX
Server: LiteSpeed
System: Linux server315.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: globfdxw (6114)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: //home/globfdxw/diasporameetsafrica.com/wp-content/themes/DA10/cards/themes/search_list_ct.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: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 class="<?php echo $CORE->GEO("price_formatting",array()); ?> text-600">%price%</li>
        
        <li>%category%</li>           
          
        <?php if(strlen(do_shortcode('[CITY]')) > 1){ ?>
          <li> <?php echo do_shortcode('[CITY]'); ?></li>
        <?php } ?>

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

          <?php  if(isset($post->distance) && $post->distance > 0 ){  ?>
          <li><?php  echo $post->distance_text; ?> </li>
          <?php } ?>
           
        
        </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/themes/search_mobile' );  ?>
<?php if(isset($post->showupgrades) && $post->showupgrades == 1){  _ppt_template( 'cards/search_list_upgrade' );  }   ?>