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:
parent
2a1f3b0d61
commit
166837f053
@ -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'))
|
||||
|
@ -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))
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user