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:
@@ -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);
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user