Exemplo n.º 1
0
 function display($tpl = null)
 {
     $function = $this->getLayout();
     if (method_exists($this, $function)) {
         $this->{$function}();
     }
     parent::display($tpl);
 }
Exemplo n.º 2
0
 function display($tpl = null)
 {
     $this->paramBase = HIKASHOP_COMPONENT . '.' . $this->getName();
     $function = $this->getLayout();
     if (method_exists($this, $function)) {
         $this->{$function}();
     }
     parent::display($tpl);
 }
Exemplo n.º 3
0
 function display($tpl = null, $params = null)
 {
     if (empty($params)) {
         $params = new HikaParameter('');
     }
     $this->assignRef('params', $params);
     $function = $this->getLayout();
     if (method_exists($this, $function)) {
         $this->{$function}();
     }
     parent::display($tpl);
 }
Exemplo n.º 4
0
    function display($tpl = null, $params = array())
    {
        $this->paramBase = HIKASHOP_COMPONENT . '.' . $this->getName();
        $function = $this->getLayout();
        $this->params =& $params;
        if ($function != 'cart' && JRequest::getInt('popup') && empty($_COOKIE['popup']) && JRequest::getVar('tmpl') != 'component') {
            $class = hikashop_get('helper.cart');
            $class->getJS($this->init());
            $doc = JFactory::getDocument();
            $js = '
			window.hikashop.ready( function() {
				SqueezeBox.fromElement(\'hikashop_notice_box_trigger_link\',{parse: \'rel\'});
			});
			';
            $doc->addScriptDeclaration("\n<!--\n" . $js . "\n//-->\n");
        }
        if (method_exists($this, $function)) {
            $this->{$function}();
        }
        parent::display($tpl);
    }
Exemplo n.º 5
0
 function display($tpl = null, $params = array())
 {
     $this->paramBase = HIKASHOP_COMPONENT . '.' . $this->getName();
     $function = $this->getLayout();
     $this->params =& $params;
     if (!in_array($function, array('cart', 'add_to_cart_listing', 'listing_price')) && JRequest::getInt('popup') && empty($_COOKIE['popup']) && JRequest::getVar('tmpl') != 'component') {
         $app = JFactory::getApplication();
         $js = '';
         if ($app->getUserState(HIKASHOP_COMPONENT . '.popup', '0')) {
             $js = $this->getJS();
             $app->setUserState(HIKASHOP_COMPONENT . '.popup', '0');
         }
         if (!empty($js)) {
             $doc = JFactory::getDocument();
             $doc->addScriptDeclaration("\n<!--\n" . $js . "\n//-->\n");
         }
     }
     if (method_exists($this, $function)) {
         $this->{$function}();
     }
     parent::display($tpl);
 }