mirror of
https://github.com/e107inc/e107.git
synced 2025-08-11 00:54:49 +02:00
News tags/keyword are now included in the twitter share link.
This commit is contained in:
5
news.php
5
news.php
@@ -831,15 +831,14 @@ else
|
||||
$news = $newsAr[$i];
|
||||
|
||||
// Set the Values for the social shortcode usage.
|
||||
$socialArray = array('url'=>e107::getUrl()->create('news/view/item', $news, 'full=1'), 'title'=>$tp->toText($news['news_title']));
|
||||
$socialArray = array('url'=>e107::getUrl()->create('news/view/item', $news, 'full=1'), 'title'=>$tp->toText($news['news_title']), 'tags'=>$news['news_meta_keywords']);
|
||||
$socialObj = e107::getScBatch('social');
|
||||
|
||||
if(is_object($socialObj))
|
||||
{
|
||||
$socialObj->setVars($socialArray);
|
||||
}
|
||||
|
||||
|
||||
|
||||
if(function_exists("news_style")) // BC
|
||||
{
|
||||
$template = news_style($news, $action, $param);
|
||||
|
Reference in New Issue
Block a user