mirror of
https://github.com/e107inc/e107.git
synced 2025-01-17 20:58:30 +01:00
Fixes #4351 Gsitemap canonical link.
This commit is contained in:
parent
5c9e04373e
commit
b286d66e88
23
e107_plugins/gsitemap/e_header.php
Normal file
23
e107_plugins/gsitemap/e_header.php
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
<?php
|
||||||
|
/*
|
||||||
|
* e107 website system
|
||||||
|
*
|
||||||
|
* Copyright (C) 2008-2014 e107 Inc (e107.org)
|
||||||
|
* Released under the terms and conditions of the
|
||||||
|
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
|
||||||
|
*
|
||||||
|
* Related configuration module - News
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
if (!defined('e107_INIT')) { exit; }
|
||||||
|
|
||||||
|
if(deftrue('USER_AREA') && (defset('e_PAGE') === 'gsitemap.php'))
|
||||||
|
{
|
||||||
|
$canonicalurl = e107::url('gsitemap', 'index', null, array('mode' => 'full'));
|
||||||
|
e107::link(array('rel'=>"canonical", "href" =>$canonicalurl));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -16,10 +16,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
if (!defined('e107_INIT')) { exit; }
|
if (!defined('e107_INIT')) { exit; }
|
||||||
if(!e107::isInstalled('gsitemap'))
|
|
||||||
{
|
|
||||||
return '';
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user