poco rating - add a test module for pulling out ratings

This commit is contained in:
friendica
2015-01-15 17:32:41 -08:00
parent e7932d97a2
commit 597b07e8cc
4 changed files with 90 additions and 5 deletions

View File

@@ -534,11 +534,21 @@ function connedit_content(&$a) {
));
}
$poco_rating = get_config('system','poco_rating_enable');
// if unset default to enabled
if($poco_rating === false)
$poco_rating = true;
if($poco_rating) {
$rating = replace_macros(get_markup_template('rating_slider.tpl'),array(
'$min' => -10,
'$val' => (($contact['abook_rating']) ? $contact['abook_rating'] : 0),
));
}
else {
$rating = false;
}
$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();