<?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\HTML\HTMLHelper;
use Joomla\CMS\Plugin\PluginHelper;
use Joomla\CMS\Helper\MediaHelper;
PluginHelper::importPlugin('content');
?>

<div class="acm-features style-2">
	<div class="row g-0">
		<?php if($helper->get('intro-img')) : ?>
			<div class="col-12 col-lg-6 features-media">
				<div class="intro-img">
					<img src="<?php echo Mediahelper::getCleanMediaFieldValue($helper->get('intro-img')) ?>" alt="" />
				</div>

				<?php if($helper->get('intro-img-2')) : ?>
					<div class="intro-img-2">
						<img src="<?php echo Mediahelper::getCleanMediaFieldValue($helper->get('intro-img-2')) ?>" alt="" />
					</div>	
				<?php endif ; ?>		
			</div>
		<?php endif ; ?>

		<div class="col-12 col-lg-6 features-desc">
			<div class="info-wrap">
				<div class="inner">
					<?php if($helper->get('sub-title')) :?>
						<div data-aos="fade-left" data-aos-delay="100" class="sub-title font-special-family h3 text-gradient">
							<?php echo $helper->get('sub-title') ;?>
						</div>
					<?php endif ;?>

					<?php if($helper->get('info-title')) :?>
						<div data-aos="fade-left" data-aos-delay="300" class="info-title h1">
							<?php echo $helper->get('info-title') ;?>
						</div>
					<?php endif ;?>

					<?php if($helper->get('info-desc')) :?>
						<div data-aos="fade-left" data-aos-delay="500" class="info-desc">
							<?php echo HTMLHelper::_('content.prepare', $helper->get('info-desc')) ;?>
						</div>
					<?php endif ;?>

					<?php if($helper->get('button')): ?>
            <div data-aos="fade-left" data-aos-delay="600" class="acm-action">
              <?php if($helper->get('button')): ?>
                <a href="<?php echo $helper->get('btn-link'); ?>" class="btn btn-<?php echo $helper->get('btn-type') ;?>">
                  <?php echo $helper->get('button') ?>    
                </a>
              <?php endif; ?>
            </div>
          <?php endif; ?>
				</div>
			</div>
		</div>
	</div>
</div>
