diff options
author | Jan-Christoph Borchardt <JanCBorchardt@fsfe.org> | 2011-08-20 05:07:58 +0200 |
---|---|---|
committer | Jan-Christoph Borchardt <JanCBorchardt@fsfe.org> | 2011-08-20 05:07:58 +0200 |
commit | d9aae20003eb670b7bf86708016473969088066a (patch) | |
tree | e51450959802c1d32ecbcdeb0036efdc0842c2d1 /core/templates/part.pagenavi.php | |
parent | c2f0fe51c427374e918b72c28c521df27e614cae (diff) | |
download | nextcloud-server-d9aae20003eb670b7bf86708016473969088066a.tar.gz nextcloud-server-d9aae20003eb670b7bf86708016473969088066a.zip |
more valid HTML, alt attributes, refactored pagenavi etc.
Diffstat (limited to 'core/templates/part.pagenavi.php')
-rw-r--r-- | core/templates/part.pagenavi.php | 53 |
1 files changed, 22 insertions, 31 deletions
diff --git a/core/templates/part.pagenavi.php b/core/templates/part.pagenavi.php index 23008058757..d43023a7822 100644 --- a/core/templates/part.pagenavi.php +++ b/core/templates/part.pagenavi.php @@ -1,31 +1,22 @@ -<center> - <table class="pager" cellspacing="0" cellpadding="0" border="0"> - <tr><td width="50%"></td> - <td width="1"> - <?php if($_['page']>0):?> - <span class="pagerbutton1"><a href="<?php echo $_['url'].($_['page']-1);?>"><?php echo $l->t( 'prev' ); ?></a> </span> - <?php endif; ?> - </td> - <td width="1"> - <?php if ($_['pagestart']>0):?> - ... - <?php endif;?> - <?php for ($i=$_['pagestart']; $i < $_['pagestop'];$i++):?> - <?php if ($_['page']!=$i):?> - <a href="<?php echo $_['url'].$i;?>"><?php echo $i+1;?> </a> - <?php else:?> - <?php echo $i+1;?> - <?php endif?> - <?php endfor;?> - <?php if ($_['pagestop']<$_['pagecount']):?> - ... - <?php endif;?> - </td> - <td width="1"> - <?php if(($_['page']+1)<$_['pagecount']):?> - <span class="pagerbutton2"><a href="<?php echo $_['url'].($_['page']+1);?>"><?php echo $l->t( 'next' ); ?></a></span> - <?php endif; ?> - </td> - <td width="50%"></td></tr> - </table> -</center> +<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):?> + … + <?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']):?> + … + <?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> |