</div>
    </div>
<?php 
}
unset($_from);
?>

<?php 
if ($this->_tpl_vars['page']->total_pages() > 1) {
    ?>
    <div class="row clearfix">
    <div class="col-md-12">
	<p class="pagelist">
		Page <?php 
    echo $this->_tpl_vars['page']->page;
    ?>
 of <?php 
    echo $this->_tpl_vars['page']->total_pages();
    ?>

	</p>
	<div class="pagelist">
		<?php 
    echo smarty_function_paginate(array('page' => $this->_tpl_vars['page'], 'url' => "/articles", 'first' => true, 'last' => true), $this);
    ?>

	</div>
	</div>
    </div>
<?php 
}
    ?>
		<tr>
			<td class="emptytable" colspan="3">
				You haven't referred anyone yet!
			</td>
		</tr>
	<?php 
}
unset($_from);
?>
</table>


<div class="pagination">
	<?php 
echo smarty_function_paginate(array('page' => $this->_tpl_vars['referrals'], 'url' => "/account/referrals", 'first' => true, 'last' => true), $this);
?>

	<p>
		Page <?php 
echo $this->_tpl_vars['referrals']->page;
?>
 of <?php 
echo $this->_tpl_vars['referrals']->total_pages();
?>

	</p>
</div>

</div>
</div>
	<?php 
    }
} else {
    ?>
		<tr>
			<td colspan="5" class="emptytable">
				You don't have any converted loyalty points yet.
			</td>
		</tr>
	<?php 
}
unset($_from);
?>
</table>

<div class="pagination">
	<?php 
echo smarty_function_paginate(array('page' => $this->_tpl_vars['discounts'], 'url' => "/account/loyalty/discounts", 'first' => true, 'last' => true), $this);
?>

	<p>
		Page <?php 
echo $this->_tpl_vars['discounts']->page;
?>
 of <?php 
echo $this->_tpl_vars['discounts']->total_pages();
?>

	</p>
</div>
  </div>
</div>


<div class="row clearfix">
  <div class="col-md-12">

<?php 
if ($this->_tpl_vars['achievements']->total_pages() > 1) {
    ?>
	<p class="pagelist">
		Page <?php 
    echo $this->_tpl_vars['achievements']->page;
    ?>
 of <?php 
    echo $this->_tpl_vars['achievements']->total_pages();
    ?>

	</p>
	<div class="pagelist">
		<?php 
    echo smarty_function_paginate(array('page' => $this->_tpl_vars['achievements'], 'url' => "/achievements", 'first' => true, 'last' => true), $this);
    ?>

	</div>
    <?php 
}
?>
  </div>
</div>
unset($_from);
?>

		<?php 
if ($this->_tpl_vars['count'] > $this->_tpl_vars['perPage']) {
    ?>
			<?php 
    ob_start();
    echo smarty_function_link(array('controller' => 'user', 'action' => 'orders', 'id' => 0), $this);
    $this->_smarty_vars['capture']['default'] = ob_get_contents();
    $this->assign('url', ob_get_contents());
    ob_end_clean();
    ?>
			<div class="resultPages">
				Pages: <?php 
    echo smarty_function_paginate(array('current' => $this->_tpl_vars['currentPage'], 'count' => $this->_tpl_vars['count'], 'perPage' => $this->_tpl_vars['perPage'], 'url' => $this->_tpl_vars['url']), $this);
    ?>

			</div>
		<?php 
}
?>

	</div>

</div>

<?php 
$_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "custom:layout/frontend/footer.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
            ?>
				No
			<?php 
        }
        ?>
		</td>
	</tr>
<?php 
    }
}
unset($_from);
?>

	</table>


<div class="pagination eventpage">
	<?php 
echo smarty_function_paginate(array('page' => $this->_tpl_vars['signups'], 'url' => is_array($_tmp = is_array($_tmp = is_array($_tmp = is_array($_tmp = "/") ? $this->_run_mod_handler('cat', true, $_tmp, $this->_tpl_vars['event']->permalink) : smarty_modifier_cat($_tmp, $this->_tpl_vars['event']->permalink)) ? $this->_run_mod_handler('cat', true, $_tmp, $this->_tpl_vars['attendance']) : smarty_modifier_cat($_tmp, $this->_tpl_vars['attendance'])) ? $this->_run_mod_handler('cat', true, $_tmp, "/attendance/") : smarty_modifier_cat($_tmp, "/attendance/")) ? $this->_run_mod_handler('cat', true, $_tmp, $this->_tpl_vars['sort']) : smarty_modifier_cat($_tmp, $this->_tpl_vars['sort']), 'first' => true, 'last' => true), $this);
?>

	<p>
		Page <?php 
echo $this->_tpl_vars['signups']->page;
?>
 of <?php 
echo $this->_tpl_vars['signups']->total_pages();
?>

	</p>
</div>