1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-04 13:47:31 +02:00

Fix not parsed shortcode LINK_PARENT

This commit is contained in:
SecretR
2013-03-04 16:38:31 +02:00
parent 0ff6b981a8
commit 01fff7511c
2 changed files with 5 additions and 3 deletions

View File

@@ -161,7 +161,7 @@ $sc_style['CPAGENAV|default']['post'] = '</div>';
$PAGE_TEMPLATE['nav']['end'] = '</ul>';
$PAGE_TEMPLATE['nav']['submenu_start'] = '<ul class="page-nav" id="{LINK_PARENT}" role="menu" >';
$PAGE_TEMPLATE['nav']['submenu_start'] = '<ul class="page-nav" id="page-nav-{LINK_PARENT}" role="menu" >';
$PAGE_TEMPLATE['nav']['submenu_item'] = '

View File

@@ -1465,7 +1465,8 @@ class navigation_shortcodes extends e_shortcode
return;
}
$text = $this->template['submenu_start'];
// XXX possible dead loop if LINK_SUB SC present in submenu_start template
$text = e107::getParser()->parseTemplate($this->template['submenu_start'], true, $this);
foreach($this->var['link_sub'] as $val)
{
@@ -1475,7 +1476,8 @@ class navigation_shortcodes extends e_shortcode
$text .= e107::getParser()->parseTemplate($tmpl, TRUE);
}
$text .= $this->template['submenu_end'];
// XXX possible dead loop if LINK_SUB SC present in submenu_end template
$text .= e107::getParser()->parseTemplate($this->template['submenu_end'], true, $this);
return $text;
}