<?php /* Smarty version 2.6.18, created on 2009-11-10 13:38:35
         compiled from /homez.47/arboreth/www/arborethic_boutique_old/modules/blockcategories/blockcategories.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'l', '/homez.47/arboreth/www/arborethic_boutique_old/modules/blockcategories/blockcategories.tpl', 5, false),)), $this); ?>
<script type="text/javascript" src="<?php echo $this->_tpl_vars['js_dir']; ?>
tools/treeManagement.js"></script>



<!-- Block categories module -->

<div id="categories_block_left" class="block">

	<h4><?php echo smartyTranslate(array('s' => 'Categories','mod' => 'blockcategories'), $this);?>
</h4>

	<div class="block_content">

		<ul class="tree <?php if ($this->_tpl_vars['isDhtml']): ?>dhtml<?php endif; ?>">

		<?php $_from = $this->_tpl_vars['blockCategTree']['children']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['blockCategTree'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['blockCategTree']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['child']):
        $this->_foreach['blockCategTree']['iteration']++;
?>

			<?php if (($this->_foreach['blockCategTree']['iteration'] == $this->_foreach['blockCategTree']['total'])): ?>

						<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['branche_tpl_path'], 'smarty_include_vars' => array('node' => $this->_tpl_vars['child'],'last' => 'true')));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

			<?php else: ?>

						<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['branche_tpl_path'], 'smarty_include_vars' => array('node' => $this->_tpl_vars['child'])));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

			<?php endif; ?>

		<?php endforeach; endif; unset($_from); ?>

		</ul>

	</div>	

</div>

<!-- /Block categories module -->
