Plugin Directory

Changeset 1806040


Ignore:
Timestamp:
01/19/2018 10:29:05 PM (8 years ago)
Author:
omarkasem
Message:
  • v 2.1
Location:
ultimate-facebook-reviews/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • ultimate-facebook-reviews/trunk/README.txt

    r1806014 r1806040  
    5353== Changelog ==
    5454
     55= 2.1 =
     56* Added schema.org markup to the reviews
     57
     58
    5559= 2.0 =
    5660* Fixed the login problem.
  • ultimate-facebook-reviews/trunk/admin/class-ultimate-facebook-reviews-admin.php

    r1806014 r1806040  
    138138                    <div class="col-md-8">
    139139                        <h3>Ultimate Facebook Reviews</h3>
    140                         <h5>Version 1.0</h5>
     140                        <h5>Version <?php echo $this->version; ?></h5>
    141141                        <?php $active_tab = isset( $_GET[ 'tab' ] ) ? $_GET[ 'tab' ] : 'access-token'; ?>
    142142                        <ul class="nav nav-tabs" role="tablist">
  • ultimate-facebook-reviews/trunk/includes/class-ultimate-facebook-reviews.php

    r1767612 r1806040  
    6868     */
    6969    public function __construct() {
    70         if ( defined( 'PLUGIN_VERSION' ) ) {
    71             $this->version = PLUGIN_VERSION;
     70        if ( defined( 'UFR_PLUGIN_VERSION' ) ) {
     71            $this->version = UFR_PLUGIN_VERSION;
    7272        } else {
    7373            $this->version = '1.0.0';
  • ultimate-facebook-reviews/trunk/public/class-ultimate-facebook-reviews-public.php

    r1806014 r1806040  
    230230                if(is_array($reviews) && !empty($reviews)){
    231231                    foreach($reviews as $review){
    232                         $output .= '<div class="ufr-review ufr-col-md-'.intval($atts['columns']).'">';
     232                        $output .= '<div itemprop="review" itemscope itemtype="http://schema.org/Review" class="ufr-review ufr-col-md-'.intval($atts['columns']).'">';
    233233                        $output .= $this->fb_style2($review,$atts);
    234234                        $output .= "</div>";
     
    255255                if(is_array($reviews) && !empty($reviews)){
    256256                    foreach($reviews as $review){
    257                         $output .= '<div class="ufr-review ufr-col-md-12">';
     257                        $output .= '<div itemprop="review" itemscope itemtype="http://schema.org/Review" class="ufr-review ufr-col-md-12">';
    258258                        $output .= $this->fb_style2($review,$atts);
    259259                        $output .= "</div>";
     
    275275                if(is_array($reviews) && !empty($reviews)){
    276276                    foreach($reviews as $review){
    277                         $output .= '<div class="ufr-review ufr-col-md-'.intval($atts['columns']).'">';
     277                        $output .= '<div itemprop="review" itemscope itemtype="http://schema.org/Review" class="ufr-review ufr-col-md-'.intval($atts['columns']).'">';
    278278                        $output .= $this->fb_style2($review,$atts);
    279279                        $output .= "</div>";
     
    300300                if(is_array($reviews) && !empty($reviews)){
    301301                    foreach($reviews as $review){
    302                         $output .= '<div class="ufr-review ufr-col-md-12">';
     302                        $output .= '<div itemprop="review" itemscope itemtype="http://schema.org/Review" class="ufr-review ufr-col-md-12">';
    303303                        $output .= $this->fb_style2($review,$atts);
    304304                        $output .= "</div>";
     
    315315    private function fb_style2($review,$atts){
    316316        $output ='<div class="ufr-style2">';
    317         $output .= '<div class="star-rating">'.$this->fb_html_stars($review['rating']).'</div>';
     317
     318        $output .= '<span style="display:none;" itemprop="itemReviewed">'.get_bloginfo('name').'</span>';
     319
     320        $output .= '<div class="star-rating" itemprop="reviewRating" itemscope itemtype="http://schema.org/Rating"><span style="display:none;" itemprop="ratingValue">'.$review['rating'].'</span>'.$this->fb_html_stars($review['rating']).'</div>';
     321
    318322        if(array_key_exists('review_text',$review)){
    319             $output .= '<p>'.$review['review_text'].'</p>';
    320         }
    321         $output .='<i class="fa fa-quote-left quote" aria-hidden="true"></i>
    322                     <strong>'.$review['reviewer']['name'].'</strong>
     323            $output .= '<p itemprop="description">'.$review['review_text'].'</p>';
     324        }
     325        $output .='<i itemscope itemtype="http://schema.org/Person" class="fa fa-quote-left quote" aria-hidden="true"></i>
     326                    <strong itemprop="author">'.$review['reviewer']['name'].'</strong>
    323327        ';
    324328        $output .= '</div>';
  • ultimate-facebook-reviews/trunk/ultimate-facebook-reviews.php

    r1806014 r1806040  
    1010 *
    1111 * @link              omark.me
    12  * @since             2.0
     12 * @since             2.1
    1313 * @package           Ultimate_Facebook_Reviews
    1414 *
     
    1717 * Plugin URI:        ultimate-facebook-reviews
    1818 * Description:       Dispaly your Facebook pages Reviews in a beautiful way with a lot of options to customize the reviews as you like, in a slider facebook reviews or a regular facebook reviews, create unlimited shortcodes, widgets and wp rest api urls.
    19  * Version:           2.0
     19 * Version:           2.1
    2020 * Author:            Omar Kasem,OmarK.me
    2121 * Author URI:        http://www.omark.me
     
    3131}
    3232
    33 
     33define('UFR_PLUGIN_VERSION','2.1');
    3434/**
    3535 * The code that runs during plugin activation.
Note: See TracChangeset for help on using the changeset viewer.