<?php /* Smarty version Smarty-3.1.8, created on 2019-10-16 13:46:15
         compiled from "/home/stg70/public_html/agmc-v2/application/core/views/frontend/custom/BannerSlider.tpl" */ ?>
<?php /*%%SmartyHeaderCode:3368424645da6e6e706f792-39482169%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '2392dd6842c53dd818f745f25695cbbae82e5604' => 
    array (
      0 => '/home/stg70/public_html/agmc-v2/application/core/views/frontend/custom/BannerSlider.tpl',
      1 => 1571049180,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '3368424645da6e6e706f792-39482169',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'resBanner' => 0,
    'bannerDetails' => 0,
    'view_public_path' => 0,
    'languageDirection' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.8',
  'unifunc' => 'content_5da6e6e708d491_88038307',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5da6e6e708d491_88038307')) {function content_5da6e6e708d491_88038307($_smarty_tpl) {?><?php if ((($tmp = @$_smarty_tpl->tpl_vars['resBanner']->value)===null||$tmp==='' ? '' : $tmp)){?> 
<!-- MAIN CONTENT -->							
<div class="main-slider-content" >						
  <div class="sliders-wrapper" >								
    <div class="sliders-wrap-inner" >	
      <?php  $_smarty_tpl->tpl_vars["bannerDetails"] = new Smarty_Variable; $_smarty_tpl->tpl_vars["bannerDetails"]->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['resBanner']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars["bannerDetails"]->key => $_smarty_tpl->tpl_vars["bannerDetails"]->value){
$_smarty_tpl->tpl_vars["bannerDetails"]->_loop = true;
?>
      <div class="wrap-slide <?php echo $_smarty_tpl->tpl_vars['bannerDetails']->value['bannerCssStyle'];?>
">
            <?php if ($_smarty_tpl->tpl_vars['bannerDetails']->value['bannerDisplayType']=="Image"){?>				
        <div class="banner-inner position-relative text-center"> 
            <?php if ($_smarty_tpl->tpl_vars['bannerDetails']->value['bannerLink']!=''){?> <a href="<?php echo $_smarty_tpl->tpl_vars['bannerDetails']->value['bannerLink'];?>
" title="<?php echo $_smarty_tpl->tpl_vars['bannerDetails']->value['bannerTitle'];?>
"   <?php if ($_smarty_tpl->tpl_vars['bannerDetails']->value['bannerTarget']=="newWindow"){?> target="_blank" <?php }?> ><?php }?> <img data-lazy="<?php echo $_smarty_tpl->tpl_vars['view_public_path']->value;?>
/uploads/banner/<?php echo $_smarty_tpl->tpl_vars['bannerDetails']->value['bannerImage'];?>
" src="<?php echo $_smarty_tpl->tpl_vars['view_public_path']->value;?>
/uploads/banner/<?php if (count($_smarty_tpl->tpl_vars['resBanner']->value)>1){?>thumb/<?php }?><?php echo $_smarty_tpl->tpl_vars['bannerDetails']->value['bannerImage'];?>
" alt="<?php echo $_smarty_tpl->tpl_vars['bannerDetails']->value['bannerTitle'];?>
" class="img-auto main-img img-fluid position-relative w-100" /> <?php if ($_smarty_tpl->tpl_vars['bannerDetails']->value['bannerTextBlend']=="yes"&&$_smarty_tpl->tpl_vars['bannerDetails']->value['bannerContent']!=''){?>
          <div class="slider-description position-absolute w-100 left-0 text-white">
              <div class="container">
                   <?php echo htmlspecialchars_decode($_smarty_tpl->tpl_vars['bannerDetails']->value['bannerContent'], ENT_QUOTES);?>
 </div>
              </div>
          <?php }?>
          <?php if ($_smarty_tpl->tpl_vars['bannerDetails']->value['bannerLink']!=''){?> </a><?php }?>
        </div>
          <?php }?> 
      </div>
      <?php } ?>
    </div>
  </div>
</div>
<!-- END MAIN CONTENT --> 
<?php }?>

<?php if (count($_smarty_tpl->tpl_vars['resBanner']->value)>1){?> 
    <script type="text/javascript">
      $(document).ready(function() {
        $(".sliders-wrap-inner").not('.slick-initialized').slick({
          lazyLoad: 'ondemand',    
          dots: true,
          arrows: true,
          autoplay: true,  
          prevArrow: '<i class="icon-arrow-left rounded-circle text-center"></i>',
          nextArrow: '<i class="icon-arrow-right rounded-circle text-center"></i>',
          <?php if ($_smarty_tpl->tpl_vars['languageDirection']->value=="rtl"){?>rtl:true,<?php }?>
          responsive: [
            {
              breakpoint: 992,
              settings: {
                arrows: false
              }
            }
          ]
        });
      });
    </script> 
 <?php }?>

 


<?php }} ?>