member_email; $mail_disable = 'readonly'; $reg_user_mail = $userEmail; $city_url = $_GET['city']; $cts = $sanformation->city_ip_check($city_url); if($cts != '0'){ //=================== condition for 404 start ========================== $city_url_new = $sanformation->city_ip_name($city_url); if($city_url_new != $city_url){ $city_url = $city_url_new; $ne_url = "https://zumvu.com/marketplace/$city_url/"; //echo "error"; header("Location: $ne_url"); } //================================================================ if($city_url != ''){ $city_urls = "$city_url/"; }else{ $city_urls = ""; } //=============================== City above ================= //============================================ duration calculator ================================ $dt = $date->format( 'd M Y H:i' ); $time_now = strtotime("$dt"); function Duration($s, $e){ $timestamp = $e - $s; $years=floor($timestamp/(60*60*24*365)); $timestamp%=60*60*24*365; $weeks=floor($timestamp/(60*60*24*7)); $timestamp%=60*60*24*7; $days=floor($timestamp/(60*60*24)); $timestamp%=60*60*24; $hrs=floor($timestamp/(60*60)); $timestamp%=60*60; $mins=floor($timestamp/60); $secs=$timestamp%60; if ($years >= 1) { $str.= $years.' years '; } else if ($weeks >= 1) { $str.= $weeks.' weeks '; } else if ($days >= 1) { $str.=$days.' days '; } else if ($hrs >= 1) { $str.=$hrs.' hours '; } else if ($mins >= 1) { $str.=$mins.' minutes '; } else{ $str = '2'; } //--------------------------------------------------- /* if($days < 1){ if ($hrs >= 1) { $str.=$hrs.' hours '; } if ($mins >= 1) { $str.=$mins.' minutes '; } }else{ $str = '2'; }*/ return $str; } $city_name = $sanformation->city_name($city_url); $city_dtls = $sanformation->city_details_by_url($city_url); $m_title = $city_dtls['meta_title']; $m_description = $city_dtls['meta_desc']; $m_key = $city_dtls['meta_key']; $state_id = $city_dtls['state_id']; $city_web_url = $city_dtls['city_web_url']; if($city_web_url != ''){ $newslink = '
';
}elseif($rows['photo'] != ''){
if($count_array == '0'){
$img = $rows['photo'];
}else{
$img = $image_array[0];
}
$img_cd = '
';
}
$duration = Duration($listing_approve_date, $time_now);
if($duration != '2'){ $duro = $duration.' ago'; }else{ $duro = $listing_approve_date_disp; }
$locations = $rows['locations'];
$locations_array = explode(",",$locations);
if($locations != ''){ $loc = ''.$locations_array[0].''; }else{ $loc = ''; }
$you_are = $rows['you_are'];
$yr = substr($you_are, 1, 50);
$yr = substr($yr, 0, -2);
if($yr != ''){ $you = ''.$yr.''; }else{ $you = ''; }
$price = $rows['price'];
if($price > '0'){ $pric = ''.$currency.' '.number_format($price).''; }else{ $pric = ''; }
$add_url = "https://zumvu.com/marketplace/$city_url_l/v$ad_id/$title_url/";
$calltoaction = $rows['calltoaction'];
$calltoaction_link = $rows['calltoaction_link'];
//if($calltoaction == "Direct Link"){ $add_url = $calltoaction_link; $lrl = ' target="_blank"'; }else{ $lrl = ''; }
if($calltoaction == "Direct Link"){ $add_url = $calltoaction_link; $lrl = ' target="_blank" class="dirclnk" data-name="'.$ad_id.'"'; }
else if($calltoaction == "Visit Site"){ $add_url = $calltoaction_link; $lrl = ' target="_blank" class="dirclnk" data-name="'.$ad_id.'"'; }
else if($calltoaction == "Visit Store"){ $add_url = $calltoaction_link; $lrl = ' target="_blank" class="dirclnk" data-name="'.$ad_id.'"'; }
else if($calltoaction == "Visit Blog"){ $add_url = $calltoaction_link; $lrl = ' target="_blank" class="dirclnk" data-name="'.$ad_id.'"'; }
else{ $lrl = ''; }
//if($plan == '1'){ $class = "whitebox"; }elseif($plan == '2'){ $class = 'yellowbox'; }
$class = $sanformation->plan_class($plan);
$btnLabel = $rows['calltoaction'];
$btnValue = $rows['calltoaction_link'];
$extVal = '';
$callToActionBtn = $sanformation->callToActionBtn($btnLabel,$btnValue,$extVal,$plan);
if($btnLabel !=''){
$callToActionBtn_extend = $callToActionBtn;
$exclass_name = 'desclassspan';
}else{
$callToActionBtn_extend ='';
$exclass_name ='';
}
$display = '