diff --git a/e107_handlers/application.php b/e107_handlers/application.php index ebb2ec8e4..8f700e2d4 100644 --- a/e107_handlers/application.php +++ b/e107_handlers/application.php @@ -4014,7 +4014,10 @@ class eResponse protected $_render_mod = array('default' => 'default'); protected $_meta_title_separator = ' - '; protected $_meta_name_only = array('keywords', 'viewport', 'robots'); // Keep FB happy. - protected $_meta_property_only = array('article:section', 'article:tag'); // Keep FB happy. + protected $_meta_property_only = array( // Keep FB happy. + 'article:section', 'article:tag', 'article:modified_time', + 'og:description', 'og:image', 'og:title', + ); protected $_meta = array(); protected $_meta_robot_types = array('noindex'=>'NoIndex', 'nofollow'=>'NoFollow','noarchive'=>'NoArchive','noimageindex'=>'NoImageIndex' ); protected $_title_separator = ' » '; diff --git a/e107_handlers/theme_handler.php b/e107_handlers/theme_handler.php index 4133f6271..88a5ca6c2 100644 --- a/e107_handlers/theme_handler.php +++ b/e107_handlers/theme_handler.php @@ -1196,7 +1196,7 @@ class e_theme ); } - e107::getDebug()->log($ret); + // e107::getDebug()->log($ret); return $ret; } diff --git a/e107_plugins/news/news.php b/e107_plugins/news/news.php index 9051405ba..7b0e30706 100644 --- a/e107_plugins/news/news.php +++ b/e107_plugins/news/news.php @@ -671,8 +671,9 @@ class news_front { continue; } - e107::meta('og:image',$tp->thumbUrl($mimg,'w=500',false,true) ); - // e107::meta('og:image',$mimg); + e107::meta('og:image',$tp->thumbUrl($mimg,'w=1200',false,true) ); + e107::meta('og:image:width', 1200); + } } @@ -704,6 +705,8 @@ class news_front e107::meta('og:url',$url); e107::meta('article:section',$news['category_name']); + e107::meta('article:modified_time', date('c', $news['news_datestamp'])); + if($news['news_meta_keywords'] && !defined('META_KEYWORDS')) {