From 1067e68292852f524fceda4c6cf7cd5f7110b234 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Tue, 17 Nov 2009 13:42:51 -0800 Subject: Redesign the way that we consider page types to create buckets of page types, and a subtype for specifics. Currently the top level bucket collection, item, other Here are the core subtypes so far: collection: album, search, tag item: movie, photo other: login, reset, comment-fragment, comment It's legal to create new page_subtypes whenever you want. Use the appropriate page_type to get the coarse grain behavior that you want. --- themes/wind/views/page.html.php | 8 ++++---- themes/wind/views/paginator.html.php | 13 +++++++------ themes/wind/views/sidebar.html.php | 8 ++++---- 3 files changed, 15 insertions(+), 14 deletions(-) (limited to 'themes') diff --git a/themes/wind/views/page.html.php b/themes/wind/views/page.html.php index f41dcd27..6056f54e 100644 --- a/themes/wind/views/page.html.php +++ b/themes/wind/views/page.html.php @@ -33,7 +33,7 @@ " media="screen,print,projection" /> - page_type == 'album'): ?> + page_type == "collection"): ?> @@ -61,10 +61,10 @@ script("ui.init.js") ?> head() they get combined */ ?> - page_type == "photo"): ?> + page_subtype == "photo"): ?> script("jquery.scrollTo.js") ?> script("gallery.show_full_size.js") ?> - page_type == "movie"): ?> + page_subtype == "movie"): ?> script("flowplayer.js") ?> @@ -122,7 +122,7 @@
- page_type != "login"): ?> + page_subtype != "login"): ?>
diff --git a/themes/wind/views/paginator.html.php b/themes/wind/views/paginator.html.php index 5d300cf4..f6c03084 100644 --- a/themes/wind/views/paginator.html.php +++ b/themes/wind/views/paginator.html.php @@ -6,12 +6,13 @@ // for album views. // // Available variables for all page types: -// $page_type - "album", "movie", "photo" or "tag" +// $page_type - "collection", "item", or "other" +// $page_subtype - "album", "movie", "photo", "tag", etc. // $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" and "tag" page types: +// Available for the "collection" page types: // $page - what page number we're on // $max_pages - the maximum page number // $page_size - the page size @@ -20,14 +21,14 @@ // $first_visible_position - the position number of the first visible photo on this page // $last_visible_position - the position number of the last visible photo on this page // -// Available for "photo" and "movie" page types: +// Available for "item" page types: // $position - the position number of this photo // ?>