summaryrefslogtreecommitdiff
path: root/modules/developer/views/menu.txt.php
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-03-15 05:15:45 +0000
committerTim Almdal <tnalmdal@shaw.ca>2009-03-15 05:15:45 +0000
commit7c5ba9d4229a6e3c258f6a80769e70c5dcd68578 (patch)
treee0f1011cbfb596c0b4ee07b1cbd3392b3f1b97a3 /modules/developer/views/menu.txt.php
parent181737fb12b04be0ee3d87048efae1dfba33361e (diff)
Refactored the developer module. When a new module is generated a
skeleton adminstration page is generated as well. @todo is still generate a skeleton block and a skeleton dialog.
Diffstat (limited to 'modules/developer/views/menu.txt.php')
-rw-r--r--modules/developer/views/menu.txt.php42
1 files changed, 42 insertions, 0 deletions
diff --git a/modules/developer/views/menu.txt.php b/modules/developer/views/menu.txt.php
new file mode 100644
index 00000000..5404f6c5
--- /dev/null
+++ b/modules/developer/views/menu.txt.php
@@ -0,0 +1,42 @@
+<?php defined("SYSPATH") or die("No direct script access."); ?>
+<?= "<?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 <?= $module ?>_menu {
+ static function admin($menu, $theme) {
+ $menu->get("settings_menu")
+ ->append(Menu::factory("link")
+ ->id("<?= $module ?>_menu")
+ ->label(t("<?= $module_name ?> Administration"))
+ ->url(url::site("admin/<?= $module ?>")));
+ }
+
+<? if (!empty($callbacks["album"])): ?>
+ static function album($menu, $theme) {
+ }
+
+<? endif ?>
+<? if (!empty($callbacks["photo"])): ?>
+ static function photo($menu, $theme) {
+ }
+
+<? endif ?>
+ static function site($menu, $theme) {
+ }
+}