function modChrome_submenu($module, &$params, &$attribs)
{
global $Itemid;
$start = $params->get('startLevel');
$tabmenu = &JSite::getMenu();
$item = $tabmenu->getItem($Itemid);
if (isset($item)) {
$tparent = $tabmenu->getItem($item->parent);
while ($tparent != null && $tparent->parent != 0) {
if ($item->sublevel == $start-1) break;
$item = $tabmenu->getItem($item->parent);
$tparent = $tabmenu->getItem($item->parent);
}
if (!empty ($module->content) && strlen($module->content) > 40 && $item->sublevel == $start-1) { ?>
<div class="module-hilite2a"><div><div><div>
<h3><?php echo $item->name; ?></h3>
<?php echo $module->content; ?>
</div></div></div></div>
<?php
} elseif (!empty ($module->content) && strlen($module->content) > 40 && $item->sublevel != $start-1) { ?>
<div class="module-hilite2a"><div><div><div>
<h3><?php echo $tparent->name; ?></h3>
<?php echo $module->content; ?>
</div></div></div></div
<?php
} }
}
?>
Time to create page: 0.062 seconds