Commit 7631275a by pupi1985

Removed the user_points function

parent 8e7eea0e
......@@ -94,7 +94,14 @@ class qa_html_theme extends qa_html_theme_base
public function logged_in()
{
parent::logged_in();
$this->output($this->user_points());
if (qa_is_logged_in()) {
$userpoints = qa_get_logged_in_points();
$pointshtml = $userpoints == 1
? qa_lang_html_sub('main/1_point', '1', '1')
: qa_html(number_format($userpoints))
;
$this->output('<div class="qam-logged-in-points">' . $pointshtml . '</div>');
}
}
/**
......@@ -635,25 +642,6 @@ class qa_html_theme extends qa_html_theme_base
}
/**
* Get logged in user's points
*
* @access private
* @since Snow 1.4
* @version 1.0
* @return string|null LoggedIn user's total points, null for guest
*/
private function user_points()
{
if (qa_is_logged_in()) {
$userpoints = qa_get_logged_in_points();
$pointshtml = ($userpoints == 1) ? qa_lang_html_sub('main/1_point', '1', '1') : qa_html(number_format($userpoints));
$points = '<div class="qam-logged-in-points">' . $pointshtml . '</div>';
return $points;
}
return '';
}
/**
* Custom ask button for medium and small screen
*
* @access private
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment