mirror of
https://github.com/e107inc/e107.git
synced 2025-08-03 05:07:27 +02:00
Added 'limit' parm to {CHAPTER_MENUS}
This commit is contained in:
@@ -211,6 +211,12 @@ class page_shortcodes extends e_shortcode
|
|||||||
$i = 0;
|
$i = 0;
|
||||||
foreach($pageArray as $row)
|
foreach($pageArray as $row)
|
||||||
{
|
{
|
||||||
|
if(!empty($parm['limit']) && $c > $parm['limit'])
|
||||||
|
{
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
$row['cmenu_tab_active'] = ($c === (int) $active) ? true : false;
|
$row['cmenu_tab_active'] = ($c === (int) $active) ? true : false;
|
||||||
|
|
||||||
if(empty($parm['template']))
|
if(empty($parm['template']))
|
||||||
|
Reference in New Issue
Block a user