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 /modules/search | |
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 'modules/search')
-rw-r--r-- | modules/search/controllers/search.php | 2 | ||||
-rw-r--r-- | modules/search/helpers/search_theme.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/search/controllers/search.php b/modules/search/controllers/search.php index cf9e271f..539e063f 100644 --- a/modules/search/controllers/search.php +++ b/modules/search/controllers/search.php @@ -33,7 +33,7 @@ class Search_Controller extends Controller { $max_pages = max(ceil($count / $page_size), 1); - $template = new Theme_View("page.html", "search"); + $template = new Theme_View("page.html", "other", "search"); $template->set_global("page", $page); $template->set_global("max_pages", $max_pages); $template->set_global("page_size", $page_size); diff --git a/modules/search/helpers/search_theme.php b/modules/search/helpers/search_theme.php index 24125d05..1bb6121c 100644 --- a/modules/search/helpers/search_theme.php +++ b/modules/search/helpers/search_theme.php @@ -19,7 +19,7 @@ */ class search_theme_Core { static function header_top($theme) { - if ($theme->page_type() != "login") { + if ($theme->page_subtype() != "login") { $view = new View("search_link.html"); return $view->render(); }else { |