nextcloud/core/templates/part.pagenavi.php

23 lines
735 B
PHP

<ol class="pager">
<?php if($_['page']>0):?>
<li class="pagerbutton1"><a href="<?php echo $_['url'].($_['page']-1);?>"><?php echo $l->t( 'prev' ); ?></a></li>
<?php endif; ?>
<?php if ($_['pagestart']>0):?>
&hellip;
<?php endif;?>
<?php for ($i=$_['pagestart']; $i < $_['pagestop'];$i++):?>
<?php if ($_['page']!=$i):?>
<li><a href="<?php echo $_['url'].$i;?>"><?php echo $i+1;?></a></li>
<?php else:?>
<li><?php echo $i+1;?></li>
<?php endif?>
<?php endfor;?>
<?php if ($_['pagestop']<$_['pagecount']):?>
&hellip;
<?php endif;?>
<?php if(($_['page']+1)<$_['pagecount']):?>
<li class="pagerbutton2"><a href="<?php echo $_['url'].($_['page']+1);?>"><?php echo $l->t( 'next' ); ?></a></li>
<?php endif; ?>
</ol>