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:
10
news.php
10
news.php
@@ -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++;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user