Version Description
Download this release
Release Info
Developer | bhittani |
Plugin | kk Star Ratings |
Version | 3.0.3 |
Comparing to | |
See all releases |
Code changes from version 3.0.2 to 3.0.3
- index.php +2 -2
- languages/kk-star-ratings.pot +1 -1
- public/css/kk-star-ratings.css +7 -7
- readme.txt +1 -1
- src/markup.php +3 -1
- src/shortcode.php +9 -0
index.php
CHANGED
@@ -8,7 +8,7 @@
|
|
8 |
* Author URI: http://bhittani.com
|
9 |
* Text Domain: kk-star-ratings
|
10 |
* Domain Path: /languages
|
11 |
-
* Version: 3.0.
|
12 |
* License: GPLv2 or later
|
13 |
*
|
14 |
* @package Bhittani\StarRating
|
@@ -21,7 +21,7 @@ if (! defined('ABSPATH')) {
|
|
21 |
|
22 |
define('KKSR_FILE', __FILE__);
|
23 |
define('KKSR_PLUGIN', plugin_basename(KKSR_FILE));
|
24 |
-
define('KKSR_VERSION', '3.0.
|
25 |
define('KKSR_PREFIX', 'kksr_');
|
26 |
define('KKSR_SLUG', 'kk-star-ratings');
|
27 |
define('KKSR_LABEL', 'kk Star Ratings');
|
8 |
* Author URI: http://bhittani.com
|
9 |
* Text Domain: kk-star-ratings
|
10 |
* Domain Path: /languages
|
11 |
+
* Version: 3.0.3
|
12 |
* License: GPLv2 or later
|
13 |
*
|
14 |
* @package Bhittani\StarRating
|
21 |
|
22 |
define('KKSR_FILE', __FILE__);
|
23 |
define('KKSR_PLUGIN', plugin_basename(KKSR_FILE));
|
24 |
+
define('KKSR_VERSION', '3.0.3');
|
25 |
define('KKSR_PREFIX', 'kksr_');
|
26 |
define('KKSR_SLUG', 'kk-star-ratings');
|
27 |
define('KKSR_LABEL', 'kk Star Ratings');
|
languages/kk-star-ratings.pot
CHANGED
@@ -4,7 +4,7 @@ msgid ""
|
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: \n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/kk-star-ratings\n"
|
7 |
-
"POT-Creation-Date: 2019-07-18
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: \n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/kk-star-ratings\n"
|
7 |
+
"POT-Creation-Date: 2019-07-18 09:33:39+00:00\n"
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
public/css/kk-star-ratings.css
CHANGED
@@ -131,19 +131,19 @@
|
|
131 |
/* RTL */
|
132 |
|
133 |
.kk-star-ratings.kksr-rtl {
|
134 |
-
direction:
|
135 |
}
|
136 |
|
137 |
-
.kk-star-ratings.kksr-rtl.kksr-right {
|
138 |
-webkit-box-pack: flex-start;
|
139 |
-webkit-justify-content: flex-start;
|
140 |
-ms-flex-pack: flex-start;
|
141 |
justify-content: flex-start;
|
142 |
-
}
|
143 |
|
144 |
/* RTL - stars */
|
145 |
|
146 |
-
.kk-star-ratings.kksr-rtl .kksr-stars .kksr-star {
|
147 |
padding-left: 4px;
|
148 |
padding-right: 0;
|
149 |
}
|
@@ -161,15 +161,15 @@
|
|
161 |
.kk-star-ratings.kksr-rtl .kksr-stars .kksr-inactive-stars .kksr-star:last-child,
|
162 |
.kk-star-ratings.kksr-rtl .kksr-stars .kksr-active-stars .kksr-star:last-child {
|
163 |
padding-left: 0;
|
164 |
-
}
|
165 |
|
166 |
/* RTL - legend */
|
167 |
|
168 |
-
.kk-star-ratings.kksr-rtl .kksr-legend {
|
169 |
margin-left: 8px;
|
170 |
margin-right: 0;
|
171 |
}
|
172 |
.kk-star-ratings.kksr-rtl .kksr-legend .kksr-legend-meta {
|
173 |
margin-left: 0;
|
174 |
margin-right: 8px;
|
175 |
-
}
|
131 |
/* RTL */
|
132 |
|
133 |
.kk-star-ratings.kksr-rtl {
|
134 |
+
direction: ltr;
|
135 |
}
|
136 |
|
137 |
+
/* .kk-star-ratings.kksr-rtl.kksr-right {
|
138 |
-webkit-box-pack: flex-start;
|
139 |
-webkit-justify-content: flex-start;
|
140 |
-ms-flex-pack: flex-start;
|
141 |
justify-content: flex-start;
|
142 |
+
} */
|
143 |
|
144 |
/* RTL - stars */
|
145 |
|
146 |
+
/* .kk-star-ratings.kksr-rtl .kksr-stars .kksr-star {
|
147 |
padding-left: 4px;
|
148 |
padding-right: 0;
|
149 |
}
|
161 |
.kk-star-ratings.kksr-rtl .kksr-stars .kksr-inactive-stars .kksr-star:last-child,
|
162 |
.kk-star-ratings.kksr-rtl .kksr-stars .kksr-active-stars .kksr-star:last-child {
|
163 |
padding-left: 0;
|
164 |
+
} */
|
165 |
|
166 |
/* RTL - legend */
|
167 |
|
168 |
+
/* .kk-star-ratings.kksr-rtl .kksr-legend {
|
169 |
margin-left: 8px;
|
170 |
margin-right: 0;
|
171 |
}
|
172 |
.kk-star-ratings.kksr-rtl .kksr-legend .kksr-legend-meta {
|
173 |
margin-left: 0;
|
174 |
margin-right: 8px;
|
175 |
+
} */
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Tags: star ratings, votings, rate posts, ajax ratings, infinite stars, unlimited
|
|
5 |
Requires at least: 4.5
|
6 |
Requires PHP: 5.5.9
|
7 |
Tested up to: 5.2.2
|
8 |
-
Stable tag: 3.0.
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
5 |
Requires at least: 4.5
|
6 |
Requires PHP: 5.5.9
|
7 |
Tested up to: 5.2.2
|
8 |
+
Stable tag: 3.0.3
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
src/markup.php
CHANGED
@@ -51,5 +51,7 @@ add_filter('kksr_score', KKSR_NAMESPACE.'scoreFilter'); function scoreFilter($sc
|
|
51 |
|
52 |
add_filter('kksr_count', KKSR_NAMESPACE.'countFilter', 10); function countFilter($count)
|
53 |
{
|
54 |
-
return str_pad($count, 2, 0, is_rtl() ? STR_PAD_RIGHT : STR_PAD_LEFT);
|
|
|
|
|
55 |
}
|
51 |
|
52 |
add_filter('kksr_count', KKSR_NAMESPACE.'countFilter', 10); function countFilter($count)
|
53 |
{
|
54 |
+
// return str_pad($count, 2, 0, is_rtl() ? STR_PAD_RIGHT : STR_PAD_LEFT);
|
55 |
+
|
56 |
+
return str_pad($count, 2, 0, STR_PAD_LEFT);
|
57 |
}
|
src/shortcode.php
CHANGED
@@ -17,3 +17,12 @@ add_shortcode(KKSR_SHORTCODE, KKSR_NAMESPACE.'shortcode'); function shortcode($a
|
|
17 |
|
18 |
return markup(null, true, $id);
|
19 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
17 |
|
18 |
return markup(null, true, $id);
|
19 |
}
|
20 |
+
|
21 |
+
// Legacy
|
22 |
+
|
23 |
+
add_shortcode('kkratings', KKSR_NAMESPACE.'shortcodeLegacy'); function shortcodeLegacy($atts)
|
24 |
+
{
|
25 |
+
extract(shortcode_atts(['id' => null], $atts, 'kkratings'));
|
26 |
+
|
27 |
+
return markup(null, true, $id);
|
28 |
+
}
|