diff options
author | jeroenpraat <jeroenpraat@xs4all.nl> | 2016-01-18 21:37:47 +0100 |
---|---|---|
committer | jeroenpraat <jeroenpraat@xs4all.nl> | 2016-01-18 21:37:47 +0100 |
commit | a036d88a4e6e6a83f9962f0f46094cfdac99d263 (patch) | |
tree | 14bbed6eb3256ac6ea6b8042ca983e255600c1b7 /include/identity.php | |
parent | fc54f54b989570e2767a53c3c72875255b0dc95f (diff) | |
download | volse-hubzilla-a036d88a4e6e6a83f9962f0f46094cfdac99d263.tar.gz volse-hubzilla-a036d88a4e6e6a83f9962f0f46094cfdac99d263.tar.bz2 volse-hubzilla-a036d88a4e6e6a83f9962f0f46094cfdac99d263.zip |
Added a feature to hide rating buttons from a members channel and profile pages.
Diffstat (limited to 'include/identity.php')
-rw-r--r-- | include/identity.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/identity.php b/include/identity.php index 2a02d4093..32c4dd130 100644 --- a/include/identity.php +++ b/include/identity.php @@ -1051,8 +1051,10 @@ function profile_sidebar($profile, $block = 0, $show_connect = true) { $tpl = get_markup_template('profile_vcard.tpl'); require_once('include/widgets.php'); - $z = widget_rating(array('target' => $profile['channel_hash'])); + if(! feature_enabled($profile['uid'],'hide_rating')) + $z = widget_rating(array('target' => $profile['channel_hash'])); + $o .= replace_macros($tpl, array( '$profile' => $profile, '$connect' => $connect, @@ -1773,4 +1775,4 @@ function get_cover_photo($channel_id,$format = 'bbcode', $res = PHOTO_RES_COVER_ return $output; -}
\ No newline at end of file +} |