mirror of
https://github.com/e107inc/e107.git
synced 2025-08-03 13:17:24 +02:00
Merge pull request #2903 from Serios/patch-11
og:image setting if there is no already set one
This commit is contained in:
@@ -18,13 +18,6 @@ if(e_ADMIN_AREA !==true)
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$ogImage = e107::pref('social','og_image', false);
|
|
||||||
if(!empty($ogImage))
|
|
||||||
{
|
|
||||||
e107::meta('og:image',e107::getParser()->thumbUrl($ogImage,'w=500',false,true));
|
|
||||||
unset($ogImage);
|
|
||||||
}
|
|
||||||
|
|
||||||
if(deftrue('XURL_TWITTER') && XURL_TWITTER !== '#')
|
if(deftrue('XURL_TWITTER') && XURL_TWITTER !== '#')
|
||||||
{
|
{
|
||||||
$screenName = basename(XURL_TWITTER);
|
$screenName = basename(XURL_TWITTER);
|
||||||
@@ -69,4 +62,4 @@ if(e_ADMIN_AREA !==true)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
Reference in New Issue
Block a user