Version Description
- Css fixes
Download this release
Release Info
Developer | Dudo |
Plugin | Yasr – Yet Another Stars Rating |
Version | 1.7.4 |
Comparing to | |
See all releases |
Code changes from version 1.7.3 to 1.7.4
- css/yasr.css +10 -4
- lib/yasr-ajax-functions.php +1 -3
- lib/yasr-functions.php +2 -5
- readme.txt +8 -2
- yet-another-stars-rating.php +16 -5
css/yasr.css
CHANGED
@@ -331,6 +331,10 @@ div.bigstars .rateit-selected
|
|
331 |
/*** Progress bar, this class are used in
|
332 |
yasr_pro_comment_reviews_stats shortcode too***/
|
333 |
|
|
|
|
|
|
|
|
|
334 |
.yasr-progress-bars-container {
|
335 |
width: 100% !important;
|
336 |
}
|
@@ -345,14 +349,14 @@ yasr_pro_comment_reviews_stats shortcode too***/
|
|
345 |
.yasr-progress-bar-name {
|
346 |
display: inline-block !important;
|
347 |
float: left;
|
348 |
-
width:
|
349 |
font-size: 14px !important;
|
350 |
line-height: 1.5 !important;
|
351 |
text-align: center !important;
|
352 |
}
|
353 |
|
354 |
.yasr-single-progress-bar-container {
|
355 |
-
width: 70
|
356 |
float: left;
|
357 |
}
|
358 |
|
@@ -363,7 +367,7 @@ yasr_pro_comment_reviews_stats shortcode too***/
|
|
363 |
|
364 |
.yasr-progress-bar-votes-count {
|
365 |
display: inline-block !important;
|
366 |
-
width:
|
367 |
float: right;
|
368 |
text-align: right;
|
369 |
font-size: 14px !important;
|
@@ -375,8 +379,10 @@ yasr_pro_comment_reviews_stats shortcode too***/
|
|
375 |
|
376 |
/*** Tooltip ***/
|
377 |
|
|
|
|
|
378 |
.yasr-visitors-stats-tooltip {
|
379 |
-
min-width:
|
380 |
text-align: center;
|
381 |
background-color: white;
|
382 |
color: #0a0a0a;
|
331 |
/*** Progress bar, this class are used in
|
332 |
yasr_pro_comment_reviews_stats shortcode too***/
|
333 |
|
334 |
+
#yasr-medium-rating-tooltip {
|
335 |
+
font-size: 14px;
|
336 |
+
}
|
337 |
+
|
338 |
.yasr-progress-bars-container {
|
339 |
width: 100% !important;
|
340 |
}
|
349 |
.yasr-progress-bar-name {
|
350 |
display: inline-block !important;
|
351 |
float: left;
|
352 |
+
width: 20% !important;
|
353 |
font-size: 14px !important;
|
354 |
line-height: 1.5 !important;
|
355 |
text-align: center !important;
|
356 |
}
|
357 |
|
358 |
.yasr-single-progress-bar-container {
|
359 |
+
width: 70% !important;;
|
360 |
float: left;
|
361 |
}
|
362 |
|
367 |
|
368 |
.yasr-progress-bar-votes-count {
|
369 |
display: inline-block !important;
|
370 |
+
width: 10%;
|
371 |
float: right;
|
372 |
text-align: right;
|
373 |
font-size: 14px !important;
|
379 |
|
380 |
/*** Tooltip ***/
|
381 |
|
382 |
+
|
383 |
+
|
384 |
.yasr-visitors-stats-tooltip {
|
385 |
+
min-width:245px;
|
386 |
text-align: center;
|
387 |
background-color: white;
|
388 |
color: #0a0a0a;
|
lib/yasr-ajax-functions.php
CHANGED
@@ -1432,9 +1432,7 @@ if ( ! defined( 'ABSPATH' ) ) exit('You\'re not allowed to see this page'); // E
|
|
1432 |
|
1433 |
$html_to_return = '<div class="yasr-visitors-stats-tooltip">';
|
1434 |
|
1435 |
-
$html_to_return .= $medium_rating . ' ';
|
1436 |
-
|
1437 |
-
$html_to_return .= __('out of 5 stars', 'yet-another-stars-rating');
|
1438 |
|
1439 |
$html_to_return .= '<div class="yasr-progress-bars-container">';
|
1440 |
|
1432 |
|
1433 |
$html_to_return = '<div class="yasr-visitors-stats-tooltip">';
|
1434 |
|
1435 |
+
$html_to_return .= '<span id="yasr-medium-rating-tooltip">' . $medium_rating . ' ' . __('out of 5 stars', 'yet-another-stars-rating') . '</span>';
|
|
|
|
|
1436 |
|
1437 |
$html_to_return .= '<div class="yasr-progress-bars-container">';
|
1438 |
|
lib/yasr-functions.php
CHANGED
@@ -50,11 +50,8 @@ if ( ! defined( 'ABSPATH' ) ) exit('You\'re not allowed to see this page'); // E
|
|
50 |
|
51 |
wp_enqueue_script( 'rateit', YASR_JS_DIR . 'jquery.rateit.min.js' , array('jquery'), '1.0.22', TRUE );
|
52 |
|
53 |
-
|
54 |
-
|
55 |
-
if (YASR_JQUERY_DISABLED === 'yes') {
|
56 |
-
wp_enqueue_script( 'rater', YASR_JS_DIR . 'rater-js.js' , '', '0.6.0', TRUE );
|
57 |
-
}
|
58 |
|
59 |
wp_enqueue_script( 'yasrfront', YASR_JS_DIR . 'yasr-front.js' , array('jquery', 'rateit'), '1.0.0', TRUE );
|
60 |
|
50 |
|
51 |
wp_enqueue_script( 'rateit', YASR_JS_DIR . 'jquery.rateit.min.js' , array('jquery'), '1.0.22', TRUE );
|
52 |
|
53 |
+
//From version 1.7.4, always load rater
|
54 |
+
wp_enqueue_script( 'rater', YASR_JS_DIR . 'rater-js.js' , '', '0.6.0', TRUE );
|
|
|
|
|
|
|
55 |
|
56 |
wp_enqueue_script( 'yasrfront', YASR_JS_DIR . 'yasr-front.js' , array('jquery', 'rateit'), '1.0.0', TRUE );
|
57 |
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Requires at least: 4.3.0
|
|
5 |
Contributors: Dudo
|
6 |
Tested up to: 5.0
|
7 |
Requires PHP: 5.3
|
8 |
-
Stable tag: 1.7.
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
11 |
Boost the way people interact with your website, e-commerce or blog with an easy and intuitive WordPress rating system!
|
@@ -13,7 +13,7 @@ Boost the way people interact with your website, e-commerce or blog with an easy
|
|
13 |
== Description ==
|
14 |
Improving the user experience (UX) with your website is a top priority for everyone who cares about their online activity, as it promotes familiarity and loyalty with your brand, and enhances visibility of your activity.
|
15 |
|
16 |
-
Yasr - Yet Another Stars Rating is a powerful way to add SEO-friendly user-generated reviews and testimonials to your website posts, pages and
|
17 |
|
18 |
= How To use =
|
19 |
|
@@ -116,12 +116,18 @@ If doesn't, it's suggested to ask in a SEO oriented forum.
|
|
116 |
|
117 |
The full changelog can be found in the plugin's directory. Recent entries:
|
118 |
|
|
|
|
|
|
|
|
|
119 |
= 1.7.3 =
|
120 |
* FIXED: Multi set's field name is now 40 chars long instead of 23
|
121 |
* TWEAKED: progress bars doesn't use jquery anymore, it's css only
|
122 |
* TWEAKED: tooltip for yasr_visitor_votes doesn't use jquery anymore, but uses [tippy](https://atomiks.github.io/tippyjs/) instead
|
123 |
* TWEAKED: A lot of under the hood changes
|
124 |
|
|
|
|
|
125 |
= 1.7.2 =
|
126 |
* FIXED: yasr_visitor_multiset didn't work
|
127 |
|
5 |
Contributors: Dudo
|
6 |
Tested up to: 5.0
|
7 |
Requires PHP: 5.3
|
8 |
+
Stable tag: 1.7.4
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
11 |
Boost the way people interact with your website, e-commerce or blog with an easy and intuitive WordPress rating system!
|
13 |
== Description ==
|
14 |
Improving the user experience (UX) with your website is a top priority for everyone who cares about their online activity, as it promotes familiarity and loyalty with your brand, and enhances visibility of your activity.
|
15 |
|
16 |
+
Yasr - Yet Another Stars Rating is a powerful way to add SEO-friendly user-generated reviews and testimonials to your website posts, pages and CPT, without affecting its speed.
|
17 |
|
18 |
= How To use =
|
19 |
|
116 |
|
117 |
The full changelog can be found in the plugin's directory. Recent entries:
|
118 |
|
119 |
+
= 1.7.4 =
|
120 |
+
* Css fixes
|
121 |
+
|
122 |
+
|
123 |
= 1.7.3 =
|
124 |
* FIXED: Multi set's field name is now 40 chars long instead of 23
|
125 |
* TWEAKED: progress bars doesn't use jquery anymore, it's css only
|
126 |
* TWEAKED: tooltip for yasr_visitor_votes doesn't use jquery anymore, but uses [tippy](https://atomiks.github.io/tippyjs/) instead
|
127 |
* TWEAKED: A lot of under the hood changes
|
128 |
|
129 |
+
|
130 |
+
|
131 |
= 1.7.2 =
|
132 |
* FIXED: yasr_visitor_multiset didn't work
|
133 |
|
yet-another-stars-rating.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Plugin Name: Yet Another Stars Rating
|
5 |
* Plugin URI: http://wordpress.org/plugins/yet-another-stars-rating/
|
6 |
* Description: Yet Another Stars Rating turn your WordPress into a complete review website.
|
7 |
-
* Version: 1.7.
|
8 |
* Author: Dario Curvino
|
9 |
* Author URI: https://yetanotherstarsrating.com/
|
10 |
* Text Domain: yet-another-stars-rating
|
@@ -77,7 +77,7 @@ if ( !function_exists( 'yasr_fs' ) ) {
|
|
77 |
yasr_fs();
|
78 |
// Signal that SDK was initiated.
|
79 |
do_action( 'yasr_fs_loaded' );
|
80 |
-
define( 'YASR_VERSION_NUM', '1.7.
|
81 |
//Plugin relative path
|
82 |
define( "YASR_ABSOLUTE_PATH", dirname( __FILE__ ) );
|
83 |
//Plugin RELATIVE PATH without slashes (just the directory's name)
|
@@ -296,13 +296,24 @@ if ( !function_exists( 'yasr_fs' ) ) {
|
|
296 |
function yasr_plugin_row_meta( $links, $file )
|
297 |
{
|
298 |
$plugin = plugin_basename( __FILE__ );
|
299 |
-
//
|
300 |
-
|
301 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
302 |
}
|
|
|
303 |
return $links;
|
304 |
}
|
305 |
|
|
|
306 |
//this is for user who use extensions
|
307 |
//remove on Gen 2019
|
308 |
define( 'YASR_EDD_SL_STORE_URL', 'http://yetanotherstarsrating.com' );
|
4 |
* Plugin Name: Yet Another Stars Rating
|
5 |
* Plugin URI: http://wordpress.org/plugins/yet-another-stars-rating/
|
6 |
* Description: Yet Another Stars Rating turn your WordPress into a complete review website.
|
7 |
+
* Version: 1.7.4
|
8 |
* Author: Dario Curvino
|
9 |
* Author URI: https://yetanotherstarsrating.com/
|
10 |
* Text Domain: yet-another-stars-rating
|
77 |
yasr_fs();
|
78 |
// Signal that SDK was initiated.
|
79 |
do_action( 'yasr_fs_loaded' );
|
80 |
+
define( 'YASR_VERSION_NUM', '1.7.4' );
|
81 |
//Plugin relative path
|
82 |
define( "YASR_ABSOLUTE_PATH", dirname( __FILE__ ) );
|
83 |
//Plugin RELATIVE PATH without slashes (just the directory's name)
|
296 |
function yasr_plugin_row_meta( $links, $file )
|
297 |
{
|
298 |
$plugin = plugin_basename( __FILE__ );
|
299 |
+
//Show buy yasr pro only if this is free plan
|
300 |
+
|
301 |
+
if ( yasr_fs()->is_free_plan() ) {
|
302 |
+
// create link
|
303 |
+
if ( $file == $plugin ) {
|
304 |
+
$links[] = '<a href="https://yetanotherstarsrating.com/">' . __( 'Buy Yasr Pro', 'yet-another-stars-rating' ) . '</a>';
|
305 |
+
}
|
306 |
+
} else {
|
307 |
+
// create link
|
308 |
+
if ( $file == $plugin ) {
|
309 |
+
$links[] = __( 'Thank you for using Yasr Pro', 'yet-another-stars-rating' );
|
310 |
+
}
|
311 |
}
|
312 |
+
|
313 |
return $links;
|
314 |
}
|
315 |
|
316 |
+
//End function
|
317 |
//this is for user who use extensions
|
318 |
//remove on Gen 2019
|
319 |
define( 'YASR_EDD_SL_STORE_URL', 'http://yetanotherstarsrating.com' );
|