function ranking_label($item, $class) { if (qa_opt('marker_plugin_w_users') && $class == 'qa-top-users') { $handle = strip_tags($item['label']); $uid = $this->getuserfromhandle($handle); $image = $this->get_role_marker($uid, 2); $item['label'] = $image . $item['label']; } qa_html_theme_base::ranking_label($item, $class); }
function ranking_label($item, $class) { if (qa_opt('buddypress_integration_enable') && qa_opt('buddypress_display_names') && $class == 'qa-top-users') { $handle = $this->who_to_handle($item['label']); $name = bp_core_get_user_displayname($handle); if ($name) { $item['label'] = str_replace('>' . $handle . '<', ' title="@' . $handle . '">' . $name . '<', $item['label']); } } qa_html_theme_base::ranking_label($item, $class); }