Размер файла: 2.26Kb
<?php /* Smarty version 2.6.26, created on 2011-02-10 14:48:37
compiled from body.menu.tpl */ ?>
<div class="any_menu">
<?php unset($this->_sections['any_menu']);
$this->_sections['any_menu']['name'] = 'any_menu';
$this->_sections['any_menu']['loop'] = is_array($_loop=$this->_tpl_vars['menu']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['any_menu']['show'] = true;
$this->_sections['any_menu']['max'] = $this->_sections['any_menu']['loop'];
$this->_sections['any_menu']['step'] = 1;
$this->_sections['any_menu']['start'] = $this->_sections['any_menu']['step'] > 0 ? 0 : $this->_sections['any_menu']['loop']-1;
if ($this->_sections['any_menu']['show']) {
$this->_sections['any_menu']['total'] = $this->_sections['any_menu']['loop'];
if ($this->_sections['any_menu']['total'] == 0)
$this->_sections['any_menu']['show'] = false;
} else
$this->_sections['any_menu']['total'] = 0;
if ($this->_sections['any_menu']['show']):
for ($this->_sections['any_menu']['index'] = $this->_sections['any_menu']['start'], $this->_sections['any_menu']['iteration'] = 1;
$this->_sections['any_menu']['iteration'] <= $this->_sections['any_menu']['total'];
$this->_sections['any_menu']['index'] += $this->_sections['any_menu']['step'], $this->_sections['any_menu']['iteration']++):
$this->_sections['any_menu']['rownum'] = $this->_sections['any_menu']['iteration'];
$this->_sections['any_menu']['index_prev'] = $this->_sections['any_menu']['index'] - $this->_sections['any_menu']['step'];
$this->_sections['any_menu']['index_next'] = $this->_sections['any_menu']['index'] + $this->_sections['any_menu']['step'];
$this->_sections['any_menu']['first'] = ($this->_sections['any_menu']['iteration'] == 1);
$this->_sections['any_menu']['last'] = ($this->_sections['any_menu']['iteration'] == $this->_sections['any_menu']['total']);
?>
<a href='<?php echo $this->_tpl_vars['menu'][$this->_sections['any_menu']['index']][0]; ?>
'><?php echo $this->_tpl_vars['menu'][$this->_sections['any_menu']['index']][1]; ?>
<?php if ($this->_tpl_vars['menu'][$this->_sections['any_menu']['index']][2]): ?> (<?php echo $this->_tpl_vars['menu'][$this->_sections['any_menu']['index']][2]; ?>
)<?php endif; ?></a>
<?php endfor; endif; ?>
</div>