diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/comment/helpers/comment_menu.php | 28 | ||||
-rw-r--r-- | modules/tag/helpers/tag_menu.php | 28 | ||||
-rw-r--r-- | modules/user/helpers/user_menu.php | 18 | ||||
-rw-r--r-- | modules/watermark/helpers/watermark_menu.php | 2 |
4 files changed, 74 insertions, 2 deletions
diff --git a/modules/comment/helpers/comment_menu.php b/modules/comment/helpers/comment_menu.php new file mode 100644 index 00000000..b98140a6 --- /dev/null +++ b/modules/comment/helpers/comment_menu.php @@ -0,0 +1,28 @@ +<?php defined("SYSPATH") or die("No direct script access."); +/** + * Gallery - a web based photo album viewer and editor + * Copyright (C) 2000-2008 Bharat Mediratta + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or (at + * your option) any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. + */ +class comment_menu_Core { + public static function admin($menu, $theme) { + $menu->get("content_menu") + ->append(Menu::factory("link") + ->id("comments") + ->label(_("Comment Moderation")) + ->url("#")); + } +} diff --git a/modules/tag/helpers/tag_menu.php b/modules/tag/helpers/tag_menu.php new file mode 100644 index 00000000..965e66c4 --- /dev/null +++ b/modules/tag/helpers/tag_menu.php @@ -0,0 +1,28 @@ +<?php defined("SYSPATH") or die("No direct script access."); +/** + * Gallery - a web based photo album viewer and editor + * Copyright (C) 2000-2008 Bharat Mediratta + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or (at + * your option) any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. + */ +class tag_menu_Core { + public static function admin($menu, $theme) { + $menu->get("content_menu") + ->append(Menu::factory("link") + ->id("tags") + ->label(_("Tags")) + ->url("#")); + } +} diff --git a/modules/user/helpers/user_menu.php b/modules/user/helpers/user_menu.php index 886a873a..654a0d89 100644 --- a/modules/user/helpers/user_menu.php +++ b/modules/user/helpers/user_menu.php @@ -18,7 +18,7 @@ * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */ class user_menu_Core { - public static function site_navigation($menu, $theme) { + public static function site($menu, $theme) { $user = user::active(); if (!$user->guest) { $menu->get("admin_menu")->append( @@ -28,4 +28,20 @@ class user_menu_Core { ->url(url::site("users/form/edit/$user->id"))); } } + + public static function admin($menu, $theme) { + $menu->get("users_groups_menu") + ->append(Menu::factory("link") + ->id("list_users") + ->label(_("List Users")) + ->url(url::site("admin/users"))) + ->append(Menu::factory("link") + ->id("create_user") + ->label(_("Create new user")) + ->url("#")) + ->append(Menu::factory("link") + ->id("edit_user") + ->label(_("Edit user")) + ->url("#")); + } } diff --git a/modules/watermark/helpers/watermark_menu.php b/modules/watermark/helpers/watermark_menu.php index 71927da3..9d85319d 100644 --- a/modules/watermark/helpers/watermark_menu.php +++ b/modules/watermark/helpers/watermark_menu.php @@ -20,7 +20,7 @@ class watermark_menu_Core { // @todo this needs to get on the admin page at some point - public static function site_navigation($menu, $theme) { + public static function site($menu, $theme) { $user = user::active(); if ($user->admin) { $menu->get("admin_menu")->append( |