aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2018-06-01 21:52:54 +0200
committerMario Vavti <mario@mariovavti.com>2018-06-01 21:52:54 +0200
commit22a9e4c9a9e4a48f644deed0432dc05a7e5b189c (patch)
tree838e862dffb990a92b613badc40d709c22102be0
parent56f0244360462d96e2737ca4407feb7909c170d8 (diff)
downloadvolse-hubzilla-22a9e4c9a9e4a48f644deed0432dc05a7e5b189c.tar.gz
volse-hubzilla-22a9e4c9a9e4a48f644deed0432dc05a7e5b189c.tar.bz2
volse-hubzilla-22a9e4c9a9e4a48f644deed0432dc05a7e5b189c.zip
add manage privacy groups entry to the panel channel menu dropdown for now
-rw-r--r--Zotlabs/Widget/Forums.php2
-rw-r--r--include/nav.php18
-rwxr-xr-xview/tpl/navbar_default.tpl3
3 files changed, 8 insertions, 15 deletions
diff --git a/Zotlabs/Widget/Forums.php b/Zotlabs/Widget/Forums.php
index 7415c0f0a..f3141031d 100644
--- a/Zotlabs/Widget/Forums.php
+++ b/Zotlabs/Widget/Forums.php
@@ -27,6 +27,8 @@ class Forums {
$x1 = q("select xchan from abconfig where chan = %d and cat = 'their_perms' and k = 'send_stream' and v = '0'",
intval(local_channel())
);
+//print_r($x1);killme();
+
if($x1) {
$xc = ids_to_querystr($x1,'xchan',true);
diff --git a/include/nav.php b/include/nav.php
index 994819ed4..d83337481 100644
--- a/include/nav.php
+++ b/include/nav.php
@@ -91,9 +91,11 @@ function nav($template = 'default') {
if(local_channel()) {
if(! $_SESSION['delegate']) {
- $nav['manage'] = array('manage', t('Channel Manager'), "", t('Manage Your Channels'),'manage_nav_btn');
+ $nav['manage'] = array('manage', t('Manage Channels'), "", t('Manage your channels'),'manage_nav_btn');
}
+ $nav['group'] = array('group', t('Manage Privacy Groups'),"", t('Add and edit privacy groups'),'group_nav_btn');
+
$nav['settings'] = array('settings', t('Settings'),"", t('Account/Channel Settings'),'settings_nav_btn');
@@ -182,20 +184,6 @@ function nav($template = 'default') {
$nav['search'] = ['search', t('Search'), "", t('Search site @name, !forum, #tag, ?docs, content'), $search_form_action];
-
- /**
- *
- * The following nav links are only show to logged in users
- *
- */
-
- if(local_channel()) {
- if(! $_SESSION['delegate']) {
- $nav['manage'] = array('manage', t('Channel Manager'), "", t('Manage Your Channels'),'manage_nav_btn');
- }
- $nav['settings'] = array('settings', t('Settings'),"", t('Account/Channel Settings'),'settings_nav_btn');
- }
-
/**
* Admin page
*/
diff --git a/view/tpl/navbar_default.tpl b/view/tpl/navbar_default.tpl
index ebcadf365..0eb0a964c 100755
--- a/view/tpl/navbar_default.tpl
+++ b/view/tpl/navbar_default.tpl
@@ -27,6 +27,9 @@
{{foreach $nav.usermenu as $usermenu}}
<a class="dropdown-item{{if $usermenu.2}} active{{/if}}" href="{{$usermenu.0}}" title="{{$usermenu.3}}" role="menuitem" id="{{$usermenu.4}}">{{$usermenu.1}}</a>
{{/foreach}}
+ {{if $nav.group}}
+ <a class="dropdown-item" href="{{$nav.group.0}}" title="{{$nav.group.3}}" role="menuitem" id="{{$nav.group.4}}">{{$nav.group.1}}</a>
+ {{/if}}
{{if $nav.manage}}
<a class="dropdown-item{{if $sel.name == Manage}} active{{/if}}" href="{{$nav.manage.0}}" title="{{$nav.manage.3}}" role="menuitem" id="{{$nav.manage.4}}">{{$nav.manage.1}}</a>
{{/if}}