<?php /* # ------------------------------------------------------------------------ # JA T3v2 Plugin - Template framework for Joomla 1.5 # ------------------------------------------------------------------------ # Copyright (C) 2004-2010 JoomlArt.com. All Rights Reserved. # @license - GNU/GPL V2, http://www.gnu.org/licenses/gpl2.html. For details # on licensing, Please Read Terms of Use at http://www.joomlart.com/terms_of_use.html. # Author: JoomlArt.com # Websites: http://www.joomlart.com - http://www.joomlancers.com. # ------------------------------------------------------------------------ */ $modules = preg_split('/,/', T3Common::node_data($block)); $parent = T3Common::node_attributes($block, 'parent', 'middle'); $style = $this->getBlockStyle($block, $parent); if (!$this->countModules(T3Common::node_data($block))) { return; } foreach ($modules as $module) { if ($this->countModules($module)) { ?> <jdoc:include type="module" name="<?php echo $module; ?> " style="<?php echo $style; ?> " /> <?php }
/** * Get layout infomation * * @param string $layout Layout name * * @return array Layout info */ public static function get_layout_info($layout = '') { static $layout_infos = array(); $params = T3Common::get_template_params(); $device = T3Common::mobile_device_detect(); if (!$layout || !T3Common::layout_exists($layout)) { $layout = T3Common::get_active_layout(); } if (!isset($layout_infos[$layout])) { $layout_infos[$layout] = null; $active_layout_path = T3Common::layout_exists($layout); $engine_layout_path = ''; $layout_info = null; if (is_file($active_layout_path)) { $layout_info = T3Common::getXML($active_layout_path); } // Detect engine layout to extend // If the layout property device is set, get the default engine layout by this property // If not found - get the engine layout by $device $basepath = T3Path::path(T3_BASETHEME) . DS . 'etc' . DS . 'layouts'; $layout_device = T3Common::node_attributes($layout_info, 'device', $device); $engine_layout_path = $basepath . DS . $layout_device . '.xml'; if (!is_file($engine_layout_path)) { if (!$device) { $engine_layout_path = $basepath . DS . 'default.xml'; } else { $engine_layout_path = $basepath . DS . $device . '.xml'; if (!is_file($engine_layout_path)) { $engine_layout_path = $basepath . DS . 'handheld.xml'; } } } $engine_layout_path_temp = T3Common::getXML($engine_layout_path); if ($engine_layout_path != $active_layout_path && is_file($engine_layout_path)) { $layout_info = $layout_info ? T3Common::merge_info($engine_layout_path_temp, $layout_info) : T3Common::getXML($engine_layout_path); } $layout_infos[$layout] = $layout_info; } return $layout_infos[$layout]; }
/** * ------------------------------------------------------------------------ * JA T3v2 System Plugin for J3.x * ------------------------------------------------------------------------ * Copyright (C) 2004-2011 J.O.O.M Solutions Co., Ltd. All Rights Reserved. * @license - GNU/GPL, http://www.gnu.org/licenses/gpl.html * Author: J.O.O.M Solutions Co., Ltd * Websites: http://www.joomlart.com - http://www.joomlancers.com * ------------------------------------------------------------------------ */ // No direct access defined('_JEXEC') or die; $language = JFactory::getLanguage(); $language->load('plg_system_jat3', JPATH_ADMINISTRATOR, 'en-GB', true); //get reference of this block and update its no-wrap attribute $block =& $this->getBlockXML(T3Common::node_attributes($block, 'name'), T3Common::node_attributes($block, 'parent', 'middle')); T3Common::set_node_attributes($block, 'no-wrap', 1); T3Common::set_node_attributes($block, 'no-main', 1); if (!$this->getParam('option_layouts') && !$this->getParam('option_screen') && !$this->getParam('option_font') && !$this->getParam('option_themes') && !$this->getParam('option_direction') && !$this->getParam('option_menu')) { return; } ?> <div id="ja-cpanel-wrapper"> <div id="ja-cpanel"> <div id="ja-cpanel-main"> <div class="ja-cpanel-head clearfix"> <a href="http://wiki.joomlart.com/wiki/JA_T3_Framework_2/Overview" class="first" title="About T3"><span>About</span></a> <a href="http://wiki.joomlart.com/wiki/JA_T3_Framework_2/Guides" title="Guides"><span>Guides</span></a> <a href="http://wiki.joomlart.com/wiki/JA_T3_Framework_2/FAQs" title="FAQs"><span>FAQs</span></a> </div> <div class="ja-cpanel-tools clearfix">
</div> <?php } ?> </div> <!-- //RIGHT COLUMN--> <?php } ?> <?php $this->genBlockEnd($this->getBlocksXML('middle')); ?> </div> <?php //Add fix height for main area if (T3Common::node_attributes($this->getBlocksXML('middle'), 'fixheight')) { $this->showBlock('fixheight'); } ?> <!-- //MAIN CONTAINER --> <?php $blks =& $this->getBlocksXML('bottom'); $blocks =& T3Common::node_children($blks, 'block'); foreach ($blocks as $block) { //if (T3Common::getBrowserSortName() == 'ie' && T3Common::getBrowserMajorVersion() == 7) echo "<br class=\"clearfix\"/>"; $this->showBlock($block); } ?> </div>
* ------------------------------------------------------------------------ * Copyright (C) 2004-2011 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; //$spotlight = array ('user1','user2','user3','user4','user5'); $spotlight = preg_split('/,/', T3Common::node_data($block)); $name = T3Common::node_attributes($block, 'name'); $special = T3Common::node_attributes($block, 'special'); $specialwidth = T3Common::node_attributes($block, 'specialwidth'); $totalwidth = T3Common::node_attributes($block, 'totalwidth', 100); $style = $this->getBlockStyle($block); $botsl = $this->calSpotlight($spotlight, $totalwidth, $specialwidth, $special); if ($botsl) { ?> <!-- SPOTLIGHT --> <?php foreach ($spotlight as $pos) { if ($this->countModules($pos)) { ?> <div class="ja-box-wrap column ja-box<?php echo $botsl[$pos]['class']; ?> " style="width: <?php echo $botsl[$pos]['width'];
/** * Get class of body tag * * @return string */ function getBodyClass() { // font class $cls = ''; // body class from layout $layout = $this->getLayoutXML(); if ($bd_cls = T3Common::node_attributes($layout, 'body-class')) { $cls .= $bd_cls; } // get custom class $custom_cls = T3Hook::_('custom_body_class'); if ($custom_cls) { $cls .= " " . $custom_cls; } // make the font class to the last position $cls .= " " . 'fs' . $this->getParam(T3_TOOL_FONT, 3); // add component name to body class - should be used to override style // for some special components $option = JRequest::getCmd('option'); if ($option) { $cls .= ' ' . $option; } // class added from _body_class $cls .= ' ' . implode(' ', $this->_body_class); // add class body-rtl incase it is rtl if ($this->isRTL()) { $cls .= ' body-rtl'; } // add page class suffix class if exists // $menu = JSite::getMenu(); $menu = JFactory::getApplication()->getMenu(); $active = $menu->getActive(); if ($active) { // $params = new JParameter($active->params); // Strict standards: Declaration of JParameter::loadSetupFile() should be compatible with that of JRegistry::loadSetupFile() $params = $active->params; if (!$active->params instanceof JRegistry) { $params = new JRegistry($active->params); } if ($params->get('pageclass_sfx')) { $cls .= ' body' . $params->get('pageclass_sfx'); } } return trim($cls); }
} ?> </ul> </div> <?php if (!defined('_SWITCH_TAB_')) { define('_SWITCH_TAB_', 1); ?> <script type="text/javascript"> function jaswitchtab (tab) { //createCookie('<?php echo T3Common::node_attributes($block, 'name', 'tabs') . "-active-position"; ?> ', tab, 365); createCookie('<?php echo T3_ACTIVE_TEMPLATE . '_t3custom_' . T3Common::node_attributes($block, 'name', 'tabs') . "-active-position"; ?> ', tab, 365); window.location.reload(); } </script> <?php } } ?> <div class="ja-blocktab-content clearfix"> <jdoc:include type="modules" name="<?php echo $active; ?> " style="<?php
function getBodyClass() { //font class $cls = ''; //body class from layout $layout = $this->getLayoutXML(); if ($bd_cls = T3Common::node_attributes($layout, 'body-class')) { $cls .= $bd_cls; } //get custom class $custom_cls = T3Hook::_('custom_body_class'); if ($custom_cls) { $cls .= " " . $custom_cls; } //make the font class to the last position $cls .= " " . 'fs' . $this->getParam(T3_TOOL_FONT, 3); //add component name to body class - should be used to override style for some special components $option = JRequest::getCmd('option'); if ($option) { $cls .= ' ' . $option; } return $cls; }