1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-13 01:54:12 +02:00

Support for class attribute. {NAVIGATION: class=xxxx}

Class value in navigation template: {NAV_CLASS}
Navigation shortcodes now in their own file.
This commit is contained in:
Cameron
2020-12-27 12:46:37 -08:00
parent 6ed9ad3e0d
commit 71c5be17ea
3 changed files with 353 additions and 320 deletions

View File

@@ -1,13 +1,13 @@
<?php
/**
* @param null $parm
* @param string ['type'] main|side|footer|alt|alt5|alt6 (the data)
* @param string ['layout'] main|side|footer|alt|alt5|alt6| or custom template key. (the template)
* @return string
*/
function navigation_shortcode($parm=null)
/**
* @param null $parm
* @param string ['type'] main|side|footer|alt|alt5|alt6 (the data)
* @param string ['layout'] main|side|footer|alt|alt5|alt6| or custom template key. (the template)
* @return string
*/
function navigation_shortcode($parm=null)
{
$types = array(
'main' => 1,
@@ -45,9 +45,9 @@
$nav = e107::getNav();
$template = e107::getCoreTemplate('navigation', $tmpl);
$data = $nav->initData($category,$parm);
$data = $nav->initData($category, $parm);
return $nav->render($data, $template);
return $nav->render($data, $template, $parm);
}