Example #1
0
// no direct access
include_once dirname(__FILE__) . DS . '/includes/templatetools.php';
# BEGIN: TEMPLATE CONFIGURATIONS ##########
####################################
$_params = new JParameter();
#FONT SIZE DESCRIPTION
$_params->set('ja_font', '3');
//value from 1 to 6
#Color
$_params->set('ja_color', 'default');
//default, red
#TEMPLATE WIDTH DESCRIPTION
$_params->set('ja_screen', 'wide');
//narrow:Narrow Screen; wide:Wide Screen;
#MENU'S TYPE
$_params->set('ja_menu', 'css');
//css:CSS Menu; moo:Moo Menu;
$_params->set('usertool_font', 2);
//0: disable, 2: show font tools
$_params->set('usertool_color', 4);
//0: disable, 4: show font tools
# END: TEMPLATE CONFIGURATIONS ##########
global $tmpTools;
if (defined('_DEMO_MODE_')) {
    $tmpTools = new JA_Tools('jm_trex', $_params, array(JA_TOOL_MENU, JA_TOOL_COLOR));
    $tmpTools->checkHomepage();
} else {
    $tmpTools = new JA_Tools('jm_trex', $_params);
}
#Supported colors
$tmpTools->setColorThemes(array('default', 'blue', 'green', 'violet', 'yellow'));
Example #2
0
<?php

/**
 * @copyright	Copyright (C) 2005 - 2007 Open Source Matters. All rights reserved.
 * @license		GNU/GPL, see LICENSE.php
 * Joomla! is free software. This version may have been modified pursuant
 * to the GNU General Public License, and as distributed it includes or
 * is derivative of works licensed under the GNU General Public License or
 * other free or open source software licenses.
 * See COPYRIGHT.php for copyright notices and details.
 */
// no direct access
defined('_JEXEC') or die('Restricted access');
include_once dirname(__FILE__) . DS . '/ja_templatetools.php';
$tmpTools = new JA_Tools($this);
# Auto Collapse Divs Functions ##########
$ja_left = $this->countModules('left') || $tmpTools->getParam(JA_TOOL_MENU) == 1;
$ja_right = $this->countModules('right');
if ($ja_left && $ja_right) {
    $divid = '';
} elseif ($ja_left) {
    $divid = '-fr';
} elseif ($ja_right) {
    $divid = '-fl';
} else {
    $divid = '-f';
}
$curidx = $tmpTools->getCurrentMenuIndex();
//if ($curidx) $curidx--;
//Calculate the width of template
$tmpWidth = '';
# JA Zeolite for Joomla 1.5 - Version 1.0 - Licence Owner JA108425
# ------------------------------------------------------------------------
# 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', 'blue', 'red'));
# Auto Collapse Divs Functions ##########
$ja_left = $this->countModules('left');
$ja_right = $this->countModules('right');
if ($tmpTools->isContentEdit()) {
    $ja_right = $ja_left = 0;
}
if ($ja_left && $ja_right) {
    $divid = '';
} elseif ($ja_left) {
    $divid = '-fr';
} elseif ($ja_right) {
    $divid = '-fl';
Example #4
0
<?php

/**
 * @copyright	Copyright (C) 2005 - 2007 Open Source Matters. All rights reserved.
 * @license		GNU/GPL, see LICENSE.php
 * Joomla! is free software. This version may have been modified pursuant
 * to the GNU General Public License, and as distributed it includes or
 * is derivative of works licensed under the GNU General Public License or
 * other free or open source software licenses.
 * See COPYRIGHT.php for copyright notices and details.
 */
// no direct access
defined('_JEXEC') or die('Restricted access');
include_once dirname(__FILE__) . DS . '/ja_templatetools.php';
$tmpTools = new JA_Tools($this);
# Auto Collapse Divs Functions ##########
$ja_left = $this->countModules('left');
$ja_right = $this->countModules('right');
if ($ja_left && $ja_right) {
    $divid = '-both';
} elseif ($ja_left) {
    $divid = '-left';
} elseif ($ja_right) {
    $divid = '-right';
} else {
    $divid = '-none';
}
$curidx = $tmpTools->getCurrentMenuIndex();
//if ($curidx) $curidx--;
//Calculate the width of template
$tmpWidth = '';
Example #5
0
<?php

/*------------------------------------------------------------------------
# JA Larix  for Joomla 1.5 - Version 1.4 - Licence Owner JA130602
# ------------------------------------------------------------------------
# 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.php';
$tmpTools = new JA_Tools($this);
$tmpTools->setColorThemes(array('default', 'cyan', 'green'));
//Main navigation
$japarams = new JParameter('');
$japarams->set('menu_images_align', 'left');
$japarams->set('menutype', 'mainmenu');
$japarams->set('menupath', $tmpTools->templateurl() . '/ja_menus');
$menu = '';
switch ($tmpTools->getParam(JA_TOOL_MENU)) {
    case 3:
        $menu = "Transmenu";
        include_once dirname(__FILE__) . DS . 'ja_menus/' . $menu . '.class.php';
        break;
    case 2:
        $menu = "CSSmenu";
        include_once dirname(__FILE__) . DS . 'ja_menus/' . $menu . '.class.php';
        break;