WordPress.org

Plugin Directory

Changeset 651148


Ignore:
Timestamp:
01/11/13 03:24:09 (16 months ago)
Author:
GamerZ
Message:

Added reviewCount

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-postratings/trunk/wp-postratings.php

    r640589 r651148  
    12241224 
    12251225        $post_meta = '<meta itemprop="name" content="'.$post_title.'"><meta itemprop="description" content="'.$post_excerpt.'"><meta itemprop="url" content="'.$post_link.'">'; 
    1226         $ratings_meta = '<div style="display: none;" itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating"><meta itemprop="bestRating" content="'.$ratings_max.'"><meta itemprop="ratingValue" content="'.$post_ratings_average.'"><meta itemprop="ratingCount" content="'.$post_ratings_users.'"></div>'; 
     1226        $ratings_meta = '<div style="display: none;" itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating">'; 
     1227        $ratings_meta .= '<meta itemprop="bestRating" content="'.$ratings_max.'">'; 
     1228        $ratings_meta .= '<meta itemprop="ratingValue" content="'.$post_ratings_average.'">'; 
     1229        $ratings_meta .= '<meta itemprop="ratingCount" content="'.$post_ratings_users.'">'; 
     1230        $ratings_meta .= '<meta itemprop="reviewCount" content="'.$post_ratings_users.'">'; 
     1231        $ratings_meta .= '</div>'; 
    12271232 
    12281233        $value = $value.$post_meta.$ratings_meta; 
Note: See TracChangeset for help on using the changeset viewer.