You've already forked joomla_test
first commit
This commit is contained in:
28
modules/mod_roknavmenu/themes/fusion/formatter.php
Normal file
28
modules/mod_roknavmenu/themes/fusion/formatter.php
Normal file
@ -0,0 +1,28 @@
|
||||
<?php
|
||||
/**
|
||||
* @version $Id: formatter.php 4585 2012-10-27 01:44:54Z btowles $
|
||||
* @author RocketTheme http://www.rockettheme.com
|
||||
* @copyright Copyright (C) 2007 - 2013 RocketTheme, LLC
|
||||
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
|
||||
*/
|
||||
// no direct access
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
class RokNavMenuFusionFormatter extends AbstractJoomlaRokMenuFormatter {
|
||||
function format_subnode(&$node) {
|
||||
// Format the current node
|
||||
|
||||
if ($node->getType() == 'menuitem' or $node->getType() == 'separator') {
|
||||
if ($node->hasChildren() ) {
|
||||
$node->addLinkClass("daddy");
|
||||
}
|
||||
$node->addLinkClass("item");
|
||||
}
|
||||
if ($node->getLevel() == "0") {
|
||||
$node->addListItemClass("root");
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user