/** * First displays the submenu, then displays the output * but only if a valid _doTask is set in the view object * * @param $tpl * @return unknown_type */ function display($tpl = null, $perform = true) { // these need to load before jquery to prevent joomla from crying JHTML::_('behavior.modal'); JHTML::_('script', 'core.js', 'media/system/js/'); DSC::loadJQuery('latest', true, 'tiendaJQ'); if ($this->defines->get('use_bootstrap', '0')) { DSC::loadBootstrap(); } JHTML::_('stylesheet', 'common.css', 'media/dioscouri/css/'); if ($this->defines->get('include_site_css', '0')) { JHTML::_('stylesheet', 'tienda.css', 'media/com_tienda/css/'); } parent::display($tpl); }
/** * First displays the submenu, then displays the output * but only if a valid _doTask is set in the view object * * @param $tpl * @return unknown_type */ function display($tpl = null, $perform = true) { $doc = JFactory::getDocument(); //$doc->addStyleSheet(JUri::root().'media/citruscart/css/citruscart_checkout_onepage.css'); // these need to load before jquery to prevent joomla from crying JHTML::_('behavior.modal'); $doc->addScript(JUri::root() . 'media/system/js/core.js'); DSC::loadJQuery('latest', true, 'citruscartJQ'); /* if ($this->defines->get('use_bootstrap', '0')) { DSC::loadBootstrap(); } */ //JHTML::_('stylesheet', 'common.css', 'media/citruscart/css/'); $doc->addStyleSheet(JUri::root() . 'media/citruscart/css/common.css'); if ($this->defines->get('include_site_css', '0')) { $doc->addStyleSheet(JUri::root() . 'media/citruscart/css/citruscart.css'); //JHtml::_('stylesheet', 'media/citruscart/css/citruscart.css'); } parent::display($tpl); }