Файл: DARK WARS/dark_war/style/tpl_c/dc14736d5292a79a49f95288ab88641a771b7015.file.pages.tpl.php
Строк: 108
<?php /* Smarty version Smarty-3.1.8, created on 2012-11-09 18:32:49
compiled from "/var/www/user3955/data/www/dark-wars.ru/dark_war/style/tpl/pages.tpl" */ ?>
<?php /*%%SmartyHeaderCode:634409914508bb8300c5b35-37417401%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'dc14736d5292a79a49f95288ab88641a771b7015' =>
array (
0 => '/var/www/user3955/data/www/dark-wars.ru/dark_war/style/tpl/pages.tpl',
1 => 1352471510,
2 => 'file',
),
),
'nocache_hash' => '634409914508bb8300c5b35-37417401',
'function' =>
array (
),
'version' => 'Smarty-3.1.8',
'unifunc' => 'content_508bb830191520_86602422',
'variables' =>
array (
'page' => 0,
'link' => 0,
'k_page' => 0,
),
'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_508bb830191520_86602422')) {function content_508bb830191520_86602422($_smarty_tpl) {?><div class="pages">
<?php if ($_smarty_tpl->tpl_vars['page']->value==1){?>
<span>1</span>
<?php }else{ ?>
<a href="<?php echo $_smarty_tpl->tpl_vars['link']->value;?>
page=1">1</a>
<?php }?>
<?php if ($_smarty_tpl->tpl_vars['page']->value>4){?>
..
<?php }?>
<?php if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']['page'])) unset($_smarty_tpl->tpl_vars['smarty']->value['section']['page']);
$_smarty_tpl->tpl_vars['smarty']->value['section']['page']['name'] = 'page';
$_smarty_tpl->tpl_vars['smarty']->value['section']['page']['loop'] = is_array($_loop=$_smarty_tpl->tpl_vars['k_page']->value) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$_smarty_tpl->tpl_vars['smarty']->value['section']['page']['show'] = true;
$_smarty_tpl->tpl_vars['smarty']->value['section']['page']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['page']['loop'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['page']['step'] = 1;
$_smarty_tpl->tpl_vars['smarty']->value['section']['page']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['page']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['page']['loop']-1;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['page']['show']) {
$_smarty_tpl->tpl_vars['smarty']->value['section']['page']['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['page']['loop'];
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['page']['total'] == 0)
$_smarty_tpl->tpl_vars['smarty']->value['section']['page']['show'] = false;
} else
$_smarty_tpl->tpl_vars['smarty']->value['section']['page']['total'] = 0;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['page']['show']):
for ($_smarty_tpl->tpl_vars['smarty']->value['section']['page']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['page']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['page']['iteration'] = 1;
$_smarty_tpl->tpl_vars['smarty']->value['section']['page']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['page']['total'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['page']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['page']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['page']['iteration']++):
$_smarty_tpl->tpl_vars['smarty']->value['section']['page']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['page']['iteration'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['page']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['page']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['page']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['page']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['page']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['page']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['page']['first'] = ($_smarty_tpl->tpl_vars['smarty']->value['section']['page']['iteration'] == 1);
$_smarty_tpl->tpl_vars['smarty']->value['section']['page']['last'] = ($_smarty_tpl->tpl_vars['smarty']->value['section']['page']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['page']['total']);
?>
<?php if ($_smarty_tpl->getVariable('smarty')->value['section']['page']['iteration']>1&&$_smarty_tpl->getVariable('smarty')->value['section']['page']['iteration']<$_smarty_tpl->tpl_vars['k_page']->value&&$_smarty_tpl->getVariable('smarty')->value['section']['page']['iteration']<=$_smarty_tpl->tpl_vars['page']->value+3&&$_smarty_tpl->getVariable('smarty')->value['section']['page']['iteration']>=$_smarty_tpl->tpl_vars['page']->value-2){?>
<?php if ($_smarty_tpl->tpl_vars['page']->value==$_smarty_tpl->getVariable('smarty')->value['section']['page']['iteration']){?>
<span><?php echo $_smarty_tpl->getVariable('smarty')->value['section']['page']['iteration'];?>
</span>
<?php }else{ ?>
<a href="<?php echo $_smarty_tpl->tpl_vars['link']->value;?>
page=<?php echo $_smarty_tpl->getVariable('smarty')->value['section']['page']['iteration'];?>
"><?php echo $_smarty_tpl->getVariable('smarty')->value['section']['page']['iteration'];?>
</a>
<?php }?>
<?php }?>
<?php endfor; endif; ?>
<?php if ($_smarty_tpl->tpl_vars['page']->value<$_smarty_tpl->tpl_vars['k_page']->value-4){?>
..
<?php }?>
<?php if ($_smarty_tpl->tpl_vars['page']->value==$_smarty_tpl->tpl_vars['k_page']->value){?>
<span><?php echo $_smarty_tpl->tpl_vars['k_page']->value;?>
</span>
<?php }else{ ?>
<a href="<?php echo $_smarty_tpl->tpl_vars['link']->value;?>
page=<?php echo $_smarty_tpl->tpl_vars['k_page']->value;?>
"><?php echo $_smarty_tpl->tpl_vars['k_page']->value;?>
</a>
<?php }?>
</div>
<?php }} ?>