Plugin Directory

Changeset 1723845


Ignore:
Timestamp:
09/03/2017 09:53:45 AM (9 years ago)
Author:
chartspms
Message:

Intval for reviews percentage

Location:
chartsbeds/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • chartsbeds/trunk/chartsbeds-plugin-page.php

    r1702300 r1723845  
    5555
    5656        // Create the pagination object
    57         $pagination = new pagination($all_reviews, (!get_query_var('page') ? get_query_var('page') : 1), $per_page );
     57        $pagination = new pagination($all_reviews, (!empty(get_query_var('page')) ? get_query_var('page') : 1), $per_page );
    5858        // Decide if the first and last links should show
    5959        $pagination->setShowFirstAndLast(false);
     
    7979                }
    8080                echo '</p></blockquote>';
    81                 echo '<div class="testimonials-rate col-md-4">Rating: '.$reviewsArray['guest_rating'].'';
     81                echo '<div class="testimonials-rate col-md-4">Rating: '.intval($reviewsArray['guest_rating']).'';
    8282                echo '<div class="star-ratings">';
    8383                echo '<div class="star-ratings-top" style="width:'.$g_rates.'px"><span>★</span><span>★</span><span>★</span><span>★</span><span>★</span></div>';
  • chartsbeds/trunk/chartsbeds-widget-review.php

    r1702300 r1723845  
    5454                                    echo '<h4 class="media-heading">';
    5555                                    echo '<small><b>'.ucfirst($res['name']).'</b> <br />from '.$res['country'].'</small><br><small><span class="fa fa-thumbs-up" style="color:#337ab7"></span>&nbsp;';
    56                                     echo $res['guest_rating'].'% Satisfied <br></small>';
     56                                    echo intval($res['guest_rating']).'% Satisfied <br></small>';
    5757                                    echo '</h4>';
    5858                                    echo '<p class="charts-widg-p">';
Note: See TracChangeset for help on using the changeset viewer.