| 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/components/com_hikashop/views/toolbar/tmpl/ |
Upload File : |
<?php
/**
* @package HikaShop for Joomla!
* @version 6.1.0
* @author hikashop.com
* @copyright (C) 2010-2025 HIKARI SOFTWARE. All rights reserved.
* @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
*/
defined('_JEXEC') or die('Restricted access');
?><?php
if(!empty($this->title)) {
?>
<div class="header hikashop_header_title">
<h1><?php
echo $this->title;
?></h1>
</div>
<?php
}
if(empty($this->data))
return;
$toolbar_classname = $this->config->get('front_toolbar_btn_classname', 'hikabtn');
if(empty($toolbar_classname))
$toolbar_classname = 'hikabtn';
?>
<div class="hika_toolbar">
<div class="hika_toolbar_btn hika_btn_32">
<?php
foreach($this->data as $key => $tool) {
if(empty($tool['url']) && !empty($tool['sep'])) {
echo '<div class="sep"></div>';
continue;
}
$content = '';
if(!empty($tool['icon'])) { $content .= '<span class="btnIcon icon-32-'.$tool['icon'].'"></span>'; }
if(!empty($tool['fa'])) {
$fa_size = !empty($tool['fa']['size']) ? (int)$tool['fa']['size'] : 2;
$fa_stack = is_array($tool['fa']['html']) ? 'fa-stack ': '';
$fa_content = is_array($tool['fa']['html']) ? implode('', $tool['fa']['html']) : $tool['fa']['html'];
$content = '<span class="btnIcon hk-icon '.$fa_stack.'fa-'.$fa_size.'x">'.$fa_content.'</span>';
$tool['dropdown']['options']['fa'] = $tool['fa'];
}
if(!empty($tool['name'])) { $content .= '<span class="btnName">' . $tool['name'] . '</span>'; }
if(!empty($tool['url']) || !empty($tool['javascript'])) {
if(empty($tool['popup'])) {
if(empty($tool['url']))
$tool['url'] = '#';
if(empty($tool['linkattribs']))
$tool['linkattribs'] = '';
if(!empty($tool['javascript']))
$tool['linkattribs'].= ' onclick="' . $tool['javascript'] . '"';
echo '<a class="'.$toolbar_classname.'" href="'.$tool['url'].'" '.$tool['linkattribs'].'>' . $content . '</a>';
} else {
$attr = $this->popupHelper->getAttr(@$tool['linkattribs'], 'hikabtn');
echo $this->popupHelper->display(
$content,
@$tool['name'],
$tool['url'],
$tool['popup']['id'],
$tool['popup']['width'],
$tool['popup']['height'],
$attr, '', 'link'
);
}
}elseif(!empty($tool['dropdown'])) {
if(is_array($tool['dropdown'])) {
$tool['dropdown']['options']['main_class'] = $toolbar_classname;
echo $this->dropdownHelper->display(
$tool['dropdown']['label'],
$tool['dropdown']['data'],
$tool['dropdown']['options']
);
}else {
echo $tool['dropdown'];
}
}else {
echo '<div class="'.$toolbar_classname.'">' . $content . '</div>';
}
unset($content);
}
?>
</div>
<div style="clear:both"></div>
</div>