diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2009-06-16 22:09:02 -0700 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-06-16 22:09:02 -0700 |
commit | 1dccc0286f3d983352e21f8148fdf4d9e9bc205d (patch) | |
tree | c03164481966d7ba05fe09653185f52c336c97eb | |
parent | fd54a5010a22ccf359b94e4e46f39883e8ddca15 (diff) |
Change the page.html file so that if the type of page is login, the sidebar contents are are not shown
-rw-r--r-- | modules/gallery/controllers/albums.php | 2 | ||||
-rw-r--r-- | themes/default/views/page.html.php | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/modules/gallery/controllers/albums.php b/modules/gallery/controllers/albums.php index 856709c2..17fdec6b 100644 --- a/modules/gallery/controllers/albums.php +++ b/modules/gallery/controllers/albums.php @@ -26,7 +26,7 @@ class Albums_Controller extends Items_Controller { $page_size = module::get_var("gallery", "page_size", 9); if (!access::can("view", $album)) { if ($album->id == 1) { - $view = new Theme_View("page.html", "page"); + $view = new Theme_View("page.html", "login"); $view->page_title = t("Log in to Gallery"); $view->content = user::get_login_form("login/auth_html"); print $view; diff --git a/themes/default/views/page.html.php b/themes/default/views/page.html.php index 3feb14cb..f6286f95 100644 --- a/themes/default/views/page.html.php +++ b/themes/default/views/page.html.php @@ -81,7 +81,9 @@ </div> </div> <div id="gSidebar" class="yui-b"> + <? if ($theme->page_type != "login"): ?> <?= $theme->display("sidebar.html") ?> + <? endif ?> </div> </div> <div id="gFooter"> |