From e1380525841509ae9bf05c11bf27f655567e63ae Mon Sep 17 00:00:00 2001 From: friendica Date: Wed, 28 Nov 2012 19:23:39 -0800 Subject: backport features categories and add some new ones like the affinity slider --- mod/connections.php | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) (limited to 'mod/connections.php') 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(); -- cgit v1.2.3