Changeset 479603
- Timestamp:
- 12/23/2011 01:07:00 AM (14 years ago)
- Location:
- post-ratings
- Files:
-
- 14 added
- 3 edited
-
tags/1.4 (added)
-
tags/1.4/lang (added)
-
tags/1.4/lang/post-ratings.pot (added)
-
tags/1.4/post-ratings.css (added)
-
tags/1.4/post-ratings.js (added)
-
tags/1.4/post-ratings.php (added)
-
tags/1.4/readme.txt (added)
-
tags/1.4/screenshot-1.png (added)
-
tags/1.4/screenshot-2.png (added)
-
tags/1.4/screenshot-3.png (added)
-
tags/1.4/screenshot-4.png (added)
-
tags/1.4/star.png (added)
-
tags/1.4/star.psd (added)
-
tags/1.4/widget.php (added)
-
trunk/post-ratings.php (modified) (4 diffs)
-
trunk/readme.txt (modified) (1 diff)
-
trunk/widget.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
post-ratings/trunk/post-ratings.php
r476957 r479603 2 2 /* 3 3 Plugin Name: Post Ratings 4 Version: 1. 34 Version: 1.4 5 5 Plugin URI: http://digitalnature.eu/forum/plugins/post-ratings/ 6 6 Description: Simple, developer-friendly, straightforward post rating plugin. Relies on post meta to store avg. rating / vote count. … … 40 40 41 41 const 42 VERSION = '1. 3', // plugin version42 VERSION = '1.4', // plugin version 43 43 ID = 'post_ratings', // internally used for text domain, theme option group name etc. 44 44 MIN_VOTES = 1, // minimum vote count (MV) … … 430 430 431 431 // Atom-based themes alread have this variable "localized" 432 if( !((defined('ATOM_VERSION') && version_compare(ATOM_VERSION, '2', '>')) || (defined('Atom::VERSION') && version_compare(Atom::VERSION, '2', '>'))))432 if(class_exists('Atom') && (defined('Atom::VERSION'))) 433 433 wp_localize_script(self::ID, 'post_ratings', array('blog_url' => home_url('/'))); 434 434 } … … 803 803 804 804 $args = wp_parse_args($args, array( 805 'post_type' => 'post',806 'number' => 10,807 'offset' => 0,808 'sortby' => 'bayesian_rating', // bayesian_rating, rating or votes809 'order' => 'DESC', // ASC or DESC (no reason to use ASC...)810 'date_limit' => 0, // date limit in days811 'where' => '',812 805 'post_type' => 'post', 806 'number' => 10, 807 'offset' => 0, 808 'sortby' => 'bayesian_rating', // bayesian_rating, rating or votes 809 'order' => 'DESC', // ASC or DESC (no reason to use ASC...) 810 'date_limit' => 0, // date limit in days 811 'where' => '', 812 'bayesian_formula' => $this->options('bayesian_formula'), 813 813 )); 814 814 -
post-ratings/trunk/readme.txt
r476957 r479603 75 75 == Changelog == 76 76 77 = 1.4 = 78 * Fixed two issues related to Atom themes 79 77 80 = 1.3 = 78 81 * Fixed bug in which the user formula wasn't working outside the widget -
post-ratings/trunk/widget.php
r476957 r479603 3 3 4 4 // if this an Atom theme make a special widget for it ;) 5 if(class_exists('Atom Widget') && ((defined('ATOM_VERSION') && version_compare(ATOM_VERSION, '2', '>')) || (defined('Atom::VERSION') && version_compare(Atom::VERSION, '2', '>')))){5 if(class_exists('Atom') && (defined('Atom::VERSION'))){ 6 6 7 7 … … 207 207 208 208 if($instance['more'] && $next && Atom::app()->options('jquery')){ 209 $output .= '<div class="fadeThis clear-block"><a href="#" class="more" data-count="'.$instance['number'].'">'._ a('Show More').'</a></div>';209 $output .= '<div class="fadeThis clear-block"><a href="#" class="more" data-count="'.$instance['number'].'">'.__('Show More', PostRatings::ID).'</a></div>'; 210 210 $output .= $this->getShowMoreCtrl('get_top_rated'); 211 211 }
Note: See TracChangeset
for help on using the changeset viewer.