<?php
/* Smarty version 4.5.2, created on 2024-05-11 15:12:58
  from '/Users/nikolaimv/Sites/yzb.loc/themes/template-ru/modules/pagination.tpl' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '4.5.2',
  'unifunc' => 'content_663f44aa438a12_34458022',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    '3d6f2937fc3de4398cfbdbd7cc555a4c20adb5de' => 
    array (
      0 => '/Users/nikolaimv/Sites/yzb.loc/themes/template-ru/modules/pagination.tpl',
      1 => 1710405144,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_663f44aa438a12_34458022 (Smarty_Internal_Template $_smarty_tpl) {
if ((isset($_smarty_tpl->tpl_vars['pagination']->value['pages']))) {?>
	<div class="<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['class']->value, ENT_QUOTES, 'UTF-8', true);?>
">
        <?php if ((isset($_smarty_tpl->tpl_vars['pagination']->value['previousPage']))) {?>
			<a href="<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['pagination']->value['previousPage']['url'], ENT_QUOTES, 'UTF-8', true);?>
">
				<svg fill="none" xmlns="http://www.w3.org/2000/svg">
					<use xlink:href="<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['ASSETS_URL']->value, ENT_QUOTES, 'UTF-8', true);?>
/images/sprites/sprite.svg#arrow-left"></use>
				</svg>
			</a>
        <?php }?>

        <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['pagination']->value['pages'], 'pageNum');
$_smarty_tpl->tpl_vars['pageNum']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['pageNum']->value) {
$_smarty_tpl->tpl_vars['pageNum']->do_else = false;
?>
            <?php if ($_smarty_tpl->tpl_vars['pageNum']->value['num'] == $_smarty_tpl->tpl_vars['page']->value) {?>
				<a class="active"><?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['pageNum']->value['num'], ENT_QUOTES, 'UTF-8', true);?>
</a>
            <?php } elseif ($_smarty_tpl->tpl_vars['pageNum']->value['num'] == '...') {?>
				<a>...</a>
            <?php } else { ?>
				<a href="<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['pageNum']->value['url'], ENT_QUOTES, 'UTF-8', true);?>
"><?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['pageNum']->value['num'], ENT_QUOTES, 'UTF-8', true);?>
</a>
            <?php }?>
        <?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>

        <?php if ((isset($_smarty_tpl->tpl_vars['pagination']->value['nextPage']))) {?>
			<a href="<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['pagination']->value['nextPage']['url'], ENT_QUOTES, 'UTF-8', true);?>
">
				<svg fill="none" xmlns="http://www.w3.org/2000/svg">
					<use xlink:href="<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['ASSETS_URL']->value, ENT_QUOTES, 'UTF-8', true);?>
/images/sprites/sprite.svg#arrow-right"></use>
				</svg>
			</a>
        <?php }?>
	</div>
<?php }
}
}
