From 39499cdf2e147c9ce1b47e338369b38b6542102f Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Wed, 3 Dec 2008 05:40:59 +0000 Subject: Add /welcome/form/add/photos to give you the add photo form. --- core/controllers/welcome.php | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'core/controllers') diff --git a/core/controllers/welcome.php b/core/controllers/welcome.php index 2e58bd93..99797d2a 100644 --- a/core/controllers/welcome.php +++ b/core/controllers/welcome.php @@ -44,6 +44,7 @@ class Welcome_Controller extends Template_Controller { $this->template->album_tree = array(); $this->template->rearrange_html = ""; } + $this->template->add_photo_html = $this->_get_add_photo_html(); $this->_load_user_info(); $this->_load_group_info(); @@ -492,4 +493,24 @@ class Welcome_Controller extends Template_Controller { } url::redirect("welcome"); } + + public function form($arg1, $arg2) { + if ($arg1 == "add" && $arg2 == "photos") { + print $this->_get_add_photo_html(); + } + $this->auto_render = false; + } + + public function _get_add_photo_html() { + return ' +
+ Photos +
+ + + +
+
+ '; + } } -- cgit v1.2.3