Plugin Directory

Changeset 776294


Ignore:
Timestamp:
09/21/2013 09:04:07 AM (13 years ago)
Author:
roomshare
Message:

fixed too much entry updates in rss feed for the plugin version 1.1.2

Location:
embed-iphoneipad-app/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • embed-iphoneipad-app/trunk/embed-iphoneipad-app.php

    r756004 r776294  
    66  Description: Convert iTunes App Store Link To App Info HTML
    77  Author: Roomshare Japan
    8   Version: 1.1.1
     8  Version: 1.1.2
    99  Author URI: http://roomshare.jp/
    1010  License: GPL2
  • embed-iphoneipad-app/trunk/includes/Rsj/EmbedIphoneIpadApp.php

    r756004 r776294  
    217217
    218218        $this->registerSectionUsage();
    219         $this->registerSectionTemplate();
     219//        $this->registerSectionTemplate();
    220220        $this->registerSectionLinkshareUs();
    221221        $this->registerSectionLinkshareJp();
     
    640640        $html .= $releaseDate . '</div>';
    641641
    642         // CSS only half star by TheBroth.com
    643         //   http://www.thebroth.com/blog/119/css-rating-stars
    644         $html .= '<div class="info_pack">';
    645         if ( array_key_exists( 'averageUserRating', $appInfo ) ) {
    646             $html .= '<div>' . __( 'User Rating (all version)', self::PLUGIN_KEY ) . ': </div>';
    647             $html .= $this->formatStar( (float) ($appInfo['averageUserRating']) );
    648             $html .= '<div>';
    649             $html .= '(' . sprintf( __( 'by %d', self::PLUGIN_KEY ), $appInfo['userRatingCount'] ) . ')';
    650 
    651             $html .= '</div>';
    652         } else {
    653             $html .= '<div>' . __( 'User Rating (all version)', self::PLUGIN_KEY ) . ': ';
    654             $html .= __( 'no rating yet', self::PLUGIN_KEY ) . '</div>';
    655         }
    656         $html .= '</div><!-- info_pack -->';
    657 
    658         $html .= '<div class="info_pack">';
    659         if ( array_key_exists( 'averageUserRatingForCurrentVersion', $appInfo ) ) {
    660             $html .= '<div>' . __( 'User Rating (current version)', self::PLUGIN_KEY ) . ': </div>';
    661             $html .= $this->formatStar( (float) ($appInfo['averageUserRatingForCurrentVersion']) );
    662             $html .= '<div>';
    663             $html .= '(' . sprintf( __( 'by %d', self::PLUGIN_KEY ), $appInfo['userRatingCountForCurrentVersion'] ) . ')';
    664             $html .= '</div>';
    665         } else {
    666             $html .= '<div>' . __( 'User Rating (current version)', self::PLUGIN_KEY ) . ': ';
    667             $html .= __( 'no rating yet', self::PLUGIN_KEY ) . '</div>';
    668         }
    669         $html .= '</div><!-- info_pack -->';
     642        // suppress rating when RSS, because ratings are frequently changed
     643        // and that makes the post updated on feed too much.
     644        if (!is_feed()) {
     645            // CSS only half star by TheBroth.com
     646            //   http://www.thebroth.com/blog/119/css-rating-stars
     647            $html .= '<div class="info_pack">';
     648            if ( array_key_exists( 'averageUserRating', $appInfo ) ) {
     649                $html .= '<div>' . __( 'User Rating (all version)', self::PLUGIN_KEY ) . ': </div>';
     650                $html .= $this->formatStar( (float) ($appInfo['averageUserRating']) );
     651                $html .= '<div>';
     652                $html .= '(' . sprintf( __( 'by %d', self::PLUGIN_KEY ), $appInfo['userRatingCount'] ) . ')';
     653
     654                $html .= '</div>';
     655            } else {
     656                $html .= '<div>' . __( 'User Rating (all version)', self::PLUGIN_KEY ) . ': ';
     657                $html .= __( 'no rating yet', self::PLUGIN_KEY ) . '</div>';
     658            }
     659            $html .= '</div><!-- info_pack -->';
     660
     661            $html .= '<div class="info_pack">';
     662            if ( array_key_exists( 'averageUserRatingForCurrentVersion', $appInfo ) ) {
     663                $html .= '<div>' . __( 'User Rating (current version)', self::PLUGIN_KEY ) . ': </div>';
     664                $html .= $this->formatStar( (float) ($appInfo['averageUserRatingForCurrentVersion']) );
     665                $html .= '<div>';
     666                $html .= '(' . sprintf( __( 'by %d', self::PLUGIN_KEY ), $appInfo['userRatingCountForCurrentVersion'] ) . ')';
     667                $html .= '</div>';
     668            } else {
     669                $html .= '<div>' . __( 'User Rating (current version)', self::PLUGIN_KEY ) . ': ';
     670                $html .= __( 'no rating yet', self::PLUGIN_KEY ) . '</div>';
     671            }
     672            $html .= '</div><!-- info_pack -->';
     673        }
    670674        $html .= '<br /><div class="reset"/>';
    671675
  • embed-iphoneipad-app/trunk/readme.txt

    r756004 r776294  
    11=== Embed iPhone/iPad App ===
    22Contributors: roomshare
    3 Version 1.1.1
     3Version 1.1.2
    44Donate link: http://blog.roomshare.jp/blog/embed-iphoneipad-app
    55Tags: Linkshare, iPhone, iPad, iOS, iPod, iTunes, app, smartphone, affiliate, marketing
     
    77Support: siteadmin roomshare.jp
    88Requires at least: 3.3.0
    9 Tested up to: 3.6
     9Tested up to: 3.6.1
    1010Stable tag: trunk
    1111License: GPLv2 or later
     
    131131* confirmed compatibility with WordPress 3.6
    132132
     133= 1.1.2 =
     134* removed custom template form which mistakenly added in 1.1.1
     135* suppress rating stars in feed, to avoid too frequent updates on rss reader
     136* confirmed compatibility with WordPress 3.6.1
     137
    133138== Upgrade Notice ==
    134139
Note: See TracChangeset for help on using the changeset viewer.