Your IP : 216.73.217.142


Current Path : /var/www/consult-e-syn/public_html/modules/mod_rscontact/tmpl/
Upload File :
Current File : /var/www/consult-e-syn/public_html/modules/mod_rscontact/tmpl/default_custom.php

<?php
/**
* @package RSContact!
* @copyright (C) 2015 www.rsjoomla.com
* @license GPL, http://www.gnu.org/licenses/gpl-3.0.html
*/

defined('_JEXEC') or die('Restricted access');

use Joomla\CMS\Helper\ModuleHelper;

for ($i = 1; $i <= 3; $i++)
{
	if (${"show_cf" . $i})
	{
		$placeholder = !$show_label ? 'placeholder="'.${"cf" . $i. "_name"}.'"' : '';

		if(${"show_cf" .$i. "_req"} && !$show_label)
		{
			$placeholder = 'placeholder="'.${"cf" . $i. "_name"}.' '.$required_marker.'"';
		}
		?>
		<div class="control-group">
		<?php
		if ($show_label)
		{
			?>
			<label for="mod-rscontact-cf<?php echo $i.'-'.$uniqid; ?>"  class="control-label"><?php echo ${"cf" . $i. "_name"};?>
			<?php
			if (${"show_cf" .$i. "_req"})
			{
				?>
				<span class="help-inline"><?php echo $required_marker;?></span>
				<?php
			}
			?>
			</label>
			<?php
		}
		?>
			<div class="controls">
			<?php if (${"show_cf" . $i. "_req"})
			{
				$class = 'required'.$class_auto;
			} else {
				$class = 'ignore'.$class_auto;
			}

			require ModuleHelper::getLayoutPath('mod_rscontact', 'default_custom_'.${"show_cf" .$i. "_type"});
			?>
			</div>
		</div>
		<?php
	}
}