function beginMenu($startlevel = 0, $endlevel = 10)
        {
            $direction = "TransMenu.direction." . $this->getParam('menu_direction', 'down');
            $position = "TransMenu.reference." . $this->getParam('menu_position', 'bottomLeft');
            $top = $this->getParam('p_t', 0);
            $left = $this->getParam('p_l', 0);
            $subpad_x = $this->getParam('subpad_x', 0);
            $subpad_y = $this->getParam('subpad_y', 0);
            echo '<ul id="ja-transmenu">';
            $i = 0;
            foreach ($this->children[0] as $v) {
                echo "<li>";
                $pos = $i == 0 ? 'first' : ($i == count($this->children[0]) - 1 ? 'last' : '');
                parent::genMenuItem($v, 0, $pos);
                $i++;
                echo "</li>";
            }
            echo '</ul>';
            echo '
				<script type="text/javascript" language="javascript">
				//<!--[CDATA[
				if (TransMenu.isSupported()) {
					TransMenu.updateImgPath(\'', dirname(__FILE__), '/\');
					var ms = new TransMenuSet(', $direction, ', ', $left, ', ', $top, ', ', $position, ');
					TransMenu.subpad_x = ', $subpad_x, ';
					TransMenu.subpad_y = ', $subpad_y, ';

				';
        }
 function genMenu($startlevel = 0, $endlevel = 10)
 {
     if ($startlevel == 0) {
         parent::genMenu(0, 0);
     } else {
         parent::genMenu($startlevel, $endlevel);
     }
 }
Example #3
0
 function genMenu($startlevel = 0, $endlevel = 10)
 {
     if ($startlevel == 0) {
         parent::genMenu(0, 0);
     } else {
         $this->setParam('startlevel', $startlevel);
         $this->setParam('endlevel', $endlevel);
         $this->beginMenu($startlevel, $endlevel);
         //Sub level
         $pid = $this->getParentId($startlevel - 1);
         if (@$this->children[$pid]) {
             foreach ($this->children[$pid] as $row) {
                 if (@$this->children[$row->id]) {
                     $this->genMenuItems($row->id, $startlevel);
                 }
             }
         }
         $this->endMenu($startlevel, $endlevel);
     }
 }
Example #4
0
 function genMenuItem($item, $level = 0, $pos = '', $ret = 0)
 {
     //if ($level) return parent::genMenuItem($item, $level, '', $ret);
     //else
     return parent::genMenuItem($item, $level, $pos, $ret);
 }
}
if ($ja_left && $ja_right) {
    $divid = '';
} elseif ($ja_left) {
    $divid = '-fr';
} elseif ($ja_right) {
    $divid = '-fl';
} else {
    $divid = '-f';
}
//Main navigation
$ja_menutype = $tmpTools->getParam(JA_TOOL_MENU);
$jamenu = null;
if ($ja_menutype != 'none') {
    include_once dirname(__FILE__) . DS . 'menus/Base.class.php';
    $japarams = JA_Base::createParameterObject('');
    $japarams->set('menutype', $tmpTools->getParam('menutype', 'mainmenu'));
    $japarams->set('menu_images_align', 'left');
    $japarams->set('menupath', $tmpTools->templateurl() . '/menus');
    $japarams->set('menu_title', 0);
    $japarams->set('menu_title', 0);
    $japarams->set('menu_images', 0);
    switch ($ja_menutype) {
        case 'css':
            $menu = "CSSmenu";
            include_once dirname(__FILE__) . DS . 'menus/' . $menu . '.class.php';
            break;
        case 'moo':
            $menu = "Moomenu";
            include_once dirname(__FILE__) . DS . 'menus/' . $menu . '.class.php';
            break;