<?php 
/**
 * ------------------------------------------------------------------------
 * ja_trip_tpl
 * ------------------------------------------------------------------------
 * 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');
	$column = $helper->get('columns');
	$ftAlign = $helper->get('align');

	$colItem = 'col-12 col-sm-6 col-lg-'.(12/$column);
	$colHighlight = 'col-xl-12';

	if($column == 4) {
		$colItem = 'col-12 col-lg-6 col-xl-'.(12/$column);
		$colHighlight = 'col-xl-6';
	} elseif ($column == 3) {
		$colItem = 'col-12 col-md-6 col-lg-'.(12/$column);
		$colHighlight = 'col-xl-8';
	}
?>

<div class="acm-features style-3">
	<div class="container">
		<div class="row text-<?php echo $ftAlign ;?> cols-<?php echo $column ;?> d-flex justify-content-center v-gutters">
			<?php for ($i=0; $i<$count; $i++) : ?>
				<div class="<?php echo $colItem; ?>">
					<div class="features-item <?php if(!$helper->get('link', $i)) echo 'no-link' ?>" data-aos="flip-down" data-aos-delay="<?php echo ($i+3)*100 ;?>">
						<?php if($helper->get('link', $i)) : ?>
							<a href="<?php echo $helper->get('link', $i) ?>" class="link-mask"></a>
						<?php endif ; ?>
						<div class="item-inner">
							<?php if($helper->get('img-icon', $i)) : ?>
								<div class="img-icon">
									<img src="<?php echo $helper->get('img-icon', $i) ?>" alt="" />
								</div>
							<?php endif ; ?>

							<?php if($helper->get('number', $i)) : ?>
								<div class="number h1">
									<?php echo $helper->get('number', $i) ?>
								</div>
							<?php endif ; ?>
							
							<?php if($helper->get('title', $i)) : ?>
								<h4>
									<?php echo $helper->get('title', $i) ?>
								</h4>
							<?php endif ; ?>
							
							<?php if($helper->get('description', $i)) : ?>
								<p><?php echo $helper->get('description', $i) ?></p>
							<?php endif ; ?>
						</div>
					</div>
				</div>
			<?php endfor ?>
		</div>
	</div>
</div>