mirror of
https://github.com/e107inc/e107.git
synced 2025-08-01 04:10:38 +02:00
Using e107::title() will now automatically add an og:title meta value if one isn't already defined.
This commit is contained in:
@@ -136,6 +136,7 @@ else
|
|||||||
if(!defined('e_PAGETITLE') && ($_PAGE_TITLE = e107::getSingleton('eResponse')->getMetaTitle())) // use e107::title() to set.
|
if(!defined('e_PAGETITLE') && ($_PAGE_TITLE = e107::getSingleton('eResponse')->getMetaTitle())) // use e107::title() to set.
|
||||||
{
|
{
|
||||||
define('e_PAGETITLE', $_PAGE_TITLE);
|
define('e_PAGETITLE', $_PAGE_TITLE);
|
||||||
|
e107::meta('og:title', $_PAGE_TITLE); // will only populate if not already defined.
|
||||||
unset($_PAGE_TITLE);
|
unset($_PAGE_TITLE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -158,7 +158,6 @@ if (isset($_POST['commentsubmit']))
|
|||||||
|
|
||||||
// e107::getMessage()->addDebug("TITLE: " . $pageTitle);
|
// e107::getMessage()->addDebug("TITLE: " . $pageTitle);
|
||||||
|
|
||||||
e107::meta('og:title', $pageTitle);
|
|
||||||
e107::title($pageTitle);
|
e107::title($pageTitle);
|
||||||
|
|
||||||
if(!empty($ftmp['pagedescription']))
|
if(!empty($ftmp['pagedescription']))
|
||||||
@@ -166,7 +165,7 @@ if (isset($_POST['commentsubmit']))
|
|||||||
e107::meta('og:description', $ftmp['pagedescription']);
|
e107::meta('og:description', $ftmp['pagedescription']);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
require_once (HEADERF);
|
require_once (HEADERF);
|
||||||
|
|
||||||
e107::getRender()->tablerender($ftmp['caption'], $ftmp['text']);
|
e107::getRender()->tablerender($ftmp['caption'], $ftmp['text']);
|
||||||
|
Reference in New Issue
Block a user