Example #1
0
 * ------------------------------------------------------------------------
 * Yt FrameWork for Joomla 3.0
 * ------------------------------------------------------------------------
 * Copyright (C) 2009 - 2012 The YouTech JSC. All Rights Reserved.
 * @license - GNU/GPL, http://www.gnu.org/licenses/gpl.html
 * Author: The YouTech JSC
 * Websites: http://www.smartaddons.com - http://www.cmsportal.net
 * ------------------------------------------------------------------------
*/
// no direct access
defined('_JEXEC') or die('Restricted access');
// Check intralled Yt Plugin
defined('YT_FRAMEWORK') or die(JTEXT::_("INSTALL_YT_PLUGIN"));
// Object of class YtTemplate(incluedes/yt_template.class.php)
global $yt;
$yt = new YtTemplate($this);
// Get Itemid
$Itemid = JRequest::getInt('Itemid');
// Returns a reference to the global document object
$doc = JFactory::getDocument();
//
$ytrtl = $yt->getParam('direction');
$float1 = $ytrtl == 'rtl' ? ' float:right; ' : ' float:left; ';
$float2 = $ytrtl == 'rtl' ? ' float:left; ' : ' float:right; ';
// BEGIN get param template
$font_name = $yt->getParam('font_name');
$fontsize = $yt->getParam('fontsize');
$windows_main_layout = $yt->getParam('default_main_layout');
$override_layouts = $yt->getParam('override_layouts');
$setGeneratorTag = $yt->getParam('setGeneratorTag');
$googleWebFont = $yt->getParam('googleWebFont');
Example #2
0
 * Author: The YouTech JSC
 * Websites: http://www.smartaddons.com - http://www.cmsportal.net
 * ------------------------------------------------------------------------
*/
defined('_JEXEC') or die('Restricted access');
include_once J_TEMPLATEDIR . J_SEPARATOR . 'includes' . J_SEPARATOR . 'lib' . J_SEPARATOR . 'template.php';
include_once J_TEMPLATEDIR . J_SEPARATOR . 'includes' . J_SEPARATOR . 'lib' . J_SEPARATOR . 'renderxml.php';
// Object of class YtTemplate
global $yt;
$doc = JFactory::getDocument();
$app = JFactory::getApplication();
$option = $app->input->get('option');
$Itemid = JRequest::getInt('Itemid');
// Array param for cookie
$params_cookie = array('bgimage', 'themecolor', 'templateLayout', 'menustyle', 'activeNotice', 'typelayout');
$yt = new YtTemplate($this, $params_cookie);
// Get param template
$layout = $yt->getParam('templateLayout');
$templateColor = $yt->getParam('themecolor');
$keepmenu = $yt->getParam('keepMenu');
$direction = JFactory::getLanguage()->getMetadata(JFactory::getLanguage()->getTag());
$typelayout = $yt->getParam('typelayout');
$logoload = $yt->getParam('logoload');
$menustyle = $yt->getParam('menustyle');
$overrideLayouts = trim($yt->getParam('overrideLayouts'));
$setGeneratorTag = $yt->getParam('setGeneratorTag');
$showCpanel = $yt->getParam('showCpanel');
$specialPos = $yt->getParam('useSpecialPositions');
$bodyFont = $yt->getParam('bodyFont');
$bodySelectors = $yt->getParam('bodySelectors');
$menuFont = $yt->getParam('menuFont');
Example #3
0
 * @license - GNU/GPL, http://www.gnu.org/licenses/gpl.html
 * Author: The YouTech JSC
 * Websites: http://www.smartaddons.com - http://www.cmsportal.net
 * ------------------------------------------------------------------------
*/
defined('_JEXEC') or die;
if (!defined('YT_FRAMEWORK')) {
    throw new Exception(JText::_('INSTALL_YT_PLUGIN'));
}
if (!defined('J_TEMPLATEDIR')) {
    define('J_TEMPLATEDIR', JPATH_SITE . J_SEPARATOR . 'templates' . J_SEPARATOR . $this->template);
}
include_once J_TEMPLATEDIR . J_SEPARATOR . 'includes' . J_SEPARATOR . 'lib' . J_SEPARATOR . 'template.php';
global $yt;
$params_cookie = array();
$yt = new YtTemplate($this, $params_cookie);
// Check RTL or LTF direction
$doc = JFactory::getDocument();
$direction = $doc->direction;
$dir = $direction == 'rtl' ? ' dir="rtl"' : '';
$app = JFactory::getApplication();
$doc = JFactory::getDocument();
$this->language = $doc->language;
$this->direction = $doc->direction;
$print = JRequest::getCmd('print');
?>

<!DOCTYPE html>
<html lang="<?php 
echo $this->language;
?>
Example #4
0
 * @license - GNU/GPL, http://www.gnu.org/licenses/gpl.html
 * Author: The YouTech JSC
 * Websites: http://www.smartaddons.com - http://www.cmsportal.net
 * ------------------------------------------------------------------------
