File tree Expand file tree Collapse file tree 3 files changed +51
-3
lines changed
Expand file tree Collapse file tree 3 files changed +51
-3
lines changed Original file line number Diff line number Diff line change 882882 position : absolute ;
883883 bottom : 0 ;
884884 left : 0 ;
885+ .btn-sm {
886+ border-radius : 0 ;
887+ }
885888 }
886889 }
887890 .card-ranking {
@@ -935,6 +938,40 @@ hr {
935938 }
936939 }
937940}
941+ /* **** RANKING ****/
942+
943+ .rating-stars ul {
944+ list-style-type :none ;
945+ padding :0 ;
946+ -moz-user-select :none ;
947+ -webkit-user-select :none ;
948+ li {
949+ & .star {
950+ display :inline-block ;
951+ i {
952+ & .fa {
953+ font-size :1.25em ;
954+ color :#c3c3c3 ;
955+ }
956+ }
957+ & :hover {
958+ i {
959+ & .fa {
960+ color :#FFCC36 ;
961+ }
962+ }
963+ }
964+ & .selected {
965+ i {
966+ & .fa {
967+ color :#FF912C ;
968+ }
969+ }
970+ }
971+ }
972+ }
973+ }
974+
938975
939976/* ****************** ACCORDION B4 *****************/
940977.accordion-b4 {
Original file line number Diff line number Diff line change 4141?>
4242<script>
4343 $(document).ready( function() {
44- $('.star-rating li a ').on('click', function(event) {
44+ $('#stars li').on('click', function(event) {
4545 var id = $(this).parents('ul').attr('id');
4646 $('#vote_label2_' + id).html("<?php echo get_lang ('Loading ' ); ?> ");
4747 $.ajax({
Original file line number Diff line number Diff line change @@ -1817,17 +1817,28 @@ public static function return_rating_system(
18171817 if (!empty ($ percentage )) {
18181818 $ percentage = $ percentage * 125 / 100 ;
18191819 }
1820+
18201821 $ accesses = isset ($ point_info ['accesses ' ]) ? $ point_info ['accesses ' ] : 0 ;
18211822 $ star_label = sprintf (get_lang ('XStarsOutOf5 ' ), $ point_info ['point_average_star ' ]);
18221823
1823- $ html = '<ul id=" ' .$ id .'" class="star-rating">
1824+ $ html = '<section class="rating-widget"> ' ;
1825+ $ html .= '<div class="rating-stars"><ul id="stars"> ' ;
1826+ $ html .= '<li class="star" data-link=" ' .$ url .'&star=1" title="Poor" data-value="1"><i class="fa fa-star fa-fw"></i></li>
1827+ <li class="star" data-link=" ' .$ url .'&star=2" title="Fair" data-value="2"><i class="fa fa-star fa-fw"></i></li>
1828+ <li class="star" data-link=" ' .$ url .'&star=3" title="Good" data-value="3"><i class="fa fa-star fa-fw"></i></li>
1829+ <li class="star" data-link=" ' .$ url .'&star=4" title="Excellent" data-value="4"><i class="fa fa-star fa-fw"></i></li>
1830+ <li class="star" data-link=" ' .$ url .'&star=5" title="WOW!!!" data-value="5"><i class="fa fa-star fa-fw"></i></li>
1831+ ' ;
1832+ $ html .= '</ul></div> ' ;
1833+ $ html .= '</section> ' ;
1834+ /*$html.= '<ul id="'.$id.'" class="star-rating">
18241835 <li class="current-rating" style="width:'.$percentage.'px;"></li>
18251836 <li><a href="javascript:void(0);" data-link="'.$url.'&star=1" title="'.$star_label.'" class="one-star">1</a></li>
18261837 <li><a href="javascript:void(0);" data-link="'.$url.'&star=2" title="'.$star_label.'" class="two-stars">2</a></li>
18271838 <li><a href="javascript:void(0);" data-link="'.$url.'&star=3" title="'.$star_label.'" class="three-stars">3</a></li>
18281839 <li><a href="javascript:void(0);" data-link="'.$url.'&star=4" title="'.$star_label.'" class="four-stars">4</a></li>
18291840 <li><a href="javascript:void(0);" data-link="'.$url.'&star=5" title="'.$star_label.'" class="five-stars">5</a></li>
1830- </ul> ' ;
1841+ </ul>';*/
18311842
18321843 $ labels = [];
18331844
You can’t perform that action at this time.
0 commit comments