From 1c9299ed4224d37716079be173d75319d2501b71 Mon Sep 17 00:00:00 2001 From: friendica Date: Thu, 15 Jan 2015 14:05:18 -0800 Subject: more backend work on poco rating --- mod/connedit.php | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'mod/connedit.php') diff --git a/mod/connedit.php b/mod/connedit.php index 5c36c3184..cf6ff6aad 100644 --- a/mod/connedit.php +++ b/mod/connedit.php @@ -524,6 +524,12 @@ function connedit_content(&$a) { )); } + + $rating = replace_macros(get_markup_template('rating_slider.tpl'),array( + '$min' => -10, + '$val' => (($contact['abook_rating']) ? $contact['abook_rating'] : 0), + )); + $perms = array(); $channel = $a->get_channel(); @@ -555,6 +561,8 @@ function connedit_content(&$a) { '$buttons' => (($self) ? '' : $buttons), '$viewprof' => t('View Profile'), '$lbl_slider' => t('Slide to adjust your degree of friendship'), + '$lbl_rating' => t('Rating (this information is public)'), + '$rating' => $rating, '$slide' => $slide, '$tabs' => $t, '$tab_str' => $tab_str, -- cgit v1.2.3