<?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;
	use Joomla\CMS\Helper\MediaHelper;

	$mod            = $module->id;

	$count 					= $helper->getRows('data.ft-title');

	$items_position = $helper->get('position');
?>

<div id="acm-features-<?php echo $mod; ?>" class="acm-features style-1" style="background-image: url('<?php echo JUri::root() .  Mediahelper::getCleanMediaFieldValue($helper->get('img-features')); ?>">
	<div class="mask"></div>
	<?php if($module->showtitle != 0) : ?>
	<div class="text-animation">
		<?php echo $module->title; ?>
	</div>
	<?php endif ; ?>
	<div class="container-fluid container-md">
		<div class="features-content-wrap">
			<div class="features-content">
				<?php if($module->showtitle != 0) : ?>
				<div class="section-title-wrap" data-aos="fade-up">
					<?php echo $module->title; ?>
				</div>
				<?php endif ; ?>

				<div class="features-mod" data-aos="fade-up" data-aos-delay="300">
					<?php
						echo $helper->renderModules($items_position,
							array(
								'style'=>'none',
								'tag'=>'div',
								'class'=>''
							))
						?>
				</div>

				<?php if($count) :?>
					<ul class="features-list" >
						<?php
							for ($i=0; $i<$count; $i++) :
						?>
							<li data-aos="fade-up" data-aos-delay="<?php echo ($i+3)*100 ;?>" ><?php echo $helper->get('data.ft-icon', $i) ?><?php echo $helper->get('data.ft-title', $i) ?></li>
						<?php endfor ?>
					</ul>
				<?php endif ;?>
				<!--- //Features Content -->
			</div>
		</div>
	</div>
</div>
