42 lines
2.2 KiB
PHP
42 lines
2.2 KiB
PHP
<?php /* Smarty version 2.6.20, created on 2012-12-05 09:50:46
|
|
compiled from /srv/www/vhosts/firestorm.pl/subdomains/kaktusy/httpdocs/modules/blockcategories/blockcategories.tpl */ ?>
|
|
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
|
|
smarty_core_load_plugins(array('plugins' => array(array('function', 'l', '/srv/www/vhosts/firestorm.pl/subdomains/kaktusy/httpdocs/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>
|
|
<script type="text/javascript">
|
|
// <![CDATA[
|
|
// we hide the tree only if JavaScript is activated
|
|
$('div#categories_block_left ul.dhtml').hide();
|
|
// ]]>
|
|
</script>
|
|
<!-- /Block categories module -->
|