grthtrhthjhtyjytjytkergtrhtrjytjerhrfh4:24 29/09/2026 section in form XML. * @var boolean $hidden Is this field hidden in the form? * @var string $hint Placeholder for the field. * @var string $id DOM id of the field. * @var string $label Label of the field. * @var string $labelclass Classes to apply to the label. * @var boolean $multiple Does this field support multiple values? * @var string $name Name of the input field. * @var string $onchange Onchange attribute for the field. * @var string $onclick Onclick attribute for the field. * @var string $pattern Pattern (Reg Ex) of value of the form field. * @var boolean $readonly Is this field read only? * @var boolean $repeat Allows extensions to duplicate elements. * @var boolean $required Is this field required? * @var integer $size Size attribute of the input. * @var boolean $spellcheck Spellcheck state for the form field. * @var string $validate Validation rules to apply. * @var string $value Value attribute of the field. * @var array $checkedOptions Options that will be set as checked. * @var boolean $hasValue Has this field a value assigned? * @var array $options Options available for this field. * * @var string $preview The preview image relative path * @var integer $previewHeight The image preview height * @var integer $previewWidth The image preview width * @var string $asset The asset text * @var string $authorField The label text * @var string $folder The folder text * @var string $link The link text */ extract($displayData); // Load the modal behavior script. JHtml::_('behavior.modal'); // Include jQuery JHtml::_('jquery.framework'); JHtml::_('script', 'media/mediafield-mootools.min.js', array('version' => 'auto', 'relative' => true, 'framework' => true)); // Tooltip for INPUT showing whole image path $options = array( 'onShow' => 'jMediaRefreshImgpathTip', ); JHtml::_('behavior.tooltip', '.hasTipImgpath', $options); if (!empty($class)) { $class .= ' hasTipImgpath'; } else { $class = 'hasTipImgpath'; } $attr = ''; $attr .= ' title="' . htmlspecialchars('', ENT_COMPAT, 'UTF-8') . '"'; // Initialize some field attributes. $attr .= !empty($class) ? ' class="input-small field-media-input ' . $class . '"' : ' class="input-small"'; $attr .= !empty($size) ? ' size="' . $size . '"' : ''; // Initialize JavaScript field attributes. $attr .= !empty($onchange) ? ' onchange="' . $onchange . '"' : ''; // The text field. echo '