From bd992a97b217fe2c33bd7cb6df0f61adc7d64ebc Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Thu, 11 Dec 2008 21:27:16 +0000 Subject: Remove the options menus from the albums and photo pages and move to the site menu --- core/helpers/core_menu.php | 15 ++++++---- modules/local_import/controllers/local_import.php | 34 +++++++++++++++++++++++ themes/default/views/album.html.php | 10 ------- themes/default/views/photo.html.php | 10 ------- 4 files changed, 44 insertions(+), 25 deletions(-) create mode 100644 modules/local_import/controllers/local_import.php diff --git a/core/helpers/core_menu.php b/core/helpers/core_menu.php index 3f0c5024..e4a3dd92 100644 --- a/core/helpers/core_menu.php +++ b/core/helpers/core_menu.php @@ -37,13 +37,18 @@ class core_menu_Core { // @todo need to do a permission check here $menu->append( Menu::factory("submenu") - ->id("upload_menu") - ->label(_("Upload")) + ->id("options_menu") + ->label(_("Options")) ->append( Menu::factory("dialog") - ->id("add_photos") - ->label(_("Add Photos")) - ->url(url::site("form/add/photos/$item->id")))); + ->id("add_item") + ->label(_("Add an item")) + ->url(url::site("form/add/photos/$item->id"))) + ->append( + Menu::factory("dialog") + ->id("add_album") + ->label(_("Add album")) + ->url(url::site("form/add/albums/$item->id")))); $admin_menu = Menu::factory("submenu") ->id("admin_menu") diff --git a/modules/local_import/controllers/local_import.php b/modules/local_import/controllers/local_import.php new file mode 100644 index 00000000..2738afef --- /dev/null +++ b/modules/local_import/controllers/local_import.php @@ -0,0 +1,34 @@ +validate()) { +// $paths[$form->path->value] = 1; +// module::set_var("local_import", "authorized_paths", serialize($paths)); +// } +// $view = new View("local_import_dir_list.html"); +// $view->paths = array_keys($paths); +// +// print $view; + print "

Hi There">

  • ">
  • album_top() ?>
  • -
  • Options - -
  • title_edit ?>

    diff --git a/themes/default/views/photo.html.php b/themes/default/views/photo.html.php index 55872e08..5b4da2b7 100644 --- a/themes/default/views/photo.html.php +++ b/themes/default/views/photo.html.php @@ -4,16 +4,6 @@
  • ">
  • ">
  • album_top() ?>
  • -
  • Options - -
  • title_edit ?>

    -- cgit v1.2.3