/home/psinv/public_html/functions.php
$meta['description'] = "⚡ ".__('View the','realia'). " ".__('Location map','realia'). " ".__('of','realia'). " ". __($getName,'realia'). " " .__('at','realia'). " ". __($getSubCommunityName,'realia'). " ". __($getCommunityName,'realia'). ', '. __('Book a viewing today!', 'realia'). " - " .__('Property Shop Investment, Abu Dhabi','realia');
$meta['keywords'] = $getSeoKeywords;
} elseif( 'project-nearbyamenities' == $_route ) {
global $nearby;
if(!empty($nearby)){
$nearby_txt = explode('near',$nearby);
$nearby_txt = $nearby_txt[0];
$nearby_txt = explode('-',$nearby_txt);
$nearby_txt = $nearby_txt[0];
$meta['title'] = "⚡ ".__('Nearby ','realia').__($nearby_txt,'realia').__(' in ','realia'). __($projectObj->getName(),'realia') . ', '. __($projectObj->getCommunityName(),'realia');
$meta['description'] = "⚡ ".__('Find the best','realia'). ' '.__($nearby_txt,'realia').__(' near ','realia'). __($projectObj->getName(),'realia'). ", " . __($projectObj->getSubCommunityName(),'realia'). " " . __($projectObj->getCommunityName(),'realia'). ' - '.__('PSI','realia');
$meta['keywords'] = $projectObj->getSeoKeywords();
}else{
$meta['title'] = "⚡ ".__('Nearby amenities around', 'realia').' ' . __($projectObj->getName(),'realia').', '.__($projectObj->getCommunityName(),'realia');
$meta['description'] = "⚡ ".__('Discover the best nearby amenities around', 'realia').' ' . __($projectObj->getName(),'realia').', '. __($projectObj->getSubCommunityName(),'realia'). " " . __($projectObj->getCommunityName(),'realia');
$meta['keywords'] = $projectObj->getSeoKeywords();
}
$descLength = strlen($meta['description']);
if($descLength < 120){$meta['description'] .= " " . __($projectObj->getCityName(),'realia').' - '. __('Property Shop Investment','realia').' - '. __('Book a viewing today!', 'realia');}
else{$meta['description'] .= ' '.__('PSI','realia');}
/home/psinv/public_html/src/pages/header.php
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta name="facebook-domain-verification" content="ezmak3v00vwq5o11bvf5siduu44wgs" />
<meta charset="utf-8">
<link rel="canonical" href="<?php echo crm_get_canonical_url(); ?>">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta http-equiv="Cache-control" content="public">
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1">
<?php $meta = crm_get_meta( $_route ); ?>
<title><?php echo $meta['title']; ?></title>
<meta name="description" content="<?php echo $meta['description']; ?>">
<meta name="author" content="<?php echo $meta['author']; ?>">
<meta name="keywords" content="<?php echo $meta['keywords']; ?>">
<meta property="og:title" content=" <?php echo $meta['title']; ?>" />
<meta property="og:type" content="website" />
<meta property="og:url" content="<?php echo crm_get_canonical_url(); ?>" />
<meta property="og:description" content=" <?php echo $meta['description']; ?>" />
<meta property="og:image:type" content="image/jpeg" />
<?php echo allowindex($_route);?>
/home/psinv/public_html/index.php
include sprintf(__DIR__.'/src/pages/%s.php', $_route);
if(!$hidehtml) include __DIR__.'/src/pages/footer-search-test.php';
}
elseif ($_route == 'international'|| $_route == 'test' || $_route =='international-test2'){
if(!$hidehtml) include __DIR__.'/src/pages/header-international.php';
include sprintf(__DIR__.'/src/pages/%s.php', $_route);
if(!$hidehtml) include __DIR__.'/src/pages/footer-content-international.php';
}
else {
if(!$hidehtml) include __DIR__.'/src/pages/header.php';
include sprintf(__DIR__.'/src/pages/%s.php', $_route);
if(!$hidehtml) include __DIR__.'/src/pages/footer.php';
}
} elseif( $amp ) {
include __DIR__.'/src/amp-pages/header.php';
include sprintf(__DIR__.'/src/amp-pages/%s.php', $_route);
include __DIR__.'/src/amp-pages/footer.php';
}