WP Review - Version 5.2.3

Version Description

Download this release

Release Info

Developer MyThemeShop
Plugin Icon 128x128 WP Review
Version 5.2.3
Comparing to
See all releases

Code changes from version 5.2.2 to 5.2.3

Files changed (104) hide show
  1. LICENSE +0 -0
  2. admin/activation.php +0 -0
  3. admin/admin.php +0 -38
  4. admin/assets/css/admin.css +0 -0
  5. admin/assets/css/jquery-ui.min.css +0 -0
  6. admin/assets/css/select2.min.css +0 -0
  7. admin/assets/images/loading.svg +0 -0
  8. admin/assets/js/admin.import.js +0 -0
  9. admin/assets/js/admin.js +1 -48
  10. admin/assets/js/editor-plugin.js +0 -0
  11. admin/assets/js/rating-inputs.js +0 -0
  12. admin/assets/js/review-items.js +0 -0
  13. admin/assets/js/review-notice.js +0 -0
  14. admin/assets/js/select2.min.js +0 -0
  15. admin/assets/js/wp-review-tab-widget-admin.js +0 -0
  16. admin/assets/sass/admin.scss +0 -842
  17. admin/assets/sourcemaps/admin.css.map +0 -1
  18. admin/class-wp-review-form-field.php +0 -0
  19. admin/class-wp-review-importer.php +0 -0
  20. admin/class-wp-review-options.php +0 -0
  21. admin/class-wpr-review-notice.php +5 -5
  22. admin/demo-importer.php +0 -0
  23. admin/demo-importer/class-wp-import.php +0 -0
  24. admin/demo-importer/class-wp-review-demo-importer.php +0 -0
  25. admin/demo-importer/parsers.php +0 -0
  26. admin/font-awesome-icons.php +0 -0
  27. admin/metaboxes.php +2 -2
  28. admin/options/help.php +0 -0
  29. admin/options/import.php +0 -0
  30. admin/options/multisite.php +0 -0
  31. box-templates/aqua.php +0 -0
  32. box-templates/default.php +0 -0
  33. box-templates/global/partials/review-links.php +0 -0
  34. box-templates/global/partials/review-schema.php +0 -0
  35. comments/comments.php +0 -0
  36. filter-list.php +543 -0
  37. includes/ajax.php +0 -0
  38. includes/comments.php +0 -0
  39. includes/demo/demo-content.xml +0 -0
  40. includes/enqueue.php +1 -3
  41. includes/functions.php +0 -1
  42. includes/schemas.php +0 -0
  43. includes/shortcodes.php +0 -0
  44. includes/widget.php +0 -0
  45. languages/wp-review.pot +974 -1098
  46. public/css/amp.css +0 -0
  47. public/css/font-awesome.min.css +0 -0
  48. public/css/magnific-popup.css +0 -0
  49. public/css/wp-review.css +0 -0
  50. public/fonts/FontAwesome.otf +0 -0
  51. public/fonts/font-icons.eot +0 -0
  52. public/fonts/font-icons.svg +0 -0
  53. public/fonts/font-icons.ttf +0 -0
  54. public/fonts/font-icons.woff +0 -0
  55. public/fonts/fontawesome-webfont.eot +0 -0
  56. public/fonts/fontawesome-webfont.svg +0 -0
  57. public/fonts/fontawesome-webfont.ttf +0 -0
  58. public/fonts/fontawesome-webfont.woff +0 -0
  59. public/fonts/fontawesome-webfont.woff2 +0 -0
  60. public/images/amazon.jpg +0 -0
  61. public/images/aqua.jpg +0 -0
  62. public/images/blue.jpg +0 -0
  63. public/images/darkside.jpg +0 -0
  64. public/images/dash.jpg +0 -0
  65. public/images/default.jpg +0 -0
  66. public/images/edge.jpg +0 -0
  67. public/images/enterprise.jpg +0 -0
  68. public/images/facebook.jpg +0 -0
  69. public/images/fizzy.jpg +0 -0
  70. public/images/gamer.jpg +0 -0
  71. public/images/gravity.jpg +0 -0
  72. public/images/largethumb.png +0 -0
  73. public/images/shell.jpg +0 -0
  74. public/images/smallthumb.png +0 -0
  75. public/images/tabbed.jpg +0 -0
  76. public/images/tabbed2.jpg +0 -0
  77. public/images/xiaomi.jpg +0 -0
  78. public/images/zine.jpg +0 -0
  79. public/js/jquery.magnific-popup.min.js +0 -0
  80. public/js/js.cookie.min.js +0 -0
  81. public/js/main.js +2 -32
  82. public/js/wp-review-tab-widget.js +0 -0
  83. public/sass/_tab-widget.scss +0 -182
  84. public/sass/_util.scss +0 -9
  85. public/sass/amp.scss +0 -215
  86. public/sass/wp-review.scss +0 -1264
  87. public/sourcemaps/popup.css.map +0 -1
  88. public/sourcemaps/wp-review.css.map +0 -1
  89. rating-types/circle-input.php +0 -0
  90. rating-types/circle-output.php +0 -0
  91. rating-types/percentage-input.js +0 -0
  92. rating-types/percentage-input.php +0 -0
  93. rating-types/percentage-output.php +0 -0
  94. rating-types/point-input.js +0 -0
  95. rating-types/point-input.php +0 -0
  96. rating-types/point-output.php +0 -0
  97. rating-types/star-input.js +0 -0
  98. rating-types/star-input.php +0 -0
  99. rating-types/star-output.php +0 -0
  100. rating-types/thumbs-input.php +0 -0
  101. rating-types/thumbs-output.php +0 -0
  102. readme.txt +5 -1
  103. template-list.php +0 -0
  104. wp-review.php +2 -2
