From 9efeef4620744573d1ff9d16872f0e06eb88deca Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Fri, 21 Aug 2009 20:45:45 +0000 Subject: [PATCH] Missing config/templates/class added for page=status --- .gitattributes | 2 + application/ship-simu/config.php | 3 ++ .../ship-simu/main/menu/class_ShipSimu | 2 +- .../main/menu/class_ShipSimuStatusMenu.php | 50 +++++++++++++++++++ .../ship-simu/templates/de/code/status.ctp | 7 +++ 5 files changed, 63 insertions(+), 1 deletion(-) create mode 100644 application/ship-simu/main/menu/class_ShipSimuStatusMenu.php create mode 100644 application/ship-simu/templates/de/code/status.ctp diff --git a/.gitattributes b/.gitattributes index 7bbc70b..7b79692 100644 --- a/.gitattributes +++ b/.gitattributes @@ -153,6 +153,7 @@ application/ship-simu/main/menu/class_ShipSimuLoginAreaMenu.php -text application/ship-simu/main/menu/class_ShipSimuLoginMenu.php -text application/ship-simu/main/menu/class_ShipSimuLogoutMenu.php -text application/ship-simu/main/menu/class_ShipSimuRegisterMenu.php -text +application/ship-simu/main/menu/class_ShipSimuStatusMenu.php -text application/ship-simu/main/menu/government/.htaccess -text application/ship-simu/main/menu/government/class_ShipSimuGovernmentFailedAreaMenu.php -text application/ship-simu/main/parts/.htaccess -text @@ -233,6 +234,7 @@ application/ship-simu/templates/de/code/logout_done.ctp -text application/ship-simu/templates/de/code/mail_debug.ctp -text application/ship-simu/templates/de/code/register_form.ctp -text application/ship-simu/templates/de/code/shipsimu_main.ctp -text +application/ship-simu/templates/de/code/status.ctp -text application/ship-simu/templates/de/emails/.htaccess -text application/ship-simu/templates/de/emails/text_resend_link.tpl -text application/ship-simu/templates/de/html/.htaccess -text diff --git a/application/ship-simu/config.php b/application/ship-simu/config.php index bcd25f5..e4e5d2d 100644 --- a/application/ship-simu/config.php +++ b/application/ship-simu/config.php @@ -451,6 +451,9 @@ $cfg->setConfigEntry('login_register_login_form', 'index.php?app={?app_short_nam // CFG: HOME-MENU-CLASS $cfg->setConfigEntry('home_menu_class', 'ShipSimuHomeMenu'); +// CFG: STATUS-MENU-CLASS +$cfg->setConfigEntry('status_menu_class', 'ShipSimuStatusMenu'); + // CFG: LOGIN-MENU-CLASS $cfg->setConfigEntry('login_menu_class', 'ShipSimuLoginMenu'); diff --git a/application/ship-simu/main/menu/class_ShipSimu b/application/ship-simu/main/menu/class_ShipSimu index eac52e3..93970de 100644 --- a/application/ship-simu/main/menu/class_ShipSimu +++ b/application/ship-simu/main/menu/class_ShipSimu @@ -1,6 +1,6 @@ * @version 0.0.0 diff --git a/application/ship-simu/main/menu/class_ShipSimuStatusMenu.php b/application/ship-simu/main/menu/class_ShipSimuStatusMenu.php new file mode 100644 index 0000000..9023c58 --- /dev/null +++ b/application/ship-simu/main/menu/class_ShipSimuStatusMenu.php @@ -0,0 +1,50 @@ + + * @version 0.0.0 + * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 Ship-Simu Developer Team + * @license GNU GPL 3.0 or any newer version + * @link http://www.ship-simu.org + * + * 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 3 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, see . + */ +class ShipSimuStatusMenu extends BaseMenu implements RenderableMenu { + /** + * Protected constructor + * + * @return void + */ + protected function __construct () { + // Call parent constructor + parent::__construct(__CLASS__); + } + + /** + * Creates an instance of this class + * + * @return $menuInstance An instance of this class + */ + public final static function createShipSimuStatusMenu () { + // Get a new instance + $menuInstance = new ShipSimuStatusMenu(); + + // Return the prepared instance + return $menuInstance; + } +} + +// [EOF] +?> diff --git a/application/ship-simu/templates/de/code/status.ctp b/application/ship-simu/templates/de/code/status.ctp new file mode 100644 index 0000000..730a240 --- /dev/null +++ b/application/ship-simu/templates/de/code/status.ctp @@ -0,0 +1,7 @@ +
+ Es besteht ein Problem mit Ihrem Account +
+ +
+ {?status_problem?} +
-- 2.39.5