language = $doc->language; $this->direction = $doc->direction; // Add JavaScript Frameworks JHtml::_('bootstrap.framework'); $doc->addScript($this->baseurl . '/templates/' . $this->template . '/js/template.js'); // Add Stylesheets $doc->addStyleSheet($this->baseurl . '/templates/' . $this->template . '/css/template.css'); // Load optional RTL Bootstrap CSS JHtml::_('bootstrap.loadCss', false, $this->direction); // Load specific language related CSS $file = 'language/' . $lang->getTag() . '/' . $lang->getTag() . '.css'; if (is_file($file)) { $doc->addStyleSheet($file); } ?>