From 8abf48dd79561fd6605604de8714d4eaf4870942 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Sun, 15 Mar 2009 22:23:04 +0000 Subject: Move atom, developer, polar_rose and gmaps modules into gallery-contrib --- modules/developer/views/admin_controller.txt.php | 57 -------- modules/developer/views/admin_developer.html.php | 15 -- modules/developer/views/admin_html.txt.php | 10 -- modules/developer/views/block.txt.php | 38 ----- modules/developer/views/block_html.txt.php | 10 -- modules/developer/views/controller.txt.php | 53 ------- modules/developer/views/developer_module.html.php | 49 ------- modules/developer/views/event.txt.php | 96 ------------- modules/developer/views/installer.txt.php | 34 ----- modules/developer/views/menu.txt.php | 51 ------- modules/developer/views/module_info.txt.php | 5 - modules/developer/views/theme.txt.php | 168 ---------------------- 12 files changed, 586 deletions(-) delete mode 100644 modules/developer/views/admin_controller.txt.php delete mode 100644 modules/developer/views/admin_developer.html.php delete mode 100644 modules/developer/views/admin_html.txt.php delete mode 100644 modules/developer/views/block.txt.php delete mode 100644 modules/developer/views/block_html.txt.php delete mode 100644 modules/developer/views/controller.txt.php delete mode 100644 modules/developer/views/developer_module.html.php delete mode 100644 modules/developer/views/event.txt.php delete mode 100644 modules/developer/views/installer.txt.php delete mode 100644 modules/developer/views/menu.txt.php delete mode 100644 modules/developer/views/module_info.txt.php delete mode 100644 modules/developer/views/theme.txt.php (limited to 'modules/developer/views') diff --git a/modules/developer/views/admin_controller.txt.php b/modules/developer/views/admin_controller.txt.php deleted file mode 100644 index 7f741378..00000000 --- a/modules/developer/views/admin_controller.txt.php +++ /dev/null @@ -1,57 +0,0 @@ - - -/** - * 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 Admin__Controller extends Admin_Controller { - public function index() { - print $this->_get_view(); - } - - public function handler() { - access::verify_csrf(); - - $form = $this->_get_form(); - if ($form->validate()) { - // @todo process the admin form - - message::success(t(" Adminstration Complete Successfully")); - - url::redirect("admin/"); - } - - print $this->_get_view($form); - } - - private function _get_view($form=null) { - $v = new Admin_View("admin.html"); - $v->content = new View("admin_.html"); - $v->content->form = empty($form) ? $this->_get_form() : $form; - return $v; - } - - private function _get_form() { - $form = new Forge("admin//handler", "", "post", - array("id" => "gAdminForm")); - $group = $form->group("group"); - $group->input("text")->label(t("Text"))->rules("required"); - $group->submit("submit")->value(t("Submit")); - - return $form; - } -} \ No newline at end of file diff --git a/modules/developer/views/admin_developer.html.php b/modules/developer/views/admin_developer.html.php deleted file mode 100644 index eeebaa03..00000000 --- a/modules/developer/views/admin_developer.html.php +++ /dev/null @@ -1,15 +0,0 @@ - - -
-

- -

-
-
    -
  • -
-
- -
-
-
diff --git a/modules/developer/views/admin_html.txt.php b/modules/developer/views/admin_html.txt.php deleted file mode 100644 index 5408cdab..00000000 --- a/modules/developer/views/admin_html.txt.php +++ /dev/null @@ -1,10 +0,0 @@ - -" ?> - -
-

- " ?> -

- " ?> - -
diff --git a/modules/developer/views/block.txt.php b/modules/developer/views/block.txt.php deleted file mode 100644 index 56c0bf8c..00000000 --- a/modules/developer/views/block.txt.php +++ /dev/null @@ -1,38 +0,0 @@ - - -/** - * 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 _block { - static function get($block_id) { - $block = new Block(); - if ($block_id == "") { - $block->css_id = "gAdmin"; - $block->title = t(" Dashboard Block"); - $block->content = new View("block.html"); - - $block->content->item = ORM::factory("item", 1); - } - return $block; - } - - static function get_list() { - return array( - "" => t(" Dashboard Block")); - } -} diff --git a/modules/developer/views/block_html.txt.php b/modules/developer/views/block_html.txt.php deleted file mode 100644 index b0e07a1a..00000000 --- a/modules/developer/views/block_html.txt.php +++ /dev/null @@ -1,10 +0,0 @@ - -" ?> - -
- url() ?>\">" ?> - - thumb_tag(array(\"class\" => \"gThumbnail\")) ?>" ?> - - -
diff --git a/modules/developer/views/controller.txt.php b/modules/developer/views/controller.txt.php deleted file mode 100644 index b11fa5f3..00000000 --- a/modules/developer/views/controller.txt.php +++ /dev/null @@ -1,53 +0,0 @@ - - -/** - * 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 _Controller extends Controller { - public function index() { - print $this->_get_form(); - } - - public function handler() { - access::verify_csrf(); - - $form = $this->_get_form(); - if ($form->validate()) { - // @todo process the admin form - - message::success(t(" Processing Successfully")); - - print json_encode( - array("result" => "success")); - } else { - print json_encode( - array("result" => "error", - "form" => $form->__toString())); - } - } - - private function _get_form() { - $form = new Forge("/handler", "", "post", - array("id" => "gForm")); - $group = $form->group("group")->label(t(" Handler")); - $group->input("text")->label(t("Text"))->rules("required"); - $group->submit("submit")->value(t("Submit")); - - return $form; - } -} \ No newline at end of file diff --git a/modules/developer/views/developer_module.html.php b/modules/developer/views/developer_module.html.php deleted file mode 100644 index 4ce28ff7..00000000 --- a/modules/developer/views/developer_module.html.php +++ /dev/null @@ -1,49 +0,0 @@ - - -
- "post"), $hidden) ?> - - -
diff --git a/modules/developer/views/event.txt.php b/modules/developer/views/event.txt.php deleted file mode 100644 index e2731f96..00000000 --- a/modules/developer/views/event.txt.php +++ /dev/null @@ -1,96 +0,0 @@ - - -/** - * 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 _event { - - static function batch_complete() { - } - - - - static function comment_add_form($form) { - } - - - - static function comment_created($theme, $args) { - } - - - - static function comment_updated($old, $new) { - } - - - - static function group_before_delete($group) { - } - - - - static function group_created($group) { - } - - - - static function item_before_delete($item) { - } - - - - static function item_created($item) { - } - - - - static function item_related_update($item) { - } - - - - static function item_related_update_batch($sql) { - } - - - - static function item_updated($old, $new) { - } - - - - static function user_before_delete($user) { - } - - - - static function user_created($user) { - } - - - - static function user_login($user) { - } - - - - static function user_logout($user) { - } - -} diff --git a/modules/developer/views/installer.txt.php b/modules/developer/views/installer.txt.php deleted file mode 100644 index 1ccc3327..00000000 --- a/modules/developer/views/installer.txt.php +++ /dev/null @@ -1,34 +0,0 @@ - - -/** - * 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 _installer { - static function install() { - $version = module::get_version(""); - if ($version == 0) { - /* @todo Put database creation here */ - module::set_version("", 1); - } - } - - static function uninstall() { - /* @todo Put database table drops here */ - module::delete(""); - } -} diff --git a/modules/developer/views/menu.txt.php b/modules/developer/views/menu.txt.php deleted file mode 100644 index dd315972..00000000 --- a/modules/developer/views/menu.txt.php +++ /dev/null @@ -1,51 +0,0 @@ - - -/** - * 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 _menu { - static function admin($menu, $theme) { - $menu->get("settings_menu") - ->append(Menu::factory("link") - ->id("_menu") - ->label(t(" Administration")) - ->url(url::site("admin/"))); - } - - - static function album($menu, $theme) { - } - - - - static function photo($menu, $theme) { - } - - - static function site($menu, $theme) { - $item = $theme->item(); - - if ($item && access::can("edit", $item)) { - $options_menu = $menu->get("options_menu") - ->append(Menu::factory("dialog") - ->id("") - ->label(t("Peform Processing")) - ->url(url::site("/index/$item->id"))); - } - } -} diff --git a/modules/developer/views/module_info.txt.php b/modules/developer/views/module_info.txt.php deleted file mode 100644 index 4c4b4280..00000000 --- a/modules/developer/views/module_info.txt.php +++ /dev/null @@ -1,5 +0,0 @@ -name = - -description = - -version = 1 diff --git a/modules/developer/views/theme.txt.php b/modules/developer/views/theme.txt.php deleted file mode 100644 index 339a7553..00000000 --- a/modules/developer/views/theme.txt.php +++ /dev/null @@ -1,168 +0,0 @@ - - -/** - * 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 _theme { - static function sidebar_blocks($theme) { - $block = new Block(); - $block->css_id = "g"; - $block->title = t(""); - $block->content = new View("_block.html"); - - $block->content->item = ORM::factory("item", 1); - - return $block; - } - - - static function album_blocks($theme) { - } - - - - static function album_bottom($theme) { - } - - - - static function album_top($theme) { - } - - - - static function admin_credits($theme) { - } - - - - static function admin_footer($theme) { - } - - - - static function admin_header_top($theme) { - } - - - - static function admin_header_bottom($theme) { - } - - - - static function admin_page_bottom($theme) { - } - - - - static function admin_page_top($theme) { - } - - - - static function admin_head($theme) { - } - - - - static function credits($theme) { - } - - - - static function dynamic_bottom($theme) { - } - - - - static function dynamic_top($theme) { - } - - - - static function footer($theme) { - } - - - - static function head($theme) { - } - - - - static function header_bottom($theme) { - } - - - - static function header_top($theme) { - } - - - - static function page_bottom($theme) { - } - - - - static function page_top($theme) { - } - - - - static function photo_blocks($theme) { - } - - - - static function photo_bottom($theme) { - } - - - - static function photo_top($theme) { - } - - - - static function sidebar_bottom($theme) { - } - - - - static function sidebar_top($theme) { - } - - - - static function thumb_bottom($theme, $child) { - } - - - - static function thumb_info($theme, $child) { - } - - - - static function thumb_top($theme, $child) { - } - - -} -- cgit v1.2.3