From a90ea9c9c0be42169f842df43c579d7b075c5bcc Mon Sep 17 00:00:00 2001 From: Frieder Schrempf Date: Fri, 30 Apr 2021 15:30:01 +0200 Subject: [PATCH] Integrate ACL page permissions from plugin aclinfo in sidebar If the aclinfo plugin is installed a new item for the page permissions will be added to the sidebar menu. Signed-off-by: Frieder Schrempf --- img/key.svg | 1 + lang/de/lang.php | 1 + lang/en/lang.php | 1 + tpl/main-sidebar-nav.php | 26 ++++++++++++++++++++++++++ 4 files changed, 29 insertions(+) create mode 100644 img/key.svg diff --git a/img/key.svg b/img/key.svg new file mode 100644 index 0000000..7fcacc4 --- /dev/null +++ b/img/key.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/lang/de/lang.php b/lang/de/lang.php index 478cb44..bdc371a 100755 --- a/lang/de/lang.php +++ b/lang/de/lang.php @@ -21,6 +21,7 @@ $lang['head_breadcrumb_youarehere'] = 'Standortanzeiger'; $lang['head_menu_trace'] = 'Zuletzt Angesehen'; $lang['head_meta_box'] = 'Metainformationen zur Seite'; +$lang['head_menu_aclinfo'] = 'Seitenberechtigungen'; $lang['head_menu_starred'] = 'Gemerkte Seiten'; $lang['head_menu_tool-select'] = 'Werkzeuge'; diff --git a/lang/en/lang.php b/lang/en/lang.php index af8c4b2..cfc4f11 100755 --- a/lang/en/lang.php +++ b/lang/en/lang.php @@ -21,6 +21,7 @@ $lang['head_breadcrumb_youarehere'] = 'location indicator'; $lang['head_menu_trace'] = 'Last Visited Pages'; $lang['head_meta_box'] = 'meta data for this page'; +$lang['head_menu_aclinfo'] = 'Page Permissions'; $lang['head_menu_starred'] = 'Starred Pages'; $lang['head_menu_tool-select'] = 'Tools'; diff --git a/tpl/main-sidebar-nav.php b/tpl/main-sidebar-nav.php index b0cfc33..448d863 100644 --- a/tpl/main-sidebar-nav.php +++ b/tpl/main-sidebar-nav.php @@ -56,6 +56,32 @@ +getACLInfo($ID); +if($aclinfo): + ?> + + +