From 5a17f893dd809d5152f3dc6b91cb351dfcaa03fa Mon Sep 17 00:00:00 2001 From: Ulf Gebhardt Date: Sun, 18 Nov 2018 22:22:31 +0100 Subject: [PATCH] adjusted to new system api --- saimod_webcraft_contact.php | 6 ++++-- tpl/menu.tpl | 7 +++++++ 2 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 tpl/menu.tpl diff --git a/saimod_webcraft_contact.php b/saimod_webcraft_contact.php index 81a276c..e9c247e 100644 --- a/saimod_webcraft_contact.php +++ b/saimod_webcraft_contact.php @@ -1,11 +1,13 @@ \SYSTEM\CONFIG\config::get(\SYSTEM\CONFIG\config_ids::SYS_SAI_CONFIG_PROJECT)); return \SYSTEM\PAGE\replace::replaceFile((new PSAI('saimod_webcraft_contact/tpl/saimod_webcraft_contact.tpl'))->SERVERPATH(),$vars); } - public static function html_li_menu(){return '';} + public static function menu(){ + return new \SYSTEM\SAI\sai_module_menu( 10, \SYSTEM\SAI\sai_module_menu::POISITION_RIGHT, \SYSTEM\SAI\sai_module_menu::DIVIDER_RIGHT, + \SYSTEM\PAGE\replace::replaceFile((new PSAI('saimod_webcraft_contact/tpl/menu.tpl'))->SERVERPATH()));} public static function right_public(){return false;} public static function right_right(){return true;} public static function js(){ diff --git a/tpl/menu.tpl b/tpl/menu.tpl new file mode 100644 index 0000000..c95bb15 --- /dev/null +++ b/tpl/menu.tpl @@ -0,0 +1,7 @@ + \ No newline at end of file