| Server IP : 104.21.84.107 / Your IP : 104.23.243.197 Web Server : Apache/2.4.63 (Ubuntu) System : Linux adminpruebas-Virtual-Machine 6.14.0-37-generic #37-Ubuntu SMP PREEMPT_DYNAMIC Fri Nov 14 22:10:32 UTC 2025 x86_64 User : www-data ( 33) PHP Version : 8.4.5 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /var/www/html/investigaciones2025/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 [email protected]
* @developer Szymon Woronowski, Artur Kaczmarek
*
*/
defined('_JEXEC') or die();
defined('JPATH_BASE') or die;
defined('DS') or define('DS', DIRECTORY_SEPARATOR);
jimport('joomla.html.html');
jimport('joomla.form.formfield');
class JFormFieldDJMobilebutton extends JFormFieldText {
protected $type = 'DJMobilebutton';
protected function getInput()
{
$app = JFactory::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="'.JText::_('MOD_DJMEGAMENU_MOBILE_MENU_WRAPPER_PLACEHOLDER').'"';
}
$html = '<input type="text" id="' . $this->id . '"' . ' value="'. htmlspecialchars($value, ENT_COMPAT, 'UTF-8') .'" ' . $attr . ' />';
return ($html);
}
}
?>