diff options
| author | Bharat Mediratta <bharat@menalto.com> | 2009-11-14 14:25:39 -0800 |
|---|---|---|
| committer | Bharat Mediratta <bharat@menalto.com> | 2009-11-14 14:25:39 -0800 |
| commit | 081ce9f6ca07b834fd31d3d340990504dd68f821 (patch) | |
| tree | bb6d8597bbedbf1327475b8c2ad4b63f0170f16d /themes/wind/views/photo.html.php | |
| parent | 100a66d861849ab0d78dca84b0b06c1af973752a (diff) | |
Normalize pagination so that pager.html.php can handle pagination for
both albums and movies. Kohana's paginator is not quite sufficient
for this, so create our own pagination logic in Theme_View with only
the stuff we need.
Clearly document the variables available in pager.html so that themers
know how to use it.
Fixes ticket #626.
Diffstat (limited to 'themes/wind/views/photo.html.php')
| -rw-r--r-- | themes/wind/views/photo.html.php | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/themes/wind/views/photo.html.php b/themes/wind/views/photo.html.php index e17dcdb3..091fd7c5 100644 --- a/themes/wind/views/photo.html.php +++ b/themes/wind/views/photo.html.php @@ -15,27 +15,7 @@ <div id="g-item"> <?= $theme->photo_top() ?> - <ul class="g-pager ui-helper-clearfix"> - <li class="g-first"> - <? if ($previous_item): ?> - <a href="<?= $previous_item->url() ?>" class="g-button ui-icon-left ui-state-default ui-corner-all"> - <span class="ui-icon ui-icon-triangle-1-w"></span><?= t("previous") ?></a> - <? else: ?> - <a class="g-button ui-icon-left ui-state-disabled ui-corner-all"> - <span class="ui-icon ui-icon-triangle-1-w"></span><?= t("previous") ?></a> - <? endif; ?> - </li> - <li class="g-info"><?= t("%position of %total", array("position" => $position, "total" => $sibling_count)) ?></li> - <li class="g-text-right"> - <? if ($next_item): ?> - <a href="<?= $next_item->url() ?>" class="g-button ui-icon-right ui-state-default ui-corner-all"> - <span class="ui-icon ui-icon-triangle-1-e"></span><?= t("next") ?></a> - <? else: ?> - <a class="g-button ui-icon-right ui-state-disabled ui-corner-all"> - <span class="ui-icon ui-icon-triangle-1-e"></span><?= t("next") ?></a> - <? endif ?> - </li> - </ul> + <?= $theme->pager() ?> <div id="g-photo"> <?= $theme->resize_top($item) ?> |
