mirror of
https://github.com/Xkeeper0/jul.git
synced 2025-08-19 14:33:48 -07:00
Fix and add thread meta tags
This commit is contained in:
@@ -376,15 +376,14 @@
|
|||||||
if (filter_bool($meta['noindex']))
|
if (filter_bool($meta['noindex']))
|
||||||
$metatag .= "<meta name=\"robots\" content=\"noindex,follow\" />";
|
$metatag .= "<meta name=\"robots\" content=\"noindex,follow\" />";
|
||||||
|
|
||||||
if (filter_bool($meta['description']))
|
if (isset($meta['description']))
|
||||||
$metatag .= "<meta name=\"description\" content=\"{$meta['description']}\" />";
|
$metatag .= "<meta name=\"description\" content=\"{$meta['description']}\" />";
|
||||||
|
|
||||||
if (filter_bool($x_hacks['smallbrowse']) and false) {
|
if (isset($meta['canonical'])) {
|
||||||
$css = "";
|
$metatag .= "<link rel='canonical' href='{$meta['canonical']}'";
|
||||||
$css = "<link rel='stylesheet' href='/mobile.css'>";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$header1="<html><head><meta http-equiv='Content-type' content='text/html; charset=utf-8'><title>$windowtitle</title>
|
$header1="<html><head><meta http-equiv='Content-type' content='text/html; charset=utf-8'><meta name='viewport' content='width=device-width, initial-scale=1'><title>$windowtitle</title>
|
||||||
$metatag
|
$metatag
|
||||||
<link rel=\"shortcut icon\" href=\"/favicon". (!$x_hacks['host'] ? rand(1,8) ."" : "" ) .".ico\" type=\"image/x-icon\">
|
<link rel=\"shortcut icon\" href=\"/favicon". (!$x_hacks['host'] ? rand(1,8) ."" : "" ) .".ico\" type=\"image/x-icon\">
|
||||||
$css
|
$css
|
||||||
@@ -540,6 +539,3 @@ piwikTracker.enableLinkTracking();
|
|||||||
<br>
|
<br>
|
||||||
<br>E-mail: xkeeper@gmail.com
|
<br>E-mail: xkeeper@gmail.com
|
||||||
$tblend$footer");
|
$tblend$footer");
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@@ -56,6 +56,9 @@
|
|||||||
}
|
}
|
||||||
$numposts = $sql->resultq("SELECT COUNT(*) FROM `posts` WHERE `thread` = '{$id}' AND `id` < '{$pid}'");
|
$numposts = $sql->resultq("SELECT COUNT(*) FROM `posts` WHERE `thread` = '{$id}' AND `id` < '{$pid}'");
|
||||||
$page = floor($numposts / $ppp);
|
$page = floor($numposts / $ppp);
|
||||||
|
|
||||||
|
// Canonical page w/o ppp link (for bots)
|
||||||
|
$meta['canonical'] = "thread.php?id=$id&page=$page";
|
||||||
}
|
}
|
||||||
|
|
||||||
define('E_BADPOSTS', -1);
|
define('E_BADPOSTS', -1);
|
||||||
|
Reference in New Issue
Block a user