Skip to content

Commit

Permalink
Update component.php
Browse files Browse the repository at this point in the history
  • Loading branch information
zero-24 committed Jun 17, 2014
1 parent b4c11d7 commit 5329a20
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions administrator/templates/isis/component.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,27 +10,30 @@
defined('_JEXEC') or die;


$app = JFactory::getApplication();
$doc = JFactory::getDocument();
$lang = JFactory::getLanguage();
$this->language = $doc->language;
$app = JFactory::getApplication();
$doc = JFactory::getDocument();
$lang = JFactory::getLanguage();
$this->language = $doc->language;
$this->direction = $doc->direction;

// Add JavaScript Frameworks
JHtml::_('bootstrap.framework');
$doc->addScript('templates/' .$this->template. '/js/template.js');

$doc->addScript('templates/' . $this->template . '/js/template.js');

// Add Stylesheets
$doc->addStyleSheet('templates/' .$this->template. '/css/template.css');
$doc->addStyleSheet('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)) :

if (is_file($file))
{
$doc->addStyleSheet($file);
endif;
}

?>
<!DOCTYPE html>
Expand Down

0 comments on commit 5329a20

Please sign in to comment.