@@ -82,12 +82,10 @@ function sendAdminNotification($yform):void
8282 echo '<div class="row"> ' ;
8383 echo '<div class="col-12"> ' . nl2br ($ entry ->description ) .'</div> ' ;
8484 if (!$ hide_rating && $ entry ->rating > 0 ) { /** @phpstan-ignore-line */
85- echo '<div class="col-12"><b> ' . $ tag_open .'d2u_guestbook_rating ' . $ tag_close .': ' ;
85+ echo '<div class="col-12 recommendation-stars "><b> ' . $ tag_open .'d2u_guestbook_rating ' . $ tag_close .': ' ;
8686 for ($ j = 1 ; $ j <= 5 ; ++$ j ) {
8787 if ($ j <= $ entry ->rating ) {
88- echo ' <span class="icon star-full"></span> ' ;
89- } else {
90- echo ' <span class="icon star-empty"></span> ' ;
88+ echo ' <span class="fas fa-star"></span> ' ;
9189 }
9290 }
9391 echo '</b></div> ' ;
@@ -137,15 +135,15 @@ function changePage(pageno) {
137135 function d2u_guestbook_module_60_1_set_stars(wert) {
138136 for(var x = 1; x <= 5; x++) {
139137 if(x <= wert) {
140- if($('#d2u_guestbook_module_60_1_star' + x).hasClass('star-empty ')) {
141- $('#d2u_guestbook_module_60_1_star' + x).removeClass('star-empty ');
142- $('#d2u_guestbook_module_60_1_star' + x).addClass('star-full ');
138+ if($('#d2u_guestbook_module_60_1_star' + x).hasClass('far ')) {
139+ $('#d2u_guestbook_module_60_1_star' + x).removeClass('far ');
140+ $('#d2u_guestbook_module_60_1_star' + x).addClass('fas ');
143141 }
144142 }
145143 else {
146- if($('#d2u_guestbook_module_60_1_star' + x).hasClass('star-full ')) {
147- $('#d2u_guestbook_module_60_1_star' + x).removeClass('star-full ');
148- $('#d2u_guestbook_module_60_1_star' + x).addClass('star-empty ');
144+ if($('#d2u_guestbook_module_60_1_star' + x).hasClass('fas ')) {
145+ $('#d2u_guestbook_module_60_1_star' + x).removeClass('fas ');
146+ $('#d2u_guestbook_module_60_1_star' + x).addClass('far ');
149147 }
150148 }
151149 }
@@ -161,7 +159,7 @@ function d2u_guestbook_module_60_1_click_stars(wert) {
161159<?php
162160$ stars = '' ;
163161for ($ i = 1 ; $ i <= 5 ; ++$ i ) {
164- $ stars .= '<span class="icon star-empty " id="d2u_guestbook_module_60_1_star ' . $ i .'" onmouseover="d2u_guestbook_module_60_1_set_stars( ' . $ i .')" onmouseout="d2u_guestbook_module_60_1_reset_stars( ' . $ i .')" onclick="d2u_guestbook_module_60_1_click_stars( ' . $ i .')"></span> ' ;
162+ $ stars .= '<span class="recommendation-stars"><span class="far fa-star " id="d2u_guestbook_module_60_1_star ' . $ i .'" onmouseover="d2u_guestbook_module_60_1_set_stars( ' . $ i .')" onmouseout="d2u_guestbook_module_60_1_reset_stars( ' . $ i .')" onclick="d2u_guestbook_module_60_1_click_stars( ' . $ i .')"></span ></span> ' ;
165163}
166164$ form_data = '
167165 text|name| ' . $ tag_open .'d2u_guestbook_form_name ' . $ tag_close .' *
0 commit comments