Skip to content

Commit e8b1bcc

Browse files
authored
Merge pull request #25 from mypreview/rate-5stars-notice
Encourage leaving a 5-star review from regular users
2 parents 3653007 + e0f86cf commit e8b1bcc

File tree

9 files changed

+151
-98
lines changed

9 files changed

+151
-98
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Woo Store Vacation
2-
[![Woo Store Vacation Downloads](https://img.shields.io/wordpress/plugin/dt/woo-store-vacation.svg)](https://wordpress.org/plugins/woo-store-vacation) [![Woo Store Vacation Active Installs](https://img.shields.io/wordpress/plugin/installs/woo-store-vacation.svg)](https://wordpress.org/plugins/woo-store-vacation) [![Woo Store Vacation Ratings](https://img.shields.io/wordpress/plugin/r/woo-store-vacation.svg)](https://wordpress.org/plugins/woo-store-vacation) [![Woo Store Vacation Tested](https://img.shields.io/wordpress/plugin/tested/woo-store-vacation.svg)](https://wordpress.org/plugins/woo-store-vacation) [![Woo Store Vacation Version](https://img.shields.io/wordpress/plugin/v/woo-store-vacation.svg)](https://wordpress.org/plugins/woo-store-vacation) [![Woo Store Vacation License](https://img.shields.io/github/license/mypreview/woo-store-vacation)](https://wordpress.org/plugins/woo-store-vacation) [![Donate to support this plugin](https://img.shields.io/badge/☕-Buy%20me%20a%20coffee-%23fedd04)](https://www.buymeacoffee.com/mahdiyazdani)
2+
[![Woo Store Vacation Downloads](https://img.shields.io/wordpress/plugin/dt/woo-store-vacation.svg)](https://wordpress.org/plugins/woo-store-vacation) [![Woo Store Vacation Active Installs](https://img.shields.io/wordpress/plugin/installs/woo-store-vacation.svg)](https://wordpress.org/plugins/woo-store-vacation) [![Woo Store Vacation Ratings](https://img.shields.io/wordpress/plugin/r/woo-store-vacation.svg)](https://wordpress.org/plugins/woo-store-vacation) [![Woo Store Vacation Tested](https://img.shields.io/wordpress/plugin/tested/woo-store-vacation.svg)](https://wordpress.org/plugins/woo-store-vacation) [![Woo Store Vacation Version](https://img.shields.io/wordpress/plugin/v/woo-store-vacation.svg)](https://wordpress.org/plugins/woo-store-vacation) [![Woo Store Vacation License](https://img.shields.io/github/license/mypreview/woo-store-vacation)](https://wordpress.org/plugins/woo-store-vacation) [![Upgrade to premium version to unlock more features](https://img.shields.io/badge/💰-Upgrade%20to%20PRO-%23fedd04)](https://mypreview.one/woo-store-vacation)
33

4-
[![Woo Store Vacation](https://ps.w.org/woo-store-vacation/assets/banner-1544x500.jpg?rev=1542924)](https://mypreview.one/woo-store-vacation)
4+
[![Woo Store Vacation](https://ps.w.org/woo-store-vacation/assets/banner-1544x500.jpg)](https://mypreview.one/woo-store-vacation)
55

66
> ⚠️ If you are not a developer, please use the official [plugin post page](https://wordpress.org/plugins/woo-store-vacation "Download Woo Store Vacation plugin") on wordpress.org.
77

assets/js/minified/upsell.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/js/upsell.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
cache() {
1212
this.vars = {};
1313
this.els = {};
14+
this.vars.rate = '#woo-store-vacation-dismiss-rate .notice-dismiss';
1415
this.vars.upsell = '#woo-store-vacation-dismiss-upsell .notice-dismiss';
1516
},
1617

@@ -20,16 +21,19 @@
2021
},
2122

2223
events() {
23-
$( document.body ).on( 'click', this.vars.upsell, this.handleOnDismiss );
24+
$( document.body ).on( 'click', this.vars.rate, ( event ) => this.handleOnDismiss( event, 'rate' ) );
25+
$( document.body ).on( 'click', this.vars.upsell, ( event ) => this.handleOnDismiss( event, 'upsell' ) );
2426
},
2527

26-
handleOnDismiss() {
28+
handleOnDismiss( event, action ) {
29+
event.preventDefault();
30+
2731
$.ajax( {
2832
type: 'POST',
2933
url: ajaxurl,
3034
data: {
3135
_ajax_nonce: wsvVars.dismiss_nonce,
32-
action: 'woo_store_vacation_dismiss_upsell',
36+
action: `woo_store_vacation_dismiss_${ action }`,
3337
},
3438
dataType: 'json',
3539
} );

languages/woo-store-vacation.pot

Lines changed: 58 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,20 @@
22
# This file is distributed under the GPL-3.0.
33
msgid ""
44
msgstr ""
5-
"Project-Id-Version: Woo Store Vacation 1.6.0\n"
5+
"Project-Id-Version: Woo Store Vacation 1.6.1\n"
66
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woo-store-vacation\n"
77
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
88
"Language-Team: LANGUAGE <[email protected]>\n"
99
"MIME-Version: 1.0\n"
1010
"Content-Type: text/plain; charset=UTF-8\n"
1111
"Content-Transfer-Encoding: 8bit\n"
12-
"POT-Creation-Date: 2022-12-14T19:06:20+00:00\n"
12+
"POT-Creation-Date: 2022-12-23T20:37:17+00:00\n"
1313
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1414
"X-Generator: WP-CLI 2.7.1\n"
1515
"X-Domain: woo-store-vacation\n"
1616

1717
#. Plugin Name of the plugin
18-
#: woo-store-vacation.php:219
18+
#: woo-store-vacation.php:258
1919
msgid "Woo Store Vacation"
2020
msgstr ""
2121

@@ -32,263 +32,269 @@ msgstr ""
3232
msgid "MyPreview"
3333
msgstr ""
3434

35-
#: woo-store-vacation.php:131
35+
#: woo-store-vacation.php:133
3636
msgctxt "clone"
3737
msgid "Cloning instances of this class is forbidden."
3838
msgstr ""
3939

40-
#: woo-store-vacation.php:141
40+
#: woo-store-vacation.php:143
4141
msgctxt "wakeup"
4242
msgid "Unserializing instances of this class is forbidden."
4343
msgstr ""
4444

4545
#. translators: 1: Dashicon, 2: Open anchor tag, 3: Close anchor tag.
46-
#: woo-store-vacation.php:165
46+
#: woo-store-vacation.php:188
4747
msgctxt "admin notice"
4848
msgid "%1$s requires the following plugin: %2$sWooCommerce%3$s"
4949
msgstr ""
5050

5151
#. translators: 1: Dashicon, 2: HTML symbol, 3: Open anchor tag, 4: Close anchor tag.
52-
#: woo-store-vacation.php:178
52+
#: woo-store-vacation.php:201
5353
msgctxt "admin notice"
5454
msgid "%1$s Automate your closings by defining unlimited number of vacation dates, times (hours), and weekdays without any manual effort needed. %2$s %3$sUpgrade to PRO%4$s"
5555
msgstr ""
5656

57-
#: woo-store-vacation.php:204
57+
#. translators: 1: HTML symbol, 2: Plugin name, 3: Activation duration, 4: HTML symbol, 5: Open anchor tag, 6: Close anchor tag.
58+
#: woo-store-vacation.php:205
59+
msgctxt "admin notice"
60+
msgid "%1$s You have been using the %2$s plugin for %3$s now, do you like it as much as we like you? %4$s %5$sRate 5-Stars%6$s"
61+
msgstr ""
62+
63+
#: woo-store-vacation.php:243
5864
msgctxt "page title"
5965
msgid "Woo Store Vacation"
6066
msgstr ""
6167

62-
#: woo-store-vacation.php:204
68+
#: woo-store-vacation.php:243
6369
msgctxt "menu title"
6470
msgid "Store Vacation"
6571
msgstr ""
6672

67-
#: woo-store-vacation.php:230
73+
#: woo-store-vacation.php:269
6874
msgid "Settings"
6975
msgstr ""
7076

71-
#: woo-store-vacation.php:253
77+
#: woo-store-vacation.php:292
7278
msgid "Date time notes"
7379
msgstr ""
7480

75-
#: woo-store-vacation.php:261
81+
#: woo-store-vacation.php:300
7682
msgid "Current time:"
7783
msgstr ""
7884

79-
#: woo-store-vacation.php:268
85+
#: woo-store-vacation.php:307
8086
msgid "Time format:"
8187
msgstr ""
8288

83-
#: woo-store-vacation.php:270
89+
#: woo-store-vacation.php:309
8490
msgid "The database will store a time of 00:00:00 by default."
8591
msgstr ""
8692

87-
#: woo-store-vacation.php:275
93+
#: woo-store-vacation.php:314
8894
msgid "Timezone:"
8995
msgstr ""
9096

9197
#. translators: %s: WordPress timezone label/string.
92-
#: woo-store-vacation.php:279
98+
#: woo-store-vacation.php:318
9399
msgid "Date and time will be saved in \"%s\" timezone."
94100
msgstr ""
95101

96-
#: woo-store-vacation.php:285
102+
#: woo-store-vacation.php:324
97103
msgid "Date range:"
98104
msgstr ""
99105

100-
#: woo-store-vacation.php:287
106+
#: woo-store-vacation.php:326
101107
msgid "The date range is valid from midnight of the \"Start Date\" until the beginning of the \"End Date\" day."
102108
msgstr ""
103109

104-
#: woo-store-vacation.php:295
110+
#: woo-store-vacation.php:334
105111
msgctxt "upsell"
106112
msgid "Schedule your shop’s vacations"
107113
msgstr ""
108114

109-
#: woo-store-vacation.php:300
115+
#: woo-store-vacation.php:339
110116
msgctxt "upsell"
111117
msgid "Key features:"
112118
msgstr ""
113119

114120
#. translators: %s: HTML Symbol.
115-
#: woo-store-vacation.php:306
121+
#: woo-store-vacation.php:345
116122
msgctxt "upsell"
117123
msgid "%s One-click store close"
118124
msgstr ""
119125

120126
#. translators: %s: HTML Symbol.
121-
#: woo-store-vacation.php:312
127+
#: woo-store-vacation.php:351
122128
msgctxt "upsell"
123129
msgid "%s Exclude list of user roles"
124130
msgstr ""
125131

126132
#. translators: %s: HTML Symbol.
127-
#: woo-store-vacation.php:318
133+
#: woo-store-vacation.php:357
128134
msgctxt "upsell"
129135
msgid "%s Exclude list of product types"
130136
msgstr ""
131137

132138
#. translators: %s: HTML Symbol.
133-
#: woo-store-vacation.php:324
139+
#: woo-store-vacation.php:363
134140
msgctxt "upsell"
135141
msgid "%s Exclude products individually"
136142
msgstr ""
137143

138144
#. translators: %s: HTML Symbol.
139-
#: woo-store-vacation.php:330
145+
#: woo-store-vacation.php:369
140146
msgctxt "upsell"
141147
msgid "%s Display notice via shortcode or block"
142148
msgstr ""
143149

144150
#. translators: %s: HTML Symbol.
145-
#: woo-store-vacation.php:336
151+
#: woo-store-vacation.php:375
146152
msgctxt "upsell"
147153
msgid "%s Localized calendar support"
148154
msgstr ""
149155

150156
#. translators: %s: HTML Symbol.
151-
#: woo-store-vacation.php:342
157+
#: woo-store-vacation.php:381
152158
msgctxt "upsell"
153159
msgid "%s Allow Shop Managers to edit"
154160
msgstr ""
155161

156162
#. translators: %s: HTML Symbol.
157-
#: woo-store-vacation.php:348
163+
#: woo-store-vacation.php:387
158164
msgctxt "upsell"
159165
msgid "%s Unlimited date-time ranges"
160166
msgstr ""
161167

162168
#. translators: %s: HTML Symbol.
163-
#: woo-store-vacation.php:354
169+
#: woo-store-vacation.php:393
164170
msgctxt "upsell"
165171
msgid "%s Unlimited weekday hours"
166172
msgstr ""
167173

168174
#. translators: %s: HTML Symbol.
169-
#: woo-store-vacation.php:360
175+
#: woo-store-vacation.php:399
170176
msgctxt "upsell"
171177
msgid "%s Unlimited notifications"
172178
msgstr ""
173179

174180
#. translators: 1: Open anchor tag, 2: Close anchor tag.
175-
#: woo-store-vacation.php:368
181+
#: woo-store-vacation.php:407
176182
msgctxt "upsell"
177183
msgid "%1$sUpgrade to PRO &#8594;%2$s"
178184
msgstr ""
179185

180186
#. translators: %s: Abbr tag.
181-
#: woo-store-vacation.php:394
187+
#: woo-store-vacation.php:433
182188
msgctxt "settings field label"
183189
msgid "Set Vacation Mode %s"
184190
msgstr ""
185191

186-
#: woo-store-vacation.php:395
192+
#: woo-store-vacation.php:434
187193
msgctxt "settings field label"
188194
msgid "Disable Purchase"
189195
msgstr ""
190196

191197
#. translators: %s: Abbr tag.
192-
#: woo-store-vacation.php:397
198+
#: woo-store-vacation.php:436
193199
msgctxt "settings field label"
194200
msgid "Start Date %s"
195201
msgstr ""
196202

197203
#. translators: %s: Abbr tag.
198-
#: woo-store-vacation.php:399
204+
#: woo-store-vacation.php:438
199205
msgctxt "settings field label"
200206
msgid "End Date %s"
201207
msgstr ""
202208

203-
#: woo-store-vacation.php:400
209+
#: woo-store-vacation.php:439
204210
msgctxt "settings field label"
205211
msgid "Text Color"
206212
msgstr ""
207213

208-
#: woo-store-vacation.php:401
214+
#: woo-store-vacation.php:440
209215
msgctxt "settings field label"
210216
msgid "Background Color"
211217
msgstr ""
212218

213-
#: woo-store-vacation.php:402
219+
#: woo-store-vacation.php:441
214220
msgctxt "settings field label"
215221
msgid "Button Text"
216222
msgstr ""
217223

218-
#: woo-store-vacation.php:403
224+
#: woo-store-vacation.php:442
219225
msgctxt "settings field label"
220226
msgid "Button URL"
221227
msgstr ""
222228

223-
#: woo-store-vacation.php:404
229+
#: woo-store-vacation.php:443
224230
msgctxt "settings field label"
225231
msgid "Vacation Notice"
226232
msgstr ""
227233

228234
#. translators: 1: Open label tag, 2: Close label tag.
229-
#: woo-store-vacation.php:484
235+
#: woo-store-vacation.php:523
230236
msgctxt "settings field help"
231237
msgid "%1$sTurn on Vacation mode and close my store publicly.%2$s"
232238
msgstr ""
233239

234240
#. translators: 1: Open label tag, 2: Close label tag.
235-
#: woo-store-vacation.php:506
241+
#: woo-store-vacation.php:545
236242
msgctxt "settings field help"
237243
msgid "%1$sThis will disable eCommerce functionality and takes out the cart, checkout process and add to cart buttons.%2$s"
238244
msgstr ""
239245

240246
#. translators: 1: Open small tag, 2: Close small tag.
241-
#: woo-store-vacation.php:547
247+
#: woo-store-vacation.php:586
242248
msgctxt "error message"
243249
msgid "%1$sThe date has already passed.%2$s"
244250
msgstr ""
245251

246-
#: woo-store-vacation.php:618
252+
#: woo-store-vacation.php:657
247253
msgctxt "settings field placeholder"
248254
msgid "Contact me &#8594;"
249255
msgstr ""
250256

251-
#: woo-store-vacation.php:641
257+
#: woo-store-vacation.php:680
252258
msgctxt "settings field placeholder"
253259
msgid "https://www.example.com"
254260
msgstr ""
255261

256-
#: woo-store-vacation.php:664
262+
#: woo-store-vacation.php:703
257263
msgctxt "settings field placeholder"
258264
msgid "I am currently on vacation and products from my shop will be unavailable for next few days. Thank you for your patience and apologize for any inconvenience."
259265
msgstr ""
260266

261267
#. translators: 1: Open anchor tag, 2: Close anchor tag.
262-
#: woo-store-vacation.php:861
268+
#: woo-store-vacation.php:900
263269
msgctxt "plugin settings page"
264270
msgid "%1$sSettings%2$s"
265271
msgstr ""
266272

267273
#. translators: 1: Open anchor tag, 2: Close anchor tag.
268-
#: woo-store-vacation.php:882
274+
#: woo-store-vacation.php:921
269275
msgctxt "plugin link"
270276
msgid "%1$sCommunity support%2$s"
271277
msgstr ""
272278

273279
#. translators: 1: Open anchor tag, 2: Close anchor tag.
274-
#: woo-store-vacation.php:884
280+
#: woo-store-vacation.php:923
275281
msgctxt "plugin link"
276282
msgid "%1$sDonate%2$s"
277283
msgstr ""
278284

279285
#. translators: 1: Open anchor tag, 2: Close anchor tag.
280-
#: woo-store-vacation.php:884
286+
#: woo-store-vacation.php:923
281287
msgid "Donate to support this plugin"
282288
msgstr ""
283289

284290
#. translators: 1: Open anchor tag, 2: Close anchor tag.
285-
#: woo-store-vacation.php:886
291+
#: woo-store-vacation.php:925
286292
msgctxt "plugin link"
287293
msgid "%1$sUpgrade to PRO%2$s"
288294
msgstr ""
289295

290296
#. translators: 1: Dashicon, 2: Plugin name, 3: Open anchor tag, 4: Close anchor tag.
291-
#: woo-store-vacation.php:901
297+
#: woo-store-vacation.php:940
292298
msgctxt "admin notice"
293299
msgid "%1$s Thanks for installing %2$s plugin! To get started, visit the %3$splugin’s settings page%4$s."
294300
msgstr ""

0 commit comments

Comments
 (0)