| 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/lemans/modules/mod_djmegamenu/fields/ |
Upload File : |
<?php
/**
* @package DJ-Megamenu
* @copyright Copyright (C) DJ-Extensions.com, All rights reserved.
* @license http://www.gnu.org/licenses GNU/GPL
* @author url: http://dj-extensions.com
* @author email contact@dj-extensions.com
* @developer Szymon Woronowski, Artur Kaczmarek
*
*/
defined('_JEXEC') or die();
defined('JPATH_BASE') or die;
defined('DS') or define('DS', DIRECTORY_SEPARATOR);
use Joomla\CMS\Form\Field\TextField;
use Joomla\CMS\Factory;
use Joomla\CMS\Language\Text;
class JFormFieldDJMobilebutton extends TextField {
protected $type = 'DJMobilebutton';
protected function getInput()
{
$app = Factory::getApplication();
$attr = 'readonly="true"';
$attr.= ' onclick="this.select();"';
$attr.= ' style="cursor: pointer;"';
$attr .= $this->element['class'] ? ' class="'.(string) $this->element['class'].'"' : '';
$moduleid = $app->input->get('id');
$value = '';
if($moduleid) {
$value = '<div id="dj-megamenu'.$moduleid.'mobileWrap"></div>';
} else {
$attr .= ' placeholder="'.Text::_('MOD_DJMEGAMENU_MOBILE_MENU_WRAPPER_PLACEHOLDER').'"';
}
$html = '<input type="text" id="' . $this->id . '"' . ' value="'. htmlspecialchars($value, ENT_COMPAT, 'UTF-8') .'" ' . $attr . ' />';
return ($html);
}
}
?>