<?php /* Smarty version Smarty-3.1.8, created on 2020-01-01 11:00:47
         compiled from "/home/agmc/public_html/beta/application/core/views/frontend/mini/ProductCategories.tpl" */ ?>
<?php /*%%SmartyHeaderCode:1731043325e0c7bdff21943-87464136%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'ca65ad8786cdbf25d8e6063848ead90588aa8ca7' => 
    array (
      0 => '/home/agmc/public_html/beta/application/core/views/frontend/mini/ProductCategories.tpl',
      1 => 1577772525,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '1731043325e0c7bdff21943-87464136',
  'function' => 
  array (
    'categories' => 
    array (
      'parameter' => 
      array (
        'level' => 0,
      ),
      'compiled' => '',
    ),
  ),
  'variables' => 
  array (
    'data' => 0,
    'productCategory' => 0,
    'parentCount' => 0,
    'level' => 0,
    'language' => 0,
    'CategoryMenus' => 0,
  ),
  'has_nocache_code' => 0,
  'version' => 'Smarty-3.1.8',
  'unifunc' => 'content_5e0c7be0063d29_95652578',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5e0c7be0063d29_95652578')) {function content_5e0c7be0063d29_95652578($_smarty_tpl) {?><ul  class="content_inner menu_items">
	 
	<?php $_smarty_tpl->tpl_vars["parentCount"] = new Smarty_variable(0, null, 0);?>
	<?php if (!function_exists('smarty_template_function_categories')) {
    function smarty_template_function_categories($_smarty_tpl,$params) {
    $saved_tpl_vars = $_smarty_tpl->tpl_vars;
    foreach ($_smarty_tpl->smarty->template_functions['categories']['parameter'] as $key => $value) {$_smarty_tpl->tpl_vars[$key] = new Smarty_variable($value);};
    foreach ($params as $key => $value) {$_smarty_tpl->tpl_vars[$key] = new Smarty_variable($value);}?>
		<?php  $_smarty_tpl->tpl_vars["productCategory"] = new Smarty_Variable; $_smarty_tpl->tpl_vars["productCategory"]->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['data']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars["productCategory"]->key => $_smarty_tpl->tpl_vars["productCategory"]->value){
$_smarty_tpl->tpl_vars["productCategory"]->_loop = true;
?> 
			<li <?php if ((!(isset($_smarty_tpl->tpl_vars['productCategory']->value['children'])&&is_array($_smarty_tpl->tpl_vars['productCategory']->value['children'])&&!empty($_smarty_tpl->tpl_vars['productCategory']->value['children'])))||($_smarty_tpl->tpl_vars['parentCount']->value>=10&&$_smarty_tpl->tpl_vars['level']->value==0)){?> class="no-child" <?php }?>>
			<?php if ($_smarty_tpl->tpl_vars['parentCount']->value>=10&&$_smarty_tpl->tpl_vars['level']->value==0){?>
			<?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('href'=>"categories/",'content'=>($_smarty_tpl->tpl_vars['language']->value['lblSeeAllCategories'])),$_smarty_tpl);?>

			</li>	
			<?php break 1?>
			<?php }?>			
			<?php if ($_smarty_tpl->tpl_vars['level']->value==0){?>
			<?php $_smarty_tpl->tpl_vars["parentCount"] = new Smarty_variable($_smarty_tpl->tpl_vars['parentCount']->value+1, null, 0);?>
			<?php }?>
				<?php if ($_smarty_tpl->tpl_vars['level']->value==1){?>
					<?php ob_start();?><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['sef_path'][0][0]->getSefRequestPath($_smarty_tpl->tpl_vars['productCategory']->value['productCategoryID'],'catalog');?>
<?php $_tmp1=ob_get_clean();?><?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('href'=>$_tmp1,'content'=>($_smarty_tpl->tpl_vars['productCategory']->value['productCategoryName'])),$_smarty_tpl);?>

				<?php }elseif($_smarty_tpl->tpl_vars['level']->value==0){?>
					<?php ob_start();?><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['sef_path'][0][0]->getSefRequestPath($_smarty_tpl->tpl_vars['productCategory']->value['productCategoryID'],'catalog');?>
<?php $_tmp2=ob_get_clean();?><?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('href'=>"/".$_tmp2,'content'=>($_smarty_tpl->tpl_vars['productCategory']->value['productCategoryName']),'class'=>"icon-arrow-right"),$_smarty_tpl);?>

				<?php }else{ ?>	
				<?php ob_start();?><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['sef_path'][0][0]->getSefRequestPath($_smarty_tpl->tpl_vars['productCategory']->value['productCategoryID'],'catalog');?>
<?php $_tmp3=ob_get_clean();?><?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('href'=>"/".$_tmp3,'content'=>($_smarty_tpl->tpl_vars['productCategory']->value['productCategoryName'])),$_smarty_tpl);?>
	
				<?php }?>
			<?php if (isset($_smarty_tpl->tpl_vars['productCategory']->value['children'])&&is_array($_smarty_tpl->tpl_vars['productCategory']->value['children'])&&!empty($_smarty_tpl->tpl_vars['productCategory']->value['children'])){?>
				<?php if ($_smarty_tpl->tpl_vars['level']->value<1){?>
					<div class="child">
		              <div class="sub_menu">
                         
					<?php }?>
                     <?php if (!$_smarty_tpl->tpl_vars['level']->value<1&&$_smarty_tpl->tpl_vars['level']->value<2){?>
                      <div class="child section3">
						<div class="sub_menu_sections">
							<div class="sub_menu_links">    
				            
                    <?php }?> 
                    <ul <?php if ($_smarty_tpl->tpl_vars['level']->value<1){?>class="sub_menu_list"<?php }?><?php if ($_smarty_tpl->tpl_vars['level']->value==1){?>class="sub-menu-level2 clearfix"<?php }?> <?php if ($_smarty_tpl->tpl_vars['level']->value==2){?>class="sub-menu-level3"<?php }?>>
					<?php smarty_template_function_categories($_smarty_tpl,array('data'=>$_smarty_tpl->tpl_vars['productCategory']->value['children'],'level'=>$_smarty_tpl->tpl_vars['level']->value+1));?>
 
					 </ul>
					 <?php if (!$_smarty_tpl->tpl_vars['level']->value<1&&$_smarty_tpl->tpl_vars['level']->value<2){?>
                            </div></div></div>
                    <?php }?>
				    <?php if ($_smarty_tpl->tpl_vars['level']->value<1){?>
                        </div></div>
					<?php }?>
                          
			<?php }else{ ?>
				<?php if ((is_array($_smarty_tpl->tpl_vars['productCategory']->value))&&(isset($_smarty_tpl->tpl_vars['productCategory']->value['menuItemID']))&&(is_numeric($_smarty_tpl->tpl_vars['productCategory']->value['menuItemID']))){?>
				</li>	
				<?php }?>
			<?php }?>
		<?php } ?>  
	<?php $_smarty_tpl->tpl_vars = $saved_tpl_vars;}}?>

	<?php smarty_template_function_categories($_smarty_tpl,array('data'=>$_smarty_tpl->tpl_vars['CategoryMenus']->value));?>
 
</ul>


		
<?php }} ?>