diff options
author | zotlabs <mike@macgirvin.com> | 2017-01-09 14:38:49 -0800 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2017-01-09 14:38:49 -0800 |
commit | 47bc573de56b2f9c18670c72d9a43678caa3ced0 (patch) | |
tree | b140bd6f93c0a6ca550d526869243b1c9b0e82ba /Zotlabs/Module | |
parent | a6272fcf769c3fc7c3834b3183dfbe25ec738550 (diff) | |
parent | b8f0e565f53109cd2d36c748d61fd8ab17d674bb (diff) | |
download | volse-hubzilla-47bc573de56b2f9c18670c72d9a43678caa3ced0.tar.gz volse-hubzilla-47bc573de56b2f9c18670c72d9a43678caa3ced0.tar.bz2 volse-hubzilla-47bc573de56b2f9c18670c72d9a43678caa3ced0.zip |
Merge branch 'dev' of https://github.com/redmatrix/hubzilla into dev_merge
Diffstat (limited to 'Zotlabs/Module')
-rw-r--r-- | Zotlabs/Module/Connedit.php | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/Zotlabs/Module/Connedit.php b/Zotlabs/Module/Connedit.php index d60ffcd56..92f4fc345 100644 --- a/Zotlabs/Module/Connedit.php +++ b/Zotlabs/Module/Connedit.php @@ -645,6 +645,15 @@ class Connedit extends \Zotlabs\Web\Controller { ), ); + + $sections = []; + + $sections['perms'] = [ + 'label' => t('Permissions'), + 'url' => z_root() . '/connedit/' . $contact['abook_id'] . '/?f=§ion=perms', + 'sel' => '', + 'title' => t('Open Individual Permissions section by default'), + ]; $self = false; @@ -664,6 +673,13 @@ class Connedit extends \Zotlabs\Web\Controller { $tpl = get_markup_template("abook_edit.tpl"); if(feature_enabled(local_channel(),'affinity')) { + + $sections['affinity'] = [ + 'label' => t('Affinity'), + 'url' => z_root() . '/connedit/' . $contact['abook_id'] . '/?f=§ion=affinity', + 'sel' => '', + 'title' => t('Open Set Affinity section by default'), + ]; $labels = [ t('Me'), @@ -693,6 +709,15 @@ class Connedit extends \Zotlabs\Web\Controller { '$labels' => $label_str, )); } + + if(feature_enabled(local_channel(),'connfilter')) { + $sections['filter'] = [ + 'label' => t('Filter'), + 'url' => z_root() . '/connedit/' . $contact['abook_id'] . '/?f=§ion=filter', + 'sel' => '', + 'title' => t('Open Custom Filter section by default'), + ]; + } $rating_val = 0; $rating_text = ''; @@ -794,6 +819,7 @@ class Connedit extends \Zotlabs\Web\Controller { '$autoperms' => array('autoperms',t('Apply these permissions automatically'), ((get_pconfig(local_channel(),'system','autoperms')) ? 1 : 0), t('Connection requests will be approved without your interaction'), $yes_no), '$addr' => $contact['xchan_addr'], '$section' => $section, + '$sections' => $sections, '$vcard' => $vcard, '$addr_text' => t('This connection\'s primary address is'), '$loc_text' => t('Available locations:'), |