<?php
/**
 * @version    $Id$
 * @package    IT_Theme_Framework
 * @author     InnoThemes Team <support@innothemes.com>
 * @copyright  Copyright (C) 2012 InnoThemes.com. All Rights Reserved.
 * @license    GNU/GPL v2 or later http://www.gnu.org/licenses/gpl-2.0.html
 *
 * Websites: http://www.innothemes.com
 */

foreach ( $this->current_fields as $field ) :

// Get field description
$desc = $field->get( 'desc', null, true );

if ( $field->get( 'type', '', true ) == 'hidden' ) :

$field->get( 'input' );

elseif ( 'horizontal' == $alignment ) :
?>
	<div class="form-group">
		<label class="col-xs-2 control-label" for="<?php $field->get( 'id' ); ?>">
			<?php $field->get( 'label' ); ?>
			<i class="it-form-field-help it-icon-help has-tips" title="<?php $field->get( 'desc' ); ?>"></i>
		</label>
		<div class="col-xs-4">
			<?php $field->get( 'input' ); ?>
		</div>
	</div>
<?php else : ?>
	<label class="control-label" for="<?php $field->get( 'id' ); ?>">
		<?php $field->get( 'label' ); ?>
		<i class="it-form-field-help it-icon-help has-tips" title="<?php $field->get( 'desc' ); ?>"></i>
	</label>
	<?php $field->get( 'input' ); ?>
<?php
endif;

endforeach;
