mirror of
https://github.com/e107inc/e107.git
synced 2025-08-05 14:17:49 +02:00
SEO robots meta tags added.
This commit is contained in:
@@ -540,9 +540,13 @@ class news_front
|
|||||||
$this->addDebug('setNewsFrontMeta (type)',$type);
|
$this->addDebug('setNewsFrontMeta (type)',$type);
|
||||||
// $this->addDebug('setNewsFrontMeta (data)',$news);
|
// $this->addDebug('setNewsFrontMeta (data)',$news);
|
||||||
|
|
||||||
|
|
||||||
switch($type)
|
switch($type)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
case "all":
|
||||||
|
e107::meta('robots', 'noindex');
|
||||||
|
break;
|
||||||
|
|
||||||
case "tag":
|
case "tag":
|
||||||
case "author":
|
case "author":
|
||||||
if(!defined('e_PAGETITLE'))
|
if(!defined('e_PAGETITLE'))
|
||||||
@@ -550,6 +554,8 @@ class news_front
|
|||||||
define('e_PAGETITLE', $this->subAction);
|
define('e_PAGETITLE', $this->subAction);
|
||||||
e107::meta('og:title', $this->subAction);
|
e107::meta('og:title', $this->subAction);
|
||||||
}
|
}
|
||||||
|
e107::meta('robots', 'noindex');
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case "list":
|
case "list":
|
||||||
@@ -559,6 +565,7 @@ class news_front
|
|||||||
define('e_PAGETITLE', $title );
|
define('e_PAGETITLE', $title );
|
||||||
e107::meta('og:title', $title);
|
e107::meta('og:title', $title);
|
||||||
}
|
}
|
||||||
|
e107::meta('robots', 'noindex');
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case "day":
|
case "day":
|
||||||
@@ -585,6 +592,7 @@ class news_front
|
|||||||
define('e_PAGETITLE', $title );
|
define('e_PAGETITLE', $title );
|
||||||
e107::meta('og:title', $title);
|
e107::meta('og:title', $title);
|
||||||
}
|
}
|
||||||
|
e107::meta('robots', 'noindex');
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user