
{-if:!empty($_PG)-}
<nav>
	<ul class="pagination">
	{-if:!empty($_PG['firstPage']['url'])-}
		<li><a href="{-:$_PG['firstPage']['url']-}">{-:@_FIRST_PAGE_-}</a></li>
	{-else:-}
		<li class="disabled"><a href="#">{-:@_FIRST_PAGE_-}</a></li>
	{-:/if-}
	{-if:!empty($_PG['prevPage']['url'])-}
		<li><a href="{-:$_PG['prevPage']['url']-}">{-:@_PREV_PAGE_-}</a></li>
	{-else:-}
		<li class="disabled"><a href="#">{-:@_PREV_PAGE_-}</a></li>
	{-:/if-}
	{-if:!empty($_PG['nearPrevPage'])-}
		{-foreach:$_PG['nearPrevPage'],$npp-}
			<li><a href="{-:$npp['url']-}">{-:$npp['page']-}</a></li>
		{-:/foreach-}
	{-:/if-}
	{-if:!empty($_PG['currentPage'])-}
		<li class="active"><a href="#">{-:$_PG['currentPage']['page']-}</a></li>
	{-:/if-}
	{-if:!empty($_PG['nearNextPage'])-}
		{-foreach:$_PG['nearNextPage'],$nnp-}
			<li><a href="{-:$nnp['url']-}">{-:$nnp['page']-}</a></li>
		{-:/foreach-}
	{-:/if-}
	{-if:!empty($_PG['nextPage']['url'])-}
		<li><a href="{-:$_PG['nextPage']['url']-}">{-:@_NEXT_PAGE_-}</a></li>
	{-else:-}
		<li class="disabled"><a href="#">{-:@_NEXT_PAGE_-}</a></li>
	{-:/if-}
	{-if:!empty($_PG['lastPage']['url'])-}
		<li><a href="{-:$_PG['lastPage']['url']-}">{-:@_LAST_PAGE_-}</a></li>
	{-else:-}
		<li class="disabled"><a href="#">{-:@_LAST_PAGE_-}</a></li>
	{-:/if-}
		<li class="info"><span>{-:@_TOTAL_PAGES_-}:{-:$_PG['totalPages']-} | {-:@_TOTAL_ROWS_-}:{-:$_PG['totalRows']-}</span></li>
	</ul>
</nav>
{-:/if-}