Files
gallery3/themes/default/views/pager.html.php
Bharat Mediratta cd1d023754 Change the preamble for views in two ways:
1) drop unnecessary semicolon
2) start with <?php for extra security in the case that the server itself doesn't
   have short_tags enabled (the app won't work, but we need to make sure that we're
   still secure)
2009-01-01 00:23:29 +00:00

26 lines
1.1 KiB
PHP

<?php defined("SYSPATH") or die("No direct script access.") ?>
<? // See http://docs.kohanaphp.com/libraries/pagination ?>
<ul id="gPager">
<li><?= sprintf(_("Photos %d - %d of %d"), $current_first_item, $current_last_item, $total_items) ?></li>
<? if ($first_page): ?>
<li class="first"><a href="<?= str_replace('{page}', 1, $url) ?>"><?= _("first") ?></a></li>
<? else: ?>
<li class="first_inactive"><?= _("first") ?></li>
<? endif ?>
<? if ($previous_page): ?>
<li class="previous"><a href="<?= str_replace('{page}', $previous_page, $url) ?>"><?= _("previous") ?></a></li>
<? else: ?>
<li class="previous_inactive"><?= _("previous") ?></li>
<? endif ?>
<? if ($next_page): ?>
<li class="next"><a href="<?= str_replace('{page}', $next_page, $url) ?>"><?= _("next") ?></a></li>
<? else: ?>
<li class="next_inactive"><?= _("next") ?></li>
<? endif ?>
<? if ($last_page): ?>
<li class="last"><a href="<?= str_replace('{page}', $last_page, $url) ?>"><?= _("last") ?></a></li>
<? else: ?>
<li class="last_inactive"><?= _("last") ?></li>
<? endif ?>
</ul>