aboutsummaryrefslogtreecommitdiffstats
path: root/mod/connections.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-11-28 19:23:39 -0800
committerfriendica <info@friendica.com>2012-11-28 19:23:39 -0800
commite1380525841509ae9bf05c11bf27f655567e63ae (patch)
tree6b35beb1b89acbac1d115f127c8b6932eed9acb1 /mod/connections.php
parent05e08cb5d2967a12c479ab94187b1ef1bde0a094 (diff)
downloadvolse-hubzilla-e1380525841509ae9bf05c11bf27f655567e63ae.tar.gz
volse-hubzilla-e1380525841509ae9bf05c11bf27f655567e63ae.tar.bz2
volse-hubzilla-e1380525841509ae9bf05c11bf27f655567e63ae.zip
backport features categories and add some new ones like the affinity slider
Diffstat (limited to 'mod/connections.php')
-rw-r--r--mod/connections.php23
1 files changed, 13 insertions, 10 deletions
diff --git a/mod/connections.php b/mod/connections.php
index addebc9cd..877d5d5c3 100644
--- a/mod/connections.php
+++ b/mod/connections.php
@@ -359,16 +359,19 @@ EOT;
$tpl = get_markup_template("abook_edit.tpl");
- $slider_tpl = get_markup_template('contact_slider.tpl');
- $slide = replace_macros($slider_tpl,array(
- '$me' => t('Me'),
- '$val' => $contact['abook_closeness'],
- '$intimate' => t('Best Friends'),
- '$friends' => t('Friends'),
- '$oldfriends' => t('Former Friends'),
- '$acquaintances' => t('Acquaintances'),
- '$world' => t('Unknown')
- ));
+ if(feature_enabled(local_user(),'affinity')) {
+
+ $slider_tpl = get_markup_template('contact_slider.tpl');
+ $slide = replace_macros($slider_tpl,array(
+ '$me' => t('Me'),
+ '$val' => $contact['abook_closeness'],
+ '$intimate' => t('Best Friends'),
+ '$friends' => t('Friends'),
+ '$oldfriends' => t('Former Friends'),
+ '$acquaintances' => t('Acquaintances'),
+ '$world' => t('Unknown')
+ ));
+ }
$perms = array();
$channel = $a->get_channel();