1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-18 12:21:45 +02:00

Navigation renderer ready for testing. Awaiting active detection, cache, benchmark.

This commit is contained in:
SecretR
2012-12-14 16:32:39 +02:00
parent 56c4d48503
commit e47f9cf5eb
3 changed files with 128 additions and 43 deletions

View File

@@ -9,11 +9,17 @@ function navigation_shortcode($parm='')
'alt' => 4
);
$cat = varset($types[$parm], 1);
$category = varset($types[$parm], 1);
$tmpl = vartrue($parm, 'main');
$data = e107::getNav()->getData($cat);
//$data = e107::getNav()->getData($cat);
return e107::getNav()->render($data, $tmpl);
//return e107::getNav()->render($data, $tmpl);
$nav = e107::getNav();
$template = e107::getCoreTemplate('navigation', $tmpl);
$data = $nav->collection($category);
return $nav->render($data, $template);
}

View File

@@ -59,6 +59,7 @@ $NAVIGATION_TEMPLATE['main']['submenu_start'] = '
$NAVIGATION_TEMPLATE['main']['submenu_item'] = '
<li role="menuitem" >
<a href="{LINK_URL}">{LINK_IMAGE}{LINK_NAME}</a>
{LINK_SUB}
</li>
';
@@ -67,6 +68,7 @@ $NAVIGATION_TEMPLATE['main']['submenu_item'] = '
$NAVIGATION_TEMPLATE['main']['submenu_item_active'] = '
<li role="menuitem" class="active">
<a href="{LINK_URL}">{LINK_IMAGE}{LINK_NAME}</a>
{LINK_SUB}
</li>
';