load('tpl_hathor', JPATH_ADMINISTRATOR)
|| $lang->load('tpl_hathor', JPATH_ADMINISTRATOR . '/templates/hathor/language');
$app = JFactory::getApplication();
$doc = JFactory::getDocument();
// Load optional RTL Bootstrap CSS
JHtml::_('bootstrap.loadCss', false, $this->direction);
// Load system style CSS
$doc->addStyleSheet($this->baseurl . '/templates/system/css/system.css');
// Loadtemplate CSS
$doc->addStyleSheet($this->baseurl . '/templates/' . $this->template . '/css/template.css');
// Load additional CSS styles for colors
if (!$this->params->get('colourChoice'))
{
$colour = 'standard';
}
else
{
$colour = htmlspecialchars($this->params->get('colourChoice'));
}
$doc->addStyleSheet($this->baseurl . '/templates/' . $this->template . '/css/colour_' . $colour . '.css');
// Load specific language related CSS
$file = 'language/' . $lang->getTag() . '/' . $lang->getTag() . '.css';
if (is_file($file))
{
$doc->addStyleSheet($file);
}
// Load additional CSS styles for rtl sites
if ($this->direction == 'rtl')
{
$doc->addStyleSheet($this->baseurl . '/templates/' . $this->template . '/css/template_rtl.css');
$doc->addStyleSheet($this->baseurl . '/templates/' . $this->template . '/css/colour_' . $colour . '_rtl.css');
}
// Load specific language related CSS
$file = 'language/' . $lang->getTag() . '/' . $lang->getTag().'.css';
if (JFile::exists($file))
{
$doc->addStyleSheet($file);
}
// Load additional CSS styles for bold Text
if ($this->params->get('boldText'))
{
$doc->addStyleSheet($this->baseurl . '/templates/' . $this->template . '/css/boldtext.css');
}
// Load template javascript
$doc->addScript($this->baseurl . '/templates/' . $this->template . '/js/template.js', 'text/javascript');
// Logo file
if ($this->params->get('logoFile'))
{
$logo = JUri::root() . $this->params->get('logoFile');
}
else
{
$logo = $this->baseurl . '/templates/' . $this->template . '/images/logo.png';
}
?>