<?php 
/**
 * ------------------------------------------------------------------------
 * JA Property 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;
	$count = $helper->getRows('title');
	$columns = $helper->get('columns');
	$columnBs = 12/$columns;
	$columnSm = 4;

	if($columns==2 || $columns==4) {
		$columnSm = 6;
	}
?>

<div class="acm-features <?php echo $helper->get('features-style'); ?> style-1">
	<div class="container">
		<?php for ($i=0; $i<$count; $i++) : ?>
			<?php if ($i%$columns==0) echo '<div class="row row-flex">'; ?>
				<div class="col-sm-<?php echo $columnSm ?> col-md-<?php echo $columnBs ?>">
					<div class="features-item">
						<?php if($helper->get('font-icon', $i)) : ?>
							<div class="icon font-icon">
								<span class="<?php echo $helper->get('font-icon', $i) ; ?>"></span>
							</div>
						<?php endif ; ?>

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

						<?php if($helper->get('link', $i)) : ?>
							<a class="action" href="<?php echo $helper->get('link', $i) ?>"><span class="ion-ios-arrow-round-forward"></span></a>
						<?php endif ; ?>
					</div>
				</div>
			<?php if ( ($i%$columns==($columns-1)) || $i==($count-1) )  echo '</div>'; ?>
		<?php endfor ?>
	</div>
</div>