1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-17 12:48:24 +01:00

Some additional Twitter meta.

This commit is contained in:
Cameron 2017-10-11 16:18:56 -07:00
parent 2a1f3b0d61
commit 166837f053
2 changed files with 6 additions and 1 deletions

View File

@ -492,6 +492,7 @@ class news_front
define('e_PAGETITLE', $news['news_title']);
e107::meta('og:title',$news['news_title']);
e107::meta('og:type','article');
e107::meta('twitter:card', 'summary');
}
if($news['news_meta_description'] && !defined('META_DESCRIPTION'))

View File

@ -25,7 +25,11 @@ if(e_ADMIN_AREA !==true)
unset($ogImage);
}
if(deftrue('XURL_TWITTER') && XURL_TWITTER !== '#')
{
$screenName = basename(XURL_TWITTER);
e107::meta('twitter:site','@'.$screenName);
}
if(!empty($appID))
{