*/
// no direct access
defined('_JEXEC') or die('Restricted access');
include_once J_TEMPLATEDIR . J_SEPARATOR . 'includes' . J_SEPARATOR . 'lib' . J_SEPARATOR . 'template.php';
include_once J_TEMPLATEDIR . J_SEPARATOR . 'includes' . J_SEPARATOR . 'lib' . J_SEPARATOR . 'renderxml.php';
// Object of class YtTemplate
global $yt;
$doc = JFactory::getDocument();
$Itemid = JRequest::getInt('Itemid');
// Array param for cookie
$params_cookie = array('direction', 'fontSize', 'fontName', 'templateColor', 'bgcolor', 'linkcolor', 'textcolor', 'header-bgimage', 'header-bgcolor', 'spotlight3-bgcolor', 'spotlight4-bgcolor', 'spotlight5-bgcolor', 'footer-bgcolor', 'footer-bgimage', 'templateLayout', 'menustyle', 'googleWebFont', 'activeNotice');
$yt = new YtTemplate($this, $params_cookie);
// Get param template
$fontName = $yt->getParam('fontName');
$fontSize = $yt->getParam('fontSize');
$responsive = $yt->getParam('responsive');
$layout = $yt->getParam('templateLayout');
$templateColor = $yt->getParam('templateColor');
$direction = $this->direction;
if (isset($_COOKIE[$yt->template . '_direction'])) {
    $direction = $_COOKIE[$yt->template . '_direction'];
} else {
    $direction = $yt->getParam('direction');
}
$menustyle = $yt->getParam('menustyle');
$overrideLayouts = trim($yt->getParam('overrideLayouts'));
$setGeneratorTag = $yt->getParam('setGeneratorTag');
Example #5
0
 * Copyright (C) 2009 - 2014 The YouTech JSC. All Rights Reserved.
 * @license - GNU/GPL, http://www.gnu.org/licenses/gpl.html
 * Author: The YouTech JSC
 * Websites: http://www.smartaddons.com - http://www.cmsportal.net
 * ------------------------------------------------------------------------
*/
defined('_JEXEC') or die('Restricted access');
include_once J_TEMPLATEDIR . J_SEPARATOR . 'includes' . J_SEPARATOR . 'lib' . J_SEPARATOR . 'template.php';
include_once J_TEMPLATEDIR . J_SEPARATOR . 'includes' . J_SEPARATOR . 'lib' . J_SEPARATOR . 'renderxml.php';
// Object of class YtTemplate
global $yt;
$doc = JFactory::getDocument();
$Itemid = JRequest::getInt('Itemid');
// Array param for cookie
$params_cookie = array('bgimage', 'themecolor', 'templateLayout', 'menustyle', 'activeNotice', 'typelayout');
$yt = new YtTemplate($this, $params_cookie);
// Get param template
$layout = $yt->getParam('templateLayout');
$templateColor = $yt->getParam('themecolor');
$keepmenu = $yt->getParam('keepMenu');
$direction = $doc->direction;
$typelayout = $yt->getParam('typelayout');
$menustyle = $yt->getParam('menustyle');
$overrideLayouts = trim($yt->getParam('overrideLayouts'));
$setGeneratorTag = $yt->getParam('setGeneratorTag');
$showCpanel = $yt->getParam('showCpanel');
$compileLess = $yt->getParam('compileLess');
$bodyFont = $yt->getParam('bodyFont');
$bodySelectors = $yt->getParam('bodySelectors');
$menuFont = $yt->getParam('menuFont');
$menuSelectors = $yt->getParam('menuSelectors');
Example #6
0
/*
 * ------------------------------------------------------------------------
 * Yt FrameWork for Joomla 2.5
 * ------------------------------------------------------------------------
 * Copyright (C) 2009 - 2012 The YouTech JSC. All Rights Reserved.
 * @license - GNU/GPL, http://www.gnu.org/licenses/gpl.html
 * Author: The YouTech JSC
 * Websites: http://www.smartaddons.com - http://www.cmsportal.net
 * ------------------------------------------------------------------------
*/
// no direct access
defined('_JEXEC') or die('Restricted access');
defined('YT_FRAMEWORK') or die(JTEXT::_("INSTALL_YT_PLUGIN"));
defined('_YTOOLS') or die(JTEXT::_("INSTALL_SJ_CORE"));
// Object of class YtTemplate(incluedes/yt_template.class.php)
$yt = new YtTemplate($this);
// Get Itemid
$Itemid = JRequest::getInt('Itemid');
// Returns a reference to the global document object
$doc = JFactory::getDocument();
//
$ytrtl = $yt->getParam('direction');
$float1 = $ytrtl == 'rtl' ? ' float:right; ' : ' float:left; ';
$float2 = $ytrtl == 'rtl' ? ' float:left; ' : ' float:right; ';
// BEGIN get param template
$font_name = $yt->getParam('font_name');
$windows_main_layout = $yt->getParam('default_main_layout');
$iphone_main_layout = $yt->getParam('iphone_main_layout');
$android_main_layout = $yt->getParam('android_main_layout');
$handheld_main_layout = $yt->getParam('handheld_main_layout');
$override_layouts = $yt->getParam('override_layouts');