|
|
@ -1817,17 +1817,28 @@ class Display |
|
|
|
if (!empty($percentage)) { |
|
|
|
if (!empty($percentage)) { |
|
|
|
$percentage = $percentage * 125 / 100; |
|
|
|
$percentage = $percentage * 125 / 100; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
$accesses = isset($point_info['accesses']) ? $point_info['accesses'] : 0; |
|
|
|
$accesses = isset($point_info['accesses']) ? $point_info['accesses'] : 0; |
|
|
|
$star_label = sprintf(get_lang('XStarsOutOf5'), $point_info['point_average_star']); |
|
|
|
$star_label = sprintf(get_lang('XStarsOutOf5'), $point_info['point_average_star']); |
|
|
|
|
|
|
|
|
|
|
|
$html = '<ul id="'.$id.'" class="star-rating"> |
|
|
|
$html= '<section class="rating-widget">'; |
|
|
|
|
|
|
|
$html.= '<div class="rating-stars"><ul id="stars">'; |
|
|
|
|
|
|
|
$html.= '<li class="star" data-link="'.$url.'&star=1" title="Poor" data-value="1"><i class="fa fa-star fa-fw"></i></li> |
|
|
|
|
|
|
|
<li class="star" data-link="'.$url.'&star=2" title="Fair" data-value="2"><i class="fa fa-star fa-fw"></i></li> |
|
|
|
|
|
|
|
<li class="star" data-link="'.$url.'&star=3" title="Good" data-value="3"><i class="fa fa-star fa-fw"></i></li> |
|
|
|
|
|
|
|
<li class="star" data-link="'.$url.'&star=4" title="Excellent" data-value="4"><i class="fa fa-star fa-fw"></i></li> |
|
|
|
|
|
|
|
<li class="star" data-link="'.$url.'&star=5" title="WOW!!!" data-value="5"><i class="fa fa-star fa-fw"></i></li> |
|
|
|
|
|
|
|
'; |
|
|
|
|
|
|
|
$html.= '</ul></div>'; |
|
|
|
|
|
|
|
$html.= '</section>'; |
|
|
|
|
|
|
|
/*$html.= '<ul id="'.$id.'" class="star-rating"> |
|
|
|
<li class="current-rating" style="width:'.$percentage.'px;"></li> |
|
|
|
<li class="current-rating" style="width:'.$percentage.'px;"></li> |
|
|
|
<li><a href="javascript:void(0);" data-link="'.$url.'&star=1" title="'.$star_label.'" class="one-star">1</a></li> |
|
|
|
<li><a href="javascript:void(0);" data-link="'.$url.'&star=1" title="'.$star_label.'" class="one-star">1</a></li> |
|
|
|
<li><a href="javascript:void(0);" data-link="'.$url.'&star=2" title="'.$star_label.'" class="two-stars">2</a></li> |
|
|
|
<li><a href="javascript:void(0);" data-link="'.$url.'&star=2" title="'.$star_label.'" class="two-stars">2</a></li> |
|
|
|
<li><a href="javascript:void(0);" data-link="'.$url.'&star=3" title="'.$star_label.'" class="three-stars">3</a></li> |
|
|
|
<li><a href="javascript:void(0);" data-link="'.$url.'&star=3" title="'.$star_label.'" class="three-stars">3</a></li> |
|
|
|
<li><a href="javascript:void(0);" data-link="'.$url.'&star=4" title="'.$star_label.'" class="four-stars">4</a></li> |
|
|
|
<li><a href="javascript:void(0);" data-link="'.$url.'&star=4" title="'.$star_label.'" class="four-stars">4</a></li> |
|
|
|
<li><a href="javascript:void(0);" data-link="'.$url.'&star=5" title="'.$star_label.'" class="five-stars">5</a></li> |
|
|
|
<li><a href="javascript:void(0);" data-link="'.$url.'&star=5" title="'.$star_label.'" class="five-stars">5</a></li> |
|
|
|
</ul>'; |
|
|
|
</ul>';*/ |
|
|
|
|
|
|
|
|
|
|
|
$labels = []; |
|
|
|
$labels = []; |
|
|
|
|
|
|
|
|
|
|
|