<?php
/**
 * ------------------------------------------------------------------------
 * JA Directory Template
 * ------------------------------------------------------------------------
 * Copyright (C) 2004-2018 J.O.O.M Solutions Co., Ltd. All Rights Reserved.
 * @license - Copyrighted Commercial Software
 * Author: J.O.O.M Solutions Co., Ltd
 * Websites:  http://www.joomlart.com -  http://www.joomlancers.com
 * This file may not be redistributed in whole or significant part.
 * ------------------------------------------------------------------------
*/
defined('_JEXEC') or die;
?>

<?php 
	$featuresImg 				= $helper->get('block-bg');
	$fullWidth = $helper->get('full-width');
	$featuresBackground  = 'background-image: url('.$featuresImg.'); background-repeat: no-repeat; background-size: cover; background-position: center center;';
?>

<div class="acm-features <?php echo $helper->get('features-style'); ?> style-1">
	<?php if(!$fullWidth): ?><div class="container"><?php endif; ?>
		<?php if($helper->get('features-description')) : ?>
			<h2 class="features-description"><?php echo $helper->get('features-description'); ?></h2>
		<?php endif ; ?>
		
		<div class="<?php if(!$fullWidth): ?> row <?php else: ?> clearfix <?php endif; ?> ">
		<?php $count = $helper->getRows('data.title'); ?>
		<?php $column = 12/($helper->get('columns')); ?>
		<?php for ($i=0; $i<$count; $i++) : ?>
		
			<div class="features-item <?php echo $helper->get('align'); ?> col-sm-<?php echo $column ?>">
				
				<?php if($helper->get('data.font-icon', $i)) : ?>
					<div class="font-icon">
						<i class="<?php echo $helper->get('data.font-icon', $i) ; ?>"></i>
					</div>
				<?php endif ; ?>

				<?php if($helper->get('data.img-icon', $i)) : ?>
					<div class="img-icon">
						<img src="<?php echo $helper->get('data.img-icon', $i) ?>" alt="" />
					</div>
				<?php endif ; ?>
				
				<?php if($helper->get('data.title', $i)) : ?>
					<h3><?php echo $helper->get('data.title', $i) ?></h3>
				<?php endif ; ?>
				
				<?php if($helper->get('data.description', $i)) : ?>
					<p><?php echo $helper->get('data.description', $i) ?></p>
				<?php endif ; ?>
			</div>
		<?php endfor ?>
		</div>
	<?php if(!$fullWidth): ?></div><?php endif; ?>
</div>