< ?php /** * @package Joomla.Site * @subpackage Templates.beez3 * * @copyright Copyright (C) 2005 - 2015 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ // No direct access. defined('_JEXEC') or die; JLoader::import('joomla.filesystem.file'); // Check modules $showRightColumn = ($this->countModules('position-3') or $this->countModules('position-6') or $this->countModules('position-8')); $showbottom = ($this->countModules('position-9') or $this->countModules('position-10') or $this->countModules('position-11')); $showleft = ($this->countModules('position-4') or $this->countModules('position-7') or $this->countModules('position-5')); if ($showRightColumn == 0 and $showleft == 0) { $showno = 0; } JHtml::_('behavior.framework', true); // Get params $color = $this->params->get('templatecolor'); $logo = $this->params->get('logo'); $navposition = $this->params->get('navposition'); $headerImage = $this->params->get('headerImage'); $doc = JFactory::getDocument(); $app = JFactory::getApplication(); $templateparams = $app->getTemplate(true)->params; $config = JFactory::getConfig(); $bootstrap = explode(',', $templateparams->get('bootstrap')); $jinput = JFactory::getApplication()->input; $option = $jinput->get('option', '', 'cmd'); if (in_array($option, $bootstrap)) { // Load optional rtl Bootstrap css and Bootstrap bugfixes JHtml::_('bootstrap.loadCss', true, $this->direction); } $doc->addStyleSheet($this->baseurl . '/templates/system/css/system.css'); $doc->addStyleSheet($this->baseurl . '/templates/' . $this->template . '/css/position.css', $type = 'text/css', $media = 'screen,projection'); $doc->addStyleSheet($this->baseurl . '/templates/' . $this->template . '/css/layout.css', $type = 'text/css', $media = 'screen,projection'); $doc->addStyleSheet($this->baseurl . '/templates/' . $this->template . '/css/print.css', $type = 'text/css', $media = 'print'); $doc->addStyleSheet($this->baseurl . '/templates/' . $this->template . '/css/general.css', $type = 'text/css', $media = 'screen,projection'); $doc->addStyleSheet($this->baseurl . '/templates/' . $this->template . '/css/' . htmlspecialchars($color) . '.css', $type = 'text/css', $media = 'screen,projection'); if ($this->direction == 'rtl') { $doc->addStyleSheet($this->baseurl . '/templates/' . $this->template . '/css/template_rtl.css'); if (file_exists(JPATH_SITE . '/templates/' . $this->template . '/css/' . $color . '_rtl.css')) { $doc->addStyleSheet($this->baseurl . '/templates/' . $this->template . '/css/' . htmlspecialchars($color) . '_rtl.css'); } } JHtml::_('bootstrap.framework'); $doc->addScript($this->baseurl . '/templates/' . $this->template . '/javascript/md_stylechanger.js', 'text/javascript'); $doc->addScript($this->baseurl . '/templates/' . $this->template . '/javascript/hide.js', 'text/javascript'); $doc->addScript($this->baseurl . '/templates/' . $this->template . '/javascript/respond.src.js', 'text/javascript'); $doc->addScript($this->baseurl . '/templates/' . $this->template . '/javascript/template.js', 'text/javascript'); ?>