Changeset 776294
- Timestamp:
- 09/21/2013 09:04:07 AM (13 years ago)
- Location:
- embed-iphoneipad-app/trunk
- Files:
-
- 3 edited
-
embed-iphoneipad-app.php (modified) (1 diff)
-
includes/Rsj/EmbedIphoneIpadApp.php (modified) (2 diffs)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
embed-iphoneipad-app/trunk/embed-iphoneipad-app.php
r756004 r776294 6 6 Description: Convert iTunes App Store Link To App Info HTML 7 7 Author: Roomshare Japan 8 Version: 1.1. 18 Version: 1.1.2 9 9 Author URI: http://roomshare.jp/ 10 10 License: GPL2 -
embed-iphoneipad-app/trunk/includes/Rsj/EmbedIphoneIpadApp.php
r756004 r776294 217 217 218 218 $this->registerSectionUsage(); 219 $this->registerSectionTemplate();219 // $this->registerSectionTemplate(); 220 220 $this->registerSectionLinkshareUs(); 221 221 $this->registerSectionLinkshareJp(); … … 640 640 $html .= $releaseDate . '</div>'; 641 641 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 } 670 674 $html .= '<br /><div class="reset"/>'; 671 675 -
embed-iphoneipad-app/trunk/readme.txt
r756004 r776294 1 1 === Embed iPhone/iPad App === 2 2 Contributors: roomshare 3 Version 1.1. 13 Version 1.1.2 4 4 Donate link: http://blog.roomshare.jp/blog/embed-iphoneipad-app 5 5 Tags: Linkshare, iPhone, iPad, iOS, iPod, iTunes, app, smartphone, affiliate, marketing … … 7 7 Support: siteadmin roomshare.jp 8 8 Requires at least: 3.3.0 9 Tested up to: 3.6 9 Tested up to: 3.6.1 10 10 Stable tag: trunk 11 11 License: GPLv2 or later … … 131 131 * confirmed compatibility with WordPress 3.6 132 132 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 133 138 == Upgrade Notice == 134 139
Note: See TracChangeset
for help on using the changeset viewer.