39 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			39 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| /**
 | |
|  * @package    JEM
 | |
|  * @copyright  (C) 2013-2024 joomlaeventmanager.net
 | |
|  * @copyright  (C) 2005-2009 Christoph Lukes
 | |
|  * @license    https://www.gnu.org/licenses/gpl-3.0 GNU/GPL
 | |
|  */
 | |
| 
 | |
| defined('JPATH_PLATFORM') or die;
 | |
| 
 | |
| use Joomla\CMS\Form\FormField;
 | |
| 
 | |
| /**
 | |
|  */
 | |
| class JFormFieldFootertext extends FormField
 | |
| {
 | |
| 	/**
 | |
| 	 * The form field type.
 | |
| 	 */
 | |
| 	protected $type = 'Footertext';
 | |
| 
 | |
| 	/**
 | |
| 	 */
 | |
| 	protected function getInput()
 | |
| 	{
 | |
| 		// Initialize some field attributes.
 | |
| 		$class = $this->element['class'] ? ' class="' . (string) $this->element['class'] . '"' : '';
 | |
| 		$disabled = ((string) $this->element['disabled'] == 'true') ? ' disabled="disabled"' : '';
 | |
| 		$columns = $this->element['cols'] ? ' cols="' . (int) $this->element['cols'] . '"' : '';
 | |
| 		$rows = $this->element['rows'] ? ' rows="' . (int) $this->element['rows'] . '"' : '';
 | |
| 
 | |
| 		// Initialize JavaScript field attributes.
 | |
| 		$onchange = $this->element['onchange'] ? ' onchange="' . (string) $this->element['onchange'] . '"' : '';
 | |
| 
 | |
| 		return '<textarea name="' . $this->name . '" id="' . $this->id . '"' . $columns . $rows . $class . $disabled . $onchange . '>'
 | |
| 			. htmlspecialchars($this->value, ENT_COMPAT, 'UTF-8') . '</textarea>';
 | |
| 	}
 | |
| }
 |