mirror of
https://github.com/e107inc/e107.git
synced 2025-09-02 10:53:29 +02:00
Custom-Page navigation menu and shortcode added.
This commit is contained in:
@@ -1407,10 +1407,8 @@ class e_navigation
|
||||
$sc = e107::getScBatch('navigation');
|
||||
$sc->template = $template;
|
||||
$ret = $template['start'];
|
||||
|
||||
|
||||
foreach ($data as $_data)
|
||||
{
|
||||
{
|
||||
$sc->setVars($_data);
|
||||
$active = ($this->isActive($_data)) ? "_active" : "";
|
||||
$itemTmpl = count($_data['link_sub']) > 0 ? $template['item_submenu'.$active] : $template['item'.$active];
|
||||
@@ -1529,6 +1527,11 @@ class navigation_shortcodes extends e_shortcode
|
||||
{
|
||||
return e107::getParser()->toHtml($this->var['link_name'],false,'defs');
|
||||
}
|
||||
|
||||
function sc_link_parent($parm='')
|
||||
{
|
||||
return intval($this->var['link_parent']);
|
||||
}
|
||||
|
||||
function sc_link_url($parm='')
|
||||
{
|
||||
|
Reference in New Issue
Block a user