Yasr – Yet Another Stars Rating - Version 1.1.2

Version Description

  • FIXED: Yasr Stylish compatibility
  • TWEAKED: Minor changes.
Download this release

Release Info

Developer Dudo
Plugin Icon 128x128 Yasr – Yet Another Stars Rating
Version 1.1.2
Comparing to
See all releases

Code changes from version 1.1.1 to 1.1.2

lib/yasr-functions.php CHANGED
@@ -28,10 +28,11 @@ if ( ! defined( 'ABSPATH' ) ) exit('You\'re not allowed to see this page'); // E
28
 
29
  function yasr_add_scripts () {
30
 
31
- wp_enqueue_style( 'yasrcss', YASR_CSS_DIR . 'yasr.css', FALSE, NULL, 'all' );
32
-
33
  do_action( 'yasr_add_front_script_css' );
34
 
 
 
 
35
  //If choosen is light or not dark (force to be default)
36
  if (YASR_SCHEME_COLOR === 'light' || YASR_SCHEME_COLOR != 'dark' ) {
37
  wp_enqueue_style( 'yasrcsslightscheme', YASR_CSS_DIR . 'yasr-table-light.css', array('yasrcss'), NULL, 'all' );
@@ -188,7 +189,7 @@ if ( ! defined( 'ABSPATH' ) ) exit('You\'re not allowed to see this page'); // E
188
  include (YASR_ABSOLUTE_PATH . '/yasr-metabox-multiple-rating.php');
189
  }
190
  else {
191
- _e("You don't have enought privileges to insert Multi Set");
192
  }
193
 
194
  }
28
 
29
  function yasr_add_scripts () {
30
 
 
 
31
  do_action( 'yasr_add_front_script_css' );
32
 
33
+ //This will run only if doesn't exists yasrcss yet. That's why must be after do_action
34
+ wp_enqueue_style( 'yasrcss', YASR_CSS_DIR . 'yasr.css', FALSE, NULL, 'all' );
35
+
36
  //If choosen is light or not dark (force to be default)
37
  if (YASR_SCHEME_COLOR === 'light' || YASR_SCHEME_COLOR != 'dark' ) {
38
  wp_enqueue_style( 'yasrcsslightscheme', YASR_CSS_DIR . 'yasr-table-light.css', array('yasrcss'), NULL, 'all' );
189
  include (YASR_ABSOLUTE_PATH . '/yasr-metabox-multiple-rating.php');
190
  }
191
  else {
192
+ _e("You don't have enough privileges to insert a Multi Set");
193
  }
194
 
195
  }
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: 5 star, admin, administrator, AJAX, five-star, javascript, jquery, post r
4
  Requires at least: 3.5
5
  Contributors: Dudo
6
  Tested up to: 4.4
7
- Stable tag: 1.1.1
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
@@ -35,6 +35,7 @@ If you're using gd-star-rating, YASR is the plugin for you! You can import from
35
  their respective score. Once YASR is installed you just have to go to "Settings" -> "Yet Another Stars Rating: Settings" and start the import (last box at the bottom).
36
  This operation can take some time, don't stop it! Once it's done you just need to replace the gd-star-rating's shortcode with the YASR tags.
37
  If with gd-star-rating you're using a different number of stars from the default of 5, YASR will automatically convert all the scores in a range from 1 to 5.
 
38
 
39
  = Supported Languages =
40
 
