<?php /* Smarty version Smarty-3.1.8, created on 2019-10-16 13:46:16
         compiled from "/home/stg70/public_html/agmc-v2/application/core/views/frontend/custom/catalog/AjaxCatalogWidget.tpl" */ ?>
<?php /*%%SmartyHeaderCode:10071509295da6e6e8bc86f9-65959198%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'a3bdb231d51ca515227335f5e648648982754e01' => 
    array (
      0 => '/home/stg70/public_html/agmc-v2/application/core/views/frontend/custom/catalog/AjaxCatalogWidget.tpl',
      1 => 1571049180,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '10071509295da6e6e8bc86f9-65959198',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'listWidgetTab' => 0,
    'widget' => 0,
    'widgetTabs' => 0,
    'language' => 0,
    'index' => 0,
    'widgetViewMoreLink' => 0,
    'viewMoreLabel' => 0,
    'tabkey' => 0,
    'widgetDisplayedOn' => 0,
    'widgetKey' => 0,
    'tabCount' => 0,
    'uniqueID' => 0,
    'widgetID' => 0,
    'widgetType' => 0,
    'staticWidgetContent' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.8',
  'unifunc' => 'content_5da6e6e8cd3999_10679318',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5da6e6e8cd3999_10679318')) {function content_5da6e6e8cd3999_10679318($_smarty_tpl) {?>
<?php if (!empty($_smarty_tpl->tpl_vars['listWidgetTab']->value)){?>
  <div class="widget-box <?php if ((($tmp = @$_smarty_tpl->tpl_vars['widget']->value['widgetDescription'])===null||$tmp==='' ? '' : $tmp)==''){?> productwidget <?php }?>">
      
		<?php if ($_smarty_tpl->tpl_vars['widget']->value['showTitle']=='Yes'){?>
		<div class="container">
		<?php if (count($_smarty_tpl->tpl_vars['listWidgetTab']->value)==1){?>
            <div class="view-more text-right pt-2 float-right">
			<?php $_smarty_tpl->tpl_vars["index"] = new Smarty_variable(0, null, 0);?> 
			<?php  $_smarty_tpl->tpl_vars['widgetTabs'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['widgetTabs']->_loop = false;
 $_smarty_tpl->tpl_vars['tabkey'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['listWidgetTab']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['widgetTabs']->key => $_smarty_tpl->tpl_vars['widgetTabs']->value){
$_smarty_tpl->tpl_vars['widgetTabs']->_loop = true;
 $_smarty_tpl->tpl_vars['tabkey']->value = $_smarty_tpl->tpl_vars['widgetTabs']->key;
?>
			<?php if ($_smarty_tpl->tpl_vars['widgetTabs']->value['enableViewMore']=='Yes'){?>
                                <?php if ((($tmp = @$_smarty_tpl->tpl_vars['widgetTabs']->value['viewMoreLabel'])===null||$tmp==='' ? '' : $tmp)!=''){?>
                                    <?php $_smarty_tpl->tpl_vars["viewMoreLabel"] = new Smarty_variable($_smarty_tpl->tpl_vars['widgetTabs']->value['viewMoreLabel'], null, 0);?>
                                <?php }else{ ?>
                                    <?php $_smarty_tpl->tpl_vars["viewMoreLabel"] = new Smarty_variable(($_smarty_tpl->tpl_vars['language']->value['lblViewMoreLabel']), null, 0);?>
                                <?php }?>
				<?php $_smarty_tpl->tpl_vars["widgetViewMoreLink"] = new Smarty_variable($_smarty_tpl->tpl_vars['widgetTabs']->value['widgetViewMoreLink'], null, 0);?>
				<?php if ($_smarty_tpl->tpl_vars['index']->value==0){?>
				<?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('href'=>($_smarty_tpl->tpl_vars['widgetViewMoreLink']->value),'id'=>"viewmore_".($_smarty_tpl->tpl_vars['widgetTabs']->value['widgetTabID']),'class'=>"active padding-vertical viewmorelink  text-primary",'content'=>($_smarty_tpl->tpl_vars['viewMoreLabel']->value)),$_smarty_tpl);?>

				<?php }else{ ?>
				<?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('href'=>($_smarty_tpl->tpl_vars['widgetViewMoreLink']->value),'id'=>"viewmore_".($_smarty_tpl->tpl_vars['widgetTabs']->value['widgetTabID']),'class'=>"viewmorelink padding-vertical text-primary",'content'=>($_smarty_tpl->tpl_vars['viewMoreLabel']->value)),$_smarty_tpl);?>

				<?php }?>
				<?php $_smarty_tpl->tpl_vars["index"] = new Smarty_variable($_smarty_tpl->tpl_vars['index']->value+1, null, 0);?>
			<?php }?>
			<?php } ?>
			
		</div>
		<?php }?>
			<h2 class="font-bold h4 mb-4 text-center text-uppercase wdgt_title"><?php echo $_smarty_tpl->tpl_vars['widget']->value['widgetTitle'];?>
</h2>
		
		</div>
		
		<?php }?>

         <div class="container">

  		<div class="row">
  	<div class="tabs  col-12 <?php if (count($_smarty_tpl->tpl_vars['listWidgetTab']->value)==1){?>hide <?php }else{ ?>tab-drop drop_<?php echo $_smarty_tpl->tpl_vars['tabkey']->value;?>
<?php }?>" data-class='widgets'>

  	
  	
  		<div class="wdgt-tab wdgt-tab_<?php echo $_smarty_tpl->tpl_vars['tabkey']->value;?>
">
  				
                                      
  			<?php $_smarty_tpl->tpl_vars["index"] = new Smarty_variable(0, null, 0);?>
                        <?php $_smarty_tpl->tpl_vars["tabCount"] = new Smarty_variable(count($_smarty_tpl->tpl_vars['listWidgetTab']->value), null, 0);?>
  			<?php  $_smarty_tpl->tpl_vars['widgetTabs'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['widgetTabs']->_loop = false;
 $_smarty_tpl->tpl_vars['tabkey'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['listWidgetTab']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['widgetTabs']->key => $_smarty_tpl->tpl_vars['widgetTabs']->value){
$_smarty_tpl->tpl_vars['widgetTabs']->_loop = true;
 $_smarty_tpl->tpl_vars['tabkey']->value = $_smarty_tpl->tpl_vars['widgetTabs']->key;
?>
  			<?php $_smarty_tpl->tpl_vars["uniqueID"] = new Smarty_variable($_smarty_tpl->tpl_vars['widgetTabs']->value['uniqueID'], null, 0);?>
  			<?php $_smarty_tpl->tpl_vars["widgetKey"] = new Smarty_variable($_smarty_tpl->tpl_vars['widgetTabs']->value['widgetKey'], null, 0);?>
  			<?php $_smarty_tpl->tpl_vars["widgetDisplayedOn"] = new Smarty_variable($_smarty_tpl->tpl_vars['widgetTabs']->value['widgetDisplayedOn'], null, 0);?>
  			<?php $_smarty_tpl->tpl_vars["widgetViewMoreLink"] = new Smarty_variable($_smarty_tpl->tpl_vars['widgetTabs']->value['widgetViewMoreLink'], null, 0);?>
				  <?php if ($_smarty_tpl->tpl_vars['widgetTabs']->value['showItemLabel']=='Yes'){?>
				  <ul class="list-unstyled text-center">
				<li class="list-inline-item text-uppercase">

  					<a 	href="javascript:void(0);" 
  						data-href="/index/ajaxgetwidgettabitems/widgetdisplayedon/<?php echo $_smarty_tpl->tpl_vars['widgetDisplayedOn']->value;?>
/widgettab/<?php echo $_smarty_tpl->tpl_vars['widgetTabs']->value['widgetTabID'];?>
/key/<?php echo $_smarty_tpl->tpl_vars['widgetKey']->value;?>
/cn/<?php echo $_smarty_tpl->tpl_vars['tabCount']->value;?>
" 
  						data-tabnavid="tab_<?php echo $_smarty_tpl->tpl_vars['widgetKey']->value;?>
_<?php echo $_smarty_tpl->tpl_vars['tabkey']->value;?>
" 
  						data-widgettab="<?php echo $_smarty_tpl->tpl_vars['widgetTabs']->value['widgetTabID'];?>
" 
  						data-widget	="<?php echo $_smarty_tpl->tpl_vars['widgetTabs']->value['widgetID'];?>
"                                                 
  						data-class='widgets_tab'
  						slider="slider_<?php echo $_smarty_tpl->tpl_vars['uniqueID']->value;?>
"
  						rel="tabpane_<?php echo $_smarty_tpl->tpl_vars['widgetTabs']->value['widgetTabID'];?>
" 
  						class="widgets_tab tab tab_item font-medium <?php if ($_smarty_tpl->tpl_vars['index']->value==0){?>first_tab active<?php }?>">
  						<?php echo $_smarty_tpl->tpl_vars['widgetTabs']->value['tabTitle'];?>

  					</a>
				  </li>
				  </ul>
				<?php }?>
				
  				<?php $_smarty_tpl->tpl_vars["index"] = new Smarty_variable($_smarty_tpl->tpl_vars['index']->value+1, null, 0);?>
  			<?php } ?>
  			
  		
            
  		</div>
  		
  	</div>
  		
  

  	<div class="wdgt-slider-block pos-rlv tab-items-load-<?php echo $_smarty_tpl->tpl_vars['widgetID']->value;?>
  col-12 rmv-padding">
                <div class="bg-white text-center wid-loader-tab-items-<?php echo $_smarty_tpl->tpl_vars['widgetID']->value;?>
  wid-loader hide"></div>
                <?php $_smarty_tpl->tpl_vars["index"] = new Smarty_variable(0, null, 0);?>
  		<?php  $_smarty_tpl->tpl_vars['widgetTabs'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['widgetTabs']->_loop = false;
 $_smarty_tpl->tpl_vars['tabkey'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['listWidgetTab']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['widgetTabs']->key => $_smarty_tpl->tpl_vars['widgetTabs']->value){
$_smarty_tpl->tpl_vars['widgetTabs']->_loop = true;
 $_smarty_tpl->tpl_vars['tabkey']->value = $_smarty_tpl->tpl_vars['widgetTabs']->key;
?>
               
  		<?php $_smarty_tpl->tpl_vars["widgetKey"] = new Smarty_variable($_smarty_tpl->tpl_vars['widgetTabs']->value['widgetKey'], null, 0);?>
  		
  		<?php $_smarty_tpl->tpl_vars["widgetType"] = new Smarty_variable($_smarty_tpl->tpl_vars['widgetTabs']->value['widgetType'], null, 0);?>
  		<?php $_smarty_tpl->tpl_vars["staticWidgetContent"] = new Smarty_variable($_smarty_tpl->tpl_vars['widgetTabs']->value['staticWidgetContent'], null, 0);?>
  		<?php if ($_smarty_tpl->tpl_vars['widgetType']->value=='static'){?>
  		<div class="tabpane_<?php echo $_smarty_tpl->tpl_vars['widgetTabs']->value['widgetID'];?>
 <?php echo $_smarty_tpl->tpl_vars['widgetTabs']->value['widgetType'];?>
 <?php if ($_smarty_tpl->tpl_vars['index']->value>0){?>hide<?php }?>" data-tabid="tab_<?php echo $_smarty_tpl->tpl_vars['widgetKey']->value;?>
_<?php echo $_smarty_tpl->tpl_vars['tabkey']->value;?>
" id="tabpane_<?php echo $_smarty_tpl->tpl_vars['widgetTabs']->value['widgetTabID'];?>
">
  		<?php echo htmlspecialchars_decode($_smarty_tpl->tpl_vars['staticWidgetContent']->value, ENT_QUOTES);?>

  		</div>
  		<?php $_smarty_tpl->tpl_vars["index"] = new Smarty_variable($_smarty_tpl->tpl_vars['index']->value+1, null, 0);?>
  		<?php }else{ ?>
  		<div class="tabpane_<?php echo $_smarty_tpl->tpl_vars['widgetTabs']->value['widgetID'];?>
 <?php echo $_smarty_tpl->tpl_vars['widgetTabs']->value['listingType'];?>
 <?php if ($_smarty_tpl->tpl_vars['index']->value>0){?>hide<?php }?>" data-tabid="tab_<?php echo $_smarty_tpl->tpl_vars['widgetKey']->value;?>
_<?php echo $_smarty_tpl->tpl_vars['tabkey']->value;?>
" id="tabpane_<?php echo $_smarty_tpl->tpl_vars['widgetTabs']->value['widgetTabID'];?>
">
                <?php if ($_smarty_tpl->tpl_vars['tabkey']->value=='0'){?>
  		<?php echo $_smarty_tpl->getSubTemplate ('catalog/default/AjaxCatalogWidget.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?>

                <?php }?>
                <?php $_smarty_tpl->tpl_vars["index"] = new Smarty_variable($_smarty_tpl->tpl_vars['index']->value+1, null, 0);?>
                </div>
                <?php }?>

                <?php } ?>
 <?php if (count($_smarty_tpl->tpl_vars['listWidgetTab']->value)>1){?>
            <div class="pt-2 text-center view-more">
      <?php $_smarty_tpl->tpl_vars["index"] = new Smarty_variable(0, null, 0);?>
			<?php  $_smarty_tpl->tpl_vars['widgetTabs'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['widgetTabs']->_loop = false;
 $_smarty_tpl->tpl_vars['tabkey'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['listWidgetTab']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['widgetTabs']->key => $_smarty_tpl->tpl_vars['widgetTabs']->value){
$_smarty_tpl->tpl_vars['widgetTabs']->_loop = true;
 $_smarty_tpl->tpl_vars['tabkey']->value = $_smarty_tpl->tpl_vars['widgetTabs']->key;
?>
			<?php if ($_smarty_tpl->tpl_vars['widgetTabs']->value['enableViewMore']=='Yes'){?>
				<?php $_smarty_tpl->tpl_vars["widgetViewMoreLink"] = new Smarty_variable($_smarty_tpl->tpl_vars['widgetTabs']->value['widgetViewMoreLink'], null, 0);?>
                                <?php if ((($tmp = @$_smarty_tpl->tpl_vars['widgetTabs']->value['viewMoreLabel'])===null||$tmp==='' ? '' : $tmp)!=''){?>
                                    <?php $_smarty_tpl->tpl_vars["viewMoreLabel"] = new Smarty_variable($_smarty_tpl->tpl_vars['widgetTabs']->value['viewMoreLabel'], null, 0);?>
                                <?php }else{ ?>
                                    <?php $_smarty_tpl->tpl_vars["viewMoreLabel"] = new Smarty_variable(($_smarty_tpl->tpl_vars['language']->value['lblViewMoreLabel']), null, 0);?>
                                <?php }?>
				<?php if ($_smarty_tpl->tpl_vars['index']->value==0){?>
				<?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('href'=>($_smarty_tpl->tpl_vars['widgetViewMoreLink']->value),'id'=>"viewmore_".($_smarty_tpl->tpl_vars['widgetTabs']->value['widgetTabID']),'class'=>"d-inline-block  btn btn-outline-primary btn-sm viewmorelink",'content'=>($_smarty_tpl->tpl_vars['viewMoreLabel']->value)),$_smarty_tpl);?>

				<?php }else{ ?>
				<?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('href'=>($_smarty_tpl->tpl_vars['widgetViewMoreLink']->value),'id'=>"viewmore_".($_smarty_tpl->tpl_vars['widgetTabs']->value['widgetTabID']),'class'=>"viewmorelink  btn btn-outline-primary btn-sm viewmorelink",'content'=>($_smarty_tpl->tpl_vars['viewMoreLabel']->value)),$_smarty_tpl);?>

				<?php }?>
				<?php $_smarty_tpl->tpl_vars["index"] = new Smarty_variable($_smarty_tpl->tpl_vars['index']->value+1, null, 0);?>
			<?php }?>
			<?php } ?>
  </div>
            <?php }?>
  	</div>
           
  	</div>
  

</div>
  </div>
<?php }?>

<?php }} ?>