Updated results.php social meta.
This commit is contained in:
21
results.php
21
results.php
@ -12,9 +12,9 @@ $socialau = mb_convert_case($authorsearch, MB_CASE_TITLE, "UTF-8");
|
||||
$socialty = mb_convert_case($typesearch, MB_CASE_TITLE, "UTF-8");
|
||||
|
||||
if (!empty($keywordsearch)) {
|
||||
$searchtopic = $socialkw;
|
||||
$searchtopic = 'Keyword: '.$socialkw;
|
||||
} elseif (!empty($authorsearch)) {
|
||||
$searchtopic = $socialau;
|
||||
$searchtopic = 'Author: '.$socialau;
|
||||
} else {
|
||||
$searchtopic = 'Type: '.$socialty;
|
||||
}
|
||||
@ -105,16 +105,19 @@ ORDER BY books.title ASC");
|
||||
<meta property="og:image" content=<?php echo '"'.$SiteURL.'/images/og-site-avatar.jpg" />';?>
|
||||
|
||||
<?php
|
||||
if (empty($keywordsearch)) {
|
||||
echo '<meta property="og:url" content="'.$SiteURL.'/results.php?au='.$searchtopic.'" />';
|
||||
echo '<meta name="twitter:url" content="'.$SiteURL.'/results.php?au='.$searchtopic.'" />';
|
||||
if (!empty($keywordsearch)) {
|
||||
echo '<meta property="og:url" content="'.$SiteURL.'/results.php?kw='.$socialkw.'" />';
|
||||
echo '<meta name="twitter:url" content="'.$SiteURL.'/results.php?kw='.$socialkw.'" />';
|
||||
} elseif (!empty($authorsearch)) {
|
||||
echo '<meta property="og:url" content="'.$SiteURL.'/results.php?au='.$socialau.'" />';
|
||||
echo '<meta name="twitter:url" content="'.$SiteURL.'/results.php?au='.$socialau.'" />';
|
||||
} else {
|
||||
echo '<meta property="og:url" content="'.$SiteURL.'/results.php?kw='.$searchtopic.'" />';
|
||||
echo '<meta name="twitter:url" content="'.$SiteURL.'/results.php?au='.$searchtopic.'" />';
|
||||
echo '<meta property="og:url" content="'.$SiteURL.'/results.php?ty='.$socialty.'" />';
|
||||
echo '<meta name="twitter:url" content="'.$SiteURL.'/results.php?ty='.$socialty.'" />';
|
||||
}
|
||||
?>
|
||||
|
||||
<meta property="og:site_name" content=<?php echo '"'.$SiteName.' - Search" />';?>
|
||||
<meta property="og:site_name" content=<?php echo '"'.$SiteName.' - Search Results" />';?>
|
||||
|
||||
<meta property="og:description" content=<?php echo '"'.$SubName.'" />';?>
|
||||
|
||||
@ -206,7 +209,7 @@ ORDER BY books.title ASC");
|
||||
<li><a href="#"><i class="icon-instagram"></i></a></li>
|
||||
</ul> -->
|
||||
<div class="col-lg-12 col-md-12 text-center">
|
||||
<h1 id="fh5co-logo"><a href="index.php">Search Results - <?php echo $searchtopic; ?></a></h1>
|
||||
<h1 id="fh5co-logo"><a href="index.php">Search Results<br /><br /><?php echo $searchtopic; ?></a></h1>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user