<?php /* Smarty version 2.6.2, created on 2012-10-21 12:09:17
         compiled from news.tpl */ ?>
<?php require_once(SMARTY_DIR . 'core' . DIRECTORY_SEPARATOR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'encurl', 'news.tpl', 9, false),array('function', 'paginator', 'news.tpl', 21, false),)), $this); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "header.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

<h3>News:</h3>

<div class="news">
<?php if ($this->_tpl_vars['news']):  if (isset($this->_sections['s'])) unset($this->_sections['s']);
$this->_sections['s']['name'] = 's';
$this->_sections['s']['loop'] = is_array($_loop=$this->_tpl_vars['news']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['s']['show'] = true;
$this->_sections['s']['max'] = $this->_sections['s']['loop'];
$this->_sections['s']['step'] = 1;
$this->_sections['s']['start'] = $this->_sections['s']['step'] > 0 ? 0 : $this->_sections['s']['loop']-1;
if ($this->_sections['s']['show']) {
    $this->_sections['s']['total'] = $this->_sections['s']['loop'];
    if ($this->_sections['s']['total'] == 0)
        $this->_sections['s']['show'] = false;
} else
    $this->_sections['s']['total'] = 0;
if ($this->_sections['s']['show']):

            for ($this->_sections['s']['index'] = $this->_sections['s']['start'], $this->_sections['s']['iteration'] = 1;
                 $this->_sections['s']['iteration'] <= $this->_sections['s']['total'];
                 $this->_sections['s']['index'] += $this->_sections['s']['step'], $this->_sections['s']['iteration']++):
$this->_sections['s']['rownum'] = $this->_sections['s']['iteration'];
$this->_sections['s']['index_prev'] = $this->_sections['s']['index'] - $this->_sections['s']['step'];
$this->_sections['s']['index_next'] = $this->_sections['s']['index'] + $this->_sections['s']['step'];
$this->_sections['s']['first']      = ($this->_sections['s']['iteration'] == 1);
$this->_sections['s']['last']       = ($this->_sections['s']['iteration'] == $this->_sections['s']['total']);
?>
<div class="item <?php if ($this->_tpl_vars['news'][$this->_sections['s']['index']]['sponsored']): ?>spons<?php endif; ?>">
 <a name="<?php echo $this->_tpl_vars['news'][$this->_sections['s']['index']]['id']; ?>
" href="<?php echo ((is_array($_tmp="?a=news&id=".($this->_tpl_vars['news'][$this->_sections['s']['index']]['id']))) ? $this->_run_mod_handler('encurl', true, $_tmp) : smarty_modifier_encurl($_tmp)); ?>
" class="title"><?php echo $this->_tpl_vars['news'][$this->_sections['s']['index']]['title']; ?>
</a>
 <p class="text"><?php echo $this->_tpl_vars['news'][$this->_sections['s']['index']]['full_text']; ?>
</p>
 <p class="date"><?php echo $this->_tpl_vars['news'][$this->_sections['s']['index']]['d']; ?>
</p>
</div>
<?php endfor; endif;  else: ?>
<div class="item">
 <p class="text">No news found.</p>
</div>
<?php endif; ?>
</div>

<?php echo smarty_function_paginator(array('col' => $this->_tpl_vars['pages']['col'],'cur' => $this->_tpl_vars['pages']['cur'],'url' => ((is_array($_tmp="?a=news&p=%s")) ? $this->_run_mod_handler('encurl', true, $_tmp) : smarty_modifier_encurl($_tmp))), $this);?>


<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "footer.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>