From 481da56ead6d71d767cf9a875f854f771556e1a9 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Fri, 27 Nov 2009 15:34:48 -0800 Subject: [PATCH] Get rid of the specialized photos_3nids controller and use the base photos controller. Override photo.html.php to do the simplified rendering of the image in a lightbox. --- themes/3nids/controllers/photo_3nids.php | 36 ---------------------- themes/3nids/views/page.html.php | 13 +++++--- themes/3nids/views/photo.html.php | 7 ++++- themes/3nids/views/photo_3nids.html.php | 38 ------------------------ 4 files changed, 15 insertions(+), 79 deletions(-) delete mode 100644 themes/3nids/controllers/photo_3nids.php delete mode 100644 themes/3nids/views/photo_3nids.html.php diff --git a/themes/3nids/controllers/photo_3nids.php b/themes/3nids/controllers/photo_3nids.php deleted file mode 100644 index a294197e..00000000 --- a/themes/3nids/controllers/photo_3nids.php +++ /dev/null @@ -1,36 +0,0 @@ -item = $item; - $photo_size = module::get_var("3nids","photo_size"); - if ($photo_size == "full"){ - $view->item_url = $item->file_url(); - } else { - $view->item_url = $item->resize_url(); - } - print $view; - } -} \ No newline at end of file diff --git a/themes/3nids/views/page.html.php b/themes/3nids/views/page.html.php index 9658873e..fdb24fd4 100644 --- a/themes/3nids/views/page.html.php +++ b/themes/3nids/views/page.html.php @@ -1,4 +1,9 @@ + + + + + @@ -28,7 +33,7 @@ css("superfish/css/superfish.css") ?> css("themeroller/ui.base.css") ?> css("gallery.common.css") ?> - css("jquery.fancybox.css") ?> + css("jquery.fancybox.css") ?> css("screen.css") ?> css("3nids.css") ?>