1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-29 01:00:20 +02:00

News updated to support the {SOCIALSHARE} shortcode in its 'default' template.

This commit is contained in:
Cameron
2014-02-18 12:58:03 -08:00
parent 791944d394
commit 1b86e2c8b5
3 changed files with 48 additions and 14 deletions

View File

@@ -820,11 +820,18 @@ 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']));
e107::getScBatch('social')->setVars($socialArray);
if(function_exists("news_style")) // BC
{
$template = news_style($news, $action, $param);
}
// render new date header if pref selected ...
$thispostday = strftime("%j", $news['news_datestamp']);
if ($newpostday != $thispostday && (isset($pref['news_newdateheader']) && $pref['news_newdateheader']))
@@ -839,6 +846,9 @@ else
}
// $template = false;
$ix->render_newsitem($news, 'default', '', $template, $param);
$i++;
}