* 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'); $googleWebFontTargets = $yt->getParam('googleWebFontTargets'); // END get param template // Include Class YtRenderXML if ($windows_main_layout == '-1' || $windows_main_layout == '') { die(JTEXT::_("SELECT_LAYOUT_NOW")); }
* 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'); $googleWebFont = $yt->getParam('googleWebFont'); $googleWebFontTargets = $yt->getParam('googleWebFontTargets');
* ------------------------------------------------------------------------ */ 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'); $menuSelectors = $yt->getParam('menuSelectors'); $headingFont = $yt->getParam('headingFont');
* 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'); $setGeneratorTag = $yt->getParam('setGeneratorTag'); $googleWebFont = $yt->getParam('googleWebFont'); $googleWebFontTargets = $yt->getParam('googleWebFontTargets'); $widthType = $yt->getParam('widthType', 'px'); $templateWidth = $yt->getParam('templateWidth', '980'); $mainBodyWidthType = $yt->getParam('mainBodyWidthType', 'px');