aboutsummaryrefslogtreecommitdiffstats
path: root/template/standard/html
diff options
context:
space:
mode:
Diffstat (limited to 'template/standard/html')
-rw-r--r--template/standard/html/pagination.php35
1 files changed, 16 insertions, 19 deletions
diff --git a/template/standard/html/pagination.php b/template/standard/html/pagination.php
index 7a9279a..df5293e 100644
--- a/template/standard/html/pagination.php
+++ b/template/standard/html/pagination.php
@@ -7,36 +7,33 @@
# #
#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#
?>
-<section id="site-navi">
+<div id="site-navi">
<?php if($THIS > 1): ?>
<div><a id="prev-site" href="<?=sprintf($HREF, $THIS-1)?>"><i class="fa fa-arrow-left"></i></a></div>
<?php else: ?>
<div><a class="disabled"><i class="fa fa-arrow-left"></i></a></div>
<?php endif; ?>
- <section>
- <div>
- <ol>
- <?php for($currentItem = 1; $currentItem <= $LAST; ++$currentItem): ?>
- <?php
- $href = sprintf($HREF, $currentItem);
- $class = NULL;
- $currentItemHTML = $currentItem;
- if($currentItem === $THIS) {
- $class = ' class="active"';
- }
+ <div>
+ <ol>
+ <?php
+ for($current = 1; $current <= $LAST; ++$current) {
+ $class = '';
+ $href = sprintf($HREF, $current);
- echo '<li'.$class.'><a href="'.$href.'">'.$currentItemHTML.'</a></li>';
- ?>
+ if($current === $THIS) {
+ $class = ' class="active"';
+ }
- <?php endfor; ?>
- </ol>
- </div>
- </section>
+ echo "<li{$class}><a href=\"{$href}\">{$current}</a></li>";
+ }
+ ?>
+ </ol>
+ </div>
<?php if($THIS < $LAST): ?>
<div><a id="next-site" href="<?=sprintf($HREF, $THIS+1)?>"><i class="fa fa-arrow-right"></i></a></div>
<?php else: ?>
<div><a class="disabled"><i class="fa fa-arrow-right"></i></a></div>
<?php endif; ?>
-</section> \ No newline at end of file
+</div> \ No newline at end of file