summaryrefslogtreecommitdiff
path: root/themes/wind/views/page.html.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-11-17 13:42:51 -0800
committerBharat Mediratta <bharat@menalto.com>2009-11-17 14:04:45 -0800
commit1067e68292852f524fceda4c6cf7cd5f7110b234 (patch)
treeb42d9d2814a4a96bbdc63b5280cc22572402c0bb /themes/wind/views/page.html.php
parentade642cff4a4ca810f468723b04efc6f229916d8 (diff)
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.
Diffstat (limited to 'themes/wind/views/page.html.php')
-rw-r--r--themes/wind/views/page.html.php8
1 files changed, 4 insertions, 4 deletions
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 @@
<link rel="stylesheet" type="text/css" href="<?= $theme->url("css/fix-ie.css") ?>"
media="screen,print,projection" />
<![endif]-->
- <? if ($theme->page_type == 'album'): ?>
+ <? if ($theme->page_type == "collection"): ?>
<? if ($thumb_proportion != 1): ?>
<? $new_width = $thumb_proportion * 213 ?>
<? $new_height = $thumb_proportion * 240 ?>
@@ -61,10 +61,10 @@
<?= $theme->script("ui.init.js") ?>
<? /* These are page specific, but if we put them before $theme->head() they get combined */ ?>
- <? if ($theme->page_type == "photo"): ?>
+ <? if ($theme->page_subtype == "photo"): ?>
<?= $theme->script("jquery.scrollTo.js") ?>
<?= $theme->script("gallery.show_full_size.js") ?>
- <? elseif ($theme->page_type == "movie"): ?>
+ <? elseif ($theme->page_subtype == "movie"): ?>
<?= $theme->script("flowplayer.js") ?>
<? endif ?>
@@ -122,7 +122,7 @@
</div>
</div>
<div id="g-sidebar" class="yui-b">
- <? if ($theme->page_type != "login"): ?>
+ <? if ($theme->page_subtype != "login"): ?>
<?= new View("sidebar.html") ?>
<? endif ?>
</div>