?
Path : /home/admin/public_html/old/board/templates/ja_rutile/ |
Current File : /home/admin/public_html/old/board/templates/ja_rutile/ja_vars_1.5.php |
<?php /*------------------------------------------------------------------------ # JA Rutile for Joomla 1.5 - Version 1.0 - Licence Owner JA122250 # ------------------------------------------------------------------------ # Copyright (C) 2004-2008 J.O.O.M Solutions Co., Ltd. All Rights Reserved. # @license - Copyrighted Commercial Software # Author: J.O.O.M Solutions Co., Ltd # Websites: http://www.joomlart.com - http://www.joomlancers.com # This file may not be redistributed in whole or significant part. -------------------------------------------------------------------------*/ // no direct access defined( '_JEXEC' ) or die( 'Restricted access' ); include_once (dirname(__FILE__).DS.'/ja_templatetools_1.5.php'); $mainframe =& JFactory::getApplication('site'); if (defined('_DEMO_MODE_')) $tmpTools = new JA_Tools($this, array(JA_TOOL_MENU, JA_TOOL_COLOR)); else $tmpTools = new JA_Tools($this); $tmpTools->setScreenSizes (array('wide','narrow')); $tmpTools->setColorThemes (array('Default','Cyan','Red')); # Auto Collapse Divs Functions ########## $ja_left = $this->countModules('left'); $ja_right = $this->countModules('right'); 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.'ja_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() .'/ja_menus'); $japarams->set('menu_title', 0); switch ($ja_menutype) { case 'dl': $menu = "DLmenu"; include_once( dirname(__FILE__).DS.'ja_menus/'.$menu.'.class.php' ); break; case 'css': $menu = "CSSmenu"; include_once( dirname(__FILE__).DS.'ja_menus/'.$menu.'.class.php' ); break; case 'moo': $menu = "Moomenu"; include_once( dirname(__FILE__).DS.'ja_menus/'.$menu.'.class.php' ); break; case 'split': default: $menu = "Splitmenu"; include_once( dirname(__FILE__).DS.'ja_menus/'.$menu.'.class.php' ); break; } $menuclass = "JA_$menu"; $jamenu = new $menuclass ($japarams); $hasSubnav = false; if ($jamenu->hasSubMenu (1) && $jamenu->showSeparatedSub ) $hasSubnav = true; } //End for main navigation ?>