LICENSE CHANGED
File without changes
admin/activation.php CHANGED
File without changes
admin/admin.php CHANGED
@@ -107,44 +107,6 @@ function wp_review_admin_style( $hook_suffix ) {
107
'imgbutton_title' => __( 'Insert Image', 'wp-review' ),
108
'imgremove_title' => __( 'Remove Image', 'wp-review' ),
109
'title' => __( 'Title', 'wp-review' ),
110
- 'searchTerm' => __( 'Search term', 'wp-review' ),
111
- 'searchLocation' => __( 'Search location', 'wp-review' ),
112
- 'limit' => __( 'Limit', 'wp-review' ),
113
- 'searchRadius' => __( 'Radius', 'wp-review' ),
114
- 'searchCategories' => __( 'Categories', 'wp-review' ),
115
- 'searchLocale' => __( 'Locale', 'wp-review' ),
116
- 'searchOffset' => __( 'Offset', 'wp-review' ),
117
- 'sort_by' => __( 'SortBy', 'wp-review' ),
118
- 'searchPrice' => __( 'Price range', 'wp-review' ),
119
- 'open_now' => __( 'Open now', 'wp-review' ),
120
- 'attributes' => __( 'Attributes', 'wp-review' ),
121
- 'businessId' => __( 'Business ID', 'wp-review' ),
122
- 'locationLookup' => __( 'Location lookup', 'wp-review' ),
123
- 'placeId' => __( 'Place ID', 'wp-review' ),
124
- 'placeType' => __( 'Place type', 'wp-review' ),
125
- 'all' => __( 'All', 'wp-review' ),
126
- 'establishments' => __( 'Establishments', 'wp-review' ),
127
- 'addresses' => __( 'Addresses', 'wp-review' ),
128
- 'geocodes' => __( 'Geocodes', 'wp-review' ),
129
- 'pageId' => __( 'Page ID', 'wp-review' ),
130
- 'generateToken' => __( 'Generate token', 'wp-review' ),
131
- 'reviewIds' => __( 'Review IDs (separate by commas)', 'wp-review' ),
132
- 'reviewPosts' => __( 'Review posts', 'wp-review' ),
133
- 'queryType' => __( 'Query type', 'wp-review' ),
134
- 'recentReviews' => __( 'Recent reviews', 'wp-review' ),
135
- 'topRated' => __( 'Top rated', 'wp-review' ),
136
- 'mostVoted' => __( 'Most voted', 'wp-review' ),
137
- 'categoryReviews' => __( 'Category reviews', 'wp-review' ),
138
- 'reviewTypesText' => __( 'Review types', 'wp-review' ),
139
- 'separateByCommas' => __( 'separate by commas', 'wp-review' ),
140
- 'categoryIds' => __( 'Category IDs', 'wp-review' ),
141
- 'allowPagination' => __( 'Allow pagination', 'wp-review' ),
142
- 'numberOfReviews' => __( 'Number of reviews', 'wp-review' ),
143
- 'titleLength' => __( 'Title length (words)', 'wp-review' ),
144
- 'thumbSize' => __( 'Thumb size', 'wp-review' ),
145
- 'small' => __( 'Small', 'wp-review' ),
146
- 'large' => __( 'Large', 'wp-review' ),
147
- 'showDate' => __( 'Show date', 'wp-review' ),
148
'reviewBox' => __( 'Review box', 'wp-review' ),
149
'reviewTotal' => __( 'Review total', 'wp-review' ),
150
'visitorRating' => __( 'Visitor rating', 'wp-review' ),
107
'imgbutton_title' => __( 'Insert Image', 'wp-review' ),
108
'imgremove_title' => __( 'Remove Image', 'wp-review' ),
109
'title' => __( 'Title', 'wp-review' ),
110
'reviewBox' => __( 'Review box', 'wp-review' ),
111
'reviewTotal' => __( 'Review total', 'wp-review' ),
112
'visitorRating' => __( 'Visitor rating', 'wp-review' ),
admin/assets/css/admin.css CHANGED
File without changes
admin/assets/css/jquery-ui.min.css CHANGED
File without changes
admin/assets/css/select2.min.css CHANGED
File without changes
admin/assets/images/loading.svg CHANGED
File without changes
admin/assets/js/admin.import.js CHANGED
File without changes
admin/assets/js/admin.js CHANGED
@@ -112,13 +112,6 @@
112
113
wpreview.pluginOptions = function() {
114
115
- // Custom comment color.
116
- $( '#wp_review_custom_comment_colors' ).on( 'switch-on', function() {
117
- $('#wp_review_comment_color_wrapper').show();
118
- });
119
- $( '#wp_review_custom_comment_colors' ).on( 'switch-off', function() {
120
- $('#wp_review_comment_color_wrapper').hide();
121
- });
122
};
123
124
wpreview.pluginMetaBoxes = function() {
@@ -139,14 +132,6 @@
139
$('.wp-review-color-options').hide();
140
});
141
142
- // Custom width.
143
- $( '#wp_review_custom_width' ).on( 'switch-on', function() {
144
- $('.wp-review-width-options').show();
145
- });
146
- $( '#wp_review_custom_width' ).on( 'switch-off', function() {
147
- $('.wp-review-width-options').hide();
148
- });
149
-
150
// Custom author.
151
$( '#wp_review_custom_author' ).on( 'switch-on', function() {
152
$('.wp-review-author-options').show();
@@ -155,14 +140,6 @@
155
$('.wp-review-author-options').hide();
156
});
157
158
- // Hide description.
159
- $( '#wp_review_hide_desc' ).on( 'switch-on', function() {
160
- $( '#wp_review_desc_settings' ).fadeOut();
161
- });
162
- $( '#wp_review_hide_desc' ).on( 'switch-off', function() {
163
- $( '#wp_review_desc_settings' ).fadeIn();
164
- });
165
-
166
// Disable features.
167
$( '#wp_review_disable_features' ).on( 'switch-on', function() {
168
$( '#wpr-review-items-app' ).fadeOut();
@@ -186,20 +163,6 @@
186
$postbox.find( '.show-if-visitor, .show-if-both' ).show();
187
}
188
});
189
- $( '#wp-review-userReview-comment' ).on( 'change', function() {
190
- var $postbox = $( this ).closest( '.postbox' );
191
- if ( $(this)[0].checked ) {
192
- $postbox.find( '.show-if-visitor, .show-if-disabled' ).hide();
193
- $postbox.find( '.show-if-comment, .show-if-both' ).show();
194
- }
195
- });
196
- $( '#wp-review-userReview-both' ).on( 'change', function() {
197
- var $postbox = $( this ).closest( '.postbox' );
198
- if ( $(this)[0].checked ) {
199
- $postbox.find( '.show-if-disabled' ).hide();
200
- $postbox.find( '.show-if-comment, .show-if-visitor, .show-if-both' ).show();
201
- }
202
- });
203
204
$( document ).on( 'change', '#wp_review_rating_schema', function() {
205
var value = $( this ).val();
@@ -679,16 +642,6 @@ jQuery(document).ready(function($) {
679
}
680
});
681
682
- $('td.wp_review_comment_rating, #wp-review-comment-rating').each(function(){
683
- var $features = $(this).find('.wp-review-rating-feature');
684
- var maxWidth = 0;
685
- $features.each(function(){
686
- var width = $(this).outerWidth();
687
- if ( width > maxWidth ) maxWidth = width;
688
- });
689
- $features.width( maxWidth + 10 );
690
- });
691
-
692
if ($('#wp-review-migrate-log').length) {
693
var $migrate_log = $('#wp-review-migrate-log');
694
var migrate_started = false;
@@ -697,7 +650,7 @@ jQuery(document).ready(function($) {
697
var migrate_finished = false;
698
var updatelog = function( text ) {
699
$migrate_log.css('display', 'block').val(function(index, old) { return text + "\n" + old });
700
- }
701
var ajax_migrate = function( startindex ) {
702
$.ajax({
703
url: ajaxurl,
112
113
wpreview.pluginOptions = function() {
114
115
};
116
117
wpreview.pluginMetaBoxes = function() {
132
$('.wp-review-color-options').hide();
133
});
134
135
// Custom author.
136
$( '#wp_review_custom_author' ).on( 'switch-on', function() {
137
$('.wp-review-author-options').show();
140
$('.wp-review-author-options').hide();
141
});
142
143
// Disable features.
144
$( '#wp_review_disable_features' ).on( 'switch-on', function() {
145
$( '#wpr-review-items-app' ).fadeOut();
163
$postbox.find( '.show-if-visitor, .show-if-both' ).show();
164
}
165
});
166
167
$( document ).on( 'change', '#wp_review_rating_schema', function() {
168
var value = $( this ).val();
642
}
643
});
644
645
if ($('#wp-review-migrate-log').length) {
646
var $migrate_log = $('#wp-review-migrate-log');
647
var migrate_started = false;
650
var migrate_finished = false;
651
var updatelog = function( text ) {
652
$migrate_log.css('display', 'block').val(function(index, old) { return text + "\n" + old });
653
+ };
654
var ajax_migrate = function( startindex ) {
655
$.ajax({
656
url: ajaxurl,
admin/assets/js/editor-plugin.js CHANGED
File without changes
admin/assets/js/rating-inputs.js CHANGED
File without changes
admin/assets/js/review-items.js CHANGED
File without changes
admin/assets/js/review-notice.js CHANGED
File without changes
admin/assets/js/select2.min.js CHANGED
File without changes
admin/assets/js/wp-review-tab-widget-admin.js CHANGED
File without changes
admin/assets/sass/admin.scss DELETED
@@ -1,842 +0,0 @@
1
- @import "../../../public/sass/util";
2
-
3
- .border-box {
4
- box-sizing: border-box;
5
-
6
- * {
7
- box-sizing: border-box;
8
- }
9
- }
10
-
11
- .wpr-flex {
12
- display: flex;
13
- flex-wrap: wrap;
14
- }
15
-
16
- .wpr-flex-wrap {
17
- flex-wrap: wrap;
18
- }
19
-
20
- .wpr-col-1-2 {
21
- flex: 0 0 50%;
22
- }
23
-
24
- .wpr-col-1-3 {
25
- flex: 0 0 33.33%;
26
- margin-bottom: 12px;
27
- padding-bottom: 12px;
28
-
29
- label {
30
- position: relative;
31
- padding-left: 20px;
32
- input[type=checkbox] {
33
- position: absolute;
34
- top: 0;
35
- left: 0;
36
- -webkit-box-shadow: none;
37
- box-shadow: none;
38
- overflow: hidden;
39
- border: 2px solid rgba(33,38,44,0.6);
40
- border-radius: 2px;
41
-
42
- &:checked {
43
- border-color: #069de3;
44
- &:before {
45
- line-height: 16px;
46
- width: 17px;
47
- height: 16px;
48
- margin: -2px 0 0 -5px;
49
- content: '\f147';
50
- text-align: center;
51
- color: #fff;
52
- border-radius: 2px;
53
- background: #069de3;
54
- }
55
- }
56
- }
57
- }
58
- }
59
-
60
- .wp-review {
61
-
62
- * {
63
- box-sizing: border-box;
64
- }
65
-
66
- p.submit { text-align: right; }
67
-
68
- h1 { margin-bottom: 15px; }
69
- }
70
- .wpr-flex-wrap { justify-content: space-between; }
71
- .wpr-flex-wrap .wpr-col-1-2 {
72
- flex: 0 0 49%;
73
- }
74
- .wpr-flex-wrap .wpr-col-1-2:last-child { float: right; }
75
- /*---------------------------
76
- * Fields
77
- *--------------------------*/
78
- .wp-review-field {
79
- &, * {
80
- box-sizing: border-box;
81
- }
82
-
83
- padding: 15px 0;
84
- border-bottom: 1px dashed #ddd;
85
- margin-top: 1em;
86
- margin-bottom: 1em;
87
- border-bottom: 1px dashed #ddd;
88
- }
89
-
90
- .postbox .wp-review-field {
91
- padding: 0;
92
- border-bottom: 0;
93
- }
94
-
95
- @media (min-width: 600px) {
96
- .wp-review-field:not(.vertical):not(.no-flex) {
97
- display: flex;
98
- flex-wrap: wrap;
99
-
100
- .wp-review-field-label {
101
- flex: 0 0 25%;
102
- padding-right: 4%;
103
-
104
- &.full-width {
105
- flex: 0 0 100%;
106
- padding-right: 0;
107
- }
108
- }
109
-
110
- .wp-review-field-option {
111
- flex: 0 0 75%;
112
- }
113
-
114
- &.wp-review-rating-icon, &.wp-review-rating-image {
115
- position: relative;
116
- &.hide {display: none;}
117
- a.wpr-toggle-rating {
118
- position: absolute;
119
- top: 0;
120
- right: 0;
121
- }
122
-
123
- .img-wrapper {
124
- padding: 2px;
125
- width: 55px;
126
- height: 55px;
127
- border: 1px solid #ddd;
128
- position: relative;
129
- img {
130
- max-width: 100%;
131
- }
132
- i {
133
- position: absolute;
134
- top: -6px;
135
- right: -6px;
136
- color: #444;
137
- cursor: pointer;
138
- }
139
- &.hide { display: none; }
140
- }
141
- .set_rating_image.hide {display: none;}
142
- }
143
- }
144
-
145
- .postbox .wp-review-field {
146
- .wp-review-field-label {
147
- flex: 0 0 20%;
148
- }
149
-
150
- .wp-review-field-option {
151
- flex: 0 0 80%;
152
- }
153
- }
154
- }
155
-
156
- .wpr_image_upload_field {
157
- .clear-image {
158
- margin-left: 10px;
159
- }
160
- }
161
-
162
- /*---------------------------
163
- * Review items
164
- *--------------------------*/
165
- .wpr-star-input-wrapper {
166
- position: relative;
167
- color: #c40000;
168
- overflow: hidden;
169
- display: inline-block;
170
-
171
- .star-icon {
172
- // float: left;
173
- }
174
-
175
- .stars-bg {
176
- color: #ccc;
177
- white-space: nowrap;
178
-
179
- // &:after {
180
- // content: " ";
181
- // display: block;
182
- // clear: both;
183
- // height: 0;
184
- // visibility: hidden;
185
- // }
186
- }
187
-
188
- .stars-result {
189
- white-space: nowrap;
190
- position: absolute;
191
- left: 0;
192
- top: 0;
193
- overflow: hidden;
194
- }
195
- }
196
-
197
- .wpr-input-wrapper.ui-slider {
198
- .ui-slider-handle {
199
- background-color: #fff;
200
- box-shadow: 0 0px 3px rgba(0, 0, 0, 0.4);
201
- border-radius: 2px;
202
- cursor: pointer;
203
- }
204
- }
205
-
206
- /*---------------------------
207
- * Options page
208
- *--------------------------*/
209
- .wpr-vertical-tabs {
210
- max-width: 880px;
211
- position: relative;
212
-
213
- &__titles {
214
- width: 200px;
215
- float: left;
216
- border-right: 0;
217
- margin: 0;
218
- z-index: 10;
219
- position: absolute;
220
- left: 0;
221
- top: 0;
222
-
223
- &.active {
224
- background-color: #fff;
225
- }
226
- }
227
-
228
- &__title {
229
- margin: 0;
230
- padding: 0;
231
- position: relative;
232
-
233
- &:first-child a { border-top: 1px solid #ccc; }
234
-
235
- &.active a {
236
- background-color: #fff;
237
- }
238
-
239
- &.active a:after {
240
- content: "";
241
- width: 1px;
242
- height: 40px;
243
- position: absolute;
244
- right: -1px;
245
- top: 1px;
246
- background: #fff;
247
- z-index: 10;
248
- }
249
-
250
- i {
251
- font-size: 18px;
252
- min-width: 20px;
253
- margin-right: 10px;
254
- text-align: center;
255
- color: #444;
256
- }
257
-
258
- a {
259
- font-size: 16px;
260
- display: block;
261
- -webkit-box-sizing: border-box;
262
- box-sizing: border-box;
263
- padding: 11px 15px;
264
- white-space: nowrap;
265
- text-decoration: none;
266
- color: #555;
267
- border: 1px solid #ccc;
268
- border-top: 0;
269
- border-right: 0;
270
- outline: none;
271
- background: #e5e5e5;
272
- -webkit-box-shadow: none;
273
- box-shadow: none;
274
- }
275
- }
276
-
277
- &__contents {
278
- padding-left: 200px;
279
- }
280
-
281
- &__content {
282
- padding: 15px;
283
- min-height: 400px;
284
- background: #fff;
285
- border: 1px solid #ccc;
286
-
287
- > h2 { margin-top: 0; }
288
-
289
- .nav-tab-active {
290
- background-color: #fff;
291
- border-bottom-color: #fff;
292
- }
293
- }
294
- }
295
-
296
- /*.wp-review-field { clear: both; padding-top: 0; }*/
297
- .clearfix:before, .clearfix:after { content: " "; display: table; }
298
- .clearfix:after { clear: both }
299
- .clearfix { *zoom: 1 }
300
- .wp_review_schema_type_options textarea {
301
- width: 77%;
302
- min-height: 80px;
303
- }
304
- .wp-review-field {
305
- select { width: 15em; margin-left: 0; }
306
- #wp_review_product_price { width: 70px; }
307
- .wp-color-result { margin: 0 }
308
- .large-text { width: 77%; }
309
- input { margin: 0; padding: 5px 8px }
310
- }
311
- .wp-review-field {
312
- .wp-picker-container {
313
- display: inline-block;
314
- label { flex: none; width: auto; }
315
- input[type="text"].wp-color-picker { padding: 4px; width: 65px; }
316
- .iris-picker { box-sizing: initial; }
317
- .wp-picker-open+.wp-picker-input-wrap { width: 140px; }
318
- }
319
- }
320
- #wp-wp_review_pros-wrap textarea.wp-editor-area, #wp-wp_review_cons-wrap textarea.wp-editor-area, #wp-wp_review_desc-wrap textarea.wp-editor-area { border: 0; }
321
- .wp_review_schema_options_label{
322
- vertical-align: top;
323
- padding-top: 5px;
324
- }
325
- .wpr_image_upload_field { display: inline-block; }
326
-
327
- .wp-review-item {
328
- th { text-align: left }
329
- td:first-child { text-align: center }
330
- .handle { cursor: move }
331
- }
332
- .wp-review-links {
333
- td:first-child { text-align: center }
334
- .handle { cursor: move }
335
- input[type="text"] { padding: 5px 8px; }
336
- }
337
- .has-border-bottom {
338
- border-bottom: 1px solid #ddd;
339
- margin-bottom: 20px;
340
- padding-bottom: 20px;
341
- }
342
- .review-total { text-align: right }
343
- .wp-review-field-option:not(.pyre_field) .wp-picker-holder {
344
- position: absolute;
345
- z-index: 9;
346
- }
347
-
348
- .review-value-incorrect { border-color: #F00 !important }
349
-
350
- #wp_review_id_hint { margin-left: 8px }
351
-
352
- .wp-review-admin-options {
353
- .form-table td {
354
- padding: 20px 10px;
355
- vertical-align: top;
356
- }
357
- p.description { font-weight: normal; font-style: normal; }
358
- .wp-review-field {
359
- > label {
360
- .description { margin-left: 0; }
361
- }
362
- input {
363
- padding: 7px;
364
- border-radius: 2px;
365
- margin: 0;
366
- -webkit-box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
367
- box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
368
- }
369
- input[type=radio] {
370
- border-radius: 50%;
371
- }
372
- input[type=checkbox] { border-radius: 0; }
373
- .large-text { width: 70%; }
374
- .description { display: block; color: #888; font-style: normal; margin-top: 5px; }
375
- }
376
- #wp_review_shortcode_hint_field span {
377
- display: inline;
378
- margin-left: 6px;
379
- }
380
- .wp-review-thumbnail-options label { margin-right: 0; width: 90%; }
381
- }
382
- .wp-review-description label {
383
- margin-bottom: -20px;
384
- display: block;
385
- }
386
- .wp-review-theme-defaults-msg { position: relative }
387
- .wp-review-theme-defaults-msg a.button {
388
- display: inline-block;
389
- margin-bottom: 8px;
390
- }
391
- .wp-review-theme-defaults-msg a.close-notice {
392
- position: absolute;
393
- top: 0;
394
- right: 0;
395
- }
396
- .edit-ratings-notice.update-nag {
397
- background: #fff9e8;
398
- margin-right: 0;
399
- }
400
- #wp-review-width-slider {
401
- width: 70%;
402
- float: left;
403
- margin-top: 12px;
404
- margin-right: 25px;
405
- border-radius: 0;
406
- max-width: 600px;
407
- border: 0;
408
- background: #d8d8d8;
409
- height: 8px;
410
-
411
- .ui-slider-handle {
412
- background: #fff;
413
- -webkit-box-shadow: 0 0px 3px rgba(0, 0, 0, 0.4);
414
- box-shadow: 0 0px 3px rgba(0, 0, 0, 0.4);
415
- border-radius: 2px;
416
- }
417
- }
418
- #wp-review-width-slider.ui-slider-horizontal .ui-slider-range-min {
419
- border: 0;
420
- border-radius: 2px;
421
- background: #0184bb;
422
- }
423
- #wp_review_width { width: 60px }
424
- .wrap.wp-review .nav-tab-wrapper {
425
- border-bottom: 1px solid #ccc; margin-top: 16px;
426
-
427
- a:focus { box-shadow: none; }
428
- }
429
- .nav-tab-hidden { display: none }
430
- .nav-tab-hidden.nav-tab-active { display: block }
431
- textarea#wp-review-migrate-log {
432
- width: 600px;
433
- max-width: 100%;
434
- height: 200px;
435
- display: none;
436
- }
437
- .already-migrated-msg { display: none }
438
- #start-migrate { margin-bottom: 12px }
439
- #wp-review-settings-tab-contents > div { display: none;max-width: 900px;}
440
- #wp-review-settings-tab-contents .settings-tab-general { display: block }
441
- .pros-cons-title {
442
- max-width: 25%;
443
- }
444
- .column-wp_review_rating,
445
- .column-wp_review_comment_rating {
446
- text-align: center;
447
- position: relative;
448
- width: 110px;
449
- }
450
- .column-wp_review_rating .review-star,
451
- .column-wp_review_comment_rating .review-star {
452
- position: relative;
453
- letter-spacing: 1px;
454
- }
455
- .column-wp_review_rating .no-rating,
456
- .column-wp_review_comment_rating .no-rating {
457
- color: #aaa;
458
- font-style: italic;
459
- }
460
- #editwpreview {
461
- overflow: hidden;
462
- }
463
- #editwpreview .inside {
464
- float: left;
465
- padding: 3px 0 2px 5px;
466
- margin: 0;
467
- text-align: left;
468
- }
469
- #editwpreview .inside input {
470
- width: 180px
471
- }
472
- #editwpreview label {
473
- padding: 2px 0
474
- }
475
- h4.wp-review-comment-title {
476
- margin-top: 0;
477
- margin-bottom: 1em;
478
- }
479
-
480
- .review-result-wrapper {
481
- position: relative;
482
- display: inline-block;
483
- font-size: 0;
484
- }
485
- .postbox .review-result-wrapper a, .postbox .review-result i { cursor: pointer }
486
- .review-result {
487
- position: absolute;
488
- top: 0;
489
- left: 0;
490
- height: 22px;
491
- overflow: hidden;
492
- white-space: nowrap;
493
- }
494
- .wp-review-rating-feature { display: inline-block }
495
- .wp-review-notice {
496
- position: relative;
497
- }
498
- .wpr_image_upload_img {
499
- margin:0 0 10px;
500
- padding:0;
501
- max-width:100%;
502
- height:auto;
503
- float:left;
504
- display:inline-block;
505
- }
506
-
507
- .wpr-hide {
508
- display: none;
509
- }
510
-
511
- .wpr-tabs .tab-title.nav-tab-active {
512
- background-color: #fff;
513
- border-bottom-color: #fff;
514
- }
515
-
516
- .wpr-box-template-images {
517
- @extend .border-box;
518
-
519
- display: flex;
520
- flex-wrap: wrap;
521
-
522
- .wpr-box-template-image {
523
- flex: 0 0 50%;
524
- display: block;
525
- outline: 0;
526
- box-shadow: none;
527
- text-decoration: none;
528
- text-align: center;
529
- color: #333;
530
- font-weight: 700;
531
- margin-bottom: 5px;
532
-
533
- img {
534
- padding: 4px;
535
- width: 100%;
536
- height: auto;
537
- display: block;
538
- }
539
-
540
- &.active {
541
- img {
542
- background-color: #0073aa;
543
- }
544
- }
545
- }
546
- }
547
-
548
- #wpr-review-items-app {
549
- * {
550
- box-sizing: border-box;
551
- }
552
-
553
- .wpr-review-item {
554
- background-color: #f7f7f7;
555
- padding: 10px 10px 10px 30px;
556
- margin-bottom: 5px;
557
-
558
- .setting-row:first-of-type .col-2 input {
559
- width: 100%;
560
- padding: 5px;
561
- background: #fff;
562
- }
563
-
564
- .col-3 input {
565
- float: right;
566
- background: #fff;
567
- }
568
-
569
- .wpr-icon-move {
570
- cursor: move;
571
- position: absolute;
572
- left: 5px;
573
- top: 16px;
574
- }
575
- }
576
-
577
- .setting-row {
578
- padding: 5px 0;
579
- }
580
-
581
- .final-row {
582
- .col-3 {
583
- text-align: right;
584
- input { float: right; min-width: 52px; }
585
- label { margin: 4px 10px 0 0; display: inline-block; font-weight: bold; }
586
- }
587
- }
588
-
589
- .wpr-percentage-input-wrapper {
590
- margin-top: 10px;
591
- }
592
-
593
- .wp-picker-container {
594
- display: inline-block;
595
- }
596
-
597
-
598
- .wp-picker-holder {
599
- * { box-sizing: initial; }
600
- }
601
-
602
- @media (min-width: 768px) {
603
- .wpr-review-item {
604
- position: relative;
605
- }
606
-
607
- .delete-item {
608
- position: absolute;
609
- right: 10px;
610
- bottom: 10px;
611
- }
612
-
613
- .setting-row {
614
- display: flex;
615
- flex-wrap: wrap;
616
- }
617
-
618
- .col-1 {
619
- flex: 0 0 20%;
620
- }
621
-
622
- .col-2 {
623
- flex: 0 0 60%;
624
- padding: 0 10px;
625
- }
626
-
627
- .col-3 {
628
- flex: 0 0 20%;
629
- }
630
- }
631
- }
632
-
633
- #wp_review_box_template_wrapper {
634
- position: relative;
635
- }
636
-
637
- #wp_review_box_template_preview {
638
- position: absolute;
639
- left: 250px;
640
- top: 0px;
641
- z-index: 1000;
642
- padding: 3px;
643
- box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
644
- background: #fff;
645
-
646
- &.loading {
647
- background: #eee url(../images/loading.svg) no-repeat center center;
648
-
649
- img {
650
- visibility: hidden;
651
- }
652
- }
653
- }
654
- #wp_review_box_template_img,
655
- #wp_review_box_template_preview_img {
656
- max-width: 414px;
657
- height: auto;
658
- }
659
-
660
- // Form fields
661
- .wpr-switch {
662
- $border-radius: 3px; // Default 4px
663
- $font-size: 12px; // Default 14px
664
- $button-width: 45px; // Default 50px
665
- $height: 28px;
666
-
667
- display: inline-block;
668
-
669
- input {
670
- position: absolute !important;
671
- clip: rect(0, 0, 0, 0);
672
- height: 1px;
673
- width: 1px;
674
- border: 0;
675
- overflow: hidden;
676
- }
677
-
678
- label {
679
- float: left;
680
- display: inline-block;
681
- min-width: $button-width;
682
- background-color: #e4e4e4;
683
- color: rgba(0, 0, 0, 0.6);
684
- font-size: $font-size;
685
- font-weight: 700;
686
- line-height: $height;
687
- text-align: center;
688
- text-shadow: none;
689
- border: 1px solid rgba(0, 0, 0, 0.2);
690
- box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px rgba(255, 255, 255, 0.1);
691
- transition: all 0.1s ease-in-out;
692
-
693
- &:hover {
694
- cursor: pointer;
695
- }
696
-
697
- &:first-of-type {
698
- border-radius: $border-radius 0 0 $border-radius;
699
- border-right: 0;
700
- font-weight: normal;
701
- }
702
-
703
- &:last-of-type {
704
- border-radius: 0 $border-radius $border-radius 0;
705
- border-left: 0;
706
- font-weight: normal;
707
- }
708
- }
709
- }
710
-
711
- input.wpr-switch__on:checked + label, input.wpr-switch__off:checked + label {
712
- background: #0085ba;
713
- border-color: #0073aa #006799 #006799;
714
- box-shadow: 0 1px 0 #006799;
715
- color: #fff;
716
- text-decoration: none;
717
- text-shadow: 0 -1px 1px #006799, 1px 0 1px #006799, 0 1px 1px #006799, -1px 0 1px #006799;
718
- margin-bottom: 2px;
719
- }
720
- input.wpr-switch__on:checked + label:hover, input.wpr-switch__off:checked + label:hover {
721
- background: #008ec2;
722
- border-color: #006799;
723
- color: #fff;
724
- }
725
- input.wpr-switch__off:checked + label, input.wpr-switch__off:checked + label:hover {
726
- color: #fff;
727
- background: #f5786f;
728
- border-color: #bd4c44 #bd4c44 #bd4c44;
729
- -webkit-box-shadow: 0 1px 0 #bd4c44;
730
- box-shadow: 0 1px 0 #bd4c44;
731
- text-shadow: none;
732
- }
733
-
734
- // Demo importer popup
735
- #wp-review-demo-importer-popup {
736
- background: #fff;
737
- border: 1px solid #eaeaeb;
738
- border-radius: 3px;
739
- box-shadow: 0 1px 0 #FFF inset, 0 1px 5px rgba(0, 0, 0, 0.1);
740
- position: relative;
741
- width: auto;
742
- max-width: 600px;
743
- margin: 50px auto;
744
- }
745
-
746
- #wp-review-demo-importer-modal-header {
747
- border-bottom: 1px solid #eaeaeb;
748
- background: #FAFBFD;
749
- padding: 12px 20px;
750
-
751
- .spinner {
752
- margin-top: 14px;
753
- }
754
- }
755
-
756
- #wp-review-demo-importer-modal-header h2,
757
- #wp-review-demo-importer-modal-content h4 {
758
- padding: 0!important;
759
- margin: 0!important;
760
- }
761
-
762
- #wp-review-demo-importer-modal-header h2 {
763
- font-size: 1.8em;
764
- line-height: 2em;
765
- }
766
-
767
- #wp-review-demo-importer-modal-content {
768
- background: #fff;
769
- padding: 20px;
770
- overflow: auto;
771
- height: 300px;
772
- width: 100%;
773
- box-sizing: border-box;
774
-
775
- p {
776
- padding: 0;
777
- margin: 0;
778
- }
779
- }
780
-
781
- #wp-review-demo-importer-modal-footer {
782
- border-top: 1px solid #eaeaeb;
783
- background: #FAFBFD;
784
- padding: 12px 20px;
785
- display: inline-block;
786
- width: 100%;
787
- box-sizing: border-box;
788
- }
789
-
790
- #wp-review-demo-importer-modal-footer-info {
791
- float: left;
792
- }
793
-
794
- #wp-review-demo-importer-modal-footer-button {
795
- float: right;
796
- display: none;
797
- text-transform: uppercase;
798
- }
799
-
800
- .wp-admin select.mce-selectbox {
801
- padding: 0;
802
- }
803
- #wp-review-metabox-userReview .inside > {
804
- p:first-of-type label, p:nth-of-type(2) label, p:nth-of-type(3) label, p:nth-of-type(4) label { padding-right: 0; margin-left: 5px; }
805
- }
806
-
807
- .wp-review-subsite-wrapper {
808
- display: none;
809
- }
810
-
811
- .wp-review-pro-text {
812
- color: #00cc66;
813
- }
814
-
815
- .wp-review-disabled {
816
- position: relative;
817
- cursor: pointer;
818
-
819
- &:before {
820
- content: " ";
821
- display: block;
822
- position: absolute;
823
- top: 0;
824
- left: 0;
825
- right: 0;
826
- bottom: 0;
827
- z-index: 100;
828
- }
829
-
830
- &.inline-block {
831
- display: inline-block;
832
- }
833
-
834
- &.wpr-switch,
835
- &.has-bg {
836
- opacity: 0.3;
837
- }
838
- }
839
-
840
- option.disabled {
841
- color: #aaa;
842
- }
admin/assets/sourcemaps/admin.css.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"sources":["admin.scss"],"names":[],"mappings":"AAEA,qCACC,qBAAsB,CADvB,yCAIE,qBAAsB,CACtB,UAID,aACA,cAAe,CACf,eAGA,cAAe,CACf,aAGA,YAAa,CACb,aAGA,gBACA,mBACA,mBAAoB,CAHrB,mBAME,kBACA,iBAAkB,CAPpB,wCASG,kBACA,MACA,OACA,AACA,gBACA,gBACA,oCACA,iBAAkB,CAhBrB,gDAmBI,oBAAqB,CAnBzB,uDAqBK,iBACA,WACA,YACA,qBACA,gBACA,kBACA,WACA,kBACA,kBAAmB,CACnB,aASH,qBAAsB,CAHxB,oBAMY,gBAAiB,CAN7B,cAQM,kBAAmB,CApDzB,eAsDiB,6BAA8B,CAAI,4BAElD,YAAa,CACb,uCACwC,WAAY,CAAI,iBASxD,eACA,8BACA,eACA,kBACA,6BAA8B,CAT/B,oCAEE,qBAAsB,CACtB,0BAUD,UACA,eAAgB,CAChB,0BAGA,8CACC,aACA,cAAe,CAFhB,qEAKE,aACA,gBAAiB,CANnB,gFASG,cACA,eAAgB,CAVnB,sEAeE,YAAa,CAff,yIAmBE,iBAAkB,CAnBpB,mJAoBU,YAAa,CApBvB,iLAsBG,kBACA,MACA,OAAQ,CAxBX,mKA4BG,YACA,WACA,YACA,sBACA,iBAAkB,CAhCrB,2KAkCI,cAAe,CAlCnB,uKAqCI,kBACA,SACA,WACA,WACA,cAAe,CAzCnB,6KA2CY,YAAa,CA3CzB,uLA6C0B,YAAa,CAAG,iDAMxC,YAAa,CAFf,kDAME,YAAa,CACb,CAIH,qCAEE,gBAAiB,CACjB,wBAOD,kBACA,cACA,gBACA,oBAAqB,CAJtB,kCAWE,WACA,kBAAmB,CAZrB,sCAwBE,mBACA,kBACA,OACA,MACA,eAAgB,CAChB,+CAKA,sBACA,qCACA,kBACA,cAAe,CACf,mBAOD,gBACA,iBAAkB,CAElB,2BACC,YACA,WACA,eACA,SACA,WACA,kBACA,OACA,KAAM,CARN,kCAWC,qBAAsB,CACtB,0BAID,SACA,UACA,iBAAkB,CAHlB,wCAKkB,yBAA0B,CAL5C,mCAQC,qBAAsB,CARvB,yCAYC,WACA,UACA,YACA,kBACA,WACA,QACA,gBACA,UAAW,CAnBZ,4BAuBC,eACA,eACA,kBACA,kBACA,UAAW,CA3BZ,4BA+BC,eACA,cACA,AACA,sBACA,kBACA,mBACA,qBACA,WACA,sBACA,aACA,eACA,aACA,mBACA,AACA,eAAgB,CAChB,6BAID,kBAAmB,CACnB,4BAGA,aACA,iBACA,gBACA,qBAAsB,CAJtB,+BAMO,YAAa,CANpB,4CASC,sBACA,wBAAyB,CACzB,iCAKiC,YAAc,aAAc,CAAI,gBAClD,UAAY,CAAE,WACpB,MAAU,CAAE,wCAEvB,UACA,eAAgB,CAChB,wBAES,WAAa,aAAc,CADrC,0CAE4B,UAAW,CAFvC,kCAGoB,QAAU,CAH9B,6BAIe,SAAU,CAJzB,uBAKS,SAAW,eAAiB,CAAE,sCAIrC,oBAAqB,CAFvB,4CAGU,UAAY,UAAW,CAHjC,yEAIuC,YAAc,UAAW,CAJhE,mDAKiB,kBAAmB,CALpC,4EAM0C,WAAY,CAAI,gJAG0F,QAAS,CAAI,gCAEhK,mBACA,eAAgB,CAChB,wBACyB,oBAAqB,CAAI,mBAG7C,eAAiB,CADvB,+BAEkB,iBAAmB,CAFrC,wBAGW,WAAa,CAAE,gCAGR,iBAAmB,CADrC,yBAEW,WAAa,CAFxB,oCAGsB,eAAgB,CAAI,mBAGzC,6BACA,mBACA,mBAAoB,CACpB,cACe,gBAAkB,CAAE,2DAEnC,kBACA,SAAU,CACV,wBAEyB,4BAA8B,CAAE,mBAErC,eAAiB,CAAE,wCAItC,kBACA,kBAAmB,CAHrB,uCAKiB,mBAAqB,iBAAkB,CALxD,6DAQkB,aAAc,CARhC,gDAWG,YACA,kBACA,SACA,AACA,0CAA2C,CAf9C,4DAkBG,iBAAkB,CAlBrB,+DAoByB,eAAgB,CApBzC,sDAqBgB,SAAU,CArB1B,uDAsBiB,cAAgB,WAAa,kBAAoB,cAAe,CAtBjF,8DAyBE,eACA,eAAgB,CA1BlB,4DA4BsC,eAAiB,SAAU,CAAI,6BAGpE,oBACA,aAAc,CACd,8BAC+B,iBAAmB,CAAE,uCAEpD,qBACA,iBAAkB,CAClB,6CAEA,kBACA,MACA,OAAQ,CACR,gCAEA,mBACA,cAAe,CACf,wBAEA,UACA,WACA,gBACA,kBACA,gBACA,gBACA,SACA,mBACA,UAAW,CATZ,0CAYE,gBACA,AACA,qCACA,iBAAkB,CAClB,kEAGD,SACA,kBACA,kBAAmB,CACnB,iBACkB,UAAY,CAAE,iCAEhC,6BAA+B,eAAgB,CADhD,yCAGW,eAAgB,CAAI,gBAEb,YAAc,CAAE,+BACD,aAAe,CAAE,+BAEjD,YACA,eACA,aACA,YAAa,CACb,sBACuB,YAAc,CAAE,eACvB,kBAAoB,CAAE,qCACE,aAAc,eAAgB,CAAG,uDACjB,aAAe,CAAE,iBAEzE,aAAc,CACd,0DAGA,kBACA,kBACA,WAAY,CACZ,oFAGA,kBACA,kBAAmB,CACnB,gFAGA,WACA,iBAAkB,CAClB,cAEA,eAAgB,CAChB,sBAEA,WACA,sBACA,SACA,eAAgB,CAChB,4BAEA,WACD,CAAC,oBAEA,aACD,CAAC,2BAEA,aACA,iBAAkB,CAClB,uBAGA,kBACA,qBACA,WAAY,CACZ,4DAC8D,cAAgB,CAAE,eAEhF,kBACA,MACA,OACA,YACA,gBACA,kBAAmB,CACnB,0BAC2B,oBAAsB,CAAE,kBAEnD,iBAAkB,CAClB,sBAEA,gBACA,UACA,eACA,YACA,WACA,oBAAoB,CACpB,UAGA,YAAa,CACb,oCAGA,sBACA,wBAAyB,CACzB,yBAKA,aACA,cAAe,CAJhB,iDAOE,aACA,cACA,UACA,gBACA,qBACA,kBACA,WACA,gBACA,iBAAkB,CAfpB,qDAkBG,YACA,WACA,YACA,aAAc,CArBjB,4DA0BI,wBAAyB,CACzB,wBAOF,qBAAsB,CAFxB,uCAME,yBACA,4BACA,iBAAkB,CARpB,+EAWG,WACA,YACA,eAAgB,CAbnB,oDAiBG,YACA,eAAgB,CAlBnB,sDAsBG,YACA,kBACA,SACA,QAAS,CAzBZ,mCA8BE,aAAc,CA9BhB,wCAmCG,gBAAiB,CAnCpB,8CAoCW,YAAc,cAAe,CApCxC,8CAqCW,oBAAsB,qBAAuB,gBAAiB,CArCzE,oDA0CE,eAAgB,CA1ClB,2CA8CE,oBAAqB,CA9CvB,0CAmDM,kBAAmB,CAAI,0BAnD7B,uCAwDG,iBAAkB,CAxDrB,mCA4DG,kBACA,WACA,WAAY,CA9Df,mCAkEG,aACA,cAAe,CAnElB,6BAuEG,YAAa,CAvEhB,6BA2EG,aACA,cAAe,CA5ElB,6BAgFG,YAAa,CACb,CAIH,gCACC,iBAAkB,CAClB,gCAGA,kBACA,WACA,QACA,aACA,YACA,mCACA,eAAgB,CAPjB,wCAUE,kEAAmE,CAVrE,4CAaG,iBAAkB,CAClB,gEAKF,gBACA,WAAY,CACZ,YASA,oBAAqB,CANtB,kBASE,6BACA,sBACA,WACA,UACA,SACA,eAAgB,CAdlB,kBAkBE,WACA,qBACA,eACA,yBACA,sBACA,eACA,gBACA,iBACA,kBACA,iBACA,iCACA,uEACA,+BAAgC,CA9BlC,wBAiCG,cAAe,CAjClB,gCAqCG,0BACA,eACA,kBAAmB,CAvCtB,+BA2CG,0BACA,cACA,kBAAmB,CACnB,uEAKF,mBACA,qCACA,2BACA,WACA,qBACA,yFACA,iBAAkB,CAClB,mFAEA,mBACA,qBACA,UAAW,CACX,8EAEA,WACA,mBACA,qCACA,AACA,2BACA,gBAAiB,CACjB,+BAIA,gBACA,yBACA,kBACA,wDACA,kBACA,WACA,gBACA,gBAAiB,CACjB,sCAGA,gCACA,mBACA,iBAAkB,CAHnB,+CAME,eAAgB,CAChB,mFAKD,qBACA,mBAAmB,CACnB,yCAGA,gBACA,eAAgB,CAChB,uCAGA,gBACA,aACA,cACA,aACA,WACA,qBAAsB,CANvB,yCASE,UACA,QAAS,CACT,sCAID,6BACA,mBACA,kBACA,qBACA,WACA,qBAAsB,CACtB,2CAGA,UAAW,CACX,6CAGA,YACA,aACA,wBAAyB,CACzB,+BAGA,SAAU,CACV,mPAEgG,gBAAkB,eAAgB,CAAI,2BAItI,YAAa,CACb,oBAGA,aAAc,CACd,oBAGA,kBACA,cAAe,CAFhB,2BAKE,YACA,cACA,kBACA,MACA,OACA,QACA,SACA,WAAY,CAZd,iCAgBE,oBAAqB,CAhBvB,0DAqBE,WAAY,CACZ,gBAID,UAAW,CACX","file":"../sass/admin.css","sourcesContent":["@import \"../../../public/sass/util\";\r\n\r\n.border-box {\r\n\tbox-sizing: border-box;\r\n\r\n\t* {\r\n\t\tbox-sizing: border-box;\r\n\t}\r\n}\r\n\r\n.wpr-flex {\r\n\tdisplay: flex;\r\n\tflex-wrap: wrap;\r\n}\r\n\r\n.wpr-flex-wrap {\r\n\tflex-wrap: wrap;\r\n}\r\n\r\n.wpr-col-1-2 {\r\n\tflex: 0 0 50%;\r\n}\r\n\r\n.wpr-col-1-3 {\r\n\tflex: 0 0 33.33%;\r\n\tmargin-bottom: 12px;\r\n\tpadding-bottom: 12px;\r\n\r\n\tlabel {\r\n\t\tposition: relative;\r\n\t\tpadding-left: 20px;\r\n\t\tinput[type=checkbox] {\r\n\t\t\tposition: absolute;\r\n\t\t\ttop: 0;\r\n\t\t\tleft: 0;\r\n\t\t\t-webkit-box-shadow: none;\r\n\t\t\tbox-shadow: none;\r\n\t\t\toverflow: hidden;\r\n\t\t\tborder: 2px solid rgba(33,38,44,0.6);\r\n\t\t\tborder-radius: 2px;\r\n\r\n\t\t\t&:checked {\r\n\t\t\t\tborder-color: #069de3;\r\n\t\t\t\t&:before {\r\n\t\t\t\t\tline-height: 16px;\r\n\t\t\t\t\twidth: 17px;\r\n\t\t\t\t\theight: 16px;\r\n\t\t\t\t\tmargin: -2px 0 0 -5px;\r\n\t\t\t\t\tcontent: '\\f147';\r\n\t\t\t\t\ttext-align: center;\r\n\t\t\t\t\tcolor: #fff;\r\n\t\t\t\t\tborder-radius: 2px;\r\n\t\t\t\t\tbackground: #069de3;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n}\r\n\r\n.wp-review {\r\n\r\n\t* {\r\n\t\tbox-sizing: border-box;\r\n\t}\r\n\r\n\tp.submit { text-align: right; }\r\n\r\n\th1 { margin-bottom: 15px; }\r\n}\r\n.wpr-flex-wrap { justify-content: space-between; }\r\n.wpr-flex-wrap .wpr-col-1-2 {\r\n\tflex: 0 0 49%;\r\n}\r\n.wpr-flex-wrap .wpr-col-1-2:last-child { float: right; }\r\n/*---------------------------\r\n * Fields\r\n *--------------------------*/\r\n.wp-review-field {\r\n\t&, * {\r\n\t\tbox-sizing: border-box;\r\n\t}\r\n\r\n\tpadding: 15px 0;\r\n\tborder-bottom: 1px dashed #ddd;\r\n\tmargin-top: 1em;\r\n\tmargin-bottom: 1em;\r\n\tborder-bottom: 1px dashed #ddd;\r\n}\r\n\r\n.postbox .wp-review-field {\r\n\tpadding: 0;\r\n\tborder-bottom: 0;\r\n}\r\n\r\n@media (min-width: 600px) {\r\n\t.wp-review-field:not(.vertical):not(.no-flex) {\r\n\t\tdisplay: flex;\r\n\t\tflex-wrap: wrap;\r\n\r\n\t\t.wp-review-field-label {\r\n\t\t\tflex: 0 0 25%;\r\n\t\t\tpadding-right: 4%;\r\n\r\n\t\t\t&.full-width {\r\n\t\t\t\tflex: 0 0 100%;\r\n\t\t\t\tpadding-right: 0;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t.wp-review-field-option {\r\n\t\t\tflex: 0 0 75%;\r\n\t\t}\r\n\r\n\t\t&.wp-review-rating-icon, &.wp-review-rating-image {\r\n\t\t\tposition: relative;\r\n\t\t\t&.hide {display: none;}\r\n\t\t\ta.wpr-toggle-rating {\r\n\t\t\t\tposition: absolute;\r\n\t\t\t\ttop: 0;\r\n\t\t\t\tright: 0;\r\n\t\t\t}\r\n\r\n\t\t\t.img-wrapper {\r\n\t\t\t\tpadding: 2px;\r\n\t\t\t\twidth: 55px;\r\n\t\t\t\theight: 55px;\r\n\t\t\t\tborder: 1px solid #ddd;\r\n\t\t\t\tposition: relative;\r\n\t\t\t\timg {\r\n\t\t\t\t\tmax-width: 100%;\r\n\t\t\t\t}\r\n\t\t\t\ti {\r\n\t\t\t\t\tposition: absolute;\r\n\t\t\t\t\ttop: -6px;\r\n\t\t\t\t\tright: -6px;\r\n\t\t\t\t\tcolor: #444;\r\n\t\t\t\t\tcursor: pointer;\r\n\t\t\t\t}\r\n\t\t\t\t&.hide { display: none; }\r\n\t\t\t}\r\n\t\t\t.set_rating_image.hide {display: none;}\r\n\t\t}\r\n\t}\r\n\r\n\t.postbox .wp-review-field {\r\n\t\t.wp-review-field-label {\r\n\t\t\tflex: 0 0 20%;\r\n\t\t}\r\n\r\n\t\t.wp-review-field-option {\r\n\t\t\tflex: 0 0 80%;\r\n\t\t}\r\n\t}\r\n}\r\n\r\n.wpr_image_upload_field {\r\n\t.clear-image {\r\n\t\tmargin-left: 10px;\r\n\t}\r\n}\r\n\r\n/*---------------------------\r\n * Review items\r\n *--------------------------*/\r\n.wpr-star-input-wrapper {\r\n\tposition: relative;\r\n\tcolor: #c40000;\r\n\toverflow: hidden;\r\n\tdisplay: inline-block;\r\n\r\n\t.star-icon {\r\n\t\t// float: left;\r\n\t}\r\n\r\n\t.stars-bg {\r\n\t\tcolor: #ccc;\r\n\t\twhite-space: nowrap;\r\n\r\n\t\t// &:after {\r\n\t\t// content: \" \";\r\n\t\t// display: block;\r\n\t\t// clear: both;\r\n\t\t// height: 0;\r\n\t\t// visibility: hidden;\r\n\t\t// }\r\n\t}\r\n\r\n\t.stars-result {\r\n\t\twhite-space: nowrap;\r\n\t\tposition: absolute;\r\n\t\tleft: 0;\r\n\t\ttop: 0;\r\n\t\toverflow: hidden;\r\n\t}\r\n}\r\n\r\n.wpr-input-wrapper.ui-slider {\r\n\t.ui-slider-handle {\r\n\t\tbackground-color: #fff;\r\n\t\tbox-shadow: 0 0px 3px rgba(0, 0, 0, 0.4);\r\n\t\tborder-radius: 2px;\r\n\t\tcursor: pointer;\r\n\t}\r\n}\r\n\r\n/*---------------------------\r\n * Options page\r\n *--------------------------*/\r\n.wpr-vertical-tabs {\r\n\tmax-width: 880px;\r\n\tposition: relative;\r\n\r\n\t&__titles {\r\n\t\twidth: 200px;\r\n\t\tfloat: left;\r\n\t\tborder-right: 0;\r\n\t\tmargin: 0;\r\n\t\tz-index: 10;\r\n\t\tposition: absolute;\r\n\t\tleft: 0;\r\n\t\ttop: 0;\r\n\r\n\t\t&.active {\r\n\t\t\tbackground-color: #fff;\r\n\t\t}\r\n\t}\r\n\r\n\t&__title {\r\n\t\tmargin: 0;\r\n\t\tpadding: 0;\r\n\t\tposition: relative;\r\n\r\n\t\t&:first-child a { border-top: 1px solid #ccc; }\r\n\r\n\t\t&.active a {\r\n\t\t\tbackground-color: #fff;\r\n\t\t}\r\n\r\n\t\t&.active a:after {\r\n\t\t\tcontent: \"\";\r\n\t\t\twidth: 1px;\r\n\t\t\theight: 40px;\r\n\t\t\tposition: absolute;\r\n\t\t\tright: -1px;\r\n\t\t\ttop: 1px;\r\n\t\t\tbackground: #fff;\r\n\t\t\tz-index: 10;\r\n\t\t}\r\n\r\n\t\ti {\r\n\t\t\tfont-size: 18px;\r\n\t\t\tmin-width: 20px;\r\n\t\t\tmargin-right: 10px;\r\n\t\t\ttext-align: center;\r\n\t\t\tcolor: #444;\r\n\t\t}\r\n\r\n\t\ta {\r\n\t\t\tfont-size: 16px;\r\n\t\t\tdisplay: block;\r\n\t\t\t-webkit-box-sizing: border-box;\r\n\t\t\tbox-sizing: border-box;\r\n\t\t\tpadding: 11px 15px;\r\n\t\t\twhite-space: nowrap;\r\n\t\t\ttext-decoration: none;\r\n\t\t\tcolor: #555;\r\n\t\t\tborder: 1px solid #ccc;\r\n\t\t\tborder-top: 0;\r\n\t\t\tborder-right: 0;\r\n\t\t\toutline: none;\r\n\t\t\tbackground: #e5e5e5;\r\n\t\t\t-webkit-box-shadow: none;\r\n\t\t\tbox-shadow: none;\r\n\t\t}\r\n\t}\r\n\r\n\t&__contents {\r\n\t\tpadding-left: 200px;\r\n\t}\r\n\r\n\t&__content {\r\n\t\tpadding: 15px;\r\n\t\tmin-height: 400px;\r\n\t\tbackground: #fff;\r\n\t\tborder: 1px solid #ccc;\r\n\r\n\t\t> h2 { margin-top: 0; }\r\n\r\n\t\t.nav-tab-active {\r\n\t\t\tbackground-color: #fff;\r\n\t\t\tborder-bottom-color: #fff;\r\n\t\t}\r\n\t}\r\n}\r\n\r\n/*.wp-review-field { clear: both; padding-top: 0; }*/\r\n.clearfix:before, .clearfix:after { content: \" \"; display: table; }\r\n.clearfix:after { clear: both }\r\n.clearfix { *zoom: 1 }\r\n.wp_review_schema_type_options textarea {\r\n\twidth: 77%;\r\n\tmin-height: 80px;\r\n}\r\n.wp-review-field {\r\n\tselect { width: 15em; margin-left: 0; }\r\n\t#wp_review_product_price { width: 70px; }\r\n\t.wp-color-result { margin: 0 }\r\n\t.large-text { width: 77%; }\r\n\tinput { margin: 0; padding: 5px 8px }\r\n}\r\n.wp-review-field {\r\n\t.wp-picker-container {\r\n\t\tdisplay: inline-block;\r\n\t\tlabel { flex: none; width: auto; }\r\n\t\tinput[type=\"text\"].wp-color-picker { padding: 4px; width: 65px; }\r\n\t\t.iris-picker { box-sizing: initial; }\r\n\t\t.wp-picker-open+.wp-picker-input-wrap { width: 140px; }\r\n\t}\r\n}\r\n#wp-wp_review_pros-wrap textarea.wp-editor-area, #wp-wp_review_cons-wrap textarea.wp-editor-area, #wp-wp_review_desc-wrap textarea.wp-editor-area { border: 0; }\r\n.wp_review_schema_options_label{\r\n\tvertical-align: top;\r\n\tpadding-top: 5px;\r\n}\r\n.wpr_image_upload_field { display: inline-block; }\r\n\r\n.wp-review-item {\r\n\tth { text-align: left }\r\n\ttd:first-child { text-align: center }\r\n\t.handle { cursor: move }\r\n}\r\n.wp-review-links {\r\n\ttd:first-child { text-align: center }\r\n\t.handle { cursor: move }\r\n\tinput[type=\"text\"] { padding: 5px 8px; }\r\n}\r\n.has-border-bottom {\r\n\tborder-bottom: 1px solid #ddd;\r\n\tmargin-bottom: 20px;\r\n\tpadding-bottom: 20px;\r\n}\r\n.review-total { text-align: right }\r\n.wp-review-field-option:not(.pyre_field) .wp-picker-holder {\r\n\tposition: absolute;\r\n\tz-index: 9;\r\n}\r\n\r\n.review-value-incorrect { border-color: #F00 !important }\r\n\r\n#wp_review_id_hint { margin-left: 8px }\r\n\r\n.wp-review-admin-options {\r\n\t.form-table td {\r\n\t\tpadding: 20px 10px;\r\n\t\tvertical-align: top;\r\n\t}\r\n\tp.description { font-weight: normal; font-style: normal; }\r\n\t.wp-review-field {\r\n\t\t> label {\r\n\t\t\t.description { margin-left: 0; }\r\n\t\t}\r\n\t\tinput {\r\n\t\t\tpadding: 7px;\r\n\t\t\tborder-radius: 2px;\r\n\t\t\tmargin: 0;\r\n\t\t\t-webkit-box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);\r\n\t\t\tbox-shadow: inset 0 1px 3px rgba(0,0,0,0.1);\r\n\t\t}\r\n\t\tinput[type=radio] {\r\n\t\t\tborder-radius: 50%;\r\n\t\t}\r\n\t\tinput[type=checkbox] { border-radius: 0; }\r\n\t\t.large-text { width: 70%; }\r\n\t\t.description { display: block; color: #888; font-style: normal; margin-top: 5px; }\r\n\t}\r\n\t#wp_review_shortcode_hint_field span {\r\n\t\tdisplay: inline;\r\n\t\tmargin-left: 6px;\r\n\t}\r\n\t.wp-review-thumbnail-options label { margin-right: 0; width: 90%; }\r\n}\r\n.wp-review-description label {\r\n\tmargin-bottom: -20px;\r\n\tdisplay: block;\r\n}\r\n.wp-review-theme-defaults-msg { position: relative }\r\n.wp-review-theme-defaults-msg a.button {\r\n\tdisplay: inline-block;\r\n\tmargin-bottom: 8px;\r\n}\r\n.wp-review-theme-defaults-msg a.close-notice {\r\n\tposition: absolute;\r\n\ttop: 0;\r\n\tright: 0;\r\n}\r\n.edit-ratings-notice.update-nag {\r\n\tbackground: #fff9e8;\r\n\tmargin-right: 0;\r\n}\r\n#wp-review-width-slider {\r\n\twidth: 70%;\r\n\tfloat: left;\r\n\tmargin-top: 12px;\r\n\tmargin-right: 25px;\r\n\tborder-radius: 0;\r\n\tmax-width: 600px;\r\n\tborder: 0;\r\n\tbackground: #d8d8d8;\r\n\theight: 8px;\r\n\r\n\t.ui-slider-handle {\r\n\t\tbackground: #fff;\r\n\t\t-webkit-box-shadow: 0 0px 3px rgba(0, 0, 0, 0.4);\r\n\t\tbox-shadow: 0 0px 3px rgba(0, 0, 0, 0.4);\r\n\t\tborder-radius: 2px;\r\n\t}\r\n}\r\n#wp-review-width-slider.ui-slider-horizontal .ui-slider-range-min {\r\n\tborder: 0;\r\n\tborder-radius: 2px;\r\n\tbackground: #0184bb;\r\n}\r\n#wp_review_width { width: 60px }\r\n.wrap.wp-review .nav-tab-wrapper {\r\n\tborder-bottom: 1px solid #ccc; margin-top: 16px;\r\n\r\n\ta:focus { box-shadow: none; }\r\n}\r\n.nav-tab-hidden { display: none }\r\n.nav-tab-hidden.nav-tab-active { display: block }\r\ntextarea#wp-review-migrate-log {\r\n\twidth: 600px;\r\n\tmax-width: 100%;\r\n\theight: 200px;\r\n\tdisplay: none;\r\n}\r\n.already-migrated-msg { display: none }\r\n#start-migrate { margin-bottom: 12px }\r\n#wp-review-settings-tab-contents > div { display: none;max-width: 900px;}\r\n#wp-review-settings-tab-contents .settings-tab-general { display: block }\r\n.pros-cons-title {\r\n\tmax-width: 25%;\r\n}\r\n.column-wp_review_rating,\r\n.column-wp_review_comment_rating {\r\n\ttext-align: center;\r\n\tposition: relative;\r\n\twidth: 110px;\r\n}\r\n.column-wp_review_rating .review-star,\r\n.column-wp_review_comment_rating .review-star {\r\n\tposition: relative;\r\n\tletter-spacing: 1px;\r\n}\r\n.column-wp_review_rating .no-rating,\r\n.column-wp_review_comment_rating .no-rating {\r\n\tcolor: #aaa;\r\n\tfont-style: italic;\r\n}\r\n#editwpreview {\r\n\toverflow: hidden;\r\n}\r\n#editwpreview .inside {\r\n\tfloat: left;\r\n\tpadding: 3px 0 2px 5px;\r\n\tmargin: 0;\r\n\ttext-align: left;\r\n}\r\n#editwpreview .inside input {\r\n\twidth: 180px\r\n}\r\n#editwpreview label {\r\n\tpadding: 2px 0\r\n}\r\nh4.wp-review-comment-title {\r\n\tmargin-top: 0;\r\n\tmargin-bottom: 1em;\r\n}\r\n\r\n.review-result-wrapper {\r\n\tposition: relative;\r\n\tdisplay: inline-block;\r\n\tfont-size: 0;\r\n}\r\n.postbox .review-result-wrapper a, .postbox .review-result i { cursor: pointer }\r\n.review-result {\r\n\tposition: absolute;\r\n\ttop: 0;\r\n\tleft: 0;\r\n\theight: 22px;\r\n\toverflow: hidden;\r\n\twhite-space: nowrap;\r\n}\r\n.wp-review-rating-feature { display: inline-block }\r\n.wp-review-notice {\r\n\tposition: relative;\r\n}\r\n.wpr_image_upload_img {\r\n\tmargin:0 0 10px;\r\n\tpadding:0;\r\n\tmax-width:100%;\r\n\theight:auto;\r\n\tfloat:left;\r\n\tdisplay:inline-block;\r\n}\r\n\r\n.wpr-hide {\r\n\tdisplay: none;\r\n}\r\n\r\n.wpr-tabs .tab-title.nav-tab-active {\r\n\tbackground-color: #fff;\r\n\tborder-bottom-color: #fff;\r\n}\r\n\r\n.wpr-box-template-images {\r\n\t@extend .border-box;\r\n\r\n\tdisplay: flex;\r\n\tflex-wrap: wrap;\r\n\r\n\t.wpr-box-template-image {\r\n\t\tflex: 0 0 50%;\r\n\t\tdisplay: block;\r\n\t\toutline: 0;\r\n\t\tbox-shadow: none;\r\n\t\ttext-decoration: none;\r\n\t\ttext-align: center;\r\n\t\tcolor: #333;\r\n\t\tfont-weight: 700;\r\n\t\tmargin-bottom: 5px;\r\n\r\n\t\timg {\r\n\t\t\tpadding: 4px;\r\n\t\t\twidth: 100%;\r\n\t\t\theight: auto;\r\n\t\t\tdisplay: block;\r\n\t\t}\r\n\r\n\t\t&.active {\r\n\t\t\timg {\r\n\t\t\t\tbackground-color: #0073aa;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n}\r\n\r\n#wpr-review-items-app {\r\n\t* {\r\n\t\tbox-sizing: border-box;\r\n\t}\r\n\r\n\t.wpr-review-item {\r\n\t\tbackground-color: #f7f7f7;\r\n\t\tpadding: 10px 10px 10px 30px;\r\n\t\tmargin-bottom: 5px;\r\n\r\n\t\t.setting-row:first-of-type .col-2 input {\r\n\t\t\twidth: 100%;\r\n\t\t\tpadding: 5px;\r\n\t\t\tbackground: #fff;\r\n\t\t}\r\n\r\n\t\t.col-3 input {\r\n\t\t\tfloat: right;\r\n\t\t\tbackground: #fff;\r\n\t\t}\r\n\r\n\t\t.wpr-icon-move {\r\n\t\t\tcursor: move;\r\n\t\t\tposition: absolute;\r\n\t\t\tleft: 5px;\r\n\t\t\ttop: 16px;\r\n\t\t}\r\n\t}\r\n\r\n\t.setting-row {\r\n\t\tpadding: 5px 0;\r\n\t}\r\n\r\n\t.final-row {\r\n\t\t.col-3 {\r\n\t\t\ttext-align: right;\r\n\t\t\tinput { float: right; min-width: 52px; }\r\n\t\t\tlabel { margin: 4px 10px 0 0; display: inline-block; font-weight: bold; }\r\n\t\t}\r\n\t}\r\n\r\n\t.wpr-percentage-input-wrapper {\r\n\t\tmargin-top: 10px;\r\n\t}\r\n\r\n\t.wp-picker-container {\r\n\t\tdisplay: inline-block;\r\n\t}\r\n\r\n\r\n\t.wp-picker-holder {\r\n\t\t* { box-sizing: initial; }\r\n\t}\r\n\r\n\t@media (min-width: 768px) {\r\n\t\t.wpr-review-item {\r\n\t\t\tposition: relative;\r\n\t\t}\r\n\r\n\t\t.delete-item {\r\n\t\t\tposition: absolute;\r\n\t\t\tright: 10px;\r\n\t\t\tbottom: 10px;\r\n\t\t}\r\n\r\n\t\t.setting-row {\r\n\t\t\tdisplay: flex;\r\n\t\t\tflex-wrap: wrap;\r\n\t\t}\r\n\r\n\t\t.col-1 {\r\n\t\t\tflex: 0 0 20%;\r\n\t\t}\r\n\r\n\t\t.col-2 {\r\n\t\t\tflex: 0 0 60%;\r\n\t\t\tpadding: 0 10px;\r\n\t\t}\r\n\r\n\t\t.col-3 {\r\n\t\t\tflex: 0 0 20%;\r\n\t\t}\r\n\t}\r\n}\r\n\r\n#wp_review_box_template_wrapper {\r\n\tposition: relative;\r\n}\r\n\r\n#wp_review_box_template_preview {\r\n\tposition: absolute;\r\n\tleft: 250px;\r\n\ttop: 0px;\r\n\tz-index: 1000;\r\n\tpadding: 3px;\r\n\tbox-shadow: 0 0 3px rgba(0, 0, 0, 0.2);\r\n\tbackground: #fff;\r\n\r\n\t&.loading {\r\n\t\tbackground: #eee url(../images/loading.svg) no-repeat center center;\r\n\r\n\t\timg {\r\n\t\t\tvisibility: hidden;\r\n\t\t}\r\n\t}\r\n}\r\n#wp_review_box_template_img,\r\n#wp_review_box_template_preview_img {\r\n\tmax-width: 414px;\r\n\theight: auto;\r\n}\r\n\r\n// Form fields\r\n.wpr-switch {\r\n\t$border-radius: 3px; // Default 4px\r\n\t$font-size: 12px; // Default 14px\r\n\t$button-width: 45px; // Default 50px\r\n\t$height: 28px;\r\n\r\n\tdisplay: inline-block;\r\n\r\n\tinput {\r\n\t\tposition: absolute !important;\r\n\t\tclip: rect(0, 0, 0, 0);\r\n\t\theight: 1px;\r\n\t\twidth: 1px;\r\n\t\tborder: 0;\r\n\t\toverflow: hidden;\r\n\t}\r\n\r\n\tlabel {\r\n\t\tfloat: left;\r\n\t\tdisplay: inline-block;\r\n\t\tmin-width: $button-width;\r\n\t\tbackground-color: #e4e4e4;\r\n\t\tcolor: rgba(0, 0, 0, 0.6);\r\n\t\tfont-size: $font-size;\r\n\t\tfont-weight: 700;\r\n\t\tline-height: $height;\r\n\t\ttext-align: center;\r\n\t\ttext-shadow: none;\r\n\t\tborder: 1px solid rgba(0, 0, 0, 0.2);\r\n\t\tbox-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px rgba(255, 255, 255, 0.1);\r\n\t\ttransition: all 0.1s ease-in-out;\r\n\r\n\t\t&:hover {\r\n\t\t\tcursor: pointer;\r\n\t\t}\r\n\r\n\t\t&:first-of-type {\r\n\t\t\tborder-radius: $border-radius 0 0 $border-radius;\r\n\t\t\tborder-right: 0;\r\n\t\t\tfont-weight: normal;\r\n\t\t}\r\n\r\n\t\t&:last-of-type {\r\n\t\t\tborder-radius: 0 $border-radius $border-radius 0;\r\n\t\t\tborder-left: 0;\r\n\t\t\tfont-weight: normal;\r\n\t\t}\r\n\t}\r\n}\r\n\r\ninput.wpr-switch__on:checked + label, input.wpr-switch__off:checked + label {\r\n\tbackground: #0085ba;\r\n\tborder-color: #0073aa #006799 #006799;\r\n\tbox-shadow: 0 1px 0 #006799;\r\n\tcolor: #fff;\r\n\ttext-decoration: none;\r\n\ttext-shadow: 0 -1px 1px #006799, 1px 0 1px #006799, 0 1px 1px #006799, -1px 0 1px #006799;\r\n\tmargin-bottom: 2px;\r\n}\r\ninput.wpr-switch__on:checked + label:hover, input.wpr-switch__off:checked + label:hover {\r\n\tbackground: #008ec2;\r\n\tborder-color: #006799;\r\n\tcolor: #fff;\r\n}\r\ninput.wpr-switch__off:checked + label, input.wpr-switch__off:checked + label:hover {\r\n\tcolor: #fff;\r\n\tbackground: #f5786f;\r\n\tborder-color: #bd4c44 #bd4c44 #bd4c44;\r\n\t-webkit-box-shadow: 0 1px 0 #bd4c44;\r\n\tbox-shadow: 0 1px 0 #bd4c44;\r\n\ttext-shadow: none;\r\n}\r\n\r\n// Demo importer popup\r\n#wp-review-demo-importer-popup {\r\n\tbackground: #fff;\r\n\tborder: 1px solid #eaeaeb;\r\n\tborder-radius: 3px;\r\n\tbox-shadow: 0 1px 0 #FFF inset, 0 1px 5px rgba(0, 0, 0, 0.1);\r\n\tposition: relative;\r\n\twidth: auto;\r\n\tmax-width: 600px;\r\n\tmargin: 50px auto;\r\n}\r\n\r\n#wp-review-demo-importer-modal-header {\r\n\tborder-bottom: 1px solid #eaeaeb;\r\n\tbackground: #FAFBFD;\r\n\tpadding: 12px 20px;\r\n\r\n\t.spinner {\r\n\t\tmargin-top: 14px;\r\n\t}\r\n}\r\n\r\n#wp-review-demo-importer-modal-header h2,\r\n#wp-review-demo-importer-modal-content h4 {\r\n\tpadding: 0!important;\r\n\tmargin: 0!important;\r\n}\r\n\r\n#wp-review-demo-importer-modal-header h2 {\r\n\tfont-size: 1.8em;\r\n\tline-height: 2em;\r\n}\r\n\r\n#wp-review-demo-importer-modal-content {\r\n\tbackground: #fff;\r\n\tpadding: 20px;\r\n\toverflow: auto;\r\n\theight: 300px;\r\n\twidth: 100%;\r\n\tbox-sizing: border-box;\r\n\r\n\tp {\r\n\t\tpadding: 0;\r\n\t\tmargin: 0;\r\n\t}\r\n}\r\n\r\n#wp-review-demo-importer-modal-footer {\r\n\tborder-top: 1px solid #eaeaeb;\r\n\tbackground: #FAFBFD;\r\n\tpadding: 12px 20px;\r\n\tdisplay: inline-block;\r\n\twidth: 100%;\r\n\tbox-sizing: border-box;\r\n}\r\n\r\n#wp-review-demo-importer-modal-footer-info {\r\n\tfloat: left;\r\n}\r\n\r\n#wp-review-demo-importer-modal-footer-button {\r\n\tfloat: right;\r\n\tdisplay: none;\r\n\ttext-transform: uppercase;\r\n}\r\n\r\n.wp-admin select.mce-selectbox {\r\n\tpadding: 0;\r\n}\r\n#wp-review-metabox-userReview .inside > {\r\n\tp:first-of-type label, p:nth-of-type(2) label, p:nth-of-type(3) label, p:nth-of-type(4) label { padding-right: 0; margin-left: 5px; }\r\n}\r\n\r\n.wp-review-subsite-wrapper {\r\n\tdisplay: none;\r\n}\r\n\r\n.wp-review-pro-text {\r\n\tcolor: #00cc66;\r\n}\r\n\r\n.wp-review-disabled {\r\n\tposition: relative;\r\n\tcursor: pointer;\r\n\r\n\t&:before {\r\n\t\tcontent: \" \";\r\n\t\tdisplay: block;\r\n\t\tposition: absolute;\r\n\t\ttop: 0;\r\n\t\tleft: 0;\r\n\t\tright: 0;\r\n\t\tbottom: 0;\r\n\t\tz-index: 100;\r\n\t}\r\n\r\n\t&.inline-block {\r\n\t\tdisplay: inline-block;\r\n\t}\r\n\r\n\t&.wpr-switch,\r\n\t&.has-bg {\r\n\t\topacity: 0.3;\r\n\t}\r\n}\r\n\r\noption.disabled {\r\n\tcolor: #aaa;\r\n}\r\n"]}
admin/class-wp-review-form-field.php CHANGED
File without changes
admin/class-wp-review-importer.php CHANGED
File without changes
admin/class-wp-review-options.php CHANGED
File without changes
admin/class-wpr-review-notice.php CHANGED
@@ -38,15 +38,15 @@ class WPR_Review_Notice {
38
* Shows the notice.
39
*/
40
public function show_notice() {
41
- //if ( ! $this->should_show() ) {
42
- //return;
43
- //}
44
?>
45
<div id="wpr-review-notice" class="notice is-dismissible wpr-review-notice">
46
<div class="wp-review-star dashicons dashicons-star-filled"></div>
47
<p><?php esc_html_e( 'Hey, we noticed you have created over 10 reviews from WP Review - that’s awesome! Could you please do us a BIG favor and give it a 5-star rating on WordPress to help us spread the word and boost our motivation?', 'wp-review' ); ?></p>
48
<div class="wpr-review-notice-btns">
49
- <a href="https://wordpress.org/support/plugin/wp-review/reviews/?filter=5#new-post" class="button button-primary wpr-review-notice-btn-dismiss" target="_blank">
50
<?php esc_html_e( 'Ok, you deserve it', 'wp-review' ); ?>
51
</a>
52
<button type="button" class="button button-link wpr-review-notice-btn-later">
@@ -123,7 +123,7 @@ class WPR_Review_Notice {
123
return false;
124
}
125
$query = wp_review_get_reviews_query( 'latest', array( 'post_num' => $this->review_count ) );
126
- return;
127
}
128
}
129
38
* Shows the notice.
39
*/
40
public function show_notice() {
41
+ if ( ! $this->should_show() ) {
42
+ return;
43
+ }
44
?>
45
<div id="wpr-review-notice" class="notice is-dismissible wpr-review-notice">
46
<div class="wp-review-star dashicons dashicons-star-filled"></div>
47
<p><?php esc_html_e( 'Hey, we noticed you have created over 10 reviews from WP Review - that’s awesome! Could you please do us a BIG favor and give it a 5-star rating on WordPress to help us spread the word and boost our motivation?', 'wp-review' ); ?></p>
48
<div class="wpr-review-notice-btns">
49
+ <a href="https://wordpress.org/support/plugin/wp-review/reviews/?rate=5#new-post" class="button button-primary wpr-review-notice-btn-dismiss" target="_blank">
50
<?php esc_html_e( 'Ok, you deserve it', 'wp-review' ); ?>
51
</a>
52
<button type="button" class="button button-link wpr-review-notice-btn-later">
123
return false;
124
}
125
$query = wp_review_get_reviews_query( 'latest', array( 'post_num' => $this->review_count ) );
126
+ return intval( $query->found_posts ) === $this->review_count;
127
}
128
}
129
admin/demo-importer.php CHANGED
File without changes
admin/demo-importer/class-wp-import.php CHANGED
File without changes
admin/demo-importer/class-wp-review-demo-importer.php CHANGED
File without changes
admin/demo-importer/parsers.php CHANGED
File without changes
admin/font-awesome-icons.php CHANGED
File without changes
admin/metaboxes.php CHANGED
@@ -475,8 +475,9 @@ function wp_review_render_meta_box_item( $post ) {
475
</div>
476
477
<div class="wp-review-field">
478
- <div class="wp-review-field-label">
479
<label><?php esc_html_e( 'Custom Width', 'wp-review' ); ?></label>
480
</div>
481
482
<div class="wp-review-field-option">
@@ -996,7 +997,6 @@ function wp_review_save_postdata( $post_id, $post ) {
996
'wp_review_heading' => filter_input( INPUT_POST, 'wp_review_heading', FILTER_SANITIZE_STRING ),
997
'wp_review_desc_title' => filter_input( INPUT_POST, 'wp_review_desc_title', FILTER_SANITIZE_STRING ),
998
'wp_review_desc' => ! empty( $_POST['wp_review_desc'] ) ? wp_kses_post( wp_unslash( $_POST['wp_review_desc'] ) ) : '',
999
- 'wp_review_hide_desc' => filter_input( INPUT_POST, 'wp_review_hide_desc', FILTER_SANITIZE_STRING ),
1000
'wp_review_userReview' => filter_input( INPUT_POST, 'wp_review_userReview', FILTER_SANITIZE_STRING ),
1001
'wp_review_total' => filter_input( INPUT_POST, 'wp_review_total', FILTER_SANITIZE_STRING ),
1002
'wp_review_color' => filter_input( INPUT_POST, 'wp_review_color', FILTER_SANITIZE_STRING ),
475
</div>
476
477
<div class="wp-review-field">
478
+ <div class="wp-review-disabled wp-review-field-label">
479
<label><?php esc_html_e( 'Custom Width', 'wp-review' ); ?></label>
480
+ <?php wp_review_print_pro_text(); ?>
481
</div>
482
483
<div class="wp-review-field-option">
997
'wp_review_heading' => filter_input( INPUT_POST, 'wp_review_heading', FILTER_SANITIZE_STRING ),
998
'wp_review_desc_title' => filter_input( INPUT_POST, 'wp_review_desc_title', FILTER_SANITIZE_STRING ),
999
'wp_review_desc' => ! empty( $_POST['wp_review_desc'] ) ? wp_kses_post( wp_unslash( $_POST['wp_review_desc'] ) ) : '',
1000
'wp_review_userReview' => filter_input( INPUT_POST, 'wp_review_userReview', FILTER_SANITIZE_STRING ),
1001
'wp_review_total' => filter_input( INPUT_POST, 'wp_review_total', FILTER_SANITIZE_STRING ),
1002
'wp_review_color' => filter_input( INPUT_POST, 'wp_review_color', FILTER_SANITIZE_STRING ),
admin/options/help.php CHANGED
File without changes
admin/options/import.php CHANGED
File without changes
admin/options/multisite.php CHANGED
File without changes
box-templates/aqua.php CHANGED
File without changes
box-templates/default.php CHANGED
File without changes
box-templates/global/partials/review-links.php CHANGED
File without changes
box-templates/global/partials/review-schema.php CHANGED
File without changes
comments/comments.php CHANGED
File without changes
filter-list.php ADDED
@@ -0,0 +1,543 @@
1
+ <?php
2
+ /*
3
+ List of available filters in WP Review plugin.
4
+ You can use these filterns in your theme in funtions.php file
5
+ and set different default settings.
6
+ */
7
+
8
+ /**
9
+ * Changes number of posts to import per request.
10
+ *
11
+ * @param int $numposts Number of posts.
12
+ * @return int
13
+ */
14
+ function mts_wp_review_import_numposts( $numposts ) {
15
+ return 20;
16
+ }
17
+ add_filter( 'wp_review_import_numposts', 'mts_wp_review_import_numposts' );
18
+
19
+ /**
20
+ * Excludes post types from review.
21
+ *
22
+ * @param array $excluded List of post types.
23
+ * @return array
24
+ */
25
+ function mts_wp_review_exclude_post_types( $excluded ) {
26
+ // default: $excluded = array('attachment');
27
+ $excluded[] = 'page'; // Don't allow reviews on pages.
28
+ return $excluded;
29
+ }
30
+ add_filter( 'wp_review_excluded_post_types', 'mts_wp_review_exclude_post_types' );
31
+
32
+ /**
33
+ * Hides fields in meta box.
34
+ *
35
+ * @param array $fields List of displayed fields.
36
+ * @return array
37
+ */
38
+ function mts_wp_review_hide_item_metabox_fields( $fields ) {
39
+ unset( $fields['location'], $fields['fontcolor'], $fields['bordercolor'] );
40
+ // Or remove all (except features which can't be removed) with:
41
+ // $fields = array();
42
+ return $fields;
43
+ }
44
+ add_filter( 'wp_review_metabox_item_fields', 'mts_wp_review_hide_item_metabox_fields' );
45
+
46
+ /**
47
+ * Hides rating types.
48
+ *
49
+ * @param array $types List of available types.
50
+ * @return array
51
+ */
52
+ function mts_wp_review_hide_rating_types( $types ) {
53
+ unset( $types['point'] );
54
+ return $types;
55
+ }
56
+ add_filter( 'wp_review_rating_types', 'mts_wp_review_hide_rating_types' );
57
+
58
+ /**
59
+ * Set colors for selected or all reviews.
60
+ *
61
+ * @param array $colors Color data.
62
+ * @param int $id Post ID.
63
+ * @return array
64
+ */
65
+ function mts_wp_review_new_review_colors($colors, $id) {
66
+ $colors['bgcolor1'] = '#ff0000';
67
+ return $colors;
68
+ }
69
+ add_filter( 'wp_review_colors', 'mts_wp_review_new_review_colors', 10, 2 );
70
+
71
+ /**
72
+ * Sets location for selected or all reviews.
73
+ *
74
+ * @param string $location Review location.
75
+ * @param int $id Post ID.
76
+ * @return string
77
+ */
78
+ function mts_new_review_location( $location, $id ) {
79
+ $location = 'bottom';
80
+ return $location;
81
+ }
82
+ add_filter( 'wp_review_location', 'mts_new_review_location', 10, 2 );
83
+
84
+ /**
85
+ * Shows post title as review heading when the review heading field is empty.
86
+ */
87
+ function mts_wp_review_item_title_fallback( $title ) {
88
+ return '<h5 class="review-title">' . get_the_title() . '</h5>';
89
+ }
90
+ add_filter( 'wp_review_item_title_fallback', 'mts_wp_review_item_title_fallback' );
91
+
92
+ /**
93
+ * Filters review description.
94
+ *
95
+ * @param string $desc Review description.
96
+ * @return string
97
+ */
98
+ function mts_wp_review_desc( $desc, $review_id = '' ) {
99
+ $desc .= '<br>Thank you';
100
+ return $desc;
101
+ }
102
+ add_filter( 'wp_review_desc', 'mts_wp_review_desc', 10, 2 );
103
+
104
+
105
+ /**
106
+ * Changes color css output for all templates.
107
+ *
108
+ * @param string $output CSS output, includes `<style` tag.
109
+ * @param int $review_id Review ID.
110
+ * @param array $colors Review colors data.
111
+ * @return string
112
+ */
113
+ function mts_wp_review_color_output( $output, $review_id, $colors ) {
114
+ $css = ".wp-review-{$review_id} { color: {$colors['color']}; }";
115
+ // $output = str_replace( '<style type="text/css">', '<style type="text/css">' . $css, $output ); // Add to the top.
116
+ $output = str_replace( '</style>', $css . '</style>', $output ); // Add to the bottom.
117
+ return $output;
118
+ }
119
+ apply_filters( 'wp_review_color_output', 'mts_wp_review_color_output', 10, 3 );
120
+
121
+ /**
122
+ * Changes color css output for a specific template
123
+ * Replace `aqua` with template name
124
+ * Eg: wp_review_box_template_dash_style.
125
+ *
126
+ * @param string $output CSS output, includes `<style` tag.
127
+ * @param int $review_id Review ID.
128
+ * @param array $colors Review colors data.
129
+ * @return string
130
+ */
131
+ function mts_wp_review_box_template_aqua_style( $output, $review_id, $colors ) {
132
+ $css = ".wp-review-{$review_id} { color: {$colors['color']}; }";
133
+ // $output = str_replace( '<style type="text/css">', '<style type="text/css">' . $css, $output ); // Add to the top.
134
+ $output = str_replace( '</style>', $css . '</style>', $output ); // Add to the bottom.
135
+ return $output;
136
+ }
137
+ apply_filters( 'wp_review_box_template_aqua_style', 'mts_wp_review_box_template_aqua_style', 10, 3 );
138
+
139
+ /**
140
+ * Changes review item image size.
141
+ *
142
+ * @param string $size Image size.
143
+ * @return string
144
+ */
145
+ function mts_wp_review_item_reviewed_image_size( $size ) {
146
+ return 'thumbnail';
147
+ }
148
+ add_filter( 'wp_review_item_reviewed_image_size', 'mts_wp_review_item_reviewed_image_size' );
149
+
150
+ // Hides review comments from comments list.
151
+ add_filter( 'wp_review_to_comment_type_list', '__return_false' );
152
+
153
+ /**
154
+ * Filters value of an option
155
+ * Hook: wp_review_option_{$option_name}.
156
+ *
157
+ * @param mixed $value Option value.
158
+ * @return mixed
159
+ */
160
+ function mts_wp_review_option_rating_icon( $value ) {
161
+ $value = 'fa fa-thumbs-up';
162
+ return $value;
163
+ }
164
+ add_filter( 'wp_review_option_rating_icon', 'mts_wp_review_option_rating_icon' );
165
+
166
+ /**
167
+ * Filters value of any options
168
+ *
169
+ * @param mixed $value Option value.
170
+ * @param string $option_name Option name.
171
+ * @return mixed
172
+ */
173
+ function mts_wp_review_option( $value, $option_name ) {
174
+ if ( 'rating_icon' == $option_name ) {
175
+ $value = 'fa fa-thumbs-up';
176
+ }
177
+ return $value;
178
+ }
179
+ add_filter( 'wp_review_option', 'mts_wp_review_option', 10, 2 );
180
+
181
+ /**
182
+ * Filters default review colors.
183
+ *
184
+ * @param array $colors Review colors.
185
+ * @return array
186
+ */
187
+ function mts_wp_review_default_colors( $colors ) {
188
+ $colors = array(
189
+ 'color' => '#1e73be',
190
+ 'inactive_color' => '',
191
+ 'fontcolor' => '#555555',
192
+ 'bgcolor1' => '#e7e7e7',
193
+ 'bgcolor2' => '#ffffff',
194
+ 'bordercolor' => '#e7e7e7',
195
+ );
196
+
197
+ return $colors;
198
+ }
199
+ add_filter( 'wp_review_default_colors', 'mts_wp_review_default_colors' );
200
+
201
+ /**
202
+ * Filters default location of review.
203
+ *
204
+ * @param string $location Review location.
205
+ * @return string
206
+ */
207
+ function mts_wp_review_default_location( $location ) {
208
+ $location = 'top'; // accepts 'top', 'bottom', 'custom'. Default is 'bottom'.
209
+
210
+ return $location;
211
+ }
212
+ add_filter( 'wp_review_default_location', 'mts_wp_review_default_location' );
213
+
214
+ /**
215
+ * Adds default items.
216
+ *
217
+ * @param array $items List of default items.
218
+ * @return array
219
+ */
220
+ function mts_add_default_items( $items ) {
221
+ $items = array(
222
+ __( 'Audio', 'theme-slug' ),
223
+ __( 'Visual', 'theme-slug' ),
224
+ __( 'UX', 'theme-slug' ),
225
+ __( 'Price', 'theme-slug' ),
226
+ );
227
+ return $items;
228
+ }
229
+ add_filter( 'wp_review_default_criteria', 'mts_add_default_items' );
230
+
231
+ /**
232
+ * Customizes wp_review_show_total() output.
233
+ *
234
+ * @param string $output The output.
235
+ * @param int $id Post ID.
236
+ * @param string $type Rating type.
237
+ * @param float $total Total value.
238
+ * @return string
239
+ */
240
+ function mts_wp_review_custom_review_total( $output, $id, $type, $total ) {
241
+ if ( get_the_title( $id ) == 'Special Post With Blue Rating' ) {
242
+ $color = '#0000FF';
243
+ $output = preg_replace( '/"review-type-[^"]+"/', '$0 style="background-color: ' . $color . ';"', $output );
244
+ }
245
+ return $output;
246
+ }
247
+ add_filter( 'wp_review_show_total', 'mts_wp_review_custom_review_total', 10, 4 );
248
+
249
+ /**
250
+ * Filters review total output.
251
+ *
252
+ * @param string $review Review total output.
253
+ * @param int $post_id Post ID.
254
+ * @param string $type Review type.
255
+ * @param float $total Review total value.
256
+ * @param string $class CSS class.
257
+ * @param array $args Custom arguments.
258
+ * @return string
259
+ */
260
+ function mts_wp_review_total_output( $review, $post_id, $type, $total, $class, $args ) {
261
+ $review = '<p>Total:</p>' . $review;
262
+ return $review;
263
+ }
264
+ add_filter( 'wp_review_total_output', 'mts_wp_review_total_output', 10, 6 );
265
+
266
+ /**
267
+ * Filters post review type.
268
+ *
269
+ * @param string $type Review type.
270
+ * @param int $post_id Post ID.
271
+ * @return string
272
+ */
273
+ function mts_wp_review_get_review_type( $type, $post_id ) {
274
+ $type = 'star'; // Force using star.
275
+ return $type;
276
+ }
277
+ add_filter( 'wp_review_get_review_type', 'mts_wp_review_get_review_type', 10, 2 );
278
+
279
+ /**
280
+ * Filters user review type.
281
+ *
282
+ * @param string $type Review type.
283
+ * @param int $post_id Post ID.
284
+ * @return string
285
+ */
286
+ function mts_wp_review_get_user_review_type( $type, $post_id ) {
287
+ $type = 'star'; // Force using star.
288
+ return $type;
289
+ }
290
+ add_filter( 'wp_review_get_user_review_type', 'mts_wp_review_get_user_review_type', 10, 2 );
291
+
292
+ /**
293
+ * Editing/overriding the review box template
294
+ *
295
+ * Create a 'wp-review' directory in your (child) theme folder,
296
+ * and make a copy there of /wp-review/box-templates/default.php
297
+ * to override it.
298
+ *
299
+ * Use different file name to add new template, which can be applied using filter:
300
+ *
301
+ */
302
+ function mts_wp_review_select_box_template( $template, $post_id ) {
303
+ // Change box template for specific post
304
+ if ( $post_id == '128' ) {
305
+ $template = 'new-box.php';
306
+ // "new-box.php" must be present in one of the template path folders (see below)
307
+ }
308
+ return $template;
309
+ }
310
+ add_filter( 'wp_review_get_box_template', 'mts_wp_review_select_box_template', 10, 2 );
311
+
312
+ /**
313
+ * Template Path Directories
314
+ *
315
+ * By default the plugin looks for box templates in:
316
+ * 1. wp-review/box-templates
317
+ * 2. theme_dir/wp-review
318
+ * 3. childtheme_dir/wp-review
319
+ * 4... Use filter to add more
320
+ *
321
+ */
322
+ function mts_wp_review_add_template_path( $paths ) {
323
+ // Add a new path where we look for review box template files
324
+ // The $paths holds default paths in reversed
325
+ $paths[] = '/absolute/path/to/additional/templates/dir';
326
+ return $paths;
327
+ }
328
+ add_filter( 'wp_review_box_template_paths', 'mts_wp_review_add_template_path' );
329
+
330
+ /**
331
+ * Filters review data. This data is passed to template.
332
+ *
333
+ * @param array $data Review data.
334
+ * @param array $args Custom arguments.
335
+ * @return array
336
+ */
337
+ function mts_wp_review_get_review_data( $data, $args ) {
338
+ $data['type'] = 'circle';
339
+ return $data;
340
+ }
341
+ add_filter( 'wp_review_get_review_data', 'mts_wp_review_get_review_data', 10, 2 );
342
+
343
+ /**
344
+ * Filters review box output.
345
+ *
346
+ * @param string $review Review box output.
347
+ * @param int $post_id Post ID.
348
+ * @param string $type Review type.
349
+ * @param float $total Review total.
350
+ * @param array $items Review items.
351
+ * @return string
352
+ */
353
+ function mts_wp_review_get_data( $review, $post_id, $type, $total, $items ) {
354
+ $review .= '<p>Custom content</p>';
355
+ return $review;
356
+ }
357
+ add_filter( 'wp_review_get_data', 'mts_wp_review_get_data', 10, 5 );
358
+
359
+ /**
360
+ * Changes reviewed item name.
361
+ *
362
+ * @param string $item_name Item name.
363
+ * @param array $review Review data.
364
+ * @return string
365
+ */
366
+ function mts_wp_review_get_reviewed_item_name( $item_name, $review ) {
367
+ // Modify the $item_name.
368
+ return $item_name;
369
+ }
370
+ add_filter( 'wp_review_get_reviewed_item_name', 'mts_wp_review_get_reviewed_item_name', 10, 2 );
371
+
372
+ /**
373
+ * Changes transient expired time.
374
+ *
375
+ * @param int $time Transient expired time.
376
+ * @return int
377
+ */
378
+ function mts_wp_review_transient_expired_time( $time ) {
379
+ $time = MONTH_IN_SECONDS;
380
+ return $time;
381
+ }
382
+ add_filter( 'wp_review_transient_expired_time', 'mts_wp_review_transient_expired_time' );
383
+
384
+ /**
385
+ * Filters reviews query args.
386
+ *
387
+ * @param array $query_args Query args.
388
+ * @param array $options Query options.
389
+ * @return array
390
+ */
391
+ function mts_wp_review_reviews_query_args( $query_args, $options ) {
392
+ $query_args['post_type'] = 'post'; // Only show post reviews.
393
+ return $query_args;
394
+ }
395
+ add_filter( 'wp_review_reviews_query_args', 'mts_wp_review_reviews_query_args' );
396
+
397
+ /**
398
+ * Hide selected review types in metabox dropdown.
399
+ *
400
+ * @deprecated 3.0.0 Now use `wp_review_rating_types` filter.
401
+ *
402
+ * @param array $types List of rating types.
403
+ * @return array
404
+ */
405
+ function mts_hide_review_types( $types ) {
406
+ unset( $types['point'], $types['percentage'] ); // remove types.
407
+ $types['star'] = __( 'Enable Reviews' ); // Change label.
408
+ return $types;
409
+ }
410
+ add_filter( 'wp_review_metabox_types', 'mts_hide_review_types' );
411
+
412
+ /**
413
+ * Add new rating types with wp_review_register_rating_type()
414
+ *
415
+ * Refer to existing rating template files, e.g.
416
+ * point-output.php, point-input.php
417
+ *
418
+ * This is an alternative way to add new rating type instead of using `wp_review_rating_types` hook.
419
+ */
420
+ function wp_review_register_additional_rating_types() {
421
+ wp_review_register_rating_type( 'star10', array(
422
+ 'label' => __( '10 Stars', 'wp-review' ),
423
+ 'max' => 10,
424
+ 'decimals' => 1,
425
+ 'value_text' => __( '%s Stars', 'wp-review' ),
426
+ 'value_text_singular' => __( '%s Star', 'wp-review' ),
427
+ 'input_template' => WP_REVIEW_DIR . 'rating-types/star10-input.php', // Replace with path to input template
428
+ 'output_template' => WP_REVIEW_DIR . 'rating-types/star10-output.php', // Replace with path to output template
429
+ ) );
430
+ }
431
+ add_action( 'init', 'wp_review_register_additional_rating_types' );
432
+
433
+ /**
434
+ * Adds new box template.
435
+ *
436
+ * @param array $templates Review box templates.
437
+ * @return array
438
+ */
439
+ function mts_wp_review_box_templates( $templates ) {
440
+ $templates['custom-template'] = array(
441
+ 'title' => __( 'Custom template', 'wp-review' ),
442
+ 'image' => WP_REVIEW_ASSETS . 'images/largethumb.png',
443
+ 'color' => '#1e73be',
444
+ 'fontcolor' => '#555',
445
+ 'bgcolor1' => '#e7e7e7',
446
+ 'bgcolor2' => '#fff',
447
+ 'bordercolor' => '#e7e7e7',
448
+ 'width' => 100, // In percentage.
449
+ 'align' => 'left',
450
+ 'custom_comment_colors' => 0,
451
+ 'comment_color' => '#ffb300',
452
+ 'rating_icon' => 'fa fa-star',
453
+ );
454
+ return $templates;
455
+ }
456
+ add_filter( 'wp_review_box_templates', 'mts_wp_review_box_templates' );
457
+
458
+
459
+ /**
460
+ * Changes the output of [wp-review] shortcode.
461
+ *
462
+ * @param string $output Shortcode output.
463
+ * @param array $atts Shortcode attributes.
464
+ * @return string
465
+ */
466
+ function mts_wp_review_shortcode( $output, $atts ) {
467
+ // Modify the output.
468
+ return $output;
469
+ }
470
+ add_filter( 'wp_review_shortcode', 'mts_wp_review_shortcode', 10, 2 );
471
+
472
+
473
+ /**
474
+ * Changes the output of [wp-review-total] shortcode.
475
+ *
476
+ * @param string $output Shortcode output.
477
+ * @param array $atts Shortcode attributes.
478
+ * @return string
479
+ */
480
+ function mts_wp_review_total_shortcode( $output, $atts ) {
481
+ // Modify the output.
482
+ return $output;
483
+ }
484
+ add_filter( 'wp_review_total_shortcode', 'mts_wp_review_total_shortcode', 10, 2 );
485
+
486
+
487
+ /**
488
+ * Changes the output of [wp-review-visitor-rating] shortcode.
489
+ *
490
+ * @param string $output Shortcode output.
491
+ * @param array $atts Shortcode attributes.
492
+ * @return string
493
+ */
494
+ function mts_wp_review_visitor_rating_shortcode( $output, $atts ) {
495
+ // Modify the output.
496
+ return $output;
497
+ }
498
+ add_filter( 'wp_review_visitor_rating_shortcode', 'mts_wp_review_visitor_rating_shortcode', 10, 2 );
499
+
500
+
501
+ /**
502
+ * Changes the output of [wp-review-comments-rating] shortcode.
503
+ *
504
+ * @param string $output Shortcode output.
505
+ * @param array $atts Shortcode attributes.
506
+ * @return string
507
+ */
508
+ function mts_wp_review_comments_rating_shortcode( $output, $atts ) {
509
+ // Modify the output.
510
+ return $output;
511
+ }
512
+ add_filter( 'wp_review_comments_rating_shortcode', 'mts_wp_review_comments_rating_shortcode', 10, 2 );
513
+
514
+
515
+ /**
516
+ * Changes the default length of review title in WP Review Widget.
517
+ *
518
+ * @param int $length Title length.
519
+ * @return int
520
+ */
521
+ function mts_wpt_title_length_default( $length ) {
522
+ $length = 10;
523
+ return $length;
524
+ }
525
+ add_filter( 'wpt_title_length_default', 'mts_wpt_title_length_default' );
526
+
527
+ printf( '<script type="application/ld+json">%s</script>', wp_json_encode( $markup ) );
528
+
529
+ // Set the review options in your theme
530
+ // These will be set as the global options for the plugin upon theme activation
531
+ $new_options = array(
532
+ 'colors' => array(
533
+ 'color' => '#dd3333',
534
+ 'inactive_color' => '#dd3333',
535
+ 'fontcolor' => '#555555',
536
+ 'bgcolor1' => '#e7e7e7',
537
+ 'bgcolor2' => '#ffffff',
538
+ 'bordercolor' => '#e7e7e7',
539
+ ),
540
+ );
541
+ if ( function_exists( 'wp_review_theme_defaults' ) ) {
542
+ wp_review_theme_defaults( $new_options );
543
+ }
includes/ajax.php CHANGED
File without changes
includes/comments.php CHANGED
File without changes
includes/demo/demo-content.xml CHANGED
File without changes
includes/enqueue.php CHANGED
@@ -30,9 +30,7 @@ function wp_review_enqueue() {
30
'wp_review-js',
31
'wpreview',
32
array(
33
- 'ajaxurl' => admin_url( 'admin-ajax.php' ),
34
- 'rateAllFeatures' => __( 'Please rate all features', 'wp-review' ),
35
- 'verifiedPurchase' => __( '(Verified purchase)', 'wp-review' ),
36
)
37
);
38
30
'wp_review-js',
31
'wpreview',
32
array(
33
+ 'ajaxurl' => admin_url( 'admin-ajax.php' ),
34
)
35
);
36
includes/functions.php CHANGED
@@ -1755,7 +1755,6 @@ function wp_review_get_colors( $post_id ) {
1755
$colors = array();
1756
$colors['custom_colors'] = $custom_colors;
1757
$colors['custom_location'] = get_post_meta( $post_id, 'wp_review_custom_location', true );
1758
- $colors['custom_width'] = get_post_meta( $post_id, 'wp_review_custom_width', true );
1759
$colors['color'] = get_post_meta( $post_id, 'wp_review_color', true );
1760
$colors['inactive_color'] = get_post_meta( $post_id, 'wp_review_inactive_color', true );
1761
$colors['type'] = wp_review_get_post_review_type( $post_id );
1755
$colors = array();
1756
$colors['custom_colors'] = $custom_colors;
1757
$colors['custom_location'] = get_post_meta( $post_id, 'wp_review_custom_location', true );
1758
$colors['color'] = get_post_meta( $post_id, 'wp_review_color', true );
1759
$colors['inactive_color'] = get_post_meta( $post_id, 'wp_review_inactive_color', true );
1760
$colors['type'] = wp_review_get_post_review_type( $post_id );
includes/schemas.php CHANGED
File without changes
includes/shortcodes.php CHANGED
File without changes
includes/widget.php CHANGED
File without changes
languages/wp-review.pot CHANGED
@@ -15,31 +15,13 @@ msgstr ""
15
"esc_html_x:1,2c\n"
16
"X-Poedit-SourceCharset: UTF-8\n"
17
"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
18
- "POT-Creation-Date: 2019-02-12 15:33+0000\n"
19
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
20
"X-Generator: Loco https://localise.biz/\n"
21
"X-Poedit-SearchPath-0: .\n"
22
"X-Poedit-SearchPathExcluded-0: *.js\n"
23
"Language: "
24
25
- #: filter-list.php:422
26
- msgid "10 Stars"
27
- msgstr ""
28
-
29
- #: filter-list.php:425 includes/ajax.php:174
30
- #, php-format
31
- msgid "%s Stars"
32
- msgstr ""
33
-
34
- #: filter-list.php:426
35
- #, php-format
36
- msgid "%s Star"
37
- msgstr ""
38
-
39
- #: filter-list.php:441
40
- msgid "Custom template"
41
- msgstr ""
42
-
43
#: template-list.php:17 admin/metaboxes.php:366 admin/options/review.php:520
44
msgid "Default"
45
msgstr ""
@@ -116,1969 +98,1863 @@ msgid ""
116
"running version %s. Please update PHP to run this plugin."
117
msgstr ""
118
119
- #: admin/admin.php:41
120
- #, php-format
121
- msgid "Are you sure you want to import from %s?"
122
msgstr ""
123
124
- #: admin/admin.php:42
125
- msgid "The server responded with an error. Try again."
126
msgstr ""
127
128
- #: admin/admin.php:43
129
- msgid ""
130
- "Are you sure you want to import options? All current options will be lost."
131
msgstr ""
132
133
- #: admin/admin.php:105 admin/metaboxes.php:1244 admin/options/hello-bar.php:173
134
- msgid "Select Image"
135
msgstr ""
136
137
- #: admin/admin.php:106
138
- msgid "Insert Image"
139
msgstr ""
140
141
- #: admin/admin.php:107 admin/metaboxes.php:1247
142
- msgid "Remove Image"
143
msgstr ""
144
145
- #: admin/admin.php:108
146
- msgid "Title"
147
msgstr ""
148
149
- #: admin/admin.php:109
150
- msgid "Search term"
151
msgstr ""
152
153
- #: admin/admin.php:110
154
- msgid "Search location"
155
msgstr ""
156
157
- #: admin/admin.php:111
158
- msgid "Limit"
159
msgstr ""
160
161
- #: admin/admin.php:112
162
- msgid "Radius"
163
msgstr ""
164
165
- #: admin/admin.php:113
166
- msgid "Categories"
167
msgstr ""
168
169
- #: admin/admin.php:114
170
- msgid "Locale"
171
msgstr ""
172
173
- #: admin/admin.php:115
174
- msgid "Offset"
175
msgstr ""
176
177
- #: admin/admin.php:116
178
- msgid "SortBy"
179
msgstr ""
180
181
- #: admin/admin.php:117
182
- msgid "Price range"
183
msgstr ""
184
185
- #: admin/admin.php:118
186
- msgid "Open now"
187
msgstr ""
188
189
- #: admin/admin.php:119
190
- msgid "Attributes"
191
msgstr ""
192
193
- #: admin/admin.php:120
194
- msgid "Business ID"
195
msgstr ""
196
197
- #: admin/admin.php:121
198
- msgid "Location lookup"
199
msgstr ""
200
201
- #: admin/admin.php:122
202
- msgid "Place ID"
203
msgstr ""
204
205
- #: admin/admin.php:123
206
- msgid "Place type"
207
msgstr ""
208
209
- #: admin/admin.php:124
210
- msgid "All"
211
- msgstr ""
212
213
- #: admin/admin.php:125
214
- msgid "Establishments"
215
msgstr ""
216
217
- #: admin/admin.php:126
218
- msgid "Addresses"
219
msgstr ""
220
221
- #: admin/admin.php:127
222
- msgid "Geocodes"
223
msgstr ""
224
225
- #: admin/admin.php:128
226
- msgid "Page ID"
227
msgstr ""
228
229
- #: admin/admin.php:129
230
- msgid "Generate token"
231
msgstr ""
232
233
- #: admin/admin.php:130
234
- msgid "Review IDs (separate by commas)"
235
msgstr ""
236
237
- #: admin/admin.php:131
238
- msgid "Review posts"
239
msgstr ""
240
241
- #: admin/admin.php:132
242
- msgid "Query type"
243
msgstr ""
244
245
- #: admin/admin.php:133
246
- msgid "Recent reviews"
247
msgstr ""
248
249
- #: admin/admin.php:134
250
- msgid "Top rated"
251
msgstr ""
252
253
- #: admin/admin.php:135
254
- msgid "Most voted"
255
msgstr ""
256
257
- #: admin/admin.php:136
258
- msgid "Category reviews"
259
msgstr ""
260
261
- #: admin/admin.php:137
262
- msgid "Review types"
263
msgstr ""
264
265
- #: admin/admin.php:138
266
- msgid "separate by commas"
267
msgstr ""
268
269
- #: admin/admin.php:139
270
- msgid "Category IDs"
271
msgstr ""
272
273
- #: admin/admin.php:140 includes/widgets/class-wp-review-tab-widget.php:185
274
- msgid "Allow pagination"
275
msgstr ""
276
277
- #: admin/admin.php:141 includes/widgets/class-wp-review-tab-widget.php:218
278
- msgid "Number of reviews"
279
msgstr ""
280
281
- #: admin/admin.php:142
282
- msgid "Title length (words)"
283
msgstr ""
284