File size: 2.4Kb
<?php /* Smarty version 2.6.26, created on 2011-02-10 15:00:17
compiled from links.select.tpl */ ?>
<div class="module_menu_select">
<?php if ($this->_tpl_vars['menu_title']): ?>
<b><?php echo $this->_tpl_vars['menu_title']; ?>
:</b>
<?php endif; ?>
<?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']);
?>
<?php if ($this->_tpl_vars['menu'][$this->_sections['any_menu']['index']][2]): ?>
[<?php echo $this->_tpl_vars['menu'][$this->_sections['any_menu']['index']][1]; ?>
]
<?php else: ?>
<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]; ?>
</a>
<?php endif; ?>
<?php endfor; endif; ?>
</div>