<?php /* Smarty version Smarty-3.1.8, created on 2020-12-10 12:33:00
         compiled from "/home/agmc/beta/application/core/views/frontend/mini/BannerSlider.tpl" */ ?>
<?php /*%%SmartyHeaderCode:16056007645e26c2952a27f2-04597114%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'c1500a17d3dfabc8c6358c270fc037065dbf8112' => 
    array (
      0 => '/home/agmc/beta/application/core/views/frontend/mini/BannerSlider.tpl',
      1 => 1605520856,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '16056007645e26c2952a27f2-04597114',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.8',
  'unifunc' => 'content_5e26c2952b8100_79430900',
  'variables' => 
  array (
    'resBanner' => 0,
    'bannerDetails' => 0,
    'view_public_path' => 0,
    'languageDirection' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5e26c2952b8100_79430900')) {function content_5e26c2952b8100_79430900($_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"> 
            <?php if ($_smarty_tpl->tpl_vars['bannerDetails']->value['bannerLink']!=''){?> <a href="<?php echo $_smarty_tpl->tpl_vars['bannerDetails']->value['bannerLink'];?>
" <?php if ($_smarty_tpl->tpl_vars['bannerDetails']->value['bannerTarget']=="newWindow"){?> target="_blank" <?php }?> ><?php }?> <div class="img-outer"><img  src="<?php echo $_smarty_tpl->tpl_vars['view_public_path']->value;?>
/uploads/banner/<?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" /></div> <?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({
          dots: true,
          arrows: true,
          autoplay: true,
          autoplaySpeed: 4000,    
          prevArrow: '<i class="icon-left-stick-arw rounded-circle text-center slick-prev"></i>',
          nextArrow: '<i class="icon-right-stick-arw  rounded-circle text-center slick-next"></i>',
          <?php if ($_smarty_tpl->tpl_vars['languageDirection']->value=="rtl"){?>rtl:true,<?php }?>
          responsive: [
            {
              breakpoint: 992,
              settings: {
                arrows: false
              }
            }
          ]
        });
      });
    </script> 
 <?php }?>

 


<?php }} ?>