1
0
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:
Cameron
2017-02-13 18:14:26 -08:00
parent 4fa8e47247
commit f6612410e0
5 changed files with 81 additions and 30 deletions

View File

@@ -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']);