mirror of
https://github.com/e107inc/e107.git
synced 2025-08-29 09:10:23 +02:00
FontAwesome version update. News shortcode wrapper issue corrected.
This commit is contained in:
@@ -373,11 +373,15 @@ class news {
|
||||
|
||||
|
||||
// Retrieve batch sc object, set required vars
|
||||
|
||||
$wrapperKey = (!empty($param['template_key'])) ? 'news/'.$param['template_key'].'/item' : 'news/view/item';
|
||||
|
||||
$sc = e107::getScBatch('news')
|
||||
->wrapper('news/view/item')
|
||||
->wrapper($wrapperKey)
|
||||
->setScVar('news_item', $news)
|
||||
->setScVar('param', $param);
|
||||
|
||||
|
||||
$text = e107::getParser()->parseTemplate($NEWS_PARSE, true, $sc);
|
||||
|
||||
if ($mode == 'return')
|
||||
|
Reference in New Issue
Block a user