@@ -56,18 +57,7 @@ In this video I'll show you the "Auto Insert" feature and manual placement of YA
56
  * [SOURCEWP](http://www.sourcewp.com/best-post-voting-plugins-wordpress/)
57
  * [HOWSHOST](https://howshost.com/add-post-rating-system-in-wordpress/)
58
 
59
- Do you want more feature? [GO PRO!](https://yetanotherstarsrating.com/#yasr-pro-anchor)
60
-
61
- > #### Pro Only features:
62
- > * You can display as many rows as you like in all rankings.
63
- > * Customizable star size is in rankings that use it.
64
- > * You can change the text shown near the stars and choose to let it appear before or after them.
65
- > * You can choose to show the Username or the display name in the charts that use it.
66
- > * Category / post type filter in rankings.
67
- > * Users can choose different ready to use sets or upload their own images.
68
- > * Visitors can add their own reviews in comments.
69
-
70
-
71
 
72
  == Installation ==
73
  1. Install Yet Another Stars Rating either via the WordPress.org plugin directory, or by uploading the files to your server
@@ -120,6 +110,10 @@ Of course not: you can easily add it on the visual editor just by clicking on th
120
 
121
  == Changelog ==
122
 
 
 
 
 
123
  = 1.1.1 =
124
  * FIXED: Yasr Stylish compatibility
125
  * TWEAKED: changed extensions images
4
  Requires at least: 3.5
5
  Contributors: Dudo
6
  Tested up to: 4.4
7
+ Stable tag: 1.1.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
35
  their respective score. Once YASR is installed you just have to go to "Settings" -> "Yet Another Stars Rating: Settings" and start the import (last box at the bottom).
36
  This operation can take some time, don't stop it! Once it's done you just need to replace the gd-star-rating's shortcode with the YASR tags.
37
  If with gd-star-rating you're using a different number of stars from the default of 5, YASR will automatically convert all the scores in a range from 1 to 5.
38
+ (Gd Star Rating version must be 1.9.22 or lower)
39
 
40
  = Supported Languages =
41
 
57
  * [SOURCEWP](http://www.sourcewp.com/best-post-voting-plugins-wordpress/)
58
  * [HOWSHOST](https://howshost.com/add-post-rating-system-in-wordpress/)
59
 
60
+ Do you want more feature? [Check out Yasr Extensions!](https://yetanotherstarsrating.com/#yasr-pro-anchor)
 
 
 
 
 
 
 
 
 
 
 
61
 
62
  == Installation ==
63
  1. Install Yet Another Stars Rating either via the WordPress.org plugin directory, or by uploading the files to your server
110
 
111
  == Changelog ==
112
 
113
+ = 1.1.2 =
114
+ * FIXED: Yasr Stylish compatibility
115
+ * TWEAKED: Minor changes.
116
+
117
  = 1.1.1 =
118
  * FIXED: Yasr Stylish compatibility
119
  * TWEAKED: changed extensions images
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: Yet Another Stars Rating turn your WordPress into a complete review website.
6
- * Version: 1.1.1
7
  * Author: Dario Curvino
8
  * Author URI: https://yetanotherstarsrating.com/
9
  * Text Domain: yet-another-stars-rating
@@ -32,7 +32,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>
32
  if ( ! defined( 'ABSPATH' ) ) exit('You\'re not allowed to see this page'); // Exit if accessed directly
33
 
34
 
35
- define('YASR_VERSION_NUM', '1.1.1');
36
 
37
  //Plugin relative path
38
  define( "YASR_ABSOLUTE_PATH", dirname(__FILE__) );
@@ -105,11 +105,6 @@ define ("YASR_METABOX_OVERALL_RATING", $stored_options['metabox_overall_rating']
105
  // this is the URL our updater / license checker pings. This should be the URL of the site with EDD installed
106
  define( 'YASR_EDD_SL_STORE_URL', 'https://yetanotherstarsrating.com' );
107
 
108
-
109
- //this is for yasr stylish extension
110
- define("YASR_ST_STARS_DIR", NULL);
111
- define("YASR_ST_CUSTOM_STARS_DIR", NULL);
112
-
113
  //Get stored style options
114
  $style_options = get_option ('yasr_style_options');
115
 
@@ -139,13 +134,35 @@ if ($style_options) {
139
 
140
  }
141
 
142
- //Needed for yasr stylish extension
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
143
  if(isset($style_options['stars_set'])) {
144
 
145
  define("YASR_ST_STARS_DIR", $style_options['stars_set']);
146
 
147
  }
148
 
 
 
 
 
 
 
149
 
150
  //Needed for yasr stylish extension
151
  if(isset($style_options['custom_stars_set'])) {
@@ -154,14 +171,11 @@ if ($style_options) {
154
 
155
  }
156
 
 
157
 
158
- }
159
-
160
- else {
161
-
162
- define ("YASR_CUSTOM_CSS_RULES", NULL);
163
- define ("YASR_SCHEME_COLOR", NULL);
164
 
 
165
 
166
  }
167
 
3
  * Plugin Name: Yet Another Stars Rating
4
  * Plugin URI: http://wordpress.org/plugins/yet-another-stars-rating/
5
  * Description: Yet Another Stars Rating turn your WordPress into a complete review website.
6
+ * Version: 1.1.2
7
  * Author: Dario Curvino
8
  * Author URI: https://yetanotherstarsrating.com/
9
  * Text Domain: yet-another-stars-rating
32
  if ( ! defined( 'ABSPATH' ) ) exit('You\'re not allowed to see this page'); // Exit if accessed directly
33
 
34
 
35
+ define('YASR_VERSION_NUM', '1.1.2');
36
 
37
  //Plugin relative path
38
  define( "YASR_ABSOLUTE_PATH", dirname(__FILE__) );
105
  // this is the URL our updater / license checker pings. This should be the URL of the site with EDD installed
106
  define( 'YASR_EDD_SL_STORE_URL', 'https://yetanotherstarsrating.com' );
107
 
 
 
 
 
 
108
  //Get stored style options
109
  $style_options = get_option ('yasr_style_options');
110
 
134
 
135
  }
136
 
137
+
138
+ }
139
+
140
+ else {
141
+
142
+ define ("YASR_CUSTOM_CSS_RULES", NULL);
143
+ define ("YASR_SCHEME_COLOR", NULL);
144
+
145
+
146
+ }
147
+
148
+
149
+
150
+ //Needed for yasr stylish extension
151
+
152
+ if (function_exists('yasr_stylish')) {
153
+
154
  if(isset($style_options['stars_set'])) {
155
 
156
  define("YASR_ST_STARS_DIR", $style_options['stars_set']);
157
 
158
  }
159
 
160
+ else {
161
+
162
+ define("YASR_ST_STARS_DIR", NULL);
163
+
164
+ }
165
+
166
 
167
  //Needed for yasr stylish extension
168
  if(isset($style_options['custom_stars_set'])) {
171
 
172
  }
173
 
174
+ else {
175
 
176
+ define("YASR_ST_CUSTOM_STARS_DIR", NULL);
 
 
 
 
 
177
 
178
+ }
179
 
180
  }
181