| Server IP : 54.36.91.62 / Your IP : 216.73.217.112 Web Server : Apache System : Linux webm013.cluster127.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64 User : coopiak ( 151928) PHP Version : 8.3.23 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/coopiak/amisdesseniors-fr/lyon/components/com_hikashop/views/toolbar/ |
Upload File : |
<?php
/**
* @package HikaShop for Joomla!
* @version 5.1.2
* @author hikashop.com
* @copyright (C) 2010-2024 HIKARI SOFTWARE. All rights reserved.
* @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
*/
defined('_JEXEC') or die('Restricted access');
?><?php
class toolbarViewtoolbar extends hikashopView {
public $ctrl = 'toolbar';
public $icon = '';
public $triggerView = false;
public function display($tpl = null, $params = array()) {
$this->params =& $params;
$fct = $this->getLayout();
if($fct == 'default')
$fct = 'show';
if(method_exists($this, $fct)) {
if($this->$fct() === false)
return;
}
if(isset($this->toolbar))
unset($this->toolbar);
parent::display($tpl);
}
public function show() {
$title = $this->params->get('title', null);
$this->assignRef('title', $title);
$toolbar = $this->params->get('toolbar', null);
if(empty($toolbar))
return true;
$config = hikashop_config();
$this->assignRef('config', $config);
$this->loadRef(array(
'popupHelper' => 'helper.popup',
'dropdownHelper'=> 'helper.dropdown',
));
$toBeDisplayed = array();
foreach($toolbar as $tool) {
if(isset($tool['acl']) && !$tool['acl'])
continue;
if(isset($tool['display']) && !$tool['display'])
continue;
$toBeDisplayed[] = $tool;
}
$this->assignRef('data', $toBeDisplayed);
}
}