| 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/aix/administrator/components/com_hikashop/buttons/ |
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
class JButtonPophelp extends JButton {
protected $name = 'Pophelp';
public function fetchButton($type = 'Pophelp', $namekey = '', $id = 'pophelp') {
$doc = JFactory::getDocument();
$config = hikashop_config();
$level = $config->get('level');
$url = HIKASHOP_HELPURL . $namekey . '&level=' . $level;
if(hikashop_isSSL())
$url = str_replace('http://', 'https://', $url);
$js = '
function displayDoc(){
var d = document, init = false, b = d.getElementById("iframedoc");
if(!b) return true;
if(typeof(b.openHelp) == "undefined") { b.openHelp = true; init = true; }
if(b.openHelp) {
b.innerHTML = \'<iframe src="'.$url.'" width="100%" height="100%" style="border:0px" border="no" scrolling="auto"></iframe>\';
b.style.display = "block";
b.style.height = \'300px\';
} else {
b.innerHTML = "";
b.style.display = "none";
}
b.openHelp = !b.openHelp;
return false;
}';
if(HIKASHOP_J40)
$btnClass = 'btn btn-info';
else
$btnClass = 'btn btn-small';
$doc->addScriptDeclaration($js);
if(!HIKASHOP_J30)
return '<a href="' . $url . '" target="_blank" onclick="return displayDoc();" class="toolbar"><span class="icon-32-help" title="' . JText::_('HIKA_HELP', true) . '"></span>' . JText::_('HIKA_HELP') . '</a>';
return '<button class="'.$btnClass.'" onclick="return displayDoc();"><i class="icon-help"></i> '.JText::_('HIKA_HELP').'</button>';
}
public function fetchId($type = 'Pophelp', $html = '', $id = 'pophelp') {
return $this->name . '-' . $id;
}
}
class JToolbarButtonPophelp extends JButtonPophelp {}
class_alias('JToolbarButtonPophelp', 'Joomla\CMS\Toolbar\Button\PophelpButton');