Server : LiteSpeed System : Linux server 3.10.0-1160.90.1.el7.x86_64 #1 SMP Thu May 4 15:21:22 UTC 2023 x86_64 User : alsaif ( 1057) PHP Version : 7.4.33 Disable Function : show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname Directory : /home/alsaif/public_html/administrator/components/com_convertforms/layouts/ |
<?php
/**
* @package Convert Forms
* @version 4.3.3 Pro
*
* @author Tassos Marinos <info@tassos.gr>
* @link https://www.tassos.gr
* @copyright Copyright © 2023 Tassos All Rights Reserved
* @license GNU GPLv3 <http://www.gnu.org/licenses/gpl.html> or later
*/
defined('_JEXEC') or die('Restricted access');
extract($displayData);
$cssclass = isset($field->cssclass) ? $field->cssclass : '';
// Load Input Masking
if (isset($field->inputmask) && is_array($field->inputmask) && ((!empty($field->inputmask['options']) && $field->inputmask['options'] !== 'custom') || ($field->inputmask['options'] === 'custom' && !empty($field->inputmask['custom']))))
{
JHtml::script('com_convertforms/vendor/inputmask.min.js', ['relative' => true, 'version' => 'auto']);
JHtml::script('com_convertforms/inputmask.js', ['relative' => true, 'version' => 'auto']);
JText::script('COM_CONVERTFORMS_ERROR_INPUTMASK_INCOMPLETE');
}
// Safe label is used by the getFieldsArray()
$safeLabel = isset($field->label) ? htmlspecialchars(trim(strip_tags($field->label)), ENT_NOQUOTES, 'UTF-8') : null;
$helpTextPosition = $form['params']->get('help_text_position', 'after');
?>
<div class="cf-control-group <?php echo $cssclass; ?>" data-key="<?php echo $field->key; ?>" data-name="<?php echo $field->name; ?>" <?php echo $safeLabel ? 'data-label="' . $safeLabel . '"' : '' ?> data-type="<?php echo $field->type ?>" <?php echo (isset($field->required) && $field->required) ? 'data-required' : '' ?>>
<?php if (isset($field->hidelabel) && !$field->hidelabel && !empty($field->label)) { ?>
<div class="cf-control-label">
<label class="cf-label" for="<?php echo $field->input_id; ?>">
<?php echo $field->label ?>
<?php if ($form['params']->get('required_indication', true) && $field->required) { ?>
<span class="cf-required-label">*</span>
<?php } ?>
</label>
</div>
<?php } ?>
<div class="cf-control-input">
<?php
if ($helpTextPosition == 'before')
{
include __DIR__ . '/helptext.php';
}
echo $field->input;
if ($helpTextPosition == 'after')
{
include __DIR__ . '/helptext.php';
}
?>
</div>
</div>