use Jarvis\Template\Builder; $builder = Builder::instance(); $doc = JFactory::getDocument(); /* $this->direction = 'rtl'; this is for test and demo only*/ // Add Stylesheets $doc->addStyleSheet('templates/'.$this->template.'/assets/css/template.css'); if ($this->direction == 'rtl'){ $doc->addStyleSheet('templates/'.$this->template.'/assets/css/template_rtl.css'); } // Add JavaScripts JHtml::_('jquery.framework'); $doc->addScript('templates/' .$this->template. '/assets/js/bootstrap.min.js'); $doc->addScript('templates/' .$this->template. '/assets/js/otscript.js'); ?>