summaryrefslogtreecommitdiff
path: root/themes
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-11-14 16:18:49 -0800
committerBharat Mediratta <bharat@menalto.com>2009-11-14 16:20:36 -0800
commit29efb6ba9f3e2cf15f29b509f985890c33bc08fa (patch)
tree8fc4ad5dc1b7f1d8e9a54cb5db06f9522f4745f1 /themes
parent846f365db9d3c1b61ed4bd68316bd5e7b80e56ec (diff)
Rename "pager" to "paginator" so that we differentiate page.html.php
from paginator.html.php
Diffstat (limited to 'themes')
-rw-r--r--themes/wind/views/album.html.php2
-rw-r--r--themes/wind/views/dynamic.html.php2
-rw-r--r--themes/wind/views/movie.html.php2
-rw-r--r--themes/wind/views/paginator.html.php (renamed from themes/wind/views/pager.html.php)32
-rw-r--r--themes/wind/views/photo.html.php2
5 files changed, 22 insertions, 18 deletions
diff --git a/themes/wind/views/album.html.php b/themes/wind/views/album.html.php
index 1163630d..2c2b54eb 100644
--- a/themes/wind/views/album.html.php
+++ b/themes/wind/views/album.html.php
@@ -38,4 +38,4 @@
</ul>
<?= $theme->album_bottom() ?>
-<?= $theme->pager() ?>
+<?= $theme->paginator() ?>
diff --git a/themes/wind/views/dynamic.html.php b/themes/wind/views/dynamic.html.php
index 51e48dc0..a8a4d362 100644
--- a/themes/wind/views/dynamic.html.php
+++ b/themes/wind/views/dynamic.html.php
@@ -26,4 +26,4 @@
</ul>
<?= $theme->dynamic_bottom() ?>
-<?= $theme->pager() ?>
+<?= $theme->paginator() ?>
diff --git a/themes/wind/views/movie.html.php b/themes/wind/views/movie.html.php
index a44b891a..27c293ce 100644
--- a/themes/wind/views/movie.html.php
+++ b/themes/wind/views/movie.html.php
@@ -2,7 +2,7 @@
<div id="g-item">
<?= $theme->photo_top() ?>
- <?= $theme->pager() ?>
+ <?= $theme->paginator() ?>
<div id="g-movie" class="ui-helper-clearfix">
<?= $item->movie_img(array("class" => "g-movie", "id" => "g-movie-id-{$item->id}")) ?>
diff --git a/themes/wind/views/pager.html.php b/themes/wind/views/paginator.html.php
index 51d52021..5d300cf4 100644
--- a/themes/wind/views/pager.html.php
+++ b/themes/wind/views/paginator.html.php
@@ -6,12 +6,12 @@
// for album views.
//
// Available variables for all page types:
-// $page_type - "album", "movie" or "photo"
+// $page_type - "album", "movie", "photo" or "tag"
// $previous_page_url - the url to the previous page, if there is one
// $next_page_url - the url to the next page, if there is one
// $total - the total number of photos in this album
//
-// Available for the "album" page type:
+// Available for the "album" and "tag" page types:
// $page - what page number we're on
// $max_pages - the maximum page number
// $page_size - the page size
@@ -22,11 +22,12 @@
//
// Available for "photo" and "movie" page types:
// $position - the position number of this photo
+//
?>
<ul class="g-pager ui-helper-clearfix">
<li class="g-first">
- <? if ($page_type == "album"): ?>
+ <? if ($page_type == "album" || $page_type == "tag"): ?>
<? if (isset($first_page_url)): ?>
<a href="<?= $first_page_url ?>" class="g-button ui-icon-left ui-state-default ui-corner-all">
<span class="ui-icon ui-icon-seek-first"></span><?= t("First") ?></a>
@@ -46,17 +47,20 @@
</li>
<li class="g-info">
- <? if ($page_type == "album"): ?>
- <?= /* @todo This message isn't easily localizable */
- /* @todo does this really need to be a t2? why not just skip the msg when there's 1 photo? */
- t2("Photo %from_number of %count",
- "Photos %from_number - %to_number of %count",
- $total,
- array("from_number" => $first_visible_position,
- "to_number" => $last_visible_position,
- "count" => $total)) ?>
+ <? if ($total): ?>
+ <? if ($page_type == "album" || $page_type == "tag"): ?>
+ <?= /* @todo This message isn't easily localizable */
+ t2("Photo %from_number of %count",
+ "Photos %from_number - %to_number of %count",
+ $total,
+ array("from_number" => $first_visible_position,
+ "to_number" => $last_visible_position,
+ "count" => $total)) ?>
+ <? else: ?>
+ <?= t("%position of %total", array("position" => $position, "total" => $total)) ?>
+ <? endif ?>
<? else: ?>
- <?= t("%position of %total", array("position" => $position, "total" => $total)) ?>
+ <?= t("No photos") ?>
<? endif ?>
</li>
@@ -69,7 +73,7 @@
<span class="ui-icon ui-icon-seek-next"></span><?= t("Next") ?></a>
<? endif ?>
- <? if ($page_type == "album"): ?>
+ <? if ($page_type == "album" || $page_type == "tag"): ?>
<? if (isset($last_page_url)): ?>
<a href="<?= $last_page_url ?>" class="g-button ui-icon-right ui-state-default ui-corner-all">
<span class="ui-icon ui-icon-seek-end"></span><?= t("Last") ?></a>
diff --git a/themes/wind/views/photo.html.php b/themes/wind/views/photo.html.php
index 091fd7c5..e0fae3f1 100644
--- a/themes/wind/views/photo.html.php
+++ b/themes/wind/views/photo.html.php
@@ -15,7 +15,7 @@
<div id="g-item">
<?= $theme->photo_top() ?>
- <?= $theme->pager() ?>
+ <?= $theme->paginator() ?>
<div id="g-photo">
<?= $theme->resize_top($item) ?>