diff options
| author | Bharat Mediratta <bharat@menalto.com> | 2009-11-17 13:42:51 -0800 |
|---|---|---|
| committer | Bharat Mediratta <bharat@menalto.com> | 2009-11-17 14:04:45 -0800 |
| commit | 1067e68292852f524fceda4c6cf7cd5f7110b234 (patch) | |
| tree | b42d9d2814a4a96bbdc63b5280cc22572402c0bb /themes/wind/views/sidebar.html.php | |
| parent | ade642cff4a4ca810f468723b04efc6f229916d8 (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/sidebar.html.php')
| -rw-r--r-- | themes/wind/views/sidebar.html.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/themes/wind/views/sidebar.html.php b/themes/wind/views/sidebar.html.php index cd50fc01..086d1359 100644 --- a/themes/wind/views/sidebar.html.php +++ b/themes/wind/views/sidebar.html.php @@ -1,13 +1,13 @@ <?php defined("SYSPATH") or die("No direct script access.") ?> <?= $theme->sidebar_top() ?> <div id="g-view-menu" class="g-buttonset ui-helper-clearfix"> - <? if ($page_type == "album"):?> + <? if ($page_subtype == "album"):?> <?= $theme->album_menu() ?> - <? elseif ($page_type == "photo") : ?> + <? elseif ($page_subtype == "photo") : ?> <?= $theme->photo_menu() ?> - <? elseif ($page_type == "movie") : ?> + <? elseif ($page_subtype == "movie") : ?> <?= $theme->movie_menu() ?> - <? elseif ($page_type == "tag") : ?> + <? elseif ($page_subtype == "tag") : ?> <?= $theme->tag_menu() ?> <? endif ?> </div> |
