mirror of
https://github.com/e107inc/e107.git
synced 2025-08-15 19:14:09 +02:00
News Grid template simplified. Template/Layout combination consolidated into 'layout' only.
This commit is contained in:
@@ -62,6 +62,11 @@ class news_shortcodes extends e_shortcode
|
||||
$text = e107::getParser()->toAttribute($text);
|
||||
}
|
||||
|
||||
if(!empty($this->param['titleLimit']))
|
||||
{
|
||||
$parm['limit'] = $this->param['titleLimit'];
|
||||
}
|
||||
|
||||
if(!empty($parm['limit']))
|
||||
{
|
||||
$text = e107::getParser()->text_truncate($text, $parm['limit']);
|
||||
@@ -583,6 +588,12 @@ class news_shortcodes extends e_shortcode
|
||||
}
|
||||
}
|
||||
|
||||
if(!empty($this->param['summaryLimit']))
|
||||
{
|
||||
$parm['limit'] = $this->param['summaryLimit'];
|
||||
}
|
||||
|
||||
|
||||
if(!empty($parm['limit']))
|
||||
{
|
||||
$text = e107::getParser()->text_truncate($text, $parm['limit']);
|
||||
|
Reference in New Issue
Block a user