Version Description
- Another bugfix on yasr_visitor_votes shortcode.
- Minor changes
Download this release
Release Info
Developer | Dudo |
Plugin | Yasr – Yet Another Stars Rating |
Version | 0.7.2 |
Comparing to | |
See all releases |
Code changes from version 0.7.1 to 0.7.2
- lib/yasr-ajax-functions.php +6 -1
- lib/yasr-functions.php +2 -4
- lib/yasr-shortcode-functions.php +1 -1
- readme.txt +8 -3
- yet-another-stars-rating.php +2 -2
lib/yasr-ajax-functions.php
CHANGED
@@ -1210,7 +1210,12 @@ add_action( 'wp_ajax_yasr_change_log_page', 'yasr_change_log_page_callback' );
|
|
1210 |
var postid = <?php echo (json_encode($post_id)); ?>;
|
1211 |
var ajaxurl = <?php echo (json_encode(admin_url('admin-ajax.php'))); ?>;
|
1212 |
|
1213 |
-
|
|
|
|
|
|
|
|
|
|
|
1214 |
|
1215 |
});
|
1216 |
|
1210 |
var postid = <?php echo (json_encode($post_id)); ?>;
|
1211 |
var ajaxurl = <?php echo (json_encode(admin_url('admin-ajax.php'))); ?>;
|
1212 |
|
1213 |
+
var visitorStatsEnabled = <?php echo (json_encode(YASR_VISITORS_STATS)); ?>;
|
1214 |
+
|
1215 |
+
//If stats are enabled call the function
|
1216 |
+
if (visitorStatsEnabled == 'yes') {
|
1217 |
+
yasrDrawTipsProgress (postid, ajaxurl);
|
1218 |
+
}
|
1219 |
|
1220 |
});
|
1221 |
|
lib/yasr-functions.php
CHANGED
@@ -48,8 +48,7 @@ if ( ! defined( 'ABSPATH' ) ) exit('You\'re not allowed to see this page'); // E
|
|
48 |
wp_add_inline_style( 'yasrcss', YASR_CUSTOM_CSS_RULES );
|
49 |
}
|
50 |
|
51 |
-
|
52 |
-
//We're in 2014 and out there still exists themes that doesn't use it.
|
53 |
wp_enqueue_script( 'rateit', YASR_JS_DIR . 'jquery.rateit.min.js' , array('jquery'), '1.0.22', TRUE );
|
54 |
wp_enqueue_script( 'cookie', YASR_JS_DIR . 'jquery-cookie.min.js' , array('jquery', 'rateit'), '1.4.0', TRUE );
|
55 |
|
@@ -59,7 +58,7 @@ if ( ! defined( 'ABSPATH' ) ) exit('You\'re not allowed to see this page'); // E
|
|
59 |
wp_enqueue_script( 'jquery-ui-tooltip' ); //script
|
60 |
}
|
61 |
|
62 |
-
wp_enqueue_script( 'yasrfront', YASR_JS_DIR . 'yasr-front.js' , array('jquery', 'rateit'), '1.0.
|
63 |
|
64 |
}
|
65 |
|
@@ -68,7 +67,6 @@ if ( ! defined( 'ABSPATH' ) ) exit('You\'re not allowed to see this page'); // E
|
|
68 |
wp_enqueue_style( 'yasrcss', YASR_CSS_DIR . 'yasr-admin.css', FALSE, NULL, 'all' );
|
69 |
wp_enqueue_style( 'wp-jquery-ui-dialog' ); //style
|
70 |
|
71 |
-
//Admin area use wp-footer so there is no need to use it here
|
72 |
wp_enqueue_script( 'rateit', YASR_JS_DIR . 'jquery.rateit.min.js' , array('jquery'), '1.0.20', TRUE );
|
73 |
wp_enqueue_script( 'jquery-ui-dialog' ); //script
|
74 |
|
48 |
wp_add_inline_style( 'yasrcss', YASR_CUSTOM_CSS_RULES );
|
49 |
}
|
50 |
|
51 |
+
|
|
|
52 |
wp_enqueue_script( 'rateit', YASR_JS_DIR . 'jquery.rateit.min.js' , array('jquery'), '1.0.22', TRUE );
|
53 |
wp_enqueue_script( 'cookie', YASR_JS_DIR . 'jquery-cookie.min.js' , array('jquery', 'rateit'), '1.4.0', TRUE );
|
54 |
|
58 |
wp_enqueue_script( 'jquery-ui-tooltip' ); //script
|
59 |
}
|
60 |
|
61 |
+
wp_enqueue_script( 'yasrfront', YASR_JS_DIR . 'yasr-front.js' , array('jquery', 'rateit'), '1.0.0', TRUE );
|
62 |
|
63 |
}
|
64 |
|
67 |
wp_enqueue_style( 'yasrcss', YASR_CSS_DIR . 'yasr-admin.css', FALSE, NULL, 'all' );
|
68 |
wp_enqueue_style( 'wp-jquery-ui-dialog' ); //style
|
69 |
|
|
|
70 |
wp_enqueue_script( 'rateit', YASR_JS_DIR . 'jquery.rateit.min.js' , array('jquery'), '1.0.20', TRUE );
|
71 |
wp_enqueue_script( 'jquery-ui-dialog' ); //script
|
72 |
|
lib/yasr-shortcode-functions.php
CHANGED
@@ -195,7 +195,7 @@ function shortcode_visitor_votes_callback ($atts) {
|
|
195 |
$px_size = '32';
|
196 |
}
|
197 |
|
198 |
-
$shortcode_html = "<div id=\"yasr_visitor_votes_$post_id\">";
|
199 |
|
200 |
//if anonymous are allowed to vote
|
201 |
if (YASR_ALLOWED_USER === 'allow_anonymous') {
|
195 |
$px_size = '32';
|
196 |
}
|
197 |
|
198 |
+
$shortcode_html = "<div id=\"yasr_visitor_votes_$post_id\" class=\"yasr-visitor-votes\">";
|
199 |
|
200 |
//if anonymous are allowed to vote
|
201 |
if (YASR_ALLOWED_USER === 'allow_anonymous') {
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
|
|
3 |
Tags: 5 star, admin, administrator, AJAX, five-star, javascript, jquery, post rating, posts, rate, rating, rating platform, rating system, ratings, review, reviews, rich snippets, seo, star, star rating, stars, vote, Votes, voting, voting contest, schema, serp
|
4 |
Requires at least: 3.5
|
5 |
Contributors: Dudo
|
6 |
-
Tested up to: 4.
|
7 |
-
Stable tag: 0.7.
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
10 |
Yet Another Stars Rating is a simple plugin which allows you and / or your visitor to rate a post or element. Ideal for review's website
|
@@ -42,8 +42,9 @@ If with gd-star-rating you're using a different number of stars from the default
|
|
42 |
* Italian
|
43 |
* German (thanks to [Josef Seidl,](http://www.blog-it-solutions.de/) until version 0.6.5, than mp3-post )
|
44 |
* Polish (thanks to Hoek i Tutu Team)
|
45 |
-
* Dutch (thanks to [Marcel Pol](http://zenoweb.nl )
|
46 |
* French (Thanks to Sébastien Gracia)
|
|
|
47 |
|
48 |
= Related Link =
|
49 |
News and doc at [Yasr Official Site](http://yetanotherstarsrating.com/)
|
@@ -91,6 +92,10 @@ Of course not: you can easily add it on the visual editor just by clicking on th
|
|
91 |
|
92 |
== Changelog ==
|
93 |
|
|
|
|
|
|
|
|
|
94 |
= 0.7.1 =
|
95 |
* Important change into yasr_visitor_votes shortcode
|
96 |
|
3 |
Tags: 5 star, admin, administrator, AJAX, five-star, javascript, jquery, post rating, posts, rate, rating, rating platform, rating system, ratings, review, reviews, rich snippets, seo, star, star rating, stars, vote, Votes, voting, voting contest, schema, serp
|
4 |
Requires at least: 3.5
|
5 |
Contributors: Dudo
|
6 |
+
Tested up to: 4.1
|
7 |
+
Stable tag: 0.7.2
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
10 |
Yet Another Stars Rating is a simple plugin which allows you and / or your visitor to rate a post or element. Ideal for review's website
|
42 |
* Italian
|
43 |
* German (thanks to [Josef Seidl,](http://www.blog-it-solutions.de/) until version 0.6.5, than mp3-post )
|
44 |
* Polish (thanks to Hoek i Tutu Team)
|
45 |
+
* Dutch (thanks to [Marcel Pol](http://zenoweb.nl ) )
|
46 |
* French (Thanks to Sébastien Gracia)
|
47 |
+
* Norwegian (Thanks to [Line](http://www.spilleautomatercasinobonuser.com) )
|
48 |
|
49 |
= Related Link =
|
50 |
News and doc at [Yasr Official Site](http://yetanotherstarsrating.com/)
|
92 |
|
93 |
== Changelog ==
|
94 |
|
95 |
+
= 0.7.2 =
|
96 |
+
* Another bugfix on yasr_visitor_votes shortcode.
|
97 |
+
* Minor changes
|
98 |
+
|
99 |
= 0.7.1 =
|
100 |
* Important change into yasr_visitor_votes shortcode
|
101 |
|
yet-another-stars-rating.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Yet Another Stars Rating
|
4 |
* Plugin URI: http://wordpress.org/plugins/yet-another-stars-rating/
|
5 |
* Description: Rating system with rich snippets
|
6 |
-
* Version: 0.7.
|
7 |
* Author: Dario Curvino
|
8 |
* Author URI: http://yetanotherstarsrating.com/
|
9 |
* License: GPL2
|
@@ -28,7 +28,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>
|
|
28 |
*/
|
29 |
|
30 |
|
31 |
-
define('YASR_VERSION_NUM', '0.7.
|
32 |
|
33 |
//Plugin relative path
|
34 |
define( "YASR_RELATIVE_PATH", dirname(__FILE__) );
|
3 |
* Plugin Name: Yet Another Stars Rating
|
4 |
* Plugin URI: http://wordpress.org/plugins/yet-another-stars-rating/
|
5 |
* Description: Rating system with rich snippets
|
6 |
+
* Version: 0.7.2
|
7 |
* Author: Dario Curvino
|
8 |
* Author URI: http://yetanotherstarsrating.com/
|
9 |
* License: GPL2
|
28 |
*/
|
29 |
|
30 |
|
31 |
+
define('YASR_VERSION_NUM', '0.7.2');
|
32 |
|
33 |
//Plugin relative path
|
34 |
define( "YASR_RELATIVE_PATH", dirname(__FILE__) );
|