WooCommerce Wishlist Plugin - Version 1.7.0

Version Description

Release Date - 10 May 2018

  • Fixed an Issue when "Remove Product" button disappears on mobile devices and tablets
  • Fixed "input-group" class compatibility issue with Bootstratp 4
  • Date of products addition changed to WP local time instead of server time
  • Freemius SDK removed completely from plugin
  • Added an alert when items or action are not selected before applying bulk actions on a Wishlist page
  • Improved compatibility with OceanWP WordPress theme
Download this release

Release Info

Developer templateinvaders
Plugin Icon 128x128 WooCommerce Wishlist Plugin
Version 1.7.0
Comparing to
See all releases

Code changes from version 1.6.2 to 1.7.0

Files changed (57) hide show
  1. asset/css/admin.css +3305 -3305
  2. asset/css/admin.min.css +2 -2
  3. asset/css/public.css +1955 -1947
  4. asset/css/public.min.css +1 -2
  5. asset/js/public.js +2 -1
  6. asset/js/public.min.js +1 -1
  7. freemius/LICENSE.txt +0 -674
  8. freemius/README.md +0 -253
  9. freemius/assets/css/admin/account.css +0 -1
  10. freemius/assets/css/admin/add-ons.css +0 -2
  11. freemius/assets/css/admin/affiliation.css +0 -1
  12. freemius/assets/css/admin/checkout.css +0 -1
  13. freemius/assets/css/admin/common.css +0 -2
  14. freemius/assets/css/admin/connect.css +0 -1
  15. freemius/assets/css/admin/deactivation-feedback.css +0 -1
  16. freemius/assets/css/admin/debug.css +0 -1
  17. freemius/assets/css/admin/dialog-boxes.css +0 -2
  18. freemius/assets/css/admin/index.php +0 -3
  19. freemius/assets/css/admin/license-activation.css +0 -1
  20. freemius/assets/css/customizer.css +0 -1
  21. freemius/assets/css/index.php +0 -3
  22. freemius/assets/img/index.php +0 -3
  23. freemius/assets/img/plugin-icon.png +0 -0
  24. freemius/assets/img/theme-icon.png +0 -0
  25. freemius/assets/img/ti-woocommerce-wishlist.png +0 -0
  26. freemius/assets/index.php +0 -3
  27. freemius/assets/js/index.php +0 -3
  28. freemius/assets/js/nojquery.ba-postmessage.js +0 -140
  29. freemius/assets/js/nojquery.ba-postmessage.min.js +0 -12
  30. freemius/assets/js/postmessage.js +0 -135
  31. freemius/assets/scss/_colors.scss +0 -65
  32. freemius/assets/scss/_functions.scss +0 -0
  33. freemius/assets/scss/_load.scss +0 -4
  34. freemius/assets/scss/_mixins.scss +0 -270
  35. freemius/assets/scss/_start.scss +0 -4
  36. freemius/assets/scss/_vars.scss +0 -6
  37. freemius/assets/scss/admin/_ajax-loader.scss +0 -49
  38. freemius/assets/scss/admin/_auto-install.scss +0 -33
  39. freemius/assets/scss/admin/_deactivation-feedback.scss +0 -55
  40. freemius/assets/scss/admin/_license-activation.scss +0 -7
  41. freemius/assets/scss/admin/_license-key-resend.scss +0 -68
  42. freemius/assets/scss/admin/_modal-common.scss +0 -186
  43. freemius/assets/scss/admin/_themes.scss +0 -21
  44. freemius/assets/scss/admin/account.scss +0 -256
  45. freemius/assets/scss/admin/add-ons.scss +0 -449
  46. freemius/assets/scss/admin/affiliation.scss +0 -97
  47. freemius/assets/scss/admin/checkout.scss +0 -5
  48. freemius/assets/scss/admin/common.scss +0 -218
  49. freemius/assets/scss/admin/connect.scss +0 -520
  50. freemius/assets/scss/admin/debug.scss +0 -135
  51. freemius/assets/scss/admin/dialog-boxes.scss +0 -7
  52. freemius/assets/scss/admin/index.php +0 -3
  53. freemius/assets/scss/customizer.scss +0 -125
  54. freemius/assets/scss/index.php +0 -3
  55. freemius/config.php +0 -331
  56. freemius/includes/class-freemius-abstract.php +0 -597
  57. freemius/includes/class-freemius.php +0 -14244
asset/css/admin.css CHANGED
@@ -1,3305 +1,3305 @@
1
- /* Misc */
2
-
3
- * {
4
- -webkit-box-sizing: border-box;
5
- -moz-box-sizing: border-box;
6
- box-sizing: border-box;
7
- }
8
- *:before,
9
- *:after {
10
- -webkit-box-sizing: border-box;
11
- -moz-box-sizing: border-box;
12
- box-sizing: border-box;
13
- }
14
-
15
- .tinv-wishlist-clearfix:before,
16
- .tinv-wishlist-clearfix:after,
17
- .container:before,
18
- .container:after,
19
- .container-fluid:before,
20
- .container-fluid:after,
21
- .row:before,
22
- .row:after,
23
- .form-horizontal .form-group:before,
24
- .form-horizontal .form-group:after,
25
- .form-group:before,
26
- .form-group:after,
27
- .tablenav:before,
28
- .tablenav:after,
29
- .tinvwl-panel:before,
30
- .tinvwl-panel:after {
31
- display: table;
32
- content: " ";
33
- }
34
- .tinv-wishlist-clearfix:after,
35
- .container:after,
36
- .container-fluid:after,
37
- .row:after,
38
- .form-horizontal .form-group:after,
39
- .form-group:after,
40
- .tablenav:after,
41
- .tinvwl-panel:after {
42
- clear: both;
43
- }
44
-
45
- .tinvwl-header table,
46
- .tinvwl-content table {
47
- border-spacing: 0;
48
- border-collapse: collapse;
49
- width: 100%;
50
- max-width: 100%;
51
- }
52
-
53
- .tinvwl-header td,
54
- .tinvwl-header th,
55
- .tinvwl-content td,
56
- .tinvwl-content th {
57
- padding: 0;
58
- }
59
-
60
- .tinvwl-header img,
61
- .tinvwl-content img {
62
- height: auto;
63
- max-width: 100%;
64
- }
65
-
66
- .tinvwl-header {
67
- /*margin-bottom: 40px;*/
68
- }
69
-
70
- /* General */
71
-
72
- #wpwrap {
73
- background: #f6f3ed;
74
- }
75
-
76
- #wpcontent {
77
- padding-left: 0;
78
- }
79
-
80
- #wpbody-content {
81
- padding-bottom: 135px;
82
- }
83
-
84
- #update-nag,
85
- .update-nag,
86
- .notice,
87
- div.error,
88
- div.updated {
89
- margin: 20px 0 0 40px;
90
- }
91
-
92
- .notice,
93
- div.error,
94
- div.updated {
95
- margin-right: 40px;
96
- }
97
-
98
- body .tinvwl-header,
99
- body .tinvwl-content {
100
- font-family: Arial, sans-serif;
101
- font-size: 14px;
102
- line-height: 1.429;
103
- color: #6b625a;
104
- }
105
-
106
- button,
107
- input,
108
- select,
109
- textarea {
110
- font-family: inherit;
111
- font-size: inherit;
112
- font-weight: inherit;
113
- }
114
-
115
- label,
116
- .tinv-label {
117
- display: block;
118
- font-size: 15px;
119
- font-family: "Open Sans", "Helvetica Neue", sans-serif;
120
- color: #291C09;
121
- font-weight: 600;
122
- margin-bottom: 7px;
123
- }
124
-
125
- h1, h2, h3, h4, h5, h6,
126
- .wrap h1 {
127
- color: #291c09;
128
- font-family: 'Open Sans', Arial, sans-serif;
129
- font-weight: normal;
130
- line-height: 1.313;
131
- padding: 0;
132
- margin: 0;
133
- border: 0;
134
- }
135
-
136
- h1,
137
- .wrap h1 {
138
- font-size: 30px;
139
- }
140
-
141
- h2 {
142
- font-size: 26px;
143
- }
144
-
145
- h3 {
146
- font-size: 22px;
147
- }
148
-
149
- h4 {
150
- font-size: 18px;
151
- }
152
-
153
- h5 {
154
- font-size: 14px;
155
- }
156
-
157
- h6 {
158
- font-size: 12px;
159
- }
160
-
161
- @media screen and (max-width: 1200px) {
162
- #update-nag,
163
- .update-nag,
164
- .notice,
165
- div.error,
166
- div.updated {
167
- margin-top: 20px;
168
- margin-left: 20px;
169
- margin-right: 20px;
170
- }
171
- }
172
-
173
- @media screen and (max-width: 782px) {
174
- .auto-fold #wpcontent {
175
- padding-left: 0;
176
- }
177
-
178
- #update-nag,
179
- .update-nag,
180
- .notice,
181
- div.error,
182
- div.updated {
183
- margin: 20px 0 0 0;
184
- }
185
-
186
- .notice,
187
- div.error,
188
- div.updated {
189
- margin-right: 0;
190
- }
191
- }
192
-
193
- /**
194
- * SubMenu
195
- */
196
- #toplevel_page_tinvwl ul ul{
197
- display:none;
198
- margin-left: 15px;
199
- position:absolute;
200
- }
201
- #toplevel_page_tinvwl ul li:hover ul, #toplevel_page_tinvwl ul li.current ul{
202
- display:block;
203
- left:145px;
204
- margin-left: 15px;
205
- position:absolute;
206
- top:0;
207
- }
208
- /**
209
- * Header Page
210
- */
211
- /*.tinvwl-header {
212
- background-color: #FFF;
213
- height: 48px;
214
- left: -20px;
215
- margin: 0;
216
- padding: 24px 40px;
217
- position: relative;
218
- right: 0;
219
- width: calc(100% - 60px);
220
- top: 0;
221
- }
222
- .tinvwl-header .title {
223
- font-size: 21px;
224
- line-height: 21px;
225
- font-weight: 400;
226
- float: left;
227
- }*/
228
- /*.tinvwl-header .status-panel {
229
- float: right;
230
- }*/
231
-
232
- /**
233
- * Status Panel
234
- */
235
- .status-panel > div {
236
- display: inline-block;
237
- margin-left: 21px;
238
- }
239
- .status-panel .button-link {
240
- background-color: #FF5739;
241
- color: #FFF;
242
- text-decoration: none;
243
- text-transform: uppercase;
244
- line-height: 10px;
245
- font-weight: 600;
246
- height: 48px;
247
- display: table-cell;
248
- border-radius: 5px;
249
- padding: 0 17px;
250
- vertical-align:middle;
251
- }
252
- .status-panel .button-link span::before {
253
- color: #ffdc00;
254
- display: inline-block;
255
- font: normal 12px/1 'dashicons';
256
- vertical-align: bottom;
257
- -webkit-font-smoothing: antialiased;
258
- content: "\f155";
259
- }
260
- .status-panel .button-round {
261
- border: 2px solid #f1f1f1;
262
- border-radius: 50%;
263
- width: 43px;
264
- padding-top: 5px;
265
- padding-left: 2px;
266
- height: 40px;
267
- display: table-cell;
268
- text-align: center;
269
- vertical-align: middle;
270
- }
271
- .status-panel .status-tutorial span::before {
272
- color: #515151;
273
- display: inline-block;
274
- font: normal 24px/1 'dashicons';
275
- vertical-align: middle;
276
- -webkit-font-smoothing: antialiased;
277
- content: "\f118";
278
- }
279
-
280
- /**
281
- * Message Status
282
- */
283
-
284
- .tinvwl-status-message {
285
- font-family: Arial, sans-serif;
286
- font-size: 14px;
287
- line-height: 1.429;
288
- margin-top: 40px;
289
- color: #6b625a;
290
- border-top: 2px solid #f6f3ed;
291
- }
292
-
293
- .tinvwl-status-message .tinvwl-title {
294
- padding: 13px 20px;
295
- float: left;
296
- width: 142px;
297
- font-weight: bold;
298
- }
299
-
300
- .tinvwl-status-message.type-error .tinvwl-title,
301
- .tinvwl-status-message.type-tip .tinvwl-title {
302
- color: #fff;
303
- }
304
-
305
- .tinvwl-status-message.type-attention .tinvwl-title {
306
- color: #23282d;
307
- }
308
-
309
- .tinvwl-status-message.type-error .tinvwl-title {
310
- background: #ff3814;
311
- }
312
-
313
- .tinvwl-status-message.type-tip .tinvwl-title {
314
- background: #30aec4;
315
- }
316
-
317
- .tinvwl-status-message.type-attention .tinvwl-title {
318
- background: #ffe900;
319
- }
320
-
321
- .tinvwl-status-message .tinvwl-title i {
322
- margin-right: 10px;
323
- }
324
-
325
- .tinvwl-status-message.type-error > .tinvwl-title > i:before {
326
- content: "\f00d";
327
- }
328
- .tinvwl-status-message.type-tip > .tinvwl-title > i:before {
329
- content: "\f05a";
330
- }
331
- .tinvwl-status-message.type-attention > .tinvwl-title > i:before {
332
- content: "\f071";
333
- }
334
-
335
- .tinvwl-status-message .tinvwl-message {
336
- padding: 13px 20px;
337
- overflow: hidden;
338
- height: 100%;
339
- background: #faf9f7;
340
- }
341
-
342
- @media screen and (max-width: 782px) {
343
- .tinvwl-status-message {
344
- margin-top: 20px;
345
- }
346
- }
347
-
348
- /**
349
- * Form Elements
350
- */
351
- .tinvwl-content label {
352
- /*font-size: 14px;
353
- font-weight: 600;
354
- margin: 2px;*/
355
- /*line-height: 42px;*/
356
- }
357
-
358
- .tinvwl-content a {
359
- text-decoration: none;
360
- color: #30aec4;
361
- }
362
-
363
- .tinvwl-content a:hover,
364
- .tinvwl-content a:active,
365
- .tinvwl-content a:focus {
366
- color: #524737;
367
- }
368
-
369
- .tinvwl-content input[type=text],
370
- .tinvwl-content input[type=password],
371
- .tinvwl-content input[type=checkbox],
372
- .tinvwl-content input[type=color],
373
- .tinvwl-content input[type=date],
374
- .tinvwl-content input[type=datetime],
375
- .tinvwl-content input[type=datetime-local],
376
- .tinvwl-content input[type=email],
377
- .tinvwl-content input[type=month],
378
- .tinvwl-content input[type=number],
379
- .tinvwl-content input[type=radio],
380
- .tinvwl-content input[type=tel],
381
- .tinvwl-content input[type=time],
382
- .tinvwl-content input[type=url],
383
- .tinvwl-content input[type=week],
384
- .tinvwl-content input[type=search],
385
- .tinvwl-content select,
386
- .tinvwl-content textarea {
387
- line-height: 1.429;
388
- padding: 9px 13px;
389
- margin: 0;
390
- color: #4f4639;
391
- border: 1px solid rgba(0, 0, 0, .14);
392
- -webkit-box-shadow: inset 1px 1px 6px 0 rgba(170, 157, 137, .14);
393
- box-shadow: inset 1px 1px 6px 0 rgba(170, 157, 137, .14);
394
- }
395
-
396
- .tinvwl-content textarea {
397
- height: 70px;
398
- }
399
-
400
- .tinvwl-content input[type=text],
401
- .tinvwl-content input[type=password],
402
- .tinvwl-content input[type=color],
403
- .tinvwl-content input[type=date],
404
- .tinvwl-content input[type=datetime],
405
- .tinvwl-content input[type=datetime-local],
406
- .tinvwl-content input[type=email],
407
- .tinvwl-content input[type=month],
408
- .tinvwl-content input[type=number],
409
- .tinvwl-content input[type=tel],
410
- .tinvwl-content input[type=time],
411
- .tinvwl-content input[type=url],
412
- .tinvwl-content input[type=week],
413
- .tinvwl-content input[type=search],
414
- .tinvwl-content select {
415
- height: 42px;
416
- -webkit-border-radius: 4px;
417
- -moz-border-radius: 4px;
418
- border-radius: 4px;
419
- }
420
-
421
- .tinvwl-content .tablenav input[type=search] {
422
- height: 35px;
423
- width: 210px;
424
- padding: 9px 13px;
425
- -webkit-box-shadow: none;
426
- box-shadow: none;
427
- border: none;
428
- background: #f4f3ef;
429
- }
430
-
431
- .tinvwl-content .tablenav input[type=search] + input[type=submit],
432
- .tinvwl-content .tablenav input[type=search] + button[type=submit] {
433
- vertical-align: middle;
434
- }
435
-
436
- .tinvwl-content .tablenav .tinvwl-select-wrap + input[type=submit],
437
- .tinvwl-content .tablenav input[type=search] + input[type=submit],
438
- .tinvwl-content .tablenav input[type=search] + button[type=submit] {
439
- float: right;
440
- margin-left: 8px !important;
441
- }
442
-
443
- .tinvwl-content input[type=text]:disabled,
444
- .tinvwl-content input[type=password]:disabled,
445
- .tinvwl-content input[type=color]:disabled,
446
- .tinvwl-content input[type=date]:disabled,
447
- .tinvwl-content input[type=datetime]:disabled,
448
- .tinvwl-content input[type=datetime-local]:disabled,
449
- .tinvwl-content input[type=email]:disabled,
450
- .tinvwl-content input[type=month]:disabled,
451
- .tinvwl-content input[type=number]:disabled,
452
- .tinvwl-content input[type=tel]:disabled,
453
- .tinvwl-content input[type=time]:disabled,
454
- .tinvwl-content input[type=url]:disabled,
455
- .tinvwl-content input[type=week]:disabled,
456
- .tinvwl-content input[type=search]:disabled,
457
- .tinvwl-content select:disabled {
458
- font-size: 15px;
459
- font-family: "Open Sans", "Helvetica Neue", sans-serif;
460
- font-weight: 600;
461
- color: #291C09;
462
- background-color: #f6f3ed;
463
- border-color: #f6f3ed;
464
- }
465
-
466
- .tinvwl-content select {
467
- font-family: Arial, sans-serif;
468
- font-size: 14px;
469
- -webkit-appearance: none;
470
- -moz-appearance: none;
471
- appearance: none;
472
- cursor: pointer;
473
- padding: 9px 40px 9px 13px;
474
- background-color: #fff;
475
- background-image: url('../img/select_caret.png');
476
- background-repeat: no-repeat;
477
- background-position: 96% center;
478
- background-position: calc(100% - 15px) center;
479
- }
480
-
481
- @media screen and (max-width: 782px) {
482
- input, textarea {
483
- font-size: 14px;
484
- }
485
-
486
- #wpbody .tinvwl-content select {
487
- height: 42px;
488
- font-size: 14px;
489
- }
490
- }
491
-
492
- .tinvwl-content select[multiple="multiple"] {
493
- padding: 9px 13px;
494
- background: #fff;
495
- }
496
-
497
- .tinvwl-content .tinvwl-select.grey {
498
- font-size: 14px;
499
- font-family: "Arial", "Helvetica Neue", Helvetica, sans-serif;
500
- padding: 8px 11px;
501
- height: 35px;
502
- border: none;
503
- color: #5D5D5D;
504
- background: #f4f3ef;
505
- }
506
-
507
- .tinvwl-select-wrap {
508
- position: relative;
509
- display: inline-block;
510
- vertical-align: middle;
511
- cursor: pointer;
512
- }
513
-
514
- .tinvwl-content select.tinvwl-select.grey {
515
- padding-right: 47px;
516
- margin: 0;
517
- -webkit-border-radius: 4px;
518
- -moz-border-radius: 4px;
519
- border-radius: 4px;
520
- }
521
-
522
- .tinvwl-select + .tinvwl-caret {
523
- pointer-events: none;
524
- display: inline-block;
525
- position: absolute;
526
- top: 0;
527
- right: 0;
528
- width: 36px;
529
- height: 36px;
530
- line-height: 36px;
531
- text-align: center;
532
- -webkit-border-radius: 0 4px 4px 0;
533
- -moz-border-radius: 0 4px 4px 0;
534
- border-radius: 0 4px 4px 0;
535
- }
536
-
537
- .tinvwl-select + .tinvwl-caret span {
538
- display: inline-block;
539
- width: 13px;
540
- height: 8px;
541
- background: url('../img/chevron_down.png') no-repeat center;
542
- background-position: 0 -10px;
543
- }
544
-
545
- .tinvwl-select:hover + .tinvwl-caret {
546
- background: #3e3e3e;
547
- }
548
-
549
- .tinvwl-select:hover + .tinvwl-caret span {
550
- background-position: 0 0;
551
- }
552
-
553
-
554
- /* Buttons */
555
-
556
- .tinvwl-content .tinvwl-nav {
557
- margin: 0 40px;
558
- }
559
-
560
- .tinvwl-content .tinvwl-panel + .tinvwl-nav {
561
- margin-top: 40px;
562
- }
563
-
564
- .tinvwl-nav .tinvwl-prev {
565
- float: left;
566
- }
567
-
568
- .tinvwl-nav .tinvwl-prev .tinvwl-btn {
569
- float: left;
570
- }
571
-
572
- .tinvwl-nav .tinvwl-next {
573
- float: right;
574
- text-align: right;
575
- }
576
-
577
- .tinvwl-nav .tinvwl-next .tinvwl-btn {
578
- /*float: right;*/
579
- }
580
-
581
- @media (max-width: 1199px) {
582
- .tinvwl-nav .tinvwl-prev,
583
- .tinvwl-nav .tinvwl-next {
584
- /*float: none;
585
- text-align: left;*/
586
- }
587
- }
588
-
589
- .tinvwl-nav .tinvwl-btn + .tinvwl-btn {
590
- margin-left: 20px;
591
- }
592
-
593
- .tinvwl-panel.only-button.w-bg {
594
- background: none;
595
- overflow: visible;
596
- }
597
-
598
- .tinvwl-panel.only-button.w-shadow {
599
- -webkit-box-shadow: none;
600
- box-shadow: none;
601
- overflow: visible;
602
- }
603
-
604
- .tinvwl-panel.only-button thead,
605
- .tinvwl-panel.only-button tfoot {
606
- display: none;
607
- }
608
-
609
- .tinvwl-panel.only-button .control-label {
610
- display: none;
611
- }
612
-
613
- .tinvwl-panel.only-button .form-group {
614
- margin-bottom: 0;
615
- }
616
-
617
- .tinvwl-panel.only-button .form-control {
618
- display: inline-block;
619
- width: auto;
620
- }
621
-
622
- .tinvwl-panel.only-button .tinvwl-table > tbody > tr > td {
623
- padding: 0;
624
- }
625
-
626
- /* reset button */
627
- .tinvwl-panel.only-button #save_buttons--setting_save,
628
- .tinvwl-panel.only-button #save_buttons--setting_reset{
629
- display: inline-block;
630
- }
631
- .tinvwl-panel.only-button #save_buttons--setting_reset{
632
- float:right;
633
- }
634
- .tinvwl-panel.only-button #save_buttons--setting_reset .form-control{
635
- background-color: #ffffff;
636
- color: #3e3e3e;
637
- }
638
- .tinvwl-panel.only-button #save_buttons--setting_reset .tinvwl-btn.split span{
639
- background: #fbfaf9;
640
- }
641
- .tinvwl-panel.only-button #save_buttons--setting_reset .form-control:hover{
642
- color: #fff;
643
- background-color: #515151;
644
- }
645
- .tinvwl-panel.only-button #save_buttons--setting_reset .tinvwl-btn.split:hover span{
646
- background: #434343;
647
- }
648
-
649
- #doaction,
650
- #doaction2,
651
- #post-query-submit {
652
- margin: 0;
653
- }
654
-
655
- button,
656
- input[type="submit"],
657
- .tinvwl-btn {
658
- display: inline-block;
659
- vertical-align: middle;
660
- margin: 0;
661
- font-family: 'Open Sans', Arial, sans-serif;
662
- font-size: 14px;
663
- line-height: normal;
664
- cursor: pointer;
665
- text-decoration: none;
666
- }
667
-
668
- .tinvwl-btn,
669
- a.tinvwl-btn {
670
- padding: 11px 19px 12px 18px;
671
- font-weight: 800;
672
- text-align: center;
673
- text-transform: uppercase;
674
- letter-spacing: -.025em;
675
- border: none;
676
- -webkit-border-radius: 2px;
677
- -moz-border-radius: 2px;
678
- border-radius: 2px;
679
- color: #fff;
680
- background-color: #96b100;
681
- }
682
-
683
- .tinvwl-btn.large {
684
- padding: 14px 19px 14px 18px;
685
- }
686
-
687
- .tinvwl-btn.small {
688
- padding: 6px 11px 7px;
689
- }
690
-
691
- .tinvwl-btn.smaller {
692
- /*padding: 7px 15px;*/
693
- padding: 11px 18px 12px;
694
- }
695
-
696
- .tinvwl-btn.red,
697
- .tinvwl-btn.green,
698
- .tinvwl-btn.dark-green,
699
- .tinvwl-btn.black {
700
- font-weight: 800;
701
- }
702
-
703
- .tinvwl-btn.grey {
704
- /*padding: 6px 11px 7px;*/
705
- margin: 0;
706
- padding: 8px 12px;
707
- font-weight: bold;
708
- /*letter-spacing: 0;*/
709
- color: #3e3e3e;
710
- background: #F4F3EF;
711
- }
712
-
713
- .tinvwl-btn.grey.large {
714
- font-weight: 800;
715
- padding: 14px 19px 14px 18px;
716
- }
717
-
718
- .tinvwl-btn.grey.w-icon {
719
- letter-spacing: -.025em;
720
- }
721
-
722
- .tinvwl-btn.red {
723
- color: #fff;
724
- background-color: #ff5739;
725
- }
726
-
727
- .tinvwl-btn.orange {
728
- color: #fff;
729
- background-color: #FF9F07;
730
- }
731
-
732
- .tinvwl-btn.dark-green {
733
- /*color: #fff;*/
734
- /*background-color: #96b100;*/
735
- }
736
-
737
- .tinvwl-btn.white.smaller {
738
- font-size: 14px;
739
- font-weight: bold;
740
- letter-spacing: -.05em;
741
- padding: 10px 15px 11px;
742
- border: 1px solid rgba(0,0,0,.14);
743
- box-shadow: 1px 2px 4px 0 rgba(0, 0, 0, 0.1);
744
- }
745
-
746
- .tinvwl-btn.white.small {
747
- font-family: Arial, sans-serif;
748
- font-size: 14px;
749
- text-transform: none;
750
- font-weight: normal;
751
- border: 1px solid rgba(0,0,0,.14);
752
- box-shadow: 1px 2px 4px 0 rgba(0, 0, 0, 0.1);
753
- }
754
-
755
- .tinvwl-btn.white.small {
756
- padding: 9px 18px;
757
- color: #4f4639;
758
- }
759
-
760
- .tinvwl-btn.small.white:hover,
761
- .tinvwl-btn.small.white:active,
762
- .tinvwl-btn.small.white:focus {
763
- color: #fff;
764
- }
765
-
766
- .tinvwl-btn.white {
767
- color: #291c09;
768
- background: #fff;
769
- }
770
-
771
- .tinvwl-btn.white.no-txt {
772
- padding: 12px 16px;
773
- }
774
-
775
- .tinvwl-btn.white.small.no-txt {
776
- padding: 9px 12px;
777
- }
778
-
779
- .tinvwl-btn.white i {
780
- color: #6b625a;
781
- margin-right: 11px;
782
- }
783
-
784
- .tinvwl-btn.w-icon {
785
- font-weight: 800;
786
- }
787
-
788
- .tinvwl-btn.w-icon i {
789
- margin-right: 16px;
790
- }
791
-
792
- .tinvwl-btn.round.w-icon i {
793
- margin-right: 15px;
794
- font-size: 16px;
795
- }
796
-
797
- .tinvwl-btn.w-icon i.fa-graduation-cap {
798
- vertical-align: text-bottom;
799
- }
800
-
801
- .tinvwl-btn.red.w-icon i {
802
- margin-right: 13px;
803
- }
804
-
805
- .tinvwl-btn.xl-icon i,
806
- .tinvwl-btn.round.xl-icon i {
807
- font-size: 17px;
808
- margin-right: 15px;
809
- }
810
-
811
- .tinvwl-btn.lg-icon i {
812
- font-size: 15px;
813
- }
814
-
815
- .tinvwl-btn.md-icon i,
816
- .tinvwl-btn.round.md-icon i {
817
- font-size: 14px;
818
- }
819
-
820
- .tinvwl-btn.sm-icon i {
821
- font-size: 13px;
822
- }
823
-
824
- .tinvwl-btn.xs-icon i {
825
- font-size: 11px;
826
- vertical-align: 1%;
827
- }
828
-
829
- .tinvwl-btn.white.no-txt i {
830
- margin-right: 0;
831
- }
832
-
833
- .tinvwl-btn.white:hover i,
834
- .tinvwl-btn.white:active i,
835
- .tinvwl-btn.white:focus i {
836
- color: #fff;
837
- }
838
-
839
- .tinvwl-btn.green {
840
- color: #fff;
841
- background-color: #a9c203;
842
- }
843
-
844
- .tinvwl-btn.black {
845
- color: #fff;
846
- background-color: #515151;
847
- }
848
-
849
- .tinvwl-btn.smaller-txt {
850
- font-size: 12px;
851
- padding: 15px 20px;
852
- }
853
-
854
- .tinvwl-btn.medium {
855
- letter-spacing: 0;
856
- }
857
-
858
- .tinvwl-btn.medium.smaller-txt {
859
- padding: 9px 16px;
860
- }
861
-
862
- .tinvwl-btn.round {
863
- -webkit-border-radius: 25px;
864
- -moz-border-radius: 25px;
865
- border-radius: 25px;
866
- padding: 15px 28px 16px;
867
- }
868
-
869
- .tinvwl-btn.round.red {
870
- /*padding: 15px 22px 16px;*/
871
- padding: 16px 30px;
872
- }
873
-
874
- .tinvwl-btn.split {
875
- padding: 0 26px 0 0;
876
- }
877
-
878
- .tinvwl-btn.split span {
879
- display: inline-block;
880
- text-align: center;
881
- width: 46px;
882
- padding: 14px 0;
883
- margin-right: 14px;
884
- -webkit-border-radius: 4px 0 0 4px;
885
- -moz-border-radius: 4px 0 0 4px;
886
- border-radius: 4px 0 0 4px;
887
- background: #8aa300;
888
- }
889
-
890
- .tinvwl-btn.split:hover span,
891
- .tinvwl-btn.split:active span,
892
- .tinvwl-btn.split:focus span {
893
- background: #434343;
894
- }
895
-
896
- .tinvwl-btn.split.green span {
897
- background: #b9cf09;
898
- }
899
-
900
- .tinvwl-btn.split.black span {
901
- background: #434343;
902
- }
903
-
904
- .tinvwl-btn.split span i {
905
- font-size: 17px;
906
- }
907
-
908
- .tinvwl-btn:not(:disabled):hover,
909
- .tinvwl-btn:not(:disabled):active,
910
- .tinvwl-btn:not(:disabled):focus,
911
- a.tinvwl-btn:not(:disabled):hover,
912
- a.tinvwl-btn:not(:disabled):active,
913
- a.tinvwl-btn:not(:disabled):focus {
914
- color: #fff;
915
- /*background: #3e3e3e;*/
916
- background-color: #515151;
917
- }
918
-
919
- /* Icons */
920
-
921
- .tinvwl-header .icon.border-grey {
922
- position: relative;
923
- display: inline-block;
924
- width: 45px;
925
- height: 45px;
926
- line-height: 45px;
927
- text-align: center;
928
- background: #fff;
929
- border: 2px solid #f1f1f1;
930
- -webkit-border-radius: 50%;
931
- -moz-border-radius: 50%;
932
- border-radius: 50%;
933
- color: #3e3e3e;
934
- }
935
-
936
- .tinvwl-header .icon.border-grey:hover {
937
- border-color: #515151;
938
- }
939
-
940
- .tinvwl-header .icon.w-lines {
941
- position: relative;
942
- padding: 0 30px;
943
- }
944
-
945
- .tinvwl-header .icon.w-lines:before,
946
- .tinvwl-header .icon.w-lines:after {
947
- content: '';
948
- position: absolute;
949
- top: 50%;
950
- top: calc(50% - 1px);
951
- width: 17px;
952
- height: 1px;
953
- background: rgba(0, 0, 0, .12);
954
- }
955
-
956
- .tinvwl-header .icon.w-lines:before {
957
- left: 0;
958
- }
959
- .tinvwl-header .icon.w-lines:after {
960
- right: 0;
961
- }
962
-
963
- .tinvwl-header .icon .badge {
964
- position: absolute;
965
- top: -5px;
966
- right: -10px;
967
- display: inline-block;
968
- min-width: 26px;
969
- height: 26px;
970
- font-size: 11px;
971
- line-height: 19px;
972
- font-weight: bold;
973
- background: #ff5739;
974
- border: 3px solid #ffffff;
975
- color: #ffffff;
976
- -webkit-border-radius: 50%;
977
- -moz-border-radius: 50%;
978
- border-radius: 50%;
979
- }
980
-
981
- .tinvwl-header {
982
- padding: 21px 40px;
983
- margin-bottom: 40px;
984
- background: #ffffff;
985
- }
986
-
987
- .tinwl-logo-title {
988
- }
989
-
990
- .tinwl-logo i.logo_heart {
991
- min-width: 54px;
992
- }
993
-
994
- .tinwl-logo h2 {
995
- font-size: 18px;
996
- font-weight: bold;
997
- text-transform: uppercase;
998
- line-height: 1;
999
- padding-left: 10px;
1000
- }
1001
-
1002
- .tinvwl-header .tinvwl-title {
1003
- padding-left: 28px;
1004
- margin-left: 28px;
1005
- border-left: 1px solid #dcddde;
1006
- }
1007
-
1008
- .tinvwl-header h1 {
1009
- color: #3e3e3e;
1010
- padding: 0;
1011
- }
1012
-
1013
- .tinvwl-header .tinvwl-status-panel {
1014
- margin-top: -12px;
1015
- }
1016
-
1017
- .tinvwl-header .tinvwl-status-panel > a {
1018
- vertical-align: middle;
1019
- }
1020
-
1021
- .tinvwl-header .tinvwl-status-panel > a + a {
1022
- margin-left: 15px;
1023
- }
1024
-
1025
- .tinvwl-header .tinvwl-btn {
1026
- margin-top: 15px;
1027
- }
1028
-
1029
- .tinvwl-header .tinvwl-btn {
1030
- margin-top: 18px;
1031
- }
1032
-
1033
- .tinvwl-header .tinvwl-btn.red i {
1034
- color: #ffdc00;
1035
- }
1036
-
1037
- .tinvwl-header .tinvwl-status-panel {
1038
- text-align: right;
1039
- }
1040
-
1041
- .tinvwl-sign-icon {
1042
- font-size: 30px;
1043
- font-family: "Open Sans", "Helvetica Neue", sans-serif;
1044
- color: #948d84;
1045
- }
1046
-
1047
- @media (max-width: 1199px) {
1048
- .tinvwl-header .tinvwl-table,
1049
- .tinvwl-header .tinvwl-cell,
1050
- .tinvwl-header .tinvwl-cell-3 {
1051
- display: block;
1052
- }
1053
-
1054
- .tinvwl-header {
1055
- text-align: center;
1056
- }
1057
-
1058
- .tinvwl-header h1 + .tinvwl-status-panel {
1059
- margin-top: 25px;
1060
- }
1061
-
1062
- .tinvwl-header .tinvwl-status-panel {
1063
- text-align: center;
1064
- }
1065
-
1066
- .tinvwl-header .tinvwl-status-panel {
1067
- margin-top: 15px;
1068
- }
1069
-
1070
- .tinvwl-header .tinvwl-status-panel > a + a {
1071
- margin-left: 9px;
1072
- }
1073
-
1074
- .tinvwl-header {
1075
- padding: 18px 0 25px;
1076
- }
1077
-
1078
- .tinwl-logo, .tinwl-logo h2,
1079
- .tinwl-logo img,
1080
- .tinvwl-header .tinvwl-title {
1081
- display: block;
1082
- margin: 0 auto;
1083
- }
1084
-
1085
- .tinwl-logo h2 {
1086
- padding-left: 0;
1087
- margin-left: 0;
1088
- margin-top: 6px;
1089
- }
1090
-
1091
- .tinvwl-header .tinvwl-title {
1092
- position: relative;
1093
- padding-left: 12px;
1094
- padding-right: 12px;
1095
- padding-top: 13px;
1096
- margin-left: 0;
1097
- margin-top: 16px;
1098
- border-left: 0;
1099
- }
1100
-
1101
- .tinvwl-header .tinvwl-title:before {
1102
- content: '';
1103
- position: absolute;
1104
- top: 0;
1105
- left: 0;
1106
- right: 0;
1107
- width: 40px;
1108
- height: 1px;
1109
- margin: 0 auto;
1110
- background: #dcddde;
1111
- }
1112
- }
1113
-
1114
- @media (max-width: 782px) {
1115
-
1116
- .tinvwl-header .tinvwl-btn .tinvwl-txt {
1117
- display: none;
1118
- }
1119
-
1120
- .tinvwl-header .tinvwl-btn i {
1121
- margin-right: 0 !important;
1122
- }
1123
-
1124
- .tinvwl-header .tinvwl-btn.grey {
1125
- padding-left: 16px;
1126
- padding-right: 16px;
1127
- }
1128
- }
1129
-
1130
- .tinvwl-content h2{
1131
- /*margin: 0;*/
1132
- /*line-height: 40px;*/
1133
- }
1134
-
1135
-
1136
- /* Privacy Navigation */
1137
-
1138
- .tinwl-wishlists-privacy {
1139
- margin: -10px 0 0;
1140
- }
1141
-
1142
- .tinwl-wishlists-privacy li {
1143
- float: left;
1144
- margin: 10px 10px 0 0;
1145
- }
1146
-
1147
- .tinwl-wishlists-privacy li:last-child {
1148
- margin-right: 0;
1149
- }
1150
-
1151
- .tinwl-wishlists-privacy li a {
1152
- display: block;
1153
- font-family: "Open Sans", "Helvetica Neue", sans-serif;
1154
- font-size: 14px;
1155
- font-weight: 600;
1156
- line-height: 1;
1157
- padding: 10px 16px;
1158
- -webkit-border-radius: 3px;
1159
- -moz-border-radius: 3px;
1160
- border-radius: 3px;
1161
- color: #404040;
1162
- background: #ede8df;
1163
- }
1164
-
1165
- .tinwl-wishlists-privacy li.active a,
1166
- .tinwl-wishlists-privacy li a:hover,
1167
- .tinwl-wishlists-privacy li a:active,
1168
- .tinwl-wishlists-privacy li a:focus {
1169
- color: #fff;
1170
- background-color: #96b100;
1171
- }
1172
-
1173
- @media screen and (max-width: 782px) {
1174
- .tinwl-wishlists-privacy {
1175
- margin-left: 15px;
1176
- }
1177
- }
1178
-
1179
- /* Panel */
1180
-
1181
- .tinvwl-panel {
1182
- margin: 40px 40px 0;
1183
- }
1184
-
1185
- .tinvwl-panel .w-bg-grey {
1186
- background: #fbfaf9;
1187
- }
1188
-
1189
- .tinvwl-panel.w-shadow {
1190
- -webkit-box-shadow: 1px 1px 8px 0 rgba(170, 157, 137, 0.14);
1191
- box-shadow: 1px 1px 8px 0 rgba(170, 157, 137, 0.14);
1192
- }
1193
-
1194
- .tinvwl-panel.w-bg {
1195
- background: #ffffff;
1196
- -webkit-border-radius: 4px;
1197
- -moz-border-radius: 4px;
1198
- border-radius: 4px;
1199
- }
1200
-
1201
- .tinvwl-table.w-info .tinvwl-info[rowspan],
1202
- .tinvwl-table.w-info .tinvwl-info[rowspan] .tinvwl-info-sign {
1203
- vertical-align: middle;
1204
- }
1205
-
1206
- .tinvwl-table.w-info .tinvwl-info-top > tr .tinvwl-info {
1207
- vertical-align: top;
1208
- }
1209
-
1210
- @media screen and (max-width: 1200px) {
1211
- .tinvwl-panel {
1212
- margin: 20px 20px 0;
1213
- }
1214
-
1215
- .tinvwl-header {
1216
- margin-bottom: 20px;
1217
- }
1218
- }
1219
-
1220
- @media screen and (max-width: 782px) {
1221
- .tinvwl-panel {
1222
- margin: 20px 0 0;
1223
- }
1224
-
1225
- .tinvwl-panel.only-button {
1226
- text-align: center;
1227
- }
1228
- }
1229
-
1230
- /**
1231
- * Content Elements
1232
- */
1233
-
1234
- .tinvwl-content {
1235
- /*margin: 14px 40px 10px 20px;*/
1236
- }
1237
- .tinvwl-content section {
1238
- /*margin-top: 20px;*/
1239
- /*background-color: #FFF;*/
1240
- /*border-radius: 5px;*/
1241
- }
1242
- .tinvwl-content section:after{
1243
- /*content: '';
1244
- display: block;
1245
- height: 0;
1246
- clear: both;*/
1247
- }
1248
-
1249
-
1250
- /* Preview Icon */
1251
-
1252
- .tinvwl-icon-preview {
1253
- position: relative;
1254
- width: 50px;
1255
- height: 42px;
1256
- margin-right: 10px;
1257
- margin-bottom: 10px;
1258
- text-align: center;
1259
- -webkit-border-radius: 2px;
1260
- -moz-border-radius: 2px;
1261
- border-radius: 2px;
1262
- color: #595857;
1263
- background: #f6f3ed;
1264
- }
1265
-
1266
- @media (min-width: 1200px) {
1267
- .tinvwl-icon-preview {
1268
- margin-bottom: 0;
1269
- }
1270
- }
1271
-
1272
- .tinvwl-icon-preview span {
1273
- position: absolute;
1274
- top: 50%;
1275
- left: 0;
1276
- right: 0;
1277
-
1278
- -webkit-transform: translateY(-50%);
1279
- -moz-transform: translateY(-50%);
1280
- -ms-transform: translateY(-50%);
1281
- -o-transform: translateY(-50%);
1282
- transform: translateY(-50%);
1283
- }
1284
-
1285
- .tinvwl-icon-preview span img {
1286
- max-width: 50px;
1287
- max-height: 42px;
1288
- vertical-align: middle;
1289
- }
1290
-
1291
-
1292
-
1293
- /* Table */
1294
-
1295
- .tinvwl-content .table-wrap {
1296
- /*padding: 25px 0;*/
1297
- }
1298
-
1299
- .tinvwl-content table.widefat {
1300
- -webkit-box-shadow: none;
1301
- -moz-box-shadow: none;
1302
- box-shadow: none;
1303
- }
1304
-
1305
- .tinvwl-content .tablenav {
1306
- height: auto;
1307
- margin: 30px;
1308
- background: #ffffff;
1309
- }
1310
-
1311
- .tinvwl-content .tablenav .actions {
1312
- /*padding: 6px 0 0;*/
1313
- padding: 0;
1314
- }
1315
-
1316
- @media screen and (max-width: 782px) {
1317
- .tablenav.top .actions {
1318
- display: block;
1319
- }
1320
-
1321
- .tablenav br.tinv-wishlist-clear {
1322
- display: none;
1323
- }
1324
-
1325
- .tinvwl-content .tablenav {
1326
- margin: 15px 12px;
1327
- }
1328
-
1329
- .tinvwl-content .tablenav .alignleft,
1330
- .tinvwl-content .tablenav .alignright {
1331
- float: none;
1332
- }
1333
-
1334
- .tinvwl-content .tablenav .tinvwl-full {
1335
- display: none;
1336
- }
1337
-
1338
- .tinvwl-content .tablenav .alignleft + .alignright {
1339
- margin-top: 10px;
1340
- }
1341
-
1342
- .tinvwl-content .tablenav .tinvwl-select-wrap {
1343
- width: calc( 100% - 75px );
1344
- }
1345
-
1346
- #wpbody .tinvwl-content .tablenav .tinvwl-select-wrap select.tinvwl-select {
1347
- max-width: 100%;
1348
- width: 100%;
1349
- height: 35px;
1350
- padding: 9px 13px;
1351
- }
1352
-
1353
- .tinvwl-content .tablenav input[type=search] {
1354
- width: calc( 100% - 84px );
1355
- }
1356
-
1357
- .tinvwl-content .tablenav .tinvwl-select-wrap + input[type=submit],
1358
- .tinvwl-content .tablenav input[type=search] + input[type=submit] {
1359
- }
1360
- }
1361
-
1362
- .tinvwl-content .widefat th,
1363
- .tinvwl-content .widefat td {
1364
- text-align: center;
1365
- padding: 0;
1366
- }
1367
-
1368
- .tinvwl-content .widefat th {
1369
- padding: 27px 0;
1370
- position: relative;
1371
- }
1372
-
1373
- .tinvwl-info-wrap.tinvwl-in-table {
1374
- /*position: absolute;
1375
- top: 50%;
1376
- margin-top: -11px;*/
1377
- }
1378
-
1379
- .tinvwl-content .widefat th.sortable,
1380
- .tinvwl-content .widefat th.sorted {
1381
- padding: 0;
1382
- }
1383
-
1384
- .tinvwl-content .widefat th.sortable > a,
1385
- .tinvwl-content .widefat th.sorted > a {
1386
- padding: 28px 17px;
1387
- }
1388
-
1389
- .tinvwl-content .widefat th.tinvwl-has-info {
1390
- padding-top: 28px;
1391
- }
1392
-
1393
- .tinvwl-content .widefat th.tinvwl-has-info.sortable > a,
1394
- .tinvwl-content .widefat th.tinvwl-has-info.sorted > a {
1395
- padding-top: 0;
1396
- }
1397
-
1398
- .tinvwl-content .widefat th.sortable:first-of-type,
1399
- .tinvwl-content .widefat th.sorted:first-of-type {
1400
- padding-left: 0;
1401
- }
1402
-
1403
- .tinvwl-content .widefat th.sortable:first-of-type > a,
1404
- .tinvwl-content .widefat th.sorted:first-of-type > a {
1405
- padding-left: 28px;
1406
- }
1407
-
1408
- .tinvwl-content .widefat th:first-of-type,
1409
- .tinvwl-content .widefat td:first-of-type {
1410
- text-align: left;
1411
- padding-left: 28px;
1412
- }
1413
-
1414
- .tinvwl-content .widefat th .tinvwl-help-wrap {
1415
- display: inline-block;
1416
- }
1417
-
1418
- .tinvwl-content .widefat th .tinvwl-help-wrap {
1419
- margin-left: 6px;
1420
- }
1421
-
1422
- .tinvwl-content .widefat th.sortable > a + .tinvwl-help-wrap,
1423
- .tinvwl-content .widefat th.sorted > a + .tinvwl-help-wrap {
1424
- margin-left: 0;
1425
- }
1426
-
1427
- .tinvwl-content .widefat thead tr {
1428
- background: #f4f3ef;
1429
- }
1430
-
1431
- .tinvwl-content .striped>tbody>:nth-child(odd),
1432
- .tinvwl-content ul.striped>:nth-child(odd) {
1433
- background: none;
1434
- }
1435
-
1436
- .tinvwl-content .widefat thead td.check-column,
1437
- .tinvwl-content .widefat tbody th.check-column {
1438
- width: 50px;
1439
- padding: 28px 0 28px 28px;
1440
- vertical-align: middle;
1441
- }
1442
-
1443
- .tinvwl-content .widefat thead td.check-column {
1444
- padding: 28px 0 28px 28px;
1445
- }
1446
-
1447
- .tinvwl-content .widefat tbody th.check-column {
1448
- padding: 13px 0 13px 28px;
1449
- }
1450
-
1451
- .tinvwl-content .widefat thead td.check-column + th.sortable:first-of-type > a,
1452
- .tinvwl-content .widefat thead td.check-column + th.sorted:first-of-type > a,
1453
- .tinvwl-content .widefat thead td.check-column + th,
1454
- .tinvwl-content .widefat tbody th.check-column + td {
1455
- padding-left: 21px;
1456
- }
1457
-
1458
- .tinvwl-content .widefat thead td.check-column + th.sortable:first-of-type > .tinvwl-info-wrap.tinvwl-in-table,
1459
- .tinvwl-content .widefat thead td.check-column + th.sorted:first-of-type > .tinvwl-info-wrap.tinvwl-in-table {
1460
- padding-left: 21px;
1461
- }
1462
-
1463
- .tinvwl-content .widefat thead td.pause-play-column,
1464
- .tinvwl-content .widefat tbody th.pause-play-column {
1465
- padding: 0;
1466
- width: 53px;
1467
- text-align: center;
1468
- }
1469
-
1470
- .tinvwl-content th.sortable,
1471
- .tinvwl-content th.sorted {
1472
- }
1473
-
1474
- .tinvwl-content th.sortable a,
1475
- .tinvwl-content th.sorted a {
1476
- padding: 0;
1477
- }
1478
-
1479
- .tinvwl-content .widefat th,
1480
- .tinvwl-content th.sortable > a,
1481
- .tinvwl-content th.sorted > a {
1482
- font-size: 14px;
1483
- font-weight: 600;
1484
- font-family: "Open Sans", "Helvetica Neue", sans-serif;
1485
- color: #291C09;
1486
- text-transform: uppercase;
1487
- letter-spacing: -.025em;
1488
- }
1489
-
1490
- .tinvwl-content th.sortable > a,
1491
- .tinvwl-content th.sorted > a {
1492
- display: inline-block;
1493
- vertical-align: middle;
1494
- }
1495
-
1496
- .tinvwl-content .widefat th.sortable > a,
1497
- .tinvwl-content .widefat th.sorted > a {
1498
- position: relative;
1499
- }
1500
-
1501
- .tinvwl-content .widefat th.sortable > a .sorting-indicator,
1502
- .tinvwl-content .widefat th.sorted > a .sorting-indicator {
1503
- position: absolute;
1504
- top: 50%;
1505
- right: 0;
1506
- margin-top: -2px;
1507
- }
1508
-
1509
- .tinvwl-content .widefat th.tinvwl-has-info.sortable > a .sorting-indicator,
1510
- .tinvwl-content .widefat th.tinvwl-has-info.sorted > a .sorting-indicator {
1511
- margin-top: -15px;
1512
- }
1513
-
1514
- .tinvwl-content th.sortable a span,
1515
- .tinvwl-content th.sorted a span {
1516
- float: none;
1517
- }
1518
-
1519
- .tinvwl-content table.widefat {
1520
- /*table-layout: auto;*/
1521
- border: none;
1522
- border-bottom: 2px solid #f7f7f7;
1523
- }
1524
-
1525
- .tinvwl-content .widefat thead td,
1526
- .tinvwl-content .widefat thead th {
1527
- border-bottom: 0;
1528
- }
1529
-
1530
- .tinvwl-content .widefat td {
1531
- padding: 24px 0;
1532
- vertical-align: middle;
1533
- }
1534
-
1535
- .tinvwl-content .widefat tbody td {
1536
- padding: 13px 0;
1537
- }
1538
-
1539
- .tinvwl-content .widefat td,
1540
- .tinvwl-content .widefat td ol,
1541
- .tinvwl-content .widefat td p,
1542
- .tinvwl-content .widefat td ul {
1543
- font-size: 14px;
1544
- }
1545
-
1546
- .tinvwl-content .widefat tbody tr + tr {
1547
- border-top: 2px solid #f7f7f7;
1548
- }
1549
-
1550
- .tinvwl-content .widefat thead th.column-preference {
1551
- /*display: none;*/
1552
- text-indent: -9999px;
1553
- }
1554
-
1555
- .tinvwl-content .widefat.wishlists thead th.column-preference,
1556
- .tinvwl-content .widefat.wishlists tbody td.column-preference {
1557
- min-width: 220px;
1558
- width: 220px;
1559
- }
1560
-
1561
- .tinvwl-content .widefat:not(.products) tbody td.column-preference {
1562
- text-align: right;
1563
- }
1564
-
1565
- .tinvwl-content .widefat.products thead th.column-quantity a > span:not(.sorting-indicator) {
1566
- max-width: 91px;
1567
- }
1568
-
1569
- .tinvwl-content .widefat.users tbody .column-name > a {
1570
- display: block;
1571
- }
1572
-
1573
- .tinvwl-content .widefat.products thead th.column-preference,
1574
- .tinvwl-content .widefat.products tbody td.column-preference {
1575
- width: 345px;
1576
- min-width: 345px;
1577
- }
1578
-
1579
- .tinvwl-content .widefat.users thead th.column-preference,
1580
- .tinvwl-content .widefat.users tbody td.column-preference {
1581
- width: 165px;
1582
- min-width: 165px;
1583
- }
1584
-
1585
- .tinvwl-content .widefat tbody .column-name strong {
1586
- font-weight: normal;
1587
- }
1588
-
1589
- .tinvwl-content .widefat tbody .column-name > a {
1590
- display: table;
1591
- }
1592
-
1593
- .tinvwl-content .widefat tbody .column-name .product-image img {
1594
- max-width: 66px;
1595
- }
1596
-
1597
- .tinvwl-content .widefat tbody .column-name .product-image,
1598
- .tinvwl-content .widefat tbody .column-name .product-title {
1599
- display: table-cell;
1600
- vertical-align: middle;
1601
- }
1602
-
1603
- .tinvwl-content .widefat tbody .column-name .product-title {
1604
- padding-left: 15px;
1605
- }
1606
-
1607
- .tinvwl-content .widefat thead th.column-preference,
1608
- .tinvwl-content .widefat tbody td.column-preference {
1609
- padding-right: 20px;
1610
- }
1611
-
1612
- .tinvwl-content .widefat.products tbody td.column-preference > a {
1613
- margin-right: 10px;
1614
- float: left;
1615
- }
1616
-
1617
- .tinvwl-content .widefat.products tbody td.column-preference > a:last-child {
1618
- margin-right: 0;
1619
- }
1620
-
1621
- .tinvwl-content .tablenav .tablenav-pages {
1622
- float: none;
1623
- text-align: center;
1624
- height: auto;
1625
- margin-top: 0;
1626
- }
1627
-
1628
- .tinvwl-content .tablenav .tablenav-pages .pagination-links > a,
1629
- .tinvwl-content .tablenav .tablenav-pages .pagination-links > span {
1630
- display: inline-block;
1631
- vertical-align: middle;
1632
- text-align: center;
1633
- font-size: 14px;
1634
- font-weight: normal;
1635
- padding: 0;
1636
- min-width: 38px;
1637
- height: 38px;
1638
- line-height: 38px;
1639
- -webkit-border-radius: 50%;
1640
- -moz-border-radius: 50%;
1641
- border-radius: 50%;
1642
- border: none;
1643
- background: none;
1644
- color: #3e3e3e;
1645
- }
1646
-
1647
- .tinvwl-content .tablenav .tablenav-pages .pagination-links > span {
1648
- color: rgba(62,62,62,.46);
1649
- }
1650
-
1651
- .tinvwl-content .tablenav .tablenav-pages .pagination-links > span,
1652
- .tinvwl-content .tablenav .tablenav-pages .pagination-links .next-page,
1653
- .tinvwl-content .tablenav .tablenav-pages .pagination-links .prev-page {
1654
- background: #f3f1ec;
1655
- }
1656
-
1657
- .tinvwl-content .tablenav .tablenav-pages .pagination-links > .tinvwl-page-number.space {
1658
- background: none;
1659
- color: #3e3e3e;
1660
- }
1661
-
1662
- .tinvwl-content .tablenav .tablenav-pages .pagination-links > a:hover,
1663
- .tinvwl-content .tablenav .tablenav-pages .pagination-links .next-page:hover,
1664
- .tinvwl-content .tablenav .tablenav-pages .pagination-links .prev-page:hover {
1665
- background: #3e3e3e;
1666
- color: #fff;
1667
- }
1668
-
1669
- .tinvwl-content .tablenav .tablenav-pages .pagination-links .prev-page {
1670
- margin-right: 20px;
1671
- }
1672
-
1673
- .tinvwl-content .tablenav .tablenav-pages .pagination-links .next-page {
1674
- margin-left: 20px;
1675
- }
1676
-
1677
- .tinvwl-content .tablenav .tablenav-pages .tinvwl-chevron {
1678
- display: inline-block;
1679
- vertical-align: middle;
1680
- width: 9px;
1681
- height: 16px;
1682
- }
1683
-
1684
- .tinvwl-content .tablenav .tablenav-pages .pagination-links .prev-page .tinvwl-chevron {
1685
- background: url('../img/chevron_icon.png') no-repeat center;
1686
- background-position: 0 -16px;
1687
- }
1688
-
1689
- .tinvwl-content .tablenav .tablenav-pages .pagination-links .prev-page:hover .tinvwl-chevron {
1690
- background: url('../img/chevron_icon.png') no-repeat center;
1691
- background-position: 0 0;
1692
- }
1693
-
1694
- .tinvwl-content .tablenav .tablenav-pages .pagination-links .next-page .tinvwl-chevron {
1695
- background: url('../img/chevron_icon.png') no-repeat center;
1696
- background-position: -10px -16px;
1697
- }
1698
-
1699
- .tinvwl-content .tablenav .tablenav-pages .pagination-links .next-page:hover .tinvwl-chevron {
1700
- background: url('../img/chevron_icon.png') no-repeat center;
1701
- background-position: -10px 0;
1702
- }
1703
-
1704
- .tinvwl-content .widefat.products thead th.column-name,
1705
- .tinvwl-content .widefat.products tbody td.column-name {
1706
- /*width: 200px;*/
1707
- width: 30%;
1708
- }
1709
-
1710
- .tinvwl-content .widefat.wishlists thead th.column-title,
1711
- .tinvwl-content .widefat.wishlists tbody td.column-title {
1712
- width: 45%;
1713
- }
1714
-
1715
- .tinvwl-content .widefat.users thead th.column-wishlist,
1716
- .tinvwl-content .widefat.users tbody td.column-wishlist {
1717
- width: 45%;
1718
- }
1719
-
1720
- .tinvwl-content .widefat.users thead th.column-name,
1721
- .tinvwl-content .widefat.users tbody td.column-name {
1722
- text-align: left;
1723
- }
1724
-
1725
- .tinvwl-content .widefat.users thead th.column-quantity,
1726
- .tinvwl-content .widefat.users tbody td.column-quantity {
1727
- width: 100px;
1728
- }
1729
-
1730
- .tinvwl-content .widefat tbody td.column-preference .tinvwl-btn .tinvwl-mobile {
1731
- display: none;
1732
- }
1733
-
1734
- @media screen and (max-width: 1440px) {
1735
- .tinvwl-content .widefat.products thead th.column-preference,
1736
- .tinvwl-content .widefat.products tbody td.column-preference {
1737
- width: 204px;
1738
- min-width: 204px;
1739
- }
1740
- .tinvwl-content .widefat.wishlists thead th.column-preference,
1741
- .tinvwl-content .widefat.wishlists tbody td.column-preference {
1742
- width: 98px;
1743
- min-width: 98px;
1744
- }
1745
-
1746
- .tinvwl-content .widefat.users thead th.column-preference,
1747
- .tinvwl-content .widefat.users tbody td.column-preference {
1748
- width: 60px;
1749
- min-width: 60px;
1750
- }
1751
-
1752
- .tinvwl-content .widefat tbody td.column-preference .tinvwl-btn.tinvwl-w-mobile {
1753
- padding: 9px 12px;
1754
- }
1755
-
1756
- .tinvwl-content .widefat tbody td.column-preference .tinvwl-btn .tinvwl-mobile {
1757
- display: inline;
1758
- margin: 0;
1759
- }
1760
-
1761
- .tinvwl-content .widefat tbody td.column-preference .tinvwl-btn .tinvwl-full {
1762
- display: none;
1763
- }
1764
- }
1765
-
1766
- .tinvwl-content .widefat.products thead th.column-quantity span span {
1767
- float: none;
1768
- }
1769
-
1770
- @media screen and (max-width: 1366px) and (min-width: 783px) {
1771
- .tinvwl-content .widefat.products thead th.column-name,
1772
- .tinvwl-content .widefat.products tbody td.column-name {
1773
- /*width: 110px;*/
1774
- /*min-width: 110px;*/
1775
- }
1776
-
1777
- .tinvwl-content .widefat tbody .column-name .product-image,
1778
- .tinvwl-content .widefat tbody .column-name .product-title {
1779
- display: block;
1780
- }
1781
-
1782
- .tinvwl-content .widefat tbody .column-name .product-title {
1783
- padding-left: 0;
1784
- }
1785
-
1786
- .tinvwl-content .widefat.products thead th.column-preference,
1787
- .tinvwl-content .widefat.products tbody td.column-preference {
1788
- width: 103px;
1789
- min-width: 103px;
1790
- }
1791
-
1792
- .tinvwl-content .widefat.products tbody td.column-preference > a {
1793
- margin-right: 5px;
1794
- }
1795
-
1796
- .tinvwl-content .widefat tbody td.column-preference > a:nth-child(2n) {
1797
- margin-right: 0;
1798
- }
1799
-
1800
- .tinvwl-content .widefat tbody td.column-preference > a:nth-child(n+3) {
1801
- margin-top: 5px;
1802
- }
1803
-
1804
- .tinvwl-content .widefat thead th .tinvwl-full {
1805
- display: none;
1806
- }
1807
- }
1808
-
1809
- @media screen and (max-width: 1200px) and (min-width: 783px) {
1810
- .tinvwl-content th.sortable a span,
1811
- .tinvwl-content th.sorted a span {
1812
- float: none;
1813
- }
1814
-
1815
- .tinvwl-content .widefat th.sortable > a,
1816
- .tinvwl-content .widefat th.sorted > a {
1817
- padding-left: 0;
1818
- padding-right: 0;
1819
- position: static;
1820
- }
1821
-
1822
- .tinvwl-content .widefat th.sortable > a .sorting-indicator,
1823
- .tinvwl-content .widefat th.sorted > a .sorting-indicator {
1824
- top: auto;
1825
- bottom: 12px;
1826
- left: 0;
1827
- right: 0;
1828
- margin-left: auto;
1829
- margin-right: auto;
1830
- }
1831
-
1832
- .tinvwl-content .widefat th.sortable > a .sorting-indicator:before,
1833
- .tinvwl-content .widefat th.sorted > a .sorting-indicator:before {
1834
- left: -5px;
1835
- }
1836
-
1837
- .tinvwl-content .widefat th.tinvwl-has-info.sortable > a .sorting-indicator,
1838
- .tinvwl-content .widefat th.tinvwl-has-info.sorted > a .sorting-indicator {
1839
- margin-top: 12px;
1840
- }
1841
-
1842
- .tinvwl-content .widefat.wishlists thead th.column-title,
1843
- .tinvwl-content .widefat.wishlists tbody td.column-title {
1844
- width: 38%;
1845
- }
1846
- }
1847
-
1848
- @media screen and (max-width: 782px) {
1849
- .tinvwl-content .widefat th.tinvwl-has-info.sortable > a .sorting-indicator,
1850
- .tinvwl-content .widefat th.tinvwl-has-info.sorted > a .sorting-indicator {
1851
- margin-top: 0;
1852
- }
1853
-
1854
- .tinvwl-content .widefat.products tbody td.column-preference > a {
1855
- margin-right: 5px;
1856
- float: none;
1857
- }
1858
-
1859
- .tinvwl-content .widefat tbody .column-name .product-image,
1860
- .tinvwl-content .widefat tbody .column-name .product-title {
1861
- vertical-align: top;
1862
- }
1863
-
1864
- .tablenav .tablenav-pages {
1865
- margin-bottom: 15px;
1866
- }
1867
-
1868
- .tinvwl-content .widefat thead th.column-primary {
1869
- width: 100% !important;
1870
- }
1871
-
1872
- .tinvwl-content .widefat thead td.check-column + th.column-primary {
1873
- width: 50% !important;
1874
- }
1875
-
1876
- .tinvwl-content .widefat.users thead td.check-column + th.column-primary {
1877
- width: 100% !important;
1878
- }
1879
- }
1880
-
1881
-
1882
- /* Tables */
1883
-
1884
- .tinvwl-table {
1885
- display: table;
1886
- /*height: 100%;*/
1887
- width: 100%;
1888
- max-width: 100%;
1889
- }
1890
- .tinvwl-table.w-bg {
1891
- background: #fff;
1892
- overflow: hidden;
1893
- -webkit-border-radius: 4px;
1894
- -moz-border-radius: 4px;
1895
- border-radius: 4px;
1896
- }
1897
- .tinvwl-table.w-shadow {
1898
- -webkit-box-shadow: 1px 1px 8px 0 rgba(170, 157, 137, 0.14);
1899
- box-shadow: 1px 1px 8px 0 rgba(170, 157, 137, 0.14);
1900
- }
1901
- .tinvwl-table.auto-width {
1902
- width: auto;
1903
- }
1904
- .tinvwl-caption {
1905
- display: table-caption;
1906
- }
1907
- .tinvwl-row {
1908
- display: table-row;
1909
- }
1910
- .tinvwl-rows {
1911
- display: table-row-group;
1912
- }
1913
- .tinvwl-cell {
1914
- display: table-cell;
1915
- vertical-align: middle;
1916
- }
1917
- .tinvwl-cell-2 {
1918
- display: table-cell;
1919
- vertical-align: middle;
1920
- float: none;
1921
- }
1922
- .tinvwl-cell-3 {
1923
- display: table-cell;
1924
- vertical-align: top;
1925
- float: none;
1926
- }
1927
-
1928
- .tinvwl-table.w-info > thead > tr > th:first-child,
1929
- .tinvwl-table.w-info > tbody > tr > td:first-child {
1930
- width: 67%;
1931
- }
1932
-
1933
- .tinvwl-table th,
1934
- .tinvwl-table td {
1935
- vertical-align: top;
1936
- }
1937
-
1938
- .tinvwl-table .tinvwl-inner.tinv-wishlist-clearfix h3,
1939
- .tinvwl-table .tinvwl-inner .tinv-wishlist-clearfix h3,
1940
- .tinvwl-table .tinvwl-inner.tinv-wishlist-clearfix h4,
1941
- .tinvwl-table .tinvwl-inner .tinv-wishlist-clearfix h4 {
1942
- float: left;
1943
- }
1944
-
1945
- .tinvwl-table .tinvwl-btn-wrap {
1946
- float: right;
1947
- }
1948
-
1949
- .tinvwl-table.w-info thead > tr > th {
1950
- text-align: left;
1951
- }
1952
-
1953
- .tinvwl-table.w-info thead > tr > th .tinvwl-info-wrap {
1954
- font-weight: normal;
1955
- }
1956
-
1957
- .tinvwl-table > thead > tr > th {
1958
- padding: 0 30px;
1959
- }
1960
-
1961
- .tinvwl-table > thead > tr > th:last-child {
1962
- /*padding: 30px;*/
1963
- }
1964
-
1965
- .tinvwl-table .tinvwl-info {
1966
- vertical-align: top;
1967
- }
1968
-
1969
- .tinvwl-table > thead > tr > .tinvwl-info .tinvwl-info-wrap {
1970
- padding-bottom: 30px;
1971
- }
1972
-
1973
- .tinvwl-table tbody tr .tinvwl-inner h2 {
1974
- font-size: 15px;
1975
- color: #291C09;
1976
- font-weight: 600;
1977
- margin-bottom: 21px;
1978
- }
1979
-
1980
- .tinvwl-table > tbody > tr > .tinvwl-info .tinvwl-info-wrap {
1981
- padding-bottom: 20px;
1982
- }
1983
-
1984
- .tinvwl-table > tbody > tr > td {
1985
- padding: 0 30px;
1986
- }
1987
-
1988
- .tinvwl-table > tbody > tr > td:last-child {
1989
- /*padding: 30px;*/
1990
- }
1991
-
1992
- .tinvwl-table thead > tr .tinvwl-inner {
1993
- padding: 28px 0;
1994
- margin-bottom: 30px;
1995
- border-bottom: 2px solid rgba(219,219,219,.522);
1996
- }
1997
-
1998
- .tinvwl-table thead.tinwl-empty > tr .tinvwl-inner {
1999
- padding: 30px 0 0;
2000
- margin-bottom: 0;
2001
- border-bottom: 0;
2002
- }
2003
-
2004
- .tinvwl-table thead > tr .tinvwl-inner {
2005
- /*padding: 20px 0;*/
2006
- }
2007
-
2008
- .tinvwl-table .tinvwl-header-row label {
2009
- font-size: 22px;
2010
- font-weight: normal;
2011
- line-height: 1.313;
2012
- margin: 0 0 15px;
2013
- }
2014
-
2015
- .tinvwl-table .tinvwl-header-row label {
2016
- padding-top: 3px !important;
2017
- }
2018
-
2019
- .tinvwl-table thead .tinvwl-empty-info,
2020
- .tinvwl-table tbody > .tinvwl-bodies-border {
2021
- display: none;
2022
- }
2023
-
2024
- .tinvwl-table thead .tinvwl-empty-info .tinvwl-inner {
2025
- margin: 0;
2026
- padding-top: 56px;
2027
- }
2028
-
2029
- .tinvwl-bodies-border .tinvwl-info .tinvwl-inner {
2030
- display: none;
2031
- padding-top: 30px;
2032
- margin-top: 10px;
2033
- border-top: 2px solid rgba(219,219,219,.522);
2034
- }
2035
-
2036
- .tinvwl-style-options .tinvwl-table thead th:first-child,
2037
- .tinvwl-style-options .tinvwl-bodies-border td:first-child {
2038
- /*padding-right: 0;*/
2039
- }
2040
-
2041
- .tinvwl-style-options .tinvwl-table thead .tinvwl-empty-info,
2042
- .tinvwl-style-options .tinvwl-bodies-border .tinvwl-info {
2043
- padding-left: 0;
2044
- background: none;
2045
- }
2046
-
2047
- .tinvwl-style-options .tinvwl-table thead .tinvwl-empty-info {
2048
- display: table-cell;
2049
- }
2050
-
2051
- .tinvwl-style-options .tinvwl-table thead .tinvwl-empty-info .tinvwl-inner,
2052
- .tinvwl-style-options tbody + tbody > .tinvwl-bodies-border .tinvwl-info .tinvwl-inner {
2053
- display: block;
2054
- }
2055
-
2056
- @media (min-width: 1200px) {
2057
- .tinvwl-style-options .tinvwl-table .tinvwl-inner .form-horizontal {
2058
- width: 67%;
2059
- }
2060
- }
2061
-
2062
- textarea[name="style_plain-css"] {
2063
- height: 150px;
2064
- }
2065
-
2066
- .tinvwl-table tbody + tbody > .tinvwl-bodies-border {
2067
- display: table-row;
2068
- }
2069
-
2070
- .tinvwl-table tbody + tbody > .tinvwl-bodies-border:first-child > td:first-child > .tinvwl-inner {
2071
- padding-top: 30px;
2072
- margin-top: 10px;
2073
- border-top: 2px solid rgba(219,219,219,.522);
2074
- }
2075
-
2076
- .tinvwl-table .tinvwl-header-row.tinvwl-line-border .tinvwl-inner {
2077
- padding-bottom: 15px;
2078
- margin-bottom: 30px;
2079
- border-bottom: 2px solid rgba(219,219,219,.522);
2080
- }
2081
-
2082
- .tinvwl-table .form-group .col-md-4:nth-child(n+4),
2083
- .tinvwl-table .form-group .col-lg-4:nth-child(n+4) {
2084
- padding-top: 27px;
2085
- }
2086
-
2087
- .tinvwl-table tbody:first-of-type > tr:first-child > td:first-child > .tinvwl-inner {
2088
- /*padding-top: 30px;*/
2089
- }
2090
-
2091
- .tinvwl-table tbody:last-of-type > tr:last-child > td:first-child > .tinvwl-inner {
2092
- /*padding-bottom: 20px;*/
2093
- }
2094
-
2095
- .tinvwl-table tfoot .tinvwl-inner {
2096
- padding-top: 20px;
2097
- }
2098
-
2099
- /*.tinvwl-table tbody > tr .tinvwl-inner,
2100
- .tinvwl-table tbody > tr .tinvwl-info-wrap {
2101
- padding: 30px 0;
2102
- }*/
2103
-
2104
- .tinvwl-table tbody > tr + tr .tinvwl-inner {
2105
- /*border-top: 2px solid rgba(219,219,219,.522);*/
2106
- }
2107
-
2108
- .tinvwl-table tr.no-top-border .tinvwl-inner,
2109
- .tinvwl-table tr.no-top-border .tinvwl-info-wrap {
2110
- border-top: 0;
2111
- padding-top: 0;
2112
- }
2113
-
2114
- /*.tinvwl-table tbody:first-of-type > tr:first-child > td > .tinvwl-info-wrap,*/
2115
- .tinvwl-table thead .w-bg-grey .tinvwl-info-wrap {
2116
- padding-top: 30px;
2117
- }
2118
-
2119
- .tiwl-notifications-style-logo img {
2120
- height: 42px;
2121
- }
2122
-
2123
- @media (min-width: 1200px) {
2124
- .tinvwl-table tr.tinvwl-full-width .control-label label {
2125
- margin-bottom: 10px;
2126
- }
2127
- .tinvwl-table tr.tinvwl-full-width [class^="col-lg-"],
2128
- .tinvwl-table tr.tinvwl-full-width [class^="col-md-"] {
2129
- width: 100%;
2130
- }
2131
-
2132
- .tinvwl-table tr.tinvwl-full-width textarea {
2133
- height: 250px;
2134
- padding: 15px;
2135
- }
2136
-
2137
- .tiwl-notifications-style-logo img {
2138
- float: right;
2139
- }
2140
- }
2141
-
2142
- @media (max-width: 1199px) {
2143
- .form-horizontal .control-label .tinvwl-empty {
2144
- display: none;
2145
- }
2146
-
2147
- .tinvwl-style-options .tinvwl-empty-info,
2148
- .tinvwl-style-options .tinvwl-info {
2149
- display: none !important;
2150
- }
2151
-
2152
- .tinvwl-style-options .tinvwl-table thead th:first-child,
2153
- .tinvwl-style-options .tinvwl-bodies-border td:first-child {
2154
- padding-right: 30px !important;
2155
- }
2156
-
2157
- .tinvwl-table .tinvwl-header-row.tinvwl-line-border .tinvwl-inner {
2158
- padding-bottom: 0;
2159
- }
2160
-
2161
- .tinvwl-table .tinvwl-header-row.tinvwl-line-border .tinvwl-inner .form-group {
2162
- margin-bottom: 20px;
2163
- }
2164
- }
2165
-
2166
- .tinvwl-info .tinvwl-info-desc a {
2167
- text-decoration: underline;
2168
- color: #ff5739;
2169
- }
2170
-
2171
- .tinvwl-info .tinvwl-info-desc a:hover,
2172
- .tinvwl-info .tinvwl-info-desc a:active,
2173
- .tinvwl-info .tinvwl-info-desc a:focus {
2174
- color: #000;
2175
- }
2176
-
2177
- .tinvwl-info-wrap.tinvwl-in-section {
2178
- background: #fbfaf9;
2179
- color: #4f4639;
2180
- }
2181
-
2182
- .tinvwl-info-wrap.tinvwl-in-section .tinvwl-info-sign {
2183
- width: 42px;
2184
- vertical-align: top;
2185
- padding-top: 1px;
2186
- padding-right: 20px;
2187
- }
2188
-
2189
- .tinvwl-info-wrap .tinvwl-info-sign span,
2190
- .tinvwl-info-wrap .tinvwl-info-sign .tinvwl-help {
2191
- display: inline-block;
2192
- text-align: center;
2193
- width: 22px;
2194
- height: 22px;
2195
- line-height: 22px;
2196
- -webkit-border-radius: 50%;
2197
- -moz-border-radius: 50%;
2198
- border-radius: 50%;
2199
- background: #e1dbce;
2200
- }
2201
-
2202
- .tinvwl-info-wrap.tinvwl-in-section .tinvwl-info-sign span,
2203
- .tinvwl-info-wrap.tinvwl-in-section .tinvwl-info-sign .tinvwl-help {
2204
- display: block;
2205
- }
2206
-
2207
- .tinvwl-info-wrap i {
2208
- font-size: 14px;
2209
- color: #fbfaf9;
2210
- }
2211
-
2212
- .tinvwl-panel:not(.only-button) .tinvwl-table .col-lg-6 > .tinvwl-btn {
2213
- width: auto;
2214
- }
2215
-
2216
- .tinvwl-btns-group {
2217
- margin-bottom: 23px;
2218
- margin-top: -15px;
2219
- margin-right: -15px;
2220
- }
2221
-
2222
- .tiwl-style-custom-allow .tinvwl-inner textarea {
2223
- margin-bottom: 23px;
2224
- }
2225
-
2226
- .tinvwl-btns-group .tinvwl-btn {
2227
- margin-top: 15px;
2228
- margin-right: 15px;
2229
- }
2230
-
2231
- .tinvwl-btns-group .tinvwl-btn {
2232
- float: left;
2233
- }
2234
-
2235
- @media (min-width: 1200px) {
2236
- .tinvwl-table .tinvwl-form-onoff,
2237
- .tinvwl-panel:not(.only-button) .tinvwl-table .col-lg-6 > .tinvwl-btn {
2238
- float: right;
2239
- }
2240
-
2241
- .tinvwl-btns-group .tinvwl-btn {
2242
- float: right;
2243
- }
2244
- }
2245
-
2246
- .tinvwl-table .tinvwl-info .tinvwl-info-wrap.tinvwl-in-section .tinvwl-help {
2247
- display: none;
2248
- }
2249
-
2250
- .tinvwl-info-wrap.tinvwl-in-table {
2251
- display: inline-block;
2252
- vertical-align: middle;
2253
- display: block;
2254
- margin-bottom: 5px;
2255
- }
2256
-
2257
- .tinvwl-info-wrap.tinvwl-in-table .tinvwl-help {
2258
- cursor: pointer;
2259
- }
2260
-
2261
- .tinvwl-content .widefat th.tinvwl-has-info {
2262
- /*word-break: break-all;*/
2263
- }
2264
-
2265
- .tinvwl-content .widefat th.tinvwl-has-info .tinvwl-col-name {
2266
- margin-right: 5px;
2267
- }
2268
-
2269
- .tinvwl-info-wrap.tinvwl-in-table .tinvwl-info-desc {
2270
- display: none;
2271
- }
2272
-
2273
- @media (max-width: 1200px) {
2274
- .tinvwl-table .tinvwl-info {
2275
- padding-left: 15px;
2276
- padding-right: 15px;
2277
- /*vertical-align: middle;*/
2278
- }
2279
-
2280
- .tinvwl-table.w-info > thead > tr > th:first-child,
2281
- .tinvwl-table.w-info > tbody > tr > td:first-child {
2282
- width: 90%;
2283
- }
2284
-
2285
- .tinvwl-info-wrap.tinvwl-in-section .tinvwl-info-sign {
2286
- width: auto;
2287
- padding-right: 0;
2288
- }
2289
-
2290
- .tinvwl-info-wrap.tinvwl-in-section .tinvwl-info-sign span {
2291
- display: none;
2292
- }
2293
-
2294
- .tinvwl-table .tinvwl-info-wrap.tinvwl-in-section .tinvwl-info-sign .tinvwl-help {
2295
- display: block;
2296
- margin: 0 auto;
2297
- }
2298
-
2299
- .tinvwl-info-wrap.tinvwl-in-section .tinvwl-info-desc {
2300
- display: none;
2301
- }
2302
- }
2303
-
2304
- @media (max-width: 782px) {
2305
- .tinvwl-content .widefat th.tinvwl-has-info.sortable,
2306
- .tinvwl-content .widefat th.tinvwl-has-info.sorted {
2307
- padding-top: 0;
2308
- }
2309
-
2310
- .widefat tfoot td input[type=checkbox],
2311
- .widefat th input[type=checkbox],
2312
- .widefat thead td input[type=checkbox] {
2313
- margin-bottom: 0;
2314
- }
2315
-
2316
- .tinvwl-content .widefat th.sortable > a,
2317
- .tinvwl-content .widefat th.sorted > a,
2318
- .tinvwl-content .widefat th.sortable.tinvwl-has-info > a,
2319
- .tinvwl-content .widefat th.sorted.tinvwl-has-info > a {
2320
- padding-top: 18px;
2321
- padding-bottom: 18px;
2322
- }
2323
-
2324
- .tinvwl-content .widefat thead td.check-column,
2325
- .tinvwl-content .widefat tbody th.check-column {
2326
- padding-top: 14px;
2327
- padding-bottom: 15px;
2328
- padding-left: 20px;
2329
- width: 45px;
2330
- }
2331
-
2332
- .tinvwl-content .widefat tbody th.check-column {
2333
- padding-top: 11px;
2334
- padding-bottom: 11px;
2335
- vertical-align: top;
2336
- }
2337
-
2338
- .tinvwl-content .widefat.wishlists thead td.check-column,
2339
- .tinvwl-content .widefat.wishlists tbody th.check-column {
2340
- width: 23px;
2341
- }
2342
-
2343
- .tinvwl-content .widefat thead td.check-column + th.sortable:first-of-type > a,
2344
- .tinvwl-content .widefat thead td.check-column + th.sorted:first-of-type > a,
2345
- .tinvwl-content .widefat thead td.check-column + th,
2346
- .tinvwl-content .widefat tbody th.check-column + td {
2347
- padding-left: 10px;
2348
- }
2349
-
2350
- .tinvwl-content .widefat thead td.check-column + th.sortable:first-of-type > .tinvwl-info-wrap.tinvwl-in-table,
2351
- .tinvwl-content .widefat thead td.check-column + th.sorted:first-of-type > .tinvwl-info-wrap.tinvwl-in-table {
2352
- padding-left: 13px;
2353
- display: inline-block;
2354
- margin-top: 5px;
2355
- margin-bottom: 0;
2356
- }
2357
-
2358
- .wp-list-table tr:not(.inline-edit-row):not(.no-items) td:not(.column-primary)::before {
2359
- text-align: left;
2360
- }
2361
-
2362
- .wp-list-table tr:not(.inline-edit-row):not(.no-items) td.column-primary~td:not(.check-column) {
2363
- text-align: right;
2364
- padding-right: 30px;
2365
- }
2366
-
2367
- .wp-list-table tr:not(.inline-edit-row):not(.no-items) td:not(.column-primary)::before {
2368
- left: 28px;
2369
- }
2370
-
2371
- .wp-list-table tr:not(.inline-edit-row):not(.no-items) td.check-column + td:not(.column-primary)::before {
2372
- left: 13px;
2373
- }
2374
-
2375
- .wp-list-table tr:not(.inline-edit-row):not(.no-items) td.column-primary~td:not(.check-column):last-child {
2376
- padding-bottom: 13px;
2377
- }
2378
- }
2379
-
2380
- /* Popover */
2381
-
2382
- .popover {
2383
- position: absolute;
2384
- top: 0;
2385
- left: 0;
2386
- z-index: 9999;
2387
- display: none;
2388
- max-width: 279px;
2389
- padding: 1px;
2390
- text-align: center;
2391
- white-space: normal;
2392
- background-color: #fff;
2393
- -webkit-background-clip: padding-box;
2394
- background-clip: padding-box;
2395
- border-radius: 6px;
2396
- -webkit-box-shadow: 0 5px 15px 0 rgba(0, 0, 0, 0.22);
2397
- box-shadow: 0 5px 15px 0 rgba(0, 0, 0, 0.22);
2398
- }
2399
- .popover.top {
2400
- margin-top: -10px;
2401
- }
2402
- .popover.right {
2403
- margin-left: 10px;
2404
- }
2405
- .popover.bottom {
2406
- margin-top: 10px;
2407
- }
2408
- .popover.left {
2409
- margin-left: -10px;
2410
- }
2411
- .popover-title {
2412
- padding: 30px 30px 0;
2413
- margin: 0;
2414
- font-family: 'Open Sans', Arial, sans-serif;
2415
- font-size: 14px;
2416
- font-weight: 600;
2417
- line-height: 1.714;
2418
- text-transform: uppercase;
2419
- letter-spacing: -.35px;
2420
- }
2421
- .popover-content {
2422
- padding: 25px 30px 30px;
2423
- color: #5D5D5D;
2424
- font-family: Arial, sans-serif;
2425
- font-size: 14px;
2426
- line-height: 1.429;
2427
- }
2428
- .popover > .arrow,
2429
- .popover > .arrow:after {
2430
- position: absolute;
2431
- display: block;
2432
- width: 0;
2433
- height: 0;
2434
- border-color: transparent;
2435
- border-style: solid;
2436
- }
2437
- .popover > .arrow {
2438
- border-width: 11px;
2439
- margin-left: 0;
2440
- overflow: visible;
2441
- }
2442
- .popover > .arrow:after {
2443
- content: none;
2444
- z-index: 9999;
2445
- background: none;
2446
- -webkit-box-shadow: none;
2447
- box-shadow: none;
2448
- position: absolute;
2449
- left: auto;
2450
- top: auto;
2451
- width: auto;
2452
- height: auto;
2453
- -webkit-transform: none;
2454
- -ms-transform: none;
2455
- transform: none;
2456
- }
2457
- .popover > .arrow:after {
2458
- content: "";
2459
- border-width: 10px;
2460
- }
2461
- .popover.top > .arrow {
2462
- bottom: -11px;
2463
- left: 50%;
2464
- margin-left: -11px;
2465
- border-bottom-width: 0;
2466
- }
2467
- .popover.top > .arrow:after {
2468
- bottom: 1px;
2469
- margin-left: -10px;
2470
- content: " ";
2471
- border-top-color: #fff;
2472
- border-bottom-width: 0;
2473
- }
2474
- .popover.right > .arrow {
2475
- top: 50%;
2476
- left: -11px;
2477
- margin-top: -11px;
2478
- border-left-width: 0;
2479
- }
2480
- .popover.right > .arrow:after {
2481
- bottom: -10px;
2482
- left: 1px;
2483
- content: " ";
2484
- border-right-color: #fff;
2485
- border-left-width: 0;
2486
- }
2487
- .popover.bottom > .arrow {
2488
- top: -11px;
2489
- left: 50%;
2490
- margin-left: -11px;
2491
- border-top-width: 0;
2492
- }
2493
- .popover.bottom > .arrow:after {
2494
- top: 1px;
2495
- margin-left: -10px;
2496
- content: " ";
2497
- border-top-width: 0;
2498
- border-bottom-color: #fff;
2499
- }
2500
- .popover.left > .arrow {
2501
- top: 50%;
2502
- left: auto;
2503
- right: -11px;
2504
- margin-top: -11px;
2505
- border-right-width: 0;
2506
- }
2507
- .popover.left > .arrow:after {
2508
- left: auto;
2509
- right: 1px;
2510
- bottom: -10px;
2511
- content: " ";
2512
- border-right-width: 0;
2513
- border-left-color: #fff;
2514
- }
2515
-
2516
-
2517
- /* Image w/description */
2518
-
2519
- .tinvwl-img-w-desc i{
2520
-
2521
- margin-right: 20px;
2522
- }
2523
-
2524
- .tinvwl-img-w-desc h5 {
2525
- font-weight: 600;
2526
- text-transform: uppercase;
2527
- }
2528
-
2529
- .tinvwl-img-w-desc .tinvwl-desc {
2530
- color: #4f4639;
2531
- }
2532
-
2533
- .tinvwl-img-w-desc h5 + .tinvwl-desc {
2534
- margin-top: 2px;
2535
- }
2536
-
2537
-
2538
- /* Premium Features */
2539
-
2540
- .tinvwl-premium-feat h2 {
2541
- font-size: 48px;
2542
- text-transform: uppercase;
2543
- letter-spacing: -.025em;
2544
- line-height: 1;
2545
- color: #3e3e3e;
2546
- }
2547
-
2548
- .tinvwl-premium-feat h3 {
2549
- font-size: 16px;
2550
- font-weight: 600;
2551
- text-transform: uppercase;
2552
- letter-spacing: -.025em;
2553
- color: #50504f;
2554
- }
2555
-
2556
- .tinvwl-premium-feat .tinvwl-feat-col-inner {
2557
- padding: 40px;
2558
- }
2559
-
2560
- .tinvwl-premium-feat .tinvwl-pic-col .tinvwl-feat-col-inner {
2561
- text-align: center;
2562
- padding-left: 22px;
2563
- padding-right: 22px;
2564
- }
2565
-
2566
- .tinvwl-premium-feat .tinvwl-pic-col img {
2567
- display: block;
2568
- margin: 0 auto;
2569
- }
2570
-
2571
- .tinvwl-premium-feat .tinvwl-pic-col .tinvwl-btn {
2572
- margin-top: -35px;
2573
- }
2574
-
2575
- .tinvwl-premium-feat .tinvwl-features {
2576
- margin-top: 28px;
2577
- }
2578
-
2579
- .tinvwl-premium-feat .tinvwl-features li i {
2580
- color: #96b100;
2581
- margin-right: 15px;
2582
- }
2583
-
2584
- .tinvwl-premium-feat .tinvwl-features li span {
2585
- text-decoration: underline;
2586
- }
2587
-
2588
- .tinvwl-premium-feat .tinvwl-features li + li {
2589
- margin-top: 14px;
2590
- }
2591
-
2592
- .tinvwl-premium-feat .tinvwl-img-w-desc + .tinvwl-img-w-desc {
2593
- margin-top: 15px;
2594
- }
2595
-
2596
- .tinvwl-premium-feat .tinvwl-sup-col .tinvwl-feat-col-inner > .tinvwl-desc {
2597
- line-height: 1.71428571;
2598
- text-align: center;
2599
- margin-top: 23px;
2600
- }
2601
-
2602
- .tinvwl-premium-feat .tinvwl-sup-col .tinvwl-feat-col-inner > .tinvwl-desc a {
2603
- display: inline-block;
2604
- text-decoration: underline;
2605
- margin-top: 26px;
2606
- color: #000;
2607
- }
2608
-
2609
-
2610
- /* Footer */
2611
-
2612
- #wpfooter {
2613
- padding: 10px 40px;
2614
- }
2615
-
2616
- #wpfooter p {
2617
- font-family: "Open Sans", "Helvetica Neue", sans-serif;
2618
- font-size: 14px;
2619
- line-height: 1.85714286;
2620
- color: #4b4b4b;
2621
- }
2622
-
2623
- #wpfooter .fa-heart {
2624
- margin: 0 3px;
2625
- }
2626
-
2627
- #wpfooter .fa-star {
2628
- font-size: 12px;
2629
- margin: 0 1px;
2630
- }
2631
-
2632
- #wpfooter span .fa-star:first-of-type {
2633
- margin-left: 6px;
2634
- }
2635
-
2636
- #wpfooter span .fa-star:last-of-type {
2637
- margin-left: 3px;
2638
- }
2639
-
2640
- #wpfooter i {
2641
- color: #ff5739;
2642
- }
2643
-
2644
- #wpfooter a {
2645
- text-decoration: underline;
2646
- color: #ff5739;
2647
- }
2648
-
2649
- #wpfooter a:hover,
2650
- #wpfooter a:active,
2651
- #wpfooter a:focus {
2652
- color: #000;
2653
- }
2654
-
2655
-
2656
- /* Color Picker */
2657
-
2658
- .tinvwl-color-picker {
2659
- position: relative;
2660
- }
2661
-
2662
- .tinvwl-color-picker .iris-picker {
2663
- position: absolute;
2664
- z-index: 9999;
2665
- }
2666
-
2667
- .tinvwl-color-picker input[type=text] {
2668
- color: #fff;
2669
- border: 4px solid #fff;
2670
- box-shadow: 0 0 0 1px rgba(0,0,0,.14);
2671
- }
2672
-
2673
- .tinvwl-color-picker .tinvwl-eyedropper {
2674
- cursor: pointer;
2675
- position: relative;
2676
- display: inline-block;
2677
- vertical-align: top;
2678
- margin-left: 4px;
2679
- width: 42px;
2680
- height: 42px;
2681
- background: #fff url('../img/color_icon.png') no-repeat center;
2682
- border: 1px solid rgba(0,0,0,.14);
2683
- border-radius: 2px;
2684
- box-shadow: 1px 2px 4px 0 rgba(0, 0, 0, 0.1);
2685
- }
2686
-
2687
- .tinvwl-color-picker .tinvwl-eyedropper a {
2688
- color: #6b625a;
2689
- }
2690
-
2691
- .tinvwl-color-picker .tinvwl-eyedropper.tinvwl-active {
2692
- }
2693
-
2694
- .tinvwl-color-picker .tinvwl-eyedropper i {
2695
- display: inline-block;
2696
- position: absolute;
2697
- top: 15px;
2698
- left: 14px;
2699
- font-size: 12px;
2700
- }
2701
-
2702
- .tinvwl-color-picker + .iris-picker .iris-square-value {
2703
- width: 0;
2704
- height: 0;
2705
- }
2706
-
2707
-
2708
- /* Modal */
2709
-
2710
- .tinvwl-overlay {
2711
- position: fixed;
2712
- top: 0;
2713
- left: 0;
2714
- width: 100%;
2715
- height: 100%;
2716
- visibility: hidden;
2717
- opacity: 0;
2718
-
2719
- -webkit-transition: opacity .3s ease, visibility .3s ease;
2720
- -moz-transition: opacity .3s ease, visibility .3s ease;
2721
- -o-transition: opacity .3s ease, visibility .3s ease;
2722
- transition: opacity .3s ease, visibility .3s ease;
2723
-
2724
- background: #191919;
2725
- }
2726
-
2727
- .tinvwl-modal.tinvwl-modal-open .tinvwl-overlay {
2728
- visibility: visible;
2729
- opacity: .5;
2730
- }
2731
-
2732
- .admin-bar .tinvwl-content .tinvwl-modal {
2733
- padding-top: 32px !important;
2734
- }
2735
-
2736
- .tinvwl-content .tinvwl-modal .tinvwl-modal-inner {
2737
- position: relative;
2738
- margin: 0 auto;
2739
- background: #fff;
2740
- -webkit-border-radius: 4px;
2741
- -moz-border-radius: 4px;
2742
- border-radius: 4px;
2743
- }
2744
-
2745
- .tinvwl-content .tinvwl-modal {
2746
- overflow-y: auto;
2747
- overflow-x: hidden;
2748
- top: 0;
2749
- left: 0;
2750
- width: 0;
2751
- height: 0;
2752
- z-index: 9999;
2753
- position: fixed;
2754
- outline: none !important;
2755
- -webkit-backface-visibility: hidden;
2756
- visibility: hidden;
2757
- opacity: 0;
2758
- text-align: left;
2759
-
2760
- -webkit-transition: opacity .3s ease, visibility .3s ease;
2761
- -moz-transition: opacity .3s ease, visibility .3s ease;
2762
- -o-transition: opacity .3s ease, visibility .3s ease;
2763
- transition: opacity .3s ease, visibility .3s ease;
2764
- }
2765
-
2766
- .tinvwl-content .tinvwl-modal.tinvwl-modal-open {
2767
- visibility: visible;
2768
- opacity: 1;
2769
- width: 100%;
2770
- height: 100%;
2771
- }
2772
-
2773
- @media screen and (max-width: 782px) {
2774
- .admin-bar .tinvwl-content .tinvwl-modal {
2775
- padding-top: 46px !important;
2776
- }
2777
- }
2778
-
2779
- @media screen and (max-width: 600px) {
2780
- .admin-bar .tinvwl-content .tinvwl-modal {
2781
- padding-top: 0 !important;
2782
- }
2783
- }
2784
-
2785
- .tinvwl-modal .tinvwl-table {
2786
- height: 100%;
2787
- }
2788
-
2789
- .tinvwl-content .tinvwl-modal .tinvwl-modal-inner {
2790
- max-width: 415px;
2791
- padding: 40px 45px;
2792
- }
2793
-
2794
- .tinvwl-content .tinvwl-modal.tinvwl-send-promo-emails {
2795
- text-align: center;
2796
- }
2797
-
2798
- .tinvwl-content .tinvwl-modal.tinvwl-send-promo-emails p {
2799
- margin: 0 0 26px;
2800
- }
2801
-
2802
- .tinvwl-content .tinvwl-modal.tinvwl-send-promo-emails .tinvwl-btn.large {
2803
- padding: 14px 33px;
2804
- }
2805
-
2806
- .tinvwl-content .tinvwl-modal.tinvwl-send-promo-emails .tinvwl-btn + .tinvwl-btn {
2807
- margin-left: 6px;
2808
- }
2809
-
2810
-
2811
- /* Quick Buttons */
2812
-
2813
- .tinvwl-quick-btns {
2814
- position: fixed;
2815
- top: 25%;
2816
- left: 100%;
2817
- z-index: 9999;
2818
- }
2819
-
2820
- .tinvwl-quick-btns button {
2821
- display: block;
2822
- width: 117px;
2823
- font-size: 14px;
2824
- font-family: "Open Sans", Arial, sans-serif;
2825
- font-weight: 600;
2826
- padding: 0 35px 0 0;
2827
- -webkit-border-radius: 2px;
2828
- -moz-border-radius: 2px;
2829
- border-radius: 2px;
2830
- border: none;
2831
- text-decoration: none;
2832
- background: #96b100;
2833
- color: #ffffff;
2834
-
2835
- -webkit-transform: translateX(-50px);
2836
- -moz-transform: translateX(-50px);
2837
- -o-transform: translateX(-50px);
2838
- transform: translateX(-50px);
2839
-
2840
- -webkit-transition: transform .3s ease;
2841
- -moz-transition: transform .3s ease;
2842
- -o-transition: transform .3s ease;
2843
- transition: transform .3s ease;
2844
- }
2845
-
2846
- .tinvwl-panel.only-button .tinvwl-quick-btns .form-control {
2847
- display: block;
2848
- width: 119px;
2849
- }
2850
-
2851
- .tinvwl-quick-btns button:hover {
2852
- -webkit-transform: translateX(-100%);
2853
- -moz-transform: translateX(-100%);
2854
- -o-transform: translateX(-100%);
2855
- transform: translateX(-100%);
2856
- }
2857
-
2858
- .tinvwl-quick-btns button + button {
2859
- margin-top: 4px;
2860
- }
2861
-
2862
- .tinvwl-quick-btns button span {
2863
- display: inline-block;
2864
- width: 50px;
2865
- padding: 15px 0;
2866
- text-align: center;
2867
- }
2868
-
2869
-
2870
- /* Preview Select */
2871
-
2872
- @media (min-width: 1200px) {
2873
- .tinvwl-empty-select + .input-group-btn {
2874
- text-align: right;
2875
- }
2876
- }
2877
-
2878
- .tinvwl-empty-select + .input-group-btn .tinvwl-btn {
2879
- margin-left: 0;
2880
- }
2881
-
2882
-
2883
- /* Bootstrap */
2884
-
2885
- .container {
2886
- /*padding-right: 15px;
2887
- padding-left: 15px;*/
2888
- margin-right: auto;
2889
- margin-left: auto;
2890
- }
2891
- @media (min-width: 768px) {
2892
- .container {
2893
- width: 750px;
2894
- }
2895
- }
2896
- @media (min-width: 992px) {
2897
- .container {
2898
- width: 970px;
2899
- }
2900
- }
2901
- @media (min-width: 1200px) {
2902
- .container {
2903
- width: 1170px;
2904
- }
2905
- }
2906
- .container-fluid {
2907
- /*padding-right: 15px;
2908
- padding-left: 15px;*/
2909
- margin-right: auto;
2910
- margin-left: auto;
2911
- }
2912
- .row {
2913
- margin-right: -15px;
2914
- margin-left: -15px;
2915
- }
2916
- .col-xs-1, .col-sm-1, .col-md-1, .col-lg-1, .col-xs-2, .col-sm-2, .col-md-2, .col-lg-2, .col-xs-3, .col-sm-3, .col-md-3, .col-lg-3, .col-xs-4, .col-sm-4, .col-md-4, .col-lg-4, .col-xs-5, .col-sm-5, .col-md-5, .col-lg-5, .col-xs-6, .col-sm-6, .col-md-6, .col-lg-6, .col-xs-7, .col-sm-7, .col-md-7, .col-lg-7, .col-xs-8, .col-sm-8, .col-md-8, .col-lg-8, .col-xs-9, .col-sm-9, .col-md-9, .col-lg-9, .col-xs-10, .col-sm-10, .col-md-10, .col-lg-10, .col-xs-11, .col-sm-11, .col-md-11, .col-lg-11, .col-xs-12, .col-sm-12, .col-md-12, .col-lg-12 {
2917
- position: relative;
2918
- min-height: 1px;
2919
- padding-right: 15px;
2920
- padding-left: 15px;
2921
- }
2922
-
2923
- .tinvwl-table .form-group .row {
2924
- /*margin-left: -5px;*/
2925
- /*margin-right: -5px;*/
2926
- }
2927
-
2928
- .tinvwl-table .form-group [class^="col-"] {
2929
- /*padding-right: 5px;*/
2930
- /*padding-left: 5px;*/
2931
- }
2932
-
2933
- .col-xs-1, .col-xs-2, .col-xs-3, .col-xs-4, .col-xs-5, .col-xs-6, .col-xs-7, .col-xs-8, .col-xs-9, .col-xs-10, .col-xs-11, .col-xs-12 {
2934
- float: left;
2935
- }
2936
- .col-xs-12{width:100%}.col-xs-11{width:91.66666667%}.col-xs-10{width:83.33333333%}.col-xs-9{width:75%}.col-xs-8{width:66.66666667%}.col-xs-7{width:58.33333333%}.col-xs-6{width:50%}.col-xs-5{width:41.66666667%}.col-xs-4{width:33.33333333%}.col-xs-3{width:25%}.col-xs-2{width:16.66666667%}.col-xs-1{width:8.33333333%}.col-xs-pull-12{right:100%}.col-xs-pull-11{right:91.66666667%}.col-xs-pull-10{right:83.33333333%}.col-xs-pull-9{right:75%}.col-xs-pull-8{right:66.66666667%}.col-xs-pull-7{right:58.33333333%}.col-xs-pull-6{right:50%}.col-xs-pull-5{right:41.66666667%}.col-xs-pull-4{right:33.33333333%}.col-xs-pull-3{right:25%}.col-xs-pull-2{right:16.66666667%}.col-xs-pull-1{right:8.33333333%}.col-xs-pull-0{right:auto}.col-xs-push-12{left:100%}.col-xs-push-11{left:91.66666667%}.col-xs-push-10{left:83.33333333%}.col-xs-push-9{left:75%}.col-xs-push-8{left:66.66666667%}.col-xs-push-7{left:58.33333333%}.col-xs-push-6{left:50%}.col-xs-push-5{left:41.66666667%}.col-xs-push-4{left:33.33333333%}.col-xs-push-3{left:25%}.col-xs-push-2{left:16.66666667%}.col-xs-push-1{left:8.33333333%}.col-xs-push-0{left:auto}.col-xs-offset-12{margin-left:100%}.col-xs-offset-11{margin-left:91.66666667%}.col-xs-offset-10{margin-left:83.33333333%}.col-xs-offset-9{margin-left:75%}.col-xs-offset-8{margin-left:66.66666667%}.col-xs-offset-7{margin-left:58.33333333%}.col-xs-offset-6{margin-left:50%}.col-xs-offset-5{margin-left:41.66666667%}.col-xs-offset-4{margin-left:33.33333333%}.col-xs-offset-3{margin-left:25%}.col-xs-offset-2{margin-left:16.66666667%}.col-xs-offset-1{margin-left:8.33333333%}.col-xs-offset-0{margin-left:0}
2937
- @media (min-width: 768px){.col-sm-1,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-sm-10,.col-sm-11,.col-sm-12{float:left}.col-sm-12{width:100%}.col-sm-11{width:91.66666667%}.col-sm-10{width:83.33333333%}.col-sm-9{width:75%}.col-sm-8{width:66.66666667%}.col-sm-7{width:58.33333333%}.col-sm-6{width:50%}.col-sm-5{width:41.66666667%}.col-sm-4{width:33.33333333%}.col-sm-3{width:25%}.col-sm-2{width:16.66666667%}.col-sm-1{width:8.33333333%}.col-sm-pull-12{right:100%}.col-sm-pull-11{right:91.66666667%}.col-sm-pull-10{right:83.33333333%}.col-sm-pull-9{right:75%}.col-sm-pull-8{right:66.66666667%}.col-sm-pull-7{right:58.33333333%}.col-sm-pull-6{right:50%}.col-sm-pull-5{right:41.66666667%}.col-sm-pull-4{right:33.33333333%}.col-sm-pull-3{right:25%}.col-sm-pull-2{right:16.66666667%}.col-sm-pull-1{right:8.33333333%}.col-sm-pull-0{right:auto}.col-sm-push-12{left:100%}.col-sm-push-11{left:91.66666667%}.col-sm-push-10{left:83.33333333%}.col-sm-push-9{left:75%}.col-sm-push-8{left:66.66666667%}.col-sm-push-7{left:58.33333333%}.col-sm-push-6{left:50%}.col-sm-push-5{left:41.66666667%}.col-sm-push-4{left:33.33333333%}.col-sm-push-3{left:25%}.col-sm-push-2{left:16.66666667%}.col-sm-push-1{left:8.33333333%}.col-sm-push-0{left:auto}.col-sm-offset-12{margin-left:100%}.col-sm-offset-11{margin-left:91.66666667%}.col-sm-offset-10{margin-left:83.33333333%}.col-sm-offset-9{margin-left:75%}.col-sm-offset-8{margin-left:66.66666667%}.col-sm-offset-7{margin-left:58.33333333%}.col-sm-offset-6{margin-left:50%}.col-sm-offset-5{margin-left:41.66666667%}.col-sm-offset-4{margin-left:33.33333333%}.col-sm-offset-3{margin-left:25%}.col-sm-offset-2{margin-left:16.66666667%}.col-sm-offset-1{margin-left:8.33333333%}.col-sm-offset-0{margin-left:0}}
2938
- @media (min-width: 992px){.col-md-1,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9,.col-md-10,.col-md-11,.col-md-12{float:left}.col-md-12{width:100%}.col-md-11{width:91.66666667%}.col-md-10{width:83.33333333%}.col-md-9{width:75%}.col-md-8{width:66.66666667%}.col-md-7{width:58.33333333%}.col-md-6{width:50%}.col-md-5{width:41.66666667%}.col-md-4{width:33.33333333%}.col-md-3{width:25%}.col-md-2{width:16.66666667%}.col-md-1{width:8.33333333%}.col-md-pull-12{right:100%}.col-md-pull-11{right:91.66666667%}.col-md-pull-10{right:83.33333333%}.col-md-pull-9{right:75%}.col-md-pull-8{right:66.66666667%}.col-md-pull-7{right:58.33333333%}.col-md-pull-6{right:50%}.col-md-pull-5{right:41.66666667%}.col-md-pull-4{right:33.33333333%}.col-md-pull-3{right:25%}.col-md-pull-2{right:16.66666667%}.col-md-pull-1{right:8.33333333%}.col-md-pull-0{right:auto}.col-md-push-12{left:100%}.col-md-push-11{left:91.66666667%}.col-md-push-10{left:83.33333333%}.col-md-push-9{left:75%}.col-md-push-8{left:66.66666667%}.col-md-push-7{left:58.33333333%}.col-md-push-6{left:50%}.col-md-push-5{left:41.66666667%}.col-md-push-4{left:33.33333333%}.col-md-push-3{left:25%}.col-md-push-2{left:16.66666667%}.col-md-push-1{left:8.33333333%}.col-md-push-0{left:auto}.col-md-offset-12{margin-left:100%}.col-md-offset-11{margin-left:91.66666667%}.col-md-offset-10{margin-left:83.33333333%}.col-md-offset-9{margin-left:75%}.col-md-offset-8{margin-left:66.66666667%}.col-md-offset-7{margin-left:58.33333333%}.col-md-offset-6{margin-left:50%}.col-md-offset-5{margin-left:41.66666667%}.col-md-offset-4{margin-left:33.33333333%}.col-md-offset-3{margin-left:25%}.col-md-offset-2{margin-left:16.66666667%}.col-md-offset-1{margin-left:8.33333333%}.col-md-offset-0{margin-left:0}}
2939
- @media (min-width: 1200px){.col-lg-1,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9,.col-lg-10,.col-lg-11,.col-lg-12{float:left}.col-lg-12{width:100%}.col-lg-11{width:91.66666667%}.col-lg-10{width:83.33333333%}.col-lg-9{width:75%}.col-lg-8{width:66.66666667%}.col-lg-7{width:58.33333333%}.col-lg-6{width:50%}.col-lg-5{width:41.66666667%}.col-lg-4{width:33.33333333%}.col-lg-3{width:25%}.col-lg-2{width:16.66666667%}.col-lg-1{width:8.33333333%}.col-lg-pull-12{right:100%}.col-lg-pull-11{right:91.66666667%}.col-lg-pull-10{right:83.33333333%}.col-lg-pull-9{right:75%}.col-lg-pull-8{right:66.66666667%}.col-lg-pull-7{right:58.33333333%}.col-lg-pull-6{right:50%}.col-lg-pull-5{right:41.66666667%}.col-lg-pull-4{right:33.33333333%}.col-lg-pull-3{right:25%}.col-lg-pull-2{right:16.66666667%}.col-lg-pull-1{right:8.33333333%}.col-lg-pull-0{right:auto}.col-lg-push-12{left:100%}.col-lg-push-11{left:91.66666667%}.col-lg-push-10{left:83.33333333%}.col-lg-push-9{left:75%}.col-lg-push-8{left:66.66666667%}.col-lg-push-7{left:58.33333333%}.col-lg-push-6{left:50%}.col-lg-push-5{left:41.66666667%}.col-lg-push-4{left:33.33333333%}.col-lg-push-3{left:25%}.col-lg-push-2{left:16.66666667%}.col-lg-push-1{left:8.33333333%}.col-lg-push-0{left:auto}.col-lg-offset-12{margin-left:100%}.col-lg-offset-11{margin-left:91.66666667%}.col-lg-offset-10{margin-left:83.33333333%}.col-lg-offset-9{margin-left:75%}.col-lg-offset-8{margin-left:66.66666667%}.col-lg-offset-7{margin-left:58.33333333%}.col-lg-offset-6{margin-left:50%}.col-lg-offset-5{margin-left:41.66666667%}.col-lg-offset-4{margin-left:33.33333333%}.col-lg-offset-3{margin-left:25%}.col-lg-offset-2{margin-left:16.66666667%}.col-lg-offset-1{margin-left:8.33333333%}.col-lg-offset-0{margin-left:0}}
2940
-
2941
- @media (max-width: 1199px) {
2942
- .tinvwl-table .row > [class^="col-md-"] + [class^="col-md-"],
2943
- .tinvwl-table .row > [class^="col-lg-"] + [class^="col-lg-"] {
2944
- padding-top: 30px;
2945
- }
2946
- .tinvwl-table .form-group > [class^="col-md-"] + [class^="col-md-"],
2947
- .tinvwl-table .form-group > [class^="col-lg-"] + [class^="col-lg-"] {
2948
- padding-top: 30px;
2949
- }
2950
- }
2951
-
2952
- .fade {
2953
- opacity: 0;
2954
- -webkit-transition: opacity .15s linear;
2955
- -o-transition: opacity .15s linear;
2956
- transition: opacity .15s linear;
2957
- }
2958
- .fade.in {
2959
- opacity: 1;
2960
- }
2961
-
2962
- .form-horizontal .form-group {
2963
- margin-right: -15px;
2964
- margin-left: -15px;
2965
- }
2966
-
2967
- .form-group {
2968
- margin-bottom: 23px;
2969
- }
2970
-
2971
- .form-horizontal:last-of-type .form-group {
2972
- /*margin-bottom: 0;*/
2973
- }
2974
-
2975
- .tinvwl-inner .form-group + .form-group > label {
2976
- /*margin-top: 7px;*/
2977
- }
2978
-
2979
- .form-control {
2980
- display: block;
2981
- width: 100%;
2982
- }
2983
-
2984
- label.one-line {
2985
- display: inline-block;
2986
- margin-bottom: 0;
2987
- margin-right: 10px;
2988
- }
2989
-
2990
- .control-label label {
2991
- display: block;
2992
- margin-bottom: 10px;
2993
- }
2994
-
2995
- .form-horizontal .control-label label {
2996
- padding-top: 9px;
2997
- margin-bottom: 0;
2998
- }
2999
-
3000
- @media (min-width: 1200px) {
3001
- .tinvwl-table .tinvwl-header-row label {
3002
- margin-bottom: 0;
3003
- }
3004
-
3005
- .tinvwl-table .tinvwl-header-row .form-group {
3006
- margin-top: -7px;
3007
- margin-bottom: 13px;
3008
- }
3009
- }
3010
-
3011
- @media (max-width: 1199px) {
3012
- .form-horizontal .control-label label {
3013
- margin-bottom: 10px;
3014
- }
3015
-
3016
- .tinvwl-table .tinvwl-header-row label {
3017
- padding-top: 3px;
3018
- }
3019
- }
3020
-
3021
- .input-group-btn {
3022
- margin-top: 13px;
3023
- }
3024
-
3025
- .input-group {
3026
- position: relative;
3027
- display: table;
3028
- border-collapse: separate;
3029
- }
3030
-
3031
- .input-group-addon,
3032
- .input-group-btn {
3033
- width: 1%;
3034
- white-space: nowrap;
3035
- vertical-align: middle;
3036
- }
3037
-
3038
- .input-group-btn {
3039
- margin-top: 0;
3040
- position: relative;
3041
- white-space: nowrap;
3042
- }
3043
-
3044
- .input-group-btn .tinvwl-btn {
3045
- margin-left: 10px;
3046
- }
3047
-
3048
- .input-group-btn > .btn {
3049
- position: relative;
3050
- }
3051
-
3052
- .input-group .form-control,
3053
- .input-group-addon,
3054
- .input-group-btn {
3055
- display: table-cell;
3056
- }
3057
-
3058
- .input-group .form-control {
3059
- position: relative;
3060
- z-index: 2;
3061
- float: left;
3062
- width: 100%;
3063
- margin-bottom: 0;
3064
- }
3065
-
3066
- @media only screen and (max-width: 1199px) {
3067
- .input-group:not(.tinvwl-no-full) {
3068
- display: block;
3069
- }
3070
-
3071
- .input-group:not(.tinvwl-no-full) .form-control {
3072
- float: none;
3073
- }
3074
-
3075
- .input-group:not(.tinvwl-no-full) .form-control + .input-group-btn {
3076
- padding-top: 10px;
3077
- padding-left: 0;
3078
- }
3079
-
3080
- .input-group:not(.tinvwl-no-full) .input-group-addon,
3081
- .input-group:not(.tinvwl-no-full) .input-group-btn,
3082
- .input-group:not(.tinvwl-no-full) .form-control {
3083
- display: block;
3084
- }
3085
-
3086
- .input-group:not(.tinvwl-no-full) .input-group-addon,
3087
- .input-group:not(.tinvwl-no-full) .input-group-btn,
3088
- .input-group:not(.tinvwl-no-full) .input-group-addon > input,
3089
- .input-group:not(.tinvwl-no-full) .input-group-addon > button,
3090
- .input-group:not(.tinvwl-no-full) .input-group-btn > input,
3091
- .input-group:not(.tinvwl-no-full) .input-group-btn > button {
3092
- margin-left: 0;
3093
- }
3094
- }
3095
-
3096
- .text-right {
3097
- text-align: right;
3098
- }
3099
-
3100
- @media (max-width: 1199px) {
3101
- .text-right {
3102
- text-align: left;
3103
- }
3104
- }
3105
-
3106
- @media (min-width: 768px) {
3107
- .form-inline .form-group {
3108
- display: inline-block;
3109
- margin-bottom: 0;
3110
- vertical-align: middle;
3111
- }
3112
- .form-inline .form-control {
3113
- display: inline-block;
3114
- width: auto;
3115
- vertical-align: middle;
3116
- }
3117
- .form-inline .form-control-static {
3118
- display: inline-block;
3119
- }
3120
- .form-inline .input-group {
3121
- display: inline-table;
3122
- vertical-align: middle;
3123
- }
3124
- .form-inline .input-group .input-group-addon,
3125
- .form-inline .input-group .input-group-btn,
3126
- .form-inline .input-group .form-control {
3127
- width: auto;
3128
- }
3129
- .form-inline .input-group > .form-control {
3130
- width: 100%;
3131
- }
3132
- .form-inline .control-label label {
3133
- margin-bottom: 0;
3134
- vertical-align: middle;
3135
- }
3136
- .form-inline .radio,
3137
- .form-inline .checkbox {
3138
- display: inline-block;
3139
- margin-top: 0;
3140
- margin-bottom: 0;
3141
- vertical-align: middle;
3142
- }
3143
- .form-inline .radio label,
3144
- .form-inline .checkbox label {
3145
- padding-left: 0;
3146
- }
3147
- .form-inline .radio input[type="radio"],
3148
- .form-inline .checkbox input[type="checkbox"] {
3149
- position: relative;
3150
- margin-left: 0;
3151
- }
3152
- .form-inline .has-feedback .form-control-feedback {
3153
- top: 0;
3154
- }
3155
- }
3156
-
3157
- /*************************IMAGES *******************************/
3158
-
3159
- .logo_heart{
3160
- background: url('../img/logo_heart.png') no-repeat center;
3161
- display: inline-block;
3162
- background-size: 54px 54px;
3163
- width: 54px;
3164
- height: 54px;
3165
- }
3166
-
3167
- .admin-rescue{
3168
- background: url('../img/admin-rescue.png') no-repeat center;
3169
- display: inline-block;
3170
- background-size: 61px 60px;
3171
- width: 61px;
3172
- height: 60px;
3173
- }
3174
-
3175
- .admin-update{
3176
- background: url('../img/admin-update.png') no-repeat center;
3177
- display: inline-block;
3178
- background-size: 61px 60px;
3179
- width: 61px;
3180
- height: 60px;
3181
- }
3182
-
3183
- .wizard_logo{
3184
- background: url('../img/wizard_logo.png') no-repeat center;
3185
- background-size: 54px 54px;
3186
- width: 54px;
3187
- height: 54px;
3188
- display: block;
3189
- margin: 10px auto;
3190
- }
3191
- .wizard_setup{
3192
- background: url('../img/wizard_setup.png') no-repeat center;
3193
- display: inline-block;
3194
- background-size: 143px 144px;
3195
- width: 143px;
3196
- height: 144px;
3197
- }
3198
-
3199
- .premium_adv{
3200
- background: url('../img/premium_adv.png') no-repeat center;
3201
- display: block;
3202
- margin: 0 auto;
3203
- background-size: 365px 216px;
3204
- width: 365px;
3205
- height: 216px;
3206
- }
3207
-
3208
- /************************** RETINA *************************/
3209
- .tinvwl-content select {
3210
- background-size: 13px 8px;
3211
-
3212
- }
3213
- .tinvwl-select + .tinvwl-caret span {
3214
- background-size: 13px 18px;
3215
-
3216
- }
3217
-
3218
- .tinvwl-content .tablenav .tablenav-pages .pagination-links .prev-page .tinvwl-chevron {
3219
- background-size: 20px 30px;
3220
-
3221
- }
3222
-
3223
- .tinvwl-content .tablenav .tablenav-pages .pagination-links .prev-page:hover .tinvwl-chevron {
3224
- background-size: 20px 30px;
3225
-
3226
- }
3227
-
3228
- .tinvwl-content .tablenav .tablenav-pages .pagination-links .next-page .tinvwl-chevron {
3229
- background-size: 20px 30px;
3230
-
3231
- }
3232
-
3233
- .tinvwl-content .tablenav .tablenav-pages .pagination-links .next-page:hover .tinvwl-chevron {
3234
- background-size: 20px 30px;
3235
-
3236
- }
3237
-
3238
- .tinvwl-color-picker .tinvwl-eyedropper {
3239
- background-size: 28px 29px;
3240
-
3241
- }
3242
-
3243
- @media only screen and (-webkit-min-device-pixel-ratio: 1.5), not all, not all, not all {
3244
- .tinvwl-content select {
3245
- background-image: url('../img/select_caret@2x.png');
3246
-
3247
- }
3248
- .tinvwl-select + .tinvwl-caret span {
3249
- background-image: url('../img/chevron_down@2x.png') ;
3250
-
3251
- }
3252
-
3253
- .tinvwl-content .tablenav .tablenav-pages .pagination-links .prev-page .tinvwl-chevron {
3254
- background-image: url('../img/chevron_icon@2x.png') ;
3255
-
3256
- }
3257
-
3258
- .tinvwl-content .tablenav .tablenav-pages .pagination-links .prev-page:hover .tinvwl-chevron {
3259
- background-image: url('../img/chevron_icon@2x.png') ;
3260
-
3261
- }
3262
-
3263
- .tinvwl-content .tablenav .tablenav-pages .pagination-links .next-page .tinvwl-chevron {
3264
- background-image: url('../img/chevron_icon@2x.png') ;
3265
-
3266
- }
3267
-
3268
- .tinvwl-content .tablenav .tablenav-pages .pagination-links .next-page:hover .tinvwl-chevron {
3269
- background-image: url('../img/chevron_icon@2x.png') ;
3270
-
3271
- }
3272
-
3273
- .tinvwl-color-picker .tinvwl-eyedropper {
3274
- background-image: url('../img/color_icon@2x.png') ;
3275
-
3276
- }
3277
- .logo_heart{
3278
- background-image: url('../img/logo_heart@2x.png');
3279
- }
3280
-
3281
- .admin-rescue{
3282
- background-image: url('../img/admin-rescue@2x.png');
3283
- }
3284
-
3285
- .admin-update{
3286
- background-image: url('../img/admin-update@2x.png') ;
3287
- }
3288
-
3289
- .wizard_logo{
3290
- background-image: url('../img/wizard_logo@2x.png') ;
3291
- }
3292
- .wizard_setup{
3293
- background-image: url('../img/wizard_setup@2x.png') ;
3294
- }
3295
- }
3296
-
3297
- /******************STYLE HEADINGS*********************/
3298
- #style_options .tinvwl-table tbody tr .tinvwl-inner h2{
3299
- font-size: 18px;
3300
- color: #291C09;
3301
- text-transform: capitalize;
3302
- font-weight: 600;
3303
- margin-bottom: 21px;
3304
- padding: 14px 0;
3305
- }
1
+ /* Misc */
2
+
3
+ * {
4
+ -webkit-box-sizing: border-box;
5
+ -moz-box-sizing: border-box;
6
+ box-sizing: border-box;
7
+ }
8
+ *:before,
9
+ *:after {
10
+ -webkit-box-sizing: border-box;
11
+ -moz-box-sizing: border-box;
12
+ box-sizing: border-box;
13
+ }
14
+
15
+ .tinv-wishlist-clearfix:before,
16
+ .tinv-wishlist-clearfix:after,
17
+ .container:before,
18
+ .container:after,
19
+ .container-fluid:before,
20
+ .container-fluid:after,
21
+ .row:before,
22
+ .row:after,
23
+ .form-horizontal .form-group:before,
24
+ .form-horizontal .form-group:after,
25
+ .form-group:before,
26
+ .form-group:after,
27
+ .tablenav:before,
28
+ .tablenav:after,
29
+ .tinvwl-panel:before,
30
+ .tinvwl-panel:after {
31
+ display: table;
32
+ content: " ";
33
+ }
34
+ .tinv-wishlist-clearfix:after,
35
+ .container:after,
36
+ .container-fluid:after,
37
+ .row:after,
38
+ .form-horizontal .form-group:after,
39
+ .form-group:after,
40
+ .tablenav:after,
41
+ .tinvwl-panel:after {
42
+ clear: both;
43
+ }
44
+
45
+ .tinvwl-header table,
46
+ .tinvwl-content table {
47
+ border-spacing: 0;
48
+ border-collapse: collapse;
49
+ width: 100%;
50
+ max-width: 100%;
51
+ }
52
+
53
+ .tinvwl-header td,
54
+ .tinvwl-header th,
55
+ .tinvwl-content td,
56
+ .tinvwl-content th {
57
+ padding: 0;
58
+ }
59
+
60
+ .tinvwl-header img,
61
+ .tinvwl-content img {
62
+ height: auto;
63
+ max-width: 100%;
64
+ }
65
+
66
+ .tinvwl-header {
67
+ /*margin-bottom: 40px;*/
68
+ }
69
+
70
+ /* General */
71
+
72
+ #wpwrap {
73
+ background: #f6f3ed;
74
+ }
75
+
76
+ #wpcontent {
77
+ padding-left: 0;
78
+ }
79
+
80
+ #wpbody-content {
81
+ padding-bottom: 135px;
82
+ }
83
+
84
+ #update-nag,
85
+ .update-nag,
86
+ .notice,
87
+ div.error,
88
+ div.updated {
89
+ margin: 20px 0 0 40px;
90
+ }
91
+
92
+ .notice,
93
+ div.error,
94
+ div.updated {
95
+ margin-right: 40px;
96
+ }
97
+
98
+ body .tinvwl-header,
99
+ body .tinvwl-content {
100
+ font-family: Arial, sans-serif;
101
+ font-size: 14px;
102
+ line-height: 1.429;
103
+ color: #6b625a;
104
+ }
105
+
106
+ button,
107
+ input,
108
+ select,
109
+ textarea {
110
+ font-family: inherit;
111
+ font-size: inherit;
112
+ font-weight: inherit;
113
+ }
114
+
115
+ label,
116
+ .tinv-label {
117
+ display: block;
118
+ font-size: 15px;
119
+ font-family: "Open Sans", "Helvetica Neue", sans-serif;
120
+ color: #291C09;
121
+ font-weight: 600;
122
+ margin-bottom: 7px;
123
+ }
124
+
125
+ h1, h2, h3, h4, h5, h6,
126
+ .wrap h1 {
127
+ color: #291c09;
128
+ font-family: 'Open Sans', Arial, sans-serif;
129
+ font-weight: normal;
130
+ line-height: 1.313;
131
+ padding: 0;
132
+ margin: 0;
133
+ border: 0;
134
+ }
135
+
136
+ h1,
137
+ .wrap h1 {
138
+ font-size: 30px;
139
+ }
140
+
141
+ h2 {
142
+ font-size: 26px;
143
+ }
144
+
145
+ h3 {
146
+ font-size: 22px;
147
+ }
148
+
149
+ h4 {
150
+ font-size: 18px;
151
+ }
152
+
153
+ h5 {
154
+ font-size: 14px;
155
+ }
156
+
157
+ h6 {
158
+ font-size: 12px;
159
+ }
160
+
161
+ @media screen and (max-width: 1200px) {
162
+ #update-nag,
163
+ .update-nag,
164
+ .notice,
165
+ div.error,
166
+ div.updated {
167
+ margin-top: 20px;
168
+ margin-left: 20px;
169
+ margin-right: 20px;
170
+ }
171
+ }
172
+
173
+ @media screen and (max-width: 782px) {
174
+ .auto-fold #wpcontent {
175
+ padding-left: 0;
176
+ }
177
+
178
+ #update-nag,
179
+ .update-nag,
180
+ .notice,
181
+ div.error,
182
+ div.updated {
183
+ margin: 20px 0 0 0;
184
+ }
185
+
186
+ .notice,
187
+ div.error,
188
+ div.updated {
189
+ margin-right: 0;
190
+ }
191
+ }
192
+
193
+ /**
194
+ * SubMenu
195
+ */
196
+ #toplevel_page_tinvwl ul ul{
197
+ display:none;
198
+ margin-left: 15px;
199
+ position:absolute;
200
+ }
201
+ #toplevel_page_tinvwl ul li:hover ul, #toplevel_page_tinvwl ul li.current ul{
202
+ display:block;
203
+ left:145px;
204
+ margin-left: 15px;
205
+ position:absolute;
206
+ top:0;
207
+ }
208
+ /**
209
+ * Header Page
210
+ */
211
+ /*.tinvwl-header {
212
+ background-color: #FFF;
213
+ height: 48px;
214
+ left: -20px;
215
+ margin: 0;
216
+ padding: 24px 40px;
217
+ position: relative;
218
+ right: 0;
219
+ width: calc(100% - 60px);
220
+ top: 0;
221
+ }
222
+ .tinvwl-header .title {
223
+ font-size: 21px;
224
+ line-height: 21px;
225
+ font-weight: 400;
226
+ float: left;
227
+ }*/
228
+ /*.tinvwl-header .status-panel {
229
+ float: right;
230
+ }*/
231
+
232
+ /**
233
+ * Status Panel
234
+ */
235
+ .status-panel > div {
236
+ display: inline-block;
237
+ margin-left: 21px;
238
+ }
239
+ .status-panel .button-link {
240
+ background-color: #FF5739;
241
+ color: #FFF;
242
+ text-decoration: none;
243
+ text-transform: uppercase;
244
+ line-height: 10px;
245
+ font-weight: 600;
246
+ height: 48px;
247
+ display: table-cell;
248
+ border-radius: 5px;
249
+ padding: 0 17px;
250
+ vertical-align:middle;
251
+ }
252
+ .status-panel .button-link span::before {
253
+ color: #ffdc00;
254
+ display: inline-block;
255
+ font: normal 12px/1 'dashicons';
256
+ vertical-align: bottom;
257
+ -webkit-font-smoothing: antialiased;
258
+ content: "\f155";
259
+ }
260
+ .status-panel .button-round {
261
+ border: 2px solid #f1f1f1;
262
+ border-radius: 50%;
263
+ width: 43px;
264
+ padding-top: 5px;
265
+ padding-left: 2px;
266
+ height: 40px;
267
+ display: table-cell;
268
+ text-align: center;
269
+ vertical-align: middle;
270
+ }
271
+ .status-panel .status-tutorial span::before {
272
+ color: #515151;
273
+ display: inline-block;
274
+ font: normal 24px/1 'dashicons';
275
+ vertical-align: middle;
276
+ -webkit-font-smoothing: antialiased;
277
+ content: "\f118";
278
+ }
279
+
280
+ /**
281
+ * Message Status
282
+ */
283
+
284
+ .tinvwl-status-message {
285
+ font-family: Arial, sans-serif;
286
+ font-size: 14px;
287
+ line-height: 1.429;
288
+ margin-top: 40px;
289
+ color: #6b625a;
290
+ border-top: 2px solid #f6f3ed;
291
+ }
292
+
293
+ .tinvwl-status-message .tinvwl-title {
294
+ padding: 13px 20px;
295
+ float: left;
296
+ width: 142px;
297
+ font-weight: bold;
298
+ }
299
+
300
+ .tinvwl-status-message.type-error .tinvwl-title,
301
+ .tinvwl-status-message.type-tip .tinvwl-title {
302
+ color: #fff;
303
+ }
304
+
305
+ .tinvwl-status-message.type-attention .tinvwl-title {
306
+ color: #23282d;
307
+ }
308
+
309
+ .tinvwl-status-message.type-error .tinvwl-title {
310
+ background: #ff3814;
311
+ }
312
+
313
+ .tinvwl-status-message.type-tip .tinvwl-title {
314
+ background: #30aec4;
315
+ }
316
+
317
+ .tinvwl-status-message.type-attention .tinvwl-title {
318
+ background: #ffe900;
319
+ }
320
+
321
+ .tinvwl-status-message .tinvwl-title i {
322
+ margin-right: 10px;
323
+ }
324
+
325
+ .tinvwl-status-message.type-error > .tinvwl-title > i:before {
326
+ content: "\f00d";
327
+ }
328
+ .tinvwl-status-message.type-tip > .tinvwl-title > i:before {
329
+ content: "\f05a";
330
+ }
331
+ .tinvwl-status-message.type-attention > .tinvwl-title > i:before {
332
+ content: "\f071";
333
+ }
334
+
335
+ .tinvwl-status-message .tinvwl-message {
336
+ padding: 13px 20px;
337
+ overflow: hidden;
338
+ height: 100%;
339
+ background: #faf9f7;
340
+ }
341
+
342
+ @media screen and (max-width: 782px) {
343
+ .tinvwl-status-message {
344
+ margin-top: 20px;
345
+ }
346
+ }
347
+
348
+ /**
349
+ * Form Elements
350
+ */
351
+ .tinvwl-content label {
352
+ /*font-size: 14px;
353
+ font-weight: 600;
354
+ margin: 2px;*/
355
+ /*line-height: 42px;*/
356
+ }
357
+
358
+ .tinvwl-content a {
359
+ text-decoration: none;
360
+ color: #30aec4;
361
+ }
362
+
363
+ .tinvwl-content a:hover,
364
+ .tinvwl-content a:active,
365
+ .tinvwl-content a:focus {
366
+ color: #524737;
367
+ }
368
+
369
+ .tinvwl-content input[type=text],
370
+ .tinvwl-content input[type=password],
371
+ .tinvwl-content input[type=checkbox],
372
+ .tinvwl-content input[type=color],
373
+ .tinvwl-content input[type=date],
374
+ .tinvwl-content input[type=datetime],
375
+ .tinvwl-content input[type=datetime-local],
376
+ .tinvwl-content input[type=email],
377
+ .tinvwl-content input[type=month],
378
+ .tinvwl-content input[type=number],
379
+ .tinvwl-content input[type=radio],
380
+ .tinvwl-content input[type=tel],
381
+ .tinvwl-content input[type=time],
382
+ .tinvwl-content input[type=url],
383
+ .tinvwl-content input[type=week],
384
+ .tinvwl-content input[type=search],
385
+ .tinvwl-content select,
386
+ .tinvwl-content textarea {
387
+ line-height: 1.429;
388
+ padding: 9px 13px;
389
+ margin: 0;
390
+ color: #4f4639;
391
+ border: 1px solid rgba(0, 0, 0, .14);
392
+ -webkit-box-shadow: inset 1px 1px 6px 0 rgba(170, 157, 137, .14);
393
+ box-shadow: inset 1px 1px 6px 0 rgba(170, 157, 137, .14);
394
+ }
395
+
396
+ .tinvwl-content textarea {
397
+ height: 70px;
398
+ }
399
+
400
+ .tinvwl-content input[type=text],
401
+ .tinvwl-content input[type=password],
402
+ .tinvwl-content input[type=color],
403
+ .tinvwl-content input[type=date],
404
+ .tinvwl-content input[type=datetime],
405
+ .tinvwl-content input[type=datetime-local],
406
+ .tinvwl-content input[type=email],
407
+ .tinvwl-content input[type=month],
408
+ .tinvwl-content input[type=number],
409
+ .tinvwl-content input[type=tel],
410
+ .tinvwl-content input[type=time],
411
+ .tinvwl-content input[type=url],
412
+ .tinvwl-content input[type=week],
413
+ .tinvwl-content input[type=search],
414
+ .tinvwl-content select {
415
+ height: 42px;
416
+ -webkit-border-radius: 4px;
417
+ -moz-border-radius: 4px;
418
+ border-radius: 4px;
419
+ }
420
+
421
+ .tinvwl-content .tablenav input[type=search] {
422
+ height: 35px;
423
+ width: 210px;
424
+ padding: 9px 13px;
425
+ -webkit-box-shadow: none;
426
+ box-shadow: none;
427
+ border: none;
428
+ background: #f4f3ef;
429
+ }
430
+
431
+ .tinvwl-content .tablenav input[type=search] + input[type=submit],
432
+ .tinvwl-content .tablenav input[type=search] + button[type=submit] {
433
+ vertical-align: middle;
434
+ }
435
+
436
+ .tinvwl-content .tablenav .tinvwl-select-wrap + input[type=submit],
437
+ .tinvwl-content .tablenav input[type=search] + input[type=submit],
438
+ .tinvwl-content .tablenav input[type=search] + button[type=submit] {
439
+ float: right;
440
+ margin-left: 8px !important;
441
+ }
442
+
443
+ .tinvwl-content input[type=text]:disabled,
444
+ .tinvwl-content input[type=password]:disabled,
445
+ .tinvwl-content input[type=color]:disabled,
446
+ .tinvwl-content input[type=date]:disabled,
447
+ .tinvwl-content input[type=datetime]:disabled,
448
+ .tinvwl-content input[type=datetime-local]:disabled,
449
+ .tinvwl-content input[type=email]:disabled,
450
+ .tinvwl-content input[type=month]:disabled,
451
+ .tinvwl-content input[type=number]:disabled,
452
+ .tinvwl-content input[type=tel]:disabled,
453
+ .tinvwl-content input[type=time]:disabled,
454
+ .tinvwl-content input[type=url]:disabled,
455
+ .tinvwl-content input[type=week]:disabled,
456
+ .tinvwl-content input[type=search]:disabled,
457
+ .tinvwl-content select:disabled {
458
+ font-size: 15px;
459
+ font-family: "Open Sans", "Helvetica Neue", sans-serif;
460
+ font-weight: 600;
461
+ color: #291C09;
462
+ background-color: #f6f3ed;
463
+ border-color: #f6f3ed;
464
+ }
465
+
466
+ .tinvwl-content select {
467
+ font-family: Arial, sans-serif;
468
+ font-size: 14px;
469
+ -webkit-appearance: none;
470
+ -moz-appearance: none;
471
+ appearance: none;
472
+ cursor: pointer;
473
+ padding: 9px 40px 9px 13px;
474
+ background-color: #fff;
475
+ background-image: url('../img/select_caret.png');
476
+ background-repeat: no-repeat;
477
+ background-position: 96% center;
478
+ background-position: calc(100% - 15px) center;
479
+ }
480
+
481
+ @media screen and (max-width: 782px) {
482
+ input, textarea {
483
+ font-size: 14px;
484
+ }
485
+
486
+ #wpbody .tinvwl-content select {
487
+ height: 42px;
488
+ font-size: 14px;
489
+ }
490
+ }
491
+
492
+ .tinvwl-content select[multiple="multiple"] {
493
+ padding: 9px 13px;
494
+ background: #fff;
495
+ }
496
+
497
+ .tinvwl-content .tinvwl-select.grey {
498
+ font-size: 14px;
499
+ font-family: "Arial", "Helvetica Neue", Helvetica, sans-serif;
500
+ padding: 8px 11px;
501
+ height: 35px;
502
+ border: none;
503
+ color: #5D5D5D;
504
+ background: #f4f3ef;
505
+ }
506
+
507
+ .tinvwl-select-wrap {
508
+ position: relative;
509
+ display: inline-block;
510
+ vertical-align: middle;
511
+ cursor: pointer;
512
+ }
513
+
514
+ .tinvwl-content select.tinvwl-select.grey {
515
+ padding-right: 47px;
516
+ margin: 0;
517
+ -webkit-border-radius: 4px;
518
+ -moz-border-radius: 4px;
519
+ border-radius: 4px;
520
+ }
521
+
522
+ .tinvwl-select + .tinvwl-caret {
523
+ pointer-events: none;
524
+ display: inline-block;
525
+ position: absolute;
526
+ top: 0;
527
+ right: 0;
528
+ width: 36px;
529
+ height: 36px;
530
+ line-height: 36px;
531
+ text-align: center;
532
+ -webkit-border-radius: 0 4px 4px 0;
533
+ -moz-border-radius: 0 4px 4px 0;
534
+ border-radius: 0 4px 4px 0;
535
+ }
536
+
537
+ .tinvwl-select + .tinvwl-caret span {
538
+ display: inline-block;
539
+ width: 13px;
540
+ height: 8px;
541
+ background: url('../img/chevron_down.png') no-repeat center;
542
+ background-position: 0 -10px;
543
+ }
544
+
545
+ .tinvwl-select:hover + .tinvwl-caret {
546
+ background: #3e3e3e;
547
+ }
548
+
549
+ .tinvwl-select:hover + .tinvwl-caret span {
550
+ background-position: 0 0;
551
+ }
552
+
553
+
554
+ /* Buttons */
555
+
556
+ .tinvwl-content .tinvwl-nav {
557
+ margin: 0 40px;
558
+ }
559
+
560
+ .tinvwl-content .tinvwl-panel + .tinvwl-nav {
561
+ margin-top: 40px;
562
+ }
563
+
564
+ .tinvwl-nav .tinvwl-prev {
565
+ float: left;
566
+ }
567
+
568
+ .tinvwl-nav .tinvwl-prev .tinvwl-btn {
569
+ float: left;
570
+ }
571
+
572
+ .tinvwl-nav .tinvwl-next {
573
+ float: right;
574
+ text-align: right;
575
+ }
576
+
577
+ .tinvwl-nav .tinvwl-next .tinvwl-btn {
578
+ /*float: right;*/
579
+ }
580
+
581
+ @media (max-width: 1199px) {
582
+ .tinvwl-nav .tinvwl-prev,
583
+ .tinvwl-nav .tinvwl-next {
584
+ /*float: none;
585
+ text-align: left;*/
586
+ }
587
+ }
588
+
589
+ .tinvwl-nav .tinvwl-btn + .tinvwl-btn {
590
+ margin-left: 20px;
591
+ }
592
+
593
+ .tinvwl-panel.only-button.w-bg {
594
+ background: none;
595
+ overflow: visible;
596
+ }
597
+
598
+ .tinvwl-panel.only-button.w-shadow {
599
+ -webkit-box-shadow: none;
600
+ box-shadow: none;
601
+ overflow: visible;
602
+ }
603
+
604
+ .tinvwl-panel.only-button thead,
605
+ .tinvwl-panel.only-button tfoot {
606
+ display: none;
607
+ }
608
+
609
+ .tinvwl-panel.only-button .control-label {
610
+ display: none;
611
+ }
612
+
613
+ .tinvwl-panel.only-button .form-group {
614
+ margin-bottom: 0;
615
+ }
616
+
617
+ .tinvwl-panel.only-button .form-control {
618
+ display: inline-block;
619
+ width: auto;
620
+ }
621
+
622
+ .tinvwl-panel.only-button .tinvwl-table > tbody > tr > td {
623
+ padding: 0;
624
+ }
625
+
626
+ /* reset button */
627
+ .tinvwl-panel.only-button #save_buttons--setting_save,
628
+ .tinvwl-panel.only-button #save_buttons--setting_reset{
629
+ display: inline-block;
630
+ }
631
+ .tinvwl-panel.only-button #save_buttons--setting_reset{
632
+ float:right;
633
+ }
634
+ .tinvwl-panel.only-button #save_buttons--setting_reset .form-control{
635
+ background-color: #ffffff;
636
+ color: #3e3e3e;
637
+ }
638
+ .tinvwl-panel.only-button #save_buttons--setting_reset .tinvwl-btn.split span{
639
+ background: #fbfaf9;
640
+ }
641
+ .tinvwl-panel.only-button #save_buttons--setting_reset .form-control:hover{
642
+ color: #fff;
643
+ background-color: #515151;
644
+ }
645
+ .tinvwl-panel.only-button #save_buttons--setting_reset .tinvwl-btn.split:hover span{
646
+ background: #434343;
647
+ }
648
+
649
+ #doaction,
650
+ #doaction2,
651
+ #post-query-submit {
652
+ margin: 0;
653
+ }
654
+
655
+ button,
656
+ input[type="submit"],
657
+ .tinvwl-btn {
658
+ display: inline-block;
659
+ vertical-align: middle;
660
+ margin: 0;
661
+ font-family: 'Open Sans', Arial, sans-serif;
662
+ font-size: 14px;
663
+ line-height: normal;
664
+ cursor: pointer;
665
+ text-decoration: none;
666
+ }
667
+
668
+ .tinvwl-btn,
669
+ a.tinvwl-btn {
670
+ padding: 11px 19px 12px 18px;
671
+ font-weight: 800;
672
+ text-align: center;
673
+ text-transform: uppercase;
674
+ letter-spacing: -.025em;
675
+ border: none;
676
+ -webkit-border-radius: 2px;
677
+ -moz-border-radius: 2px;
678
+ border-radius: 2px;
679
+ color: #fff;
680
+ background-color: #96b100;
681
+ }
682
+
683
+ .tinvwl-btn.large {
684
+ padding: 14px 19px 14px 18px;
685
+ }
686
+
687
+ .tinvwl-btn.small {
688
+ padding: 6px 11px 7px;
689
+ }
690
+
691
+ .tinvwl-btn.smaller {
692
+ /*padding: 7px 15px;*/
693
+ padding: 11px 18px 12px;
694
+ }
695
+
696
+ .tinvwl-btn.red,
697
+ .tinvwl-btn.green,
698
+ .tinvwl-btn.dark-green,
699
+ .tinvwl-btn.black {
700
+ font-weight: 800;
701
+ }
702
+
703
+ .tinvwl-btn.grey {
704
+ /*padding: 6px 11px 7px;*/
705
+ margin: 0;
706
+ padding: 8px 12px;
707
+ font-weight: bold;
708
+ /*letter-spacing: 0;*/
709
+ color: #3e3e3e;
710
+ background: #F4F3EF;
711
+ }
712
+
713
+ .tinvwl-btn.grey.large {
714
+ font-weight: 800;
715
+ padding: 14px 19px 14px 18px;
716
+ }
717
+
718
+ .tinvwl-btn.grey.w-icon {
719
+ letter-spacing: -.025em;
720
+ }
721
+
722
+ .tinvwl-btn.red {
723
+ color: #fff;
724
+ background-color: #ff5739;
725
+ }
726
+
727
+ .tinvwl-btn.orange {
728
+ color: #fff;
729
+ background-color: #FF9F07;
730
+ }
731
+
732
+ .tinvwl-btn.dark-green {
733
+ /*color: #fff;*/
734
+ /*background-color: #96b100;*/
735
+ }
736
+
737
+ .tinvwl-btn.white.smaller {
738
+ font-size: 14px;
739
+ font-weight: bold;
740
+ letter-spacing: -.05em;
741
+ padding: 10px 15px 11px;
742
+ border: 1px solid rgba(0,0,0,.14);
743
+ box-shadow: 1px 2px 4px 0 rgba(0, 0, 0, 0.1);
744
+ }
745
+
746
+ .tinvwl-btn.white.small {
747
+ font-family: Arial, sans-serif;
748
+ font-size: 14px;
749
+ text-transform: none;
750
+ font-weight: normal;
751
+ border: 1px solid rgba(0,0,0,.14);
752
+ box-shadow: 1px 2px 4px 0 rgba(0, 0, 0, 0.1);
753
+ }
754
+
755
+ .tinvwl-btn.white.small {
756
+ padding: 9px 18px;
757
+ color: #4f4639;
758
+ }
759
+
760
+ .tinvwl-btn.small.white:hover,
761
+ .tinvwl-btn.small.white:active,
762
+ .tinvwl-btn.small.white:focus {
763
+ color: #fff;
764
+ }
765
+
766
+ .tinvwl-btn.white {
767
+ color: #291c09;
768
+ background: #fff;
769
+ }
770
+
771
+ .tinvwl-btn.white.no-txt {
772
+ padding: 12px 16px;
773
+ }
774
+
775
+ .tinvwl-btn.white.small.no-txt {
776
+ padding: 9px 12px;
777
+ }
778
+
779
+ .tinvwl-btn.white i {
780
+ color: #6b625a;
781
+ margin-right: 11px;
782
+ }
783
+
784
+ .tinvwl-btn.w-icon {
785
+ font-weight: 800;
786
+ }
787
+
788
+ .tinvwl-btn.w-icon i {
789
+ margin-right: 16px;
790
+ }
791
+
792
+ .tinvwl-btn.round.w-icon i {
793
+ margin-right: 15px;
794
+ font-size: 16px;
795
+ }
796
+
797
+ .tinvwl-btn.w-icon i.fa-graduation-cap {
798
+ vertical-align: text-bottom;
799
+ }
800
+
801
+ .tinvwl-btn.red.w-icon i {
802
+ margin-right: 13px;
803
+ }
804
+
805
+ .tinvwl-btn.xl-icon i,
806
+ .tinvwl-btn.round.xl-icon i {
807
+ font-size: 17px;
808
+ margin-right: 15px;
809
+ }
810
+
811
+ .tinvwl-btn.lg-icon i {
812
+ font-size: 15px;
813
+ }
814
+
815
+ .tinvwl-btn.md-icon i,
816
+ .tinvwl-btn.round.md-icon i {
817
+ font-size: 14px;
818
+ }
819
+
820
+ .tinvwl-btn.sm-icon i {
821
+ font-size: 13px;
822
+ }
823
+
824
+ .tinvwl-btn.xs-icon i {
825
+ font-size: 11px;
826
+ vertical-align: 1%;
827
+ }
828
+
829
+ .tinvwl-btn.white.no-txt i {
830
+ margin-right: 0;
831
+ }
832
+
833
+ .tinvwl-btn.white:hover i,
834
+ .tinvwl-btn.white:active i,
835
+ .tinvwl-btn.white:focus i {
836
+ color: #fff;
837
+ }
838
+
839
+ .tinvwl-btn.green {
840
+ color: #fff;
841
+ background-color: #a9c203;
842
+ }
843
+
844
+ .tinvwl-btn.black {
845
+ color: #fff;
846
+ background-color: #515151;
847
+ }
848
+
849
+ .tinvwl-btn.smaller-txt {
850
+ font-size: 12px;
851
+ padding: 15px 20px;
852
+ }
853
+
854
+ .tinvwl-btn.medium {
855
+ letter-spacing: 0;
856
+ }
857
+
858
+ .tinvwl-btn.medium.smaller-txt {
859
+ padding: 9px 16px;
860
+ }
861
+
862
+ .tinvwl-btn.round {
863
+ -webkit-border-radius: 25px;
864
+ -moz-border-radius: 25px;
865
+ border-radius: 25px;
866
+ padding: 15px 28px 16px;
867
+ }
868
+
869
+ .tinvwl-btn.round.red {
870
+ /*padding: 15px 22px 16px;*/
871
+ padding: 16px 30px;
872
+ }
873
+
874
+ .tinvwl-btn.split {
875
+ padding: 0 26px 0 0;
876
+ }
877
+
878
+ .tinvwl-btn.split span {
879
+ display: inline-block;
880
+ text-align: center;
881
+ width: 46px;
882
+ padding: 14px 0;
883
+ margin-right: 14px;
884
+ -webkit-border-radius: 4px 0 0 4px;
885
+ -moz-border-radius: 4px 0 0 4px;
886
+ border-radius: 4px 0 0 4px;
887
+ background: #8aa300;
888
+ }
889
+
890
+ .tinvwl-btn.split:hover span,
891
+ .tinvwl-btn.split:active span,
892
+ .tinvwl-btn.split:focus span {
893
+ background: #434343;
894
+ }
895
+
896
+ .tinvwl-btn.split.green span {
897
+ background: #b9cf09;
898
+ }
899
+
900
+ .tinvwl-btn.split.black span {
901
+ background: #434343;
902
+ }
903
+
904
+ .tinvwl-btn.split span i {
905
+ font-size: 17px;
906
+ }
907
+
908
+ .tinvwl-btn:not(:disabled):hover,
909
+ .tinvwl-btn:not(:disabled):active,
910
+ .tinvwl-btn:not(:disabled):focus,
911
+ a.tinvwl-btn:not(:disabled):hover,
912
+ a.tinvwl-btn:not(:disabled):active,
913
+ a.tinvwl-btn:not(:disabled):focus {
914
+ color: #fff;
915
+ /*background: #3e3e3e;*/
916
+ background-color: #515151;
917
+ }
918
+
919
+ /* Icons */
920
+
921
+ .tinvwl-header .icon.border-grey {
922
+ position: relative;
923
+ display: inline-block;
924
+ width: 45px;
925
+ height: 45px;
926
+ line-height: 45px;
927
+ text-align: center;
928
+ background: #fff;
929
+ border: 2px solid #f1f1f1;
930
+ -webkit-border-radius: 50%;
931
+ -moz-border-radius: 50%;
932
+ border-radius: 50%;
933
+ color: #3e3e3e;
934
+ }
935
+
936
+ .tinvwl-header .icon.border-grey:hover {
937
+ border-color: #515151;
938
+ }
939
+
940
+ .tinvwl-header .icon.w-lines {
941
+ position: relative;
942
+ padding: 0 30px;
943
+ }
944
+
945
+ .tinvwl-header .icon.w-lines:before,
946
+ .tinvwl-header .icon.w-lines:after {
947
+ content: '';
948
+ position: absolute;
949
+ top: 50%;
950
+ top: calc(50% - 1px);
951
+ width: 17px;
952
+ height: 1px;
953
+ background: rgba(0, 0, 0, .12);
954
+ }
955
+
956
+ .tinvwl-header .icon.w-lines:before {
957
+ left: 0;
958
+ }
959
+ .tinvwl-header .icon.w-lines:after {
960
+ right: 0;
961
+ }
962
+
963
+ .tinvwl-header .icon .badge {
964
+ position: absolute;
965
+ top: -5px;
966
+ right: -10px;
967
+ display: inline-block;
968
+ min-width: 26px;
969
+ height: 26px;
970
+ font-size: 11px;
971
+ line-height: 19px;
972
+ font-weight: bold;
973
+ background: #ff5739;
974
+ border: 3px solid #ffffff;
975
+ color: #ffffff;
976
+ -webkit-border-radius: 50%;
977
+ -moz-border-radius: 50%;
978
+ border-radius: 50%;
979
+ }
980
+
981
+ .tinvwl-header {
982
+ padding: 21px 40px;
983
+ margin-bottom: 40px;
984
+ background: #ffffff;
985
+ }
986
+
987
+ .tinwl-logo-title {
988
+ }
989
+
990
+ .tinwl-logo i.logo_heart {
991
+ min-width: 54px;
992
+ }
993
+
994
+ .tinwl-logo h2 {
995
+ font-size: 18px;
996
+ font-weight: bold;
997
+ text-transform: uppercase;
998
+ line-height: 1;
999
+ padding-left: 10px;
1000
+ }
1001
+
1002
+ .tinvwl-header .tinvwl-title {
1003
+ padding-left: 28px;
1004
+ margin-left: 28px;
1005
+ border-left: 1px solid #dcddde;
1006
+ }
1007
+
1008
+ .tinvwl-header h1 {
1009
+ color: #3e3e3e;
1010
+ padding: 0;
1011
+ }
1012
+
1013
+ .tinvwl-header .tinvwl-status-panel {
1014
+ margin-top: -12px;
1015
+ }
1016
+
1017
+ .tinvwl-header .tinvwl-status-panel > a {
1018
+ vertical-align: middle;
1019
+ }
1020
+
1021
+ .tinvwl-header .tinvwl-status-panel > a + a {
1022
+ margin-left: 15px;
1023
+ }
1024
+
1025
+ .tinvwl-header .tinvwl-btn {
1026
+ margin-top: 15px;
1027
+ }
1028
+
1029
+ .tinvwl-header .tinvwl-btn {
1030
+ margin-top: 18px;
1031
+ }
1032
+
1033
+ .tinvwl-header .tinvwl-btn.red i {
1034
+ color: #ffdc00;
1035
+ }
1036
+
1037
+ .tinvwl-header .tinvwl-status-panel {
1038
+ text-align: right;
1039
+ }
1040
+
1041
+ .tinvwl-sign-icon {
1042
+ font-size: 30px;
1043
+ font-family: "Open Sans", "Helvetica Neue", sans-serif;
1044
+ color: #948d84;
1045
+ }
1046
+
1047
+ @media (max-width: 1199px) {
1048
+ .tinvwl-header .tinvwl-table,
1049
+ .tinvwl-header .tinvwl-cell,
1050
+ .tinvwl-header .tinvwl-cell-3 {
1051
+ display: block;
1052
+ }
1053
+
1054
+ .tinvwl-header {
1055
+ text-align: center;
1056
+ }
1057
+
1058
+ .tinvwl-header h1 + .tinvwl-status-panel {
1059
+ margin-top: 25px;
1060
+ }
1061
+
1062
+ .tinvwl-header .tinvwl-status-panel {
1063
+ text-align: center;
1064
+ }
1065
+
1066
+ .tinvwl-header .tinvwl-status-panel {
1067
+ margin-top: 15px;
1068
+ }
1069
+
1070
+ .tinvwl-header .tinvwl-status-panel > a + a {
1071
+ margin-left: 9px;
1072
+ }
1073
+
1074
+ .tinvwl-header {
1075
+ padding: 18px 0 25px;
1076
+ }
1077
+
1078
+ .tinwl-logo, .tinwl-logo h2,
1079
+ .tinwl-logo img,
1080
+ .tinvwl-header .tinvwl-title {
1081
+ display: block;
1082
+ margin: 0 auto;
1083
+ }
1084
+
1085
+ .tinwl-logo h2 {
1086
+ padding-left: 0;
1087
+ margin-left: 0;
1088
+ margin-top: 6px;
1089
+ }
1090
+
1091
+ .tinvwl-header .tinvwl-title {
1092
+ position: relative;
1093
+ padding-left: 12px;
1094
+ padding-right: 12px;
1095
+ padding-top: 13px;
1096
+ margin-left: 0;
1097
+ margin-top: 16px;
1098
+ border-left: 0;
1099
+ }
1100
+
1101
+ .tinvwl-header .tinvwl-title:before {
1102
+ content: '';
1103
+ position: absolute;
1104
+ top: 0;
1105
+ left: 0;
1106
+ right: 0;
1107
+ width: 40px;
1108
+ height: 1px;
1109
+ margin: 0 auto;
1110
+ background: #dcddde;
1111
+ }
1112
+ }
1113
+
1114
+ @media (max-width: 782px) {
1115
+
1116
+ .tinvwl-header .tinvwl-btn .tinvwl-txt {
1117
+ display: none;
1118
+ }
1119
+
1120
+ .tinvwl-header .tinvwl-btn i {
1121
+ margin-right: 0 !important;
1122
+ }
1123
+
1124
+ .tinvwl-header .tinvwl-btn.grey {
1125
+ padding-left: 16px;
1126
+ padding-right: 16px;
1127
+ }
1128
+ }
1129
+
1130
+ .tinvwl-content h2{
1131
+ /*margin: 0;*/
1132
+ /*line-height: 40px;*/
1133
+ }
1134
+
1135
+
1136
+ /* Privacy Navigation */
1137
+
1138
+ .tinwl-wishlists-privacy {
1139
+ margin: -10px 0 0;
1140
+ }
1141
+
1142
+ .tinwl-wishlists-privacy li {
1143
+ float: left;
1144
+ margin: 10px 10px 0 0;
1145
+ }
1146
+
1147
+ .tinwl-wishlists-privacy li:last-child {
1148
+ margin-right: 0;
1149
+ }
1150
+
1151
+ .tinwl-wishlists-privacy li a {
1152
+ display: block;
1153
+ font-family: "Open Sans", "Helvetica Neue", sans-serif;
1154
+ font-size: 14px;
1155
+ font-weight: 600;
1156
+ line-height: 1;
1157
+ padding: 10px 16px;
1158
+ -webkit-border-radius: 3px;
1159
+ -moz-border-radius: 3px;
1160
+ border-radius: 3px;
1161
+ color: #404040;
1162
+ background: #ede8df;
1163
+ }
1164
+
1165
+ .tinwl-wishlists-privacy li.active a,
1166
+ .tinwl-wishlists-privacy li a:hover,
1167
+ .tinwl-wishlists-privacy li a:active,
1168
+ .tinwl-wishlists-privacy li a:focus {
1169
+ color: #fff;
1170
+ background-color: #96b100;
1171
+ }
1172
+
1173
+ @media screen and (max-width: 782px) {
1174
+ .tinwl-wishlists-privacy {
1175
+ margin-left: 15px;
1176
+ }
1177
+ }
1178
+
1179
+ /* Panel */
1180
+
1181
+ .tinvwl-panel {
1182
+ margin: 40px 40px 0;
1183
+ }
1184
+
1185
+ .tinvwl-panel .w-bg-grey {
1186
+ background: #fbfaf9;
1187
+ }
1188
+
1189
+ .tinvwl-panel.w-shadow {
1190
+ -webkit-box-shadow: 1px 1px 8px 0 rgba(170, 157, 137, 0.14);
1191
+ box-shadow: 1px 1px 8px 0 rgba(170, 157, 137, 0.14);
1192
+ }
1193
+
1194
+ .tinvwl-panel.w-bg {
1195
+ background: #ffffff;
1196
+ -webkit-border-radius: 4px;
1197
+ -moz-border-radius: 4px;
1198
+ border-radius: 4px;
1199
+ }
1200
+
1201
+ .tinvwl-table.w-info .tinvwl-info[rowspan],
1202
+ .tinvwl-table.w-info .tinvwl-info[rowspan] .tinvwl-info-sign {
1203
+ vertical-align: middle;
1204
+ }
1205
+
1206
+ .tinvwl-table.w-info .tinvwl-info-top > tr .tinvwl-info {
1207
+ vertical-align: top;
1208
+ }
1209
+
1210
+ @media screen and (max-width: 1200px) {
1211
+ .tinvwl-panel {
1212
+ margin: 20px 20px 0;
1213
+ }
1214
+
1215
+ .tinvwl-header {
1216
+ margin-bottom: 20px;
1217
+ }
1218
+ }
1219
+
1220
+ @media screen and (max-width: 782px) {
1221
+ .tinvwl-panel {
1222
+ margin: 20px 0 0;
1223
+ }
1224
+
1225
+ .tinvwl-panel.only-button {
1226
+ text-align: center;
1227
+ }
1228
+ }
1229
+
1230
+ /**
1231
+ * Content Elements
1232
+ */
1233
+
1234
+ .tinvwl-content {
1235
+ /*margin: 14px 40px 10px 20px;*/
1236
+ }
1237
+ .tinvwl-content section {
1238
+ /*margin-top: 20px;*/
1239
+ /*background-color: #FFF;*/
1240
+ /*border-radius: 5px;*/
1241
+ }
1242
+ .tinvwl-content section:after{
1243
+ /*content: '';
1244
+ display: block;
1245
+ height: 0;
1246
+ clear: both;*/
1247
+ }
1248
+
1249
+
1250
+ /* Preview Icon */
1251
+
1252
+ .tinvwl-icon-preview {
1253
+ position: relative;
1254
+ width: 50px;
1255
+ height: 42px;
1256
+ margin-right: 10px;
1257
+ margin-bottom: 10px;
1258
+ text-align: center;
1259
+ -webkit-border-radius: 2px;
1260
+ -moz-border-radius: 2px;
1261
+ border-radius: 2px;
1262
+ color: #595857;
1263
+ background: #f6f3ed;
1264
+ }
1265
+
1266
+ @media (min-width: 1200px) {
1267
+ .tinvwl-icon-preview {
1268
+ margin-bottom: 0;
1269
+ }
1270
+ }
1271
+
1272
+ .tinvwl-icon-preview span {
1273
+ position: absolute;
1274
+ top: 50%;
1275
+ left: 0;
1276
+ right: 0;
1277
+
1278
+ -webkit-transform: translateY(-50%);
1279
+ -moz-transform: translateY(-50%);
1280
+ -ms-transform: translateY(-50%);
1281
+ -o-transform: translateY(-50%);
1282
+ transform: translateY(-50%);
1283
+ }
1284
+
1285
+ .tinvwl-icon-preview span img {
1286
+ max-width: 50px;
1287
+ max-height: 42px;
1288
+ vertical-align: middle;
1289
+ }
1290
+
1291
+
1292
+
1293
+ /* Table */
1294
+
1295
+ .tinvwl-content .table-wrap {
1296
+ /*padding: 25px 0;*/
1297
+ }
1298
+
1299
+ .tinvwl-content table.widefat {
1300
+ -webkit-box-shadow: none;
1301
+ -moz-box-shadow: none;
1302
+ box-shadow: none;
1303
+ }
1304
+
1305
+ .tinvwl-content .tablenav {
1306
+ height: auto;
1307
+ margin: 30px;
1308
+ background: #ffffff;
1309
+ }
1310
+
1311
+ .tinvwl-content .tablenav .actions {
1312
+ /*padding: 6px 0 0;*/
1313
+ padding: 0;
1314
+ }
1315
+
1316
+ @media screen and (max-width: 782px) {
1317
+ .tablenav.top .actions {
1318
+ display: block;
1319
+ }
1320
+
1321
+ .tablenav br.tinv-wishlist-clear {
1322
+ display: none;
1323
+ }
1324
+
1325
+ .tinvwl-content .tablenav {
1326
+ margin: 15px 12px;
1327
+ }
1328
+
1329
+ .tinvwl-content .tablenav .alignleft,
1330
+ .tinvwl-content .tablenav .alignright {
1331
+ float: none;
1332
+ }
1333
+
1334
+ .tinvwl-content .tablenav .tinvwl-full {
1335
+ display: none;
1336
+ }
1337
+
1338
+ .tinvwl-content .tablenav .alignleft + .alignright {
1339
+ margin-top: 10px;
1340
+ }
1341
+
1342
+ .tinvwl-content .tablenav .tinvwl-select-wrap {
1343
+ width: calc( 100% - 75px );
1344
+ }
1345
+
1346
+ #wpbody .tinvwl-content .tablenav .tinvwl-select-wrap select.tinvwl-select {
1347
+ max-width: 100%;
1348
+ width: 100%;
1349
+ height: 35px;
1350
+ padding: 9px 13px;
1351
+ }
1352
+
1353
+ .tinvwl-content .tablenav input[type=search] {
1354
+ width: calc( 100% - 84px );
1355
+ }
1356
+
1357
+ .tinvwl-content .tablenav .tinvwl-select-wrap + input[type=submit],
1358
+ .tinvwl-content .tablenav input[type=search] + input[type=submit] {
1359
+ }
1360
+ }
1361
+
1362
+ .tinvwl-content .widefat th,
1363
+ .tinvwl-content .widefat td {
1364
+ text-align: center;
1365
+ padding: 0;
1366
+ }
1367
+
1368
+ .tinvwl-content .widefat th {
1369
+ padding: 27px 0;
1370
+ position: relative;
1371
+ }
1372
+
1373
+ .tinvwl-info-wrap.tinvwl-in-table {
1374
+ /*position: absolute;
1375
+ top: 50%;
1376
+ margin-top: -11px;*/
1377
+ }
1378
+
1379
+ .tinvwl-content .widefat th.sortable,
1380
+ .tinvwl-content .widefat th.sorted {
1381
+ padding: 0;
1382
+ }
1383
+
1384
+ .tinvwl-content .widefat th.sortable > a,
1385
+ .tinvwl-content .widefat th.sorted > a {
1386
+ padding: 28px 17px;
1387
+ }
1388
+
1389
+ .tinvwl-content .widefat th.tinvwl-has-info {
1390
+ padding-top: 28px;
1391
+ }
1392
+
1393
+ .tinvwl-content .widefat th.tinvwl-has-info.sortable > a,
1394
+ .tinvwl-content .widefat th.tinvwl-has-info.sorted > a {
1395
+ padding-top: 0;
1396
+ }
1397
+
1398
+ .tinvwl-content .widefat th.sortable:first-of-type,
1399
+ .tinvwl-content .widefat th.sorted:first-of-type {
1400
+ padding-left: 0;
1401
+ }
1402
+
1403
+ .tinvwl-content .widefat th.sortable:first-of-type > a,
1404
+ .tinvwl-content .widefat th.sorted:first-of-type > a {
1405
+ padding-left: 28px;
1406
+ }
1407
+
1408
+ .tinvwl-content .widefat th:first-of-type,
1409
+ .tinvwl-content .widefat td:first-of-type {
1410
+ text-align: left;
1411
+ padding-left: 28px;
1412
+ }
1413
+
1414
+ .tinvwl-content .widefat th .tinvwl-help-wrap {
1415
+ display: inline-block;
1416
+ }
1417
+
1418
+ .tinvwl-content .widefat th .tinvwl-help-wrap {
1419
+ margin-left: 6px;
1420
+ }
1421
+
1422
+ .tinvwl-content .widefat th.sortable > a + .tinvwl-help-wrap,
1423
+ .tinvwl-content .widefat th.sorted > a + .tinvwl-help-wrap {
1424
+ margin-left: 0;
1425
+ }
1426
+
1427
+ .tinvwl-content .widefat thead tr {
1428
+ background: #f4f3ef;
1429
+ }
1430
+
1431
+ .tinvwl-content .striped>tbody>:nth-child(odd),
1432
+ .tinvwl-content ul.striped>:nth-child(odd) {
1433
+ background: none;
1434
+ }
1435
+
1436
+ .tinvwl-content .widefat thead td.check-column,
1437
+ .tinvwl-content .widefat tbody th.check-column {
1438
+ width: 50px;
1439
+ padding: 28px 0 28px 28px;
1440
+ vertical-align: middle;
1441
+ }
1442
+
1443
+ .tinvwl-content .widefat thead td.check-column {
1444
+ padding: 28px 0 28px 28px;
1445
+ }
1446
+
1447
+ .tinvwl-content .widefat tbody th.check-column {
1448
+ padding: 13px 0 13px 28px;
1449
+ }
1450
+
1451
+ .tinvwl-content .widefat thead td.check-column + th.sortable:first-of-type > a,
1452
+ .tinvwl-content .widefat thead td.check-column + th.sorted:first-of-type > a,
1453
+ .tinvwl-content .widefat thead td.check-column + th,
1454
+ .tinvwl-content .widefat tbody th.check-column + td {
1455
+ padding-left: 21px;
1456
+ }
1457
+
1458
+ .tinvwl-content .widefat thead td.check-column + th.sortable:first-of-type > .tinvwl-info-wrap.tinvwl-in-table,
1459
+ .tinvwl-content .widefat thead td.check-column + th.sorted:first-of-type > .tinvwl-info-wrap.tinvwl-in-table {
1460
+ padding-left: 21px;
1461
+ }
1462
+
1463
+ .tinvwl-content .widefat thead td.pause-play-column,
1464
+ .tinvwl-content .widefat tbody th.pause-play-column {
1465
+ padding: 0;
1466
+ width: 53px;
1467
+ text-align: center;
1468
+ }
1469
+
1470
+ .tinvwl-content th.sortable,
1471
+ .tinvwl-content th.sorted {
1472
+ }
1473
+
1474
+ .tinvwl-content th.sortable a,
1475
+ .tinvwl-content th.sorted a {
1476
+ padding: 0;
1477
+ }
1478
+
1479
+ .tinvwl-content .widefat th,
1480
+ .tinvwl-content th.sortable > a,
1481
+ .tinvwl-content th.sorted > a {
1482
+ font-size: 14px;
1483
+ font-weight: 600;
1484
+ font-family: "Open Sans", "Helvetica Neue", sans-serif;
1485
+ color: #291C09;
1486
+ text-transform: uppercase;
1487
+ letter-spacing: -.025em;
1488
+ }
1489
+
1490
+ .tinvwl-content th.sortable > a,
1491
+ .tinvwl-content th.sorted > a {
1492
+ display: inline-block;
1493
+ vertical-align: middle;
1494
+ }
1495
+
1496
+ .tinvwl-content .widefat th.sortable > a,
1497
+ .tinvwl-content .widefat th.sorted > a {
1498
+ position: relative;
1499
+ }
1500
+
1501
+ .tinvwl-content .widefat th.sortable > a .sorting-indicator,
1502
+ .tinvwl-content .widefat th.sorted > a .sorting-indicator {
1503
+ position: absolute;
1504
+ top: 50%;
1505
+ right: 0;
1506
+ margin-top: -2px;
1507
+ }
1508
+
1509
+ .tinvwl-content .widefat th.tinvwl-has-info.sortable > a .sorting-indicator,
1510
+ .tinvwl-content .widefat th.tinvwl-has-info.sorted > a .sorting-indicator {
1511
+ margin-top: -15px;
1512
+ }
1513
+
1514
+ .tinvwl-content th.sortable a span,
1515
+ .tinvwl-content th.sorted a span {
1516
+ float: none;
1517
+ }
1518
+
1519
+ .tinvwl-content table.widefat {
1520
+ /*table-layout: auto;*/
1521
+ border: none;
1522
+ border-bottom: 2px solid #f7f7f7;
1523
+ }
1524
+
1525
+ .tinvwl-content .widefat thead td,
1526
+ .tinvwl-content .widefat thead th {
1527
+ border-bottom: 0;
1528
+ }
1529
+
1530
+ .tinvwl-content .widefat td {
1531
+ padding: 24px 0;
1532
+ vertical-align: middle;
1533
+ }
1534
+
1535
+ .tinvwl-content .widefat tbody td {
1536
+ padding: 13px 0;
1537
+ }
1538
+
1539
+ .tinvwl-content .widefat td,
1540
+ .tinvwl-content .widefat td ol,
1541
+ .tinvwl-content .widefat td p,
1542
+ .tinvwl-content .widefat td ul {
1543
+ font-size: 14px;
1544
+ }
1545
+
1546
+ .tinvwl-content .widefat tbody tr + tr {
1547
+ border-top: 2px solid #f7f7f7;
1548
+ }
1549
+
1550
+ .tinvwl-content .widefat thead th.column-preference {
1551
+ /*display: none;*/
1552
+ text-indent: -9999px;
1553
+ }
1554
+
1555
+ .tinvwl-content .widefat.wishlists thead th.column-preference,
1556
+ .tinvwl-content .widefat.wishlists tbody td.column-preference {
1557
+ min-width: 220px;
1558
+ width: 220px;
1559
+ }
1560
+
1561
+ .tinvwl-content .widefat:not(.products) tbody td.column-preference {
1562
+ text-align: right;
1563
+ }
1564
+
1565
+ .tinvwl-content .widefat.products thead th.column-quantity a > span:not(.sorting-indicator) {
1566
+ max-width: 91px;
1567
+ }
1568
+
1569
+ .tinvwl-content .widefat.users tbody .column-name > a {
1570
+ display: block;
1571
+ }
1572
+
1573
+ .tinvwl-content .widefat.products thead th.column-preference,
1574
+ .tinvwl-content .widefat.products tbody td.column-preference {
1575
+ width: 345px;
1576
+ min-width: 345px;
1577
+ }
1578
+
1579
+ .tinvwl-content .widefat.users thead th.column-preference,
1580
+ .tinvwl-content .widefat.users tbody td.column-preference {
1581
+ width: 165px;
1582
+ min-width: 165px;
1583
+ }
1584
+
1585
+ .tinvwl-content .widefat tbody .column-name strong {
1586
+ font-weight: normal;
1587
+ }
1588
+
1589
+ .tinvwl-content .widefat tbody .column-name > a {
1590
+ display: table;
1591
+ }
1592
+
1593
+ .tinvwl-content .widefat tbody .column-name .product-image img {
1594
+ max-width: 66px;
1595
+ }
1596
+
1597
+ .tinvwl-content .widefat tbody .column-name .product-image,
1598
+ .tinvwl-content .widefat tbody .column-name .product-title {
1599
+ display: table-cell;
1600
+ vertical-align: middle;
1601
+ }
1602
+
1603
+ .tinvwl-content .widefat tbody .column-name .product-title {
1604
+ padding-left: 15px;
1605
+ }
1606
+
1607
+ .tinvwl-content .widefat thead th.column-preference,
1608
+ .tinvwl-content .widefat tbody td.column-preference {
1609
+ padding-right: 20px;
1610
+ }
1611
+
1612
+ .tinvwl-content .widefat.products tbody td.column-preference > a {
1613
+ margin-right: 10px;
1614
+ float: left;
1615
+ }
1616
+
1617
+ .tinvwl-content .widefat.products tbody td.column-preference > a:last-child {
1618
+ margin-right: 0;
1619
+ }
1620
+
1621
+ .tinvwl-content .tablenav .tablenav-pages {
1622
+ float: none;
1623
+ text-align: center;
1624
+ height: auto;
1625
+ margin-top: 0;
1626
+ }
1627
+
1628
+ .tinvwl-content .tablenav .tablenav-pages .pagination-links > a,
1629
+ .tinvwl-content .tablenav .tablenav-pages .pagination-links > span {
1630
+ display: inline-block;
1631
+ vertical-align: middle;
1632
+ text-align: center;
1633
+ font-size: 14px;
1634
+ font-weight: normal;
1635
+ padding: 0;
1636
+ min-width: 38px;
1637
+ height: 38px;
1638
+ line-height: 38px;
1639
+ -webkit-border-radius: 50%;
1640
+ -moz-border-radius: 50%;
1641
+ border-radius: 50%;
1642
+ border: none;
1643
+ background: none;
1644
+ color: #3e3e3e;
1645
+ }
1646
+
1647
+ .tinvwl-content .tablenav .tablenav-pages .pagination-links > span {
1648
+ color: rgba(62,62,62,.46);
1649
+ }
1650
+
1651
+ .tinvwl-content .tablenav .tablenav-pages .pagination-links > span,
1652
+ .tinvwl-content .tablenav .tablenav-pages .pagination-links .next-page,
1653
+ .tinvwl-content .tablenav .tablenav-pages .pagination-links .prev-page {
1654
+ background: #f3f1ec;
1655
+ }
1656
+
1657
+ .tinvwl-content .tablenav .tablenav-pages .pagination-links > .tinvwl-page-number.space {
1658
+ background: none;
1659
+ color: #3e3e3e;
1660
+ }
1661
+
1662
+ .tinvwl-content .tablenav .tablenav-pages .pagination-links > a:hover,
1663
+ .tinvwl-content .tablenav .tablenav-pages .pagination-links .next-page:hover,
1664
+ .tinvwl-content .tablenav .tablenav-pages .pagination-links .prev-page:hover {
1665
+ background: #3e3e3e;
1666
+ color: #fff;
1667
+ }
1668
+
1669
+ .tinvwl-content .tablenav .tablenav-pages .pagination-links .prev-page {
1670
+ margin-right: 20px;
1671
+ }
1672
+
1673
+ .tinvwl-content .tablenav .tablenav-pages .pagination-links .next-page {
1674
+ margin-left: 20px;
1675
+ }
1676
+
1677
+ .tinvwl-content .tablenav .tablenav-pages .tinvwl-chevron {
1678
+ display: inline-block;
1679
+ vertical-align: middle;
1680
+ width: 9px;
1681
+ height: 16px;
1682
+ }
1683
+
1684
+ .tinvwl-content .tablenav .tablenav-pages .pagination-links .prev-page .tinvwl-chevron {
1685
+ background: url('../img/chevron_icon.png') no-repeat center;
1686
+ background-position: 0 -16px;
1687
+ }
1688
+
1689
+ .tinvwl-content .tablenav .tablenav-pages .pagination-links .prev-page:hover .tinvwl-chevron {
1690
+ background: url('../img/chevron_icon.png') no-repeat center;
1691
+ background-position: 0 0;
1692
+ }
1693
+
1694
+ .tinvwl-content .tablenav .tablenav-pages .pagination-links .next-page .tinvwl-chevron {
1695
+ background: url('../img/chevron_icon.png') no-repeat center;
1696
+ background-position: -10px -16px;
1697
+ }
1698
+
1699
+ .tinvwl-content .tablenav .tablenav-pages .pagination-links .next-page:hover .tinvwl-chevron {
1700
+ background: url('../img/chevron_icon.png') no-repeat center;
1701
+ background-position: -10px 0;
1702
+ }
1703
+
1704
+ .tinvwl-content .widefat.products thead th.column-name,
1705
+ .tinvwl-content .widefat.products tbody td.column-name {
1706
+ /*width: 200px;*/
1707
+ width: 30%;
1708
+ }
1709
+
1710
+ .tinvwl-content .widefat.wishlists thead th.column-title,
1711
+ .tinvwl-content .widefat.wishlists tbody td.column-title {
1712
+ width: 45%;
1713
+ }
1714
+
1715
+ .tinvwl-content .widefat.users thead th.column-wishlist,
1716
+ .tinvwl-content .widefat.users tbody td.column-wishlist {
1717
+ width: 45%;
1718
+ }
1719
+
1720
+ .tinvwl-content .widefat.users thead th.column-name,
1721
+ .tinvwl-content .widefat.users tbody td.column-name {
1722
+ text-align: left;
1723
+ }
1724
+
1725
+ .tinvwl-content .widefat.users thead th.column-quantity,
1726
+ .tinvwl-content .widefat.users tbody td.column-quantity {
1727
+ width: 100px;
1728
+ }
1729
+
1730
+ .tinvwl-content .widefat tbody td.column-preference .tinvwl-btn .tinvwl-mobile {
1731
+ display: none;
1732
+ }
1733
+
1734
+ @media screen and (max-width: 1440px) {
1735
+ .tinvwl-content .widefat.products thead th.column-preference,
1736
+ .tinvwl-content .widefat.products tbody td.column-preference {
1737
+ width: 204px;
1738
+ min-width: 204px;
1739
+ }
1740
+ .tinvwl-content .widefat.wishlists thead th.column-preference,
1741
+ .tinvwl-content .widefat.wishlists tbody td.column-preference {
1742
+ width: 98px;
1743
+ min-width: 98px;
1744
+ }
1745
+
1746
+ .tinvwl-content .widefat.users thead th.column-preference,
1747
+ .tinvwl-content .widefat.users tbody td.column-preference {
1748
+ width: 60px;
1749
+ min-width: 60px;
1750
+ }
1751
+
1752
+ .tinvwl-content .widefat tbody td.column-preference .tinvwl-btn.tinvwl-w-mobile {
1753
+ padding: 9px 12px;
1754
+ }
1755
+
1756
+ .tinvwl-content .widefat tbody td.column-preference .tinvwl-btn .tinvwl-mobile {
1757
+ display: inline;
1758
+ margin: 0;
1759
+ }
1760
+
1761
+ .tinvwl-content .widefat tbody td.column-preference .tinvwl-btn .tinvwl-full {
1762
+ display: none;
1763
+ }
1764
+ }
1765
+
1766
+ .tinvwl-content .widefat.products thead th.column-quantity span span {
1767
+ float: none;
1768
+ }
1769
+
1770
+ @media screen and (max-width: 1366px) and (min-width: 783px) {
1771
+ .tinvwl-content .widefat.products thead th.column-name,
1772
+ .tinvwl-content .widefat.products tbody td.column-name {
1773
+ /*width: 110px;*/
1774
+ /*min-width: 110px;*/
1775
+ }
1776
+
1777
+ .tinvwl-content .widefat tbody .column-name .product-image,
1778
+ .tinvwl-content .widefat tbody .column-name .product-title {
1779
+ display: block;
1780
+ }
1781
+
1782
+ .tinvwl-content .widefat tbody .column-name .product-title {
1783
+ padding-left: 0;
1784
+ }
1785
+
1786
+ .tinvwl-content .widefat.products thead th.column-preference,
1787
+ .tinvwl-content .widefat.products tbody td.column-preference {
1788
+ width: 103px;
1789
+ min-width: 103px;
1790
+ }
1791
+
1792
+ .tinvwl-content .widefat.products tbody td.column-preference > a {
1793
+ margin-right: 5px;
1794
+ }
1795
+
1796
+ .tinvwl-content .widefat tbody td.column-preference > a:nth-child(2n) {
1797
+ margin-right: 0;
1798
+ }
1799
+
1800
+ .tinvwl-content .widefat tbody td.column-preference > a:nth-child(n+3) {
1801
+ margin-top: 5px;
1802
+ }
1803
+
1804
+ .tinvwl-content .widefat thead th .tinvwl-full {
1805
+ display: none;
1806
+ }
1807
+ }
1808
+
1809
+ @media screen and (max-width: 1200px) and (min-width: 783px) {
1810
+ .tinvwl-content th.sortable a span,
1811
+ .tinvwl-content th.sorted a span {
1812
+ float: none;
1813
+ }
1814
+
1815
+ .tinvwl-content .widefat th.sortable > a,
1816
+ .tinvwl-content .widefat th.sorted > a {
1817
+ padding-left: 0;
1818
+ padding-right: 0;
1819
+ position: static;
1820
+ }
1821
+
1822
+ .tinvwl-content .widefat th.sortable > a .sorting-indicator,
1823
+ .tinvwl-content .widefat th.sorted > a .sorting-indicator {
1824
+ top: auto;
1825
+ bottom: 12px;
1826
+ left: 0;
1827
+ right: 0;
1828
+ margin-left: auto;
1829
+ margin-right: auto;
1830
+ }
1831
+
1832
+ .tinvwl-content .widefat th.sortable > a .sorting-indicator:before,
1833
+ .tinvwl-content .widefat th.sorted > a .sorting-indicator:before {
1834
+ left: -5px;
1835
+ }
1836
+
1837
+ .tinvwl-content .widefat th.tinvwl-has-info.sortable > a .sorting-indicator,
1838
+ .tinvwl-content .widefat th.tinvwl-has-info.sorted > a .sorting-indicator {
1839
+ margin-top: 12px;
1840
+ }
1841
+
1842
+ .tinvwl-content .widefat.wishlists thead th.column-title,
1843
+ .tinvwl-content .widefat.wishlists tbody td.column-title {
1844
+ width: 38%;
1845
+ }
1846
+ }
1847
+
1848
+ @media screen and (max-width: 782px) {
1849
+ .tinvwl-content .widefat th.tinvwl-has-info.sortable > a .sorting-indicator,
1850
+ .tinvwl-content .widefat th.tinvwl-has-info.sorted > a .sorting-indicator {
1851
+ margin-top: 0;
1852
+ }
1853
+
1854
+ .tinvwl-content .widefat.products tbody td.column-preference > a {
1855
+ margin-right: 5px;
1856
+ float: none;
1857
+ }
1858
+
1859
+ .tinvwl-content .widefat tbody .column-name .product-image,
1860
+ .tinvwl-content .widefat tbody .column-name .product-title {
1861
+ vertical-align: top;
1862
+ }
1863
+
1864
+ .tablenav .tablenav-pages {
1865
+ margin-bottom: 15px;
1866
+ }
1867
+
1868
+ .tinvwl-content .widefat thead th.column-primary {
1869
+ width: 100% !important;
1870
+ }
1871
+
1872
+ .tinvwl-content .widefat thead td.check-column + th.column-primary {
1873
+ width: 50% !important;
1874
+ }
1875
+
1876
+ .tinvwl-content .widefat.users thead td.check-column + th.column-primary {
1877
+ width: 100% !important;
1878
+ }
1879
+ }
1880
+
1881
+
1882
+ /* Tables */
1883
+
1884
+ .tinvwl-table {
1885
+ display: table;
1886
+ /*height: 100%;*/
1887
+ width: 100%;
1888
+ max-width: 100%;
1889
+ }
1890
+ .tinvwl-table.w-bg {
1891
+ background: #fff;
1892
+ overflow: hidden;
1893
+ -webkit-border-radius: 4px;
1894
+ -moz-border-radius: 4px;
1895
+ border-radius: 4px;
1896
+ }
1897
+ .tinvwl-table.w-shadow {
1898
+ -webkit-box-shadow: 1px 1px 8px 0 rgba(170, 157, 137, 0.14);
1899
+ box-shadow: 1px 1px 8px 0 rgba(170, 157, 137, 0.14);
1900
+ }
1901
+ .tinvwl-table.auto-width {
1902
+ width: auto;
1903
+ }
1904
+ .tinvwl-caption {
1905
+ display: table-caption;
1906
+ }
1907
+ .tinvwl-row {
1908
+ display: table-row;
1909
+ }
1910
+ .tinvwl-rows {
1911
+ display: table-row-group;
1912
+ }
1913
+ .tinvwl-cell {
1914
+ display: table-cell;
1915
+ vertical-align: middle;
1916
+ }
1917
+ .tinvwl-cell-2 {
1918
+ display: table-cell;
1919
+ vertical-align: middle;
1920
+ float: none;
1921
+ }
1922
+ .tinvwl-cell-3 {
1923
+ display: table-cell;
1924
+ vertical-align: top;
1925
+ float: none;
1926
+ }
1927
+
1928
+ .tinvwl-table.w-info > thead > tr > th:first-child,
1929
+ .tinvwl-table.w-info > tbody > tr > td:first-child {
1930
+ width: 67%;
1931
+ }
1932
+
1933
+ .tinvwl-table th,
1934
+ .tinvwl-table td {
1935
+ vertical-align: top;
1936
+ }
1937
+
1938
+ .tinvwl-table .tinvwl-inner.tinv-wishlist-clearfix h3,
1939
+ .tinvwl-table .tinvwl-inner .tinv-wishlist-clearfix h3,
1940
+ .tinvwl-table .tinvwl-inner.tinv-wishlist-clearfix h4,
1941
+ .tinvwl-table .tinvwl-inner .tinv-wishlist-clearfix h4 {
1942
+ float: left;
1943
+ }
1944
+
1945
+ .tinvwl-table .tinvwl-btn-wrap {
1946
+ float: right;
1947
+ }
1948
+
1949
+ .tinvwl-table.w-info thead > tr > th {
1950
+ text-align: left;
1951
+ }
1952
+
1953
+ .tinvwl-table.w-info thead > tr > th .tinvwl-info-wrap {
1954
+ font-weight: normal;
1955
+ }
1956
+
1957
+ .tinvwl-table > thead > tr > th {
1958
+ padding: 0 30px;
1959
+ }
1960
+
1961
+ .tinvwl-table > thead > tr > th:last-child {
1962
+ /*padding: 30px;*/
1963
+ }
1964
+
1965
+ .tinvwl-table .tinvwl-info {
1966
+ vertical-align: top;
1967
+ }
1968
+
1969
+ .tinvwl-table > thead > tr > .tinvwl-info .tinvwl-info-wrap {
1970
+ padding-bottom: 30px;
1971
+ }
1972
+
1973
+ .tinvwl-table tbody tr .tinvwl-inner h2 {
1974
+ font-size: 15px;
1975
+ color: #291C09;
1976
+ font-weight: 600;
1977
+ margin-bottom: 21px;
1978
+ }
1979
+
1980
+ .tinvwl-table > tbody > tr > .tinvwl-info .tinvwl-info-wrap {
1981
+ padding-bottom: 20px;
1982
+ }
1983
+
1984
+ .tinvwl-table > tbody > tr > td {
1985
+ padding: 0 30px;
1986
+ }
1987
+
1988
+ .tinvwl-table > tbody > tr > td:last-child {
1989
+ /*padding: 30px;*/
1990
+ }
1991
+
1992
+ .tinvwl-table thead > tr .tinvwl-inner {
1993
+ padding: 28px 0;
1994
+ margin-bottom: 30px;
1995
+ border-bottom: 2px solid rgba(219,219,219,.522);
1996
+ }
1997
+
1998
+ .tinvwl-table thead.tinwl-empty > tr .tinvwl-inner {
1999
+ padding: 30px 0 0;
2000
+ margin-bottom: 0;
2001
+ border-bottom: 0;
2002
+ }
2003
+
2004
+ .tinvwl-table thead > tr .tinvwl-inner {
2005
+ /*padding: 20px 0;*/
2006
+ }
2007
+
2008
+ .tinvwl-table .tinvwl-header-row label {
2009
+ font-size: 22px;
2010
+ font-weight: normal;
2011
+ line-height: 1.313;
2012
+ margin: 0 0 15px;
2013
+ }
2014
+
2015
+ .tinvwl-table .tinvwl-header-row label {
2016
+ padding-top: 3px !important;
2017
+ }
2018
+
2019
+ .tinvwl-table thead .tinvwl-empty-info,
2020
+ .tinvwl-table tbody > .tinvwl-bodies-border {
2021
+ display: none;
2022
+ }
2023
+
2024
+ .tinvwl-table thead .tinvwl-empty-info .tinvwl-inner {
2025
+ margin: 0;
2026
+ padding-top: 56px;
2027
+ }
2028
+
2029
+ .tinvwl-bodies-border .tinvwl-info .tinvwl-inner {
2030
+ display: none;
2031
+ padding-top: 30px;
2032
+ margin-top: 10px;
2033
+ border-top: 2px solid rgba(219,219,219,.522);
2034
+ }
2035
+
2036
+ .tinvwl-style-options .tinvwl-table thead th:first-child,
2037
+ .tinvwl-style-options .tinvwl-bodies-border td:first-child {
2038
+ /*padding-right: 0;*/
2039
+ }
2040
+
2041
+ .tinvwl-style-options .tinvwl-table thead .tinvwl-empty-info,
2042
+ .tinvwl-style-options .tinvwl-bodies-border .tinvwl-info {
2043
+ padding-left: 0;
2044
+ background: none;
2045
+ }
2046
+
2047
+ .tinvwl-style-options .tinvwl-table thead .tinvwl-empty-info {
2048
+ display: table-cell;
2049
+ }
2050
+
2051
+ .tinvwl-style-options .tinvwl-table thead .tinvwl-empty-info .tinvwl-inner,
2052
+ .tinvwl-style-options tbody + tbody > .tinvwl-bodies-border .tinvwl-info .tinvwl-inner {
2053
+ display: block;
2054
+ }
2055
+
2056
+ @media (min-width: 1200px) {
2057
+ .tinvwl-style-options .tinvwl-table .tinvwl-inner .form-horizontal {
2058
+ width: 67%;
2059
+ }
2060
+ }
2061
+
2062
+ textarea[name="style_plain-css"] {
2063
+ height: 150px;
2064
+ }
2065
+
2066
+ .tinvwl-table tbody + tbody > .tinvwl-bodies-border {
2067
+ display: table-row;
2068
+ }
2069
+
2070
+ .tinvwl-table tbody + tbody > .tinvwl-bodies-border:first-child > td:first-child > .tinvwl-inner {
2071
+ padding-top: 30px;
2072
+ margin-top: 10px;
2073
+ border-top: 2px solid rgba(219,219,219,.522);
2074
+ }
2075
+
2076
+ .tinvwl-table .tinvwl-header-row.tinvwl-line-border .tinvwl-inner {
2077
+ padding-bottom: 15px;
2078
+ margin-bottom: 30px;
2079
+ border-bottom: 2px solid rgba(219,219,219,.522);
2080
+ }
2081
+
2082
+ .tinvwl-table .form-group .col-md-4:nth-child(n+4),
2083
+ .tinvwl-table .form-group .col-lg-4:nth-child(n+4) {
2084
+ padding-top: 27px;
2085
+ }
2086
+
2087
+ .tinvwl-table tbody:first-of-type > tr:first-child > td:first-child > .tinvwl-inner {
2088
+ /*padding-top: 30px;*/
2089
+ }
2090
+
2091
+ .tinvwl-table tbody:last-of-type > tr:last-child > td:first-child > .tinvwl-inner {
2092
+ /*padding-bottom: 20px;*/
2093
+ }
2094
+
2095
+ .tinvwl-table tfoot .tinvwl-inner {
2096
+ padding-top: 20px;
2097
+ }
2098
+
2099
+ /*.tinvwl-table tbody > tr .tinvwl-inner,
2100
+ .tinvwl-table tbody > tr .tinvwl-info-wrap {
2101
+ padding: 30px 0;
2102
+ }*/
2103
+
2104
+ .tinvwl-table tbody > tr + tr .tinvwl-inner {
2105
+ /*border-top: 2px solid rgba(219,219,219,.522);*/
2106
+ }
2107
+
2108
+ .tinvwl-table tr.no-top-border .tinvwl-inner,
2109
+ .tinvwl-table tr.no-top-border .tinvwl-info-wrap {
2110
+ border-top: 0;
2111
+ padding-top: 0;
2112
+ }
2113
+
2114
+ /*.tinvwl-table tbody:first-of-type > tr:first-child > td > .tinvwl-info-wrap,*/
2115
+ .tinvwl-table thead .w-bg-grey .tinvwl-info-wrap {
2116
+ padding-top: 30px;
2117
+ }
2118
+
2119
+ .tiwl-notifications-style-logo img {
2120
+ height: 42px;
2121
+ }
2122
+
2123
+ @media (min-width: 1200px) {
2124
+ .tinvwl-table tr.tinvwl-full-width .control-label label {
2125
+ margin-bottom: 10px;
2126
+ }
2127
+ .tinvwl-table tr.tinvwl-full-width [class^="col-lg-"],
2128
+ .tinvwl-table tr.tinvwl-full-width [class^="col-md-"] {
2129
+ width: 100%;
2130
+ }
2131
+
2132
+ .tinvwl-table tr.tinvwl-full-width textarea {
2133
+ height: 250px;
2134
+ padding: 15px;
2135
+ }
2136
+
2137
+ .tiwl-notifications-style-logo img {
2138
+ float: right;
2139
+ }
2140
+ }
2141
+
2142
+ @media (max-width: 1199px) {
2143
+ .form-horizontal .control-label .tinvwl-empty {
2144
+ display: none;
2145
+ }
2146
+
2147
+ .tinvwl-style-options .tinvwl-empty-info,
2148
+ .tinvwl-style-options .tinvwl-info {
2149
+ display: none !important;
2150
+ }
2151
+
2152
+ .tinvwl-style-options .tinvwl-table thead th:first-child,
2153
+ .tinvwl-style-options .tinvwl-bodies-border td:first-child {
2154
+ padding-right: 30px !important;
2155
+ }
2156
+
2157
+ .tinvwl-table .tinvwl-header-row.tinvwl-line-border .tinvwl-inner {
2158
+ padding-bottom: 0;
2159
+ }
2160
+
2161
+ .tinvwl-table .tinvwl-header-row.tinvwl-line-border .tinvwl-inner .form-group {
2162
+ margin-bottom: 20px;
2163
+ }
2164
+ }
2165
+
2166
+ .tinvwl-info .tinvwl-info-desc a {
2167
+ text-decoration: underline;
2168
+ color: #ff5739;
2169
+ }
2170
+
2171
+ .tinvwl-info .tinvwl-info-desc a:hover,
2172
+ .tinvwl-info .tinvwl-info-desc a:active,
2173
+ .tinvwl-info .tinvwl-info-desc a:focus {
2174
+ color: #000;
2175
+ }
2176
+
2177
+ .tinvwl-info-wrap.tinvwl-in-section {
2178
+ background: #fbfaf9;
2179
+ color: #4f4639;
2180
+ }
2181
+
2182
+ .tinvwl-info-wrap.tinvwl-in-section .tinvwl-info-sign {
2183
+ width: 42px;
2184
+ vertical-align: top;
2185
+ padding-top: 1px;
2186
+ padding-right: 20px;
2187
+ }
2188
+
2189
+ .tinvwl-info-wrap .tinvwl-info-sign span,
2190
+ .tinvwl-info-wrap .tinvwl-info-sign .tinvwl-help {
2191
+ display: inline-block;
2192
+ text-align: center;
2193
+ width: 22px;
2194
+ height: 22px;
2195
+ line-height: 22px;
2196
+ -webkit-border-radius: 50%;
2197
+ -moz-border-radius: 50%;
2198
+ border-radius: 50%;
2199
+ background: #e1dbce;
2200
+ }
2201
+
2202
+ .tinvwl-info-wrap.tinvwl-in-section .tinvwl-info-sign span,
2203
+ .tinvwl-info-wrap.tinvwl-in-section .tinvwl-info-sign .tinvwl-help {
2204
+ display: block;
2205
+ }
2206
+
2207
+ .tinvwl-info-wrap i {
2208
+ font-size: 14px;
2209
+ color: #fbfaf9;
2210
+ }
2211
+
2212
+ .tinvwl-panel:not(.only-button) .tinvwl-table .col-lg-6 > .tinvwl-btn {
2213
+ width: auto;
2214
+ }
2215
+
2216
+ .tinvwl-btns-group {
2217
+ margin-bottom: 23px;
2218
+ margin-top: -15px;
2219
+ margin-right: -15px;
2220
+ }
2221
+
2222
+ .tiwl-style-custom-allow .tinvwl-inner textarea {
2223
+ margin-bottom: 23px;
2224
+ }
2225
+
2226
+ .tinvwl-btns-group .tinvwl-btn {
2227
+ margin-top: 15px;
2228
+ margin-right: 15px;
2229
+ }
2230
+
2231
+ .tinvwl-btns-group .tinvwl-btn {
2232
+ float: left;
2233
+ }
2234
+
2235
+ @media (min-width: 1200px) {
2236
+ .tinvwl-table .tinvwl-form-onoff,
2237
+ .tinvwl-panel:not(.only-button) .tinvwl-table .col-lg-6 > .tinvwl-btn {
2238
+ float: right;
2239
+ }
2240
+
2241
+ .tinvwl-btns-group .tinvwl-btn {
2242
+ float: right;
2243
+ }
2244
+ }
2245
+
2246
+ .tinvwl-table .tinvwl-info .tinvwl-info-wrap.tinvwl-in-section .tinvwl-help {
2247
+ display: none;
2248
+ }
2249
+
2250
+ .tinvwl-info-wrap.tinvwl-in-table {
2251
+ display: inline-block;
2252
+ vertical-align: middle;
2253
+ display: block;
2254
+ margin-bottom: 5px;
2255
+ }
2256
+
2257
+ .tinvwl-info-wrap.tinvwl-in-table .tinvwl-help {
2258
+ cursor: pointer;
2259
+ }
2260
+
2261
+ .tinvwl-content .widefat th.tinvwl-has-info {
2262
+ /*word-break: break-all;*/
2263
+ }
2264
+
2265
+ .tinvwl-content .widefat th.tinvwl-has-info .tinvwl-col-name {
2266
+ margin-right: 5px;
2267
+ }
2268
+
2269
+ .tinvwl-info-wrap.tinvwl-in-table .tinvwl-info-desc {
2270
+ display: none;
2271
+ }
2272
+
2273
+ @media (max-width: 1200px) {
2274
+ .tinvwl-table .tinvwl-info {
2275
+ padding-left: 15px;
2276
+ padding-right: 15px;
2277
+ /*vertical-align: middle;*/
2278
+ }
2279
+
2280
+ .tinvwl-table.w-info > thead > tr > th:first-child,
2281
+ .tinvwl-table.w-info > tbody > tr > td:first-child {
2282
+ width: 90%;
2283
+ }
2284
+
2285
+ .tinvwl-info-wrap.tinvwl-in-section .tinvwl-info-sign {
2286
+ width: auto;
2287
+ padding-right: 0;
2288
+ }
2289
+
2290
+ .tinvwl-info-wrap.tinvwl-in-section .tinvwl-info-sign span {
2291
+ display: none;
2292
+ }
2293
+
2294
+ .tinvwl-table .tinvwl-info-wrap.tinvwl-in-section .tinvwl-info-sign .tinvwl-help {
2295
+ display: block;
2296
+ margin: 0 auto;
2297
+ }
2298
+
2299
+ .tinvwl-info-wrap.tinvwl-in-section .tinvwl-info-desc {
2300
+ display: none;
2301
+ }
2302
+ }
2303
+
2304
+ @media (max-width: 782px) {
2305
+ .tinvwl-content .widefat th.tinvwl-has-info.sortable,
2306
+ .tinvwl-content .widefat th.tinvwl-has-info.sorted {
2307
+ padding-top: 0;
2308
+ }
2309
+
2310
+ .widefat tfoot td input[type=checkbox],
2311
+ .widefat th input[type=checkbox],
2312
+ .widefat thead td input[type=checkbox] {
2313
+ margin-bottom: 0;
2314
+ }
2315
+
2316
+ .tinvwl-content .widefat th.sortable > a,
2317
+ .tinvwl-content .widefat th.sorted > a,
2318
+ .tinvwl-content .widefat th.sortable.tinvwl-has-info > a,
2319
+ .tinvwl-content .widefat th.sorted.tinvwl-has-info > a {
2320
+ padding-top: 18px;
2321
+ padding-bottom: 18px;
2322
+ }
2323
+
2324
+ .tinvwl-content .widefat thead td.check-column,
2325
+ .tinvwl-content .widefat tbody th.check-column {
2326
+ padding-top: 14px;
2327
+ padding-bottom: 15px;
2328
+ padding-left: 20px;
2329
+ width: 45px;
2330
+ }
2331
+
2332
+ .tinvwl-content .widefat tbody th.check-column {
2333
+ padding-top: 11px;
2334
+ padding-bottom: 11px;
2335
+ vertical-align: top;
2336
+ }
2337
+
2338
+ .tinvwl-content .widefat.wishlists thead td.check-column,
2339
+ .tinvwl-content .widefat.wishlists tbody th.check-column {
2340
+ width: 23px;
2341
+ }
2342
+
2343
+ .tinvwl-content .widefat thead td.check-column + th.sortable:first-of-type > a,
2344
+ .tinvwl-content .widefat thead td.check-column + th.sorted:first-of-type > a,
2345
+ .tinvwl-content .widefat thead td.check-column + th,
2346
+ .tinvwl-content .widefat tbody th.check-column + td {
2347
+ padding-left: 10px;
2348
+ }
2349
+
2350
+ .tinvwl-content .widefat thead td.check-column + th.sortable:first-of-type > .tinvwl-info-wrap.tinvwl-in-table,
2351
+ .tinvwl-content .widefat thead td.check-column + th.sorted:first-of-type > .tinvwl-info-wrap.tinvwl-in-table {
2352
+ padding-left: 13px;
2353
+ display: inline-block;
2354
+ margin-top: 5px;
2355
+ margin-bottom: 0;
2356
+ }
2357
+
2358
+ .wp-list-table tr:not(.inline-edit-row):not(.no-items) td:not(.column-primary)::before {
2359
+ text-align: left;
2360
+ }
2361
+
2362
+ .wp-list-table tr:not(.inline-edit-row):not(.no-items) td.column-primary~td:not(.check-column) {
2363
+ text-align: right;
2364
+ padding-right: 30px;
2365
+ }
2366
+
2367
+ .wp-list-table tr:not(.inline-edit-row):not(.no-items) td:not(.column-primary)::before {
2368
+ left: 28px;
2369
+ }
2370
+
2371
+ .wp-list-table tr:not(.inline-edit-row):not(.no-items) td.check-column + td:not(.column-primary)::before {
2372
+ left: 13px;
2373
+ }
2374
+
2375
+ .wp-list-table tr:not(.inline-edit-row):not(.no-items) td.column-primary~td:not(.check-column):last-child {
2376
+ padding-bottom: 13px;
2377
+ }
2378
+ }
2379
+
2380
+ /* Popover */
2381
+
2382
+ .popover {
2383
+ position: absolute;
2384
+ top: 0;
2385
+ left: 0;
2386
+ z-index: 9999;
2387
+ display: none;
2388
+ max-width: 279px;
2389
+ padding: 1px;
2390
+ text-align: center;
2391
+ white-space: normal;
2392
+ background-color: #fff;
2393
+ -webkit-background-clip: padding-box;
2394
+ background-clip: padding-box;
2395
+ border-radius: 6px;
2396
+ -webkit-box-shadow: 0 5px 15px 0 rgba(0, 0, 0, 0.22);
2397
+ box-shadow: 0 5px 15px 0 rgba(0, 0, 0, 0.22);
2398
+ }
2399
+ .popover.top {
2400
+ margin-top: -10px;
2401
+ }
2402
+ .popover.right {
2403
+ margin-left: 10px;
2404
+ }
2405
+ .popover.bottom {
2406
+ margin-top: 10px;
2407
+ }
2408
+ .popover.left {
2409
+ margin-left: -10px;
2410
+ }
2411
+ .popover-title {
2412
+ padding: 30px 30px 0;
2413
+ margin: 0;
2414
+ font-family: 'Open Sans', Arial, sans-serif;
2415
+ font-size: 14px;
2416
+ font-weight: 600;
2417
+ line-height: 1.714;
2418
+ text-transform: uppercase;
2419
+ letter-spacing: -.35px;
2420
+ }
2421
+ .popover-content {
2422
+ padding: 25px 30px 30px;
2423
+ color: #5D5D5D;
2424
+ font-family: Arial, sans-serif;
2425
+ font-size: 14px;
2426
+ line-height: 1.429;
2427
+ }
2428
+ .popover > .arrow,
2429
+ .popover > .arrow:after {
2430
+ position: absolute;
2431
+ display: block;
2432
+ width: 0;
2433
+ height: 0;
2434
+ border-color: transparent;
2435
+ border-style: solid;
2436
+ }
2437
+ .popover > .arrow {
2438
+ border-width: 11px;
2439
+ margin-left: 0;
2440
+ overflow: visible;
2441
+ }
2442
+ .popover > .arrow:after {
2443
+ content: none;
2444
+ z-index: 9999;
2445
+ background: none;
2446
+ -webkit-box-shadow: none;
2447
+ box-shadow: none;
2448
+ position: absolute;
2449
+ left: auto;
2450
+ top: auto;
2451
+ width: auto;
2452
+ height: auto;
2453
+ -webkit-transform: none;
2454
+ -ms-transform: none;
2455
+ transform: none;
2456
+ }
2457
+ .popover > .arrow:after {
2458
+ content: "";
2459
+ border-width: 10px;
2460
+ }
2461
+ .popover.top > .arrow {
2462
+ bottom: -11px;
2463
+ left: 50%;
2464
+ margin-left: -11px;
2465
+ border-bottom-width: 0;
2466
+ }
2467
+ .popover.top > .arrow:after {
2468
+ bottom: 1px;
2469
+ margin-left: -10px;
2470
+ content: " ";
2471
+ border-top-color: #fff;
2472
+ border-bottom-width: 0;
2473
+ }
2474
+ .popover.right > .arrow {
2475
+ top: 50%;
2476
+ left: -11px;
2477
+ margin-top: -11px;
2478
+ border-left-width: 0;
2479
+ }
2480
+ .popover.right > .arrow:after {
2481
+ bottom: -10px;
2482
+ left: 1px;
2483
+ content: " ";
2484
+ border-right-color: #fff;
2485
+ border-left-width: 0;
2486
+ }
2487
+ .popover.bottom > .arrow {
2488
+ top: -11px;
2489
+ left: 50%;
2490
+ margin-left: -11px;
2491
+ border-top-width: 0;
2492
+ }
2493
+ .popover.bottom > .arrow:after {
2494
+ top: 1px;
2495
+ margin-left: -10px;
2496
+ content: " ";
2497
+ border-top-width: 0;
2498
+ border-bottom-color: #fff;
2499
+ }
2500
+ .popover.left > .arrow {
2501
+ top: 50%;
2502
+ left: auto;
2503
+ right: -11px;
2504
+ margin-top: -11px;
2505
+ border-right-width: 0;
2506
+ }
2507
+ .popover.left > .arrow:after {
2508
+ left: auto;
2509
+ right: 1px;
2510
+ bottom: -10px;
2511
+ content: " ";
2512
+ border-right-width: 0;
2513
+ border-left-color: #fff;
2514
+ }
2515
+
2516
+
2517
+ /* Image w/description */
2518
+
2519
+ .tinvwl-img-w-desc i{
2520
+
2521
+ margin-right: 20px;
2522
+ }
2523
+
2524
+ .tinvwl-img-w-desc h5 {
2525
+ font-weight: 600;
2526
+ text-transform: uppercase;
2527
+ }
2528
+
2529
+ .tinvwl-img-w-desc .tinvwl-desc {
2530
+ color: #4f4639;
2531
+ }
2532
+
2533
+ .tinvwl-img-w-desc h5 + .tinvwl-desc {
2534
+ margin-top: 2px;
2535
+ }
2536
+
2537
+
2538
+ /* Premium Features */
2539
+
2540
+ .tinvwl-premium-feat h2 {
2541
+ font-size: 48px;
2542
+ text-transform: uppercase;
2543
+ letter-spacing: -.025em;
2544
+ line-height: 1;
2545
+ color: #3e3e3e;
2546
+ }
2547
+
2548
+ .tinvwl-premium-feat h3 {
2549
+ font-size: 16px;
2550
+ font-weight: 600;
2551
+ text-transform: uppercase;
2552
+ letter-spacing: -.025em;
2553
+ color: #50504f;
2554
+ }
2555
+
2556
+ .tinvwl-premium-feat .tinvwl-feat-col-inner {
2557
+ padding: 40px;
2558
+ }
2559
+
2560
+ .tinvwl-premium-feat .tinvwl-pic-col .tinvwl-feat-col-inner {
2561
+ text-align: center;
2562
+ padding-left: 22px;
2563
+ padding-right: 22px;
2564
+ }
2565
+
2566
+ .tinvwl-premium-feat .tinvwl-pic-col img {
2567
+ display: block;
2568
+ margin: 0 auto;
2569
+ }
2570
+
2571
+ .tinvwl-premium-feat .tinvwl-pic-col .tinvwl-btn {
2572
+ margin-top: -35px;
2573
+ }
2574
+
2575
+ .tinvwl-premium-feat .tinvwl-features {
2576
+ margin-top: 28px;
2577
+ }
2578
+
2579
+ .tinvwl-premium-feat .tinvwl-features li i {
2580
+ color: #96b100;
2581
+ margin-right: 15px;
2582
+ }
2583
+
2584
+ .tinvwl-premium-feat .tinvwl-features li span {
2585
+ text-decoration: underline;
2586
+ }
2587
+
2588
+ .tinvwl-premium-feat .tinvwl-features li + li {
2589
+ margin-top: 14px;
2590
+ }
2591
+
2592
+ .tinvwl-premium-feat .tinvwl-img-w-desc + .tinvwl-img-w-desc {
2593
+ margin-top: 15px;
2594
+ }
2595
+
2596
+ .tinvwl-premium-feat .tinvwl-sup-col .tinvwl-feat-col-inner > .tinvwl-desc {
2597
+ line-height: 1.71428571;
2598
+ text-align: center;
2599
+ margin-top: 23px;
2600
+ }
2601
+
2602
+ .tinvwl-premium-feat .tinvwl-sup-col .tinvwl-feat-col-inner > .tinvwl-desc a {
2603
+ display: inline-block;
2604
+ text-decoration: underline;
2605
+ margin-top: 26px;
2606
+ color: #000;
2607
+ }
2608
+
2609
+
2610
+ /* Footer */
2611
+
2612
+ #wpfooter {
2613
+ padding: 10px 40px;
2614
+ }
2615
+
2616
+ #wpfooter p {
2617
+ font-family: "Open Sans", "Helvetica Neue", sans-serif;
2618
+ font-size: 14px;
2619
+ line-height: 1.85714286;
2620
+ color: #4b4b4b;
2621
+ }
2622
+
2623
+ #wpfooter .fa-heart {
2624
+ margin: 0 3px;
2625
+ }
2626
+
2627
+ #wpfooter .fa-star {
2628
+ font-size: 12px;
2629
+ margin: 0 1px;
2630
+ }
2631
+
2632
+ #wpfooter span .fa-star:first-of-type {
2633
+ margin-left: 6px;
2634
+ }
2635
+
2636
+ #wpfooter span .fa-star:last-of-type {
2637
+ margin-left: 3px;
2638
+ }
2639
+
2640
+ #wpfooter i {
2641
+ color: #ff5739;
2642
+ }
2643
+
2644
+ #wpfooter a {
2645
+ text-decoration: underline;
2646
+ color: #ff5739;
2647
+ }
2648
+
2649
+ #wpfooter a:hover,
2650
+ #wpfooter a:active,
2651
+ #wpfooter a:focus {
2652
+ color: #000;
2653
+ }
2654
+
2655
+
2656
+ /* Color Picker */
2657
+
2658
+ .tinvwl-color-picker {
2659
+ position: relative;
2660
+ }
2661
+
2662
+ .tinvwl-color-picker .iris-picker {
2663
+ position: absolute;
2664
+ z-index: 9999;
2665
+ }
2666
+
2667
+ .tinvwl-color-picker input[type=text] {
2668
+ color: #fff;
2669
+ border: 4px solid #fff;
2670
+ box-shadow: 0 0 0 1px rgba(0,0,0,.14);
2671
+ }
2672
+
2673
+ .tinvwl-color-picker .tinvwl-eyedropper {
2674
+ cursor: pointer;
2675
+ position: relative;
2676
+ display: inline-block;
2677
+ vertical-align: top;
2678
+ margin-left: 4px;
2679
+ width: 42px;
2680
+ height: 42px;
2681
+ background: #fff url('../img/color_icon.png') no-repeat center;
2682
+ border: 1px solid rgba(0,0,0,.14);
2683
+ border-radius: 2px;
2684
+ box-shadow: 1px 2px 4px 0 rgba(0, 0, 0, 0.1);
2685
+ }
2686
+
2687
+ .tinvwl-color-picker .tinvwl-eyedropper a {
2688
+ color: #6b625a;
2689
+ }
2690
+
2691
+ .tinvwl-color-picker .tinvwl-eyedropper.tinvwl-active {
2692
+ }
2693
+
2694
+ .tinvwl-color-picker .tinvwl-eyedropper i {
2695
+ display: inline-block;
2696
+ position: absolute;
2697
+ top: 15px;
2698
+ left: 14px;
2699
+ font-size: 12px;
2700
+ }
2701
+
2702
+ .tinvwl-color-picker + .iris-picker .iris-square-value {
2703
+ width: 0;
2704
+ height: 0;
2705
+ }
2706
+
2707
+
2708
+ /* Modal */
2709
+
2710
+ .tinvwl-overlay {
2711
+ position: fixed;
2712
+ top: 0;
2713
+ left: 0;
2714
+ width: 100%;
2715
+ height: 100%;
2716
+ visibility: hidden;
2717
+ opacity: 0;
2718
+
2719
+ -webkit-transition: opacity .3s ease, visibility .3s ease;
2720
+ -moz-transition: opacity .3s ease, visibility .3s ease;
2721
+ -o-transition: opacity .3s ease, visibility .3s ease;
2722
+ transition: opacity .3s ease, visibility .3s ease;
2723
+
2724
+ background: #191919;
2725
+ }
2726
+
2727
+ .tinvwl-modal.tinvwl-modal-open .tinvwl-overlay {
2728
+ visibility: visible;
2729
+ opacity: .5;
2730
+ }
2731
+
2732
+ .admin-bar .tinvwl-content .tinvwl-modal {
2733
+ padding-top: 32px !important;
2734
+ }
2735
+
2736
+ .tinvwl-content .tinvwl-modal .tinvwl-modal-inner {
2737
+ position: relative;
2738
+ margin: 0 auto;
2739
+ background: #fff;
2740
+ -webkit-border-radius: 4px;
2741
+ -moz-border-radius: 4px;
2742
+ border-radius: 4px;
2743
+ }
2744
+
2745
+ .tinvwl-content .tinvwl-modal {
2746
+ overflow-y: auto;
2747
+ overflow-x: hidden;
2748
+ top: 0;
2749
+ left: 0;
2750
+ width: 0;
2751
+ height: 0;
2752
+ z-index: 9999;
2753
+ position: fixed;
2754
+ outline: none !important;
2755
+ -webkit-backface-visibility: hidden;
2756
+ visibility: hidden;
2757
+ opacity: 0;
2758
+ text-align: left;
2759
+
2760
+ -webkit-transition: opacity .3s ease, visibility .3s ease;
2761
+ -moz-transition: opacity .3s ease, visibility .3s ease;
2762
+ -o-transition: opacity .3s ease, visibility .3s ease;
2763
+ transition: opacity .3s ease, visibility .3s ease;
2764
+ }
2765
+
2766
+ .tinvwl-content .tinvwl-modal.tinvwl-modal-open {
2767
+ visibility: visible;
2768
+ opacity: 1;
2769
+ width: 100%;
2770
+ height: 100%;
2771
+ }
2772
+
2773
+ @media screen and (max-width: 782px) {
2774
+ .admin-bar .tinvwl-content .tinvwl-modal {
2775
+ padding-top: 46px !important;
2776
+ }
2777
+ }
2778
+
2779
+ @media screen and (max-width: 600px) {
2780
+ .admin-bar .tinvwl-content .tinvwl-modal {
2781
+ padding-top: 0 !important;
2782
+ }
2783
+ }
2784
+
2785
+ .tinvwl-modal .tinvwl-table {
2786
+ height: 100%;
2787
+ }
2788
+
2789
+ .tinvwl-content .tinvwl-modal .tinvwl-modal-inner {
2790
+ max-width: 415px;
2791
+ padding: 40px 45px;
2792
+ }
2793
+
2794
+ .tinvwl-content .tinvwl-modal.tinvwl-send-promo-emails {
2795
+ text-align: center;
2796
+ }
2797
+
2798
+ .tinvwl-content .tinvwl-modal.tinvwl-send-promo-emails p {
2799
+ margin: 0 0 26px;
2800
+ }
2801
+
2802
+ .tinvwl-content .tinvwl-modal.tinvwl-send-promo-emails .tinvwl-btn.large {
2803
+ padding: 14px 33px;
2804
+ }
2805
+
2806
+ .tinvwl-content .tinvwl-modal.tinvwl-send-promo-emails .tinvwl-btn + .tinvwl-btn {
2807
+ margin-left: 6px;
2808
+ }
2809
+
2810
+
2811
+ /* Quick Buttons */
2812
+
2813
+ .tinvwl-quick-btns {
2814
+ position: fixed;
2815
+ top: 25%;
2816
+ left: 100%;
2817
+ z-index: 9999;
2818
+ }
2819
+
2820
+ .tinvwl-quick-btns button {
2821
+ display: block;
2822
+ width: 117px;
2823
+ font-size: 14px;
2824
+ font-family: "Open Sans", Arial, sans-serif;
2825
+ font-weight: 600;
2826
+ padding: 0 35px 0 0;
2827
+ -webkit-border-radius: 2px;
2828
+ -moz-border-radius: 2px;
2829
+ border-radius: 2px;
2830
+ border: none;
2831
+ text-decoration: none;
2832
+ background: #96b100;
2833
+ color: #ffffff;
2834
+
2835
+ -webkit-transform: translateX(-50px);
2836
+ -moz-transform: translateX(-50px);
2837
+ -o-transform: translateX(-50px);
2838
+ transform: translateX(-50px);
2839
+
2840
+ -webkit-transition: transform .3s ease;
2841
+ -moz-transition: transform .3s ease;
2842
+ -o-transition: transform .3s ease;
2843
+ transition: transform .3s ease;
2844
+ }
2845
+
2846
+ .tinvwl-panel.only-button .tinvwl-quick-btns .form-control {
2847
+ display: block;
2848
+ width: 119px;
2849
+ }
2850
+
2851
+ .tinvwl-quick-btns button:hover {
2852
+ -webkit-transform: translateX(-100%);
2853
+ -moz-transform: translateX(-100%);
2854
+ -o-transform: translateX(-100%);
2855
+ transform: translateX(-100%);
2856
+ }
2857
+
2858
+ .tinvwl-quick-btns button + button {
2859
+ margin-top: 4px;
2860
+ }
2861
+
2862
+ .tinvwl-quick-btns button span {
2863
+ display: inline-block;
2864
+ width: 50px;
2865
+ padding: 15px 0;
2866
+ text-align: center;
2867
+ }
2868
+
2869
+
2870
+ /* Preview Select */
2871
+
2872
+ @media (min-width: 1200px) {
2873
+ .tinvwl-empty-select + .tinvwl-input-group-btn {
2874
+ text-align: right;
2875
+ }
2876
+ }
2877
+
2878
+ .tinvwl-empty-select + .tinvwl-input-group-btn .tinvwl-btn {
2879
+ margin-left: 0;
2880
+ }
2881
+
2882
+
2883
+ /* Bootstrap */
2884
+
2885
+ .container {
2886
+ /*padding-right: 15px;
2887
+ padding-left: 15px;*/
2888
+ margin-right: auto;
2889
+ margin-left: auto;
2890
+ }
2891
+ @media (min-width: 768px) {
2892
+ .container {
2893
+ width: 750px;
2894
+ }
2895
+ }
2896
+ @media (min-width: 992px) {
2897
+ .container {
2898
+ width: 970px;
2899
+ }
2900
+ }
2901
+ @media (min-width: 1200px) {
2902
+ .container {
2903
+ width: 1170px;
2904
+ }
2905
+ }
2906
+ .container-fluid {
2907
+ /*padding-right: 15px;
2908
+ padding-left: 15px;*/
2909
+ margin-right: auto;
2910
+ margin-left: auto;
2911
+ }
2912
+ .row {
2913
+ margin-right: -15px;
2914
+ margin-left: -15px;
2915
+ }
2916
+ .col-xs-1, .col-sm-1, .col-md-1, .col-lg-1, .col-xs-2, .col-sm-2, .col-md-2, .col-lg-2, .col-xs-3, .col-sm-3, .col-md-3, .col-lg-3, .col-xs-4, .col-sm-4, .col-md-4, .col-lg-4, .col-xs-5, .col-sm-5, .col-md-5, .col-lg-5, .col-xs-6, .col-sm-6, .col-md-6, .col-lg-6, .col-xs-7, .col-sm-7, .col-md-7, .col-lg-7, .col-xs-8, .col-sm-8, .col-md-8, .col-lg-8, .col-xs-9, .col-sm-9, .col-md-9, .col-lg-9, .col-xs-10, .col-sm-10, .col-md-10, .col-lg-10, .col-xs-11, .col-sm-11, .col-md-11, .col-lg-11, .col-xs-12, .col-sm-12, .col-md-12, .col-lg-12 {
2917
+ position: relative;
2918
+ min-height: 1px;
2919
+ padding-right: 15px;
2920
+ padding-left: 15px;
2921
+ }
2922
+
2923
+ .tinvwl-table .form-group .row {
2924
+ /*margin-left: -5px;*/
2925
+ /*margin-right: -5px;*/
2926
+ }
2927
+
2928
+ .tinvwl-table .form-group [class^="col-"] {
2929
+ /*padding-right: 5px;*/
2930
+ /*padding-left: 5px;*/
2931
+ }
2932
+
2933
+ .col-xs-1, .col-xs-2, .col-xs-3, .col-xs-4, .col-xs-5, .col-xs-6, .col-xs-7, .col-xs-8, .col-xs-9, .col-xs-10, .col-xs-11, .col-xs-12 {
2934
+ float: left;
2935
+ }
2936
+ .col-xs-12{width:100%}.col-xs-11{width:91.66666667%}.col-xs-10{width:83.33333333%}.col-xs-9{width:75%}.col-xs-8{width:66.66666667%}.col-xs-7{width:58.33333333%}.col-xs-6{width:50%}.col-xs-5{width:41.66666667%}.col-xs-4{width:33.33333333%}.col-xs-3{width:25%}.col-xs-2{width:16.66666667%}.col-xs-1{width:8.33333333%}.col-xs-pull-12{right:100%}.col-xs-pull-11{right:91.66666667%}.col-xs-pull-10{right:83.33333333%}.col-xs-pull-9{right:75%}.col-xs-pull-8{right:66.66666667%}.col-xs-pull-7{right:58.33333333%}.col-xs-pull-6{right:50%}.col-xs-pull-5{right:41.66666667%}.col-xs-pull-4{right:33.33333333%}.col-xs-pull-3{right:25%}.col-xs-pull-2{right:16.66666667%}.col-xs-pull-1{right:8.33333333%}.col-xs-pull-0{right:auto}.col-xs-push-12{left:100%}.col-xs-push-11{left:91.66666667%}.col-xs-push-10{left:83.33333333%}.col-xs-push-9{left:75%}.col-xs-push-8{left:66.66666667%}.col-xs-push-7{left:58.33333333%}.col-xs-push-6{left:50%}.col-xs-push-5{left:41.66666667%}.col-xs-push-4{left:33.33333333%}.col-xs-push-3{left:25%}.col-xs-push-2{left:16.66666667%}.col-xs-push-1{left:8.33333333%}.col-xs-push-0{left:auto}.col-xs-offset-12{margin-left:100%}.col-xs-offset-11{margin-left:91.66666667%}.col-xs-offset-10{margin-left:83.33333333%}.col-xs-offset-9{margin-left:75%}.col-xs-offset-8{margin-left:66.66666667%}.col-xs-offset-7{margin-left:58.33333333%}.col-xs-offset-6{margin-left:50%}.col-xs-offset-5{margin-left:41.66666667%}.col-xs-offset-4{margin-left:33.33333333%}.col-xs-offset-3{margin-left:25%}.col-xs-offset-2{margin-left:16.66666667%}.col-xs-offset-1{margin-left:8.33333333%}.col-xs-offset-0{margin-left:0}
2937
+ @media (min-width: 768px){.col-sm-1,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-sm-10,.col-sm-11,.col-sm-12{float:left}.col-sm-12{width:100%}.col-sm-11{width:91.66666667%}.col-sm-10{width:83.33333333%}.col-sm-9{width:75%}.col-sm-8{width:66.66666667%}.col-sm-7{width:58.33333333%}.col-sm-6{width:50%}.col-sm-5{width:41.66666667%}.col-sm-4{width:33.33333333%}.col-sm-3{width:25%}.col-sm-2{width:16.66666667%}.col-sm-1{width:8.33333333%}.col-sm-pull-12{right:100%}.col-sm-pull-11{right:91.66666667%}.col-sm-pull-10{right:83.33333333%}.col-sm-pull-9{right:75%}.col-sm-pull-8{right:66.66666667%}.col-sm-pull-7{right:58.33333333%}.col-sm-pull-6{right:50%}.col-sm-pull-5{right:41.66666667%}.col-sm-pull-4{right:33.33333333%}.col-sm-pull-3{right:25%}.col-sm-pull-2{right:16.66666667%}.col-sm-pull-1{right:8.33333333%}.col-sm-pull-0{right:auto}.col-sm-push-12{left:100%}.col-sm-push-11{left:91.66666667%}.col-sm-push-10{left:83.33333333%}.col-sm-push-9{left:75%}.col-sm-push-8{left:66.66666667%}.col-sm-push-7{left:58.33333333%}.col-sm-push-6{left:50%}.col-sm-push-5{left:41.66666667%}.col-sm-push-4{left:33.33333333%}.col-sm-push-3{left:25%}.col-sm-push-2{left:16.66666667%}.col-sm-push-1{left:8.33333333%}.col-sm-push-0{left:auto}.col-sm-offset-12{margin-left:100%}.col-sm-offset-11{margin-left:91.66666667%}.col-sm-offset-10{margin-left:83.33333333%}.col-sm-offset-9{margin-left:75%}.col-sm-offset-8{margin-left:66.66666667%}.col-sm-offset-7{margin-left:58.33333333%}.col-sm-offset-6{margin-left:50%}.col-sm-offset-5{margin-left:41.66666667%}.col-sm-offset-4{margin-left:33.33333333%}.col-sm-offset-3{margin-left:25%}.col-sm-offset-2{margin-left:16.66666667%}.col-sm-offset-1{margin-left:8.33333333%}.col-sm-offset-0{margin-left:0}}
2938
+ @media (min-width: 992px){.col-md-1,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9,.col-md-10,.col-md-11,.col-md-12{float:left}.col-md-12{width:100%}.col-md-11{width:91.66666667%}.col-md-10{width:83.33333333%}.col-md-9{width:75%}.col-md-8{width:66.66666667%}.col-md-7{width:58.33333333%}.col-md-6{width:50%}.col-md-5{width:41.66666667%}.col-md-4{width:33.33333333%}.col-md-3{width:25%}.col-md-2{width:16.66666667%}.col-md-1{width:8.33333333%}.col-md-pull-12{right:100%}.col-md-pull-11{right:91.66666667%}.col-md-pull-10{right:83.33333333%}.col-md-pull-9{right:75%}.col-md-pull-8{right:66.66666667%}.col-md-pull-7{right:58.33333333%}.col-md-pull-6{right:50%}.col-md-pull-5{right:41.66666667%}.col-md-pull-4{right:33.33333333%}.col-md-pull-3{right:25%}.col-md-pull-2{right:16.66666667%}.col-md-pull-1{right:8.33333333%}.col-md-pull-0{right:auto}.col-md-push-12{left:100%}.col-md-push-11{left:91.66666667%}.col-md-push-10{left:83.33333333%}.col-md-push-9{left:75%}.col-md-push-8{left:66.66666667%}.col-md-push-7{left:58.33333333%}.col-md-push-6{left:50%}.col-md-push-5{left:41.66666667%}.col-md-push-4{left:33.33333333%}.col-md-push-3{left:25%}.col-md-push-2{left:16.66666667%}.col-md-push-1{left:8.33333333%}.col-md-push-0{left:auto}.col-md-offset-12{margin-left:100%}.col-md-offset-11{margin-left:91.66666667%}.col-md-offset-10{margin-left:83.33333333%}.col-md-offset-9{margin-left:75%}.col-md-offset-8{margin-left:66.66666667%}.col-md-offset-7{margin-left:58.33333333%}.col-md-offset-6{margin-left:50%}.col-md-offset-5{margin-left:41.66666667%}.col-md-offset-4{margin-left:33.33333333%}.col-md-offset-3{margin-left:25%}.col-md-offset-2{margin-left:16.66666667%}.col-md-offset-1{margin-left:8.33333333%}.col-md-offset-0{margin-left:0}}
2939
+ @media (min-width: 1200px){.col-lg-1,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9,.col-lg-10,.col-lg-11,.col-lg-12{float:left}.col-lg-12{width:100%}.col-lg-11{width:91.66666667%}.col-lg-10{width:83.33333333%}.col-lg-9{width:75%}.col-lg-8{width:66.66666667%}.col-lg-7{width:58.33333333%}.col-lg-6{width:50%}.col-lg-5{width:41.66666667%}.col-lg-4{width:33.33333333%}.col-lg-3{width:25%}.col-lg-2{width:16.66666667%}.col-lg-1{width:8.33333333%}.col-lg-pull-12{right:100%}.col-lg-pull-11{right:91.66666667%}.col-lg-pull-10{right:83.33333333%}.col-lg-pull-9{right:75%}.col-lg-pull-8{right:66.66666667%}.col-lg-pull-7{right:58.33333333%}.col-lg-pull-6{right:50%}.col-lg-pull-5{right:41.66666667%}.col-lg-pull-4{right:33.33333333%}.col-lg-pull-3{right:25%}.col-lg-pull-2{right:16.66666667%}.col-lg-pull-1{right:8.33333333%}.col-lg-pull-0{right:auto}.col-lg-push-12{left:100%}.col-lg-push-11{left:91.66666667%}.col-lg-push-10{left:83.33333333%}.col-lg-push-9{left:75%}.col-lg-push-8{left:66.66666667%}.col-lg-push-7{left:58.33333333%}.col-lg-push-6{left:50%}.col-lg-push-5{left:41.66666667%}.col-lg-push-4{left:33.33333333%}.col-lg-push-3{left:25%}.col-lg-push-2{left:16.66666667%}.col-lg-push-1{left:8.33333333%}.col-lg-push-0{left:auto}.col-lg-offset-12{margin-left:100%}.col-lg-offset-11{margin-left:91.66666667%}.col-lg-offset-10{margin-left:83.33333333%}.col-lg-offset-9{margin-left:75%}.col-lg-offset-8{margin-left:66.66666667%}.col-lg-offset-7{margin-left:58.33333333%}.col-lg-offset-6{margin-left:50%}.col-lg-offset-5{margin-left:41.66666667%}.col-lg-offset-4{margin-left:33.33333333%}.col-lg-offset-3{margin-left:25%}.col-lg-offset-2{margin-left:16.66666667%}.col-lg-offset-1{margin-left:8.33333333%}.col-lg-offset-0{margin-left:0}}
2940
+
2941
+ @media (max-width: 1199px) {
2942
+ .tinvwl-table .row > [class^="col-md-"] + [class^="col-md-"],
2943
+ .tinvwl-table .row > [class^="col-lg-"] + [class^="col-lg-"] {
2944
+ padding-top: 30px;
2945
+ }
2946
+ .tinvwl-table .form-group > [class^="col-md-"] + [class^="col-md-"],
2947
+ .tinvwl-table .form-group > [class^="col-lg-"] + [class^="col-lg-"] {
2948
+ padding-top: 30px;
2949
+ }
2950
+ }
2951
+
2952
+ .fade {
2953
+ opacity: 0;
2954
+ -webkit-transition: opacity .15s linear;
2955
+ -o-transition: opacity .15s linear;
2956
+ transition: opacity .15s linear;
2957
+ }
2958
+ .fade.in {
2959
+ opacity: 1;
2960
+ }
2961
+
2962
+ .form-horizontal .form-group {
2963
+ margin-right: -15px;
2964
+ margin-left: -15px;
2965
+ }
2966
+
2967
+ .form-group {
2968
+ margin-bottom: 23px;
2969
+ }
2970
+
2971
+ .form-horizontal:last-of-type .form-group {
2972
+ /*margin-bottom: 0;*/
2973
+ }
2974
+
2975
+ .tinvwl-inner .form-group + .form-group > label {
2976
+ /*margin-top: 7px;*/
2977
+ }
2978
+
2979
+ .form-control {
2980
+ display: block;
2981
+ width: 100%;
2982
+ }
2983
+
2984
+ label.one-line {
2985
+ display: inline-block;
2986
+ margin-bottom: 0;
2987
+ margin-right: 10px;
2988
+ }
2989
+
2990
+ .control-label label {
2991
+ display: block;
2992
+ margin-bottom: 10px;
2993
+ }
2994
+
2995
+ .form-horizontal .control-label label {
2996
+ padding-top: 9px;
2997
+ margin-bottom: 0;
2998
+ }
2999
+
3000
+ @media (min-width: 1200px) {
3001
+ .tinvwl-table .tinvwl-header-row label {
3002
+ margin-bottom: 0;
3003
+ }
3004
+
3005
+ .tinvwl-table .tinvwl-header-row .form-group {
3006
+ margin-top: -7px;
3007
+ margin-bottom: 13px;
3008
+ }
3009
+ }
3010
+
3011
+ @media (max-width: 1199px) {
3012
+ .form-horizontal .control-label label {
3013
+ margin-bottom: 10px;
3014
+ }
3015
+
3016
+ .tinvwl-table .tinvwl-header-row label {
3017
+ padding-top: 3px;
3018
+ }
3019
+ }
3020
+
3021
+ .tinvwl-input-group-btn {
3022
+ margin-top: 13px;
3023
+ }
3024
+
3025
+ .tinvwl-input-group {
3026
+ position: relative;
3027
+ display: table;
3028
+ border-collapse: separate;
3029
+ }
3030
+
3031
+ .tinvwl-input-group-addon,
3032
+ .tinvwl-input-group-btn {
3033
+ width: 1%;
3034
+ white-space: nowrap;
3035
+ vertical-align: middle;
3036
+ }
3037
+
3038
+ .tinvwl-input-group-btn {
3039
+ margin-top: 0;
3040
+ position: relative;
3041
+ white-space: nowrap;
3042
+ }
3043
+
3044
+ .tinvwl-input-group-btn .tinvwl-btn {
3045
+ margin-left: 10px;
3046
+ }
3047
+
3048
+ .tinvwl-input-group-btn > .btn {
3049
+ position: relative;
3050
+ }
3051
+
3052
+ .tinvwl-input-group .form-control,
3053
+ .tinvwl-input-group-addon,
3054
+ .tinvwl-input-group-btn {
3055
+ display: table-cell;
3056
+ }
3057
+
3058
+ .tinvwl-input-group .form-control {
3059
+ position: relative;
3060
+ z-index: 2;
3061
+ float: left;
3062
+ width: 100%;
3063
+ margin-bottom: 0;
3064
+ }
3065
+
3066
+ @media only screen and (max-width: 1199px) {
3067
+ .tinvwl-input-group:not(.tinvwl-no-full) {
3068
+ display: block;
3069
+ }
3070
+
3071
+ .tinvwl-input-group:not(.tinvwl-no-full) .form-control {
3072
+ float: none;
3073
+ }
3074
+
3075
+ .tinvwl-input-group:not(.tinvwl-no-full) .form-control + .tinvwl-input-group-btn {
3076
+ padding-top: 10px;
3077
+ padding-left: 0;
3078
+ }
3079
+
3080
+ .tinvwl-input-group:not(.tinvwl-no-full) .tinvwl-input-group-addon,
3081
+ .tinvwl-input-group:not(.tinvwl-no-full) .tinvwl-input-group-btn,
3082
+ .tinvwl-input-group:not(.tinvwl-no-full) .form-control {
3083
+ display: block;
3084
+ }
3085
+
3086
+ .tinvwl-input-group:not(.tinvwl-no-full) .tinvwl-input-group-addon,
3087
+ .tinvwl-input-group:not(.tinvwl-no-full) .tinvwl-input-group-btn,
3088
+ .tinvwl-input-group:not(.tinvwl-no-full) .tinvwl-input-group-addon > input,
3089
+ .tinvwl-input-group:not(.tinvwl-no-full) .tinvwl-input-group-addon > button,
3090
+ .tinvwl-input-group:not(.tinvwl-no-full) .tinvwl-input-group-btn > input,
3091
+ .tinvwl-input-group:not(.tinvwl-no-full) .tinvwl-input-group-btn > button {
3092
+ margin-left: 0;
3093
+ }
3094
+ }
3095
+
3096
+ .text-right {
3097
+ text-align: right;
3098
+ }
3099
+
3100
+ @media (max-width: 1199px) {
3101
+ .text-right {
3102
+ text-align: left;
3103
+ }
3104
+ }
3105
+
3106
+ @media (min-width: 768px) {
3107
+ .form-inline .form-group {
3108
+ display: inline-block;
3109
+ margin-bottom: 0;
3110
+ vertical-align: middle;
3111
+ }
3112
+ .form-inline .form-control {
3113
+ display: inline-block;
3114
+ width: auto;
3115
+ vertical-align: middle;
3116
+ }
3117
+ .form-inline .form-control-static {
3118
+ display: inline-block;
3119
+ }
3120
+ .form-inline .tinvwl-input-group {
3121
+ display: inline-table;
3122
+ vertical-align: middle;
3123
+ }
3124
+ .form-inline .tinvwl-input-group .tinvwl-input-group-addon,
3125
+ .form-inline .tinvwl-input-group .tinvwl-input-group-btn,
3126
+ .form-inline .tinvwl-input-group .form-control {
3127
+ width: auto;
3128
+ }
3129
+ .form-inline .tinvwl-input-group > .form-control {
3130
+ width: 100%;
3131
+ }
3132
+ .form-inline .control-label label {
3133
+ margin-bottom: 0;
3134
+ vertical-align: middle;
3135
+ }
3136
+ .form-inline .radio,
3137
+ .form-inline .checkbox {
3138
+ display: inline-block;
3139
+ margin-top: 0;
3140
+ margin-bottom: 0;
3141
+ vertical-align: middle;
3142
+ }
3143
+ .form-inline .radio label,
3144
+ .form-inline .checkbox label {
3145
+ padding-left: 0;
3146
+ }
3147
+ .form-inline .radio input[type="radio"],
3148
+ .form-inline .checkbox input[type="checkbox"] {
3149
+ position: relative;
3150
+ margin-left: 0;
3151
+ }
3152
+ .form-inline .has-feedback .form-control-feedback {
3153
+ top: 0;
3154
+ }
3155
+ }
3156
+
3157
+ /*************************IMAGES *******************************/
3158
+
3159
+ .logo_heart{
3160
+ background: url('../img/logo_heart.png') no-repeat center;
3161
+ display: inline-block;
3162
+ background-size: 54px 54px;
3163
+ width: 54px;
3164
+ height: 54px;
3165
+ }
3166
+
3167
+ .admin-rescue{
3168
+ background: url('../img/admin-rescue.png') no-repeat center;
3169
+ display: inline-block;
3170
+ background-size: 61px 60px;
3171
+ width: 61px;
3172
+ height: 60px;
3173
+ }
3174
+
3175
+ .admin-update{
3176
+ background: url('../img/admin-update.png') no-repeat center;
3177
+ display: inline-block;
3178
+ background-size: 61px 60px;
3179
+ width: 61px;
3180
+ height: 60px;
3181
+ }
3182
+
3183
+ .wizard_logo{
3184
+ background: url('../img/wizard_logo.png') no-repeat center;
3185
+ background-size: 54px 54px;
3186
+ width: 54px;
3187
+ height: 54px;
3188
+ display: block;
3189
+ margin: 10px auto;
3190
+ }
3191
+ .wizard_setup{
3192
+ background: url('../img/wizard_setup.png') no-repeat center;
3193
+ display: inline-block;
3194
+ background-size: 143px 144px;
3195
+ width: 143px;
3196
+ height: 144px;
3197
+ }
3198
+
3199
+ .premium_adv{
3200
+ background: url('../img/premium_adv.png') no-repeat center;
3201
+ display: block;
3202
+ margin: 0 auto;
3203
+ background-size: 365px 216px;
3204
+ width: 365px;
3205
+ height: 216px;
3206
+ }
3207
+
3208
+ /************************** RETINA *************************/
3209
+ .tinvwl-content select {
3210
+ background-size: 13px 8px;
3211
+
3212
+ }
3213
+ .tinvwl-select + .tinvwl-caret span {
3214
+ background-size: 13px 18px;
3215
+
3216
+ }
3217
+
3218
+ .tinvwl-content .tablenav .tablenav-pages .pagination-links .prev-page .tinvwl-chevron {
3219
+ background-size: 20px 30px;
3220
+
3221
+ }
3222
+
3223
+ .tinvwl-content .tablenav .tablenav-pages .pagination-links .prev-page:hover .tinvwl-chevron {
3224
+ background-size: 20px 30px;
3225
+
3226
+ }
3227
+
3228
+ .tinvwl-content .tablenav .tablenav-pages .pagination-links .next-page .tinvwl-chevron {
3229
+ background-size: 20px 30px;
3230
+
3231
+ }
3232
+
3233
+ .tinvwl-content .tablenav .tablenav-pages .pagination-links .next-page:hover .tinvwl-chevron {
3234
+ background-size: 20px 30px;
3235
+
3236
+ }
3237
+
3238
+ .tinvwl-color-picker .tinvwl-eyedropper {
3239
+ background-size: 28px 29px;
3240
+
3241
+ }
3242
+
3243
+ @media only screen and (-webkit-min-device-pixel-ratio: 1.5), not all, not all, not all {
3244
+ .tinvwl-content select {
3245
+ background-image: url('../img/select_caret@2x.png');
3246
+
3247
+ }
3248
+ .tinvwl-select + .tinvwl-caret span {
3249
+ background-image: url('../img/chevron_down@2x.png') ;
3250
+
3251
+ }
3252
+
3253
+ .tinvwl-content .tablenav .tablenav-pages .pagination-links .prev-page .tinvwl-chevron {
3254
+ background-image: url('../img/chevron_icon@2x.png') ;
3255
+
3256
+ }
3257
+
3258
+ .tinvwl-content .tablenav .tablenav-pages .pagination-links .prev-page:hover .tinvwl-chevron {
3259
+ background-image: url('../img/chevron_icon@2x.png') ;
3260
+
3261
+ }
3262
+
3263
+ .tinvwl-content .tablenav .tablenav-pages .pagination-links .next-page .tinvwl-chevron {
3264
+ background-image: url('../img/chevron_icon@2x.png') ;
3265
+
3266
+ }
3267
+
3268
+ .tinvwl-content .tablenav .tablenav-pages .pagination-links .next-page:hover .tinvwl-chevron {
3269
+ background-image: url('../img/chevron_icon@2x.png') ;
3270
+
3271
+ }
3272
+
3273
+ .tinvwl-color-picker .tinvwl-eyedropper {
3274
+ background-image: url('../img/color_icon@2x.png') ;
3275
+
3276
+ }
3277
+ .logo_heart{
3278
+ background-image: url('../img/logo_heart@2x.png');
3279
+ }
3280
+
3281
+ .admin-rescue{
3282
+ background-image: url('../img/admin-rescue@2x.png');
3283
+ }
3284
+
3285
+ .admin-update{
3286
+ background-image: url('../img/admin-update@2x.png') ;
3287
+ }
3288
+
3289
+ .wizard_logo{
3290
+ background-image: url('../img/wizard_logo@2x.png') ;
3291
+ }
3292
+ .wizard_setup{
3293
+ background-image: url('../img/wizard_setup@2x.png') ;
3294
+ }
3295
+ }
3296
+
3297
+ /******************STYLE HEADINGS*********************/
3298
+ #style_options .tinvwl-table tbody tr .tinvwl-inner h2{
3299
+ font-size: 18px;
3300
+ color: #291C09;
3301
+ text-transform: capitalize;
3302
+ font-weight: 600;
3303
+ margin-bottom: 21px;
3304
+ padding: 14px 0;
3305
+ }
asset/css/admin.min.css CHANGED
@@ -1,2 +1,2 @@
1
-
2
- *{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}*:before,*:after{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.tinv-wishlist-clearfix:before,.tinv-wishlist-clearfix:after,.container:before,.container:after,.container-fluid:before,.container-fluid:after,.row:before,.row:after,.form-horizontal .form-group:before,.form-horizontal .form-group:after,.form-group:before,.form-group:after,.tablenav:before,.tablenav:after,.tinvwl-panel:before,.tinvwl-panel:after{display:table;content:" "}.tinv-wishlist-clearfix:after,.container:after,.container-fluid:after,.row:after,.form-horizontal .form-group:after,.form-group:after,.tablenav:after,.tinvwl-panel:after{clear:both}.tinvwl-header table,.tinvwl-content table{border-spacing:0;border-collapse:collapse;width:100%;max-width:100%}.tinvwl-header td,.tinvwl-header th,.tinvwl-content td,.tinvwl-content th{padding:0}.tinvwl-header img,.tinvwl-content img{height:auto;max-width:100%}#wpwrap{background:#f6f3ed}#wpcontent{padding-left:0}#wpbody-content{padding-bottom:135px}#update-nag,.update-nag,.notice,div.error,div.updated{margin:20px 0 0 40px}.notice,div.error,div.updated{margin-right:40px}body .tinvwl-header,body .tinvwl-content{font-family:Arial,sans-serif;font-size:14px;line-height:1.429;color:#6b625a}button,input,select,textarea{font-family:inherit;font-size:inherit;font-weight:inherit}label,.tinv-label{display:block;font-size:15px;font-family:"Open Sans","Helvetica Neue",sans-serif;color:#291c09;font-weight:600;margin-bottom:7px}h1,h2,h3,h4,h5,h6,.wrap h1{color:#291c09;font-family:'Open Sans',Arial,sans-serif;font-weight:normal;line-height:1.313;padding:0;margin:0;border:0}h1,.wrap h1{font-size:30px}h2{font-size:26px}h3{font-size:22px}h4{font-size:18px}h5{font-size:14px}h6{font-size:12px}@media screen and (max-width:1200px){#update-nag,.update-nag,.notice,div.error,div.updated{margin-top:20px;margin-left:20px;margin-right:20px}}@media screen and (max-width:782px){.auto-fold #wpcontent{padding-left:0}#update-nag,.update-nag,.notice,div.error,div.updated{margin:20px 0 0 0}.notice,div.error,div.updated{margin-right:0}}#toplevel_page_tinvwl ul ul{display:none;margin-left:15px;position:absolute}#toplevel_page_tinvwl ul li:hover ul,#toplevel_page_tinvwl ul li.current ul{display:block;left:145px;margin-left:15px;position:absolute;top:0}.status-panel>div{display:inline-block;margin-left:21px}.status-panel .button-link{background-color:#ff5739;color:#FFF;text-decoration:none;text-transform:uppercase;line-height:10px;font-weight:600;height:48px;display:table-cell;border-radius:5px;padding:0 17px;vertical-align:middle}.status-panel .button-link span::before{color:#ffdc00;display:inline-block;font:normal 12px/1 'dashicons';vertical-align:bottom;-webkit-font-smoothing:antialiased;content:"\f155"}.status-panel .button-round{border:2px solid #f1f1f1;border-radius:50%;width:43px;padding-top:5px;padding-left:2px;height:40px;display:table-cell;text-align:center;vertical-align:middle}.status-panel .status-tutorial span::before{color:#515151;display:inline-block;font:normal 24px/1 'dashicons';vertical-align:middle;-webkit-font-smoothing:antialiased;content:"\f118"}.tinvwl-status-message{font-family:Arial,sans-serif;font-size:14px;line-height:1.429;margin-top:40px;color:#6b625a;border-top:2px solid #f6f3ed}.tinvwl-status-message .tinvwl-title{padding:13px 20px;float:left;width:142px;font-weight:bold}.tinvwl-status-message.type-error .tinvwl-title,.tinvwl-status-message.type-tip .tinvwl-title{color:#fff}.tinvwl-status-message.type-attention .tinvwl-title{color:#23282d}.tinvwl-status-message.type-error .tinvwl-title{background:#ff3814}.tinvwl-status-message.type-tip .tinvwl-title{background:#30aec4}.tinvwl-status-message.type-attention .tinvwl-title{background:#ffe900}.tinvwl-status-message .tinvwl-title i{margin-right:10px}.tinvwl-status-message.type-error>.tinvwl-title>i:before{content:"\f00d"}.tinvwl-status-message.type-tip>.tinvwl-title>i:before{content:"\f05a"}.tinvwl-status-message.type-attention>.tinvwl-title>i:before{content:"\f071"}.tinvwl-status-message .tinvwl-message{padding:13px 20px;overflow:hidden;height:100%;background:#faf9f7}@media screen and (max-width:782px){.tinvwl-status-message{margin-top:20px}}.tinvwl-content a{text-decoration:none;color:#30aec4}.tinvwl-content a:hover,.tinvwl-content a:active,.tinvwl-content a:focus{color:#524737}.tinvwl-content input[type=text],.tinvwl-content input[type=password],.tinvwl-content input[type=checkbox],.tinvwl-content input[type=color],.tinvwl-content input[type=date],.tinvwl-content input[type=datetime],.tinvwl-content input[type=datetime-local],.tinvwl-content input[type=email],.tinvwl-content input[type=month],.tinvwl-content input[type=number],.tinvwl-content input[type=radio],.tinvwl-content input[type=tel],.tinvwl-content input[type=time],.tinvwl-content input[type=url],.tinvwl-content input[type=week],.tinvwl-content input[type=search],.tinvwl-content select,.tinvwl-content textarea{line-height:1.429;padding:9px 13px;margin:0;color:#4f4639;border:1px solid rgba(0,0,0,.14);-webkit-box-shadow:inset 1px 1px 6px 0 rgba(170,157,137,.14);box-shadow:inset 1px 1px 6px 0 rgba(170,157,137,.14)}.tinvwl-content textarea{height:70px}.tinvwl-content input[type=text],.tinvwl-content input[type=password],.tinvwl-content input[type=color],.tinvwl-content input[type=date],.tinvwl-content input[type=datetime],.tinvwl-content input[type=datetime-local],.tinvwl-content input[type=email],.tinvwl-content input[type=month],.tinvwl-content input[type=number],.tinvwl-content input[type=tel],.tinvwl-content input[type=time],.tinvwl-content input[type=url],.tinvwl-content input[type=week],.tinvwl-content input[type=search],.tinvwl-content select{height:42px;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}.tinvwl-content .tablenav input[type=search]{height:35px;width:210px;padding:9px 13px;-webkit-box-shadow:none;box-shadow:none;border:0;background:#f4f3ef}.tinvwl-content .tablenav input[type=search]+input[type=submit],.tinvwl-content .tablenav input[type=search]+button[type=submit]{vertical-align:middle}.tinvwl-content .tablenav .tinvwl-select-wrap+input[type=submit],.tinvwl-content .tablenav input[type=search]+input[type=submit],.tinvwl-content .tablenav input[type=search]+button[type=submit]{float:right;margin-left:8px!important}.tinvwl-content input[type=text]:disabled,.tinvwl-content input[type=password]:disabled,.tinvwl-content input[type=color]:disabled,.tinvwl-content input[type=date]:disabled,.tinvwl-content input[type=datetime]:disabled,.tinvwl-content input[type=datetime-local]:disabled,.tinvwl-content input[type=email]:disabled,.tinvwl-content input[type=month]:disabled,.tinvwl-content input[type=number]:disabled,.tinvwl-content input[type=tel]:disabled,.tinvwl-content input[type=time]:disabled,.tinvwl-content input[type=url]:disabled,.tinvwl-content input[type=week]:disabled,.tinvwl-content input[type=search]:disabled,.tinvwl-content select:disabled{font-size:15px;font-family:"Open Sans","Helvetica Neue",sans-serif;font-weight:600;color:#291c09;background-color:#f6f3ed;border-color:#f6f3ed}.tinvwl-content select{font-family:Arial,sans-serif;font-size:14px;-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer;padding:9px 40px 9px 13px;background-color:#fff;background-image:url('../img/select_caret.png');background-repeat:no-repeat;background-position:96% center;background-position:calc(100% - 15px) center}@media screen and (max-width:782px){input,textarea{font-size:14px}#wpbody .tinvwl-content select{height:42px;font-size:14px}}.tinvwl-content select[multiple="multiple"]{padding:9px 13px;background:#fff}.tinvwl-content .tinvwl-select.grey{font-size:14px;font-family:"Arial","Helvetica Neue",Helvetica,sans-serif;padding:8px 11px;height:35px;border:0;color:#5d5d5d;background:#f4f3ef}.tinvwl-select-wrap{position:relative;display:inline-block;vertical-align:middle;cursor:pointer}.tinvwl-content select.tinvwl-select.grey{padding-right:47px;margin:0;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}.tinvwl-select+.tinvwl-caret{pointer-events:none;display:inline-block;position:absolute;top:0;right:0;width:36px;height:36px;line-height:36px;text-align:center;-webkit-border-radius:0 4px 4px 0;-moz-border-radius:0 4px 4px 0;border-radius:0 4px 4px 0}.tinvwl-select+.tinvwl-caret span{display:inline-block;width:13px;height:8px;background:url('../img/chevron_down.png') no-repeat center;background-position:0 -10px}.tinvwl-select:hover+.tinvwl-caret{background:#3e3e3e}.tinvwl-select:hover+.tinvwl-caret span{background-position:0 0}.tinvwl-content .tinvwl-nav{margin:0 40px}.tinvwl-content .tinvwl-panel+.tinvwl-nav{margin-top:40px}.tinvwl-nav .tinvwl-prev{float:left}.tinvwl-nav .tinvwl-prev .tinvwl-btn{float:left}.tinvwl-nav .tinvwl-next{float:right;text-align:right}@media(max-width:1199px){}.tinvwl-nav .tinvwl-btn+.tinvwl-btn{margin-left:20px}.tinvwl-panel.only-button.w-bg{background:0;overflow:visible}.tinvwl-panel.only-button.w-shadow{-webkit-box-shadow:none;box-shadow:none;overflow:visible}.tinvwl-panel.only-button thead,.tinvwl-panel.only-button tfoot{display:none}.tinvwl-panel.only-button .control-label{display:none}.tinvwl-panel.only-button .form-group{margin-bottom:0}.tinvwl-panel.only-button .form-control{display:inline-block;width:auto}.tinvwl-panel.only-button .tinvwl-table>tbody>tr>td{padding:0}.tinvwl-panel.only-button #save_buttons--setting_save,.tinvwl-panel.only-button #save_buttons--setting_reset{display:inline-block}.tinvwl-panel.only-button #save_buttons--setting_reset{float:right}.tinvwl-panel.only-button #save_buttons--setting_reset .form-control{background-color:#fff;color:#3e3e3e}.tinvwl-panel.only-button #save_buttons--setting_reset .tinvwl-btn.split span{background:#fbfaf9}.tinvwl-panel.only-button #save_buttons--setting_reset .form-control:hover{color:#fff;background-color:#515151}.tinvwl-panel.only-button #save_buttons--setting_reset .tinvwl-btn.split:hover span{background:#434343}#doaction,#doaction2,#post-query-submit{margin:0}button,input[type="submit"],.tinvwl-btn{display:inline-block;vertical-align:middle;margin:0;font-family:'Open Sans',Arial,sans-serif;font-size:14px;line-height:normal;cursor:pointer;text-decoration:none}.tinvwl-btn,a.tinvwl-btn{padding:11px 19px 12px 18px;font-weight:800;text-align:center;text-transform:uppercase;letter-spacing:-.025em;border:0;-webkit-border-radius:2px;-moz-border-radius:2px;border-radius:2px;color:#fff;background-color:#96b100}.tinvwl-btn.large{padding:14px 19px 14px 18px}.tinvwl-btn.small{padding:6px 11px 7px}.tinvwl-btn.smaller{padding:11px 18px 12px}.tinvwl-btn.red,.tinvwl-btn.green,.tinvwl-btn.dark-green,.tinvwl-btn.black{font-weight:800}.tinvwl-btn.grey{margin:0;padding:8px 12px;font-weight:bold;color:#3e3e3e;background:#f4f3ef}.tinvwl-btn.grey.large{font-weight:800;padding:14px 19px 14px 18px}.tinvwl-btn.grey.w-icon{letter-spacing:-.025em}.tinvwl-btn.red{color:#fff;background-color:#ff5739}.tinvwl-btn.orange{color:#fff;background-color:#ff9f07}.tinvwl-btn.white.smaller{font-size:14px;font-weight:bold;letter-spacing:-.05em;padding:10px 15px 11px;border:1px solid rgba(0,0,0,.14);box-shadow:1px 2px 4px 0 rgba(0,0,0,0.1)}.tinvwl-btn.white.small{font-family:Arial,sans-serif;font-size:14px;text-transform:none;font-weight:normal;border:1px solid rgba(0,0,0,.14);box-shadow:1px 2px 4px 0 rgba(0,0,0,0.1)}.tinvwl-btn.white.small{padding:9px 18px;color:#4f4639}.tinvwl-btn.small.white:hover,.tinvwl-btn.small.white:active,.tinvwl-btn.small.white:focus{color:#fff}.tinvwl-btn.white{color:#291c09;background:#fff}.tinvwl-btn.white.no-txt{padding:12px 16px}.tinvwl-btn.white.small.no-txt{padding:9px 12px}.tinvwl-btn.white i{color:#6b625a;margin-right:11px}.tinvwl-btn.w-icon{font-weight:800}.tinvwl-btn.w-icon i{margin-right:16px}.tinvwl-btn.round.w-icon i{margin-right:15px;font-size:16px}.tinvwl-btn.w-icon i.fa-graduation-cap{vertical-align:text-bottom}.tinvwl-btn.red.w-icon i{margin-right:13px}.tinvwl-btn.xl-icon i,.tinvwl-btn.round.xl-icon i{font-size:17px;margin-right:15px}.tinvwl-btn.lg-icon i{font-size:15px}.tinvwl-btn.md-icon i,.tinvwl-btn.round.md-icon i{font-size:14px}.tinvwl-btn.sm-icon i{font-size:13px}.tinvwl-btn.xs-icon i{font-size:11px;vertical-align:1%}.tinvwl-btn.white.no-txt i{margin-right:0}.tinvwl-btn.white:hover i,.tinvwl-btn.white:active i,.tinvwl-btn.white:focus i{color:#fff}.tinvwl-btn.green{color:#fff;background-color:#a9c203}.tinvwl-btn.black{color:#fff;background-color:#515151}.tinvwl-btn.smaller-txt{font-size:12px;padding:15px 20px}.tinvwl-btn.medium{letter-spacing:0}.tinvwl-btn.medium.smaller-txt{padding:9px 16px}.tinvwl-btn.round{-webkit-border-radius:25px;-moz-border-radius:25px;border-radius:25px;padding:15px 28px 16px}.tinvwl-btn.round.red{padding:16px 30px}.tinvwl-btn.split{padding:0 26px 0 0}.tinvwl-btn.split span{display:inline-block;text-align:center;width:46px;padding:14px 0;margin-right:14px;-webkit-border-radius:4px 0 0 4px;-moz-border-radius:4px 0 0 4px;border-radius:4px 0 0 4px;background:#8aa300}.tinvwl-btn.split:hover span,.tinvwl-btn.split:active span,.tinvwl-btn.split:focus span{background:#434343}.tinvwl-btn.split.green span{background:#b9cf09}.tinvwl-btn.split.black span{background:#434343}.tinvwl-btn.split span i{font-size:17px}.tinvwl-btn:not(:disabled):hover,.tinvwl-btn:not(:disabled):active,.tinvwl-btn:not(:disabled):focus,a.tinvwl-btn:not(:disabled):hover,a.tinvwl-btn:not(:disabled):active,a.tinvwl-btn:not(:disabled):focus{color:#fff;background-color:#515151}.tinvwl-header .icon.border-grey{position:relative;display:inline-block;width:45px;height:45px;line-height:45px;text-align:center;background:#fff;border:2px solid #f1f1f1;-webkit-border-radius:50%;-moz-border-radius:50%;border-radius:50%;color:#3e3e3e}.tinvwl-header .icon.border-grey:hover{border-color:#515151}.tinvwl-header .icon.w-lines{position:relative;padding:0 30px}.tinvwl-header .icon.w-lines:before,.tinvwl-header .icon.w-lines:after{content:'';position:absolute;top:50%;top:calc(50% - 1px);width:17px;height:1px;background:rgba(0,0,0,.12)}.tinvwl-header .icon.w-lines:before{left:0}.tinvwl-header .icon.w-lines:after{right:0}.tinvwl-header .icon .badge{position:absolute;top:-5px;right:-10px;display:inline-block;min-width:26px;height:26px;font-size:11px;line-height:19px;font-weight:bold;background:#ff5739;border:3px solid #fff;color:#fff;-webkit-border-radius:50%;-moz-border-radius:50%;border-radius:50%}.tinvwl-header{padding:21px 40px;margin-bottom:40px;background:#fff}.tinwl-logo i.logo_heart{min-width:54px}.tinwl-logo h2{font-size:18px;font-weight:bold;text-transform:uppercase;line-height:1;padding-left:10px}.tinvwl-header .tinvwl-title{padding-left:28px;margin-left:28px;border-left:1px solid #dcddde}.tinvwl-header h1{color:#3e3e3e;padding:0}.tinvwl-header .tinvwl-status-panel{margin-top:-12px}.tinvwl-header .tinvwl-status-panel>a{vertical-align:middle}.tinvwl-header .tinvwl-status-panel>a+a{margin-left:15px}.tinvwl-header .tinvwl-btn{margin-top:15px}.tinvwl-header .tinvwl-btn{margin-top:18px}.tinvwl-header .tinvwl-btn.red i{color:#ffdc00}.tinvwl-header .tinvwl-status-panel{text-align:right}.tinvwl-sign-icon{font-size:30px;font-family:"Open Sans","Helvetica Neue",sans-serif;color:#948d84}@media(max-width:1199px){.tinvwl-header .tinvwl-table,.tinvwl-header .tinvwl-cell,.tinvwl-header .tinvwl-cell-3{display:block}.tinvwl-header{text-align:center}.tinvwl-header h1+.tinvwl-status-panel{margin-top:25px}.tinvwl-header .tinvwl-status-panel{text-align:center}.tinvwl-header .tinvwl-status-panel{margin-top:15px}.tinvwl-header .tinvwl-status-panel>a+a{margin-left:9px}.tinvwl-header{padding:18px 0 25px}.tinwl-logo,.tinwl-logo h2,.tinwl-logo img,.tinvwl-header .tinvwl-title{display:block;margin:0 auto}.tinwl-logo h2{padding-left:0;margin-left:0;margin-top:6px}.tinvwl-header .tinvwl-title{position:relative;padding-left:12px;padding-right:12px;padding-top:13px;margin-left:0;margin-top:16px;border-left:0}.tinvwl-header .tinvwl-title:before{content:'';position:absolute;top:0;left:0;right:0;width:40px;height:1px;margin:0 auto;background:#dcddde}}@media(max-width:782px){.tinvwl-header .tinvwl-btn .tinvwl-txt{display:none}.tinvwl-header .tinvwl-btn i{margin-right:0!important}.tinvwl-header .tinvwl-btn.grey{padding-left:16px;padding-right:16px}}.tinwl-wishlists-privacy{margin:-10px 0 0}.tinwl-wishlists-privacy li{float:left;margin:10px 10px 0 0}.tinwl-wishlists-privacy li:last-child{margin-right:0}.tinwl-wishlists-privacy li a{display:block;font-family:"Open Sans","Helvetica Neue",sans-serif;font-size:14px;font-weight:600;line-height:1;padding:10px 16px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;color:#404040;background:#ede8df}.tinwl-wishlists-privacy li.active a,.tinwl-wishlists-privacy li a:hover,.tinwl-wishlists-privacy li a:active,.tinwl-wishlists-privacy li a:focus{color:#fff;background-color:#96b100}@media screen and (max-width:782px){.tinwl-wishlists-privacy{margin-left:15px}}.tinvwl-panel{margin:40px 40px 0}.tinvwl-panel .w-bg-grey{background:#fbfaf9}.tinvwl-panel.w-shadow{-webkit-box-shadow:1px 1px 8px 0 rgba(170,157,137,0.14);box-shadow:1px 1px 8px 0 rgba(170,157,137,0.14)}.tinvwl-panel.w-bg{background:#fff;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}.tinvwl-table.w-info .tinvwl-info[rowspan],.tinvwl-table.w-info .tinvwl-info[rowspan] .tinvwl-info-sign{vertical-align:middle}.tinvwl-table.w-info .tinvwl-info-top>tr .tinvwl-info{vertical-align:top}@media screen and (max-width:1200px){.tinvwl-panel{margin:20px 20px 0}.tinvwl-header{margin-bottom:20px}}@media screen and (max-width:782px){.tinvwl-panel{margin:20px 0 0}.tinvwl-panel.only-button{text-align:center}}.tinvwl-icon-preview{position:relative;width:50px;height:42px;margin-right:10px;margin-bottom:10px;text-align:center;-webkit-border-radius:2px;-moz-border-radius:2px;border-radius:2px;color:#595857;background:#f6f3ed}@media(min-width:1200px){.tinvwl-icon-preview{margin-bottom:0}}.tinvwl-icon-preview span{position:absolute;top:50%;left:0;right:0;-webkit-transform:translateY(-50%);-moz-transform:translateY(-50%);-ms-transform:translateY(-50%);-o-transform:translateY(-50%);transform:translateY(-50%)}.tinvwl-icon-preview span img{max-width:50px;max-height:42px;vertical-align:middle}.tinvwl-content table.widefat{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.tinvwl-content .tablenav{height:auto;margin:30px;background:#fff}.tinvwl-content .tablenav .actions{padding:0}@media screen and (max-width:782px){.tablenav.top .actions{display:block}.tablenav br.tinv-wishlist-clear{display:none}.tinvwl-content .tablenav{margin:15px 12px}.tinvwl-content .tablenav .alignleft,.tinvwl-content .tablenav .alignright{float:none}.tinvwl-content .tablenav .tinvwl-full{display:none}.tinvwl-content .tablenav .alignleft+.alignright{margin-top:10px}.tinvwl-content .tablenav .tinvwl-select-wrap{width:calc(100% - 75px)}#wpbody .tinvwl-content .tablenav .tinvwl-select-wrap select.tinvwl-select{max-width:100%;width:100%;height:35px;padding:9px 13px}.tinvwl-content .tablenav input[type=search]{width:calc(100% - 84px)}}.tinvwl-content .widefat th,.tinvwl-content .widefat td{text-align:center;padding:0}.tinvwl-content .widefat th{padding:27px 0;position:relative}.tinvwl-content .widefat th.sortable,.tinvwl-content .widefat th.sorted{padding:0}.tinvwl-content .widefat th.sortable>a,.tinvwl-content .widefat th.sorted>a{padding:28px 17px}.tinvwl-content .widefat th.tinvwl-has-info{padding-top:28px}.tinvwl-content .widefat th.tinvwl-has-info.sortable>a,.tinvwl-content .widefat th.tinvwl-has-info.sorted>a{padding-top:0}.tinvwl-content .widefat th.sortable:first-of-type,.tinvwl-content .widefat th.sorted:first-of-type{padding-left:0}.tinvwl-content .widefat th.sortable:first-of-type>a,.tinvwl-content .widefat th.sorted:first-of-type>a{padding-left:28px}.tinvwl-content .widefat th:first-of-type,.tinvwl-content .widefat td:first-of-type{text-align:left;padding-left:28px}.tinvwl-content .widefat th .tinvwl-help-wrap{display:inline-block}.tinvwl-content .widefat th .tinvwl-help-wrap{margin-left:6px}.tinvwl-content .widefat th.sortable>a+.tinvwl-help-wrap,.tinvwl-content .widefat th.sorted>a+.tinvwl-help-wrap{margin-left:0}.tinvwl-content .widefat thead tr{background:#f4f3ef}.tinvwl-content .striped>tbody>:nth-child(odd),.tinvwl-content ul.striped>:nth-child(odd){background:0}.tinvwl-content .widefat thead td.check-column,.tinvwl-content .widefat tbody th.check-column{width:50px;padding:28px 0 28px 28px;vertical-align:middle}.tinvwl-content .widefat thead td.check-column{padding:28px 0 28px 28px}.tinvwl-content .widefat tbody th.check-column{padding:13px 0 13px 28px}.tinvwl-content .widefat thead td.check-column+th.sortable:first-of-type>a,.tinvwl-content .widefat thead td.check-column+th.sorted:first-of-type>a,.tinvwl-content .widefat thead td.check-column+th,.tinvwl-content .widefat tbody th.check-column+td{padding-left:21px}.tinvwl-content .widefat thead td.check-column+th.sortable:first-of-type>.tinvwl-info-wrap.tinvwl-in-table,.tinvwl-content .widefat thead td.check-column+th.sorted:first-of-type>.tinvwl-info-wrap.tinvwl-in-table{padding-left:21px}.tinvwl-content .widefat thead td.pause-play-column,.tinvwl-content .widefat tbody th.pause-play-column{padding:0;width:53px;text-align:center}.tinvwl-content th.sortable a,.tinvwl-content th.sorted a{padding:0}.tinvwl-content .widefat th,.tinvwl-content th.sortable>a,.tinvwl-content th.sorted>a{font-size:14px;font-weight:600;font-family:"Open Sans","Helvetica Neue",sans-serif;color:#291c09;text-transform:uppercase;letter-spacing:-.025em}.tinvwl-content th.sortable>a,.tinvwl-content th.sorted>a{display:inline-block;vertical-align:middle}.tinvwl-content .widefat th.sortable>a,.tinvwl-content .widefat th.sorted>a{position:relative}.tinvwl-content .widefat th.sortable>a .sorting-indicator,.tinvwl-content .widefat th.sorted>a .sorting-indicator{position:absolute;top:50%;right:0;margin-top:-2px}.tinvwl-content .widefat th.tinvwl-has-info.sortable>a .sorting-indicator,.tinvwl-content .widefat th.tinvwl-has-info.sorted>a .sorting-indicator{margin-top:-15px}.tinvwl-content th.sortable a span,.tinvwl-content th.sorted a span{float:none}.tinvwl-content table.widefat{border:0;border-bottom:2px solid #f7f7f7}.tinvwl-content .widefat thead td,.tinvwl-content .widefat thead th{border-bottom:0}.tinvwl-content .widefat td{padding:24px 0;vertical-align:middle}.tinvwl-content .widefat tbody td{padding:13px 0}.tinvwl-content .widefat td,.tinvwl-content .widefat td ol,.tinvwl-content .widefat td p,.tinvwl-content .widefat td ul{font-size:14px}.tinvwl-content .widefat tbody tr+tr{border-top:2px solid #f7f7f7}.tinvwl-content .widefat thead th.column-preference{text-indent:-9999px}.tinvwl-content .widefat.wishlists thead th.column-preference,.tinvwl-content .widefat.wishlists tbody td.column-preference{min-width:220px;width:220px}.tinvwl-content .widefat:not(.products) tbody td.column-preference{text-align:right}.tinvwl-content .widefat.products thead th.column-quantity a>span:not(.sorting-indicator){max-width:91px}.tinvwl-content .widefat.users tbody .column-name>a{display:block}.tinvwl-content .widefat.products thead th.column-preference,.tinvwl-content .widefat.products tbody td.column-preference{width:345px;min-width:345px}.tinvwl-content .widefat.users thead th.column-preference,.tinvwl-content .widefat.users tbody td.column-preference{width:165px;min-width:165px}.tinvwl-content .widefat tbody .column-name strong{font-weight:normal}.tinvwl-content .widefat tbody .column-name>a{display:table}.tinvwl-content .widefat tbody .column-name .product-image img{max-width:66px}.tinvwl-content .widefat tbody .column-name .product-image,.tinvwl-content .widefat tbody .column-name .product-title{display:table-cell;vertical-align:middle}.tinvwl-content .widefat tbody .column-name .product-title{padding-left:15px}.tinvwl-content .widefat thead th.column-preference,.tinvwl-content .widefat tbody td.column-preference{padding-right:20px}.tinvwl-content .widefat.products tbody td.column-preference>a{margin-right:10px;float:left}.tinvwl-content .widefat.products tbody td.column-preference>a:last-child{margin-right:0}.tinvwl-content .tablenav .tablenav-pages{float:none;text-align:center;height:auto;margin-top:0}.tinvwl-content .tablenav .tablenav-pages .pagination-links>a,.tinvwl-content .tablenav .tablenav-pages .pagination-links>span{display:inline-block;vertical-align:middle;text-align:center;font-size:14px;font-weight:normal;padding:0;min-width:38px;height:38px;line-height:38px;-webkit-border-radius:50%;-moz-border-radius:50%;border-radius:50%;border:0;background:0;color:#3e3e3e}.tinvwl-content .tablenav .tablenav-pages .pagination-links>span{color:rgba(62,62,62,.46)}.tinvwl-content .tablenav .tablenav-pages .pagination-links>span,.tinvwl-content .tablenav .tablenav-pages .pagination-links .next-page,.tinvwl-content .tablenav .tablenav-pages .pagination-links .prev-page{background:#f3f1ec}.tinvwl-content .tablenav .tablenav-pages .pagination-links>.tinvwl-page-number.space{background:0;color:#3e3e3e}.tinvwl-content .tablenav .tablenav-pages .pagination-links>a:hover,.tinvwl-content .tablenav .tablenav-pages .pagination-links .next-page:hover,.tinvwl-content .tablenav .tablenav-pages .pagination-links .prev-page:hover{background:#3e3e3e;color:#fff}.tinvwl-content .tablenav .tablenav-pages .pagination-links .prev-page{margin-right:20px}.tinvwl-content .tablenav .tablenav-pages .pagination-links .next-page{margin-left:20px}.tinvwl-content .tablenav .tablenav-pages .tinvwl-chevron{display:inline-block;vertical-align:middle;width:9px;height:16px}.tinvwl-content .tablenav .tablenav-pages .pagination-links .prev-page .tinvwl-chevron{background:url('../img/chevron_icon.png') no-repeat center;background-position:0 -16px}.tinvwl-content .tablenav .tablenav-pages .pagination-links .prev-page:hover .tinvwl-chevron{background:url('../img/chevron_icon.png') no-repeat center;background-position:0 0}.tinvwl-content .tablenav .tablenav-pages .pagination-links .next-page .tinvwl-chevron{background:url('../img/chevron_icon.png') no-repeat center;background-position:-10px -16px}.tinvwl-content .tablenav .tablenav-pages .pagination-links .next-page:hover .tinvwl-chevron{background:url('../img/chevron_icon.png') no-repeat center;background-position:-10px 0}.tinvwl-content .widefat.products thead th.column-name,.tinvwl-content .widefat.products tbody td.column-name{width:30%}.tinvwl-content .widefat.wishlists thead th.column-title,.tinvwl-content .widefat.wishlists tbody td.column-title{width:45%}.tinvwl-content .widefat.users thead th.column-wishlist,.tinvwl-content .widefat.users tbody td.column-wishlist{width:45%}.tinvwl-content .widefat.users thead th.column-name,.tinvwl-content .widefat.users tbody td.column-name{text-align:left}.tinvwl-content .widefat.users thead th.column-quantity,.tinvwl-content .widefat.users tbody td.column-quantity{width:100px}.tinvwl-content .widefat tbody td.column-preference .tinvwl-btn .tinvwl-mobile{display:none}@media screen and (max-width:1440px){.tinvwl-content .widefat.products thead th.column-preference,.tinvwl-content .widefat.products tbody td.column-preference{width:204px;min-width:204px}.tinvwl-content .widefat.wishlists thead th.column-preference,.tinvwl-content .widefat.wishlists tbody td.column-preference{width:98px;min-width:98px}.tinvwl-content .widefat.users thead th.column-preference,.tinvwl-content .widefat.users tbody td.column-preference{width:60px;min-width:60px}.tinvwl-content .widefat tbody td.column-preference .tinvwl-btn.tinvwl-w-mobile{padding:9px 12px}.tinvwl-content .widefat tbody td.column-preference .tinvwl-btn .tinvwl-mobile{display:inline;margin:0}.tinvwl-content .widefat tbody td.column-preference .tinvwl-btn .tinvwl-full{display:none}}.tinvwl-content .widefat.products thead th.column-quantity span span{float:none}@media screen and (max-width:1366px) and (min-width:783px){.tinvwl-content .widefat tbody .column-name .product-image,.tinvwl-content .widefat tbody .column-name .product-title{display:block}.tinvwl-content .widefat tbody .column-name .product-title{padding-left:0}.tinvwl-content .widefat.products thead th.column-preference,.tinvwl-content .widefat.products tbody td.column-preference{width:103px;min-width:103px}.tinvwl-content .widefat.products tbody td.column-preference>a{margin-right:5px}.tinvwl-content .widefat tbody td.column-preference>a:nth-child(2n){margin-right:0}.tinvwl-content .widefat tbody td.column-preference>a:nth-child(n+3){margin-top:5px}.tinvwl-content .widefat thead th .tinvwl-full{display:none}}@media screen and (max-width:1200px) and (min-width:783px){.tinvwl-content th.sortable a span,.tinvwl-content th.sorted a span{float:none}.tinvwl-content .widefat th.sortable>a,.tinvwl-content .widefat th.sorted>a{padding-left:0;padding-right:0;position:static}.tinvwl-content .widefat th.sortable>a .sorting-indicator,.tinvwl-content .widefat th.sorted>a .sorting-indicator{top:auto;bottom:12px;left:0;right:0;margin-left:auto;margin-right:auto}.tinvwl-content .widefat th.sortable>a .sorting-indicator:before,.tinvwl-content .widefat th.sorted>a .sorting-indicator:before{left:-5px}.tinvwl-content .widefat th.tinvwl-has-info.sortable>a .sorting-indicator,.tinvwl-content .widefat th.tinvwl-has-info.sorted>a .sorting-indicator{margin-top:12px}.tinvwl-content .widefat.wishlists thead th.column-title,.tinvwl-content .widefat.wishlists tbody td.column-title{width:38%}}@media screen and (max-width:782px){.tinvwl-content .widefat th.tinvwl-has-info.sortable>a .sorting-indicator,.tinvwl-content .widefat th.tinvwl-has-info.sorted>a .sorting-indicator{margin-top:0}.tinvwl-content .widefat.products tbody td.column-preference>a{margin-right:5px;float:none}.tinvwl-content .widefat tbody .column-name .product-image,.tinvwl-content .widefat tbody .column-name .product-title{vertical-align:top}.tablenav .tablenav-pages{margin-bottom:15px}.tinvwl-content .widefat thead th.column-primary{width:100%!important}.tinvwl-content .widefat thead td.check-column+th.column-primary{width:50%!important}.tinvwl-content .widefat.users thead td.check-column+th.column-primary{width:100%!important}}.tinvwl-table{display:table;width:100%;max-width:100%}.tinvwl-table.w-bg{background:#fff;overflow:hidden;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}.tinvwl-table.w-shadow{-webkit-box-shadow:1px 1px 8px 0 rgba(170,157,137,0.14);box-shadow:1px 1px 8px 0 rgba(170,157,137,0.14)}.tinvwl-table.auto-width{width:auto}.tinvwl-caption{display:table-caption}.tinvwl-row{display:table-row}.tinvwl-rows{display:table-row-group}.tinvwl-cell{display:table-cell;vertical-align:middle}.tinvwl-cell-2{display:table-cell;vertical-align:middle;float:none}.tinvwl-cell-3{display:table-cell;vertical-align:top;float:none}.tinvwl-table.w-info>thead>tr>th:first-child,.tinvwl-table.w-info>tbody>tr>td:first-child{width:67%}.tinvwl-table th,.tinvwl-table td{vertical-align:top}.tinvwl-table .tinvwl-inner.tinv-wishlist-clearfix h3,.tinvwl-table .tinvwl-inner .tinv-wishlist-clearfix h3,.tinvwl-table .tinvwl-inner.tinv-wishlist-clearfix h4,.tinvwl-table .tinvwl-inner .tinv-wishlist-clearfix h4{float:left}.tinvwl-table .tinvwl-btn-wrap{float:right}.tinvwl-table.w-info thead>tr>th{text-align:left}.tinvwl-table.w-info thead>tr>th .tinvwl-info-wrap{font-weight:normal}.tinvwl-table>thead>tr>th{padding:0 30px}.tinvwl-table .tinvwl-info{vertical-align:top}.tinvwl-table>thead>tr>.tinvwl-info .tinvwl-info-wrap{padding-bottom:30px}.tinvwl-table tbody tr .tinvwl-inner h2{font-size:15px;color:#291c09;font-weight:600;margin-bottom:21px}.tinvwl-table>tbody>tr>.tinvwl-info .tinvwl-info-wrap{padding-bottom:20px}.tinvwl-table>tbody>tr>td{padding:0 30px}.tinvwl-table thead>tr .tinvwl-inner{padding:28px 0;margin-bottom:30px;border-bottom:2px solid rgba(219,219,219,.522)}.tinvwl-table thead.tinwl-empty>tr .tinvwl-inner{padding:30px 0 0;margin-bottom:0;border-bottom:0}.tinvwl-table .tinvwl-header-row label{font-size:22px;font-weight:normal;line-height:1.313;margin:0 0 15px}.tinvwl-table .tinvwl-header-row label{padding-top:3px!important}.tinvwl-table thead .tinvwl-empty-info,.tinvwl-table tbody>.tinvwl-bodies-border{display:none}.tinvwl-table thead .tinvwl-empty-info .tinvwl-inner{margin:0;padding-top:56px}.tinvwl-bodies-border .tinvwl-info .tinvwl-inner{display:none;padding-top:30px;margin-top:10px;border-top:2px solid rgba(219,219,219,.522)}.tinvwl-style-options .tinvwl-table thead .tinvwl-empty-info,.tinvwl-style-options .tinvwl-bodies-border .tinvwl-info{padding-left:0;background:0}.tinvwl-style-options .tinvwl-table thead .tinvwl-empty-info{display:table-cell}.tinvwl-style-options .tinvwl-table thead .tinvwl-empty-info .tinvwl-inner,.tinvwl-style-options tbody+tbody>.tinvwl-bodies-border .tinvwl-info .tinvwl-inner{display:block}@media(min-width:1200px){.tinvwl-style-options .tinvwl-table .tinvwl-inner .form-horizontal{width:67%}}textarea[name="style_plain-css"]{height:150px}.tinvwl-table tbody+tbody>.tinvwl-bodies-border{display:table-row}.tinvwl-table tbody+tbody>.tinvwl-bodies-border:first-child>td:first-child>.tinvwl-inner{padding-top:30px;margin-top:10px;border-top:2px solid rgba(219,219,219,.522)}.tinvwl-table .tinvwl-header-row.tinvwl-line-border .tinvwl-inner{padding-bottom:15px;margin-bottom:30px;border-bottom:2px solid rgba(219,219,219,.522)}.tinvwl-table .form-group .col-md-4:nth-child(n+4),.tinvwl-table .form-group .col-lg-4:nth-child(n+4){padding-top:27px}.tinvwl-table tfoot .tinvwl-inner{padding-top:20px}.tinvwl-table tr.no-top-border .tinvwl-inner,.tinvwl-table tr.no-top-border .tinvwl-info-wrap{border-top:0;padding-top:0}.tinvwl-table thead .w-bg-grey .tinvwl-info-wrap{padding-top:30px}.tiwl-notifications-style-logo img{height:42px}@media(min-width:1200px){.tinvwl-table tr.tinvwl-full-width .control-label label{margin-bottom:10px}.tinvwl-table tr.tinvwl-full-width [class^="col-lg-"],.tinvwl-table tr.tinvwl-full-width [class^="col-md-"]{width:100%}.tinvwl-table tr.tinvwl-full-width textarea{height:250px;padding:15px}.tiwl-notifications-style-logo img{float:right}}@media(max-width:1199px){.form-horizontal .control-label .tinvwl-empty{display:none}.tinvwl-style-options .tinvwl-empty-info,.tinvwl-style-options .tinvwl-info{display:none!important}.tinvwl-style-options .tinvwl-table thead th:first-child,.tinvwl-style-options .tinvwl-bodies-border td:first-child{padding-right:30px!important}.tinvwl-table .tinvwl-header-row.tinvwl-line-border .tinvwl-inner{padding-bottom:0}.tinvwl-table .tinvwl-header-row.tinvwl-line-border .tinvwl-inner .form-group{margin-bottom:20px}}.tinvwl-info .tinvwl-info-desc a{text-decoration:underline;color:#ff5739}.tinvwl-info .tinvwl-info-desc a:hover,.tinvwl-info .tinvwl-info-desc a:active,.tinvwl-info .tinvwl-info-desc a:focus{color:#000}.tinvwl-info-wrap.tinvwl-in-section{background:#fbfaf9;color:#4f4639}.tinvwl-info-wrap.tinvwl-in-section .tinvwl-info-sign{width:42px;vertical-align:top;padding-top:1px;padding-right:20px}.tinvwl-info-wrap .tinvwl-info-sign span,.tinvwl-info-wrap .tinvwl-info-sign .tinvwl-help{display:inline-block;text-align:center;width:22px;height:22px;line-height:22px;-webkit-border-radius:50%;-moz-border-radius:50%;border-radius:50%;background:#e1dbce}.tinvwl-info-wrap.tinvwl-in-section .tinvwl-info-sign span,.tinvwl-info-wrap.tinvwl-in-section .tinvwl-info-sign .tinvwl-help{display:block}.tinvwl-info-wrap i{font-size:14px;color:#fbfaf9}.tinvwl-panel:not(.only-button) .tinvwl-table .col-lg-6>.tinvwl-btn{width:auto}.tinvwl-btns-group{margin-bottom:23px;margin-top:-15px;margin-right:-15px}.tiwl-style-custom-allow .tinvwl-inner textarea{margin-bottom:23px}.tinvwl-btns-group .tinvwl-btn{margin-top:15px;margin-right:15px}.tinvwl-btns-group .tinvwl-btn{float:left}@media(min-width:1200px){.tinvwl-table .tinvwl-form-onoff,.tinvwl-panel:not(.only-button) .tinvwl-table .col-lg-6>.tinvwl-btn{float:right}.tinvwl-btns-group .tinvwl-btn{float:right}}.tinvwl-table .tinvwl-info .tinvwl-info-wrap.tinvwl-in-section .tinvwl-help{display:none}.tinvwl-info-wrap.tinvwl-in-table{display:inline-block;vertical-align:middle;display:block;margin-bottom:5px}.tinvwl-info-wrap.tinvwl-in-table .tinvwl-help{cursor:pointer}.tinvwl-content .widefat th.tinvwl-has-info .tinvwl-col-name{margin-right:5px}.tinvwl-info-wrap.tinvwl-in-table .tinvwl-info-desc{display:none}@media(max-width:1200px){.tinvwl-table .tinvwl-info{padding-left:15px;padding-right:15px}.tinvwl-table.w-info>thead>tr>th:first-child,.tinvwl-table.w-info>tbody>tr>td:first-child{width:90%}.tinvwl-info-wrap.tinvwl-in-section .tinvwl-info-sign{width:auto;padding-right:0}.tinvwl-info-wrap.tinvwl-in-section .tinvwl-info-sign span{display:none}.tinvwl-table .tinvwl-info-wrap.tinvwl-in-section .tinvwl-info-sign .tinvwl-help{display:block;margin:0 auto}.tinvwl-info-wrap.tinvwl-in-section .tinvwl-info-desc{display:none}}@media(max-width:782px){.tinvwl-content .widefat th.tinvwl-has-info.sortable,.tinvwl-content .widefat th.tinvwl-has-info.sorted{padding-top:0}.widefat tfoot td input[type=checkbox],.widefat th input[type=checkbox],.widefat thead td input[type=checkbox]{margin-bottom:0}.tinvwl-content .widefat th.sortable>a,.tinvwl-content .widefat th.sorted>a,.tinvwl-content .widefat th.sortable.tinvwl-has-info>a,.tinvwl-content .widefat th.sorted.tinvwl-has-info>a{padding-top:18px;padding-bottom:18px}.tinvwl-content .widefat thead td.check-column,.tinvwl-content .widefat tbody th.check-column{padding-top:14px;padding-bottom:15px;padding-left:20px;width:45px}.tinvwl-content .widefat tbody th.check-column{padding-top:11px;padding-bottom:11px;vertical-align:top}.tinvwl-content .widefat.wishlists thead td.check-column,.tinvwl-content .widefat.wishlists tbody th.check-column{width:23px}.tinvwl-content .widefat thead td.check-column+th.sortable:first-of-type>a,.tinvwl-content .widefat thead td.check-column+th.sorted:first-of-type>a,.tinvwl-content .widefat thead td.check-column+th,.tinvwl-content .widefat tbody th.check-column+td{padding-left:10px}.tinvwl-content .widefat thead td.check-column+th.sortable:first-of-type>.tinvwl-info-wrap.tinvwl-in-table,.tinvwl-content .widefat thead td.check-column+th.sorted:first-of-type>.tinvwl-info-wrap.tinvwl-in-table{padding-left:13px;display:inline-block;margin-top:5px;margin-bottom:0}.wp-list-table tr:not(.inline-edit-row):not(.no-items) td:not(.column-primary)::before{text-align:left}.wp-list-table tr:not(.inline-edit-row):not(.no-items) td.column-primary~td:not(.check-column){text-align:right;padding-right:30px}.wp-list-table tr:not(.inline-edit-row):not(.no-items) td:not(.column-primary)::before{left:28px}.wp-list-table tr:not(.inline-edit-row):not(.no-items) td.check-column+td:not(.column-primary)::before{left:13px}.wp-list-table tr:not(.inline-edit-row):not(.no-items) td.column-primary~td:not(.check-column):last-child{padding-bottom:13px}}.popover{position:absolute;top:0;left:0;z-index:9999;display:none;max-width:279px;padding:1px;text-align:center;white-space:normal;background-color:#fff;-webkit-background-clip:padding-box;background-clip:padding-box;border-radius:6px;-webkit-box-shadow:0 5px 15px 0 rgba(0,0,0,0.22);box-shadow:0 5px 15px 0 rgba(0,0,0,0.22)}.popover.top{margin-top:-10px}.popover.right{margin-left:10px}.popover.bottom{margin-top:10px}.popover.left{margin-left:-10px}.popover-title{padding:30px 30px 0;margin:0;font-family:'Open Sans',Arial,sans-serif;font-size:14px;font-weight:600;line-height:1.714;text-transform:uppercase;letter-spacing:-.35px}.popover-content{padding:25px 30px 30px;color:#5d5d5d;font-family:Arial,sans-serif;font-size:14px;line-height:1.429}.popover>.arrow,.popover>.arrow:after{position:absolute;display:block;width:0;height:0;border-color:transparent;border-style:solid}.popover>.arrow{border-width:11px;margin-left:0;overflow:visible}.popover>.arrow:after{content:none;z-index:9999;background:0;-webkit-box-shadow:none;box-shadow:none;position:absolute;left:auto;top:auto;width:auto;height:auto;-webkit-transform:none;-ms-transform:none;transform:none}.popover>.arrow:after{content:"";border-width:10px}.popover.top>.arrow{bottom:-11px;left:50%;margin-left:-11px;border-bottom-width:0}.popover.top>.arrow:after{bottom:1px;margin-left:-10px;content:" ";border-top-color:#fff;border-bottom-width:0}.popover.right>.arrow{top:50%;left:-11px;margin-top:-11px;border-left-width:0}.popover.right>.arrow:after{bottom:-10px;left:1px;content:" ";border-right-color:#fff;border-left-width:0}.popover.bottom>.arrow{top:-11px;left:50%;margin-left:-11px;border-top-width:0}.popover.bottom>.arrow:after{top:1px;margin-left:-10px;content:" ";border-top-width:0;border-bottom-color:#fff}.popover.left>.arrow{top:50%;left:auto;right:-11px;margin-top:-11px;border-right-width:0}.popover.left>.arrow:after{left:auto;right:1px;bottom:-10px;content:" ";border-right-width:0;border-left-color:#fff}.tinvwl-img-w-desc i{margin-right:20px}.tinvwl-img-w-desc h5{font-weight:600;text-transform:uppercase}.tinvwl-img-w-desc .tinvwl-desc{color:#4f4639}.tinvwl-img-w-desc h5+.tinvwl-desc{margin-top:2px}.tinvwl-premium-feat h2{font-size:48px;text-transform:uppercase;letter-spacing:-.025em;line-height:1;color:#3e3e3e}.tinvwl-premium-feat h3{font-size:16px;font-weight:600;text-transform:uppercase;letter-spacing:-.025em;color:#50504f}.tinvwl-premium-feat .tinvwl-feat-col-inner{padding:40px}.tinvwl-premium-feat .tinvwl-pic-col .tinvwl-feat-col-inner{text-align:center;padding-left:22px;padding-right:22px}.tinvwl-premium-feat .tinvwl-pic-col img{display:block;margin:0 auto}.tinvwl-premium-feat .tinvwl-pic-col .tinvwl-btn{margin-top:-35px}.tinvwl-premium-feat .tinvwl-features{margin-top:28px}.tinvwl-premium-feat .tinvwl-features li i{color:#96b100;margin-right:15px}.tinvwl-premium-feat .tinvwl-features li span{text-decoration:underline}.tinvwl-premium-feat .tinvwl-features li+li{margin-top:14px}.tinvwl-premium-feat .tinvwl-img-w-desc+.tinvwl-img-w-desc{margin-top:15px}.tinvwl-premium-feat .tinvwl-sup-col .tinvwl-feat-col-inner>.tinvwl-desc{line-height:1.71428571;text-align:center;margin-top:23px}.tinvwl-premium-feat .tinvwl-sup-col .tinvwl-feat-col-inner>.tinvwl-desc a{display:inline-block;text-decoration:underline;margin-top:26px;color:#000}#wpfooter{padding:10px 40px}#wpfooter p{font-family:"Open Sans","Helvetica Neue",sans-serif;font-size:14px;line-height:1.85714286;color:#4b4b4b}#wpfooter .fa-heart{margin:0 3px}#wpfooter .fa-star{font-size:12px;margin:0 1px}#wpfooter span .fa-star:first-of-type{margin-left:6px}#wpfooter span .fa-star:last-of-type{margin-left:3px}#wpfooter i{color:#ff5739}#wpfooter a{text-decoration:underline;color:#ff5739}#wpfooter a:hover,#wpfooter a:active,#wpfooter a:focus{color:#000}.tinvwl-color-picker{position:relative}.tinvwl-color-picker .iris-picker{position:absolute;z-index:9999}.tinvwl-color-picker input[type=text]{color:#fff;border:4px solid #fff;box-shadow:0 0 0 1px rgba(0,0,0,.14)}.tinvwl-color-picker .tinvwl-eyedropper{cursor:pointer;position:relative;display:inline-block;vertical-align:top;margin-left:4px;width:42px;height:42px;background:#fff url('../img/color_icon.png') no-repeat center;border:1px solid rgba(0,0,0,.14);border-radius:2px;box-shadow:1px 2px 4px 0 rgba(0,0,0,0.1)}.tinvwl-color-picker .tinvwl-eyedropper a{color:#6b625a}.tinvwl-color-picker .tinvwl-eyedropper i{display:inline-block;position:absolute;top:15px;left:14px;font-size:12px}.tinvwl-color-picker+.iris-picker .iris-square-value{width:0;height:0}.tinvwl-overlay{position:fixed;top:0;left:0;width:100%;height:100%;visibility:hidden;opacity:0;-webkit-transition:opacity .3s ease,visibility .3s ease;-moz-transition:opacity .3s ease,visibility .3s ease;-o-transition:opacity .3s ease,visibility .3s ease;transition:opacity .3s ease,visibility .3s ease;background:#191919}.tinvwl-modal.tinvwl-modal-open .tinvwl-overlay{visibility:visible;opacity:.5}.admin-bar .tinvwl-content .tinvwl-modal{padding-top:32px!important}.tinvwl-content .tinvwl-modal .tinvwl-modal-inner{position:relative;margin:0 auto;background:#fff;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}.tinvwl-content .tinvwl-modal{overflow-y:auto;overflow-x:hidden;top:0;left:0;width:0;height:0;z-index:9999;position:fixed;outline:none!important;-webkit-backface-visibility:hidden;visibility:hidden;opacity:0;text-align:left;-webkit-transition:opacity .3s ease,visibility .3s ease;-moz-transition:opacity .3s ease,visibility .3s ease;-o-transition:opacity .3s ease,visibility .3s ease;transition:opacity .3s ease,visibility .3s ease}.tinvwl-content .tinvwl-modal.tinvwl-modal-open{visibility:visible;opacity:1;width:100%;height:100%}@media screen and (max-width:782px){.admin-bar .tinvwl-content .tinvwl-modal{padding-top:46px!important}}@media screen and (max-width:600px){.admin-bar .tinvwl-content .tinvwl-modal{padding-top:0!important}}.tinvwl-modal .tinvwl-table{height:100%}.tinvwl-content .tinvwl-modal .tinvwl-modal-inner{max-width:415px;padding:40px 45px}.tinvwl-content .tinvwl-modal.tinvwl-send-promo-emails{text-align:center}.tinvwl-content .tinvwl-modal.tinvwl-send-promo-emails p{margin:0 0 26px}.tinvwl-content .tinvwl-modal.tinvwl-send-promo-emails .tinvwl-btn.large{padding:14px 33px}.tinvwl-content .tinvwl-modal.tinvwl-send-promo-emails .tinvwl-btn+.tinvwl-btn{margin-left:6px}.tinvwl-quick-btns{position:fixed;top:25%;left:100%;z-index:9999}.tinvwl-quick-btns button{display:block;width:117px;font-size:14px;font-family:"Open Sans",Arial,sans-serif;font-weight:600;padding:0 35px 0 0;-webkit-border-radius:2px;-moz-border-radius:2px;border-radius:2px;border:0;text-decoration:none;background:#96b100;color:#fff;-webkit-transform:translateX(-50px);-moz-transform:translateX(-50px);-o-transform:translateX(-50px);transform:translateX(-50px);-webkit-transition:transform .3s ease;-moz-transition:transform .3s ease;-o-transition:transform .3s ease;transition:transform .3s ease}.tinvwl-panel.only-button .tinvwl-quick-btns .form-control{display:block;width:119px}.tinvwl-quick-btns button:hover{-webkit-transform:translateX(-100%);-moz-transform:translateX(-100%);-o-transform:translateX(-100%);transform:translateX(-100%)}.tinvwl-quick-btns button+button{margin-top:4px}.tinvwl-quick-btns button span{display:inline-block;width:50px;padding:15px 0;text-align:center}@media(min-width:1200px){.tinvwl-empty-select+.input-group-btn{text-align:right}}.tinvwl-empty-select+.input-group-btn .tinvwl-btn{margin-left:0}.container{margin-right:auto;margin-left:auto}@media(min-width:768px){.container{width:750px}}@media(min-width:992px){.container{width:970px}}@media(min-width:1200px){.container{width:1170px}}.container-fluid{margin-right:auto;margin-left:auto}.row{margin-right:-15px;margin-left:-15px}.col-xs-1,.col-sm-1,.col-md-1,.col-lg-1,.col-xs-2,.col-sm-2,.col-md-2,.col-lg-2,.col-xs-3,.col-sm-3,.col-md-3,.col-lg-3,.col-xs-4,.col-sm-4,.col-md-4,.col-lg-4,.col-xs-5,.col-sm-5,.col-md-5,.col-lg-5,.col-xs-6,.col-sm-6,.col-md-6,.col-lg-6,.col-xs-7,.col-sm-7,.col-md-7,.col-lg-7,.col-xs-8,.col-sm-8,.col-md-8,.col-lg-8,.col-xs-9,.col-sm-9,.col-md-9,.col-lg-9,.col-xs-10,.col-sm-10,.col-md-10,.col-lg-10,.col-xs-11,.col-sm-11,.col-md-11,.col-lg-11,.col-xs-12,.col-sm-12,.col-md-12,.col-lg-12{position:relative;min-height:1px;padding-right:15px;padding-left:15px}.col-xs-1,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9,.col-xs-10,.col-xs-11,.col-xs-12{float:left}.col-xs-12{width:100%}.col-xs-11{width:91.66666667%}.col-xs-10{width:83.33333333%}.col-xs-9{width:75%}.col-xs-8{width:66.66666667%}.col-xs-7{width:58.33333333%}.col-xs-6{width:50%}.col-xs-5{width:41.66666667%}.col-xs-4{width:33.33333333%}.col-xs-3{width:25%}.col-xs-2{width:16.66666667%}.col-xs-1{width:8.33333333%}.col-xs-pull-12{right:100%}.col-xs-pull-11{right:91.66666667%}.col-xs-pull-10{right:83.33333333%}.col-xs-pull-9{right:75%}.col-xs-pull-8{right:66.66666667%}.col-xs-pull-7{right:58.33333333%}.col-xs-pull-6{right:50%}.col-xs-pull-5{right:41.66666667%}.col-xs-pull-4{right:33.33333333%}.col-xs-pull-3{right:25%}.col-xs-pull-2{right:16.66666667%}.col-xs-pull-1{right:8.33333333%}.col-xs-pull-0{right:auto}.col-xs-push-12{left:100%}.col-xs-push-11{left:91.66666667%}.col-xs-push-10{left:83.33333333%}.col-xs-push-9{left:75%}.col-xs-push-8{left:66.66666667%}.col-xs-push-7{left:58.33333333%}.col-xs-push-6{left:50%}.col-xs-push-5{left:41.66666667%}.col-xs-push-4{left:33.33333333%}.col-xs-push-3{left:25%}.col-xs-push-2{left:16.66666667%}.col-xs-push-1{left:8.33333333%}.col-xs-push-0{left:auto}.col-xs-offset-12{margin-left:100%}.col-xs-offset-11{margin-left:91.66666667%}.col-xs-offset-10{margin-left:83.33333333%}.col-xs-offset-9{margin-left:75%}.col-xs-offset-8{margin-left:66.66666667%}.col-xs-offset-7{margin-left:58.33333333%}.col-xs-offset-6{margin-left:50%}.col-xs-offset-5{margin-left:41.66666667%}.col-xs-offset-4{margin-left:33.33333333%}.col-xs-offset-3{margin-left:25%}.col-xs-offset-2{margin-left:16.66666667%}.col-xs-offset-1{margin-left:8.33333333%}.col-xs-offset-0{margin-left:0}@media(min-width:768px){.col-sm-1,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-sm-10,.col-sm-11,.col-sm-12{float:left}.col-sm-12{width:100%}.col-sm-11{width:91.66666667%}.col-sm-10{width:83.33333333%}.col-sm-9{width:75%}.col-sm-8{width:66.66666667%}.col-sm-7{width:58.33333333%}.col-sm-6{width:50%}.col-sm-5{width:41.66666667%}.col-sm-4{width:33.33333333%}.col-sm-3{width:25%}.col-sm-2{width:16.66666667%}.col-sm-1{width:8.33333333%}.col-sm-pull-12{right:100%}.col-sm-pull-11{right:91.66666667%}.col-sm-pull-10{right:83.33333333%}.col-sm-pull-9{right:75%}.col-sm-pull-8{right:66.66666667%}.col-sm-pull-7{right:58.33333333%}.col-sm-pull-6{right:50%}.col-sm-pull-5{right:41.66666667%}.col-sm-pull-4{right:33.33333333%}.col-sm-pull-3{right:25%}.col-sm-pull-2{right:16.66666667%}.col-sm-pull-1{right:8.33333333%}.col-sm-pull-0{right:auto}.col-sm-push-12{left:100%}.col-sm-push-11{left:91.66666667%}.col-sm-push-10{left:83.33333333%}.col-sm-push-9{left:75%}.col-sm-push-8{left:66.66666667%}.col-sm-push-7{left:58.33333333%}.col-sm-push-6{left:50%}.col-sm-push-5{left:41.66666667%}.col-sm-push-4{left:33.33333333%}.col-sm-push-3{left:25%}.col-sm-push-2{left:16.66666667%}.col-sm-push-1{left:8.33333333%}.col-sm-push-0{left:auto}.col-sm-offset-12{margin-left:100%}.col-sm-offset-11{margin-left:91.66666667%}.col-sm-offset-10{margin-left:83.33333333%}.col-sm-offset-9{margin-left:75%}.col-sm-offset-8{margin-left:66.66666667%}.col-sm-offset-7{margin-left:58.33333333%}.col-sm-offset-6{margin-left:50%}.col-sm-offset-5{margin-left:41.66666667%}.col-sm-offset-4{margin-left:33.33333333%}.col-sm-offset-3{margin-left:25%}.col-sm-offset-2{margin-left:16.66666667%}.col-sm-offset-1{margin-left:8.33333333%}.col-sm-offset-0{margin-left:0}}@media(min-width:992px){.col-md-1,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9,.col-md-10,.col-md-11,.col-md-12{float:left}.col-md-12{width:100%}.col-md-11{width:91.66666667%}.col-md-10{width:83.33333333%}.col-md-9{width:75%}.col-md-8{width:66.66666667%}.col-md-7{width:58.33333333%}.col-md-6{width:50%}.col-md-5{width:41.66666667%}.col-md-4{width:33.33333333%}.col-md-3{width:25%}.col-md-2{width:16.66666667%}.col-md-1{width:8.33333333%}.col-md-pull-12{right:100%}.col-md-pull-11{right:91.66666667%}.col-md-pull-10{right:83.33333333%}.col-md-pull-9{right:75%}.col-md-pull-8{right:66.66666667%}.col-md-pull-7{right:58.33333333%}.col-md-pull-6{right:50%}.col-md-pull-5{right:41.66666667%}.col-md-pull-4{right:33.33333333%}.col-md-pull-3{right:25%}.col-md-pull-2{right:16.66666667%}.col-md-pull-1{right:8.33333333%}.col-md-pull-0{right:auto}.col-md-push-12{left:100%}.col-md-push-11{left:91.66666667%}.col-md-push-10{left:83.33333333%}.col-md-push-9{left:75%}.col-md-push-8{left:66.66666667%}.col-md-push-7{left:58.33333333%}.col-md-push-6{left:50%}.col-md-push-5{left:41.66666667%}.col-md-push-4{left:33.33333333%}.col-md-push-3{left:25%}.col-md-push-2{left:16.66666667%}.col-md-push-1{left:8.33333333%}.col-md-push-0{left:auto}.col-md-offset-12{margin-left:100%}.col-md-offset-11{margin-left:91.66666667%}.col-md-offset-10{margin-left:83.33333333%}.col-md-offset-9{margin-left:75%}.col-md-offset-8{margin-left:66.66666667%}.col-md-offset-7{margin-left:58.33333333%}.col-md-offset-6{margin-left:50%}.col-md-offset-5{margin-left:41.66666667%}.col-md-offset-4{margin-left:33.33333333%}.col-md-offset-3{margin-left:25%}.col-md-offset-2{margin-left:16.66666667%}.col-md-offset-1{margin-left:8.33333333%}.col-md-offset-0{margin-left:0}}@media(min-width:1200px){.col-lg-1,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9,.col-lg-10,.col-lg-11,.col-lg-12{float:left}.col-lg-12{width:100%}.col-lg-11{width:91.66666667%}.col-lg-10{width:83.33333333%}.col-lg-9{width:75%}.col-lg-8{width:66.66666667%}.col-lg-7{width:58.33333333%}.col-lg-6{width:50%}.col-lg-5{width:41.66666667%}.col-lg-4{width:33.33333333%}.col-lg-3{width:25%}.col-lg-2{width:16.66666667%}.col-lg-1{width:8.33333333%}.col-lg-pull-12{right:100%}.col-lg-pull-11{right:91.66666667%}.col-lg-pull-10{right:83.33333333%}.col-lg-pull-9{right:75%}.col-lg-pull-8{right:66.66666667%}.col-lg-pull-7{right:58.33333333%}.col-lg-pull-6{right:50%}.col-lg-pull-5{right:41.66666667%}.col-lg-pull-4{right:33.33333333%}.col-lg-pull-3{right:25%}.col-lg-pull-2{right:16.66666667%}.col-lg-pull-1{right:8.33333333%}.col-lg-pull-0{right:auto}.col-lg-push-12{left:100%}.col-lg-push-11{left:91.66666667%}.col-lg-push-10{left:83.33333333%}.col-lg-push-9{left:75%}.col-lg-push-8{left:66.66666667%}.col-lg-push-7{left:58.33333333%}.col-lg-push-6{left:50%}.col-lg-push-5{left:41.66666667%}.col-lg-push-4{left:33.33333333%}.col-lg-push-3{left:25%}.col-lg-push-2{left:16.66666667%}.col-lg-push-1{left:8.33333333%}.col-lg-push-0{left:auto}.col-lg-offset-12{margin-left:100%}.col-lg-offset-11{margin-left:91.66666667%}.col-lg-offset-10{margin-left:83.33333333%}.col-lg-offset-9{margin-left:75%}.col-lg-offset-8{margin-left:66.66666667%}.col-lg-offset-7{margin-left:58.33333333%}.col-lg-offset-6{margin-left:50%}.col-lg-offset-5{margin-left:41.66666667%}.col-lg-offset-4{margin-left:33.33333333%}.col-lg-offset-3{margin-left:25%}.col-lg-offset-2{margin-left:16.66666667%}.col-lg-offset-1{margin-left:8.33333333%}.col-lg-offset-0{margin-left:0}}@media(max-width:1199px){.tinvwl-table .row>[class^="col-md-"]+[class^="col-md-"],.tinvwl-table .row>[class^="col-lg-"]+[class^="col-lg-"]{padding-top:30px}.tinvwl-table .form-group>[class^="col-md-"]+[class^="col-md-"],.tinvwl-table .form-group>[class^="col-lg-"]+[class^="col-lg-"]{padding-top:30px}}.fade{opacity:0;-webkit-transition:opacity .15s linear;-o-transition:opacity .15s linear;transition:opacity .15s linear}.fade.in{opacity:1}.form-horizontal .form-group{margin-right:-15px;margin-left:-15px}.form-group{margin-bottom:23px}.form-control{display:block;width:100%}label.one-line{display:inline-block;margin-bottom:0;margin-right:10px}.control-label label{display:block;margin-bottom:10px}.form-horizontal .control-label label{padding-top:9px;margin-bottom:0}@media(min-width:1200px){.tinvwl-table .tinvwl-header-row label{margin-bottom:0}.tinvwl-table .tinvwl-header-row .form-group{margin-top:-7px;margin-bottom:13px}}@media(max-width:1199px){.form-horizontal .control-label label{margin-bottom:10px}.tinvwl-table .tinvwl-header-row label{padding-top:3px}}.input-group-btn{margin-top:13px}.input-group{position:relative;display:table;border-collapse:separate}.input-group-addon,.input-group-btn{width:1%;white-space:nowrap;vertical-align:middle}.input-group-btn{margin-top:0;position:relative;white-space:nowrap}.input-group-btn .tinvwl-btn{margin-left:10px}.input-group-btn>.btn{position:relative}.input-group .form-control,.input-group-addon,.input-group-btn{display:table-cell}.input-group .form-control{position:relative;z-index:2;float:left;width:100%;margin-bottom:0}@media only screen and (max-width:1199px){.input-group:not(.tinvwl-no-full){display:block}.input-group:not(.tinvwl-no-full) .form-control{float:none}.input-group:not(.tinvwl-no-full) .form-control+.input-group-btn{padding-top:10px;padding-left:0}.input-group:not(.tinvwl-no-full) .input-group-addon,.input-group:not(.tinvwl-no-full) .input-group-btn,.input-group:not(.tinvwl-no-full) .form-control{display:block}.input-group:not(.tinvwl-no-full) .input-group-addon,.input-group:not(.tinvwl-no-full) .input-group-btn,.input-group:not(.tinvwl-no-full) .input-group-addon>input,.input-group:not(.tinvwl-no-full) .input-group-addon>button,.input-group:not(.tinvwl-no-full) .input-group-btn>input,.input-group:not(.tinvwl-no-full) .input-group-btn>button{margin-left:0}}.text-right{text-align:right}@media(max-width:1199px){.text-right{text-align:left}}@media(min-width:768px){.form-inline .form-group{display:inline-block;margin-bottom:0;vertical-align:middle}.form-inline .form-control{display:inline-block;width:auto;vertical-align:middle}.form-inline .form-control-static{display:inline-block}.form-inline .input-group{display:inline-table;vertical-align:middle}.form-inline .input-group .input-group-addon,.form-inline .input-group .input-group-btn,.form-inline .input-group .form-control{width:auto}.form-inline .input-group>.form-control{width:100%}.form-inline .control-label label{margin-bottom:0;vertical-align:middle}.form-inline .radio,.form-inline .checkbox{display:inline-block;margin-top:0;margin-bottom:0;vertical-align:middle}.form-inline .radio label,.form-inline .checkbox label{padding-left:0}.form-inline .radio input[type="radio"],.form-inline .checkbox input[type="checkbox"]{position:relative;margin-left:0}.form-inline .has-feedback .form-control-feedback{top:0}}.logo_heart{background:url('../img/logo_heart.png') no-repeat center;display:inline-block;background-size:54px 54px;width:54px;height:54px}.admin-rescue{background:url('../img/admin-rescue.png') no-repeat center;display:inline-block;background-size:61px 60px;width:61px;height:60px}.admin-update{background:url('../img/admin-update.png') no-repeat center;display:inline-block;background-size:61px 60px;width:61px;height:60px}.wizard_logo{background:url('../img/wizard_logo.png') no-repeat center;background-size:54px 54px;width:54px;height:54px;display:block;margin:10px auto}.wizard_setup{background:url('../img/wizard_setup.png') no-repeat center;display:inline-block;background-size:143px 144px;width:143px;height:144px}.premium_adv{background:url('../img/premium_adv.png') no-repeat center;display:block;margin:0 auto;background-size:365px 216px;width:365px;height:216px}.tinvwl-content select{background-size:13px 8px}.tinvwl-select+.tinvwl-caret span{background-size:13px 18px}.tinvwl-content .tablenav .tablenav-pages .pagination-links .prev-page .tinvwl-chevron{background-size:20px 30px}.tinvwl-content .tablenav .tablenav-pages .pagination-links .prev-page:hover .tinvwl-chevron{background-size:20px 30px}.tinvwl-content .tablenav .tablenav-pages .pagination-links .next-page .tinvwl-chevron{background-size:20px 30px}.tinvwl-content .tablenav .tablenav-pages .pagination-links .next-page:hover .tinvwl-chevron{background-size:20px 30px}.tinvwl-color-picker .tinvwl-eyedropper{background-size:28px 29px}@media only screen and (-webkit-min-device-pixel-ratio:1.5),not all,not all,not all{.tinvwl-content select{background-image:url('../img/select_caret@2x.png')}.tinvwl-select+.tinvwl-caret span{background-image:url('../img/chevron_down@2x.png')}.tinvwl-content .tablenav .tablenav-pages .pagination-links .prev-page .tinvwl-chevron{background-image:url('../img/chevron_icon@2x.png')}.tinvwl-content .tablenav .tablenav-pages .pagination-links .prev-page:hover .tinvwl-chevron{background-image:url('../img/chevron_icon@2x.png')}.tinvwl-content .tablenav .tablenav-pages .pagination-links .next-page .tinvwl-chevron{background-image:url('../img/chevron_icon@2x.png')}.tinvwl-content .tablenav .tablenav-pages .pagination-links .next-page:hover .tinvwl-chevron{background-image:url('../img/chevron_icon@2x.png')}.tinvwl-color-picker .tinvwl-eyedropper{background-image:url('../img/color_icon@2x.png')}.logo_heart{background-image:url('../img/logo_heart@2x.png')}.admin-rescue{background-image:url('../img/admin-rescue@2x.png')}.admin-update{background-image:url('../img/admin-update@2x.png')}.wizard_logo{background-image:url('../img/wizard_logo@2x.png')}.wizard_setup{background-image:url('../img/wizard_setup@2x.png')}}#style_options .tinvwl-table tbody tr .tinvwl-inner h2{font-size:18px;color:#291c09;text-transform:capitalize;font-weight:600;margin-bottom:21px;padding:14px 0}
1
+
2
+ *{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}*:before,*:after{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.tinv-wishlist-clearfix:before,.tinv-wishlist-clearfix:after,.container:before,.container:after,.container-fluid:before,.container-fluid:after,.row:before,.row:after,.form-horizontal .form-group:before,.form-horizontal .form-group:after,.form-group:before,.form-group:after,.tablenav:before,.tablenav:after,.tinvwl-panel:before,.tinvwl-panel:after{display:table;content:" "}.tinv-wishlist-clearfix:after,.container:after,.container-fluid:after,.row:after,.form-horizontal .form-group:after,.form-group:after,.tablenav:after,.tinvwl-panel:after{clear:both}.tinvwl-header table,.tinvwl-content table{border-spacing:0;border-collapse:collapse;width:100%;max-width:100%}.tinvwl-header td,.tinvwl-header th,.tinvwl-content td,.tinvwl-content th{padding:0}.tinvwl-header img,.tinvwl-content img{height:auto;max-width:100%}#wpwrap{background:#f6f3ed}#wpcontent{padding-left:0}#wpbody-content{padding-bottom:135px}#update-nag,.update-nag,.notice,div.error,div.updated{margin:20px 0 0 40px}.notice,div.error,div.updated{margin-right:40px}body .tinvwl-header,body .tinvwl-content{font-family:Arial,sans-serif;font-size:14px;line-height:1.429;color:#6b625a}button,input,select,textarea{font-family:inherit;font-size:inherit;font-weight:inherit}label,.tinv-label{display:block;font-size:15px;font-family:"Open Sans","Helvetica Neue",sans-serif;color:#291c09;font-weight:600;margin-bottom:7px}h1,h2,h3,h4,h5,h6,.wrap h1{color:#291c09;font-family:'Open Sans',Arial,sans-serif;font-weight:normal;line-height:1.313;padding:0;margin:0;border:0}h1,.wrap h1{font-size:30px}h2{font-size:26px}h3{font-size:22px}h4{font-size:18px}h5{font-size:14px}h6{font-size:12px}@media screen and (max-width:1200px){#update-nag,.update-nag,.notice,div.error,div.updated{margin-top:20px;margin-left:20px;margin-right:20px}}@media screen and (max-width:782px){.auto-fold #wpcontent{padding-left:0}#update-nag,.update-nag,.notice,div.error,div.updated{margin:20px 0 0 0}.notice,div.error,div.updated{margin-right:0}}#toplevel_page_tinvwl ul ul{display:none;margin-left:15px;position:absolute}#toplevel_page_tinvwl ul li:hover ul,#toplevel_page_tinvwl ul li.current ul{display:block;left:145px;margin-left:15px;position:absolute;top:0}.status-panel>div{display:inline-block;margin-left:21px}.status-panel .button-link{background-color:#ff5739;color:#FFF;text-decoration:none;text-transform:uppercase;line-height:10px;font-weight:600;height:48px;display:table-cell;border-radius:5px;padding:0 17px;vertical-align:middle}.status-panel .button-link span::before{color:#ffdc00;display:inline-block;font:normal 12px/1 'dashicons';vertical-align:bottom;-webkit-font-smoothing:antialiased;content:"\f155"}.status-panel .button-round{border:2px solid #f1f1f1;border-radius:50%;width:43px;padding-top:5px;padding-left:2px;height:40px;display:table-cell;text-align:center;vertical-align:middle}.status-panel .status-tutorial span::before{color:#515151;display:inline-block;font:normal 24px/1 'dashicons';vertical-align:middle;-webkit-font-smoothing:antialiased;content:"\f118"}.tinvwl-status-message{font-family:Arial,sans-serif;font-size:14px;line-height:1.429;margin-top:40px;color:#6b625a;border-top:2px solid #f6f3ed}.tinvwl-status-message .tinvwl-title{padding:13px 20px;float:left;width:142px;font-weight:bold}.tinvwl-status-message.type-error .tinvwl-title,.tinvwl-status-message.type-tip .tinvwl-title{color:#fff}.tinvwl-status-message.type-attention .tinvwl-title{color:#23282d}.tinvwl-status-message.type-error .tinvwl-title{background:#ff3814}.tinvwl-status-message.type-tip .tinvwl-title{background:#30aec4}.tinvwl-status-message.type-attention .tinvwl-title{background:#ffe900}.tinvwl-status-message .tinvwl-title i{margin-right:10px}.tinvwl-status-message.type-error>.tinvwl-title>i:before{content:"\f00d"}.tinvwl-status-message.type-tip>.tinvwl-title>i:before{content:"\f05a"}.tinvwl-status-message.type-attention>.tinvwl-title>i:before{content:"\f071"}.tinvwl-status-message .tinvwl-message{padding:13px 20px;overflow:hidden;height:100%;background:#faf9f7}@media screen and (max-width:782px){.tinvwl-status-message{margin-top:20px}}.tinvwl-content a{text-decoration:none;color:#30aec4}.tinvwl-content a:hover,.tinvwl-content a:active,.tinvwl-content a:focus{color:#524737}.tinvwl-content input[type=text],.tinvwl-content input[type=password],.tinvwl-content input[type=checkbox],.tinvwl-content input[type=color],.tinvwl-content input[type=date],.tinvwl-content input[type=datetime],.tinvwl-content input[type=datetime-local],.tinvwl-content input[type=email],.tinvwl-content input[type=month],.tinvwl-content input[type=number],.tinvwl-content input[type=radio],.tinvwl-content input[type=tel],.tinvwl-content input[type=time],.tinvwl-content input[type=url],.tinvwl-content input[type=week],.tinvwl-content input[type=search],.tinvwl-content select,.tinvwl-content textarea{line-height:1.429;padding:9px 13px;margin:0;color:#4f4639;border:1px solid rgba(0,0,0,.14);-webkit-box-shadow:inset 1px 1px 6px 0 rgba(170,157,137,.14);box-shadow:inset 1px 1px 6px 0 rgba(170,157,137,.14)}.tinvwl-content textarea{height:70px}.tinvwl-content input[type=text],.tinvwl-content input[type=password],.tinvwl-content input[type=color],.tinvwl-content input[type=date],.tinvwl-content input[type=datetime],.tinvwl-content input[type=datetime-local],.tinvwl-content input[type=email],.tinvwl-content input[type=month],.tinvwl-content input[type=number],.tinvwl-content input[type=tel],.tinvwl-content input[type=time],.tinvwl-content input[type=url],.tinvwl-content input[type=week],.tinvwl-content input[type=search],.tinvwl-content select{height:42px;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}.tinvwl-content .tablenav input[type=search]{height:35px;width:210px;padding:9px 13px;-webkit-box-shadow:none;box-shadow:none;border:0;background:#f4f3ef}.tinvwl-content .tablenav input[type=search]+input[type=submit],.tinvwl-content .tablenav input[type=search]+button[type=submit]{vertical-align:middle}.tinvwl-content .tablenav .tinvwl-select-wrap+input[type=submit],.tinvwl-content .tablenav input[type=search]+input[type=submit],.tinvwl-content .tablenav input[type=search]+button[type=submit]{float:right;margin-left:8px!important}.tinvwl-content input[type=text]:disabled,.tinvwl-content input[type=password]:disabled,.tinvwl-content input[type=color]:disabled,.tinvwl-content input[type=date]:disabled,.tinvwl-content input[type=datetime]:disabled,.tinvwl-content input[type=datetime-local]:disabled,.tinvwl-content input[type=email]:disabled,.tinvwl-content input[type=month]:disabled,.tinvwl-content input[type=number]:disabled,.tinvwl-content input[type=tel]:disabled,.tinvwl-content input[type=time]:disabled,.tinvwl-content input[type=url]:disabled,.tinvwl-content input[type=week]:disabled,.tinvwl-content input[type=search]:disabled,.tinvwl-content select:disabled{font-size:15px;font-family:"Open Sans","Helvetica Neue",sans-serif;font-weight:600;color:#291c09;background-color:#f6f3ed;border-color:#f6f3ed}.tinvwl-content select{font-family:Arial,sans-serif;font-size:14px;-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer;padding:9px 40px 9px 13px;background-color:#fff;background-image:url('../img/select_caret.png');background-repeat:no-repeat;background-position:96% center;background-position:calc(100% - 15px) center}@media screen and (max-width:782px){input,textarea{font-size:14px}#wpbody .tinvwl-content select{height:42px;font-size:14px}}.tinvwl-content select[multiple="multiple"]{padding:9px 13px;background:#fff}.tinvwl-content .tinvwl-select.grey{font-size:14px;font-family:"Arial","Helvetica Neue",Helvetica,sans-serif;padding:8px 11px;height:35px;border:0;color:#5d5d5d;background:#f4f3ef}.tinvwl-select-wrap{position:relative;display:inline-block;vertical-align:middle;cursor:pointer}.tinvwl-content select.tinvwl-select.grey{padding-right:47px;margin:0;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}.tinvwl-select+.tinvwl-caret{pointer-events:none;display:inline-block;position:absolute;top:0;right:0;width:36px;height:36px;line-height:36px;text-align:center;-webkit-border-radius:0 4px 4px 0;-moz-border-radius:0 4px 4px 0;border-radius:0 4px 4px 0}.tinvwl-select+.tinvwl-caret span{display:inline-block;width:13px;height:8px;background:url('../img/chevron_down.png') no-repeat center;background-position:0 -10px}.tinvwl-select:hover+.tinvwl-caret{background:#3e3e3e}.tinvwl-select:hover+.tinvwl-caret span{background-position:0 0}.tinvwl-content .tinvwl-nav{margin:0 40px}.tinvwl-content .tinvwl-panel+.tinvwl-nav{margin-top:40px}.tinvwl-nav .tinvwl-prev{float:left}.tinvwl-nav .tinvwl-prev .tinvwl-btn{float:left}.tinvwl-nav .tinvwl-next{float:right;text-align:right}@media(max-width:1199px){}.tinvwl-nav .tinvwl-btn+.tinvwl-btn{margin-left:20px}.tinvwl-panel.only-button.w-bg{background:0;overflow:visible}.tinvwl-panel.only-button.w-shadow{-webkit-box-shadow:none;box-shadow:none;overflow:visible}.tinvwl-panel.only-button thead,.tinvwl-panel.only-button tfoot{display:none}.tinvwl-panel.only-button .control-label{display:none}.tinvwl-panel.only-button .form-group{margin-bottom:0}.tinvwl-panel.only-button .form-control{display:inline-block;width:auto}.tinvwl-panel.only-button .tinvwl-table>tbody>tr>td{padding:0}.tinvwl-panel.only-button #save_buttons--setting_save,.tinvwl-panel.only-button #save_buttons--setting_reset{display:inline-block}.tinvwl-panel.only-button #save_buttons--setting_reset{float:right}.tinvwl-panel.only-button #save_buttons--setting_reset .form-control{background-color:#fff;color:#3e3e3e}.tinvwl-panel.only-button #save_buttons--setting_reset .tinvwl-btn.split span{background:#fbfaf9}.tinvwl-panel.only-button #save_buttons--setting_reset .form-control:hover{color:#fff;background-color:#515151}.tinvwl-panel.only-button #save_buttons--setting_reset .tinvwl-btn.split:hover span{background:#434343}#doaction,#doaction2,#post-query-submit{margin:0}button,input[type="submit"],.tinvwl-btn{display:inline-block;vertical-align:middle;margin:0;font-family:'Open Sans',Arial,sans-serif;font-size:14px;line-height:normal;cursor:pointer;text-decoration:none}.tinvwl-btn,a.tinvwl-btn{padding:11px 19px 12px 18px;font-weight:800;text-align:center;text-transform:uppercase;letter-spacing:-.025em;border:0;-webkit-border-radius:2px;-moz-border-radius:2px;border-radius:2px;color:#fff;background-color:#96b100}.tinvwl-btn.large{padding:14px 19px 14px 18px}.tinvwl-btn.small{padding:6px 11px 7px}.tinvwl-btn.smaller{padding:11px 18px 12px}.tinvwl-btn.red,.tinvwl-btn.green,.tinvwl-btn.dark-green,.tinvwl-btn.black{font-weight:800}.tinvwl-btn.grey{margin:0;padding:8px 12px;font-weight:bold;color:#3e3e3e;background:#f4f3ef}.tinvwl-btn.grey.large{font-weight:800;padding:14px 19px 14px 18px}.tinvwl-btn.grey.w-icon{letter-spacing:-.025em}.tinvwl-btn.red{color:#fff;background-color:#ff5739}.tinvwl-btn.orange{color:#fff;background-color:#ff9f07}.tinvwl-btn.white.smaller{font-size:14px;font-weight:bold;letter-spacing:-.05em;padding:10px 15px 11px;border:1px solid rgba(0,0,0,.14);box-shadow:1px 2px 4px 0 rgba(0,0,0,0.1)}.tinvwl-btn.white.small{font-family:Arial,sans-serif;font-size:14px;text-transform:none;font-weight:normal;border:1px solid rgba(0,0,0,.14);box-shadow:1px 2px 4px 0 rgba(0,0,0,0.1)}.tinvwl-btn.white.small{padding:9px 18px;color:#4f4639}.tinvwl-btn.small.white:hover,.tinvwl-btn.small.white:active,.tinvwl-btn.small.white:focus{color:#fff}.tinvwl-btn.white{color:#291c09;background:#fff}.tinvwl-btn.white.no-txt{padding:12px 16px}.tinvwl-btn.white.small.no-txt{padding:9px 12px}.tinvwl-btn.white i{color:#6b625a;margin-right:11px}.tinvwl-btn.w-icon{font-weight:800}.tinvwl-btn.w-icon i{margin-right:16px}.tinvwl-btn.round.w-icon i{margin-right:15px;font-size:16px}.tinvwl-btn.w-icon i.fa-graduation-cap{vertical-align:text-bottom}.tinvwl-btn.red.w-icon i{margin-right:13px}.tinvwl-btn.xl-icon i,.tinvwl-btn.round.xl-icon i{font-size:17px;margin-right:15px}.tinvwl-btn.lg-icon i{font-size:15px}.tinvwl-btn.md-icon i,.tinvwl-btn.round.md-icon i{font-size:14px}.tinvwl-btn.sm-icon i{font-size:13px}.tinvwl-btn.xs-icon i{font-size:11px;vertical-align:1%}.tinvwl-btn.white.no-txt i{margin-right:0}.tinvwl-btn.white:hover i,.tinvwl-btn.white:active i,.tinvwl-btn.white:focus i{color:#fff}.tinvwl-btn.green{color:#fff;background-color:#a9c203}.tinvwl-btn.black{color:#fff;background-color:#515151}.tinvwl-btn.smaller-txt{font-size:12px;padding:15px 20px}.tinvwl-btn.medium{letter-spacing:0}.tinvwl-btn.medium.smaller-txt{padding:9px 16px}.tinvwl-btn.round{-webkit-border-radius:25px;-moz-border-radius:25px;border-radius:25px;padding:15px 28px 16px}.tinvwl-btn.round.red{padding:16px 30px}.tinvwl-btn.split{padding:0 26px 0 0}.tinvwl-btn.split span{display:inline-block;text-align:center;width:46px;padding:14px 0;margin-right:14px;-webkit-border-radius:4px 0 0 4px;-moz-border-radius:4px 0 0 4px;border-radius:4px 0 0 4px;background:#8aa300}.tinvwl-btn.split:hover span,.tinvwl-btn.split:active span,.tinvwl-btn.split:focus span{background:#434343}.tinvwl-btn.split.green span{background:#b9cf09}.tinvwl-btn.split.black span{background:#434343}.tinvwl-btn.split span i{font-size:17px}.tinvwl-btn:not(:disabled):hover,.tinvwl-btn:not(:disabled):active,.tinvwl-btn:not(:disabled):focus,a.tinvwl-btn:not(:disabled):hover,a.tinvwl-btn:not(:disabled):active,a.tinvwl-btn:not(:disabled):focus{color:#fff;background-color:#515151}.tinvwl-header .icon.border-grey{position:relative;display:inline-block;width:45px;height:45px;line-height:45px;text-align:center;background:#fff;border:2px solid #f1f1f1;-webkit-border-radius:50%;-moz-border-radius:50%;border-radius:50%;color:#3e3e3e}.tinvwl-header .icon.border-grey:hover{border-color:#515151}.tinvwl-header .icon.w-lines{position:relative;padding:0 30px}.tinvwl-header .icon.w-lines:before,.tinvwl-header .icon.w-lines:after{content:'';position:absolute;top:50%;top:calc(50% - 1px);width:17px;height:1px;background:rgba(0,0,0,.12)}.tinvwl-header .icon.w-lines:before{left:0}.tinvwl-header .icon.w-lines:after{right:0}.tinvwl-header .icon .badge{position:absolute;top:-5px;right:-10px;display:inline-block;min-width:26px;height:26px;font-size:11px;line-height:19px;font-weight:bold;background:#ff5739;border:3px solid #fff;color:#fff;-webkit-border-radius:50%;-moz-border-radius:50%;border-radius:50%}.tinvwl-header{padding:21px 40px;margin-bottom:40px;background:#fff}.tinwl-logo i.logo_heart{min-width:54px}.tinwl-logo h2{font-size:18px;font-weight:bold;text-transform:uppercase;line-height:1;padding-left:10px}.tinvwl-header .tinvwl-title{padding-left:28px;margin-left:28px;border-left:1px solid #dcddde}.tinvwl-header h1{color:#3e3e3e;padding:0}.tinvwl-header .tinvwl-status-panel{margin-top:-12px}.tinvwl-header .tinvwl-status-panel>a{vertical-align:middle}.tinvwl-header .tinvwl-status-panel>a+a{margin-left:15px}.tinvwl-header .tinvwl-btn{margin-top:15px}.tinvwl-header .tinvwl-btn{margin-top:18px}.tinvwl-header .tinvwl-btn.red i{color:#ffdc00}.tinvwl-header .tinvwl-status-panel{text-align:right}.tinvwl-sign-icon{font-size:30px;font-family:"Open Sans","Helvetica Neue",sans-serif;color:#948d84}@media(max-width:1199px){.tinvwl-header .tinvwl-table,.tinvwl-header .tinvwl-cell,.tinvwl-header .tinvwl-cell-3{display:block}.tinvwl-header{text-align:center}.tinvwl-header h1+.tinvwl-status-panel{margin-top:25px}.tinvwl-header .tinvwl-status-panel{text-align:center}.tinvwl-header .tinvwl-status-panel{margin-top:15px}.tinvwl-header .tinvwl-status-panel>a+a{margin-left:9px}.tinvwl-header{padding:18px 0 25px}.tinwl-logo,.tinwl-logo h2,.tinwl-logo img,.tinvwl-header .tinvwl-title{display:block;margin:0 auto}.tinwl-logo h2{padding-left:0;margin-left:0;margin-top:6px}.tinvwl-header .tinvwl-title{position:relative;padding-left:12px;padding-right:12px;padding-top:13px;margin-left:0;margin-top:16px;border-left:0}.tinvwl-header .tinvwl-title:before{content:'';position:absolute;top:0;left:0;right:0;width:40px;height:1px;margin:0 auto;background:#dcddde}}@media(max-width:782px){.tinvwl-header .tinvwl-btn .tinvwl-txt{display:none}.tinvwl-header .tinvwl-btn i{margin-right:0!important}.tinvwl-header .tinvwl-btn.grey{padding-left:16px;padding-right:16px}}.tinwl-wishlists-privacy{margin:-10px 0 0}.tinwl-wishlists-privacy li{float:left;margin:10px 10px 0 0}.tinwl-wishlists-privacy li:last-child{margin-right:0}.tinwl-wishlists-privacy li a{display:block;font-family:"Open Sans","Helvetica Neue",sans-serif;font-size:14px;font-weight:600;line-height:1;padding:10px 16px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;color:#404040;background:#ede8df}.tinwl-wishlists-privacy li.active a,.tinwl-wishlists-privacy li a:hover,.tinwl-wishlists-privacy li a:active,.tinwl-wishlists-privacy li a:focus{color:#fff;background-color:#96b100}@media screen and (max-width:782px){.tinwl-wishlists-privacy{margin-left:15px}}.tinvwl-panel{margin:40px 40px 0}.tinvwl-panel .w-bg-grey{background:#fbfaf9}.tinvwl-panel.w-shadow{-webkit-box-shadow:1px 1px 8px 0 rgba(170,157,137,0.14);box-shadow:1px 1px 8px 0 rgba(170,157,137,0.14)}.tinvwl-panel.w-bg{background:#fff;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}.tinvwl-table.w-info .tinvwl-info[rowspan],.tinvwl-table.w-info .tinvwl-info[rowspan] .tinvwl-info-sign{vertical-align:middle}.tinvwl-table.w-info .tinvwl-info-top>tr .tinvwl-info{vertical-align:top}@media screen and (max-width:1200px){.tinvwl-panel{margin:20px 20px 0}.tinvwl-header{margin-bottom:20px}}@media screen and (max-width:782px){.tinvwl-panel{margin:20px 0 0}.tinvwl-panel.only-button{text-align:center}}.tinvwl-icon-preview{position:relative;width:50px;height:42px;margin-right:10px;margin-bottom:10px;text-align:center;-webkit-border-radius:2px;-moz-border-radius:2px;border-radius:2px;color:#595857;background:#f6f3ed}@media(min-width:1200px){.tinvwl-icon-preview{margin-bottom:0}}.tinvwl-icon-preview span{position:absolute;top:50%;left:0;right:0;-webkit-transform:translateY(-50%);-moz-transform:translateY(-50%);-ms-transform:translateY(-50%);-o-transform:translateY(-50%);transform:translateY(-50%)}.tinvwl-icon-preview span img{max-width:50px;max-height:42px;vertical-align:middle}.tinvwl-content table.widefat{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.tinvwl-content .tablenav{height:auto;margin:30px;background:#fff}.tinvwl-content .tablenav .actions{padding:0}@media screen and (max-width:782px){.tablenav.top .actions{display:block}.tablenav br.tinv-wishlist-clear{display:none}.tinvwl-content .tablenav{margin:15px 12px}.tinvwl-content .tablenav .alignleft,.tinvwl-content .tablenav .alignright{float:none}.tinvwl-content .tablenav .tinvwl-full{display:none}.tinvwl-content .tablenav .alignleft+.alignright{margin-top:10px}.tinvwl-content .tablenav .tinvwl-select-wrap{width:calc(100% - 75px)}#wpbody .tinvwl-content .tablenav .tinvwl-select-wrap select.tinvwl-select{max-width:100%;width:100%;height:35px;padding:9px 13px}.tinvwl-content .tablenav input[type=search]{width:calc(100% - 84px)}}.tinvwl-content .widefat th,.tinvwl-content .widefat td{text-align:center;padding:0}.tinvwl-content .widefat th{padding:27px 0;position:relative}.tinvwl-content .widefat th.sortable,.tinvwl-content .widefat th.sorted{padding:0}.tinvwl-content .widefat th.sortable>a,.tinvwl-content .widefat th.sorted>a{padding:28px 17px}.tinvwl-content .widefat th.tinvwl-has-info{padding-top:28px}.tinvwl-content .widefat th.tinvwl-has-info.sortable>a,.tinvwl-content .widefat th.tinvwl-has-info.sorted>a{padding-top:0}.tinvwl-content .widefat th.sortable:first-of-type,.tinvwl-content .widefat th.sorted:first-of-type{padding-left:0}.tinvwl-content .widefat th.sortable:first-of-type>a,.tinvwl-content .widefat th.sorted:first-of-type>a{padding-left:28px}.tinvwl-content .widefat th:first-of-type,.tinvwl-content .widefat td:first-of-type{text-align:left;padding-left:28px}.tinvwl-content .widefat th .tinvwl-help-wrap{display:inline-block}.tinvwl-content .widefat th .tinvwl-help-wrap{margin-left:6px}.tinvwl-content .widefat th.sortable>a+.tinvwl-help-wrap,.tinvwl-content .widefat th.sorted>a+.tinvwl-help-wrap{margin-left:0}.tinvwl-content .widefat thead tr{background:#f4f3ef}.tinvwl-content .striped>tbody>:nth-child(odd),.tinvwl-content ul.striped>:nth-child(odd){background:0}.tinvwl-content .widefat thead td.check-column,.tinvwl-content .widefat tbody th.check-column{width:50px;padding:28px 0 28px 28px;vertical-align:middle}.tinvwl-content .widefat thead td.check-column{padding:28px 0 28px 28px}.tinvwl-content .widefat tbody th.check-column{padding:13px 0 13px 28px}.tinvwl-content .widefat thead td.check-column+th.sortable:first-of-type>a,.tinvwl-content .widefat thead td.check-column+th.sorted:first-of-type>a,.tinvwl-content .widefat thead td.check-column+th,.tinvwl-content .widefat tbody th.check-column+td{padding-left:21px}.tinvwl-content .widefat thead td.check-column+th.sortable:first-of-type>.tinvwl-info-wrap.tinvwl-in-table,.tinvwl-content .widefat thead td.check-column+th.sorted:first-of-type>.tinvwl-info-wrap.tinvwl-in-table{padding-left:21px}.tinvwl-content .widefat thead td.pause-play-column,.tinvwl-content .widefat tbody th.pause-play-column{padding:0;width:53px;text-align:center}.tinvwl-content th.sortable a,.tinvwl-content th.sorted a{padding:0}.tinvwl-content .widefat th,.tinvwl-content th.sortable>a,.tinvwl-content th.sorted>a{font-size:14px;font-weight:600;font-family:"Open Sans","Helvetica Neue",sans-serif;color:#291c09;text-transform:uppercase;letter-spacing:-.025em}.tinvwl-content th.sortable>a,.tinvwl-content th.sorted>a{display:inline-block;vertical-align:middle}.tinvwl-content .widefat th.sortable>a,.tinvwl-content .widefat th.sorted>a{position:relative}.tinvwl-content .widefat th.sortable>a .sorting-indicator,.tinvwl-content .widefat th.sorted>a .sorting-indicator{position:absolute;top:50%;right:0;margin-top:-2px}.tinvwl-content .widefat th.tinvwl-has-info.sortable>a .sorting-indicator,.tinvwl-content .widefat th.tinvwl-has-info.sorted>a .sorting-indicator{margin-top:-15px}.tinvwl-content th.sortable a span,.tinvwl-content th.sorted a span{float:none}.tinvwl-content table.widefat{border:0;border-bottom:2px solid #f7f7f7}.tinvwl-content .widefat thead td,.tinvwl-content .widefat thead th{border-bottom:0}.tinvwl-content .widefat td{padding:24px 0;vertical-align:middle}.tinvwl-content .widefat tbody td{padding:13px 0}.tinvwl-content .widefat td,.tinvwl-content .widefat td ol,.tinvwl-content .widefat td p,.tinvwl-content .widefat td ul{font-size:14px}.tinvwl-content .widefat tbody tr+tr{border-top:2px solid #f7f7f7}.tinvwl-content .widefat thead th.column-preference{text-indent:-9999px}.tinvwl-content .widefat.wishlists thead th.column-preference,.tinvwl-content .widefat.wishlists tbody td.column-preference{min-width:220px;width:220px}.tinvwl-content .widefat:not(.products) tbody td.column-preference{text-align:right}.tinvwl-content .widefat.products thead th.column-quantity a>span:not(.sorting-indicator){max-width:91px}.tinvwl-content .widefat.users tbody .column-name>a{display:block}.tinvwl-content .widefat.products thead th.column-preference,.tinvwl-content .widefat.products tbody td.column-preference{width:345px;min-width:345px}.tinvwl-content .widefat.users thead th.column-preference,.tinvwl-content .widefat.users tbody td.column-preference{width:165px;min-width:165px}.tinvwl-content .widefat tbody .column-name strong{font-weight:normal}.tinvwl-content .widefat tbody .column-name>a{display:table}.tinvwl-content .widefat tbody .column-name .product-image img{max-width:66px}.tinvwl-content .widefat tbody .column-name .product-image,.tinvwl-content .widefat tbody .column-name .product-title{display:table-cell;vertical-align:middle}.tinvwl-content .widefat tbody .column-name .product-title{padding-left:15px}.tinvwl-content .widefat thead th.column-preference,.tinvwl-content .widefat tbody td.column-preference{padding-right:20px}.tinvwl-content .widefat.products tbody td.column-preference>a{margin-right:10px;float:left}.tinvwl-content .widefat.products tbody td.column-preference>a:last-child{margin-right:0}.tinvwl-content .tablenav .tablenav-pages{float:none;text-align:center;height:auto;margin-top:0}.tinvwl-content .tablenav .tablenav-pages .pagination-links>a,.tinvwl-content .tablenav .tablenav-pages .pagination-links>span{display:inline-block;vertical-align:middle;text-align:center;font-size:14px;font-weight:normal;padding:0;min-width:38px;height:38px;line-height:38px;-webkit-border-radius:50%;-moz-border-radius:50%;border-radius:50%;border:0;background:0;color:#3e3e3e}.tinvwl-content .tablenav .tablenav-pages .pagination-links>span{color:rgba(62,62,62,.46)}.tinvwl-content .tablenav .tablenav-pages .pagination-links>span,.tinvwl-content .tablenav .tablenav-pages .pagination-links .next-page,.tinvwl-content .tablenav .tablenav-pages .pagination-links .prev-page{background:#f3f1ec}.tinvwl-content .tablenav .tablenav-pages .pagination-links>.tinvwl-page-number.space{background:0;color:#3e3e3e}.tinvwl-content .tablenav .tablenav-pages .pagination-links>a:hover,.tinvwl-content .tablenav .tablenav-pages .pagination-links .next-page:hover,.tinvwl-content .tablenav .tablenav-pages .pagination-links .prev-page:hover{background:#3e3e3e;color:#fff}.tinvwl-content .tablenav .tablenav-pages .pagination-links .prev-page{margin-right:20px}.tinvwl-content .tablenav .tablenav-pages .pagination-links .next-page{margin-left:20px}.tinvwl-content .tablenav .tablenav-pages .tinvwl-chevron{display:inline-block;vertical-align:middle;width:9px;height:16px}.tinvwl-content .tablenav .tablenav-pages .pagination-links .prev-page .tinvwl-chevron{background:url('../img/chevron_icon.png') no-repeat center;background-position:0 -16px}.tinvwl-content .tablenav .tablenav-pages .pagination-links .prev-page:hover .tinvwl-chevron{background:url('../img/chevron_icon.png') no-repeat center;background-position:0 0}.tinvwl-content .tablenav .tablenav-pages .pagination-links .next-page .tinvwl-chevron{background:url('../img/chevron_icon.png') no-repeat center;background-position:-10px -16px}.tinvwl-content .tablenav .tablenav-pages .pagination-links .next-page:hover .tinvwl-chevron{background:url('../img/chevron_icon.png') no-repeat center;background-position:-10px 0}.tinvwl-content .widefat.products thead th.column-name,.tinvwl-content .widefat.products tbody td.column-name{width:30%}.tinvwl-content .widefat.wishlists thead th.column-title,.tinvwl-content .widefat.wishlists tbody td.column-title{width:45%}.tinvwl-content .widefat.users thead th.column-wishlist,.tinvwl-content .widefat.users tbody td.column-wishlist{width:45%}.tinvwl-content .widefat.users thead th.column-name,.tinvwl-content .widefat.users tbody td.column-name{text-align:left}.tinvwl-content .widefat.users thead th.column-quantity,.tinvwl-content .widefat.users tbody td.column-quantity{width:100px}.tinvwl-content .widefat tbody td.column-preference .tinvwl-btn .tinvwl-mobile{display:none}@media screen and (max-width:1440px){.tinvwl-content .widefat.products thead th.column-preference,.tinvwl-content .widefat.products tbody td.column-preference{width:204px;min-width:204px}.tinvwl-content .widefat.wishlists thead th.column-preference,.tinvwl-content .widefat.wishlists tbody td.column-preference{width:98px;min-width:98px}.tinvwl-content .widefat.users thead th.column-preference,.tinvwl-content .widefat.users tbody td.column-preference{width:60px;min-width:60px}.tinvwl-content .widefat tbody td.column-preference .tinvwl-btn.tinvwl-w-mobile{padding:9px 12px}.tinvwl-content .widefat tbody td.column-preference .tinvwl-btn .tinvwl-mobile{display:inline;margin:0}.tinvwl-content .widefat tbody td.column-preference .tinvwl-btn .tinvwl-full{display:none}}.tinvwl-content .widefat.products thead th.column-quantity span span{float:none}@media screen and (max-width:1366px) and (min-width:783px){.tinvwl-content .widefat tbody .column-name .product-image,.tinvwl-content .widefat tbody .column-name .product-title{display:block}.tinvwl-content .widefat tbody .column-name .product-title{padding-left:0}.tinvwl-content .widefat.products thead th.column-preference,.tinvwl-content .widefat.products tbody td.column-preference{width:103px;min-width:103px}.tinvwl-content .widefat.products tbody td.column-preference>a{margin-right:5px}.tinvwl-content .widefat tbody td.column-preference>a:nth-child(2n){margin-right:0}.tinvwl-content .widefat tbody td.column-preference>a:nth-child(n+3){margin-top:5px}.tinvwl-content .widefat thead th .tinvwl-full{display:none}}@media screen and (max-width:1200px) and (min-width:783px){.tinvwl-content th.sortable a span,.tinvwl-content th.sorted a span{float:none}.tinvwl-content .widefat th.sortable>a,.tinvwl-content .widefat th.sorted>a{padding-left:0;padding-right:0;position:static}.tinvwl-content .widefat th.sortable>a .sorting-indicator,.tinvwl-content .widefat th.sorted>a .sorting-indicator{top:auto;bottom:12px;left:0;right:0;margin-left:auto;margin-right:auto}.tinvwl-content .widefat th.sortable>a .sorting-indicator:before,.tinvwl-content .widefat th.sorted>a .sorting-indicator:before{left:-5px}.tinvwl-content .widefat th.tinvwl-has-info.sortable>a .sorting-indicator,.tinvwl-content .widefat th.tinvwl-has-info.sorted>a .sorting-indicator{margin-top:12px}.tinvwl-content .widefat.wishlists thead th.column-title,.tinvwl-content .widefat.wishlists tbody td.column-title{width:38%}}@media screen and (max-width:782px){.tinvwl-content .widefat th.tinvwl-has-info.sortable>a .sorting-indicator,.tinvwl-content .widefat th.tinvwl-has-info.sorted>a .sorting-indicator{margin-top:0}.tinvwl-content .widefat.products tbody td.column-preference>a{margin-right:5px;float:none}.tinvwl-content .widefat tbody .column-name .product-image,.tinvwl-content .widefat tbody .column-name .product-title{vertical-align:top}.tablenav .tablenav-pages{margin-bottom:15px}.tinvwl-content .widefat thead th.column-primary{width:100%!important}.tinvwl-content .widefat thead td.check-column+th.column-primary{width:50%!important}.tinvwl-content .widefat.users thead td.check-column+th.column-primary{width:100%!important}}.tinvwl-table{display:table;width:100%;max-width:100%}.tinvwl-table.w-bg{background:#fff;overflow:hidden;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}.tinvwl-table.w-shadow{-webkit-box-shadow:1px 1px 8px 0 rgba(170,157,137,0.14);box-shadow:1px 1px 8px 0 rgba(170,157,137,0.14)}.tinvwl-table.auto-width{width:auto}.tinvwl-caption{display:table-caption}.tinvwl-row{display:table-row}.tinvwl-rows{display:table-row-group}.tinvwl-cell{display:table-cell;vertical-align:middle}.tinvwl-cell-2{display:table-cell;vertical-align:middle;float:none}.tinvwl-cell-3{display:table-cell;vertical-align:top;float:none}.tinvwl-table.w-info>thead>tr>th:first-child,.tinvwl-table.w-info>tbody>tr>td:first-child{width:67%}.tinvwl-table th,.tinvwl-table td{vertical-align:top}.tinvwl-table .tinvwl-inner.tinv-wishlist-clearfix h3,.tinvwl-table .tinvwl-inner .tinv-wishlist-clearfix h3,.tinvwl-table .tinvwl-inner.tinv-wishlist-clearfix h4,.tinvwl-table .tinvwl-inner .tinv-wishlist-clearfix h4{float:left}.tinvwl-table .tinvwl-btn-wrap{float:right}.tinvwl-table.w-info thead>tr>th{text-align:left}.tinvwl-table.w-info thead>tr>th .tinvwl-info-wrap{font-weight:normal}.tinvwl-table>thead>tr>th{padding:0 30px}.tinvwl-table .tinvwl-info{vertical-align:top}.tinvwl-table>thead>tr>.tinvwl-info .tinvwl-info-wrap{padding-bottom:30px}.tinvwl-table tbody tr .tinvwl-inner h2{font-size:15px;color:#291c09;font-weight:600;margin-bottom:21px}.tinvwl-table>tbody>tr>.tinvwl-info .tinvwl-info-wrap{padding-bottom:20px}.tinvwl-table>tbody>tr>td{padding:0 30px}.tinvwl-table thead>tr .tinvwl-inner{padding:28px 0;margin-bottom:30px;border-bottom:2px solid rgba(219,219,219,.522)}.tinvwl-table thead.tinwl-empty>tr .tinvwl-inner{padding:30px 0 0;margin-bottom:0;border-bottom:0}.tinvwl-table .tinvwl-header-row label{font-size:22px;font-weight:normal;line-height:1.313;margin:0 0 15px}.tinvwl-table .tinvwl-header-row label{padding-top:3px!important}.tinvwl-table thead .tinvwl-empty-info,.tinvwl-table tbody>.tinvwl-bodies-border{display:none}.tinvwl-table thead .tinvwl-empty-info .tinvwl-inner{margin:0;padding-top:56px}.tinvwl-bodies-border .tinvwl-info .tinvwl-inner{display:none;padding-top:30px;margin-top:10px;border-top:2px solid rgba(219,219,219,.522)}.tinvwl-style-options .tinvwl-table thead .tinvwl-empty-info,.tinvwl-style-options .tinvwl-bodies-border .tinvwl-info{padding-left:0;background:0}.tinvwl-style-options .tinvwl-table thead .tinvwl-empty-info{display:table-cell}.tinvwl-style-options .tinvwl-table thead .tinvwl-empty-info .tinvwl-inner,.tinvwl-style-options tbody+tbody>.tinvwl-bodies-border .tinvwl-info .tinvwl-inner{display:block}@media(min-width:1200px){.tinvwl-style-options .tinvwl-table .tinvwl-inner .form-horizontal{width:67%}}textarea[name="style_plain-css"]{height:150px}.tinvwl-table tbody+tbody>.tinvwl-bodies-border{display:table-row}.tinvwl-table tbody+tbody>.tinvwl-bodies-border:first-child>td:first-child>.tinvwl-inner{padding-top:30px;margin-top:10px;border-top:2px solid rgba(219,219,219,.522)}.tinvwl-table .tinvwl-header-row.tinvwl-line-border .tinvwl-inner{padding-bottom:15px;margin-bottom:30px;border-bottom:2px solid rgba(219,219,219,.522)}.tinvwl-table .form-group .col-md-4:nth-child(n+4),.tinvwl-table .form-group .col-lg-4:nth-child(n+4){padding-top:27px}.tinvwl-table tfoot .tinvwl-inner{padding-top:20px}.tinvwl-table tr.no-top-border .tinvwl-inner,.tinvwl-table tr.no-top-border .tinvwl-info-wrap{border-top:0;padding-top:0}.tinvwl-table thead .w-bg-grey .tinvwl-info-wrap{padding-top:30px}.tiwl-notifications-style-logo img{height:42px}@media(min-width:1200px){.tinvwl-table tr.tinvwl-full-width .control-label label{margin-bottom:10px}.tinvwl-table tr.tinvwl-full-width [class^="col-lg-"],.tinvwl-table tr.tinvwl-full-width [class^="col-md-"]{width:100%}.tinvwl-table tr.tinvwl-full-width textarea{height:250px;padding:15px}.tiwl-notifications-style-logo img{float:right}}@media(max-width:1199px){.form-horizontal .control-label .tinvwl-empty{display:none}.tinvwl-style-options .tinvwl-empty-info,.tinvwl-style-options .tinvwl-info{display:none!important}.tinvwl-style-options .tinvwl-table thead th:first-child,.tinvwl-style-options .tinvwl-bodies-border td:first-child{padding-right:30px!important}.tinvwl-table .tinvwl-header-row.tinvwl-line-border .tinvwl-inner{padding-bottom:0}.tinvwl-table .tinvwl-header-row.tinvwl-line-border .tinvwl-inner .form-group{margin-bottom:20px}}.tinvwl-info .tinvwl-info-desc a{text-decoration:underline;color:#ff5739}.tinvwl-info .tinvwl-info-desc a:hover,.tinvwl-info .tinvwl-info-desc a:active,.tinvwl-info .tinvwl-info-desc a:focus{color:#000}.tinvwl-info-wrap.tinvwl-in-section{background:#fbfaf9;color:#4f4639}.tinvwl-info-wrap.tinvwl-in-section .tinvwl-info-sign{width:42px;vertical-align:top;padding-top:1px;padding-right:20px}.tinvwl-info-wrap .tinvwl-info-sign span,.tinvwl-info-wrap .tinvwl-info-sign .tinvwl-help{display:inline-block;text-align:center;width:22px;height:22px;line-height:22px;-webkit-border-radius:50%;-moz-border-radius:50%;border-radius:50%;background:#e1dbce}.tinvwl-info-wrap.tinvwl-in-section .tinvwl-info-sign span,.tinvwl-info-wrap.tinvwl-in-section .tinvwl-info-sign .tinvwl-help{display:block}.tinvwl-info-wrap i{font-size:14px;color:#fbfaf9}.tinvwl-panel:not(.only-button) .tinvwl-table .col-lg-6>.tinvwl-btn{width:auto}.tinvwl-btns-group{margin-bottom:23px;margin-top:-15px;margin-right:-15px}.tiwl-style-custom-allow .tinvwl-inner textarea{margin-bottom:23px}.tinvwl-btns-group .tinvwl-btn{margin-top:15px;margin-right:15px}.tinvwl-btns-group .tinvwl-btn{float:left}@media(min-width:1200px){.tinvwl-table .tinvwl-form-onoff,.tinvwl-panel:not(.only-button) .tinvwl-table .col-lg-6>.tinvwl-btn{float:right}.tinvwl-btns-group .tinvwl-btn{float:right}}.tinvwl-table .tinvwl-info .tinvwl-info-wrap.tinvwl-in-section .tinvwl-help{display:none}.tinvwl-info-wrap.tinvwl-in-table{display:inline-block;vertical-align:middle;display:block;margin-bottom:5px}.tinvwl-info-wrap.tinvwl-in-table .tinvwl-help{cursor:pointer}.tinvwl-content .widefat th.tinvwl-has-info .tinvwl-col-name{margin-right:5px}.tinvwl-info-wrap.tinvwl-in-table .tinvwl-info-desc{display:none}@media(max-width:1200px){.tinvwl-table .tinvwl-info{padding-left:15px;padding-right:15px}.tinvwl-table.w-info>thead>tr>th:first-child,.tinvwl-table.w-info>tbody>tr>td:first-child{width:90%}.tinvwl-info-wrap.tinvwl-in-section .tinvwl-info-sign{width:auto;padding-right:0}.tinvwl-info-wrap.tinvwl-in-section .tinvwl-info-sign span{display:none}.tinvwl-table .tinvwl-info-wrap.tinvwl-in-section .tinvwl-info-sign .tinvwl-help{display:block;margin:0 auto}.tinvwl-info-wrap.tinvwl-in-section .tinvwl-info-desc{display:none}}@media(max-width:782px){.tinvwl-content .widefat th.tinvwl-has-info.sortable,.tinvwl-content .widefat th.tinvwl-has-info.sorted{padding-top:0}.widefat tfoot td input[type=checkbox],.widefat th input[type=checkbox],.widefat thead td input[type=checkbox]{margin-bottom:0}.tinvwl-content .widefat th.sortable>a,.tinvwl-content .widefat th.sorted>a,.tinvwl-content .widefat th.sortable.tinvwl-has-info>a,.tinvwl-content .widefat th.sorted.tinvwl-has-info>a{padding-top:18px;padding-bottom:18px}.tinvwl-content .widefat thead td.check-column,.tinvwl-content .widefat tbody th.check-column{padding-top:14px;padding-bottom:15px;padding-left:20px;width:45px}.tinvwl-content .widefat tbody th.check-column{padding-top:11px;padding-bottom:11px;vertical-align:top}.tinvwl-content .widefat.wishlists thead td.check-column,.tinvwl-content .widefat.wishlists tbody th.check-column{width:23px}.tinvwl-content .widefat thead td.check-column+th.sortable:first-of-type>a,.tinvwl-content .widefat thead td.check-column+th.sorted:first-of-type>a,.tinvwl-content .widefat thead td.check-column+th,.tinvwl-content .widefat tbody th.check-column+td{padding-left:10px}.tinvwl-content .widefat thead td.check-column+th.sortable:first-of-type>.tinvwl-info-wrap.tinvwl-in-table,.tinvwl-content .widefat thead td.check-column+th.sorted:first-of-type>.tinvwl-info-wrap.tinvwl-in-table{padding-left:13px;display:inline-block;margin-top:5px;margin-bottom:0}.wp-list-table tr:not(.inline-edit-row):not(.no-items) td:not(.column-primary)::before{text-align:left}.wp-list-table tr:not(.inline-edit-row):not(.no-items) td.column-primary~td:not(.check-column){text-align:right;padding-right:30px}.wp-list-table tr:not(.inline-edit-row):not(.no-items) td:not(.column-primary)::before{left:28px}.wp-list-table tr:not(.inline-edit-row):not(.no-items) td.check-column+td:not(.column-primary)::before{left:13px}.wp-list-table tr:not(.inline-edit-row):not(.no-items) td.column-primary~td:not(.check-column):last-child{padding-bottom:13px}}.popover{position:absolute;top:0;left:0;z-index:9999;display:none;max-width:279px;padding:1px;text-align:center;white-space:normal;background-color:#fff;-webkit-background-clip:padding-box;background-clip:padding-box;border-radius:6px;-webkit-box-shadow:0 5px 15px 0 rgba(0,0,0,0.22);box-shadow:0 5px 15px 0 rgba(0,0,0,0.22)}.popover.top{margin-top:-10px}.popover.right{margin-left:10px}.popover.bottom{margin-top:10px}.popover.left{margin-left:-10px}.popover-title{padding:30px 30px 0;margin:0;font-family:'Open Sans',Arial,sans-serif;font-size:14px;font-weight:600;line-height:1.714;text-transform:uppercase;letter-spacing:-.35px}.popover-content{padding:25px 30px 30px;color:#5d5d5d;font-family:Arial,sans-serif;font-size:14px;line-height:1.429}.popover>.arrow,.popover>.arrow:after{position:absolute;display:block;width:0;height:0;border-color:transparent;border-style:solid}.popover>.arrow{border-width:11px;margin-left:0;overflow:visible}.popover>.arrow:after{content:none;z-index:9999;background:0;-webkit-box-shadow:none;box-shadow:none;position:absolute;left:auto;top:auto;width:auto;height:auto;-webkit-transform:none;-ms-transform:none;transform:none}.popover>.arrow:after{content:"";border-width:10px}.popover.top>.arrow{bottom:-11px;left:50%;margin-left:-11px;border-bottom-width:0}.popover.top>.arrow:after{bottom:1px;margin-left:-10px;content:" ";border-top-color:#fff;border-bottom-width:0}.popover.right>.arrow{top:50%;left:-11px;margin-top:-11px;border-left-width:0}.popover.right>.arrow:after{bottom:-10px;left:1px;content:" ";border-right-color:#fff;border-left-width:0}.popover.bottom>.arrow{top:-11px;left:50%;margin-left:-11px;border-top-width:0}.popover.bottom>.arrow:after{top:1px;margin-left:-10px;content:" ";border-top-width:0;border-bottom-color:#fff}.popover.left>.arrow{top:50%;left:auto;right:-11px;margin-top:-11px;border-right-width:0}.popover.left>.arrow:after{left:auto;right:1px;bottom:-10px;content:" ";border-right-width:0;border-left-color:#fff}.tinvwl-img-w-desc i{margin-right:20px}.tinvwl-img-w-desc h5{font-weight:600;text-transform:uppercase}.tinvwl-img-w-desc .tinvwl-desc{color:#4f4639}.tinvwl-img-w-desc h5+.tinvwl-desc{margin-top:2px}.tinvwl-premium-feat h2{font-size:48px;text-transform:uppercase;letter-spacing:-.025em;line-height:1;color:#3e3e3e}.tinvwl-premium-feat h3{font-size:16px;font-weight:600;text-transform:uppercase;letter-spacing:-.025em;color:#50504f}.tinvwl-premium-feat .tinvwl-feat-col-inner{padding:40px}.tinvwl-premium-feat .tinvwl-pic-col .tinvwl-feat-col-inner{text-align:center;padding-left:22px;padding-right:22px}.tinvwl-premium-feat .tinvwl-pic-col img{display:block;margin:0 auto}.tinvwl-premium-feat .tinvwl-pic-col .tinvwl-btn{margin-top:-35px}.tinvwl-premium-feat .tinvwl-features{margin-top:28px}.tinvwl-premium-feat .tinvwl-features li i{color:#96b100;margin-right:15px}.tinvwl-premium-feat .tinvwl-features li span{text-decoration:underline}.tinvwl-premium-feat .tinvwl-features li+li{margin-top:14px}.tinvwl-premium-feat .tinvwl-img-w-desc+.tinvwl-img-w-desc{margin-top:15px}.tinvwl-premium-feat .tinvwl-sup-col .tinvwl-feat-col-inner>.tinvwl-desc{line-height:1.71428571;text-align:center;margin-top:23px}.tinvwl-premium-feat .tinvwl-sup-col .tinvwl-feat-col-inner>.tinvwl-desc a{display:inline-block;text-decoration:underline;margin-top:26px;color:#000}#wpfooter{padding:10px 40px}#wpfooter p{font-family:"Open Sans","Helvetica Neue",sans-serif;font-size:14px;line-height:1.85714286;color:#4b4b4b}#wpfooter .fa-heart{margin:0 3px}#wpfooter .fa-star{font-size:12px;margin:0 1px}#wpfooter span .fa-star:first-of-type{margin-left:6px}#wpfooter span .fa-star:last-of-type{margin-left:3px}#wpfooter i{color:#ff5739}#wpfooter a{text-decoration:underline;color:#ff5739}#wpfooter a:hover,#wpfooter a:active,#wpfooter a:focus{color:#000}.tinvwl-color-picker{position:relative}.tinvwl-color-picker .iris-picker{position:absolute;z-index:9999}.tinvwl-color-picker input[type=text]{color:#fff;border:4px solid #fff;box-shadow:0 0 0 1px rgba(0,0,0,.14)}.tinvwl-color-picker .tinvwl-eyedropper{cursor:pointer;position:relative;display:inline-block;vertical-align:top;margin-left:4px;width:42px;height:42px;background:#fff url('../img/color_icon.png') no-repeat center;border:1px solid rgba(0,0,0,.14);border-radius:2px;box-shadow:1px 2px 4px 0 rgba(0,0,0,0.1)}.tinvwl-color-picker .tinvwl-eyedropper a{color:#6b625a}.tinvwl-color-picker .tinvwl-eyedropper i{display:inline-block;position:absolute;top:15px;left:14px;font-size:12px}.tinvwl-color-picker+.iris-picker .iris-square-value{width:0;height:0}.tinvwl-overlay{position:fixed;top:0;left:0;width:100%;height:100%;visibility:hidden;opacity:0;-webkit-transition:opacity .3s ease,visibility .3s ease;-moz-transition:opacity .3s ease,visibility .3s ease;-o-transition:opacity .3s ease,visibility .3s ease;transition:opacity .3s ease,visibility .3s ease;background:#191919}.tinvwl-modal.tinvwl-modal-open .tinvwl-overlay{visibility:visible;opacity:.5}.admin-bar .tinvwl-content .tinvwl-modal{padding-top:32px!important}.tinvwl-content .tinvwl-modal .tinvwl-modal-inner{position:relative;margin:0 auto;background:#fff;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}.tinvwl-content .tinvwl-modal{overflow-y:auto;overflow-x:hidden;top:0;left:0;width:0;height:0;z-index:9999;position:fixed;outline:none!important;-webkit-backface-visibility:hidden;visibility:hidden;opacity:0;text-align:left;-webkit-transition:opacity .3s ease,visibility .3s ease;-moz-transition:opacity .3s ease,visibility .3s ease;-o-transition:opacity .3s ease,visibility .3s ease;transition:opacity .3s ease,visibility .3s ease}.tinvwl-content .tinvwl-modal.tinvwl-modal-open{visibility:visible;opacity:1;width:100%;height:100%}@media screen and (max-width:782px){.admin-bar .tinvwl-content .tinvwl-modal{padding-top:46px!important}}@media screen and (max-width:600px){.admin-bar .tinvwl-content .tinvwl-modal{padding-top:0!important}}.tinvwl-modal .tinvwl-table{height:100%}.tinvwl-content .tinvwl-modal .tinvwl-modal-inner{max-width:415px;padding:40px 45px}.tinvwl-content .tinvwl-modal.tinvwl-send-promo-emails{text-align:center}.tinvwl-content .tinvwl-modal.tinvwl-send-promo-emails p{margin:0 0 26px}.tinvwl-content .tinvwl-modal.tinvwl-send-promo-emails .tinvwl-btn.large{padding:14px 33px}.tinvwl-content .tinvwl-modal.tinvwl-send-promo-emails .tinvwl-btn+.tinvwl-btn{margin-left:6px}.tinvwl-quick-btns{position:fixed;top:25%;left:100%;z-index:9999}.tinvwl-quick-btns button{display:block;width:117px;font-size:14px;font-family:"Open Sans",Arial,sans-serif;font-weight:600;padding:0 35px 0 0;-webkit-border-radius:2px;-moz-border-radius:2px;border-radius:2px;border:0;text-decoration:none;background:#96b100;color:#fff;-webkit-transform:translateX(-50px);-moz-transform:translateX(-50px);-o-transform:translateX(-50px);transform:translateX(-50px);-webkit-transition:transform .3s ease;-moz-transition:transform .3s ease;-o-transition:transform .3s ease;transition:transform .3s ease}.tinvwl-panel.only-button .tinvwl-quick-btns .form-control{display:block;width:119px}.tinvwl-quick-btns button:hover{-webkit-transform:translateX(-100%);-moz-transform:translateX(-100%);-o-transform:translateX(-100%);transform:translateX(-100%)}.tinvwl-quick-btns button+button{margin-top:4px}.tinvwl-quick-btns button span{display:inline-block;width:50px;padding:15px 0;text-align:center}@media(min-width:1200px){.tinvwl-empty-select+.tinvwl-input-group-btn{text-align:right}}.tinvwl-empty-select+.tinvwl-input-group-btn .tinvwl-btn{margin-left:0}.container{margin-right:auto;margin-left:auto}@media(min-width:768px){.container{width:750px}}@media(min-width:992px){.container{width:970px}}@media(min-width:1200px){.container{width:1170px}}.container-fluid{margin-right:auto;margin-left:auto}.row{margin-right:-15px;margin-left:-15px}.col-xs-1,.col-sm-1,.col-md-1,.col-lg-1,.col-xs-2,.col-sm-2,.col-md-2,.col-lg-2,.col-xs-3,.col-sm-3,.col-md-3,.col-lg-3,.col-xs-4,.col-sm-4,.col-md-4,.col-lg-4,.col-xs-5,.col-sm-5,.col-md-5,.col-lg-5,.col-xs-6,.col-sm-6,.col-md-6,.col-lg-6,.col-xs-7,.col-sm-7,.col-md-7,.col-lg-7,.col-xs-8,.col-sm-8,.col-md-8,.col-lg-8,.col-xs-9,.col-sm-9,.col-md-9,.col-lg-9,.col-xs-10,.col-sm-10,.col-md-10,.col-lg-10,.col-xs-11,.col-sm-11,.col-md-11,.col-lg-11,.col-xs-12,.col-sm-12,.col-md-12,.col-lg-12{position:relative;min-height:1px;padding-right:15px;padding-left:15px}.col-xs-1,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9,.col-xs-10,.col-xs-11,.col-xs-12{float:left}.col-xs-12{width:100%}.col-xs-11{width:91.66666667%}.col-xs-10{width:83.33333333%}.col-xs-9{width:75%}.col-xs-8{width:66.66666667%}.col-xs-7{width:58.33333333%}.col-xs-6{width:50%}.col-xs-5{width:41.66666667%}.col-xs-4{width:33.33333333%}.col-xs-3{width:25%}.col-xs-2{width:16.66666667%}.col-xs-1{width:8.33333333%}.col-xs-pull-12{right:100%}.col-xs-pull-11{right:91.66666667%}.col-xs-pull-10{right:83.33333333%}.col-xs-pull-9{right:75%}.col-xs-pull-8{right:66.66666667%}.col-xs-pull-7{right:58.33333333%}.col-xs-pull-6{right:50%}.col-xs-pull-5{right:41.66666667%}.col-xs-pull-4{right:33.33333333%}.col-xs-pull-3{right:25%}.col-xs-pull-2{right:16.66666667%}.col-xs-pull-1{right:8.33333333%}.col-xs-pull-0{right:auto}.col-xs-push-12{left:100%}.col-xs-push-11{left:91.66666667%}.col-xs-push-10{left:83.33333333%}.col-xs-push-9{left:75%}.col-xs-push-8{left:66.66666667%}.col-xs-push-7{left:58.33333333%}.col-xs-push-6{left:50%}.col-xs-push-5{left:41.66666667%}.col-xs-push-4{left:33.33333333%}.col-xs-push-3{left:25%}.col-xs-push-2{left:16.66666667%}.col-xs-push-1{left:8.33333333%}.col-xs-push-0{left:auto}.col-xs-offset-12{margin-left:100%}.col-xs-offset-11{margin-left:91.66666667%}.col-xs-offset-10{margin-left:83.33333333%}.col-xs-offset-9{margin-left:75%}.col-xs-offset-8{margin-left:66.66666667%}.col-xs-offset-7{margin-left:58.33333333%}.col-xs-offset-6{margin-left:50%}.col-xs-offset-5{margin-left:41.66666667%}.col-xs-offset-4{margin-left:33.33333333%}.col-xs-offset-3{margin-left:25%}.col-xs-offset-2{margin-left:16.66666667%}.col-xs-offset-1{margin-left:8.33333333%}.col-xs-offset-0{margin-left:0}@media(min-width:768px){.col-sm-1,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-sm-10,.col-sm-11,.col-sm-12{float:left}.col-sm-12{width:100%}.col-sm-11{width:91.66666667%}.col-sm-10{width:83.33333333%}.col-sm-9{width:75%}.col-sm-8{width:66.66666667%}.col-sm-7{width:58.33333333%}.col-sm-6{width:50%}.col-sm-5{width:41.66666667%}.col-sm-4{width:33.33333333%}.col-sm-3{width:25%}.col-sm-2{width:16.66666667%}.col-sm-1{width:8.33333333%}.col-sm-pull-12{right:100%}.col-sm-pull-11{right:91.66666667%}.col-sm-pull-10{right:83.33333333%}.col-sm-pull-9{right:75%}.col-sm-pull-8{right:66.66666667%}.col-sm-pull-7{right:58.33333333%}.col-sm-pull-6{right:50%}.col-sm-pull-5{right:41.66666667%}.col-sm-pull-4{right:33.33333333%}.col-sm-pull-3{right:25%}.col-sm-pull-2{right:16.66666667%}.col-sm-pull-1{right:8.33333333%}.col-sm-pull-0{right:auto}.col-sm-push-12{left:100%}.col-sm-push-11{left:91.66666667%}.col-sm-push-10{left:83.33333333%}.col-sm-push-9{left:75%}.col-sm-push-8{left:66.66666667%}.col-sm-push-7{left:58.33333333%}.col-sm-push-6{left:50%}.col-sm-push-5{left:41.66666667%}.col-sm-push-4{left:33.33333333%}.col-sm-push-3{left:25%}.col-sm-push-2{left:16.66666667%}.col-sm-push-1{left:8.33333333%}.col-sm-push-0{left:auto}.col-sm-offset-12{margin-left:100%}.col-sm-offset-11{margin-left:91.66666667%}.col-sm-offset-10{margin-left:83.33333333%}.col-sm-offset-9{margin-left:75%}.col-sm-offset-8{margin-left:66.66666667%}.col-sm-offset-7{margin-left:58.33333333%}.col-sm-offset-6{margin-left:50%}.col-sm-offset-5{margin-left:41.66666667%}.col-sm-offset-4{margin-left:33.33333333%}.col-sm-offset-3{margin-left:25%}.col-sm-offset-2{margin-left:16.66666667%}.col-sm-offset-1{margin-left:8.33333333%}.col-sm-offset-0{margin-left:0}}@media(min-width:992px){.col-md-1,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9,.col-md-10,.col-md-11,.col-md-12{float:left}.col-md-12{width:100%}.col-md-11{width:91.66666667%}.col-md-10{width:83.33333333%}.col-md-9{width:75%}.col-md-8{width:66.66666667%}.col-md-7{width:58.33333333%}.col-md-6{width:50%}.col-md-5{width:41.66666667%}.col-md-4{width:33.33333333%}.col-md-3{width:25%}.col-md-2{width:16.66666667%}.col-md-1{width:8.33333333%}.col-md-pull-12{right:100%}.col-md-pull-11{right:91.66666667%}.col-md-pull-10{right:83.33333333%}.col-md-pull-9{right:75%}.col-md-pull-8{right:66.66666667%}.col-md-pull-7{right:58.33333333%}.col-md-pull-6{right:50%}.col-md-pull-5{right:41.66666667%}.col-md-pull-4{right:33.33333333%}.col-md-pull-3{right:25%}.col-md-pull-2{right:16.66666667%}.col-md-pull-1{right:8.33333333%}.col-md-pull-0{right:auto}.col-md-push-12{left:100%}.col-md-push-11{left:91.66666667%}.col-md-push-10{left:83.33333333%}.col-md-push-9{left:75%}.col-md-push-8{left:66.66666667%}.col-md-push-7{left:58.33333333%}.col-md-push-6{left:50%}.col-md-push-5{left:41.66666667%}.col-md-push-4{left:33.33333333%}.col-md-push-3{left:25%}.col-md-push-2{left:16.66666667%}.col-md-push-1{left:8.33333333%}.col-md-push-0{left:auto}.col-md-offset-12{margin-left:100%}.col-md-offset-11{margin-left:91.66666667%}.col-md-offset-10{margin-left:83.33333333%}.col-md-offset-9{margin-left:75%}.col-md-offset-8{margin-left:66.66666667%}.col-md-offset-7{margin-left:58.33333333%}.col-md-offset-6{margin-left:50%}.col-md-offset-5{margin-left:41.66666667%}.col-md-offset-4{margin-left:33.33333333%}.col-md-offset-3{margin-left:25%}.col-md-offset-2{margin-left:16.66666667%}.col-md-offset-1{margin-left:8.33333333%}.col-md-offset-0{margin-left:0}}@media(min-width:1200px){.col-lg-1,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9,.col-lg-10,.col-lg-11,.col-lg-12{float:left}.col-lg-12{width:100%}.col-lg-11{width:91.66666667%}.col-lg-10{width:83.33333333%}.col-lg-9{width:75%}.col-lg-8{width:66.66666667%}.col-lg-7{width:58.33333333%}.col-lg-6{width:50%}.col-lg-5{width:41.66666667%}.col-lg-4{width:33.33333333%}.col-lg-3{width:25%}.col-lg-2{width:16.66666667%}.col-lg-1{width:8.33333333%}.col-lg-pull-12{right:100%}.col-lg-pull-11{right:91.66666667%}.col-lg-pull-10{right:83.33333333%}.col-lg-pull-9{right:75%}.col-lg-pull-8{right:66.66666667%}.col-lg-pull-7{right:58.33333333%}.col-lg-pull-6{right:50%}.col-lg-pull-5{right:41.66666667%}.col-lg-pull-4{right:33.33333333%}.col-lg-pull-3{right:25%}.col-lg-pull-2{right:16.66666667%}.col-lg-pull-1{right:8.33333333%}.col-lg-pull-0{right:auto}.col-lg-push-12{left:100%}.col-lg-push-11{left:91.66666667%}.col-lg-push-10{left:83.33333333%}.col-lg-push-9{left:75%}.col-lg-push-8{left:66.66666667%}.col-lg-push-7{left:58.33333333%}.col-lg-push-6{left:50%}.col-lg-push-5{left:41.66666667%}.col-lg-push-4{left:33.33333333%}.col-lg-push-3{left:25%}.col-lg-push-2{left:16.66666667%}.col-lg-push-1{left:8.33333333%}.col-lg-push-0{left:auto}.col-lg-offset-12{margin-left:100%}.col-lg-offset-11{margin-left:91.66666667%}.col-lg-offset-10{margin-left:83.33333333%}.col-lg-offset-9{margin-left:75%}.col-lg-offset-8{margin-left:66.66666667%}.col-lg-offset-7{margin-left:58.33333333%}.col-lg-offset-6{margin-left:50%}.col-lg-offset-5{margin-left:41.66666667%}.col-lg-offset-4{margin-left:33.33333333%}.col-lg-offset-3{margin-left:25%}.col-lg-offset-2{margin-left:16.66666667%}.col-lg-offset-1{margin-left:8.33333333%}.col-lg-offset-0{margin-left:0}}@media(max-width:1199px){.tinvwl-table .row>[class^="col-md-"]+[class^="col-md-"],.tinvwl-table .row>[class^="col-lg-"]+[class^="col-lg-"]{padding-top:30px}.tinvwl-table .form-group>[class^="col-md-"]+[class^="col-md-"],.tinvwl-table .form-group>[class^="col-lg-"]+[class^="col-lg-"]{padding-top:30px}}.fade{opacity:0;-webkit-transition:opacity .15s linear;-o-transition:opacity .15s linear;transition:opacity .15s linear}.fade.in{opacity:1}.form-horizontal .form-group{margin-right:-15px;margin-left:-15px}.form-group{margin-bottom:23px}.form-control{display:block;width:100%}label.one-line{display:inline-block;margin-bottom:0;margin-right:10px}.control-label label{display:block;margin-bottom:10px}.form-horizontal .control-label label{padding-top:9px;margin-bottom:0}@media(min-width:1200px){.tinvwl-table .tinvwl-header-row label{margin-bottom:0}.tinvwl-table .tinvwl-header-row .form-group{margin-top:-7px;margin-bottom:13px}}@media(max-width:1199px){.form-horizontal .control-label label{margin-bottom:10px}.tinvwl-table .tinvwl-header-row label{padding-top:3px}}.tinvwl-input-group-btn{margin-top:13px}.tinvwl-input-group{position:relative;display:table;border-collapse:separate}.tinvwl-input-group-addon,.tinvwl-input-group-btn{width:1%;white-space:nowrap;vertical-align:middle}.tinvwl-input-group-btn{margin-top:0;position:relative;white-space:nowrap}.tinvwl-input-group-btn .tinvwl-btn{margin-left:10px}.tinvwl-input-group-btn>.btn{position:relative}.tinvwl-input-group .form-control,.tinvwl-input-group-addon,.tinvwl-input-group-btn{display:table-cell}.tinvwl-input-group .form-control{position:relative;z-index:2;float:left;width:100%;margin-bottom:0}@media only screen and (max-width:1199px){.tinvwl-input-group:not(.tinvwl-no-full){display:block}.tinvwl-input-group:not(.tinvwl-no-full) .form-control{float:none}.tinvwl-input-group:not(.tinvwl-no-full) .form-control+.tinvwl-input-group-btn{padding-top:10px;padding-left:0}.tinvwl-input-group:not(.tinvwl-no-full) .tinvwl-input-group-addon,.tinvwl-input-group:not(.tinvwl-no-full) .tinvwl-input-group-btn,.tinvwl-input-group:not(.tinvwl-no-full) .form-control{display:block}.tinvwl-input-group:not(.tinvwl-no-full) .tinvwl-input-group-addon,.tinvwl-input-group:not(.tinvwl-no-full) .tinvwl-input-group-btn,.tinvwl-input-group:not(.tinvwl-no-full) .tinvwl-input-group-addon>input,.tinvwl-input-group:not(.tinvwl-no-full) .tinvwl-input-group-addon>button,.tinvwl-input-group:not(.tinvwl-no-full) .tinvwl-input-group-btn>input,.tinvwl-input-group:not(.tinvwl-no-full) .tinvwl-input-group-btn>button{margin-left:0}}.text-right{text-align:right}@media(max-width:1199px){.text-right{text-align:left}}@media(min-width:768px){.form-inline .form-group{display:inline-block;margin-bottom:0;vertical-align:middle}.form-inline .form-control{display:inline-block;width:auto;vertical-align:middle}.form-inline .form-control-static{display:inline-block}.form-inline .tinvwl-input-group{display:inline-table;vertical-align:middle}.form-inline .tinvwl-input-group .tinvwl-input-group-addon,.form-inline .tinvwl-input-group .tinvwl-input-group-btn,.form-inline .tinvwl-input-group .form-control{width:auto}.form-inline .tinvwl-input-group>.form-control{width:100%}.form-inline .control-label label{margin-bottom:0;vertical-align:middle}.form-inline .radio,.form-inline .checkbox{display:inline-block;margin-top:0;margin-bottom:0;vertical-align:middle}.form-inline .radio label,.form-inline .checkbox label{padding-left:0}.form-inline .radio input[type="radio"],.form-inline .checkbox input[type="checkbox"]{position:relative;margin-left:0}.form-inline .has-feedback .form-control-feedback{top:0}}.logo_heart{background:url('../img/logo_heart.png') no-repeat center;display:inline-block;background-size:54px 54px;width:54px;height:54px}.admin-rescue{background:url('../img/admin-rescue.png') no-repeat center;display:inline-block;background-size:61px 60px;width:61px;height:60px}.admin-update{background:url('../img/admin-update.png') no-repeat center;display:inline-block;background-size:61px 60px;width:61px;height:60px}.wizard_logo{background:url('../img/wizard_logo.png') no-repeat center;background-size:54px 54px;width:54px;height:54px;display:block;margin:10px auto}.wizard_setup{background:url('../img/wizard_setup.png') no-repeat center;display:inline-block;background-size:143px 144px;width:143px;height:144px}.premium_adv{background:url('../img/premium_adv.png') no-repeat center;display:block;margin:0 auto;background-size:365px 216px;width:365px;height:216px}.tinvwl-content select{background-size:13px 8px}.tinvwl-select+.tinvwl-caret span{background-size:13px 18px}.tinvwl-content .tablenav .tablenav-pages .pagination-links .prev-page .tinvwl-chevron{background-size:20px 30px}.tinvwl-content .tablenav .tablenav-pages .pagination-links .prev-page:hover .tinvwl-chevron{background-size:20px 30px}.tinvwl-content .tablenav .tablenav-pages .pagination-links .next-page .tinvwl-chevron{background-size:20px 30px}.tinvwl-content .tablenav .tablenav-pages .pagination-links .next-page:hover .tinvwl-chevron{background-size:20px 30px}.tinvwl-color-picker .tinvwl-eyedropper{background-size:28px 29px}@media only screen and (-webkit-min-device-pixel-ratio:1.5),not all,not all,not all{.tinvwl-content select{background-image:url('../img/select_caret@2x.png')}.tinvwl-select+.tinvwl-caret span{background-image:url('../img/chevron_down@2x.png')}.tinvwl-content .tablenav .tablenav-pages .pagination-links .prev-page .tinvwl-chevron{background-image:url('../img/chevron_icon@2x.png')}.tinvwl-content .tablenav .tablenav-pages .pagination-links .prev-page:hover .tinvwl-chevron{background-image:url('../img/chevron_icon@2x.png')}.tinvwl-content .tablenav .tablenav-pages .pagination-links .next-page .tinvwl-chevron{background-image:url('../img/chevron_icon@2x.png')}.tinvwl-content .tablenav .tablenav-pages .pagination-links .next-page:hover .tinvwl-chevron{background-image:url('../img/chevron_icon@2x.png')}.tinvwl-color-picker .tinvwl-eyedropper{background-image:url('../img/color_icon@2x.png')}.logo_heart{background-image:url('../img/logo_heart@2x.png')}.admin-rescue{background-image:url('../img/admin-rescue@2x.png')}.admin-update{background-image:url('../img/admin-update@2x.png')}.wizard_logo{background-image:url('../img/wizard_logo@2x.png')}.wizard_setup{background-image:url('../img/wizard_setup@2x.png')}}#style_options .tinvwl-table tbody tr .tinvwl-inner h2{font-size:18px;color:#291c09;text-transform:capitalize;font-weight:600;margin-bottom:21px;padding:14px 0}
asset/css/public.css CHANGED
@@ -1,1947 +1,1955 @@
1
- /*
2
- To change this license header, choose License Headers in Project Properties.
3
- To change this template file, choose Tools | Templates
4
- and open the template in the editor.
5
- */
6
- /*
7
- Created on : 7/19/2017
8
- Author : TemplateInvaders
9
- */
10
-
11
- .tinv-wishlist,
12
- .tinv-wishlist button,
13
- .tinv-wishlist input,
14
- .tinv-wishlist select,
15
- .tinv-wishlist textarea {
16
- }
17
-
18
- .tinv-wishlist *,
19
- .tinvwl-wishlist *:before,
20
- .tinvwl-wishlist *:after {
21
- -webkit-box-sizing: border-box;
22
- -moz-box-sizing: border-box;
23
- box-sizing: border-box;
24
- }
25
-
26
- .tinv-wishlist select {
27
- /*padding: 8.5px 10px;*/
28
- width: 140px;
29
- }
30
-
31
- .tinv-wishlist p:last-child {
32
- margin-bottom: 0;
33
- }
34
-
35
- .tinv-wishlist ul {
36
- list-style: none;
37
- margin: 0;
38
- padding: 0;
39
- }
40
-
41
- .tinv-wishlist table,
42
- .tinv-wishlist form {
43
- margin-bottom: 0;
44
- }
45
-
46
- .tinv-wishlist a {
47
- /*box-shadow: none !important;*/
48
- }
49
-
50
- .tinv-wishlist button,
51
- .tinv-wishlist input[type="button"],
52
- .tinv-wishlist input[type="reset"],
53
- .tinv-wishlist input[type="submit"] {
54
- /*text-align: center;
55
- font-weight: normal;
56
- letter-spacing: 0;
57
- line-height: 1;
58
- text-transform: none;
59
- padding: 11.5px 19px;*/
60
- }
61
-
62
- .tinv-wishlist .button,
63
- .tinv-wishlist button,
64
- .tinv-wishlist input[type=button],
65
- .tinv-wishlist input[type=reset],
66
- .tinv-wishlist input[type=submit] {
67
- /*box-shadow: none;*/
68
- }
69
-
70
- .tinv-wishlist input[type="text"],
71
- .tinv-wishlist input[type="email"],
72
- .tinv-wishlist input[type="url"],
73
- .tinv-wishlist input[type="password"],
74
- .tinv-wishlist input[type="search"],
75
- .tinv-wishlist input[type="tel"],
76
- .tinv-wishlist input[type="number"],
77
- .tinv-wishlist textarea {
78
- /*padding: 9px 15px;*/
79
- }
80
-
81
- .woocommerce.tinv-wishlist #respond input#submit,
82
- .woocommerce.tinv-wishlist a.button,
83
- .woocommerce.tinv-wishlist button.button,
84
- .woocommerce.tinv-wishlist input.button {
85
- /*text-align: center;
86
- font-weight: normal;
87
- letter-spacing: 0;
88
- line-height: 1;
89
- text-transform: none;
90
- padding: 11.5px 17px;*/
91
- }
92
-
93
- .woocommerce.tinv-wishlist #respond input#submit.alt,
94
- .woocommerce.tinv-wishlist a.button.alt,
95
- .woocommerce.tinv-wishlist button.button.alt,
96
- .woocommerce.tinv-wishlist input.button.alt {
97
- text-align: center;
98
- /*padding: 11.5px 20px;*/
99
- }
100
-
101
- .woocommerce.tinv-wishlist .tinvwl-my-wishlists {
102
- /*padding-left: 17px;
103
- padding-right: 17px;*/
104
- }
105
-
106
- .woocommerce.tinv-wishlist .tinvwl-continue-shop {
107
- /*padding-left: 17px;
108
- padding-right: 17px;*/
109
- }
110
-
111
- .tinv-wishlist button i,
112
- .tinv-wishlist input[type="button"] i,
113
- .tinv-wishlist input[type="reset"] i,
114
- .tinv-wishlist input[type="submit"] i,
115
- .tinv-wishlist .button i {
116
- /*font-size: 14px;*/
117
- margin-right: 14px;
118
- }
119
-
120
- .tinv-wishlist .navigation-button a i {
121
- margin-right: 14px;
122
- /*vertical-align: middle;*/
123
- }
124
-
125
- .tinv-wishlist a.tinvwl-my-wishlists i {
126
- margin-right: 17px;
127
- }
128
-
129
- .tinv-wishlist .tinvwl-estimate-wrap a i {
130
- margin-right: 18px;
131
- }
132
-
133
- .tinv-wishlist a.tinv-close-modal i {
134
- margin-right: 0;
135
- }
136
-
137
- .tinv-wishlist a i.fa-chevron-left,
138
- .tinv-wishlist a i.fa-chevron-right {
139
- /*font-size: 10px;*/
140
- }
141
-
142
- .tinv-wishlist .button i.fa-chevron-left,
143
- .tinv-wishlist .button i.fa-chevron-right {
144
- /*vertical-align: middle;*/
145
- }
146
-
147
- .tinv-wishlist .tinvwl-estimate-wrap a i.fa-envelope-o {
148
- /*font-size: 12px;*/
149
- }
150
-
151
- a.wishlist_products_counter {
152
- text-decoration: none;
153
- }
154
-
155
- .tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-heart:before,
156
- .tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-heart-plus:before,
157
- .woocommerce ul.products li.product a.button.tinvwl-icon-heart.tinvwl_add_to_wishlist_button:before,
158
- .woocommerce-page ul.products li.product a.button.tinvwl-icon-heart.tinvwl_add_to_wishlist_button:before,
159
- .woocommerce ul.products li.product a.button.tinvwl-icon-heart-plus.tinvwl_add_to_wishlist_button:before,
160
- .woocommerce-page ul.products li.product a.button.tinvwl-icon-heart-plus.tinvwl_add_to_wishlist_button:before,
161
- a.wishlist_products_counter.top_wishlist-heart-plus:before,
162
- a.wishlist_products_counter.top_wishlist-heart:before {
163
- content: '';
164
- display: inline-block;
165
- margin-right: 10px;
166
- background-image: url(../img/add_to_wishlist.png);
167
- background-repeat: repeat;
168
- }
169
-
170
- .tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-heart.no-txt,
171
- .tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-heart-plus.no-txt,
172
- a.wishlist_products_counter.top_wishlist-heart-plus.no-txt {
173
- position: relative;
174
- width: 36px;
175
- height: 36px;
176
- vertical-align: bottom;
177
- }
178
-
179
- .tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-heart.no-txt:before,
180
- .tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-heart-plus.no-txt:before {
181
- position: absolute;
182
- top: 50%;
183
- left: 50%;
184
- margin-right: 0 !important;
185
- }
186
-
187
- .tinv-wishlist .button.tinvwl_add_to_wishlist_button.tinvwl-icon-heart.no-txt,
188
- .tinv-wishlist .button.tinvwl_add_to_wishlist_button.tinvwl-icon-heart-plus.no-txt {
189
- padding-left: 1em;
190
- vertical-align: bottom;
191
- }
192
-
193
- .tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-heart.icon-black:before,
194
- a.wishlist_products_counter.top_wishlist-heart.top_wishlist-black:before {
195
- background-position: 0 0;
196
- width: 13px;
197
- height: 11px;
198
- }
199
-
200
- .tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-heart.no-txt:before,
201
- a.wishlist_products_counter.top_wishlist-heart.no-txt:before {
202
- margin-top: -5px;
203
- margin-left: -6px;
204
- }
205
-
206
- .tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-heart.tinvwl-product-in-list.icon-white:before,
207
- a.wishlist_products_counter.top_wishlist-heart.top_wishlist-white:before {
208
- background-position: 0 13px;
209
- width: 13px;
210
- height: 12px;
211
- }
212
-
213
- .tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-heart.tinvwl-product-in-list.icon-black:before {
214
- background-position: 0 -12px;
215
- width: 13px;
216
- height: 12px;
217
- }
218
-
219
- .tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-heart.tinvwl-product-in-list.no-txt:before {
220
- margin-top: -6px;
221
- margin-left: -6px;
222
- }
223
-
224
- .tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-heart-plus.icon-black:before,
225
- a.wishlist_products_counter.top_wishlist-heart-plus.top_wishlist-black:before {
226
- background-position: 15px 0;
227
- width: 14px;
228
- height: 12px;
229
- }
230
-
231
- .tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-heart-plus.icon-white:before,
232
- a.wishlist_products_counter.top_wishlist-heart-plus.top_wishlist-white:before {
233
- background-position: 15px 25px;
234
- width: 14px;
235
- height: 12px;
236
- }
237
-
238
- .tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-heart-plus.no-txt:before {
239
- margin-top: -5px;
240
- margin-left: -7px;
241
- }
242
-
243
- .tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-heart.icon-white:before,
244
- a.wishlist_products_counter.top_wishlist-heart.top_wishlist-white:before {
245
- background-position: 0 -25px;
246
- width: 13px;
247
- height: 11px;
248
- }
249
-
250
- .tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-heart-plus.tinvwl-product-in-list.icon-black:before {
251
- background-position: 15px -11px;
252
- width: 15px;
253
- height: 14px;
254
- }
255
-
256
- .tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-heart-plus.tinvwl-product-in-list.icon-white:before {
257
- background-position: 15px 14px;
258
- width: 15px;
259
- height: 14px;
260
- }
261
-
262
- .tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-heart-plus.tinvwl-product-in-list.no-txt:before {
263
- margin-top: -7px;
264
- margin-left: -7px;
265
- }
266
-
267
- .tinv-wishlist.tinvwl-before-add-to-cart .tinvwl_add_to_wishlist_button {
268
- margin-bottom: 15px;
269
- }
270
-
271
- .woocommerce ul.products li.product .add_to_cart_button.button {
272
- /* float: left;*/
273
- }
274
-
275
- .tinv-wishlist.tinvwl-before-add-to-cart .tinvwl_add_to_wishlist_button.no-txt {
276
- float: left;
277
- margin-right: 10px;
278
- margin-bottom: 0;
279
- }
280
-
281
- .tinv-wishlist.tinvwl-after-add-to-cart .tinvwl_add_to_wishlist_button {
282
- margin-top: 15px;
283
- }
284
-
285
- .tinv-wishlist.tinvwl-after-add-to-cart .tinvwl_add_to_wishlist_button.no-txt {
286
- margin-left: 10px;
287
- }
288
-
289
- .single-product .tinv-wishlist.tinvwl-after-add-to-cart .tinvwl_add_to_wishlist_button.no-txt {
290
- margin-top: 0;
291
- }
292
-
293
- .tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-custom.no-txt,
294
- a.wishlist_products_counter.top_wishlist-custom.no-txt {
295
- padding: 10px 11px;
296
- line-height: 1;
297
- }
298
-
299
- .tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-custom img,
300
- a.wishlist_products_counter.top_wishlist-custom img {
301
- display: inline-block !important;
302
- vertical-align: baseline;
303
- width: auto !important;
304
- max-width: 16px;
305
- max-height: 16px;
306
- margin-bottom: 0;
307
- margin: 0 6px 0 0 !important;
308
- }
309
-
310
- .tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-custom.no-txt img,
311
- a.wishlist_products_counter.top_wishlist-custom.no-txt img {
312
- margin-right: 0 !important;
313
- }
314
-
315
- .single-product div.product form.cart .button.tinvwl_add_to_wishlist_button,
316
- div.product form.cart .tinvwl_add_to_wishlist_button {
317
- float: none;
318
- }
319
-
320
- ul.products li.product .tinvwl_add_to_wishlist_button {
321
- margin-top: 1em;
322
- }
323
-
324
- .tinvwl_add_to_wishlist_button {
325
- display: inline-block;
326
- cursor: pointer;
327
- }
328
-
329
- .tinvwl_add_to_wishlist_button.button {
330
- }
331
-
332
- .tinv-wishlist.woocommerce .stock.in-stock:before {
333
- content: none;
334
- }
335
-
336
- .tinv-wraper.tinv-wishlist {
337
- font-size: 100%;
338
- }
339
-
340
- /* Create List */
341
-
342
- .tinv-create-list form {
343
- /*padding: 30px 30px 39px;*/
344
- }
345
-
346
- .tinv-create-list li input[type="radio"] {
347
- margin-right: 10px;
348
- }
349
-
350
- .tinv-create-list li + li {
351
- margin-top: 15px;
352
- }
353
-
354
- .tinv-create-list .input-group + ul {
355
- margin-top: 25px;
356
- }
357
-
358
- /* Search */
359
-
360
- .tinv-search-list {
361
- margin-bottom: 36px;
362
- }
363
-
364
- /* Header */
365
-
366
- .tinv-wishlist .tinv-header {
367
- margin-bottom: 30px;
368
- }
369
-
370
- /* Manage List */
371
-
372
- .tinv-wishlist table {
373
- position: relative;
374
- table-layout: auto;
375
- margin-bottom: 30px;
376
- z-index: 2;
377
- }
378
-
379
- .tinv-wishlist table.tinvwl-table-manage-list {
380
- margin-bottom: 27px;
381
- width: 100%;
382
- }
383
-
384
- .tinv-wishlist table input[type="checkbox"] {
385
- margin-right: 0;
386
- }
387
-
388
- .tinv-wishlist table th {
389
- padding: 1em;
390
- vertical-align: middle;
391
- }
392
-
393
- /*.tinv-wishlist table.tinvwl-table-manage-lists.tinvwl-public th {
394
- padding: 22px 15px;
395
- }
396
-
397
- .tinv-wishlist table.tinvwl-table-manage-list th {
398
- padding: 19px 12px;
399
- }*/
400
-
401
- .tinv-wishlist table td {
402
- padding: 1em;
403
- vertical-align: middle;
404
- }
405
-
406
- /*.tinv-wishlist table.tinvwl-table-manage-lists.tinvwl-public td {
407
- padding: 36px 15px;
408
- }
409
-
410
- .tinv-wishlist table.tinvwl-table-manage-list td {
411
- padding: 26px 12px;
412
- }*/
413
-
414
- .tinv-wishlist .tinvwl-table-manage-list .product-cb {
415
- /*padding-left: 10px;
416
- padding-right: 10px;*/
417
- width: 35px;
418
- text-align: center;
419
- }
420
-
421
- .tinv-wishlist .tinvwl-table-manage-list .product-remove {
422
- /*padding-left: 10px;
423
- padding-right: 10px;*/
424
- width: 46px;
425
- text-align: center;
426
- }
427
-
428
- .tinv-wishlist .product-remove button {
429
- display: block;
430
- margin: 0 auto;
431
- width: 27px;
432
- height: 27px;
433
- text-indent: -9999px;
434
- -webkit-border-radius: 100%;
435
- -moz-border-radius: 100%;
436
- border-radius: 100%;
437
- padding: 0;
438
- box-shadow: none;
439
- border-bottom: 0;
440
- border: none;
441
- background-image: url(../img/icon_delete.png);
442
- background-position: center;
443
- background-repeat: no-repeat;
444
- background-color: #f7f7f7;
445
- }
446
-
447
- .tinv-wishlist .product-thumbnail {
448
- min-width: 100px;
449
- width: 100px;
450
- }
451
-
452
- .tinv-wishlist .product-thumbnail .wp-post-image {
453
- margin-bottom: 0;
454
- }
455
-
456
- /*.tinv-wishlist td.product-name {
457
- line-height: 20px;
458
- }
459
-
460
- .tinv-wishlist td.product-name a {
461
- line-height: 1.14285714;
462
- }*/
463
-
464
- .tinv-wishlist td.product-name a + .variation {
465
- margin-top: 2px;
466
- }
467
-
468
- /*.tinv-wishlist td.product-price {
469
- line-height: 24px;
470
- }*/
471
-
472
- /*.tinv-wishlist .tinvwl-table-manage-list td.product-stock {
473
- padding-left: 9px;
474
- padding-right: 9px;
475
- }*/
476
-
477
- .tinv-wishlist .product-stock i {
478
- /*font-size: 12px;*/
479
- margin-right: 15px;
480
- }
481
-
482
- .tinv-wishlist .product-stock p {
483
- display: table;
484
- }
485
-
486
- .tinv-wishlist .product-stock span {
487
- display: table-cell;
488
- vertical-align: middle;
489
- }
490
-
491
- /*.tinv-wishlist .tinvwl-table-manage-list td.product-quantity {
492
- padding-left: 9px;
493
- padding-right: 9px;
494
- }*/
495
-
496
- .tinv-wishlist.woocommerce .product-quantity {
497
- width: 80px;
498
- text-align: center;
499
- }
500
-
501
- .tinv-wishlist.woocommerce table .quantity .qty {
502
- max-width: 100%;
503
- width: 62px;
504
- /*padding: 10px 12px;*/
505
- text-align: left;
506
- }
507
-
508
- .tinv-wishlist .product-action {
509
- width: 135px;
510
- text-align: center;
511
- }
512
-
513
- .tinv-wishlist table.tinvwl-table-manage-list .product-action {
514
- /*padding-left: 11px;
515
- padding-right: 11px;*/
516
- }
517
-
518
- .tinv-wishlist .product-action .button {
519
- width: 100%;
520
- }
521
-
522
- .tinv-wishlist .product-action > .button > i {
523
- display: none;
524
- }
525
-
526
- .tinv-wishlist .product-action .tinvwl_move_product_button {
527
- margin-top: 5px;
528
- }
529
-
530
- .tinv-wishlist table thead th .tinvwl-mobile,
531
- .tinv-wishlist .tinvwl-table-manage-list .product-action button[name="tinvwl-remove"] {
532
- display: none;
533
- }
534
-
535
- .tinv-wishlist .tinvwl-table-manage-list .product-action > button[name="tinvwl-remove"] > i {
536
- /*font-size: 12px;*/
537
- margin-right: 0;
538
- }
539
-
540
- .tinv-wishlist .tinvwl-table-manage-list .product-action > .tinvwl_move_product_button > i {
541
- /*font-size: 12px;*/
542
- }
543
-
544
- @media only screen and (max-width: 1024px) {
545
- .tinv-wishlist .tinvwl-table-manage-lists:not(.tinvwl-public) {
546
- margin-top: 0;
547
- }
548
-
549
- .tinv-wishlist .tinvwl-table-manage-list .product-remove {
550
- display: none;
551
- }
552
-
553
- .tinv-wishlist .tinvwl-table-manage-list .product-action button[name="tinvwl-remove"] {
554
- display: inline-block;
555
- margin-top: 5px;
556
- }
557
-
558
- .tinv-wishlist .product-action {
559
- width: 60px;
560
- }
561
- }
562
-
563
- @media only screen and (max-width: 1024px) and (min-width: 641px) {
564
- .tinv-wishlist .tinvwl-table-manage-list td.product-stock p {
565
- display: block;
566
- text-align: center;
567
- }
568
-
569
- .tinv-wishlist .product-stock span {
570
- display: block;
571
- }
572
-
573
- .tinv-wishlist .tinvwl-table-manage-list td.product-stock i {
574
- margin-right: 0;
575
- }
576
-
577
- .tinv-wishlist .tinvwl-table-manage-list td.product-stock .tinvwl-txt {
578
- display: none;
579
- }
580
-
581
- .tinv-wishlist .product-thumbnail {
582
- max-width: 76px;
583
- width: 76px;
584
- }
585
-
586
- /*.tinv-wishlist table.tinvwl-table-manage-list td.product-thumbnail {
587
- padding-left: 10px;
588
- padding-right: 10px;
589
- }*/
590
- /*.tinv-wishlist .product-action .button {
591
- padding: 11.5px 12px !important;
592
- }*/
593
- .tinv-wishlist .product-action .button > i {
594
- display: inline-block;
595
- margin-right: 0;
596
- }
597
-
598
- .tinv-wishlist .product-action .button .tinvwl-txt {
599
- display: none;
600
- }
601
- }
602
-
603
- @media only screen and (max-width: 640px) {
604
- /*.tinv-wishlist table.tinvwl-table-manage-list th {
605
- padding-top: 26px;
606
- padding-bottom: 26px;
607
- }*/
608
- .tinv-wishlist table.tinvwl-table-manage-list thead th:not(.product-name),
609
- .tinv-wishlist table.tinvwl-table-manage-list tbody td.product-remove,
610
- .tinv-wishlist table.tinvwl-table-manage-lists thead th:not(.wishlist-name),
611
- .tinv-wishlist thead th .tinvwl-full {
612
- display: none;
613
- }
614
-
615
- .tinv-wishlist table.tinvwl-table-manage-list thead th.product-name,
616
- .tinv-wishlist table.tinvwl-table-manage-lists thead th.wishlist-name {
617
- display: block;
618
- width: 100%;
619
- text-align: center;
620
- }
621
-
622
- .tinv-wishlist table thead th .tinvwl-mobile {
623
- display: block;
624
- }
625
-
626
- .tinv-wishlist table.tinvwl-table-manage-list tbody td,
627
- .tinv-wishlist table.tinvwl-table-manage-lists tbody td,
628
- .tinv-wishlist table.tinvwl-table-manage-lists.tinvwl-public tbody td {
629
- display: block;
630
- width: 100% !important;
631
- /*padding: 0 12px 12px;*/
632
- text-align: center;
633
- }
634
-
635
- .tinv-wishlist table.tinvwl-table-manage-list tbody td:not(:last-child),
636
- .tinv-wishlist table.tinvwl-table-manage-lists tbody td:not(:last-child),
637
- .tinv-wishlist table.tinvwl-table-manage-lists.tinvwl-public tbody td:not(:last-child) {
638
- border-bottom: 0;
639
- }
640
-
641
- /*.tinv-wishlist table.tinvwl-table-manage-list tbody td:first-child,
642
- .tinv-wishlist table.tinvwl-table-manage-lists tbody td:first-child {
643
- padding-top: 20px;
644
- }
645
-
646
- .tinv-wishlist table.tinvwl-table-manage-list td,
647
- .tinv-wishlist table.tinvwl-table-manage-lists td,
648
- .tinv-wishlist table.tinvwl-table-manage-lists.tinvwl-public td {
649
- padding: 12px;
650
- }
651
-
652
- .tinv-wishlist .tinvwl-table-manage-list td.product-cb,
653
- .tinv-wishlist .tinvwl-table-manage-lists td.wishlist-cb {
654
- padding-bottom: 20px;
655
- }
656
-
657
- .tinv-wishlist .tinvwl-table-manage-list td.product-thumbnail {
658
- padding-top: 20px;
659
- padding-bottom: 14px;
660
- }
661
-
662
- .tinv-wishlist .tinvwl-table-manage-list td.product-cb + td.product-remove + td.product-thumbnail {
663
- padding-top: 0;
664
- }
665
-
666
- .tinv-wishlist .tinvwl-table-manage-list td.product-name {
667
- padding-bottom: 6px;
668
- }
669
-
670
- .tinv-wishlist .tinvwl-table-manage-list td.product-price {
671
- padding-bottom: 23px;
672
- }
673
-
674
- .tinv-wishlist .tinvwl-table-manage-list td.product-date {
675
- padding-bottom: 16px;
676
- }
677
-
678
- .tinv-wishlist .tinvwl-table-manage-list td.product-stock {
679
- padding-bottom: 24px;
680
- }
681
-
682
- .tinv-wishlist .tinvwl-table-manage-list td.product-quantity {
683
- padding: 0 12px 10px;
684
- }*/
685
- .tinv-wishlist .product-thumbnail img,
686
- .tinv-wishlist .product-stock p {
687
- margin: 0 auto;
688
- }
689
-
690
- .tinv-wishlist .product-thumbnail img {
691
- max-width: 80px;
692
- }
693
-
694
- .tinv-wishlist.woocommerce table .quantity .qty {
695
- text-align: center;
696
- width: 100%;
697
- }
698
-
699
- .tinv-wishlist .product-action .tinvwl_move_product_button {
700
- margin-top: 10px;
701
- }
702
-
703
- .tinv-wishlist .tinvwl-table-manage-list .product-action button[name="tinvwl-remove"] {
704
- margin-top: 10px;
705
- text-indent: -9999px;
706
- background-image: url(../img/icon_delete.png);
707
- background-position: center;
708
- background-repeat: no-repeat;
709
- }
710
-
711
- .tinv-wishlist .tinvwl-table-manage-list .product-action button[name="tinvwl-remove"] > i {
712
- display: inline-block;
713
- }
714
-
715
- .tinv-wishlist table.tinvwl-table-manage-list tfoot td {
716
- display: block;
717
- width: 100%;
718
- }
719
-
720
- .tinv-wishlist table.tinvwl-table-manage-lists .wishlist-action button[value="manage_remove"] {
721
- width: 100%;
722
- }
723
-
724
- .tinv-wishlist table.tinvwl-table-manage-lists .wishlist-name .tinvwl-rename-button {
725
- float: none;
726
- }
727
- }
728
-
729
- /* Manage Lists */
730
-
731
- .tinv-wishlist .wishlist-cb {
732
- /*padding-left: 10px;
733
- padding-right: 10px;*/
734
- width: 33px;
735
- text-align: center;
736
- }
737
-
738
- .tinv-wishlist .wishlist-name .tinvwl-rename-input input {
739
- width: 100%;
740
- }
741
-
742
- .tinv-wishlist .wishlist-name .tinvwl-rename-button {
743
- float: right;
744
- }
745
-
746
- .tinv-wishlist .wishlist-name .tinvwl-rename-button > i {
747
- margin-right: 10px;
748
- }
749
-
750
- .tinv-wishlist table:not(.tinvwl-public) .wishlist-date,
751
- .tinv-wishlist .wishlist-privacy {
752
- width: 18%;
753
- }
754
-
755
- /*.tinv-wishlist .wishlist-privacy {
756
- padding-left: 15px;
757
- padding-right: 15px;
758
- }*/
759
-
760
- .tinv-wishlist .wishlist-privacy select {
761
- width: 100%;
762
- }
763
-
764
- .tinv-wishlist .wishlist-name {
765
- width: 45%;
766
- }
767
-
768
- .tinv-wishlist .wishlist-action {
769
- /*padding-left: 10px;
770
- padding-right: 10px;*/
771
- width: 120px;
772
- text-align: center;
773
- }
774
-
775
- /*.tinv-wishlist .wishlist-action button[value="manage_remove"] {
776
- background-image: url(../img/icon_delete.png);
777
- background-repeat: no-repeat;
778
- background-position: 14px 12px;
779
- padding-left: 39px;
780
- padding-right: 17px;
781
- }*/
782
-
783
- .tinv-wishlist .wishlist-action button[value="manage_remove"] > i {
784
- display: none;
785
- /*font-size: 12px;*/
786
- margin-right: 0;
787
- }
788
-
789
- /*.tinv-wishlist tfoot .tinvwl-to-left,*/
790
- .tinv-wishlist tfoot .tinvwl-to-right .tinv-create-list {
791
- /*float: left;*/
792
- display: inline-block;
793
- vertical-align: middle;
794
- }
795
-
796
- .tinv-wishlist tfoot .tinvwl-to-right .tinv-create-list > a.button {
797
- margin-right: 0;
798
- }
799
-
800
- /*.tinv-wishlist tfoot .tinvwl-to-right {
801
- float: right;
802
- }*/
803
-
804
- .tinv-wishlist tfoot .tinvwl-to-left + .tinvwl-to-right {
805
- margin-top: 0;
806
- }
807
-
808
- .tinv-wishlist tfoot .tinvwl-to-left + .tinvwl-to-right {
809
- margin-top: -10px;
810
- }
811
-
812
- .tinv-wishlist tfoot .tinvwl-to-left:not(:empty) {
813
- float: left;
814
- width: 35%;
815
- margin-right: 2%;
816
- }
817
-
818
- .tinv-wishlist tfoot .tinvwl-to-right {
819
- float: left;
820
- width: 63%;
821
- text-align: right;
822
- }
823
-
824
- .tinv-wishlist tfoot .tinvwl-to-right > * {
825
- margin: 10px 0 0;
826
- vertical-align: middle;
827
- }
828
-
829
- .tinv-wishlist tfoot .tinvwl-to-right > * + * {
830
- margin-left: 10px;
831
- }
832
-
833
- .tinv-wishlist tfoot .tinvwl-to-left:empty + .tinvwl-to-right {
834
- width: 100%;
835
- }
836
-
837
- .tinv-wishlist button[value="product_apply"] /*,
838
- .tinv-wishlist button + button[value="product_selected"],
839
- .tinv-wishlist button + button[value="product_all"]*/
840
- {
841
- /*margin-left: 10px;*/
842
- }
843
-
844
- .tinv-wishlist button[value="manage_apply"] /*,
845
- .tinv-wishlist button[value="manage_save"]*/
846
- {
847
- /*margin-left: 10px;*/
848
- }
849
-
850
- @media only screen and (max-width: 1024px) {
851
- .tinv-wishlist .wishlist-name .tinvwl-rename-button span {
852
- display: none;
853
- }
854
-
855
- .tinv-wishlist .wishlist-name .tinvwl-rename-button > i {
856
- margin-right: 0;
857
- }
858
-
859
- /*.tinv-wishlist .wishlist-action button[value="manage_remove"] {
860
- padding-left: 17px;
861
- }*/
862
- .tinv-wishlist .wishlist-action {
863
- width: 60px;
864
- }
865
-
866
- .tinv-wishlist tfoot .tinvwl-to-left:not(:empty),
867
- .tinv-wishlist tfoot .tinvwl-to-right {
868
- float: none;
869
- width: auto;
870
- }
871
-
872
- .tinv-wishlist tfoot .tinvwl-to-left:not(:empty) {
873
- margin-right: 0;
874
- }
875
-
876
- .tinv-wishlist tfoot .tinvwl-to-right {
877
- text-align: left;
878
- }
879
- }
880
-
881
- @media only screen and (max-width: 1024px) and (min-width: 641px) {
882
- /*.tinv-wishlist tfoot .tinvwl-to-left + .tinvwl-to-right {
883
- margin-top: 10px;
884
- }*/
885
- /*.tinv-wishlist .wishlist-action button[value="manage_remove"] {
886
- background-image: none;
887
- padding: 11.5px 12px !important;
888
- }*/
889
- .tinv-wishlist .wishlist-action button[value="manage_remove"] span {
890
- display: none;
891
- }
892
-
893
- .tinv-wishlist .wishlist-action button[value="manage_remove"] > i {
894
- display: inline-block;
895
- }
896
-
897
- .tinv-wishlist tfoot .tinvwl-to-left + .tinvwl-to-right {
898
- margin-top: 0;
899
- }
900
- }
901
-
902
- @media only screen and (max-width: 640px) {
903
- /*.tinv-wishlist .wishlist-action button[value="manage_remove"] {
904
- text-indent: -9999px;
905
- background-position: center;
906
- }*/
907
- .tinv-wishlist button[value="manage_apply"] .tinvwl-mobile,
908
- .tinv-wishlist button[value="product_apply"] .tinvwl-mobile {
909
- display: none;
910
- }
911
-
912
- .tinv-wishlist tfoot .tinvwl-to-right .tinv-create-list {
913
- display: block;
914
- }
915
-
916
- .tinv-wishlist .tinvwl-table-manage-list tfoot .tinvwl-to-right button,
917
- .tinv-wishlist .tinvwl-table-manage-list tfoot .tinvwl-to-right .button,
918
- .tinv-wishlist .tinvwl-table-manage-lists tfoot .tinvwl-to-right button,
919
- .tinv-wishlist .tinvwl-table-manage-lists tfoot .tinvwl-to-right .button {
920
- width: 100%;
921
- margin: 10px 0 0;
922
- }
923
-
924
- .tinv-wishlist tfoot .tinvwl-to-right > * {
925
- margin: 10px 0 0;
926
- }
927
-
928
- /*.tinv-wishlist .tinvwl-table-manage-list tfoot select,
929
- .tinv-wishlist .tinvwl-table-manage-lists tfoot select {
930
- width: calc(100% - 127px);
931
- }*/
932
- .tinv-wishlist tfoot .tinvwl-to-right button:first-child,
933
- .tinv-wishlist tfoot .tinvwl-to-right .button:first-child {
934
- margin-top: 0 !important;
935
- }
936
-
937
- .tinv-wishlist tfoot .tinvwl-to-left + .tinvwl-to-right {
938
- margin-top: 20px;
939
- }
940
-
941
- /*.tinv-wishlist tfoot .tinvwl-to-left + .tinvwl-to-right {
942
- margin-top: 10px;
943
- }*/
944
- }
945
-
946
- /* Table Navigation */
947
-
948
- .tinv-wishlist .social-buttons + .tinv-wishlist-clear + .navigation-button,
949
- .tinv-wishlist .tinvwl-estimate-wrap + .tinv-wishlist-clear + .navigation-button {
950
- margin-top: 16px;
951
- }
952
-
953
- .tinv-wishlist .navigation-button > li {
954
- float: left;
955
- }
956
-
957
- .tinv-wishlist .navigation-button > li + li {
958
- /*margin-left: 10px;*/
959
- }
960
-
961
- .tinv-wishlist .navigation-button {
962
- margin-top: -10px;
963
- }
964
-
965
- .tinv-wishlist .navigation-button > li > a,
966
- .tinv-wishlist .navigation-button > li > .tinv-create-list > a {
967
- margin-right: 30px;
968
- margin-top: 10px;
969
- display: inline-block;
970
- }
971
-
972
- .tinv-wishlist .navigation-button > li > a.button,
973
- .tinv-wishlist .navigation-button > li > .tinv-create-list > a.button {
974
- margin-right: 10px;
975
- }
976
-
977
- .tinv-wishlist .navigation-button > li:last-child > a,
978
- .tinv-wishlist .navigation-button > li:last-child > .tinv-create-list > a {
979
- margin-right: 0;
980
- }
981
-
982
- @media only screen and (max-width: 1024px) {
983
- .tinv-wishlist .social-buttons + .tinv-wishlist-clear + .navigation-button {
984
- margin-top: 30px;
985
- }
986
- }
987
-
988
- /* Social Buttons */
989
-
990
- .tinv-wishlist .social-buttons {
991
- float: right;
992
- }
993
-
994
- .tinv-wishlist form + .social-buttons {
995
- }
996
-
997
- .tinv-wishlist .social-buttons > span,
998
- .tinv-wishlist .social-buttons > ul {
999
- display: inline-block;
1000
- vertical-align: middle;
1001
- }
1002
-
1003
- .tinv-wishlist .social-buttons > span {
1004
- margin-right: 27px;
1005
- }
1006
-
1007
- .tinv-wishlist .social-buttons li {
1008
- float: left;
1009
- }
1010
-
1011
- .tinv-wishlist .social-buttons li {
1012
- margin-right: 5px;
1013
- }
1014
-
1015
- .tinv-wishlist .social-buttons li:last-child {
1016
- margin-right: 0;
1017
- }
1018
-
1019
- .tinv-wishlist .social-buttons li a {
1020
- /*padding: 0px 10px;*/
1021
- display: block;
1022
- width: 41px;
1023
- height: 41px;
1024
- -webkit-border-radius: 50%;
1025
- -moz-border-radius: 50%;
1026
- border-radius: 50%;
1027
- text-indent: -9999px;
1028
- text-align: center;
1029
- box-shadow: none;
1030
- border-bottom: 0;
1031
- background-image: url(../img/social.png);
1032
- background-repeat: no-repeat;
1033
- background-position: center;
1034
- }
1035
-
1036
- .tinv-wishlist .social-buttons li a.white {
1037
- background-image: url(../img/social_white.png);
1038
- }
1039
-
1040
- .tinv-wishlist .social-buttons li a.dark {
1041
- background-image: url(../img/social.png);
1042
- }
1043
-
1044
- .tinv-wishlist .social-buttons li a:hover {
1045
- }
1046
-
1047
- .tinv-wishlist .social-buttons li .social-facebook {
1048
- background-position: 16px center;
1049
- }
1050
-
1051
- .tinv-wishlist .social-buttons li .social-twitter {
1052
- background-position: -28px center;
1053
- }
1054
-
1055
- .tinv-wishlist .social-buttons li .social-pinterest {
1056
- background-position: -73px center;
1057
- }
1058
-
1059
- .tinv-wishlist .social-buttons li .social-google {
1060
- background-position: -119px center;
1061
- }
1062
-
1063
- .tinv-wishlist .social-buttons li .social-email {
1064
- background-position: -164px center;
1065
- }
1066
-
1067
- @media only screen and (max-width: 1024px) {
1068
- .tinv-wishlist .social-buttons {
1069
- float: none;
1070
- width: auto;
1071
- text-align: left;
1072
- margin-top: 20px;
1073
- }
1074
- }
1075
-
1076
- .tinv-wishlist .navigation-button .tinv-create-list > a.tinvwl-no-icon > i,
1077
- .tinv-wishlist .navigation-button li > a.tinvwl-no-icon > i {
1078
- display: none;
1079
- }
1080
-
1081
- @media only screen and (max-width: 640px) {
1082
- .tinv-wishlist .social-buttons {
1083
- text-align: center;
1084
- }
1085
-
1086
- .tinv-wishlist .navigation-button > li {
1087
- width: 20%;
1088
- text-align: center;
1089
- }
1090
-
1091
- .tinv-wishlist .navigation-button.tinvwl-btns-count-1 > li {
1092
- width: 100%;
1093
- }
1094
-
1095
- .tinv-wishlist .navigation-button.tinvwl-btns-count-2 > li {
1096
- width: 50%;
1097
- }
1098
-
1099
- .tinv-wishlist .navigation-button.tinvwl-btns-count-3 > li {
1100
- width: 33%;
1101
- }
1102
-
1103
- .tinv-wishlist .navigation-button.tinvwl-btns-count-4 > li {
1104
- width: 25%;
1105
- }
1106
-
1107
- .tinv-wishlist .navigation-button > li + li {
1108
- width: 20%;
1109
- }
1110
-
1111
- .tinv-wishlist .navigation-button.tinvwl-btns-count-1 > li + li {
1112
- width: 100%;
1113
- }
1114
-
1115
- .tinv-wishlist .navigation-button.tinvwl-btns-count-2 > li + li {
1116
- width: 50%;
1117
- }
1118
-
1119
- .tinv-wishlist .navigation-button.tinvwl-btns-count-3 > li + li {
1120
- width: 33%;
1121
- }
1122
-
1123
- .tinv-wishlist .navigation-button.tinvwl-btns-count-4 > li + li {
1124
- width: 25%;
1125
- }
1126
-
1127
- .tinv-wishlist .navigation-button > li > a,
1128
- .tinv-wishlist .navigation-button > li > .tinv-create-list > a {
1129
- width: calc(100% - 10px);
1130
- margin-right: 0;
1131
- }
1132
-
1133
- .tinv-wishlist .navigation-button .tinv-create-list > a .tinvwl-txt,
1134
- .tinv-wishlist .navigation-button li > a .tinvwl-txt {
1135
- display: none;
1136
- }
1137
-
1138
- .tinv-wishlist .navigation-button .tinv-create-list > a > i,
1139
- .tinv-wishlist .navigation-button li > a > i {
1140
- display: inline-block !important;
1141
- margin-right: 0;
1142
- }
1143
-
1144
- .tinv-wishlist .social-buttons > span {
1145
- display: block;
1146
- margin-top: 0;
1147
- margin-right: 0;
1148
- margin-bottom: 5px;
1149
- }
1150
- }
1151
-
1152
- /* Navigation */
1153
-
1154
- .tinv-wishlist .tinv-lists-nav {
1155
- margin-bottom: 35px;
1156
- }
1157
-
1158
- .tinv-wishlist table + .tinv-lists-nav {
1159
- margin-top: 35px;
1160
- }
1161
-
1162
- .tinv-wishlist .tinv-prev,
1163
- .tinv-wishlist .tinv-next {
1164
- display: inline-block;
1165
- }
1166
-
1167
- .tinv-wishlist .tinv-prev {
1168
- float: left;
1169
- }
1170
-
1171
- .tinv-wishlist .tinv-next {
1172
- float: right;
1173
- }
1174
-
1175
- .tinv-wishlist .tinv-prev i {
1176
- margin-left: 0;
1177
- margin-right: 18px;
1178
- }
1179
-
1180
- .tinv-wishlist .tinv-next i {
1181
- margin-left: 18px;
1182
- margin-right: 0;
1183
- }
1184
-
1185
- /* Login */
1186
-
1187
- .tinv-wishlist .tinv-login {
1188
- margin-bottom: 30px;
1189
- }
1190
-
1191
- .tinv-wishlist .tinv-login i.login_key {
1192
- display: inline-block;
1193
- vertical-align: text-bottom;
1194
- margin-right: 16px;
1195
- }
1196
-
1197
- .tinv-wishlist .tinv-login .login {
1198
- display: none;
1199
- border: none;
1200
- padding: 0;
1201
- margin: 24px 0 0;
1202
- }
1203
-
1204
- .tinv-wishlist .tinv-login h2 {
1205
- display: none;
1206
- }
1207
-
1208
- .tinv-wishlist .tinv-login .lost_password {
1209
- margin-bottom: 0;
1210
- }
1211
-
1212
- .tinv-wishlist .tinv-login form .form-row {
1213
- padding: 0;
1214
- margin: 0;
1215
- }
1216
-
1217
- .tinv-wishlist .tinv-login form .form-row + .input-group-btn {
1218
- padding-left: 9px;
1219
- }
1220
-
1221
- .tinv-wishlist.woocommerce .tinv-login form .form-row-first,
1222
- .tinv-wishlist.woocommerce .tinv-login form .form-row-last {
1223
- width: 50%;
1224
- }
1225
-
1226
- .tinv-wishlist.woocommerce .tinv-login form .form-row-first {
1227
- padding-right: 4px;
1228
- }
1229
-
1230
- .tinv-wishlist.woocommerce .tinv-login form .form-row-last {
1231
- padding-left: 4px;
1232
- }
1233
-
1234
- .tinv-wishlist .tinv-login form .tinv-rememberme,
1235
- .tinv-wishlist .tinv-login form .lost_password {
1236
- float: left;
1237
- margin-top: 16px;
1238
- }
1239
-
1240
- .tinv-wishlist .tinv-login .tinv-rememberme + .lost_password {
1241
- margin-left: 26px;
1242
- }
1243
-
1244
- .tinv-wishlist .tinv-login .tinvwl-icon {
1245
- position: absolute;
1246
- top: 50%;
1247
- left: 14px;
1248
- display: none;
1249
- width: 12px;
1250
- height: 14px;
1251
- margin-top: -7px;
1252
- background-repeat: no-repeat;
1253
- background-position: center;
1254
- }
1255
-
1256
- .tinv-wishlist .tinv-login input[name="username"] + .tinvwl-icon {
1257
- height: 17px;
1258
- margin-top: -8.5px;
1259
- background-image: url(../img/login_name.png);
1260
- }
1261
-
1262
- .tinv-wishlist .tinv-login input[name="password"] + .tinvwl-icon {
1263
- left: 17px;
1264
- height: 14px;
1265
- margin-top: -7px;
1266
- background-image: url(../img/login_pass.png);
1267
- }
1268
-
1269
- @media only screen and (max-width: 1024px) {
1270
- .tinv-wishlist .tinv-login form input[name="login"] {
1271
- min-width: auto;
1272
- }
1273
- }
1274
-
1275
- @media only screen and (max-width: 667px) {
1276
- .tinv-wishlist.woocommerce .tinv-login form .form-row-first,
1277
- .tinv-wishlist.woocommerce .tinv-login form .form-row-last {
1278
- float: none;
1279
- width: 100%;
1280
- }
1281
-
1282
- .tinv-wishlist.woocommerce .tinv-login form .form-row-first,
1283
- .tinv-wishlist.woocommerce .tinv-login form .form-row-last {
1284
- padding: 0;
1285
- }
1286
-
1287
- .tinv-wishlist.woocommerce .tinv-login form .form-row-last {
1288
- margin-top: 10px;
1289
- }
1290
-
1291
- .tinv-wishlist.woocommerce .tinv-login form .input-group-btn {
1292
- display: block;
1293
- padding: 0;
1294
- width: auto;
1295
- margin-top: 10px;
1296
- }
1297
- }
1298
-
1299
- /* Modal */
1300
-
1301
- .tinv-overlay {
1302
- position: fixed;
1303
- top: 0;
1304
- left: 0;
1305
- width: 100%;
1306
- height: 100%;
1307
- visibility: hidden;
1308
- opacity: 0;
1309
-
1310
- -webkit-transition: opacity .3s ease, visibility .3s ease;
1311
- -moz-transition: opacity .3s ease, visibility .3s ease;
1312
- -o-transition: opacity .3s ease, visibility .3s ease;
1313
- transition: opacity .3s ease, visibility .3s ease;
1314
-
1315
- background: #191919;
1316
- }
1317
-
1318
- .tinv-modal.tinv-modal-open .tinv-overlay {
1319
- visibility: visible;
1320
- opacity: .5;
1321
- }
1322
-
1323
- .admin-bar .tinv-wishlist .tinv-modal {
1324
- padding-top: 32px !important;
1325
- }
1326
-
1327
- .tinv-wishlist .tinv-modal .tinv-modal-inner {
1328
- position: relative;
1329
- margin: 0 auto;
1330
- background-color: #ffffff;
1331
- }
1332
-
1333
- .tinv-wishlist .tinv-modal {
1334
- overflow-y: auto;
1335
- overflow-x: hidden;
1336
- top: 0;
1337
- left: 0;
1338
- width: 0;
1339
- height: 0;
1340
- z-index: 9999;
1341
- position: fixed;
1342
- outline: none !important;
1343
- -webkit-backface-visibility: hidden;
1344
- visibility: hidden;
1345
- opacity: 0;
1346
- text-align: left;
1347
-
1348
- -webkit-transition: opacity .3s ease, visibility .3s ease;
1349
- -moz-transition: opacity .3s ease, visibility .3s ease;
1350
- -o-transition: opacity .3s ease, visibility .3s ease;
1351
- transition: opacity .3s ease, visibility .3s ease;
1352
- }
1353
-
1354
- .tinv-wishlist .tinv-modal.tinv-modal-open {
1355
- visibility: visible;
1356
- opacity: 1;
1357
- width: 100%;
1358
- height: 100%;
1359
- }
1360
-
1361
- .tinv-wishlist .tinv-modal .tinv-close-modal {
1362
- display: inline-block;
1363
- position: absolute;
1364
- top: 17px;
1365
- right: 14px;
1366
- width: 26px;
1367
- height: 26px;
1368
- line-height: 26px;
1369
- font-size: 12px;
1370
- text-align: center;
1371
- -webkit-border-radius: 50%;
1372
- -moz-border-radius: 50%;
1373
- border-radius: 50%;
1374
- box-shadow: none;
1375
- border-bottom: 0;
1376
- box-shadow: none !important;
1377
- background-color: #ebe9eb;
1378
- }
1379
-
1380
- .tinv-wishlist .tinv-modal .tinv-close-modal:hover {
1381
- }
1382
-
1383
- @media screen and (max-width: 782px) {
1384
- .admin-bar .tinv-wishlist .tinv-modal {
1385
- padding-top: 46px !important;
1386
- }
1387
- }
1388
-
1389
- @media screen and (max-width: 600px) {
1390
- .admin-bar .tinv-wishlist .tinv-modal {
1391
- padding-top: 0 !important;
1392
- }
1393
-
1394
- .tinv-wishlist .tinv-modal .tinv-close-modal {
1395
- position: static;
1396
- display: block;
1397
- margin: 0 auto 20px;
1398
- }
1399
- }
1400
-
1401
- /* Move */
1402
-
1403
- .tinv-wishlist .tinv-modal .tinv-modal-inner {
1404
- max-width: 360px;
1405
- padding: 40px;
1406
- }
1407
-
1408
- .tinv-wishlist .tinv-modal .tinv-modal-inner {
1409
- /*padding-top: 35px;*/
1410
- }
1411
-
1412
- .tinv-wishlist .tinv-modal img, .tinv-wishlist .tinv-modal .icon_big_times, .tinv-wishlist .tinv-modal .icon_big_heart_check, .tinv-wishlist .tinv-modal .icon_big_heart_next, .tinv-wishlist .tinv-modal .icon_big_heart_plus, .tinv-wishlist .tinv-modal .icon_big_heart_subscribe {
1413
- display: block;
1414
- margin: 0 auto;
1415
- margin-bottom: 25px;
1416
- opacity: 1 !important;
1417
- }
1418
-
1419
- .tinv-wishlist .tinv-modal ul {
1420
- overflow: visible;
1421
- list-style: disc;
1422
- margin: 10px 0 0 20px;
1423
- }
1424
-
1425
- .tinv-wishlist .tinv-modal li {
1426
- list-style: disc !important;
1427
- }
1428
-
1429
- .tinv-wishlist.tinv-create-list form ul,
1430
- .tinv-wishlist .tinv-create-list .tinv-modal ul {
1431
- list-style: none !important;
1432
- margin: 25px 0 0;
1433
- }
1434
-
1435
- .tinv-wishlist.tinv-create-list form li,
1436
- .tinv-wishlist .tinv-create-list .tinv-modal li {
1437
- list-style: none !important;
1438
- }
1439
-
1440
- .tinv-wishlist.tinv-create-list form,
1441
- .tinv-wishlist .tinv-create-list .tinv-modal form {
1442
- /*background: none;
1443
- padding: 0;*/
1444
- }
1445
-
1446
- .tinv-wishlist .tinv-modal .already-in {
1447
- margin-bottom: 35px;
1448
- }
1449
-
1450
- .tinv-wishlist .tinv-modal .delete-notification {
1451
- margin-bottom: 25px;
1452
- }
1453
-
1454
- .tinv-wishlist .tinv-modal .already-in ul {
1455
- overflow: visible;
1456
- margin: 12px 0 27px 17px;
1457
- }
1458
-
1459
- /*.tinv-wishlist .tinv-modal .already-in ul li + li {
1460
- margin-top: 10px;
1461
- }*/
1462
-
1463
- .tinv-wishlist .tinv-modal select {
1464
- width: 100%;
1465
- }
1466
-
1467
- .tinv-wishlist .tinv-modal select + input,
1468
- .tinv-wishlist .tinv-modal select + button,
1469
- .tinv-wishlist .tinv-modal label + button,
1470
- .tinv-wishlist .tinv-modal label + input,
1471
- .tinv-wishlist .tinv-modal input + button,
1472
- .tinv-wishlist .tinv-modal button + button,
1473
- .tinv-wishlist .tinv-modal button + .button,
1474
- .woocommerce .tinv-wishlist .tinv-modal button + button.button {
1475
- margin-top: 12px;
1476
- width: 100%;
1477
- }
1478
-
1479
- .tinv-wishlist .tinv-modal .already-in + label {
1480
- display: block;
1481
- margin-top: 6px;
1482
- }
1483
-
1484
- .tinv-wishlist .tinv-modal label select {
1485
- margin-top: 8px;
1486
- }
1487
-
1488
- .tinv-wishlist .tinv-modal .delete-notification + button {
1489
- width: 100%;
1490
- }
1491
-
1492
- /*.tinv-wishlist .tinv-modal .button {
1493
- font-weight: normal;
1494
- padding: 11px 19px;
1495
- }
1496
-
1497
- .tinv-wishlist .tinv-modal button i,
1498
- .tinv-wishlist .tinv-modal .button i {
1499
- font-size: 12px;
1500
- }*/
1501
-
1502
- /* Added to Wishlist */
1503
-
1504
- .tinv-wishlist .tinvwl_added_to_wishlist,
1505
- .tinv-wishlist .tinvwl_created_wishlist {
1506
- text-align: center;
1507
- }
1508
-
1509
- .tinv-wishlist .tinvwl_added_to_wishlist .tinv-txt,
1510
- .tinv-wishlist .tinvwl_created_wishlist .tinv-txt {
1511
- margin-bottom: 25px;
1512
- }
1513
-
1514
- .woocommerce .tinv-wishlist .tinvwl_added_to_wishlist.tinv-modal button.button,
1515
- .tinv-wishlist .tinvwl_created_wishlist button {
1516
- margin-top: 0;
1517
- margin-bottom: 10px;
1518
- }
1519
-
1520
- /*.tinv-wishlist .tinvwl_added_to_wishlist .tinvwl_button_view,
1521
- .tinv-wishlist .tinvwl_created_wishlist .tinvwl_button_view {
1522
- padding: 11px 11px;
1523
- }*/
1524
-
1525
- .tinv-wishlist .tinv-modal .tinvwl-buttons-group {
1526
- margin-top: 20px;
1527
- }
1528
-
1529
- /* Follow Wishlist */
1530
-
1531
- .tinvwl-subscribe-wrap {
1532
- float: left;
1533
- }
1534
-
1535
- .tinv-wishlist .tinv-modal.tinvwl-subscribe img {
1536
- margin-bottom: 30px;
1537
- }
1538
-
1539
- .tinv-wishlist .tinvwl-subscribe .tinvwl-txt {
1540
- margin-bottom: 18px;
1541
- }
1542
-
1543
- .tinv-wishlist .tinvwl-subscribe ul {
1544
- list-style: none;
1545
- margin: 0;
1546
- }
1547
-
1548
- .tinv-wishlist .tinvwl-subscribe li {
1549
- list-style: none !important;
1550
- }
1551
-
1552
- .tinv-wishlist .tinvwl-subscribe li + li {
1553
- margin-top: 8px;
1554
- }
1555
-
1556
- .tinv-wishlist .tinvwl-subscribe li input[type="checkbox"] {
1557
- margin-right: 11px;
1558
- }
1559
-
1560
- /*.tinv-wishlist .tinvwl-subscribe .tinvwl-buttons-group button i {
1561
- font-size: 14px;
1562
- }*//*todo*/
1563
-
1564
- .tinv-wishlist .tinvwl-buttons-group button {
1565
- width: 100%;
1566
- }
1567
-
1568
- .tinv-wishlist .tinvwl-buttons-group button + button {
1569
- margin-top: 7px;
1570
- }
1571
-
1572
- .tinv-wishlist .tinvwl-buttons-group + button {
1573
- width: 100%;
1574
- margin-top: 7px;
1575
- }
1576
-
1577
- .tinv-wishlist .tinvwl-subscribe-wrap + .tinv-wishlist-clear + .navigation-button {
1578
- margin-top: 26px;
1579
- }
1580
-
1581
- /* Estimate */
1582
-
1583
- .tinvwl-estimate-wrap {
1584
- float: left;
1585
- }
1586
-
1587
- /*.woocommerce.tinv-wishlist .tinvwl-estimate-wrap .button.tinv-modal-btn {
1588
- padding: 11.5px 15px;
1589
- }*/
1590
-
1591
- .tinv-wishlist .estimate-dialogbox .tinv-modal-inner {
1592
- max-width: 778px;
1593
- padding: 35px 30px 30px;
1594
- text-align: center;
1595
- }
1596
-
1597
- .tinv-wishlist .tinv-modal h2 {
1598
- text-align: center;
1599
- margin: 0 0 35px;
1600
- }
1601
-
1602
- .tinv-wishlist .estimate-dialogbox textarea {
1603
- height: 200px;
1604
- margin-bottom: 30px;
1605
- }
1606
-
1607
- /*.woocommerce.tinv-wishlist .estimate-dialogbox button {
1608
- padding: 15px 47px;
1609
- }*/
1610
-
1611
- @media only screen and (max-width: 1024px) {
1612
- .tinvwl-estimate-wrap,
1613
- .tinvwl-subscribe-wrap {
1614
- float: none;
1615
- width: auto;
1616
- }
1617
-
1618
- .tinv-wishlist .tinvwl-subscribe-wrap + .tinv-wishlist-clear + .navigation-button {
1619
- margin-top: 30px;
1620
- }
1621
- }
1622
-
1623
- @media only screen and (max-width: 640px) {
1624
- .tinvwl-estimate-wrap,
1625
- .tinvwl-subscribe-wrap,
1626
- .social-buttons,
1627
- .navigation-button,
1628
- .tinv-lists-nav {
1629
- margin-left: 12px;
1630
- margin-right: 12px;
1631
- }
1632
-
1633
- .tinvwl-estimate-wrap .tinv-modal-btn,
1634
- .tinvwl-subscribe-wrap .tinv-modal-btn {
1635
- width: 100%;
1636
- }
1637
-
1638
- .tinvwl-estimate-wrap + .social-buttons {
1639
- margin-top: 10px;
1640
- }
1641
- }
1642
-
1643
- @media screen and (max-width: 600px) {
1644
- .tinv-wishlist .estimate-dialogbox .tinv-modal-inner {
1645
- padding-top: 25px;
1646
- }
1647
- }
1648
-
1649
- /* Create Wishlist Modal */
1650
-
1651
- .tinv-wishlist .tinv-create-list .tinv-modal-inner {
1652
- max-width: 778px;
1653
- padding: 30px;
1654
- }
1655
-
1656
- /* Modal Errors */
1657
-
1658
- .tinv-wishlist .input-group.tinvwl-has-error .form-control,
1659
- .tinv-wishlist .tinvwl-has-error:not(.input-group) {
1660
- border: 2px solid #FF0000;
1661
- }
1662
-
1663
- .tinv-wishlist .tinvwl-has-error + .tinvwl-error {
1664
- padding: 5px 0 0 5px;
1665
- color: #FF0000;
1666
- }
1667
-
1668
- /* Tooltip */
1669
-
1670
- .tinvwl-tooltip {
1671
- display: none;
1672
- }
1673
-
1674
- /* Bootstrap */
1675
-
1676
- .input-group {
1677
- position: relative;
1678
- display: table;
1679
- /*width: 100%;*/
1680
- border-collapse: separate;
1681
- }
1682
-
1683
- .input-group .form-control {
1684
- position: relative;
1685
- z-index: 1;
1686
- float: left;
1687
- height: 38px;
1688
- width: 100%;
1689
- margin-bottom: 0;
1690
- }
1691
-
1692
- .input-group .form-control + .input-group-btn {
1693
- padding-left: 15px;
1694
- }
1695
-
1696
- .tinv-wishlist .tinvwl-to-left .input-group .form-control + .input-group-btn {
1697
- padding-left: 10px;
1698
- }
1699
-
1700
- .tinv-wishlist .tinv-search-form .input-group .form-control + .input-group-btn {
1701
- padding-left: 9px;
1702
- }
1703
-
1704
- .input-group-addon,
1705
- .input-group-btn,
1706
- .input-group .form-control {
1707
- display: table-cell;
1708
- }
1709
-
1710
- .input-group-addon,
1711
- .input-group-btn {
1712
- width: 1%;
1713
- white-space: nowrap;
1714
- vertical-align: top;
1715
- }
1716
-
1717
- @media only screen and (max-width: 640px) {
1718
- .input-group {
1719
- width: 100%;
1720
- }
1721
- }
1722
-
1723
- @media only screen and (max-width: 667px) {
1724
- .input-group:not(.tinvwl-no-full) {
1725
- display: block;
1726
- }
1727
-
1728
- .input-group:not(.tinvwl-no-full) .form-control {
1729
- float: none;
1730
- }
1731
-
1732
- .input-group:not(.tinvwl-no-full) .form-control + .input-group-btn,
1733
- .tinv-wishlist .tinv-search-form .input-group:not(.tinvwl-no-full) .form-control + .input-group-btn {
1734
- padding-top: 10px;
1735
- padding-left: 0;
1736
- }
1737
-
1738
- .input-group:not(.tinvwl-no-full) .input-group-addon,
1739
- .input-group:not(.tinvwl-no-full) .input-group-btn,
1740
- .input-group:not(.tinvwl-no-full) .form-control {
1741
- display: block;
1742
- }
1743
-
1744
- .input-group:not(.tinvwl-no-full) .input-group-addon,
1745
- .input-group:not(.tinvwl-no-full) .input-group-btn,
1746
- .input-group:not(.tinvwl-no-full) .input-group-addon > input,
1747
- .input-group:not(.tinvwl-no-full) .input-group-addon > button,
1748
- .input-group:not(.tinvwl-no-full) .input-group-btn > input,
1749
- .input-group:not(.tinvwl-no-full) .input-group-btn > button {
1750
- width: 100%;
1751
- }
1752
- }
1753
-
1754
- /* Misc */
1755
-
1756
- .tinv-table {
1757
- display: table;
1758
- width: 100%;
1759
- height: 100%;
1760
- }
1761
-
1762
- .tinv-cell {
1763
- display: table-cell;
1764
- vertical-align: middle;
1765
- }
1766
-
1767
- .tinv-wishlist .tinv-wishlist-clear {
1768
- visibility: visible;
1769
- width: auto;
1770
- height: auto;
1771
- }
1772
-
1773
- .tinv-wishlist-clear:before,
1774
- .tinv-wishlist-clear:after {
1775
- content: " ";
1776
- display: table;
1777
- }
1778
-
1779
- .tinv-wishlist-clear:after {
1780
- clear: both;
1781
- }
1782
-
1783
- /******************IMAGES**********************/
1784
-
1785
- .icon_big_times {
1786
- background: url(../img/icon_big_times.png) no-repeat center;
1787
- display: inline-block;
1788
- background-size: 46px 46px;
1789
- width: 46px;
1790
- height: 46px;
1791
- }
1792
-
1793
- .icon_big_heart_check {
1794
- background: url(../img/icon_big_heart_check.png) no-repeat center;
1795
- display: inline-block;
1796
- background-size: 48px 42px;
1797
- width: 48px;
1798
- height: 42px;
1799
- }
1800
-
1801
- .icon_big_heart_next {
1802
- background: url(../img/icon_big_heart_next.png) no-repeat center;
1803
- display: inline-block;
1804
- background-size: 89px 42px;
1805
- width: 89px;
1806
- height: 42px;
1807
- }
1808
-
1809
- .icon_big_heart_plus {
1810
- background: url(../img/icon_big_heart_plus.png) no-repeat center;
1811
- display: inline-block;
1812
- background-size: 48px 42px;
1813
- width: 48px;
1814
- height: 42px;
1815
- }
1816
-
1817
- .icon_big_heart_subscribe {
1818
- background: url(../img/icon_big_heart_subscribe.png) no-repeat center;
1819
- display: inline-block;
1820
- background-size: 48px 42px;
1821
- width: 48px;
1822
- height: 42px;
1823
- }
1824
-
1825
- .login_key {
1826
- background: url(../img/login_key.png) no-repeat center;
1827
- display: inline-block;
1828
- background-size: 20px 20px;
1829
- width: 20px;
1830
- height: 20px;
1831
- }
1832
-
1833
- /**************** RETINA ***************/
1834
-
1835
- .tinv-wishlist .social-buttons li a {
1836
- background-size: 195px 18px;
1837
- }
1838
-
1839
- .tinv-wishlist .tinv-login input[name="username"] + .tinvwl-icon {
1840
- background-size: 11px 17px;
1841
- }
1842
-
1843
- .tinv-wishlist .tinv-login input[name="password"] + .tinvwl-icon {
1844
- background-size: 12px 14px;
1845
- }
1846
-
1847
- .tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-heart:before,
1848
- .tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-heart-plus:before,
1849
- .woocommerce ul.products li.product a.button.tinvwl-icon-heart.tinvwl_add_to_wishlist_button:before,
1850
- .woocommerce-page ul.products li.product a.button.tinvwl-icon-heart.tinvwl_add_to_wishlist_button:before,
1851
- .woocommerce ul.products li.product a.button.tinvwl-icon-heart-plus.tinvwl_add_to_wishlist_button:before,
1852
- .woocommerce-page ul.products li.product a.button.tinvwl-icon-heart-plus.tinvwl_add_to_wishlist_button:before {
1853
- background-size: 30px 50px;
1854
- }
1855
-
1856
- .tinv-wishlist .product-remove button {
1857
- background-size: 11px 11px;
1858
- }
1859
-
1860
- .tinv-wishlist .tinvwl-table-manage-list .product-action button[name="tinvwl-remove"] {
1861
- background-size: 11px 11px;
1862
- }
1863
-
1864
- @media only screen and (-webkit-min-device-pixel-ratio: 1.5), not all, not all, not all {
1865
- .tinv-wishlist .social-buttons li a {
1866
- background-image: url(../img/social@2x.png);
1867
- }
1868
-
1869
- .tinv-wishlist .social-buttons li a.white {
1870
- background-image: url(../img/social_white@2x.png);
1871
- }
1872
-
1873
- .tinv-wishlist .social-buttons li a.dark {
1874
- background-image: url(../img/social@2x.png);
1875
- }
1876
-
1877
- .tinv-wishlist .tinv-login input[name="username"] + .tinvwl-icon {
1878
- background-image: url(../img/login_name@2x.png);
1879
- }
1880
-
1881
- .tinv-wishlist .tinv-login input[name="password"] + .tinvwl-icon {
1882
- background-image: url(../img/login_pass@2x.png);
1883
- }
1884
-
1885
- .tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-heart:before,
1886
- .tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-heart-plus:before,
1887
- .woocommerce ul.products li.product a.button.tinvwl-icon-heart.tinvwl_add_to_wishlist_button:before,
1888
- .woocommerce-page ul.products li.product a.button.tinvwl-icon-heart.tinvwl_add_to_wishlist_button:before,
1889
- .woocommerce ul.products li.product a.button.tinvwl-icon-heart-plus.tinvwl_add_to_wishlist_button:before,
1890
- .woocommerce-page ul.products li.product a.button.tinvwl-icon-heart-plus.tinvwl_add_to_wishlist_button:before {
1891
- background-image: url(../img/add_to_wishlist@2x.png);
1892
- }
1893
-
1894
- .tinv-wishlist .product-remove button {
1895
- background-image: url(../img/icon_delete@2x.png);
1896
- }
1897
-
1898
- .tinv-wishlist .tinvwl-table-manage-list .product-action button[name="tinvwl-remove"] {
1899
- background-image: url(../img/icon_delete@2x.png);
1900
- }
1901
-
1902
- .icon_big_times {
1903
- background-image: url(../img/icon_big_times@2x.png);
1904
- }
1905
-
1906
- .icon_big_heart_check {
1907
- background-image: url(../img/icon_big_heart_check@2x.png);
1908
- }
1909
-
1910
- .icon_big_heart_next {
1911
- background-image: url(../img/icon_big_heart_next@2x.png);
1912
- }
1913
-
1914
- .icon_big_heart_plus {
1915
- background-image: url(../img/icon_big_heart_plus@2x.png);
1916
- }
1917
-
1918
- .icon_big_heart_subscribe {
1919
- background-image: url(../img/icon_big_heart_subscribe@2x.png);
1920
- }
1921
-
1922
- .login_key {
1923
- background-image: url(../img/login_key@2x.png);
1924
- }
1925
-
1926
- }
1927
-
1928
- .disabled-add-wishlist {
1929
- color: #FFFFFF;
1930
- cursor: not-allowed;
1931
- }
1932
-
1933
- .empty-name-wishlist {
1934
- border-color: #FF0000 !important;
1935
- }
1936
-
1937
- .tinvwl_remove_from_wishlist-text {
1938
- display: none;
1939
- }
1940
-
1941
- .tinvwl-product-in-list.tinvwl-product-make-remove .tinvwl_remove_from_wishlist-text {
1942
- display: inline;
1943
- }
1944
-
1945
- .tinvwl-product-in-list.tinvwl-product-make-remove .tinvwl_add_to_wishlist-text {
1946
- display: none;
1947
- }
 
 
 
 
 
 
 
 
1
+ /*
2
+ To change this license header, choose License Headers in Project Properties.
3
+ To change this template file, choose Tools | Templates
4
+ and open the template in the editor.
5
+ */
6
+ /*
7
+ Created on : 7/19/2017
8
+ Author : TemplateInvaders
9
+ */
10
+
11
+ .tinv-wishlist,
12
+ .tinv-wishlist button,
13
+ .tinv-wishlist input,
14
+ .tinv-wishlist select,
15
+ .tinv-wishlist textarea {
16
+ }
17
+
18
+ .tinv-wishlist *,
19
+ .tinvwl-wishlist *:before,
20
+ .tinvwl-wishlist *:after {
21
+ -webkit-box-sizing: border-box;
22
+ -moz-box-sizing: border-box;
23
+ box-sizing: border-box;
24
+ }
25
+
26
+ .tinv-wishlist select {
27
+ /*padding: 8.5px 10px;*/
28
+ width: 140px;
29
+ }
30
+
31
+ .tinv-wishlist p:last-child {
32
+ margin-bottom: 0;
33
+ }
34
+
35
+ .tinv-wishlist ul {
36
+ list-style: none;
37
+ margin: 0;
38
+ padding: 0;
39
+ }
40
+
41
+ .tinv-wishlist table,
42
+ .tinv-wishlist form {
43
+ margin-bottom: 0;
44
+ }
45
+
46
+ .tinv-wishlist a {
47
+ /*box-shadow: none !important;*/
48
+ }
49
+
50
+ .tinv-wishlist button,
51
+ .tinv-wishlist input[type="button"],
52
+ .tinv-wishlist input[type="reset"],
53
+ .tinv-wishlist input[type="submit"] {
54
+ /*text-align: center;
55
+ font-weight: normal;
56
+ letter-spacing: 0;
57
+ line-height: 1;
58
+ text-transform: none;
59
+ padding: 11.5px 19px;*/
60
+ }
61
+
62
+ .tinv-wishlist .button,
63
+ .tinv-wishlist button,
64
+ .tinv-wishlist input[type=button],
65
+ .tinv-wishlist input[type=reset],
66
+ .tinv-wishlist input[type=submit] {
67
+ /*box-shadow: none;*/
68
+ }
69
+
70
+ .tinv-wishlist input[type="text"],
71
+ .tinv-wishlist input[type="email"],
72
+ .tinv-wishlist input[type="url"],
73
+ .tinv-wishlist input[type="password"],
74
+ .tinv-wishlist input[type="search"],
75
+ .tinv-wishlist input[type="tel"],
76
+ .tinv-wishlist input[type="number"],
77
+ .tinv-wishlist textarea {
78
+ /*padding: 9px 15px;*/
79
+ }
80
+
81
+ .woocommerce.tinv-wishlist #respond input#submit,
82
+ .woocommerce.tinv-wishlist a.button,
83
+ .woocommerce.tinv-wishlist button.button,
84
+ .woocommerce.tinv-wishlist input.button {
85
+ /*text-align: center;
86
+ font-weight: normal;
87
+ letter-spacing: 0;
88
+ line-height: 1;
89
+ text-transform: none;
90
+ padding: 11.5px 17px;*/
91
+ }
92
+
93
+ .woocommerce.tinv-wishlist #respond input#submit.alt,
94
+ .woocommerce.tinv-wishlist a.button.alt,
95
+ .woocommerce.tinv-wishlist button.button.alt,
96
+ .woocommerce.tinv-wishlist input.button.alt {
97
+ text-align: center;
98
+ /*padding: 11.5px 20px;*/
99
+ }
100
+
101
+ .woocommerce.tinv-wishlist .tinvwl-my-wishlists {
102
+ /*padding-left: 17px;
103
+ padding-right: 17px;*/
104
+ }
105
+
106
+ .woocommerce.tinv-wishlist .tinvwl-continue-shop {
107
+ /*padding-left: 17px;
108
+ padding-right: 17px;*/
109
+ }
110
+
111
+ .tinv-wishlist button i,
112
+ .tinv-wishlist input[type="button"] i,
113
+ .tinv-wishlist input[type="reset"] i,
114
+ .tinv-wishlist input[type="submit"] i,
115
+ .tinv-wishlist .button i {
116
+ /*font-size: 14px;*/
117
+ margin-right: 14px;
118
+ }
119
+
120
+ .tinv-wishlist .navigation-button a i {
121
+ margin-right: 14px;
122
+ /*vertical-align: middle;*/
123
+ }
124
+
125
+ .tinv-wishlist a.tinvwl-my-wishlists i {
126
+ margin-right: 17px;
127
+ }
128
+
129
+ .tinv-wishlist .tinvwl-estimate-wrap a i {
130
+ margin-right: 18px;
131
+ }
132
+
133
+ .tinv-wishlist a.tinv-close-modal i {
134
+ margin-right: 0;
135
+ }
136
+
137
+ .tinv-wishlist a i.fa-chevron-left,
138
+ .tinv-wishlist a i.fa-chevron-right {
139
+ /*font-size: 10px;*/
140
+ }
141
+
142
+ .tinv-wishlist .button i.fa-chevron-left,
143
+ .tinv-wishlist .button i.fa-chevron-right {
144
+ /*vertical-align: middle;*/
145
+ }
146
+
147
+ .tinv-wishlist .tinvwl-estimate-wrap a i.fa-envelope-o {
148
+ /*font-size: 12px;*/
149
+ }
150
+
151
+ a.wishlist_products_counter {
152
+ text-decoration: none;
153
+ }
154
+
155
+ .tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-heart:before,
156
+ .tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-heart-plus:before,
157
+ .woocommerce ul.products li.product a.button.tinvwl-icon-heart.tinvwl_add_to_wishlist_button:before,
158
+ .woocommerce-page ul.products li.product a.button.tinvwl-icon-heart.tinvwl_add_to_wishlist_button:before,
159
+ .woocommerce ul.products li.product a.button.tinvwl-icon-heart-plus.tinvwl_add_to_wishlist_button:before,
160
+ .woocommerce-page ul.products li.product a.button.tinvwl-icon-heart-plus.tinvwl_add_to_wishlist_button:before,
161
+ a.wishlist_products_counter.top_wishlist-heart-plus:before,
162
+ a.wishlist_products_counter.top_wishlist-heart:before {
163
+ content: '';
164
+ display: inline-block;
165
+ margin-right: 10px;
166
+ background-image: url(../img/add_to_wishlist.png);
167
+ background-repeat: repeat;
168
+ }
169
+
170
+ .tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-heart.no-txt,
171
+ .tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-heart-plus.no-txt,
172
+ a.wishlist_products_counter.top_wishlist-heart-plus.no-txt {
173
+ position: relative;
174
+ width: 36px;
175
+ height: 36px;
176
+ vertical-align: bottom;
177
+ }
178
+
179
+ .tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-heart.no-txt:before,
180
+ .tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-heart-plus.no-txt:before {
181
+ position: absolute;
182
+ top: 50%;
183
+ left: 50%;
184
+ margin-right: 0 !important;
185
+ }
186
+
187
+ .tinv-wishlist .button.tinvwl_add_to_wishlist_button.tinvwl-icon-heart.no-txt,
188
+ .tinv-wishlist .button.tinvwl_add_to_wishlist_button.tinvwl-icon-heart-plus.no-txt {
189
+ padding-left: 1em;
190
+ vertical-align: bottom;
191
+ }
192
+
193
+ .tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-heart.icon-black:before,
194
+ a.wishlist_products_counter.top_wishlist-heart.top_wishlist-black:before {
195
+ background-position: 0 0;
196
+ width: 13px;
197
+ height: 11px;
198
+ }
199
+
200
+ .tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-heart.no-txt:before,
201
+ a.wishlist_products_counter.top_wishlist-heart.no-txt:before {
202
+ margin-top: -5px;
203
+ margin-left: -6px;
204
+ }
205
+
206
+ .tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-heart.tinvwl-product-in-list.icon-white:before,
207
+ a.wishlist_products_counter.top_wishlist-heart.top_wishlist-white:before {
208
+ background-position: 0 13px;
209
+ width: 13px;
210
+ height: 12px;
211
+ }
212
+
213
+ .tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-heart.tinvwl-product-in-list.icon-black:before {
214
+ background-position: 0 -12px;
215
+ width: 13px;
216
+ height: 12px;
217
+ }
218
+
219
+ .tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-heart.tinvwl-product-in-list.no-txt:before {
220
+ margin-top: -6px;
221
+ margin-left: -6px;
222
+ }
223
+
224
+ .tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-heart-plus.icon-black:before,
225
+ a.wishlist_products_counter.top_wishlist-heart-plus.top_wishlist-black:before {
226
+ background-position: 15px 0;
227
+ width: 14px;
228
+ height: 12px;
229
+ }
230
+
231
+ .tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-heart-plus.icon-white:before,
232
+ a.wishlist_products_counter.top_wishlist-heart-plus.top_wishlist-white:before {
233
+ background-position: 15px 25px;
234
+ width: 14px;
235
+ height: 12px;
236
+ }
237
+
238
+ .tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-heart-plus.no-txt:before {
239
+ margin-top: -5px;
240
+ margin-left: -7px;
241
+ }
242
+
243
+ .tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-heart.icon-white:before,
244
+ a.wishlist_products_counter.top_wishlist-heart.top_wishlist-white:before {
245
+ background-position: 0 -25px;
246
+ width: 13px;
247
+ height: 11px;
248
+ }
249
+
250
+ .tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-heart-plus.tinvwl-product-in-list.icon-black:before {
251
+ background-position: 15px -11px;
252
+ width: 15px;
253
+ height: 14px;
254
+ }
255
+
256
+ .tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-heart-plus.tinvwl-product-in-list.icon-white:before {
257
+ background-position: 15px 14px;
258
+ width: 15px;
259
+ height: 14px;
260
+ }
261
+
262
+ .tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-heart-plus.tinvwl-product-in-list.no-txt:before {
263
+ margin-top: -7px;
264
+ margin-left: -7px;
265
+ }
266
+
267
+ .tinv-wishlist.tinvwl-before-add-to-cart .tinvwl_add_to_wishlist_button {
268
+ margin-bottom: 15px;
269
+ }
270
+
271
+ .woocommerce ul.products li.product .add_to_cart_button.button {
272
+ /* float: left;*/
273
+ }
274
+
275
+ .tinv-wishlist.tinvwl-before-add-to-cart .tinvwl_add_to_wishlist_button.no-txt {
276
+ float: left;
277
+ margin-right: 10px;
278
+ margin-bottom: 0;
279
+ }
280
+
281
+ .tinv-wishlist.tinvwl-after-add-to-cart .tinvwl_add_to_wishlist_button {
282
+ margin-top: 15px;
283
+ }
284
+
285
+ .tinv-wishlist.tinvwl-after-add-to-cart .tinvwl_add_to_wishlist_button.no-txt {
286
+ margin-left: 10px;
287
+ }
288
+
289
+ .single-product .tinv-wishlist.tinvwl-after-add-to-cart .tinvwl_add_to_wishlist_button.no-txt {
290
+ margin-top: 0;
291
+ }
292
+
293
+ .tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-custom.no-txt,
294
+ a.wishlist_products_counter.top_wishlist-custom.no-txt {
295
+ padding: 10px 11px;
296
+ line-height: 1;
297
+ }
298
+
299
+ .tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-custom img,
300
+ a.wishlist_products_counter.top_wishlist-custom img {
301
+ display: inline-block !important;
302
+ vertical-align: baseline;
303
+ width: auto !important;
304
+ max-width: 16px;
305
+ max-height: 16px;
306
+ margin-bottom: 0;
307
+ margin: 0 6px 0 0 !important;
308
+ }
309
+
310
+ .tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-custom.no-txt img,
311
+ a.wishlist_products_counter.top_wishlist-custom.no-txt img {
312
+ margin-right: 0 !important;
313
+ }
314
+
315
+ .single-product div.product form.cart .button.tinvwl_add_to_wishlist_button,
316
+ div.product form.cart .tinvwl_add_to_wishlist_button {
317
+ float: none;
318
+ }
319
+
320
+ ul.products li.product .tinvwl_add_to_wishlist_button {
321
+ margin-top: 1em;
322
+ }
323
+
324
+ .tinvwl_add_to_wishlist_button {
325
+ display: inline-block;
326
+ cursor: pointer;
327
+ }
328
+
329
+ .tinvwl_add_to_wishlist_button.button {
330
+ }
331
+
332
+ .tinv-wishlist.woocommerce .stock.in-stock:before {
333
+ content: none;
334
+ }
335
+
336
+ .tinv-wraper.tinv-wishlist {
337
+ font-size: 100%;
338
+ }
339
+
340
+ /* Create List */
341
+
342
+ .tinv-create-list form {
343
+ /*padding: 30px 30px 39px;*/
344
+ }
345
+
346
+ .tinv-create-list li input[type="radio"] {
347
+ margin-right: 10px;
348
+ }
349
+
350
+ .tinv-create-list li + li {
351
+ margin-top: 15px;
352
+ }
353
+
354
+ .tinv-create-list .tinvwl-input-group + ul {
355
+ margin-top: 25px;
356
+ }
357
+
358
+ /* Search */
359
+
360
+ .tinv-search-list {
361
+ margin-bottom: 36px;
362
+ }
363
+
364
+ /* Header */
365
+
366
+ .tinv-wishlist .tinv-header {
367
+ margin-bottom: 30px;
368
+ }
369
+
370
+ /* Manage List */
371
+
372
+ .tinv-wishlist table {
373
+ position: relative;
374
+ table-layout: auto;
375
+ margin-bottom: 30px;
376
+ z-index: 2;
377
+ }
378
+
379
+ .tinv-wishlist table.tinvwl-table-manage-list {
380
+ margin-bottom: 27px;
381
+ width: 100%;
382
+ }
383
+
384
+ .tinv-wishlist table input[type="checkbox"] {
385
+ margin-right: 0;
386
+ }
387
+
388
+ .tinv-wishlist table th {
389
+ padding: 1em;
390
+ vertical-align: middle;
391
+ }
392
+
393
+ /*.tinv-wishlist table.tinvwl-table-manage-lists.tinvwl-public th {
394
+ padding: 22px 15px;
395
+ }
396
+
397
+ .tinv-wishlist table.tinvwl-table-manage-list th {
398
+ padding: 19px 12px;
399
+ }*/
400
+
401
+ .tinv-wishlist table td {
402
+ padding: 1em;
403
+ vertical-align: middle;
404
+ }
405
+
406
+ /*.tinv-wishlist table.tinvwl-table-manage-lists.tinvwl-public td {
407
+ padding: 36px 15px;
408
+ }
409
+
410
+ .tinv-wishlist table.tinvwl-table-manage-list td {
411
+ padding: 26px 12px;
412
+ }*/
413
+
414
+ .tinv-wishlist .tinvwl-table-manage-list .product-cb {
415
+ /*padding-left: 10px;
416
+ padding-right: 10px;*/
417
+ width: 35px;
418
+ text-align: center;
419
+ }
420
+
421
+ .tinv-wishlist .tinvwl-table-manage-list .product-remove {
422
+ /*padding-left: 10px;
423
+ padding-right: 10px;*/
424
+ width: 46px;
425
+ text-align: center;
426
+ }
427
+
428
+ .tinv-wishlist .product-remove button {
429
+ display: block;
430
+ margin: 0 auto;
431
+ width: 27px;
432
+ height: 27px;
433
+ text-indent: -9999px;
434
+ -webkit-border-radius: 100%;
435
+ -moz-border-radius: 100%;
436
+ border-radius: 100%;
437
+ padding: 0;
438
+ box-shadow: none;
439
+ border-bottom: 0;
440
+ border: none;
441
+ background-image: url(../img/icon_delete.png);
442
+ background-position: center;
443
+ background-repeat: no-repeat;
444
+ background-color: #f7f7f7;
445
+ }
446
+
447
+ .tinv-wishlist .product-thumbnail {
448
+ min-width: 100px;
449
+ width: 100px;
450
+ }
451
+
452
+ .tinv-wishlist .product-thumbnail .wp-post-image {
453
+ margin-bottom: 0;
454
+ }
455
+
456
+ /*.tinv-wishlist td.product-name {
457
+ line-height: 20px;
458
+ }
459
+
460
+ .tinv-wishlist td.product-name a {
461
+ line-height: 1.14285714;
462
+ }*/
463
+
464
+ .tinv-wishlist td.product-name a + .variation {
465
+ margin-top: 2px;
466
+ }
467
+
468
+ /*.tinv-wishlist td.product-price {
469
+ line-height: 24px;
470
+ }*/
471
+
472
+ /*.tinv-wishlist .tinvwl-table-manage-list td.product-stock {
473
+ padding-left: 9px;
474
+ padding-right: 9px;
475
+ }*/
476
+
477
+ .tinv-wishlist .product-stock i {
478
+ /*font-size: 12px;*/
479
+ margin-right: 15px;
480
+ }
481
+
482
+ .tinv-wishlist .product-stock p {
483
+ display: table;
484
+ }
485
+
486
+ .tinv-wishlist .product-stock span {
487
+ display: table-cell;
488
+ vertical-align: middle;
489
+ }
490
+
491
+ /*.tinv-wishlist .tinvwl-table-manage-list td.product-quantity {
492
+ padding-left: 9px;
493
+ padding-right: 9px;
494
+ }*/
495
+
496
+ .tinv-wishlist.woocommerce .product-quantity {
497
+ width: 80px;
498
+ text-align: center;
499
+ }
500
+
501
+ .tinv-wishlist.woocommerce table .quantity .qty {
502
+ max-width: 100%;
503
+ width: 62px;
504
+ /*padding: 10px 12px;*/
505
+ text-align: left;
506
+ }
507
+
508
+ .tinv-wishlist .product-action {
509
+ width: 135px;
510
+ text-align: center;
511
+ }
512
+
513
+ .tinv-wishlist table.tinvwl-table-manage-list .product-action {
514
+ /*padding-left: 11px;
515
+ padding-right: 11px;*/
516
+ }
517
+
518
+ .tinv-wishlist .product-action .button {
519
+ width: 100%;
520
+ }
521
+
522
+ .tinv-wishlist .product-action > .button > i {
523
+ display: none;
524
+ }
525
+
526
+ .tinv-wishlist .product-action .tinvwl_move_product_button {
527
+ margin-top: 5px;
528
+ }
529
+
530
+ .tinv-wishlist table thead th .tinvwl-mobile,
531
+ .tinv-wishlist .tinvwl-table-manage-list .product-action button[name="tinvwl-remove"] {
532
+ display: none;
533
+ }
534
+
535
+ .tinv-wishlist .tinvwl-table-manage-list .product-action > button[name="tinvwl-remove"] > i {
536
+ /*font-size: 12px;*/
537
+ margin-right: 0;
538
+ }
539
+
540
+ .tinv-wishlist .tinvwl-table-manage-list .product-action > .tinvwl_move_product_button > i {
541
+ /*font-size: 12px;*/
542
+ }
543
+
544
+ @media only screen and (max-width: 1024px) {
545
+ .tinv-wishlist .tinvwl-table-manage-lists:not(.tinvwl-public) {
546
+ margin-top: 0;
547
+ }
548
+
549
+ .tinv-wishlist .tinvwl-table-manage-list .product-remove {
550
+ display: none;
551
+ }
552
+
553
+ .tinv-wishlist .tinvwl-table-manage-list .product-action button[name="tinvwl-remove"] {
554
+ display: inline-block;
555
+ margin-top: 5px;
556
+ }
557
+
558
+ .tinv-wishlist .product-action {
559
+ width: 60px;
560
+ }
561
+ }
562
+
563
+ @media only screen and (max-width: 1024px) and (min-width: 641px) {
564
+ .tinv-wishlist .tinvwl-table-manage-list td.product-stock p {
565
+ display: block;
566
+ text-align: center;
567
+ }
568
+
569
+ .tinv-wishlist .product-stock span {
570
+ display: block;
571
+ }
572
+
573
+ .tinv-wishlist .tinvwl-table-manage-list td.product-stock i {
574
+ margin-right: 0;
575
+ }
576
+
577
+ .tinv-wishlist .tinvwl-table-manage-list td.product-stock .tinvwl-txt {
578
+ display: none;
579
+ }
580
+
581
+ .tinv-wishlist .product-thumbnail {
582
+ max-width: 76px;
583
+ width: 76px;
584
+ }
585
+
586
+ /*.tinv-wishlist table.tinvwl-table-manage-list td.product-thumbnail {
587
+ padding-left: 10px;
588
+ padding-right: 10px;
589
+ }*/
590
+ /*.tinv-wishlist .product-action .button {
591
+ padding: 11.5px 12px !important;
592
+ }*/
593
+ .tinv-wishlist .product-action .button > i {
594
+ display: inline-block;
595
+ margin-right: 0;
596
+ }
597
+
598
+ .tinv-wishlist .product-action .button .tinvwl-txt {
599
+ display: none;
600
+ }
601
+ }
602
+
603
+ @media only screen and (max-width: 640px) {
604
+ /*.tinv-wishlist table.tinvwl-table-manage-list th {
605
+ padding-top: 26px;
606
+ padding-bottom: 26px;
607
+ }*/
608
+ .tinv-wishlist table.tinvwl-table-manage-list thead th:not(.product-name),
609
+ .tinv-wishlist table.tinvwl-table-manage-list tbody td.product-remove,
610
+ .tinv-wishlist table.tinvwl-table-manage-lists thead th:not(.wishlist-name),
611
+ .tinv-wishlist thead th .tinvwl-full {
612
+ display: none;
613
+ }
614
+
615
+ .tinv-wishlist table.tinvwl-table-manage-list thead th.product-name,
616
+ .tinv-wishlist table.tinvwl-table-manage-lists thead th.wishlist-name {
617
+ display: block;
618
+ width: 100%;
619
+ text-align: center;
620
+ }
621
+
622
+ .tinv-wishlist table thead th .tinvwl-mobile {
623
+ display: block;
624
+ }
625
+
626
+ .tinv-wishlist table.tinvwl-table-manage-list tbody td,
627
+ .tinv-wishlist table.tinvwl-table-manage-lists tbody td,
628
+ .tinv-wishlist table.tinvwl-table-manage-lists.tinvwl-public tbody td {
629
+ display: block;
630
+ width: 100% !important;
631
+ /*padding: 0 12px 12px;*/
632
+ text-align: center;
633
+ }
634
+
635
+ .tinv-wishlist table.tinvwl-table-manage-list tbody td:not(:last-child),
636
+ .tinv-wishlist table.tinvwl-table-manage-lists tbody td:not(:last-child),
637
+ .tinv-wishlist table.tinvwl-table-manage-lists.tinvwl-public tbody td:not(:last-child) {
638
+ border-bottom: 0;
639
+ }
640
+
641
+ /*.tinv-wishlist table.tinvwl-table-manage-list tbody td:first-child,
642
+ .tinv-wishlist table.tinvwl-table-manage-lists tbody td:first-child {
643
+ padding-top: 20px;
644
+ }
645
+
646
+ .tinv-wishlist table.tinvwl-table-manage-list td,
647
+ .tinv-wishlist table.tinvwl-table-manage-lists td,
648
+ .tinv-wishlist table.tinvwl-table-manage-lists.tinvwl-public td {
649
+ padding: 12px;
650
+ }
651
+
652
+ .tinv-wishlist .tinvwl-table-manage-list td.product-cb,
653
+ .tinv-wishlist .tinvwl-table-manage-lists td.wishlist-cb {
654
+ padding-bottom: 20px;
655
+ }
656
+
657
+ .tinv-wishlist .tinvwl-table-manage-list td.product-thumbnail {
658
+ padding-top: 20px;
659
+ padding-bottom: 14px;
660
+ }
661
+
662
+ .tinv-wishlist .tinvwl-table-manage-list td.product-cb + td.product-remove + td.product-thumbnail {
663
+ padding-top: 0;
664
+ }
665
+
666
+ .tinv-wishlist .tinvwl-table-manage-list td.product-name {
667
+ padding-bottom: 6px;
668
+ }
669
+
670
+ .tinv-wishlist .tinvwl-table-manage-list td.product-price {
671
+ padding-bottom: 23px;
672
+ }
673
+
674
+ .tinv-wishlist .tinvwl-table-manage-list td.product-date {
675
+ padding-bottom: 16px;
676
+ }
677
+
678
+ .tinv-wishlist .tinvwl-table-manage-list td.product-stock {
679
+ padding-bottom: 24px;
680
+ }
681
+
682
+ .tinv-wishlist .tinvwl-table-manage-list td.product-quantity {
683
+ padding: 0 12px 10px;
684
+ }*/
685
+ .tinv-wishlist .product-thumbnail img,
686
+ .tinv-wishlist .product-stock p {
687
+ margin: 0 auto;
688
+ }
689
+
690
+ .tinv-wishlist .product-thumbnail img {
691
+ max-width: 80px;
692
+ }
693
+
694
+ .tinv-wishlist.woocommerce table .quantity .qty {
695
+ text-align: center;
696
+ width: 100%;
697
+ }
698
+
699
+ .tinv-wishlist .product-action .tinvwl_move_product_button {
700
+ margin-top: 10px;
701
+ }
702
+
703
+ .tinv-wishlist .tinvwl-table-manage-list .product-action button[name="tinvwl-remove"] {
704
+ margin-top: 10px;
705
+ text-indent: -9999px;
706
+ background-image: url(../img/icon_delete.png);
707
+ background-position: center;
708
+ background-repeat: no-repeat;
709
+ }
710
+
711
+ .tinv-wishlist .tinvwl-table-manage-list .product-action button[name="tinvwl-remove"] > i {
712
+ display: inline-block;
713
+ }
714
+
715
+ .tinv-wishlist table.tinvwl-table-manage-list tfoot td {
716
+ display: block;
717
+ width: 100%;
718
+ }
719
+
720
+ .tinv-wishlist table.tinvwl-table-manage-lists .wishlist-action button[value="manage_remove"] {
721
+ width: 100%;
722
+ }
723
+
724
+ .tinv-wishlist table.tinvwl-table-manage-lists .wishlist-name .tinvwl-rename-button {
725
+ float: none;
726
+ }
727
+ }
728
+
729
+ /* Manage Lists */
730
+
731
+ .tinv-wishlist .wishlist-cb {
732
+ /*padding-left: 10px;
733
+ padding-right: 10px;*/
734
+ width: 33px;
735
+ text-align: center;
736
+ }
737
+
738
+ .tinv-wishlist .wishlist-name .tinvwl-rename-input input {
739
+ width: 100%;
740
+ }
741
+
742
+ .tinv-wishlist .wishlist-name .tinvwl-rename-button {
743
+ float: right;
744
+ }
745
+
746
+ .tinv-wishlist .wishlist-name .tinvwl-rename-button > i {
747
+ margin-right: 10px;
748
+ }
749
+
750
+ .tinv-wishlist table:not(.tinvwl-public) .wishlist-date,
751
+ .tinv-wishlist .wishlist-privacy {
752
+ width: 18%;
753
+ }
754
+
755
+ /*.tinv-wishlist .wishlist-privacy {
756
+ padding-left: 15px;
757
+ padding-right: 15px;
758
+ }*/
759
+
760
+ .tinv-wishlist .wishlist-privacy select {
761
+ width: 100%;
762
+ }
763
+
764
+ .tinv-wishlist .wishlist-name {
765
+ width: 45%;
766
+ }
767
+
768
+ .tinv-wishlist .wishlist-action {
769
+ /*padding-left: 10px;
770
+ padding-right: 10px;*/
771
+ width: 120px;
772
+ text-align: center;
773
+ }
774
+
775
+ /*.tinv-wishlist .wishlist-action button[value="manage_remove"] {
776
+ background-image: url(../img/icon_delete.png);
777
+ background-repeat: no-repeat;
778
+ background-position: 14px 12px;
779
+ padding-left: 39px;
780
+ padding-right: 17px;
781
+ }*/
782
+
783
+ .tinv-wishlist .wishlist-action button[value="manage_remove"] > i {
784
+ display: none;
785
+ /*font-size: 12px;*/
786
+ margin-right: 0;
787
+ }
788
+
789
+ /*.tinv-wishlist tfoot .tinvwl-to-left,*/
790
+ .tinv-wishlist tfoot .tinvwl-to-right .tinv-create-list {
791
+ /*float: left;*/
792
+ display: inline-block;
793
+ vertical-align: middle;
794
+ }
795
+
796
+ .tinv-wishlist tfoot .tinvwl-to-right .tinv-create-list > a.button {
797
+ margin-right: 0;
798
+ }
799
+
800
+ /*.tinv-wishlist tfoot .tinvwl-to-right {
801
+ float: right;
802
+ }*/
803
+
804
+ .tinv-wishlist tfoot .tinvwl-to-left + .tinvwl-to-right {
805
+ margin-top: 0;
806
+ }
807
+
808
+ .tinv-wishlist tfoot .tinvwl-to-left + .tinvwl-to-right {
809
+ margin-top: -10px;
810
+ }
811
+
812
+ .tinv-wishlist tfoot .tinvwl-to-left:not(:empty) {
813
+ float: left;
814
+ width: 35%;
815
+ margin-right: 2%;
816
+ }
817
+
818
+ .tinv-wishlist tfoot .tinvwl-to-right {
819
+ float: left;
820
+ width: 63%;
821
+ text-align: right;
822
+ }
823
+
824
+ .tinv-wishlist tfoot .tinvwl-to-right > * {
825
+ margin: 10px 0 0;
826
+ vertical-align: middle;
827
+ }
828
+
829
+ .tinv-wishlist tfoot .tinvwl-to-right > * + * {
830
+ margin-left: 10px;
831
+ }
832
+
833
+ .tinv-wishlist tfoot .tinvwl-to-left:empty + .tinvwl-to-right {
834
+ width: 100%;
835
+ }
836
+
837
+ .tinv-wishlist button[value="product_apply"] /*,
838
+ .tinv-wishlist button + button[value="product_selected"],
839
+ .tinv-wishlist button + button[value="product_all"]*/
840
+ {
841
+ /*margin-left: 10px;*/
842
+ }
843
+
844
+ .tinv-wishlist button[value="manage_apply"] /*,
845
+ .tinv-wishlist button[value="manage_save"]*/
846
+ {
847
+ /*margin-left: 10px;*/
848
+ }
849
+
850
+ @media only screen and (max-width: 1024px) {
851
+ .tinv-wishlist .wishlist-name .tinvwl-rename-button span {
852
+ display: none;
853
+ }
854
+
855
+ .tinv-wishlist .wishlist-name .tinvwl-rename-button > i {
856
+ margin-right: 0;
857
+ }
858
+
859
+ /*.tinv-wishlist .wishlist-action button[value="manage_remove"] {
860
+ padding-left: 17px;
861
+ }*/
862
+ .tinv-wishlist .wishlist-action {
863
+ width: 60px;
864
+ }
865
+
866
+ .tinv-wishlist tfoot .tinvwl-to-left:not(:empty),
867
+ .tinv-wishlist tfoot .tinvwl-to-right {
868
+ float: none;
869
+ width: auto;
870
+ }
871
+
872
+ .tinv-wishlist tfoot .tinvwl-to-left:not(:empty) {
873
+ margin-right: 0;
874
+ }
875
+
876
+ .tinv-wishlist tfoot .tinvwl-to-right {
877
+ text-align: left;
878
+ }
879
+ }
880
+
881
+ @media only screen and (max-width: 1024px) and (min-width: 641px) {
882
+ /*.tinv-wishlist tfoot .tinvwl-to-left + .tinvwl-to-right {
883
+ margin-top: 10px;
884
+ }*/
885
+ /*.tinv-wishlist .wishlist-action button[value="manage_remove"] {
886
+ background-image: none;
887
+ padding: 11.5px 12px !important;
888
+ }*/
889
+ .tinv-wishlist .wishlist-action button[value="manage_remove"] span {
890
+ display: none;
891
+ }
892
+
893
+ .tinv-wishlist .wishlist-action button[value="manage_remove"] > i {
894
+ display: inline-block;
895
+ }
896
+
897
+ .tinv-wishlist tfoot .tinvwl-to-left + .tinvwl-to-right {
898
+ margin-top: 0;
899
+ }
900
+ }
901
+
902
+ @media only screen and (max-width: 640px) {
903
+ /*.tinv-wishlist .wishlist-action button[value="manage_remove"] {
904
+ text-indent: -9999px;
905
+ background-position: center;
906
+ }*/
907
+ .tinv-wishlist button[value="manage_apply"] .tinvwl-mobile,
908
+ .tinv-wishlist button[value="product_apply"] .tinvwl-mobile {
909
+ display: none;
910
+ }
911
+
912
+ .tinv-wishlist tfoot .tinvwl-to-right .tinv-create-list {
913
+ display: block;
914
+ }
915
+
916
+ .tinv-wishlist .tinvwl-table-manage-list tfoot .tinvwl-to-right button,
917
+ .tinv-wishlist .tinvwl-table-manage-list tfoot .tinvwl-to-right .button,
918
+ .tinv-wishlist .tinvwl-table-manage-lists tfoot .tinvwl-to-right button,
919
+ .tinv-wishlist .tinvwl-table-manage-lists tfoot .tinvwl-to-right .button {
920
+ width: 100%;
921
+ margin: 10px 0 0;
922
+ }
923
+
924
+ .tinv-wishlist tfoot .tinvwl-to-right > * {
925
+ margin: 10px 0 0;
926
+ }
927
+
928
+ /*.tinv-wishlist .tinvwl-table-manage-list tfoot select,
929
+ .tinv-wishlist .tinvwl-table-manage-lists tfoot select {
930
+ width: calc(100% - 127px);
931
+ }*/
932
+ .tinv-wishlist tfoot .tinvwl-to-right button:first-child,
933
+ .tinv-wishlist tfoot .tinvwl-to-right .button:first-child {
934
+ margin-top: 0 !important;
935
+ }
936
+
937
+ .tinv-wishlist tfoot .tinvwl-to-left + .tinvwl-to-right {
938
+ margin-top: 20px;
939
+ }
940
+
941
+ /*.tinv-wishlist tfoot .tinvwl-to-left + .tinvwl-to-right {
942
+ margin-top: 10px;
943
+ }*/
944
+ }
945
+
946
+ /* Table Navigation */
947
+
948
+ .tinv-wishlist .social-buttons + .tinv-wishlist-clear + .navigation-button,
949
+ .tinv-wishlist .tinvwl-estimate-wrap + .tinv-wishlist-clear + .navigation-button {
950
+ margin-top: 16px;
951
+ }
952
+
953
+ .tinv-wishlist .navigation-button > li {
954
+ float: left;
955
+ }
956
+
957
+ .tinv-wishlist .navigation-button > li + li {
958
+ /*margin-left: 10px;*/
959
+ }
960
+
961
+ .tinv-wishlist .navigation-button {
962
+ margin-top: -10px;
963
+ }
964
+
965
+ .tinv-wishlist .navigation-button > li > a,
966
+ .tinv-wishlist .navigation-button > li > .tinv-create-list > a {
967
+ margin-right: 30px;
968
+ margin-top: 10px;
969
+ display: inline-block;
970
+ }
971
+
972
+ .tinv-wishlist .navigation-button > li > a.button,
973
+ .tinv-wishlist .navigation-button > li > .tinv-create-list > a.button {
974
+ margin-right: 10px;
975
+ }
976
+
977
+ .tinv-wishlist .navigation-button > li:last-child > a,
978
+ .tinv-wishlist .navigation-button > li:last-child > .tinv-create-list > a {
979
+ margin-right: 0;
980
+ }
981
+
982
+ @media only screen and (max-width: 1024px) {
983
+ .tinv-wishlist .social-buttons + .tinv-wishlist-clear + .navigation-button {
984
+ margin-top: 30px;
985
+ }
986
+ }
987
+
988
+ /* Social Buttons */
989
+
990
+ .tinv-wishlist .social-buttons {
991
+ float: right;
992
+ }
993
+
994
+ .tinv-wishlist form + .social-buttons {
995
+ }
996
+
997
+ .tinv-wishlist .social-buttons > span,
998
+ .tinv-wishlist .social-buttons > ul {
999
+ display: inline-block;
1000
+ vertical-align: middle;
1001
+ }
1002
+
1003
+ .tinv-wishlist .social-buttons > span {
1004
+ margin-right: 27px;
1005
+ }
1006
+
1007
+ .tinv-wishlist .social-buttons li {
1008
+ float: left;
1009
+ }
1010
+
1011
+ .tinv-wishlist .social-buttons li {
1012
+ margin-right: 5px;
1013
+ }
1014
+
1015
+ .tinv-wishlist .social-buttons li:last-child {
1016
+ margin-right: 0;
1017
+ }
1018
+
1019
+ .tinv-wishlist .social-buttons li a {
1020
+ /*padding: 0px 10px;*/
1021
+ display: block;
1022
+ width: 41px;
1023
+ height: 41px;
1024
+ -webkit-border-radius: 50%;
1025
+ -moz-border-radius: 50%;
1026
+ border-radius: 50%;
1027
+ text-indent: -9999px;
1028
+ text-align: center;
1029
+ box-shadow: none;
1030
+ border-bottom: 0;
1031
+ background-image: url(../img/social.png);
1032
+ background-repeat: no-repeat;
1033
+ background-position: center;
1034
+ }
1035
+
1036
+ .tinv-wishlist .social-buttons li a.white {
1037
+ background-image: url(../img/social_white.png);
1038
+ }
1039
+
1040
+ .tinv-wishlist .social-buttons li a.dark {
1041
+ background-image: url(../img/social.png);
1042
+ }
1043
+
1044
+ .tinv-wishlist .social-buttons li a:hover {
1045
+ }
1046
+
1047
+ .tinv-wishlist .social-buttons li .social-facebook {
1048
+ background-position: 16px center;
1049
+ }
1050
+
1051
+ .tinv-wishlist .social-buttons li .social-twitter {
1052
+ background-position: -28px center;
1053
+ }
1054
+
1055
+ .tinv-wishlist .social-buttons li .social-pinterest {
1056
+ background-position: -73px center;
1057
+ }
1058
+
1059
+ .tinv-wishlist .social-buttons li .social-google {
1060
+ background-position: -119px center;
1061
+ }
1062
+
1063
+ .tinv-wishlist .social-buttons li .social-email {
1064
+ background-position: -164px center;
1065
+ }
1066
+
1067
+ @media only screen and (max-width: 1024px) {
1068
+ .tinv-wishlist .social-buttons {
1069
+ float: none;
1070
+ width: auto;
1071
+ text-align: left;
1072
+ margin-top: 20px;
1073
+ }
1074
+ }
1075
+
1076
+ .tinv-wishlist .navigation-button .tinv-create-list > a.tinvwl-no-icon > i,
1077
+ .tinv-wishlist .navigation-button li > a.tinvwl-no-icon > i {
1078
+ display: none;
1079
+ }
1080
+
1081
+ @media only screen and (max-width: 640px) {
1082
+ .tinv-wishlist .social-buttons {
1083
+ text-align: center;
1084
+ }
1085
+
1086
+ .tinv-wishlist .navigation-button > li {
1087
+ width: 20%;
1088
+ text-align: center;
1089
+ }
1090
+
1091
+ .tinv-wishlist .navigation-button.tinvwl-btns-count-1 > li {
1092
+ width: 100%;
1093
+ }
1094
+
1095
+ .tinv-wishlist .navigation-button.tinvwl-btns-count-2 > li {
1096
+ width: 50%;
1097
+ }
1098
+
1099
+ .tinv-wishlist .navigation-button.tinvwl-btns-count-3 > li {
1100
+ width: 33%;
1101
+ }
1102
+
1103
+ .tinv-wishlist .navigation-button.tinvwl-btns-count-4 > li {
1104
+ width: 25%;
1105
+ }
1106
+
1107
+ .tinv-wishlist .navigation-button > li + li {
1108
+ width: 20%;
1109
+ }
1110
+
1111
+ .tinv-wishlist .navigation-button.tinvwl-btns-count-1 > li + li {
1112
+ width: 100%;
1113
+ }
1114
+
1115
+ .tinv-wishlist .navigation-button.tinvwl-btns-count-2 > li + li {
1116
+ width: 50%;
1117
+ }
1118
+
1119
+ .tinv-wishlist .navigation-button.tinvwl-btns-count-3 > li + li {
1120
+ width: 33%;
1121
+ }
1122
+
1123
+ .tinv-wishlist .navigation-button.tinvwl-btns-count-4 > li + li {
1124
+ width: 25%;
1125
+ }
1126
+
1127
+ .tinv-wishlist .navigation-button > li > a,
1128
+ .tinv-wishlist .navigation-button > li > .tinv-create-list > a {
1129
+ width: calc(100% - 10px);
1130
+ margin-right: 0;
1131
+ }
1132
+
1133
+ .tinv-wishlist .navigation-button .tinv-create-list > a .tinvwl-txt,
1134
+ .tinv-wishlist .navigation-button li > a .tinvwl-txt {
1135
+ display: none;
1136
+ }
1137
+
1138
+ .tinv-wishlist .navigation-button .tinv-create-list > a > i,
1139
+ .tinv-wishlist .navigation-button li > a > i {
1140
+ display: inline-block !important;
1141
+ margin-right: 0;
1142
+ }
1143
+
1144
+ .tinv-wishlist .social-buttons > span {
1145
+ display: block;
1146
+ margin-top: 0;
1147
+ margin-right: 0;
1148
+ margin-bottom: 5px;
1149
+ }
1150
+ }
1151
+
1152
+ /* Navigation */
1153
+
1154
+ .tinv-wishlist .tinv-lists-nav {
1155
+ margin-bottom: 35px;
1156
+ }
1157
+
1158
+ .tinv-wishlist table + .tinv-lists-nav {
1159
+ margin-top: 35px;
1160
+ }
1161
+
1162
+ .tinv-wishlist .tinv-prev,
1163
+ .tinv-wishlist .tinv-next {
1164
+ display: inline-block;
1165
+ }
1166
+
1167
+ .tinv-wishlist .tinv-prev {
1168
+ float: left;
1169
+ }
1170
+
1171
+ .tinv-wishlist .tinv-next {
1172
+ float: right;
1173
+ }
1174
+
1175
+ .tinv-wishlist .tinv-prev i {
1176
+ margin-left: 0;
1177
+ margin-right: 18px;
1178
+ }
1179
+
1180
+ .tinv-wishlist .tinv-next i {
1181
+ margin-left: 18px;
1182
+ margin-right: 0;
1183
+ }
1184
+
1185
+ /* Login */
1186
+
1187
+ .tinv-wishlist .tinv-login {
1188
+ margin-bottom: 30px;
1189
+ }
1190
+
1191
+ .tinv-wishlist .tinv-login i.login_key {
1192
+ display: inline-block;
1193
+ vertical-align: text-bottom;
1194
+ margin-right: 16px;
1195
+ }
1196
+
1197
+ .tinv-wishlist .tinv-login .login {
1198
+ display: none;
1199
+ border: none;
1200
+ padding: 0;
1201
+ margin: 24px 0 0;
1202
+ }
1203
+
1204
+ .tinv-wishlist .tinv-login h2 {
1205
+ display: none;
1206
+ }
1207
+
1208
+ .tinv-wishlist .tinv-login .lost_password {
1209
+ margin-bottom: 0;
1210
+ }
1211
+
1212
+ .tinv-wishlist .tinv-login form .form-row {
1213
+ padding: 0;
1214
+ margin: 0;
1215
+ }
1216
+
1217
+ .tinv-wishlist .tinv-login form .form-row + .tinvwl-input-group-btn {
1218
+ padding-left: 9px;
1219
+ }
1220
+
1221
+ .tinv-wishlist.woocommerce .tinv-login form .form-row-first,
1222
+ .tinv-wishlist.woocommerce .tinv-login form .form-row-last {
1223
+ width: 50%;
1224
+ }
1225
+
1226
+ .tinv-wishlist.woocommerce .tinv-login form .form-row-first {
1227
+ padding-right: 4px;
1228
+ }
1229
+
1230
+ .tinv-wishlist.woocommerce .tinv-login form .form-row-last {
1231
+ padding-left: 4px;
1232
+ }
1233
+
1234
+ .tinv-wishlist .tinv-login form .tinv-rememberme,
1235
+ .tinv-wishlist .tinv-login form .lost_password {
1236
+ float: left;
1237
+ margin-top: 16px;
1238
+ }
1239
+
1240
+ .tinv-wishlist .tinv-login .tinv-rememberme + .lost_password {
1241
+ margin-left: 26px;
1242
+ }
1243
+
1244
+ .tinv-wishlist .tinv-login .tinvwl-icon {
1245
+ position: absolute;
1246
+ top: 50%;
1247
+ left: 14px;
1248
+ display: none;
1249
+ width: 12px;
1250
+ height: 14px;
1251
+ margin-top: -7px;
1252
+ background-repeat: no-repeat;
1253
+ background-position: center;
1254
+ }
1255
+
1256
+ .tinv-wishlist .tinv-login input[name="username"] + .tinvwl-icon {
1257
+ height: 17px;
1258
+ margin-top: -8.5px;
1259
+ background-image: url(../img/login_name.png);
1260
+ }
1261
+
1262
+ .tinv-wishlist .tinv-login input[name="password"] + .tinvwl-icon {
1263
+ left: 17px;
1264
+ height: 14px;
1265
+ margin-top: -7px;
1266
+ background-image: url(../img/login_pass.png);
1267
+ }
1268
+
1269
+ @media only screen and (max-width: 1024px) {
1270
+ .tinv-wishlist .tinv-login form input[name="login"] {
1271
+ min-width: auto;
1272
+ }
1273
+ }
1274
+
1275
+ @media only screen and (max-width: 667px) {
1276
+ .tinv-wishlist.woocommerce .tinv-login form .form-row-first,
1277
+ .tinv-wishlist.woocommerce .tinv-login form .form-row-last {
1278
+ float: none;
1279
+ width: 100%;
1280
+ }
1281
+
1282
+ .tinv-wishlist.woocommerce .tinv-login form .form-row-first,
1283
+ .tinv-wishlist.woocommerce .tinv-login form .form-row-last {
1284
+ padding: 0;
1285
+ }
1286
+
1287
+ .tinv-wishlist.woocommerce .tinv-login form .form-row-last {
1288
+ margin-top: 10px;
1289
+ }
1290
+
1291
+ .tinv-wishlist.woocommerce .tinv-login form .tinvwl-input-group-btn {
1292
+ display: block;
1293
+ padding: 0;
1294
+ width: auto;
1295
+ margin-top: 10px;
1296
+ }
1297
+ }
1298
+
1299
+ /* Modal */
1300
+
1301
+ .tinv-overlay {
1302
+ position: fixed;
1303
+ top: 0;
1304
+ left: 0;
1305
+ width: 100%;
1306
+ height: 100%;
1307
+ visibility: hidden;
1308
+ opacity: 0;
1309
+
1310
+ -webkit-transition: opacity .3s ease, visibility .3s ease;
1311
+ -moz-transition: opacity .3s ease, visibility .3s ease;
1312
+ -o-transition: opacity .3s ease, visibility .3s ease;
1313
+ transition: opacity .3s ease, visibility .3s ease;
1314
+
1315
+ background: #191919;
1316
+ }
1317
+
1318
+ .tinv-modal.tinv-modal-open .tinv-overlay {
1319
+ visibility: visible;
1320
+ opacity: .5;
1321
+ }
1322
+
1323
+ .admin-bar .tinv-wishlist .tinv-modal {
1324
+ padding-top: 32px !important;
1325
+ }
1326
+
1327
+ .tinv-wishlist .tinv-modal .tinv-modal-inner {
1328
+ position: relative;
1329
+ margin: 0 auto;
1330
+ background-color: #ffffff;
1331
+ }
1332
+
1333
+ .tinv-wishlist .tinv-modal {
1334
+ overflow-y: auto;
1335
+ overflow-x: hidden;
1336
+ top: 0;
1337
+ left: 0;
1338
+ width: 0;
1339
+ height: 0;
1340
+ z-index: 9999;
1341
+ position: fixed;
1342
+ outline: none !important;
1343
+ -webkit-backface-visibility: hidden;
1344
+ visibility: hidden;
1345
+ opacity: 0;
1346
+ text-align: left;
1347
+
1348
+ -webkit-transition: opacity .3s ease, visibility .3s ease;
1349
+ -moz-transition: opacity .3s ease, visibility .3s ease;
1350
+ -o-transition: opacity .3s ease, visibility .3s ease;
1351
+ transition: opacity .3s ease, visibility .3s ease;
1352
+ }
1353
+
1354
+ .tinv-wishlist .tinv-modal.tinv-modal-open {
1355
+ visibility: visible;
1356
+ opacity: 1;
1357
+ width: 100%;
1358
+ height: 100%;
1359
+ }
1360
+
1361
+ .tinv-wishlist .tinv-modal .tinv-close-modal {
1362
+ display: inline-block;
1363
+ position: absolute;
1364
+ top: 17px;
1365
+ right: 14px;
1366
+ width: 26px;
1367
+ height: 26px;
1368
+ line-height: 26px;
1369
+ font-size: 12px;
1370
+ text-align: center;
1371
+ -webkit-border-radius: 50%;
1372
+ -moz-border-radius: 50%;
1373
+ border-radius: 50%;
1374
+ box-shadow: none;
1375
+ border-bottom: 0;
1376
+ box-shadow: none !important;
1377
+ background-color: #ebe9eb;
1378
+ }
1379
+
1380
+ .tinv-wishlist .tinv-modal .tinv-close-modal:hover {
1381
+ }
1382
+
1383
+ @media screen and (max-width: 782px) {
1384
+ .admin-bar .tinv-wishlist .tinv-modal {
1385
+ padding-top: 46px !important;
1386
+ }
1387
+ }
1388
+
1389
+ @media screen and (max-width: 600px) {
1390
+ .admin-bar .tinv-wishlist .tinv-modal {
1391
+ padding-top: 0 !important;
1392
+ }
1393
+
1394
+ .tinv-wishlist .tinv-modal .tinv-close-modal {
1395
+ position: static;
1396
+ display: block;
1397
+ margin: 0 auto 20px;
1398
+ }
1399
+ }
1400
+
1401
+ /* Move */
1402
+
1403
+ .tinv-wishlist .tinv-modal .tinv-modal-inner {
1404
+ max-width: 360px;
1405
+ padding: 40px;
1406
+ }
1407
+
1408
+ .tinv-wishlist .tinv-modal .tinv-modal-inner {
1409
+ /*padding-top: 35px;*/
1410
+ }
1411
+
1412
+ .tinv-wishlist .tinv-modal img, .tinv-wishlist .tinv-modal .icon_big_times, .tinv-wishlist .tinv-modal .icon_big_heart_check, .tinv-wishlist .tinv-modal .icon_big_heart_next, .tinv-wishlist .tinv-modal .icon_big_heart_plus, .tinv-wishlist .tinv-modal .icon_big_heart_subscribe {
1413
+ display: block;
1414
+ margin: 0 auto;
1415
+ margin-bottom: 25px;
1416
+ opacity: 1 !important;
1417
+ }
1418
+
1419
+ .tinv-wishlist .tinv-modal ul {
1420
+ overflow: visible;
1421
+ list-style: disc;
1422
+ margin: 10px 0 0 20px;
1423
+ }
1424
+
1425
+ .tinv-wishlist .tinv-modal li {
1426
+ list-style: disc !important;
1427
+ }
1428
+
1429
+ .tinv-wishlist.tinv-create-list form ul,
1430
+ .tinv-wishlist .tinv-create-list .tinv-modal ul {
1431
+ list-style: none !important;
1432
+ margin: 25px 0 0;
1433
+ }
1434
+
1435
+ .tinv-wishlist.tinv-create-list form li,
1436
+ .tinv-wishlist .tinv-create-list .tinv-modal li {
1437
+ list-style: none !important;
1438
+ }
1439
+
1440
+ .tinv-wishlist.tinv-create-list form,
1441
+ .tinv-wishlist .tinv-create-list .tinv-modal form {
1442
+ /*background: none;
1443
+ padding: 0;*/
1444
+ }
1445
+
1446
+ .tinv-wishlist .tinv-modal .already-in {
1447
+ margin-bottom: 35px;
1448
+ }
1449
+
1450
+ .tinv-wishlist .tinv-modal .delete-notification {
1451
+ margin-bottom: 25px;
1452
+ }
1453
+
1454
+ .tinv-wishlist .tinv-modal .already-in ul {
1455
+ overflow: visible;
1456
+ margin: 12px 0 27px 17px;
1457
+ }
1458
+
1459
+ /*.tinv-wishlist .tinv-modal .already-in ul li + li {
1460
+ margin-top: 10px;
1461
+ }*/
1462
+
1463
+ .tinv-wishlist .tinv-modal select {
1464
+ width: 100%;
1465
+ }
1466
+
1467
+ .tinv-wishlist .tinv-modal select + input,
1468
+ .tinv-wishlist .tinv-modal select + button,
1469
+ .tinv-wishlist .tinv-modal label + button,
1470
+ .tinv-wishlist .tinv-modal label + input,
1471
+ .tinv-wishlist .tinv-modal input + button,
1472
+ .tinv-wishlist .tinv-modal button + button,
1473
+ .tinv-wishlist .tinv-modal button + .button,
1474
+ .woocommerce .tinv-wishlist .tinv-modal button + button.button {
1475
+ margin-top: 12px;
1476
+ width: 100%;
1477
+ }
1478
+
1479
+ .tinv-wishlist .tinv-modal .already-in + label {
1480
+ display: block;
1481
+ margin-top: 6px;
1482
+ }
1483
+
1484
+ .tinv-wishlist .tinv-modal label select {
1485
+ margin-top: 8px;
1486
+ }
1487
+
1488
+ .tinv-wishlist .tinv-modal .delete-notification + button {
1489
+ width: 100%;
1490
+ }
1491
+
1492
+ /*.tinv-wishlist .tinv-modal .button {
1493
+ font-weight: normal;
1494
+ padding: 11px 19px;
1495
+ }
1496
+
1497
+ .tinv-wishlist .tinv-modal button i,
1498
+ .tinv-wishlist .tinv-modal .button i {
1499
+ font-size: 12px;
1500
+ }*/
1501
+
1502
+ /* Added to Wishlist */
1503
+
1504
+ .tinv-wishlist .tinvwl_added_to_wishlist,
1505
+ .tinv-wishlist .tinvwl_created_wishlist {
1506
+ text-align: center;
1507
+ }
1508
+
1509
+ .tinv-wishlist .tinvwl_added_to_wishlist .tinv-txt,
1510
+ .tinv-wishlist .tinvwl_created_wishlist .tinv-txt {
1511
+ margin-bottom: 25px;
1512
+ }
1513
+
1514
+ .woocommerce .tinv-wishlist .tinvwl_added_to_wishlist.tinv-modal button.button,
1515
+ .tinv-wishlist .tinvwl_created_wishlist button {
1516
+ margin-top: 0;
1517
+ margin-bottom: 10px;
1518
+ }
1519
+
1520
+ /*.tinv-wishlist .tinvwl_added_to_wishlist .tinvwl_button_view,
1521
+ .tinv-wishlist .tinvwl_created_wishlist .tinvwl_button_view {
1522
+ padding: 11px 11px;
1523
+ }*/
1524
+
1525
+ .tinv-wishlist .tinv-modal .tinvwl-buttons-group {
1526
+ margin-top: 20px;
1527
+ }
1528
+
1529
+ /* Follow Wishlist */
1530
+
1531
+ .tinvwl-subscribe-wrap {
1532
+ float: left;
1533
+ }
1534
+
1535
+ .tinv-wishlist .tinv-modal.tinvwl-subscribe img {
1536
+ margin-bottom: 30px;
1537
+ }
1538
+
1539
+ .tinv-wishlist .tinvwl-subscribe .tinvwl-txt {
1540
+ margin-bottom: 18px;
1541
+ }
1542
+
1543
+ .tinv-wishlist .tinvwl-subscribe ul {
1544
+ list-style: none;
1545
+ margin: 0;
1546
+ }
1547
+
1548
+ .tinv-wishlist .tinvwl-subscribe li {
1549
+ list-style: none !important;
1550
+ }
1551
+
1552
+ .tinv-wishlist .tinvwl-subscribe li + li {
1553
+ margin-top: 8px;
1554
+ }
1555
+
1556
+ .tinv-wishlist .tinvwl-subscribe li input[type="checkbox"] {
1557
+ margin-right: 11px;
1558
+ }
1559
+
1560
+ /*.tinv-wishlist .tinvwl-subscribe .tinvwl-buttons-group button i {
1561
+ font-size: 14px;
1562
+ }*//*todo*/
1563
+
1564
+ .tinv-wishlist .tinvwl-buttons-group button {
1565
+ width: 100%;
1566
+ }
1567
+
1568
+ .tinv-wishlist .tinvwl-buttons-group button + button {
1569
+ margin-top: 7px;
1570
+ }
1571
+
1572
+ .tinv-wishlist .tinvwl-buttons-group + button {
1573
+ width: 100%;
1574
+ margin-top: 7px;
1575
+ }
1576
+
1577
+ .tinv-wishlist .tinvwl-subscribe-wrap + .tinv-wishlist-clear + .navigation-button {
1578
+ margin-top: 26px;
1579
+ }
1580
+
1581
+ /* Estimate */
1582
+
1583
+ .tinvwl-estimate-wrap {
1584
+ float: left;
1585
+ }
1586
+
1587
+ /*.woocommerce.tinv-wishlist .tinvwl-estimate-wrap .button.tinv-modal-btn {
1588
+ padding: 11.5px 15px;
1589
+ }*/
1590
+
1591
+ .tinv-wishlist .estimate-dialogbox .tinv-modal-inner {
1592
+ max-width: 778px;
1593
+ padding: 35px 30px 30px;
1594
+ text-align: center;
1595
+ }
1596
+
1597
+ .tinv-wishlist .tinv-modal h2 {
1598
+ text-align: center;
1599
+ margin: 0 0 35px;
1600
+ }
1601
+
1602
+ .tinv-wishlist .estimate-dialogbox textarea {
1603
+ height: 200px;
1604
+ margin-bottom: 30px;
1605
+ }
1606
+
1607
+ /*.woocommerce.tinv-wishlist .estimate-dialogbox button {
1608
+ padding: 15px 47px;
1609
+ }*/
1610
+
1611
+ @media only screen and (max-width: 1024px) {
1612
+ .tinvwl-estimate-wrap,
1613
+ .tinvwl-subscribe-wrap {
1614
+ float: none;
1615
+ width: auto;
1616
+ }
1617
+
1618
+ .tinv-wishlist .tinvwl-subscribe-wrap + .tinv-wishlist-clear + .navigation-button {
1619
+ margin-top: 30px;
1620
+ }
1621
+ }
1622
+
1623
+ @media only screen and (max-width: 640px) {
1624
+ .tinvwl-estimate-wrap,
1625
+ .tinvwl-subscribe-wrap,
1626
+ .social-buttons,
1627
+ .navigation-button,
1628
+ .tinv-lists-nav {
1629
+ margin-left: 12px;
1630
+ margin-right: 12px;
1631
+ }
1632
+
1633
+ .tinvwl-estimate-wrap .tinv-modal-btn,
1634
+ .tinvwl-subscribe-wrap .tinv-modal-btn {
1635
+ width: 100%;
1636
+ }
1637
+
1638
+ .tinvwl-estimate-wrap + .social-buttons {
1639
+ margin-top: 10px;
1640
+ }
1641
+ }
1642
+
1643
+ @media screen and (max-width: 600px) {
1644
+ .tinv-wishlist .estimate-dialogbox .tinv-modal-inner {
1645
+ padding-top: 25px;
1646
+ }
1647
+ }
1648
+
1649
+ /* Create Wishlist Modal */
1650
+
1651
+ .tinv-wishlist .tinv-create-list .tinv-modal-inner {
1652
+ max-width: 778px;
1653
+ padding: 30px;
1654
+ }
1655
+
1656
+ /* Modal Errors */
1657
+
1658
+ .tinv-wishlist .tinvwl-input-group.tinvwl-has-error .form-control,
1659
+ .tinv-wishlist .tinvwl-has-error:not(.tinvwl-input-group) {
1660
+ border: 2px solid #FF0000;
1661
+ }
1662
+
1663
+ .tinv-wishlist .tinvwl-has-error + .tinvwl-error {
1664
+ padding: 5px 0 0 5px;
1665
+ color: #FF0000;
1666
+ }
1667
+
1668
+ /* Tooltip */
1669
+
1670
+ .tinvwl-tooltip {
1671
+ display: none;
1672
+ }
1673
+
1674
+ /* Bootstrap */
1675
+
1676
+ .tinvwl-input-group {
1677
+ position: relative;
1678
+ display: table;
1679
+ /*width: 100%;*/
1680
+ border-collapse: separate;
1681
+ }
1682
+
1683
+ .tinvwl-input-group .form-control {
1684
+ position: relative;
1685
+ z-index: 1;
1686
+ float: left;
1687
+ height: 38px;
1688
+ width: 100%;
1689
+ margin-bottom: 0;
1690
+ }
1691
+
1692
+ .tinvwl-input-group .form-control + .tinvwl-input-group-btn {
1693
+ padding-left: 15px;
1694
+ }
1695
+
1696
+ .tinv-wishlist .tinvwl-to-left .tinvwl-input-group .form-control + .tinvwl-input-group-btn {
1697
+ padding-left: 10px;
1698
+ }
1699
+
1700
+ .tinv-wishlist .tinv-search-form .tinvwl-input-group .form-control + .tinvwl-input-group-btn {
1701
+ padding-left: 9px;
1702
+ }
1703
+
1704
+ .tinvwl-input-group-addon,
1705
+ .tinvwl-input-group-btn,
1706
+ .tinvwl-input-group .form-control {
1707
+ display: table-cell;
1708
+ }
1709
+
1710
+ .tinvwl-input-group-addon,
1711
+ .tinvwl-input-group-btn {
1712
+ width: 1%;
1713
+ white-space: nowrap;
1714
+ vertical-align: top;
1715
+ }
1716
+
1717
+ @media only screen and (max-width: 640px) {
1718
+ .tinvwl-input-group {
1719
+ width: 100%;
1720
+ }
1721
+ }
1722
+
1723
+ @media only screen and (max-width: 667px) {
1724
+ .tinvwl-input-group:not(.tinvwl-no-full) {
1725
+ display: block;
1726
+ }
1727
+
1728
+ .tinvwl-input-group:not(.tinvwl-no-full) .form-control {
1729
+ float: none;
1730
+ }
1731
+
1732
+ .tinvwl-input-group:not(.tinvwl-no-full) .form-control + .tinvwl-input-group-btn,
1733
+ .tinv-wishlist .tinv-search-form .tinvwl-input-group:not(.tinvwl-no-full) .form-control + .tinvwl-input-group-btn {
1734
+ padding-top: 10px;
1735
+ padding-left: 0;
1736
+ }
1737
+
1738
+ .tinvwl-input-group:not(.tinvwl-no-full) .tinvwl-input-group-addon,
1739
+ .tinvwl-input-group:not(.tinvwl-no-full) .tinvwl-input-group-btn,
1740
+ .tinvwl-input-group:not(.tinvwl-no-full) .form-control {
1741
+ display: block;
1742
+ }
1743
+
1744
+ .tinvwl-input-group:not(.tinvwl-no-full) .tinvwl-input-group-addon,
1745
+ .tinvwl-input-group:not(.tinvwl-no-full) .tinvwl-input-group-btn,
1746
+ .tinvwl-input-group:not(.tinvwl-no-full) .tinvwl-input-group-addon > input,
1747
+ .tinvwl-input-group:not(.tinvwl-no-full) .tinvwl-input-group-addon > button,
1748
+ .tinvwl-input-group:not(.tinvwl-no-full) .tinvwl-input-group-btn > input,
1749
+ .tinvwl-input-group:not(.tinvwl-no-full) .tinvwl-input-group-btn > button {
1750
+ width: 100%;
1751
+ }
1752
+ }
1753
+
1754
+ /* Misc */
1755
+
1756
+ .tinv-table {
1757
+ display: table;
1758
+ width: 100%;
1759
+ height: 100%;
1760
+ }
1761
+
1762
+ .tinv-cell {
1763
+ display: table-cell;
1764
+ vertical-align: middle;
1765
+ }
1766
+
1767
+ .tinv-wishlist .tinv-wishlist-clear {
1768
+ visibility: visible;
1769
+ width: auto;
1770
+ height: auto;
1771
+ }
1772
+
1773
+ .tinv-wishlist-clear:before,
1774
+ .tinv-wishlist-clear:after {
1775
+ content: " ";
1776
+ display: table;
1777
+ }
1778
+
1779
+ .tinv-wishlist-clear:after {
1780
+ clear: both;
1781
+ }
1782
+
1783
+ /******************IMAGES**********************/
1784
+
1785
+ .icon_big_times {
1786
+ background: url(../img/icon_big_times.png) no-repeat center;
1787
+ display: inline-block;
1788
+ background-size: 46px 46px;
1789
+ width: 46px;
1790
+ height: 46px;
1791
+ }
1792
+
1793
+ .icon_big_heart_check {
1794
+ background: url(../img/icon_big_heart_check.png) no-repeat center;
1795
+ display: inline-block;
1796
+ background-size: 48px 42px;
1797
+ width: 48px;
1798
+ height: 42px;
1799
+ }
1800
+
1801
+ .icon_big_heart_next {
1802
+ background: url(../img/icon_big_heart_next.png) no-repeat center;
1803
+ display: inline-block;
1804
+ background-size: 89px 42px;
1805
+ width: 89px;
1806
+ height: 42px;
1807
+ }
1808
+
1809
+ .icon_big_heart_plus {
1810
+ background: url(../img/icon_big_heart_plus.png) no-repeat center;
1811
+ display: inline-block;
1812
+ background-size: 48px 42px;
1813
+ width: 48px;
1814
+ height: 42px;
1815
+ }
1816
+
1817
+ .icon_big_heart_subscribe {
1818
+ background: url(../img/icon_big_heart_subscribe.png) no-repeat center;
1819
+ display: inline-block;
1820
+ background-size: 48px 42px;
1821
+ width: 48px;
1822
+ height: 42px;
1823
+ }
1824
+
1825
+ .login_key {
1826
+ background: url(../img/login_key.png) no-repeat center;
1827
+ display: inline-block;
1828
+ background-size: 20px 20px;
1829
+ width: 20px;
1830
+ height: 20px;
1831
+ }
1832
+
1833
+ /**************** RETINA ***************/
1834
+
1835
+ .tinv-wishlist .social-buttons li a {
1836
+ background-size: 195px 18px;
1837
+ }
1838
+
1839
+ .tinv-wishlist .tinv-login input[name="username"] + .tinvwl-icon {
1840
+ background-size: 11px 17px;
1841
+ }
1842
+
1843
+ .tinv-wishlist .tinv-login input[name="password"] + .tinvwl-icon {
1844
+ background-size: 12px 14px;
1845
+ }
1846
+
1847
+ .tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-heart:before,
1848
+ .tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-heart-plus:before,
1849
+ .woocommerce ul.products li.product a.button.tinvwl-icon-heart.tinvwl_add_to_wishlist_button:before,
1850
+ .woocommerce-page ul.products li.product a.button.tinvwl-icon-heart.tinvwl_add_to_wishlist_button:before,
1851
+ .woocommerce ul.products li.product a.button.tinvwl-icon-heart-plus.tinvwl_add_to_wishlist_button:before,
1852
+ .woocommerce-page ul.products li.product a.button.tinvwl-icon-heart-plus.tinvwl_add_to_wishlist_button:before {
1853
+ background-size: 30px 50px;
1854
+ }
1855
+
1856
+ .tinv-wishlist .product-remove button {
1857
+ background-size: 11px 11px;
1858
+ }
1859
+
1860
+ .tinv-wishlist .tinvwl-table-manage-list .product-action button[name="tinvwl-remove"] {
1861
+ background-size: 11px 11px;
1862
+ }
1863
+
1864
+ @media only screen and (-webkit-min-device-pixel-ratio: 1.5), not all, not all, not all {
1865
+ .tinv-wishlist .social-buttons li a {
1866
+ background-image: url(../img/social@2x.png);
1867
+ }
1868
+
1869
+ .tinv-wishlist .social-buttons li a.white {
1870
+ background-image: url(../img/social_white@2x.png);
1871
+ }
1872
+
1873
+ .tinv-wishlist .social-buttons li a.dark {
1874
+ background-image: url(../img/social@2x.png);
1875
+ }
1876
+
1877
+ .tinv-wishlist .tinv-login input[name="username"] + .tinvwl-icon {
1878
+ background-image: url(../img/login_name@2x.png);
1879
+ }
1880
+
1881
+ .tinv-wishlist .tinv-login input[name="password"] + .tinvwl-icon {
1882
+ background-image: url(../img/login_pass@2x.png);
1883
+ }
1884
+
1885
+ .tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-heart:before,
1886
+ .tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-heart-plus:before,
1887
+ .woocommerce ul.products li.product a.button.tinvwl-icon-heart.tinvwl_add_to_wishlist_button:before,
1888
+ .woocommerce-page ul.products li.product a.button.tinvwl-icon-heart.tinvwl_add_to_wishlist_button:before,
1889
+ .woocommerce ul.products li.product a.button.tinvwl-icon-heart-plus.tinvwl_add_to_wishlist_button:before,
1890
+ .woocommerce-page ul.products li.product a.button.tinvwl-icon-heart-plus.tinvwl_add_to_wishlist_button:before {
1891
+ background-image: url(../img/add_to_wishlist@2x.png);
1892
+ }
1893
+
1894
+ .tinv-wishlist .product-remove button {
1895
+ background-image: url(../img/icon_delete@2x.png);
1896
+ }
1897
+
1898
+ .tinv-wishlist .tinvwl-table-manage-list .product-action button[name="tinvwl-remove"] {
1899
+ background-image: url(../img/icon_delete@2x.png);
1900
+ }
1901
+
1902
+ .icon_big_times {
1903
+ background-image: url(../img/icon_big_times@2x.png);
1904
+ }
1905
+
1906
+ .icon_big_heart_check {
1907
+ background-image: url(../img/icon_big_heart_check@2x.png);
1908
+ }
1909
+
1910
+ .icon_big_heart_next {
1911
+ background-image: url(../img/icon_big_heart_next@2x.png);
1912
+ }
1913
+
1914
+ .icon_big_heart_plus {
1915
+ background-image: url(../img/icon_big_heart_plus@2x.png);
1916
+ }
1917
+
1918
+ .icon_big_heart_subscribe {
1919
+ background-image: url(../img/icon_big_heart_subscribe@2x.png);
1920
+ }
1921
+
1922
+ .login_key {
1923
+ background-image: url(../img/login_key@2x.png);
1924
+ }
1925
+
1926
+ }
1927
+
1928
+ .disabled-add-wishlist {
1929
+ color: #FFFFFF;
1930
+ cursor: not-allowed;
1931
+ }
1932
+
1933
+ .empty-name-wishlist {
1934
+ border-color: #FF0000 !important;
1935
+ }
1936
+
1937
+ .tinvwl_remove_from_wishlist-text {
1938
+ display: none;
1939
+ }
1940
+
1941
+ .tinvwl-product-in-list.tinvwl-product-make-remove .tinvwl_remove_from_wishlist-text {
1942
+ display: inline;
1943
+ }
1944
+
1945
+ .tinvwl-product-in-list.tinvwl-product-make-remove .tinvwl_add_to_wishlist-text {
1946
+ display: none;
1947
+ }
1948
+
1949
+ @media only screen and (max-width:1024px) {
1950
+ .tinv-wishlist .tinvwl-table-manage-list .product-remove { display: table-cell; }
1951
+ }
1952
+
1953
+ @media only screen and (max-width:640px) {
1954
+ .tinv-wishlist table.tinvwl-table-manage-list tbody td.product-remove { display: block; }
1955
+ }
asset/css/public.min.css CHANGED
@@ -1,2 +1 @@
1
-
2
- .tinv-wishlist *,.tinvwl-wishlist *:before,.tinvwl-wishlist *:after{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.tinv-wishlist select{width:140px}.tinv-wishlist p:last-child{margin-bottom:0}.tinv-wishlist ul{list-style:none;margin:0;padding:0}.tinv-wishlist table,.tinv-wishlist form{margin-bottom:0}.woocommerce.tinv-wishlist #respond input#submit.alt,.woocommerce.tinv-wishlist a.button.alt,.woocommerce.tinv-wishlist button.button.alt,.woocommerce.tinv-wishlist input.button.alt{text-align:center}.tinv-wishlist button i,.tinv-wishlist input[type="button"] i,.tinv-wishlist input[type="reset"] i,.tinv-wishlist input[type="submit"] i,.tinv-wishlist .button i{margin-right:14px}.tinv-wishlist .navigation-button a i{margin-right:14px}.tinv-wishlist a.tinvwl-my-wishlists i{margin-right:17px}.tinv-wishlist .tinvwl-estimate-wrap a i{margin-right:18px}.tinv-wishlist a.tinv-close-modal i{margin-right:0}a.wishlist_products_counter{text-decoration:none}.tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-heart:before,.tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-heart-plus:before,.woocommerce ul.products li.product a.button.tinvwl-icon-heart.tinvwl_add_to_wishlist_button:before,.woocommerce-page ul.products li.product a.button.tinvwl-icon-heart.tinvwl_add_to_wishlist_button:before,.woocommerce ul.products li.product a.button.tinvwl-icon-heart-plus.tinvwl_add_to_wishlist_button:before,.woocommerce-page ul.products li.product a.button.tinvwl-icon-heart-plus.tinvwl_add_to_wishlist_button:before,a.wishlist_products_counter.top_wishlist-heart-plus:before,a.wishlist_products_counter.top_wishlist-heart:before{content:'';display:inline-block;margin-right:10px;background-image:url(../img/add_to_wishlist.png);background-repeat:repeat}.tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-heart.no-txt,.tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-heart-plus.no-txt,a.wishlist_products_counter.top_wishlist-heart-plus.no-txt{position:relative;width:36px;height:36px;vertical-align:bottom}.tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-heart.no-txt:before,.tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-heart-plus.no-txt:before{position:absolute;top:50%;left:50%;margin-right:0!important}.tinv-wishlist .button.tinvwl_add_to_wishlist_button.tinvwl-icon-heart.no-txt,.tinv-wishlist .button.tinvwl_add_to_wishlist_button.tinvwl-icon-heart-plus.no-txt{padding-left:1em;vertical-align:bottom}.tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-heart.icon-black:before,a.wishlist_products_counter.top_wishlist-heart.top_wishlist-black:before{background-position:0 0;width:13px;height:11px}.tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-heart.no-txt:before,a.wishlist_products_counter.top_wishlist-heart.no-txt:before{margin-top:-5px;margin-left:-6px}.tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-heart.tinvwl-product-in-list.icon-white:before,a.wishlist_products_counter.top_wishlist-heart.top_wishlist-white:before{background-position:0 13px;width:13px;height:12px}.tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-heart.tinvwl-product-in-list.icon-black:before{background-position:0 -12px;width:13px;height:12px}.tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-heart.tinvwl-product-in-list.no-txt:before{margin-top:-6px;margin-left:-6px}.tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-heart-plus.icon-black:before,a.wishlist_products_counter.top_wishlist-heart-plus.top_wishlist-black:before{background-position:15px 0;width:14px;height:12px}.tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-heart-plus.icon-white:before,a.wishlist_products_counter.top_wishlist-heart-plus.top_wishlist-white:before{background-position:15px 25px;width:14px;height:12px}.tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-heart-plus.no-txt:before{margin-top:-5px;margin-left:-7px}.tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-heart.icon-white:before,a.wishlist_products_counter.top_wishlist-heart.top_wishlist-white:before{background-position:0 -25px;width:13px;height:11px}.tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-heart-plus.tinvwl-product-in-list.icon-black:before{background-position:15px -11px;width:15px;height:14px}.tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-heart-plus.tinvwl-product-in-list.icon-white:before{background-position:15px 14px;width:15px;height:14px}.tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-heart-plus.tinvwl-product-in-list.no-txt:before{margin-top:-7px;margin-left:-7px}.tinv-wishlist.tinvwl-before-add-to-cart .tinvwl_add_to_wishlist_button{margin-bottom:15px}.tinv-wishlist.tinvwl-before-add-to-cart .tinvwl_add_to_wishlist_button.no-txt{float:left;margin-right:10px;margin-bottom:0}.tinv-wishlist.tinvwl-after-add-to-cart .tinvwl_add_to_wishlist_button{margin-top:15px}.tinv-wishlist.tinvwl-after-add-to-cart .tinvwl_add_to_wishlist_button.no-txt{margin-left:10px}.single-product .tinv-wishlist.tinvwl-after-add-to-cart .tinvwl_add_to_wishlist_button.no-txt{margin-top:0}.tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-custom.no-txt,a.wishlist_products_counter.top_wishlist-custom.no-txt{padding:10px 11px;line-height:1}.tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-custom img,a.wishlist_products_counter.top_wishlist-custom img{display:inline-block!important;vertical-align:baseline;width:auto!important;max-width:16px;max-height:16px;margin-bottom:0;margin:0 6px 0 0!important}.tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-custom.no-txt img,a.wishlist_products_counter.top_wishlist-custom.no-txt img{margin-right:0!important}.single-product div.product form.cart .button.tinvwl_add_to_wishlist_button,div.product form.cart .tinvwl_add_to_wishlist_button{float:none}ul.products li.product .tinvwl_add_to_wishlist_button{margin-top:1em}.tinvwl_add_to_wishlist_button{display:inline-block;cursor:pointer}.tinv-wishlist.woocommerce .stock.in-stock:before{content:none}.tinv-wraper.tinv-wishlist{font-size:100%}.tinv-create-list li input[type="radio"]{margin-right:10px}.tinv-create-list li+li{margin-top:15px}.tinv-create-list .input-group+ul{margin-top:25px}.tinv-search-list{margin-bottom:36px}.tinv-wishlist .tinv-header{margin-bottom:30px}.tinv-wishlist table{position:relative;table-layout:auto;margin-bottom:30px;z-index:2}.tinv-wishlist table.tinvwl-table-manage-list{margin-bottom:27px;width:100%}.tinv-wishlist table input[type="checkbox"]{margin-right:0}.tinv-wishlist table th{padding:1em;vertical-align:middle}.tinv-wishlist table td{padding:1em;vertical-align:middle}.tinv-wishlist .tinvwl-table-manage-list .product-cb{width:35px;text-align:center}.tinv-wishlist .tinvwl-table-manage-list .product-remove{width:46px;text-align:center}.tinv-wishlist .product-remove button{display:block;margin:0 auto;width:27px;height:27px;text-indent:-9999px;-webkit-border-radius:100%;-moz-border-radius:100%;border-radius:100%;padding:0;box-shadow:none;border-bottom:0;border:0;background-image:url(../img/icon_delete.png);background-position:center;background-repeat:no-repeat;background-color:#f7f7f7}.tinv-wishlist .product-thumbnail{min-width:100px;width:100px}.tinv-wishlist .product-thumbnail .wp-post-image{margin-bottom:0}.tinv-wishlist td.product-name a+.variation{margin-top:2px}.tinv-wishlist .product-stock i{margin-right:15px}.tinv-wishlist .product-stock p{display:table}.tinv-wishlist .product-stock span{display:table-cell;vertical-align:middle}.tinv-wishlist.woocommerce .product-quantity{width:80px;text-align:center}.tinv-wishlist.woocommerce table .quantity .qty{max-width:100%;width:62px;text-align:left}.tinv-wishlist .product-action{width:135px;text-align:center}.tinv-wishlist .product-action .button{width:100%}.tinv-wishlist .product-action>.button>i{display:none}.tinv-wishlist .product-action .tinvwl_move_product_button{margin-top:5px}.tinv-wishlist table thead th .tinvwl-mobile,.tinv-wishlist .tinvwl-table-manage-list .product-action button[name="tinvwl-remove"]{display:none}.tinv-wishlist .tinvwl-table-manage-list .product-action>button[name="tinvwl-remove"]>i{margin-right:0}@media only screen and (max-width:1024px){.tinv-wishlist .tinvwl-table-manage-lists:not(.tinvwl-public){margin-top:0}.tinv-wishlist .tinvwl-table-manage-list .product-remove{display:none}.tinv-wishlist .tinvwl-table-manage-list .product-action button[name="tinvwl-remove"]{display:inline-block;margin-top:5px}.tinv-wishlist .product-action{width:60px}}@media only screen and (max-width:1024px) and (min-width:641px){.tinv-wishlist .tinvwl-table-manage-list td.product-stock p{display:block;text-align:center}.tinv-wishlist .product-stock span{display:block}.tinv-wishlist .tinvwl-table-manage-list td.product-stock i{margin-right:0}.tinv-wishlist .tinvwl-table-manage-list td.product-stock .tinvwl-txt{display:none}.tinv-wishlist .product-thumbnail{max-width:76px;width:76px}.tinv-wishlist .product-action .button>i{display:inline-block;margin-right:0}.tinv-wishlist .product-action .button .tinvwl-txt{display:none}}@media only screen and (max-width:640px){.tinv-wishlist table.tinvwl-table-manage-list thead th:not(.product-name),.tinv-wishlist table.tinvwl-table-manage-list tbody td.product-remove,.tinv-wishlist table.tinvwl-table-manage-lists thead th:not(.wishlist-name),.tinv-wishlist thead th .tinvwl-full{display:none}.tinv-wishlist table.tinvwl-table-manage-list thead th.product-name,.tinv-wishlist table.tinvwl-table-manage-lists thead th.wishlist-name{display:block;width:100%;text-align:center}.tinv-wishlist table thead th .tinvwl-mobile{display:block}.tinv-wishlist table.tinvwl-table-manage-list tbody td,.tinv-wishlist table.tinvwl-table-manage-lists tbody td,.tinv-wishlist table.tinvwl-table-manage-lists.tinvwl-public tbody td{display:block;width:100%!important;text-align:center}.tinv-wishlist table.tinvwl-table-manage-list tbody td:not(:last-child),.tinv-wishlist table.tinvwl-table-manage-lists tbody td:not(:last-child),.tinv-wishlist table.tinvwl-table-manage-lists.tinvwl-public tbody td:not(:last-child){border-bottom:0}.tinv-wishlist .product-thumbnail img,.tinv-wishlist .product-stock p{margin:0 auto}.tinv-wishlist .product-thumbnail img{max-width:80px}.tinv-wishlist.woocommerce table .quantity .qty{text-align:center;width:100%}.tinv-wishlist .product-action .tinvwl_move_product_button{margin-top:10px}.tinv-wishlist .tinvwl-table-manage-list .product-action button[name="tinvwl-remove"]{margin-top:10px;text-indent:-9999px;background-image:url(../img/icon_delete.png);background-position:center;background-repeat:no-repeat}.tinv-wishlist .tinvwl-table-manage-list .product-action button[name="tinvwl-remove"]>i{display:inline-block}.tinv-wishlist table.tinvwl-table-manage-list tfoot td{display:block;width:100%}.tinv-wishlist table.tinvwl-table-manage-lists .wishlist-action button[value="manage_remove"]{width:100%}.tinv-wishlist table.tinvwl-table-manage-lists .wishlist-name .tinvwl-rename-button{float:none}}.tinv-wishlist .wishlist-cb{width:33px;text-align:center}.tinv-wishlist .wishlist-name .tinvwl-rename-input input{width:100%}.tinv-wishlist .wishlist-name .tinvwl-rename-button{float:right}.tinv-wishlist .wishlist-name .tinvwl-rename-button>i{margin-right:10px}.tinv-wishlist table:not(.tinvwl-public) .wishlist-date,.tinv-wishlist .wishlist-privacy{width:18%}.tinv-wishlist .wishlist-privacy select{width:100%}.tinv-wishlist .wishlist-name{width:45%}.tinv-wishlist .wishlist-action{width:120px;text-align:center}.tinv-wishlist .wishlist-action button[value="manage_remove"]>i{display:none;margin-right:0}.tinv-wishlist tfoot .tinvwl-to-right .tinv-create-list{display:inline-block;vertical-align:middle}.tinv-wishlist tfoot .tinvwl-to-right .tinv-create-list>a.button{margin-right:0}.tinv-wishlist tfoot .tinvwl-to-left+.tinvwl-to-right{margin-top:0}.tinv-wishlist tfoot .tinvwl-to-left+.tinvwl-to-right{margin-top:-10px}.tinv-wishlist tfoot .tinvwl-to-left:not(:empty){float:left;width:35%;margin-right:2%}.tinv-wishlist tfoot .tinvwl-to-right{float:left;width:63%;text-align:right}.tinv-wishlist tfoot .tinvwl-to-right>*{margin:10px 0 0;vertical-align:middle}.tinv-wishlist tfoot .tinvwl-to-right>*+*{margin-left:10px}.tinv-wishlist tfoot .tinvwl-to-left:empty+.tinvwl-to-right{width:100%}@media only screen and (max-width:1024px){.tinv-wishlist .wishlist-name .tinvwl-rename-button span{display:none}.tinv-wishlist .wishlist-name .tinvwl-rename-button>i{margin-right:0}.tinv-wishlist .wishlist-action{width:60px}.tinv-wishlist tfoot .tinvwl-to-left:not(:empty),.tinv-wishlist tfoot .tinvwl-to-right{float:none;width:auto}.tinv-wishlist tfoot .tinvwl-to-left:not(:empty){margin-right:0}.tinv-wishlist tfoot .tinvwl-to-right{text-align:left}}@media only screen and (max-width:1024px) and (min-width:641px){.tinv-wishlist .wishlist-action button[value="manage_remove"] span{display:none}.tinv-wishlist .wishlist-action button[value="manage_remove"]>i{display:inline-block}.tinv-wishlist tfoot .tinvwl-to-left+.tinvwl-to-right{margin-top:0}}@media only screen and (max-width:640px){.tinv-wishlist button[value="manage_apply"] .tinvwl-mobile,.tinv-wishlist button[value="product_apply"] .tinvwl-mobile{display:none}.tinv-wishlist tfoot .tinvwl-to-right .tinv-create-list{display:block}.tinv-wishlist .tinvwl-table-manage-list tfoot .tinvwl-to-right button,.tinv-wishlist .tinvwl-table-manage-list tfoot .tinvwl-to-right .button,.tinv-wishlist .tinvwl-table-manage-lists tfoot .tinvwl-to-right button,.tinv-wishlist .tinvwl-table-manage-lists tfoot .tinvwl-to-right .button{width:100%;margin:10px 0 0}.tinv-wishlist tfoot .tinvwl-to-right>*{margin:10px 0 0}.tinv-wishlist tfoot .tinvwl-to-right button:first-child,.tinv-wishlist tfoot .tinvwl-to-right .button:first-child{margin-top:0!important}.tinv-wishlist tfoot .tinvwl-to-left+.tinvwl-to-right{margin-top:20px}}.tinv-wishlist .social-buttons+.tinv-wishlist-clear+.navigation-button,.tinv-wishlist .tinvwl-estimate-wrap+.tinv-wishlist-clear+.navigation-button{margin-top:16px}.tinv-wishlist .navigation-button>li{float:left}.tinv-wishlist .navigation-button{margin-top:-10px}.tinv-wishlist .navigation-button>li>a,.tinv-wishlist .navigation-button>li>.tinv-create-list>a{margin-right:30px;margin-top:10px;display:inline-block}.tinv-wishlist .navigation-button>li>a.button,.tinv-wishlist .navigation-button>li>.tinv-create-list>a.button{margin-right:10px}.tinv-wishlist .navigation-button>li:last-child>a,.tinv-wishlist .navigation-button>li:last-child>.tinv-create-list>a{margin-right:0}@media only screen and (max-width:1024px){.tinv-wishlist .social-buttons+.tinv-wishlist-clear+.navigation-button{margin-top:30px}}.tinv-wishlist .social-buttons{float:right}.tinv-wishlist .social-buttons>span,.tinv-wishlist .social-buttons>ul{display:inline-block;vertical-align:middle}.tinv-wishlist .social-buttons>span{margin-right:27px}.tinv-wishlist .social-buttons li{float:left}.tinv-wishlist .social-buttons li{margin-right:5px}.tinv-wishlist .social-buttons li:last-child{margin-right:0}.tinv-wishlist .social-buttons li a{display:block;width:41px;height:41px;-webkit-border-radius:50%;-moz-border-radius:50%;border-radius:50%;text-indent:-9999px;text-align:center;box-shadow:none;border-bottom:0;background-image:url(../img/social.png);background-repeat:no-repeat;background-position:center}.tinv-wishlist .social-buttons li a.white{background-image:url(../img/social_white.png)}.tinv-wishlist .social-buttons li a.dark{background-image:url(../img/social.png)}.tinv-wishlist .social-buttons li .social-facebook{background-position:16px center}.tinv-wishlist .social-buttons li .social-twitter{background-position:-28px center}.tinv-wishlist .social-buttons li .social-pinterest{background-position:-73px center}.tinv-wishlist .social-buttons li .social-google{background-position:-119px center}.tinv-wishlist .social-buttons li .social-email{background-position:-164px center}@media only screen and (max-width:1024px){.tinv-wishlist .social-buttons{float:none;width:auto;text-align:left;margin-top:20px}}.tinv-wishlist .navigation-button .tinv-create-list>a.tinvwl-no-icon>i,.tinv-wishlist .navigation-button li>a.tinvwl-no-icon>i{display:none}@media only screen and (max-width:640px){.tinv-wishlist .social-buttons{text-align:center}.tinv-wishlist .navigation-button>li{width:20%;text-align:center}.tinv-wishlist .navigation-button.tinvwl-btns-count-1>li{width:100%}.tinv-wishlist .navigation-button.tinvwl-btns-count-2>li{width:50%}.tinv-wishlist .navigation-button.tinvwl-btns-count-3>li{width:33%}.tinv-wishlist .navigation-button.tinvwl-btns-count-4>li{width:25%}.tinv-wishlist .navigation-button>li+li{width:20%}.tinv-wishlist .navigation-button.tinvwl-btns-count-1>li+li{width:100%}.tinv-wishlist .navigation-button.tinvwl-btns-count-2>li+li{width:50%}.tinv-wishlist .navigation-button.tinvwl-btns-count-3>li+li{width:33%}.tinv-wishlist .navigation-button.tinvwl-btns-count-4>li+li{width:25%}.tinv-wishlist .navigation-button>li>a,.tinv-wishlist .navigation-button>li>.tinv-create-list>a{width:calc(100% - 10px);margin-right:0}.tinv-wishlist .navigation-button .tinv-create-list>a .tinvwl-txt,.tinv-wishlist .navigation-button li>a .tinvwl-txt{display:none}.tinv-wishlist .navigation-button .tinv-create-list>a>i,.tinv-wishlist .navigation-button li>a>i{display:inline-block!important;margin-right:0}.tinv-wishlist .social-buttons>span{display:block;margin-top:0;margin-right:0;margin-bottom:5px}}.tinv-wishlist .tinv-lists-nav{margin-bottom:35px}.tinv-wishlist table+.tinv-lists-nav{margin-top:35px}.tinv-wishlist .tinv-prev,.tinv-wishlist .tinv-next{display:inline-block}.tinv-wishlist .tinv-prev{float:left}.tinv-wishlist .tinv-next{float:right}.tinv-wishlist .tinv-prev i{margin-left:0;margin-right:18px}.tinv-wishlist .tinv-next i{margin-left:18px;margin-right:0}.tinv-wishlist .tinv-login{margin-bottom:30px}.tinv-wishlist .tinv-login i.login_key{display:inline-block;vertical-align:text-bottom;margin-right:16px}.tinv-wishlist .tinv-login .login{display:none;border:0;padding:0;margin:24px 0 0}.tinv-wishlist .tinv-login h2{display:none}.tinv-wishlist .tinv-login .lost_password{margin-bottom:0}.tinv-wishlist .tinv-login form .form-row{padding:0;margin:0}.tinv-wishlist .tinv-login form .form-row+.input-group-btn{padding-left:9px}.tinv-wishlist.woocommerce .tinv-login form .form-row-first,.tinv-wishlist.woocommerce .tinv-login form .form-row-last{width:50%}.tinv-wishlist.woocommerce .tinv-login form .form-row-first{padding-right:4px}.tinv-wishlist.woocommerce .tinv-login form .form-row-last{padding-left:4px}.tinv-wishlist .tinv-login form .tinv-rememberme,.tinv-wishlist .tinv-login form .lost_password{float:left;margin-top:16px}.tinv-wishlist .tinv-login .tinv-rememberme+.lost_password{margin-left:26px}.tinv-wishlist .tinv-login .tinvwl-icon{position:absolute;top:50%;left:14px;display:none;width:12px;height:14px;margin-top:-7px;background-repeat:no-repeat;background-position:center}.tinv-wishlist .tinv-login input[name="username"]+.tinvwl-icon{height:17px;margin-top:-8.5px;background-image:url(../img/login_name.png)}.tinv-wishlist .tinv-login input[name="password"]+.tinvwl-icon{left:17px;height:14px;margin-top:-7px;background-image:url(../img/login_pass.png)}@media only screen and (max-width:1024px){.tinv-wishlist .tinv-login form input[name="login"]{min-width:auto}}@media only screen and (max-width:667px){.tinv-wishlist.woocommerce .tinv-login form .form-row-first,.tinv-wishlist.woocommerce .tinv-login form .form-row-last{float:none;width:100%}.tinv-wishlist.woocommerce .tinv-login form .form-row-first,.tinv-wishlist.woocommerce .tinv-login form .form-row-last{padding:0}.tinv-wishlist.woocommerce .tinv-login form .form-row-last{margin-top:10px}.tinv-wishlist.woocommerce .tinv-login form .input-group-btn{display:block;padding:0;width:auto;margin-top:10px}}.tinv-overlay{position:fixed;top:0;left:0;width:100%;height:100%;visibility:hidden;opacity:0;-webkit-transition:opacity .3s ease,visibility .3s ease;-moz-transition:opacity .3s ease,visibility .3s ease;-o-transition:opacity .3s ease,visibility .3s ease;transition:opacity .3s ease,visibility .3s ease;background:#191919}.tinv-modal.tinv-modal-open .tinv-overlay{visibility:visible;opacity:.5}.admin-bar .tinv-wishlist .tinv-modal{padding-top:32px!important}.tinv-wishlist .tinv-modal .tinv-modal-inner{position:relative;margin:0 auto;background-color:#fff}.tinv-wishlist .tinv-modal{overflow-y:auto;overflow-x:hidden;top:0;left:0;width:0;height:0;z-index:9999;position:fixed;outline:none!important;-webkit-backface-visibility:hidden;visibility:hidden;opacity:0;text-align:left;-webkit-transition:opacity .3s ease,visibility .3s ease;-moz-transition:opacity .3s ease,visibility .3s ease;-o-transition:opacity .3s ease,visibility .3s ease;transition:opacity .3s ease,visibility .3s ease}.tinv-wishlist .tinv-modal.tinv-modal-open{visibility:visible;opacity:1;width:100%;height:100%}.tinv-wishlist .tinv-modal .tinv-close-modal{display:inline-block;position:absolute;top:17px;right:14px;width:26px;height:26px;line-height:26px;font-size:12px;text-align:center;-webkit-border-radius:50%;-moz-border-radius:50%;border-radius:50%;box-shadow:none;border-bottom:0;box-shadow:none!important;background-color:#ebe9eb}@media screen and (max-width:782px){.admin-bar .tinv-wishlist .tinv-modal{padding-top:46px!important}}@media screen and (max-width:600px){.admin-bar .tinv-wishlist .tinv-modal{padding-top:0!important}.tinv-wishlist .tinv-modal .tinv-close-modal{position:static;display:block;margin:0 auto 20px}}.tinv-wishlist .tinv-modal .tinv-modal-inner{max-width:360px;padding:40px}.tinv-wishlist .tinv-modal img,.tinv-wishlist .tinv-modal .icon_big_times,.tinv-wishlist .tinv-modal .icon_big_heart_check,.tinv-wishlist .tinv-modal .icon_big_heart_next,.tinv-wishlist .tinv-modal .icon_big_heart_plus,.tinv-wishlist .tinv-modal .icon_big_heart_subscribe{display:block;margin:0 auto;margin-bottom:25px;opacity:1!important}.tinv-wishlist .tinv-modal ul{overflow:visible;list-style:disc;margin:10px 0 0 20px}.tinv-wishlist .tinv-modal li{list-style:disc!important}.tinv-wishlist.tinv-create-list form ul,.tinv-wishlist .tinv-create-list .tinv-modal ul{list-style:none!important;margin:25px 0 0}.tinv-wishlist.tinv-create-list form li,.tinv-wishlist .tinv-create-list .tinv-modal li{list-style:none!important}.tinv-wishlist .tinv-modal .already-in{margin-bottom:35px}.tinv-wishlist .tinv-modal .delete-notification{margin-bottom:25px}.tinv-wishlist .tinv-modal .already-in ul{overflow:visible;margin:12px 0 27px 17px}.tinv-wishlist .tinv-modal select{width:100%}.tinv-wishlist .tinv-modal select+input,.tinv-wishlist .tinv-modal select+button,.tinv-wishlist .tinv-modal label+button,.tinv-wishlist .tinv-modal label+input,.tinv-wishlist .tinv-modal input+button,.tinv-wishlist .tinv-modal button+button,.tinv-wishlist .tinv-modal button+.button,.woocommerce .tinv-wishlist .tinv-modal button+button.button{margin-top:12px;width:100%}.tinv-wishlist .tinv-modal .already-in+label{display:block;margin-top:6px}.tinv-wishlist .tinv-modal label select{margin-top:8px}.tinv-wishlist .tinv-modal .delete-notification+button{width:100%}.tinv-wishlist .tinvwl_added_to_wishlist,.tinv-wishlist .tinvwl_created_wishlist{text-align:center}.tinv-wishlist .tinvwl_added_to_wishlist .tinv-txt,.tinv-wishlist .tinvwl_created_wishlist .tinv-txt{margin-bottom:25px}.woocommerce .tinv-wishlist .tinvwl_added_to_wishlist.tinv-modal button.button,.tinv-wishlist .tinvwl_created_wishlist button{margin-top:0;margin-bottom:10px}.tinv-wishlist .tinv-modal .tinvwl-buttons-group{margin-top:20px}.tinvwl-subscribe-wrap{float:left}.tinv-wishlist .tinv-modal.tinvwl-subscribe img{margin-bottom:30px}.tinv-wishlist .tinvwl-subscribe .tinvwl-txt{margin-bottom:18px}.tinv-wishlist .tinvwl-subscribe ul{list-style:none;margin:0}.tinv-wishlist .tinvwl-subscribe li{list-style:none!important}.tinv-wishlist .tinvwl-subscribe li+li{margin-top:8px}.tinv-wishlist .tinvwl-subscribe li input[type="checkbox"]{margin-right:11px}.tinv-wishlist .tinvwl-buttons-group button{width:100%}.tinv-wishlist .tinvwl-buttons-group button+button{margin-top:7px}.tinv-wishlist .tinvwl-buttons-group+button{width:100%;margin-top:7px}.tinv-wishlist .tinvwl-subscribe-wrap+.tinv-wishlist-clear+.navigation-button{margin-top:26px}.tinvwl-estimate-wrap{float:left}.tinv-wishlist .estimate-dialogbox .tinv-modal-inner{max-width:778px;padding:35px 30px 30px;text-align:center}.tinv-wishlist .tinv-modal h2{text-align:center;margin:0 0 35px}.tinv-wishlist .estimate-dialogbox textarea{height:200px;margin-bottom:30px}@media only screen and (max-width:1024px){.tinvwl-estimate-wrap,.tinvwl-subscribe-wrap{float:none;width:auto}.tinv-wishlist .tinvwl-subscribe-wrap+.tinv-wishlist-clear+.navigation-button{margin-top:30px}}@media only screen and (max-width:640px){.tinvwl-estimate-wrap,.tinvwl-subscribe-wrap,.social-buttons,.navigation-button,.tinv-lists-nav{margin-left:12px;margin-right:12px}.tinvwl-estimate-wrap .tinv-modal-btn,.tinvwl-subscribe-wrap .tinv-modal-btn{width:100%}.tinvwl-estimate-wrap+.social-buttons{margin-top:10px}}@media screen and (max-width:600px){.tinv-wishlist .estimate-dialogbox .tinv-modal-inner{padding-top:25px}}.tinv-wishlist .tinv-create-list .tinv-modal-inner{max-width:778px;padding:30px}.tinv-wishlist .input-group.tinvwl-has-error .form-control,.tinv-wishlist .tinvwl-has-error:not(.input-group){border:2px solid #f00}.tinv-wishlist .tinvwl-has-error+.tinvwl-error{padding:5px 0 0 5px;color:#f00}.tinvwl-tooltip{display:none}.input-group{position:relative;display:table;border-collapse:separate}.input-group .form-control{position:relative;z-index:1;float:left;height:38px;width:100%;margin-bottom:0}.input-group .form-control+.input-group-btn{padding-left:15px}.tinv-wishlist .tinvwl-to-left .input-group .form-control+.input-group-btn{padding-left:10px}.tinv-wishlist .tinv-search-form .input-group .form-control+.input-group-btn{padding-left:9px}.input-group-addon,.input-group-btn,.input-group .form-control{display:table-cell}.input-group-addon,.input-group-btn{width:1%;white-space:nowrap;vertical-align:top}@media only screen and (max-width:640px){.input-group{width:100%}}@media only screen and (max-width:667px){.input-group:not(.tinvwl-no-full){display:block}.input-group:not(.tinvwl-no-full) .form-control{float:none}.input-group:not(.tinvwl-no-full) .form-control+.input-group-btn,.tinv-wishlist .tinv-search-form .input-group:not(.tinvwl-no-full) .form-control+.input-group-btn{padding-top:10px;padding-left:0}.input-group:not(.tinvwl-no-full) .input-group-addon,.input-group:not(.tinvwl-no-full) .input-group-btn,.input-group:not(.tinvwl-no-full) .form-control{display:block}.input-group:not(.tinvwl-no-full) .input-group-addon,.input-group:not(.tinvwl-no-full) .input-group-btn,.input-group:not(.tinvwl-no-full) .input-group-addon>input,.input-group:not(.tinvwl-no-full) .input-group-addon>button,.input-group:not(.tinvwl-no-full) .input-group-btn>input,.input-group:not(.tinvwl-no-full) .input-group-btn>button{width:100%}}.tinv-table{display:table;width:100%;height:100%}.tinv-cell{display:table-cell;vertical-align:middle}.tinv-wishlist .tinv-wishlist-clear{visibility:visible;width:auto;height:auto}.tinv-wishlist-clear:before,.tinv-wishlist-clear:after{content:" ";display:table}.tinv-wishlist-clear:after{clear:both}.icon_big_times{background:url(../img/icon_big_times.png) no-repeat center;display:inline-block;background-size:46px 46px;width:46px;height:46px}.icon_big_heart_check{background:url(../img/icon_big_heart_check.png) no-repeat center;display:inline-block;background-size:48px 42px;width:48px;height:42px}.icon_big_heart_next{background:url(../img/icon_big_heart_next.png) no-repeat center;display:inline-block;background-size:89px 42px;width:89px;height:42px}.icon_big_heart_plus{background:url(../img/icon_big_heart_plus.png) no-repeat center;display:inline-block;background-size:48px 42px;width:48px;height:42px}.icon_big_heart_subscribe{background:url(../img/icon_big_heart_subscribe.png) no-repeat center;display:inline-block;background-size:48px 42px;width:48px;height:42px}.login_key{background:url(../img/login_key.png) no-repeat center;display:inline-block;background-size:20px 20px;width:20px;height:20px}.tinv-wishlist .social-buttons li a{background-size:195px 18px}.tinv-wishlist .tinv-login input[name="username"]+.tinvwl-icon{background-size:11px 17px}.tinv-wishlist .tinv-login input[name="password"]+.tinvwl-icon{background-size:12px 14px}.tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-heart:before,.tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-heart-plus:before,.woocommerce ul.products li.product a.button.tinvwl-icon-heart.tinvwl_add_to_wishlist_button:before,.woocommerce-page ul.products li.product a.button.tinvwl-icon-heart.tinvwl_add_to_wishlist_button:before,.woocommerce ul.products li.product a.button.tinvwl-icon-heart-plus.tinvwl_add_to_wishlist_button:before,.woocommerce-page ul.products li.product a.button.tinvwl-icon-heart-plus.tinvwl_add_to_wishlist_button:before{background-size:30px 50px}.tinv-wishlist .product-remove button{background-size:11px 11px}.tinv-wishlist .tinvwl-table-manage-list .product-action button[name="tinvwl-remove"]{background-size:11px 11px}@media only screen and (-webkit-min-device-pixel-ratio:1.5),not all,not all,not all{.tinv-wishlist .social-buttons li a{background-image:url(../img/social@2x.png)}.tinv-wishlist .social-buttons li a.white{background-image:url(../img/social_white@2x.png)}.tinv-wishlist .social-buttons li a.dark{background-image:url(../img/social@2x.png)}.tinv-wishlist .tinv-login input[name="username"]+.tinvwl-icon{background-image:url(../img/login_name@2x.png)}.tinv-wishlist .tinv-login input[name="password"]+.tinvwl-icon{background-image:url(../img/login_pass@2x.png)}.tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-heart:before,.tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-heart-plus:before,.woocommerce ul.products li.product a.button.tinvwl-icon-heart.tinvwl_add_to_wishlist_button:before,.woocommerce-page ul.products li.product a.button.tinvwl-icon-heart.tinvwl_add_to_wishlist_button:before,.woocommerce ul.products li.product a.button.tinvwl-icon-heart-plus.tinvwl_add_to_wishlist_button:before,.woocommerce-page ul.products li.product a.button.tinvwl-icon-heart-plus.tinvwl_add_to_wishlist_button:before{background-image:url(../img/add_to_wishlist@2x.png)}.tinv-wishlist .product-remove button{background-image:url(../img/icon_delete@2x.png)}.tinv-wishlist .tinvwl-table-manage-list .product-action button[name="tinvwl-remove"]{background-image:url(../img/icon_delete@2x.png)}.icon_big_times{background-image:url(../img/icon_big_times@2x.png)}.icon_big_heart_check{background-image:url(../img/icon_big_heart_check@2x.png)}.icon_big_heart_next{background-image:url(../img/icon_big_heart_next@2x.png)}.icon_big_heart_plus{background-image:url(../img/icon_big_heart_plus@2x.png)}.icon_big_heart_subscribe{background-image:url(../img/icon_big_heart_subscribe@2x.png)}.login_key{background-image:url(../img/login_key@2x.png)}}.disabled-add-wishlist{color:#fff;cursor:not-allowed}.empty-name-wishlist{border-color:#f00!important}.tinvwl_remove_from_wishlist-text{display:none}.tinvwl-product-in-list.tinvwl-product-make-remove .tinvwl_remove_from_wishlist-text{display:inline}.tinvwl-product-in-list.tinvwl-product-make-remove .tinvwl_add_to_wishlist-text{display:none}
1
+ .tinv-wishlist form,.tinv-wishlist p:last-child,.tinv-wishlist table{margin-bottom:0}.tinv-wishlist *,.tinvwl-wishlist :after,.tinvwl-wishlist :before{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.tinv-wishlist select{width:140px}.tinv-wishlist ul{list-style:none;margin:0;padding:0}.woocommerce.tinv-wishlist #respond input#submit.alt,.woocommerce.tinv-wishlist a.button.alt,.woocommerce.tinv-wishlist button.button.alt,.woocommerce.tinv-wishlist input.button.alt{text-align:center}.tinv-wishlist .button i,.tinv-wishlist .navigation-button a i,.tinv-wishlist button i,.tinv-wishlist input[type=button] i,.tinv-wishlist input[type=reset] i,.tinv-wishlist input[type=submit] i{margin-right:14px}.tinv-wishlist a.tinvwl-my-wishlists i{margin-right:17px}.tinv-wishlist .tinvwl-estimate-wrap a i{margin-right:18px}.tinv-wishlist a.tinv-close-modal i{margin-right:0}a.wishlist_products_counter{text-decoration:none}.tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-heart-plus:before,.tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-heart:before,.woocommerce ul.products li.product a.button.tinvwl-icon-heart-plus.tinvwl_add_to_wishlist_button:before,.woocommerce ul.products li.product a.button.tinvwl-icon-heart.tinvwl_add_to_wishlist_button:before,.woocommerce-page ul.products li.product a.button.tinvwl-icon-heart-plus.tinvwl_add_to_wishlist_button:before,.woocommerce-page ul.products li.product a.button.tinvwl-icon-heart.tinvwl_add_to_wishlist_button:before,a.wishlist_products_counter.top_wishlist-heart-plus:before,a.wishlist_products_counter.top_wishlist-heart:before{content:'';display:inline-block;margin-right:10px;background-image:url(../img/add_to_wishlist.png);background-repeat:repeat}.tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-heart-plus.no-txt,.tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-heart.no-txt,a.wishlist_products_counter.top_wishlist-heart-plus.no-txt{position:relative;width:36px;height:36px;vertical-align:bottom}.tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-heart-plus.no-txt:before,.tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-heart.no-txt:before{position:absolute;top:50%;left:50%;margin-right:0!important}.tinv-wishlist .button.tinvwl_add_to_wishlist_button.tinvwl-icon-heart-plus.no-txt,.tinv-wishlist .button.tinvwl_add_to_wishlist_button.tinvwl-icon-heart.no-txt{padding-left:1em;vertical-align:bottom}.tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-heart.icon-black:before,a.wishlist_products_counter.top_wishlist-heart.top_wishlist-black:before{background-position:0 0;width:13px;height:11px}.tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-heart.no-txt:before,a.wishlist_products_counter.top_wishlist-heart.no-txt:before{margin-top:-5px;margin-left:-6px}.tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-heart.tinvwl-product-in-list.icon-white:before,a.wishlist_products_counter.top_wishlist-heart.top_wishlist-white:before{background-position:0 13px;width:13px;height:12px}.tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-heart.tinvwl-product-in-list.icon-black:before{background-position:0 -12px;width:13px;height:12px}.tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-heart.tinvwl-product-in-list.no-txt:before{margin-top:-6px;margin-left:-6px}.tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-heart-plus.icon-black:before,a.wishlist_products_counter.top_wishlist-heart-plus.top_wishlist-black:before{background-position:15px 0;width:14px;height:12px}.tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-heart-plus.icon-white:before,a.wishlist_products_counter.top_wishlist-heart-plus.top_wishlist-white:before{background-position:15px 25px;width:14px;height:12px}.tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-heart-plus.no-txt:before{margin-top:-5px;margin-left:-7px}.tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-heart.icon-white:before,a.wishlist_products_counter.top_wishlist-heart.top_wishlist-white:before{background-position:0 -25px;width:13px;height:11px}.tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-heart-plus.tinvwl-product-in-list.icon-black:before{background-position:15px -11px;width:15px;height:14px}.tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-heart-plus.tinvwl-product-in-list.icon-white:before{background-position:15px 14px;width:15px;height:14px}.tinv-wishlist .product-remove button,.tinv-wishlist .social-buttons li a{text-indent:-9999px;box-shadow:none;background-position:center;background-repeat:no-repeat}.tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-heart-plus.tinvwl-product-in-list.no-txt:before{margin-top:-7px;margin-left:-7px}.tinv-wishlist.tinvwl-before-add-to-cart .tinvwl_add_to_wishlist_button{margin-bottom:15px}.tinv-wishlist.tinvwl-before-add-to-cart .tinvwl_add_to_wishlist_button.no-txt{float:left;margin-right:10px;margin-bottom:0}.tinv-wishlist.tinvwl-after-add-to-cart .tinvwl_add_to_wishlist_button{margin-top:15px}.tinv-wishlist.tinvwl-after-add-to-cart .tinvwl_add_to_wishlist_button.no-txt{margin-left:10px}.single-product .tinv-wishlist.tinvwl-after-add-to-cart .tinvwl_add_to_wishlist_button.no-txt{margin-top:0}.tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-custom.no-txt,a.wishlist_products_counter.top_wishlist-custom.no-txt{padding:10px 11px;line-height:1}.tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-custom img,a.wishlist_products_counter.top_wishlist-custom img{display:inline-block!important;vertical-align:baseline;width:auto!important;max-width:16px;max-height:16px;margin:0 6px 0 0!important}.tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-custom.no-txt img,a.wishlist_products_counter.top_wishlist-custom.no-txt img{margin-right:0!important}.single-product div.product form.cart .button.tinvwl_add_to_wishlist_button,div.product form.cart .tinvwl_add_to_wishlist_button{float:none}ul.products li.product .tinvwl_add_to_wishlist_button{margin-top:1em}.tinvwl_add_to_wishlist_button{display:inline-block;cursor:pointer}.tinv-wishlist.woocommerce .stock.in-stock:before{content:none}.tinv-wraper.tinv-wishlist{font-size:100%}.tinv-create-list li input[type=radio]{margin-right:10px}.tinv-create-list li+li{margin-top:15px}.tinv-create-list .tinvwl-input-group+ul{margin-top:25px}.tinv-search-list{margin-bottom:36px}.tinv-wishlist .tinv-header{margin-bottom:30px}.tinv-wishlist table{position:relative;table-layout:auto;margin-bottom:30px;z-index:2}.tinv-wishlist table.tinvwl-table-manage-list{margin-bottom:27px;width:100%}.tinv-wishlist table input[type=checkbox]{margin-right:0}.tinv-wishlist table td,.tinv-wishlist table th{padding:1em;vertical-align:middle}.tinv-wishlist .tinvwl-table-manage-list .product-cb{width:35px;text-align:center}.tinv-wishlist .tinvwl-table-manage-list .product-remove{width:46px;text-align:center}.tinv-wishlist .product-remove button{display:block;margin:0 auto;width:27px;height:27px;-webkit-border-radius:100%;-moz-border-radius:100%;border-radius:100%;padding:0;border:none;background-image:url(../img/icon_delete.png);background-color:#f7f7f7}.tinv-wishlist .product-thumbnail{min-width:100px;width:100px}.tinv-wishlist .product-thumbnail .wp-post-image{margin-bottom:0}.tinv-wishlist td.product-name a+.variation{margin-top:2px}.tinv-wishlist .product-stock i{margin-right:15px}.tinv-wishlist .product-stock p{display:table}.tinv-wishlist .product-stock span{display:table-cell;vertical-align:middle}.tinv-wishlist .product-action>.button>i,.tinv-wishlist .tinvwl-table-manage-list .product-action button[name=tinvwl-remove],.tinv-wishlist table thead th .tinvwl-mobile{display:none}.tinv-wishlist.woocommerce .product-quantity{width:80px;text-align:center}.tinv-wishlist.woocommerce table .quantity .qty{max-width:100%;width:62px;text-align:left}.tinv-wishlist .product-action{width:135px;text-align:center}.tinv-wishlist .product-action .button{width:100%}.tinv-wishlist .product-action .tinvwl_move_product_button{margin-top:5px}.tinv-wishlist .tinvwl-table-manage-list .product-action>button[name=tinvwl-remove]>i{margin-right:0}@media only screen and (max-width:1024px){.tinv-wishlist .tinvwl-table-manage-lists:not(.tinvwl-public){margin-top:0}.tinv-wishlist .tinvwl-table-manage-list .product-remove{display:none}.tinv-wishlist .tinvwl-table-manage-list .product-action button[name=tinvwl-remove]{display:inline-block;margin-top:5px}.tinv-wishlist .product-action{width:60px}}@media only screen and (max-width:1024px) and (min-width:641px){.tinv-wishlist .tinvwl-table-manage-list td.product-stock p{display:block;text-align:center}.tinv-wishlist .product-stock span{display:block}.tinv-wishlist .tinvwl-table-manage-list td.product-stock i{margin-right:0}.tinv-wishlist .tinvwl-table-manage-list td.product-stock .tinvwl-txt{display:none}.tinv-wishlist .product-thumbnail{max-width:76px;width:76px}.tinv-wishlist .product-action .button>i{display:inline-block;margin-right:0}.tinv-wishlist .product-action .button .tinvwl-txt{display:none}}@media only screen and (max-width:640px){.tinv-wishlist table.tinvwl-table-manage-list tbody td.product-remove,.tinv-wishlist table.tinvwl-table-manage-list thead th:not(.product-name),.tinv-wishlist table.tinvwl-table-manage-lists thead th:not(.wishlist-name),.tinv-wishlist thead th .tinvwl-full{display:none}.tinv-wishlist table.tinvwl-table-manage-list thead th.product-name,.tinv-wishlist table.tinvwl-table-manage-lists thead th.wishlist-name{display:block;width:100%;text-align:center}.tinv-wishlist table thead th .tinvwl-mobile{display:block}.tinv-wishlist table.tinvwl-table-manage-list tbody td,.tinv-wishlist table.tinvwl-table-manage-lists tbody td,.tinv-wishlist table.tinvwl-table-manage-lists.tinvwl-public tbody td{display:block;width:100%!important;text-align:center}.tinv-wishlist table.tinvwl-table-manage-list tbody td:not(:last-child),.tinv-wishlist table.tinvwl-table-manage-lists tbody td:not(:last-child),.tinv-wishlist table.tinvwl-table-manage-lists.tinvwl-public tbody td:not(:last-child){border-bottom:0}.tinv-wishlist .product-stock p,.tinv-wishlist .product-thumbnail img{margin:0 auto}.tinv-wishlist .product-thumbnail img{max-width:80px}.tinv-wishlist.woocommerce table .quantity .qty{text-align:center;width:100%}.tinv-wishlist .product-action .tinvwl_move_product_button{margin-top:10px}.tinv-wishlist .tinvwl-table-manage-list .product-action button[name=tinvwl-remove]{margin-top:10px;text-indent:-9999px;background-image:url(../img/icon_delete.png);background-position:center;background-repeat:no-repeat}.tinv-wishlist .tinvwl-table-manage-list .product-action button[name=tinvwl-remove]>i{display:inline-block}.tinv-wishlist table.tinvwl-table-manage-list tfoot td{display:block;width:100%}.tinv-wishlist table.tinvwl-table-manage-lists .wishlist-action button[value=manage_remove]{width:100%}.tinv-wishlist table.tinvwl-table-manage-lists .wishlist-name .tinvwl-rename-button{float:none}}.tinv-wishlist .wishlist-cb{width:33px;text-align:center}.tinv-wishlist .wishlist-name .tinvwl-rename-input input{width:100%}.tinv-wishlist .wishlist-name .tinvwl-rename-button{float:right}.tinv-wishlist .wishlist-name .tinvwl-rename-button>i{margin-right:10px}.tinv-wishlist .wishlist-privacy,.tinv-wishlist table:not(.tinvwl-public) .wishlist-date{width:18%}.tinv-wishlist .wishlist-privacy select{width:100%}.tinv-wishlist .wishlist-name{width:45%}.tinv-wishlist .wishlist-action{width:120px;text-align:center}.tinv-wishlist .wishlist-action button[value=manage_remove]>i{display:none;margin-right:0}.tinv-wishlist tfoot .tinvwl-to-right .tinv-create-list{display:inline-block;vertical-align:middle}.tinv-wishlist tfoot .tinvwl-to-right .tinv-create-list>a.button{margin-right:0}.tinv-wishlist tfoot .tinvwl-to-left+.tinvwl-to-right{margin-top:-10px}.tinv-wishlist tfoot .tinvwl-to-left:not(:empty){float:left;width:35%;margin-right:2%}.tinv-wishlist tfoot .tinvwl-to-right{float:left;width:63%;text-align:right}.tinv-wishlist tfoot .tinvwl-to-right>*{margin:10px 0 0;vertical-align:middle}.tinv-wishlist tfoot .tinvwl-to-right>*+*{margin-left:10px}.tinv-wishlist tfoot .tinvwl-to-left:empty+.tinvwl-to-right{width:100%}@media only screen and (max-width:1024px){.tinv-wishlist .wishlist-name .tinvwl-rename-button>i,.tinv-wishlist tfoot .tinvwl-to-left:not(:empty){margin-right:0}.tinv-wishlist .wishlist-name .tinvwl-rename-button span{display:none}.tinv-wishlist .wishlist-action{width:60px}.tinv-wishlist tfoot .tinvwl-to-left:not(:empty),.tinv-wishlist tfoot .tinvwl-to-right{float:none;width:auto}.tinv-wishlist tfoot .tinvwl-to-right{text-align:left}}@media only screen and (max-width:1024px) and (min-width:641px){.tinv-wishlist .wishlist-action button[value=manage_remove] span{display:none}.tinv-wishlist .wishlist-action button[value=manage_remove]>i{display:inline-block}.tinv-wishlist tfoot .tinvwl-to-left+.tinvwl-to-right{margin-top:0}}@media only screen and (max-width:640px){.tinv-wishlist button[value=product_apply] .tinvwl-mobile,.tinv-wishlist button[value=manage_apply] .tinvwl-mobile{display:none}.tinv-wishlist tfoot .tinvwl-to-right .tinv-create-list{display:block}.tinv-wishlist .tinvwl-table-manage-list tfoot .tinvwl-to-right .button,.tinv-wishlist .tinvwl-table-manage-list tfoot .tinvwl-to-right button,.tinv-wishlist .tinvwl-table-manage-lists tfoot .tinvwl-to-right .button,.tinv-wishlist .tinvwl-table-manage-lists tfoot .tinvwl-to-right button{width:100%;margin:10px 0 0}.tinv-wishlist tfoot .tinvwl-to-right>*{margin:10px 0 0}.tinv-wishlist tfoot .tinvwl-to-right .button:first-child,.tinv-wishlist tfoot .tinvwl-to-right button:first-child{margin-top:0!important}.tinv-wishlist tfoot .tinvwl-to-left+.tinvwl-to-right{margin-top:20px}}.tinv-wishlist .social-buttons+.tinv-wishlist-clear+.navigation-button,.tinv-wishlist .tinvwl-estimate-wrap+.tinv-wishlist-clear+.navigation-button{margin-top:16px}.tinv-wishlist .navigation-button>li{float:left}.tinv-wishlist .navigation-button{margin-top:-10px}.tinv-wishlist .navigation-button>li>.tinv-create-list>a,.tinv-wishlist .navigation-button>li>a{margin-right:30px;margin-top:10px;display:inline-block}.tinv-wishlist .navigation-button>li>.tinv-create-list>a.button,.tinv-wishlist .navigation-button>li>a.button{margin-right:10px}.tinv-wishlist .navigation-button>li:last-child>.tinv-create-list>a,.tinv-wishlist .navigation-button>li:last-child>a{margin-right:0}.tinv-wishlist .social-buttons{float:right}.tinv-wishlist .social-buttons>span,.tinv-wishlist .social-buttons>ul{display:inline-block;vertical-align:middle}.tinv-wishlist .social-buttons>span{margin-right:27px}.tinv-wishlist .social-buttons li{float:left;margin-right:5px}.tinv-wishlist .social-buttons li:last-child{margin-right:0}.tinv-wishlist .social-buttons li a{display:block;width:41px;height:41px;-webkit-border-radius:50%;-moz-border-radius:50%;border-radius:50%;text-align:center;border-bottom:0;background-image:url(../img/social.png)}.tinv-wishlist .social-buttons li a.white{background-image:url(../img/social_white.png)}.tinv-wishlist .social-buttons li a.dark{background-image:url(../img/social.png)}.tinv-wishlist .social-buttons li .social-facebook{background-position:16px center}.tinv-wishlist .social-buttons li .social-twitter{background-position:-28px center}.tinv-wishlist .social-buttons li .social-pinterest{background-position:-73px center}.tinv-wishlist .social-buttons li .social-google{background-position:-119px center}.tinv-wishlist .social-buttons li .social-email{background-position:-164px center}@media only screen and (max-width:1024px){.tinv-wishlist .social-buttons+.tinv-wishlist-clear+.navigation-button{margin-top:30px}.tinv-wishlist .social-buttons{float:none;width:auto;text-align:left;margin-top:20px}.tinv-wishlist .tinv-login form input[name=login]{min-width:auto}}.tinv-wishlist .navigation-button .tinv-create-list>a.tinvwl-no-icon>i,.tinv-wishlist .navigation-button li>a.tinvwl-no-icon>i{display:none}@media only screen and (max-width:640px){.tinv-wishlist .social-buttons{text-align:center}.tinv-wishlist .navigation-button>li{width:20%;text-align:center}.tinv-wishlist .navigation-button.tinvwl-btns-count-1>li{width:100%}.tinv-wishlist .navigation-button.tinvwl-btns-count-2>li{width:50%}.tinv-wishlist .navigation-button.tinvwl-btns-count-3>li{width:33%}.tinv-wishlist .navigation-button.tinvwl-btns-count-4>li{width:25%}.tinv-wishlist .navigation-button>li+li{width:20%}.tinv-wishlist .navigation-button.tinvwl-btns-count-1>li+li{width:100%}.tinv-wishlist .navigation-button.tinvwl-btns-count-2>li+li{width:50%}.tinv-wishlist .navigation-button.tinvwl-btns-count-3>li+li{width:33%}.tinv-wishlist .navigation-button.tinvwl-btns-count-4>li+li{width:25%}.tinv-wishlist .navigation-button>li>.tinv-create-list>a,.tinv-wishlist .navigation-button>li>a{width:calc(100% - 10px);margin-right:0}.tinv-wishlist .navigation-button .tinv-create-list>a .tinvwl-txt,.tinv-wishlist .navigation-button li>a .tinvwl-txt{display:none}.tinv-wishlist .navigation-button .tinv-create-list>a>i,.tinv-wishlist .navigation-button li>a>i{display:inline-block!important;margin-right:0}.tinv-wishlist .social-buttons>span{display:block;margin-top:0;margin-right:0;margin-bottom:5px}}.tinv-wishlist .tinv-lists-nav{margin-bottom:35px}.tinv-wishlist table+.tinv-lists-nav{margin-top:35px}.tinv-wishlist .tinv-next,.tinv-wishlist .tinv-prev{display:inline-block}.tinv-wishlist .tinv-prev{float:left}.tinv-wishlist .tinv-next{float:right}.tinv-wishlist .tinv-prev i{margin-left:0;margin-right:18px}.tinv-wishlist .tinv-next i{margin-left:18px;margin-right:0}.tinv-wishlist .tinv-login{margin-bottom:30px}.tinv-wishlist .tinv-login i.login_key{display:inline-block;vertical-align:text-bottom;margin-right:16px}.tinv-wishlist .tinv-login .login{display:none;border:none;padding:0;margin:24px 0 0}.tinv-wishlist .tinv-login h2{display:none}.tinv-wishlist .tinv-login .lost_password{margin-bottom:0}.tinv-wishlist .tinv-login form .form-row{padding:0;margin:0}.tinv-wishlist .tinv-login form .form-row+.tinvwl-input-group-btn{padding-left:9px}.tinv-wishlist.woocommerce .tinv-login form .form-row-first,.tinv-wishlist.woocommerce .tinv-login form .form-row-last{width:50%}.tinv-wishlist.woocommerce .tinv-login form .form-row-first{padding-right:4px}.tinv-wishlist.woocommerce .tinv-login form .form-row-last{padding-left:4px}.tinv-wishlist .tinv-login form .lost_password,.tinv-wishlist .tinv-login form .tinv-rememberme{float:left;margin-top:16px}.tinv-wishlist .tinv-login .tinv-rememberme+.lost_password{margin-left:26px}.tinv-wishlist .tinv-login .tinvwl-icon{position:absolute;top:50%;left:14px;display:none;width:12px;height:14px;margin-top:-7px;background-repeat:no-repeat;background-position:center}.tinv-wishlist .tinv-login input[name=username]+.tinvwl-icon{height:17px;margin-top:-8.5px;background-image:url(../img/login_name.png)}.tinv-wishlist .tinv-login input[name=password]+.tinvwl-icon{left:17px;height:14px;margin-top:-7px;background-image:url(../img/login_pass.png)}@media only screen and (max-width:667px){.tinv-wishlist.woocommerce .tinv-login form .form-row-first,.tinv-wishlist.woocommerce .tinv-login form .form-row-last{float:none;width:100%;padding:0}.tinv-wishlist.woocommerce .tinv-login form .form-row-last{margin-top:10px}.tinv-wishlist.woocommerce .tinv-login form .tinvwl-input-group-btn{display:block;padding:0;width:auto;margin-top:10px}}.tinvwl-estimate-wrap,.tinvwl-subscribe-wrap{float:left}.tinv-overlay{position:fixed;top:0;left:0;width:100%;height:100%;visibility:hidden;opacity:0;-webkit-transition:opacity .3s ease,visibility .3s ease;-moz-transition:opacity .3s ease,visibility .3s ease;-o-transition:opacity .3s ease,visibility .3s ease;transition:opacity .3s ease,visibility .3s ease;background:#191919}.tinv-modal.tinv-modal-open .tinv-overlay{visibility:visible;opacity:.5}.admin-bar .tinv-wishlist .tinv-modal{padding-top:32px!important}.tinv-wishlist .tinv-modal .tinv-modal-inner{position:relative;margin:0 auto;background-color:#fff}.tinv-wishlist .tinv-modal{overflow-y:auto;overflow-x:hidden;top:0;left:0;width:0;height:0;z-index:9999;position:fixed;outline:0!important;-webkit-backface-visibility:hidden;visibility:hidden;opacity:0;text-align:left;-webkit-transition:opacity .3s ease,visibility .3s ease;-moz-transition:opacity .3s ease,visibility .3s ease;-o-transition:opacity .3s ease,visibility .3s ease;transition:opacity .3s ease,visibility .3s ease}.tinv-wishlist .tinv-modal.tinv-modal-open{visibility:visible;opacity:1;width:100%;height:100%}.tinv-wishlist .tinv-modal .tinv-close-modal{display:inline-block;position:absolute;top:17px;right:14px;width:26px;height:26px;line-height:26px;font-size:12px;text-align:center;-webkit-border-radius:50%;-moz-border-radius:50%;border-radius:50%;border-bottom:0;box-shadow:none!important;background-color:#ebe9eb}@media screen and (max-width:782px){.admin-bar .tinv-wishlist .tinv-modal{padding-top:46px!important}}@media screen and (max-width:600px){.admin-bar .tinv-wishlist .tinv-modal{padding-top:0!important}.tinv-wishlist .tinv-modal .tinv-close-modal{position:static;display:block;margin:0 auto 20px}}.tinv-wishlist .tinv-modal .tinv-modal-inner{max-width:360px;padding:40px}.tinv-wishlist .tinv-modal .icon_big_heart_check,.tinv-wishlist .tinv-modal .icon_big_heart_next,.tinv-wishlist .tinv-modal .icon_big_heart_plus,.tinv-wishlist .tinv-modal .icon_big_heart_subscribe,.tinv-wishlist .tinv-modal .icon_big_times,.tinv-wishlist .tinv-modal img{display:block;margin:0 auto 25px;opacity:1!important}.tinv-wishlist .tinv-modal ul{overflow:visible;list-style:disc;margin:10px 0 0 20px}.tinv-wishlist .tinv-modal li{list-style:disc!important}.tinv-wishlist .tinv-create-list .tinv-modal ul,.tinv-wishlist.tinv-create-list form ul{list-style:none!important;margin:25px 0 0}.tinv-wishlist .tinv-create-list .tinv-modal li,.tinv-wishlist.tinv-create-list form li{list-style:none!important}.tinv-wishlist .tinv-modal .already-in{margin-bottom:35px}.tinv-wishlist .tinv-modal .delete-notification{margin-bottom:25px}.tinv-wishlist .tinv-modal .already-in ul{overflow:visible;margin:12px 0 27px 17px}.tinv-wishlist .tinv-modal select{width:100%}.tinv-wishlist .tinv-modal button+.button,.tinv-wishlist .tinv-modal button+button,.tinv-wishlist .tinv-modal input+button,.tinv-wishlist .tinv-modal label+button,.tinv-wishlist .tinv-modal label+input,.tinv-wishlist .tinv-modal select+button,.tinv-wishlist .tinv-modal select+input,.woocommerce .tinv-wishlist .tinv-modal button+button.button{margin-top:12px;width:100%}.tinv-wishlist .tinv-modal .already-in+label{display:block;margin-top:6px}.tinv-wishlist .tinv-modal label select{margin-top:8px}.tinv-wishlist .tinv-modal .delete-notification+button{width:100%}.tinv-wishlist .tinvwl_added_to_wishlist,.tinv-wishlist .tinvwl_created_wishlist{text-align:center}.tinv-wishlist .tinvwl_added_to_wishlist .tinv-txt,.tinv-wishlist .tinvwl_created_wishlist .tinv-txt{margin-bottom:25px}.tinv-wishlist .tinvwl_created_wishlist button,.woocommerce .tinv-wishlist .tinvwl_added_to_wishlist.tinv-modal button.button{margin-top:0;margin-bottom:10px}.tinv-wishlist .tinv-modal .tinvwl-buttons-group{margin-top:20px}.tinv-wishlist .tinv-modal.tinvwl-subscribe img{margin-bottom:30px}.tinv-wishlist .tinvwl-subscribe .tinvwl-txt{margin-bottom:18px}.tinv-wishlist .tinvwl-subscribe ul{list-style:none;margin:0}.tinv-wishlist .tinvwl-subscribe li{list-style:none!important}.tinv-wishlist .tinvwl-subscribe li+li{margin-top:8px}.tinv-wishlist .tinvwl-subscribe li input[type=checkbox]{margin-right:11px}.tinv-wishlist .tinvwl-buttons-group button{width:100%}.tinv-wishlist .tinvwl-buttons-group button+button{margin-top:7px}.tinv-wishlist .tinvwl-buttons-group+button{width:100%;margin-top:7px}.tinv-wishlist .tinvwl-subscribe-wrap+.tinv-wishlist-clear+.navigation-button{margin-top:26px}.tinv-wishlist .estimate-dialogbox .tinv-modal-inner{max-width:778px;padding:35px 30px 30px;text-align:center}.tinv-wishlist .tinv-modal h2{text-align:center;margin:0 0 35px}.tinv-wishlist .estimate-dialogbox textarea{height:200px;margin-bottom:30px}@media only screen and (max-width:1024px){.tinvwl-estimate-wrap,.tinvwl-subscribe-wrap{float:none;width:auto}.tinv-wishlist .tinvwl-subscribe-wrap+.tinv-wishlist-clear+.navigation-button{margin-top:30px}}@media only screen and (max-width:640px){.navigation-button,.social-buttons,.tinv-lists-nav,.tinvwl-estimate-wrap,.tinvwl-subscribe-wrap{margin-left:12px;margin-right:12px}.tinvwl-estimate-wrap .tinv-modal-btn,.tinvwl-subscribe-wrap .tinv-modal-btn{width:100%}.tinvwl-estimate-wrap+.social-buttons{margin-top:10px}}@media screen and (max-width:600px){.tinv-wishlist .estimate-dialogbox .tinv-modal-inner{padding-top:25px}}.tinv-wishlist .tinv-create-list .tinv-modal-inner{max-width:778px;padding:30px}.tinv-wishlist .tinvwl-has-error:not(.tinvwl-input-group),.tinv-wishlist .tinvwl-input-group.tinvwl-has-error .form-control{border:2px solid red}.tinv-wishlist .tinvwl-has-error+.tinvwl-error{padding:5px 0 0 5px;color:red}.tinvwl-tooltip{display:none}.tinvwl-input-group{position:relative;display:table;border-collapse:separate}.tinvwl-input-group .form-control{position:relative;z-index:1;float:left;height:38px;width:100%;margin-bottom:0}.tinvwl-input-group .form-control+.tinvwl-input-group-btn{padding-left:15px}.tinv-wishlist .tinvwl-to-left .tinvwl-input-group .form-control+.tinvwl-input-group-btn{padding-left:10px}.tinv-wishlist .tinv-search-form .tinvwl-input-group .form-control+.tinvwl-input-group-btn{padding-left:9px}.tinvwl-input-group .form-control,.tinvwl-input-group-addon,.tinvwl-input-group-btn{display:table-cell}.tinvwl-input-group-addon,.tinvwl-input-group-btn{width:1%;white-space:nowrap;vertical-align:top}@media only screen and (max-width:640px){.tinvwl-input-group{width:100%}}@media only screen and (max-width:667px){.tinvwl-input-group:not(.tinvwl-no-full),.tinvwl-input-group:not(.tinvwl-no-full) .form-control,.tinvwl-input-group:not(.tinvwl-no-full) .tinvwl-input-group-addon,.tinvwl-input-group:not(.tinvwl-no-full) .tinvwl-input-group-btn{display:block}.tinvwl-input-group:not(.tinvwl-no-full) .form-control{float:none}.tinv-wishlist .tinv-search-form .tinvwl-input-group:not(.tinvwl-no-full) .form-control+.tinvwl-input-group-btn,.tinvwl-input-group:not(.tinvwl-no-full) .form-control+.tinvwl-input-group-btn{padding-top:10px;padding-left:0}.tinvwl-input-group:not(.tinvwl-no-full) .tinvwl-input-group-addon,.tinvwl-input-group:not(.tinvwl-no-full) .tinvwl-input-group-addon>button,.tinvwl-input-group:not(.tinvwl-no-full) .tinvwl-input-group-addon>input,.tinvwl-input-group:not(.tinvwl-no-full) .tinvwl-input-group-btn,.tinvwl-input-group:not(.tinvwl-no-full) .tinvwl-input-group-btn>button,.tinvwl-input-group:not(.tinvwl-no-full) .tinvwl-input-group-btn>input{width:100%}}.tinv-table{display:table;width:100%;height:100%}.tinv-cell{display:table-cell;vertical-align:middle}.tinv-wishlist .tinv-wishlist-clear{visibility:visible;width:auto;height:auto}.tinv-wishlist-clear:after,.tinv-wishlist-clear:before{content:" ";display:table}.tinv-wishlist-clear:after{clear:both}.icon_big_times{background:url(../img/icon_big_times.png) center no-repeat;display:inline-block;background-size:46px 46px;width:46px;height:46px}.icon_big_heart_check,.icon_big_heart_next,.icon_big_heart_plus,.icon_big_heart_subscribe{height:42px;display:inline-block}.icon_big_heart_check{background:url(../img/icon_big_heart_check.png) center no-repeat;background-size:48px 42px;width:48px}.icon_big_heart_next{background:url(../img/icon_big_heart_next.png) center no-repeat;background-size:89px 42px;width:89px}.icon_big_heart_plus{background:url(../img/icon_big_heart_plus.png) center no-repeat;background-size:48px 42px;width:48px}.icon_big_heart_subscribe{background:url(../img/icon_big_heart_subscribe.png) center no-repeat;background-size:48px 42px;width:48px}.login_key{background:url(../img/login_key.png) center no-repeat;display:inline-block;background-size:20px 20px;width:20px;height:20px}.tinv-wishlist .social-buttons li a{background-size:195px 18px}.tinv-wishlist .tinv-login input[name=username]+.tinvwl-icon{background-size:11px 17px}.tinv-wishlist .tinv-login input[name=password]+.tinvwl-icon{background-size:12px 14px}.tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-heart-plus:before,.tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-heart:before,.woocommerce ul.products li.product a.button.tinvwl-icon-heart-plus.tinvwl_add_to_wishlist_button:before,.woocommerce ul.products li.product a.button.tinvwl-icon-heart.tinvwl_add_to_wishlist_button:before,.woocommerce-page ul.products li.product a.button.tinvwl-icon-heart-plus.tinvwl_add_to_wishlist_button:before,.woocommerce-page ul.products li.product a.button.tinvwl-icon-heart.tinvwl_add_to_wishlist_button:before{background-size:30px 50px}.tinv-wishlist .product-remove button,.tinv-wishlist .tinvwl-table-manage-list .product-action button[name=tinvwl-remove]{background-size:11px 11px}@media only screen and (-webkit-min-device-pixel-ratio:1.5),not all,not all,not all{.tinv-wishlist .social-buttons li a{background-image:url(../img/social@2x.png)}.tinv-wishlist .social-buttons li a.white{background-image:url(../img/social_white@2x.png)}.tinv-wishlist .social-buttons li a.dark{background-image:url(../img/social@2x.png)}.tinv-wishlist .tinv-login input[name=username]+.tinvwl-icon{background-image:url(../img/login_name@2x.png)}.tinv-wishlist .tinv-login input[name=password]+.tinvwl-icon{background-image:url(../img/login_pass@2x.png)}.tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-heart-plus:before,.tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-heart:before,.woocommerce ul.products li.product a.button.tinvwl-icon-heart-plus.tinvwl_add_to_wishlist_button:before,.woocommerce ul.products li.product a.button.tinvwl-icon-heart.tinvwl_add_to_wishlist_button:before,.woocommerce-page ul.products li.product a.button.tinvwl-icon-heart-plus.tinvwl_add_to_wishlist_button:before,.woocommerce-page ul.products li.product a.button.tinvwl-icon-heart.tinvwl_add_to_wishlist_button:before{background-image:url(../img/add_to_wishlist@2x.png)}.tinv-wishlist .product-remove button,.tinv-wishlist .tinvwl-table-manage-list .product-action button[name=tinvwl-remove]{background-image:url(../img/icon_delete@2x.png)}.icon_big_times{background-image:url(../img/icon_big_times@2x.png)}.icon_big_heart_check{background-image:url(../img/icon_big_heart_check@2x.png)}.icon_big_heart_next{background-image:url(../img/icon_big_heart_next@2x.png)}.icon_big_heart_plus{background-image:url(../img/icon_big_heart_plus@2x.png)}.icon_big_heart_subscribe{background-image:url(../img/icon_big_heart_subscribe@2x.png)}.login_key{background-image:url(../img/login_key@2x.png)}}.disabled-add-wishlist{color:#FFF;cursor:not-allowed}.empty-name-wishlist{border-color:red!important}.tinvwl_remove_from_wishlist-text{display:none}.tinvwl-product-in-list.tinvwl-product-make-remove .tinvwl_remove_from_wishlist-text{display:inline}.tinvwl-product-in-list.tinvwl-product-make-remove .tinvwl_add_to_wishlist-text{display:none}@media only screen and (max-width:1024px){.tinv-wishlist .tinvwl-table-manage-list .product-remove{display:table-cell}}@media only screen and (max-width:640px){.tinv-wishlist table.tinvwl-table-manage-list tbody td.product-remove{display:block}}
 
asset/js/public.js CHANGED
@@ -419,6 +419,7 @@
419
  return $(this).each(function () {
420
  $(this).on('click', function (event) {
421
  if (!s.rule.call($(this))) {
 
422
  event.preventDefault();
423
  }
424
  });
@@ -484,7 +485,7 @@
484
  });
485
  };
486
  $('.tinv-modal-btn').tinvwl_modal({});
487
- $('#tinvwl_manage_actions, #tinvwl_product_actions').addClass('form-control').parent().wrapInner('<div class="input-group tinvwl-no-full">').find('button').wrap('<span class="input-group-btn">');
488
  $('.tinv-lists-nav').each(function () {
489
  if (!$.trim($(this).html()).length) {
490
  $(this).remove();
419
  return $(this).each(function () {
420
  $(this).on('click', function (event) {
421
  if (!s.rule.call($(this))) {
422
+ alert(window.tinvwl_add_to_wishlist['tinvwl_break_submit']);
423
  event.preventDefault();
424
  }
425
  });
485
  });
486
  };
487
  $('.tinv-modal-btn').tinvwl_modal({});
488
+ $('#tinvwl_manage_actions, #tinvwl_product_actions').addClass('form-control').parent().wrapInner('<div class="tinvwl-input-group tinvwl-no-full">').find('button').wrap('<span class="tinvwl-input-group-btn">');
489
  $('.tinv-lists-nav').each(function () {
490
  if (!$.trim($(this).html()).length) {
491
  $(this).remove();
asset/js/public.min.js CHANGED
@@ -1 +1 @@
1
- !function(t){t.fn.tinvwl_to_wishlist=function(i){var n={api_url:window.location.href,text_create:window.tinvwl_add_to_wishlist.text_create,text_already_in:window.tinvwl_add_to_wishlist.text_already_in,class:{dialogbox:".tinvwl_add_to_select_wishlist",select:".tinvwl_wishlist",newtitle:".tinvwl_new_input",dialogbutton:".tinvwl_button_add"},redirectTimer:null,onPrepareList:function(){},onGetDialogBox:function(){},onPrepareDialogBox:function(){t("body > .tinv-wishlist").length||t("body").append(t("<div>").addClass("tinv-wishlist")),t(this).appendTo("body > .tinv-wishlist")},onCreateWishList:function(i){t(this).append(t("<option>").html(i.title).attr("value",i.ID).toggleClass("tinv_in_wishlist",i.in))},onSelectWishList:function(){},onDialogShow:function(){t(this).addClass("tinv-modal-open")},onDialogHide:function(){t(this).removeClass("tinv-modal-open")},onInited:function(){},onClick:function(){if(t(this).is(".disabled-add-wishlist"))return!1;this.tinvwl_dialog?this.tinvwl_dialog.show_list.call(this):e.onActionProduct.call(this)},onPrepareDataAction:function(){},filterProductAlreadyIn:function(i){i=i||[];var n={};return t("form.cart[method=post], .woocommerce-variation-add-to-cart").find("input, select").each(function(){var i=t(this).attr("name"),e=t(this).attr("type"),o=t(this).val();"checkbox"===e||"radio"===e?t(this).is(":checked")&&(n["form"+i]=o):n["form"+i]=o}),n=n.formvariation_id,i.filter(function(t){if("object"==typeof t.in&&"string"==typeof n){var i=parseInt(n);return 0<=t.in.indexOf(i)}return t.in})},onMultiProductAlreadyIn:function(i){i=i||[];i=e.onPrepareList.call(i)||i,i=e.filterProductAlreadyIn.call(this,i)||i,t(this).parent().parent().find(".already-in").remove();var n="";switch(i.length){case 0:break;default:n=t("<ul>");t.each(i,function(i,e){n.append(t("<li>").html(t("<a>").html(e.title).attr({href:e.url})).attr("value",e.ID))})}n.length&&t(this).closest(".tinv-modal-inner").find("img").after(t("<div>").addClass("already-in").html(e.text_already_in+" ").append(n))},onAction:{redirect:function(t){e.redirectTimer&&clearTimeout(e.redirectTimer),e.redirectTimer=window.setTimeout(function(){window.location.href=t},4e3)},force_redirect:function(t){window.location.href=t},wishlists:function(i){t(this).attr("data-tinv-wl-list",i)},msg:function(i){if(!i)return!1;var n=t(i).eq(0);t("body > .tinv-wishlist").length||t("body").append(t("<div>").addClass("tinv-wishlist")),t("body > .tinv-wishlist").append(n),n.on("click",".tinv-close-modal, .tinvwl_button_close, .tinv-overlay",function(t){t.preventDefault(),n.remove(),e.redirectTimer&&clearTimeout(e.redirectTimer)})},status:function(i){i&&t(this).addClass("tinvwl-product-in-list")},removed:function(i){i&&t(this).removeClass("tinvwl-product-in-list").removeClass("tinvwl-product-make-remove").attr("data-tinv-wl-action","addto")},make_remove:function(i){t(this).toggleClass("tinvwl-product-make-remove",i).attr("data-tinv-wl-action",i?"remove":"addto")},fragments:function(i){if("undefined"==typeof wc_cart_fragments_params)return t.each(i,function(i,n){t(i).replaceWith(n)}),!1;var n;try{n="sessionStorage"in window&&null!==window.sessionStorage,window.sessionStorage.setItem("wc","test"),window.sessionStorage.removeItem("wc"),window.localStorage.setItem("wc","test"),window.localStorage.removeItem("wc")}catch(t){n=!1}if(n)try{var e=t.parseJSON(sessionStorage.getItem(wc_cart_fragments_params.fragment_name)),o=wc_cart_fragments_params.ajax_url.toString()+"-wc_cart_hash",a=sessionStorage.getItem(o),l=Cookies.get("woocommerce_cart_hash"),s=sessionStorage.getItem("wc_cart_created");if(null!=a&&""!==a||(a=""),null!=l&&""!==l||(l=""),a&&(null==s||""===s))throw"No cart_created";if(t.each(i,function(t,i){e[t]=i}),localStorage.setItem(o,localStorage.getItem(o)+(new Date).getTime()),sessionStorage.setItem(o,sessionStorage.getItem(o)+(new Date).getTime()),sessionStorage.setItem(wc_cart_fragments_params.fragment_name,JSON.stringify(e)),!e||!e["div.widget_shopping_cart_content"]||a!==l)throw"No fragment";t.each(e,function(i,n){t(i).replaceWith(n)}),t(document.body).trigger("wc_fragments_loaded")}catch(i){t(document.body).trigger("wc_fragment_refresh")}}},onActionProduct:function(i,n){var o={form:{},tinv_wishlist_id:i||"",tinv_wishlist_name:n||"",product_type:t(this).attr("data-tinv-wl-producttype"),product_id:t(this).attr("data-tinv-wl-product")||0,product_variation:t(this).attr("data-tinv-wl-productvariation")||0,product_action:t(this).attr("data-tinv-wl-action")||"addto"},a=this;t(a).closest("form.cart[method=post], .woocommerce-variation-add-to-cart, .tinvwl-loop-button-wrapper").find("input, select, textarea").each(function(){var i=t(this).attr("name"),n=t(this).attr("type"),e=t(this).val(),a=10,l=function(t,i){if("object"==typeof i){for(var n in void 0===t&&(t={}),i)if(""===n){var e=-1;for(e in t)e=e;t[e=parseInt(e)+1]=l(t[n],i[n])}else t[n]=l(t[n],i[n]);return t}return i};if("button"!==n){for(;/^(.+)\[([^\[\]]*?)\]$/.test(i)&&0<a;){var s=i.match(/^(.+)\[([^\[\]]*?)\]$/);if(3===s.length){var r={};r[s[2]]=e,e=r}i=s[1],a--}"checkbox"===n||"radio"===n?t(this).is(":checked")&&(e.length||"object"==typeof e||(e=!0),o.form[i]=l(o.form[i],e)):o.form[i]=l(o.form[i],e)}}),o=e.onPrepareDataAction.call(a,o)||o,t.post(e.api_url,o,function(t){if(e.onDialogHide.call(a.tinvwl_dialog),"object"==typeof t)for(var i in t)"function"==typeof e.onAction[i]&&e.onAction[i].call(a,t[i]);else"function"==typeof e.onAction.msg&&e.onAction.msg.call(a,t)})}},e=t.extend(!0,{},n,i);return t(this).each(function(){if(!t(this).attr("data-tinv-wl-list"))return!1;if(e.dialogbox&&e.dialogbox.length&&(this.tinvwl_dialog=e.dialogbox),this.tinvwl_dialog||(this.tinvwl_dialog=e.onGetDialogBox.call(this)),!this.tinvwl_dialog){var i=t(this).nextAll(e.class.dialogbox).eq(0);i.length&&(this.tinvwl_dialog=i)}if(this.tinvwl_dialog){e.onPrepareDialogBox.call(this.tinvwl_dialog),"function"!=typeof this.tinvwl_dialog.update_list&&(this.tinvwl_dialog.update_list=function(i){var n=t(this).find(e.class.select).eq(0);t(this).find(e.class.newtitle).hide().val(""),n.html(""),t.each(i,function(t,i){e.onCreateWishList.call(n,i)}),e.text_create&&e.onCreateWishList.call(n,{ID:"",title:e.text_create,in:!1}),e.onMultiProductAlreadyIn.call(n,i),e.onSelectWishList.call(n,i),t(this).find(e.class.newtitle).toggle(""===n.val())}),"function"!=typeof this.tinvwl_dialog.show_list&&(this.tinvwl_dialog.show_list=function(){var i=t.parseJSON(t(this).attr("data-tinv-wl-list"))||[];i.length?(i=e.onPrepareList.call(i)||i,this.tinvwl_dialog.update_list(i),e.onDialogShow.call(this.tinvwl_dialog)):e.onActionProduct.call(this)});var n=this;t(this.tinvwl_dialog).find(e.class.dialogbutton).off("click").on("click",function(){var i,o=t(n.tinvwl_dialog).find(e.class.select),a=t(n.tinvwl_dialog).find(e.class.newtitle);o.val()||a.val()?e.onActionProduct.call(n,o.val(),a.val()):((i=a.is(":visible")?a:o).addClass("empty-name-wishlist"),window.setTimeout(function(){i.removeClass("empty-name-wishlist")},1e3))})}t(this).off("click").on("click",e.onClick),e.onInited.call(this,e)})},t(document).ready(function(){t("body").on("click",".tinvwl_add_to_wishlist_button",function(i){if(t(this).is(".disabled-add-wishlist"))return i.preventDefault(),void window.alert(tinvwl_add_to_wishlist.i18n_make_a_selection_text);t(this).is(".inited-add-wishlist")||t(this).tinvwl_to_wishlist({onInited:function(i){t(this).addClass("inited-add-wishlist"),i.onClick.call(this)}})}),t(".tinvwl_move_product_button").tinvwl_to_wishlist({class:{dialogbox:".tinvwl_wishlist_move",select:".tinvwl_wishlist",newtitle:".tinvwl_new_input",dialogbutton:".tinvwl_button_move"},onPrepareDataAction:function(i){return i.tinv_from_wishlist_id=t(this).attr("data-tinv-wl"),i.tinv_to_wishlist_id=i.tinv_wishlist_id,i.tinv_wishlist_name||(i.tinv_wishlist_name="-"),delete i.tinv_wishlist_id,i},onPrepareList:function(){return this.filter(function(t){return!t.hide})},onAction:{redirect:function(t){return window.location.href=t}}}),t(".global-cb").on("click",function(){t(this).closest("table").eq(0).find(".product-cb input[type=checkbox], .wishlist-cb input[type=checkbox]").prop("checked",t(this).is(":checked"))})})}(jQuery),function(t){t.fn.tinvwl_break_submit=function(i){var n={selector:"input, select, textarea",ifempty:!0,invert:!1,validate:function(){return t(this).val()},rule:function(){var i=t(this).parents("form").eq(0).find(e.selector),n=e.invert;return 0===i.length?e.ifempty:(i.each(function(){n&&!e.invert||!n&&e.invert||(n=Boolean(e.validate.call(t(this))))}),n)}},e=t.extend(!0,{},n,i);return t(this).each(function(){t(this).on("click",function(i){e.rule.call(t(this))||i.preventDefault()})})},t(document).ready(function(){t(".tinvwl-break-input").tinvwl_break_submit({selector:".tinvwl-break-input-filed"}),t(".tinvwl-break-checkbox").tinvwl_break_submit({selector:"table td input[type=checkbox]",validate:function(){return t(this).is(":checked")}})})}(jQuery),function(t){t(".variations_form").each(function(){var i=t(this),n=i.find(".tinvwl_add_to_wishlist_button");n.length&&i.on("hide_variation",function(t){t.preventDefault(),n.addClass("disabled-add-wishlist")}).on("show_variation",function(t,i,e){var o=JSON.parse(n.attr("data-tinv-wl-list")),a=!1,l="1"==window.tinvwl_add_to_wishlist.simple_flow;for(var s in o)o[s].hasOwnProperty("in")&&Array.isArray(o[s].in)&&-1<(o[s].in||[]).indexOf(i.variation_id)&&(a=!0);n.toggleClass("tinvwl-product-in-list",a).toggleClass("tinvwl-product-make-remove",a&&l).attr("data-tinv-wl-action",a&&l?"remove":"addto"),t.preventDefault(),n.removeClass("disabled-add-wishlist")})})}(jQuery),function(t){t(document).ready(function(){t.fn.tinvwl_modal=function(i){var n={showClass:"tinv-modal-open",modal:".tinv-modal",onPrepare:function(){t("body > .tinv-wishlist").length||t("body").append(t("<div>").addClass("tinv-wishlist")),t(this).appendTo("body > .tinv-wishlist")}},e=t.extend(!0,{},n,i);return t(this).each(function(){var i=t(this),n=i.next(e.modal);e.onPrepare.call(n),i.on("click",function(){n.addClass(e.showClass)})})},t(".tinv-modal-btn").tinvwl_modal({}),t("#tinvwl_manage_actions, #tinvwl_product_actions").addClass("form-control").parent().wrapInner('<div class="input-group tinvwl-no-full">').find("button").wrap('<span class="input-group-btn">'),t(".tinv-lists-nav").each(function(){t.trim(t(this).html()).length||t(this).remove()}),t("body").on("click",".social-buttons .social[title!=email]",function(i){var n=window.open(t(this).attr("href"),t(this).attr("title"),"width=420,height=320,resizable=yes,scrollbars=yes,status=yes");n&&(n.focus(),i.preventDefault())}),t(".tinvwl-select-all").on("click",function(i){i.preventDefault(),t(this).parent().parent().find('ul li input[type="checkbox"]').attr("checked",!0)}),t(".tinvwl-select-none").on("click",function(i){i.preventDefault(),t(this).parent().parent().find('ul li input[type="checkbox"]').attr("checked",!1)}),t("body").on("click",".tinv-wishlist .tinv-overlay, .tinv-wishlist .tinv-close-modal, .tinv-wishlist .tinvwl_button_close",function(i){i.preventDefault(),t(this).parents(".tinv-modal:first").removeClass("tinv-modal-open")}),t("body").on("click",".tinv-wishlist .tinvwl-btn-onclick",function(i){t(this).data("url")&&(i.preventDefault(),window.location=t(this).data("url"))});var i=t(".tinv-wishlist .navigation-button");i.length&&i.each(function(){var i=t(this).find("> li");i.length<5&&i.parent().addClass("tinvwl-btns-count-"+i.length)}),t(".tinv-login .showlogin").unbind("click").on("click",function(i){i.preventDefault(),t(this).closest(".tinv-login").find(".login").toggle()}),t(".tinv-wishlist table.tinvwl-table-manage-list tfoot td").each(function(){t(this).toggle(!!t(this).children().not(".look_in").length||!!t(this).children(".look_in").children().length)})}),t(document.body).on("wc_fragments_refreshed wc_fragments_loaded",function(){t(".wishlist_products_counter").toggleClass("wishlist-counter-with-products","0"!=t(".wishlist_products_counter_number").html())}),t(window).on("load",function(){t(".tinv-wishlist.woocommerce").length&&t(".woocommerce-message").length&&(t(document.body).on("wc_fragments_refreshed.wishlist",function(){if("undefined"==typeof wc_cart_fragments_params)return!1;cart_hash_key=wc_cart_fragments_params.ajax_url.toString()+"-wc_cart_hash",localStorage.setItem(cart_hash_key,localStorage.getItem(cart_hash_key)+(new Date).getTime()),sessionStorage.setItem(cart_hash_key,sessionStorage.getItem(cart_hash_key)+(new Date).getTime()),t(document.body).off("wc_fragments_refreshed.wishlist")}),t(document.body).trigger("updated_wc_div"))})}(jQuery);
1
+ !function(t){t.fn.tinvwl_to_wishlist=function(i){var n={api_url:window.location.href,text_create:window.tinvwl_add_to_wishlist.text_create,text_already_in:window.tinvwl_add_to_wishlist.text_already_in,class:{dialogbox:".tinvwl_add_to_select_wishlist",select:".tinvwl_wishlist",newtitle:".tinvwl_new_input",dialogbutton:".tinvwl_button_add"},redirectTimer:null,onPrepareList:function(){},onGetDialogBox:function(){},onPrepareDialogBox:function(){t("body > .tinv-wishlist").length||t("body").append(t("<div>").addClass("tinv-wishlist")),t(this).appendTo("body > .tinv-wishlist")},onCreateWishList:function(i){t(this).append(t("<option>").html(i.title).attr("value",i.ID).toggleClass("tinv_in_wishlist",i.in))},onSelectWishList:function(){},onDialogShow:function(){t(this).addClass("tinv-modal-open")},onDialogHide:function(){t(this).removeClass("tinv-modal-open")},onInited:function(){},onClick:function(){if(t(this).is(".disabled-add-wishlist"))return!1;this.tinvwl_dialog?this.tinvwl_dialog.show_list.call(this):e.onActionProduct.call(this)},onPrepareDataAction:function(){},filterProductAlreadyIn:function(i){i=i||[];var n={};return t("form.cart[method=post], .woocommerce-variation-add-to-cart").find("input, select").each(function(){var i=t(this).attr("name"),e=t(this).attr("type"),o=t(this).val();"checkbox"===e||"radio"===e?t(this).is(":checked")&&(n["form"+i]=o):n["form"+i]=o}),n=n.formvariation_id,i.filter(function(t){if("object"==typeof t.in&&"string"==typeof n){var i=parseInt(n);return 0<=t.in.indexOf(i)}return t.in})},onMultiProductAlreadyIn:function(i){i=i||[];i=e.onPrepareList.call(i)||i,i=e.filterProductAlreadyIn.call(this,i)||i,t(this).parent().parent().find(".already-in").remove();var n="";switch(i.length){case 0:break;default:n=t("<ul>");t.each(i,function(i,e){n.append(t("<li>").html(t("<a>").html(e.title).attr({href:e.url})).attr("value",e.ID))})}n.length&&t(this).closest(".tinv-modal-inner").find("img").after(t("<div>").addClass("already-in").html(e.text_already_in+" ").append(n))},onAction:{redirect:function(t){e.redirectTimer&&clearTimeout(e.redirectTimer),e.redirectTimer=window.setTimeout(function(){window.location.href=t},4e3)},force_redirect:function(t){window.location.href=t},wishlists:function(i){t(this).attr("data-tinv-wl-list",i)},msg:function(i){if(!i)return!1;var n=t(i).eq(0);t("body > .tinv-wishlist").length||t("body").append(t("<div>").addClass("tinv-wishlist")),t("body > .tinv-wishlist").append(n),n.on("click",".tinv-close-modal, .tinvwl_button_close, .tinv-overlay",function(t){t.preventDefault(),n.remove(),e.redirectTimer&&clearTimeout(e.redirectTimer)})},status:function(i){i&&t(this).addClass("tinvwl-product-in-list")},removed:function(i){i&&t(this).removeClass("tinvwl-product-in-list").removeClass("tinvwl-product-make-remove").attr("data-tinv-wl-action","addto")},make_remove:function(i){t(this).toggleClass("tinvwl-product-make-remove",i).attr("data-tinv-wl-action",i?"remove":"addto")},fragments:function(i){if("undefined"==typeof wc_cart_fragments_params)return t.each(i,function(i,n){t(i).replaceWith(n)}),!1;var n;try{n="sessionStorage"in window&&null!==window.sessionStorage,window.sessionStorage.setItem("wc","test"),window.sessionStorage.removeItem("wc"),window.localStorage.setItem("wc","test"),window.localStorage.removeItem("wc")}catch(t){n=!1}if(n)try{var e=t.parseJSON(sessionStorage.getItem(wc_cart_fragments_params.fragment_name)),o=wc_cart_fragments_params.ajax_url.toString()+"-wc_cart_hash",a=sessionStorage.getItem(o),l=Cookies.get("woocommerce_cart_hash"),s=sessionStorage.getItem("wc_cart_created");if(null!==a&&void 0!==a&&""!==a||(a=""),null!==l&&void 0!==l&&""!==l||(l=""),a&&(null===s||void 0===s||""===s))throw"No cart_created";if(t.each(i,function(t,i){e[t]=i}),localStorage.setItem(o,localStorage.getItem(o)+(new Date).getTime()),sessionStorage.setItem(o,sessionStorage.getItem(o)+(new Date).getTime()),sessionStorage.setItem(wc_cart_fragments_params.fragment_name,JSON.stringify(e)),!e||!e["div.widget_shopping_cart_content"]||a!==l)throw"No fragment";t.each(e,function(i,n){t(i).replaceWith(n)}),t(document.body).trigger("wc_fragments_loaded")}catch(i){t(document.body).trigger("wc_fragment_refresh")}}},onActionProduct:function(i,n){var o={form:{},tinv_wishlist_id:i||"",tinv_wishlist_name:n||"",product_type:t(this).attr("data-tinv-wl-producttype"),product_id:t(this).attr("data-tinv-wl-product")||0,product_variation:t(this).attr("data-tinv-wl-productvariation")||0,product_action:t(this).attr("data-tinv-wl-action")||"addto"},a=this;t(a).closest("form.cart[method=post], .woocommerce-variation-add-to-cart, .tinvwl-loop-button-wrapper").find("input, select, textarea").each(function(){var i=t(this).attr("name"),n=t(this).attr("type"),e=t(this).val(),a=10,l=function(t,i){if("object"==typeof i){void 0===t&&(t={});for(var n in i)if(""===n){var e=-1;for(e in t)e=e;t[e=parseInt(e)+1]=l(t[n],i[n])}else t[n]=l(t[n],i[n]);return t}return i};if("button"!==n){for(;/^(.+)\[([^\[\]]*?)\]$/.test(i)&&0<a;){var s=i.match(/^(.+)\[([^\[\]]*?)\]$/);if(3===s.length){var r={};r[s[2]]=e,e=r}i=s[1],a--}"checkbox"===n||"radio"===n?t(this).is(":checked")&&(e.length||"object"==typeof e||(e=!0),o.form[i]=l(o.form[i],e)):o.form[i]=l(o.form[i],e)}}),o=e.onPrepareDataAction.call(a,o)||o,t.post(e.api_url,o,function(t){if(e.onDialogHide.call(a.tinvwl_dialog),"object"==typeof t)for(var i in t)"function"==typeof e.onAction[i]&&e.onAction[i].call(a,t[i]);else"function"==typeof e.onAction.msg&&e.onAction.msg.call(a,t)})}},e=t.extend(!0,{},n,i);return t(this).each(function(){if(!t(this).attr("data-tinv-wl-list"))return!1;if(e.dialogbox&&e.dialogbox.length&&(this.tinvwl_dialog=e.dialogbox),this.tinvwl_dialog||(this.tinvwl_dialog=e.onGetDialogBox.call(this)),!this.tinvwl_dialog){var i=t(this).nextAll(e.class.dialogbox).eq(0);i.length&&(this.tinvwl_dialog=i)}if(this.tinvwl_dialog){e.onPrepareDialogBox.call(this.tinvwl_dialog),"function"!=typeof this.tinvwl_dialog.update_list&&(this.tinvwl_dialog.update_list=function(i){var n=t(this).find(e.class.select).eq(0);t(this).find(e.class.newtitle).hide().val(""),n.html(""),t.each(i,function(t,i){e.onCreateWishList.call(n,i)}),e.text_create&&e.onCreateWishList.call(n,{ID:"",title:e.text_create,in:!1}),e.onMultiProductAlreadyIn.call(n,i),e.onSelectWishList.call(n,i),t(this).find(e.class.newtitle).toggle(""===n.val())}),"function"!=typeof this.tinvwl_dialog.show_list&&(this.tinvwl_dialog.show_list=function(){var i=t.parseJSON(t(this).attr("data-tinv-wl-list"))||[];i.length?(i=e.onPrepareList.call(i)||i,this.tinvwl_dialog.update_list(i),e.onDialogShow.call(this.tinvwl_dialog)):e.onActionProduct.call(this)});var n=this;t(this.tinvwl_dialog).find(e.class.dialogbutton).off("click").on("click",function(){var i,o=t(n.tinvwl_dialog).find(e.class.select),a=t(n.tinvwl_dialog).find(e.class.newtitle);o.val()||a.val()?e.onActionProduct.call(n,o.val(),a.val()):((i=a.is(":visible")?a:o).addClass("empty-name-wishlist"),window.setTimeout(function(){i.removeClass("empty-name-wishlist")},1e3))})}t(this).off("click").on("click",e.onClick),e.onInited.call(this,e)})},t(document).ready(function(){t("body").on("click",".tinvwl_add_to_wishlist_button",function(i){if(t(this).is(".disabled-add-wishlist"))return i.preventDefault(),void window.alert(tinvwl_add_to_wishlist.i18n_make_a_selection_text);t(this).is(".inited-add-wishlist")||t(this).tinvwl_to_wishlist({onInited:function(i){t(this).addClass("inited-add-wishlist"),i.onClick.call(this)}})}),t(".tinvwl_move_product_button").tinvwl_to_wishlist({class:{dialogbox:".tinvwl_wishlist_move",select:".tinvwl_wishlist",newtitle:".tinvwl_new_input",dialogbutton:".tinvwl_button_move"},onPrepareDataAction:function(i){return i.tinv_from_wishlist_id=t(this).attr("data-tinv-wl"),i.tinv_to_wishlist_id=i.tinv_wishlist_id,i.tinv_wishlist_name||(i.tinv_wishlist_name="-"),delete i.tinv_wishlist_id,i},onPrepareList:function(){return this.filter(function(t){return!t.hide})},onAction:{redirect:function(t){return window.location.href=t}}}),t(".global-cb").on("click",function(){t(this).closest("table").eq(0).find(".product-cb input[type=checkbox], .wishlist-cb input[type=checkbox]").prop("checked",t(this).is(":checked"))})})}(jQuery),function(t){t.fn.tinvwl_break_submit=function(i){var n={selector:"input, select, textarea",ifempty:!0,invert:!1,validate:function(){return t(this).val()},rule:function(){var i=t(this).parents("form").eq(0).find(e.selector),n=e.invert;return 0===i.length?e.ifempty:(i.each(function(){n&&!e.invert||!n&&e.invert||(n=Boolean(e.validate.call(t(this))))}),n)}},e=t.extend(!0,{},n,i);return t(this).each(function(){t(this).on("click",function(i){e.rule.call(t(this))||(alert(window.tinvwl_add_to_wishlist.tinvwl_break_submit),i.preventDefault())})})},t(document).ready(function(){t(".tinvwl-break-input").tinvwl_break_submit({selector:".tinvwl-break-input-filed"}),t(".tinvwl-break-checkbox").tinvwl_break_submit({selector:"table td input[type=checkbox]",validate:function(){return t(this).is(":checked")}})})}(jQuery),function(t){t(".variations_form").each(function(){var i=t(this),n=i.find(".tinvwl_add_to_wishlist_button");n.length&&i.on("hide_variation",function(t){t.preventDefault(),n.addClass("disabled-add-wishlist")}).on("show_variation",function(t,i,e){var o=JSON.parse(n.attr("data-tinv-wl-list")),a=!1,l="1"==window.tinvwl_add_to_wishlist.simple_flow;for(var s in o)o[s].hasOwnProperty("in")&&Array.isArray(o[s].in)&&-1<(o[s].in||[]).indexOf(i.variation_id)&&(a=!0);n.toggleClass("tinvwl-product-in-list",a).toggleClass("tinvwl-product-make-remove",a&&l).attr("data-tinv-wl-action",a&&l?"remove":"addto"),t.preventDefault(),n.removeClass("disabled-add-wishlist")})})}(jQuery),function(t){t(document).ready(function(){t.fn.tinvwl_modal=function(i){var n={showClass:"tinv-modal-open",modal:".tinv-modal",onPrepare:function(){t("body > .tinv-wishlist").length||t("body").append(t("<div>").addClass("tinv-wishlist")),t(this).appendTo("body > .tinv-wishlist")}},e=t.extend(!0,{},n,i);return t(this).each(function(){var i=t(this),n=i.next(e.modal);e.onPrepare.call(n),i.on("click",function(){n.addClass(e.showClass)})})},t(".tinv-modal-btn").tinvwl_modal({}),t("#tinvwl_manage_actions, #tinvwl_product_actions").addClass("form-control").parent().wrapInner('<div class="tinvwl-input-group tinvwl-no-full">').find("button").wrap('<span class="tinvwl-input-group-btn">'),t(".tinv-lists-nav").each(function(){t.trim(t(this).html()).length||t(this).remove()}),t("body").on("click",".social-buttons .social[title!=email]",function(i){var n=window.open(t(this).attr("href"),t(this).attr("title"),"width=420,height=320,resizable=yes,scrollbars=yes,status=yes");n&&(n.focus(),i.preventDefault())}),t(".tinvwl-select-all").on("click",function(i){i.preventDefault(),t(this).parent().parent().find('ul li input[type="checkbox"]').attr("checked",!0)}),t(".tinvwl-select-none").on("click",function(i){i.preventDefault(),t(this).parent().parent().find('ul li input[type="checkbox"]').attr("checked",!1)}),t("body").on("click",".tinv-wishlist .tinv-overlay, .tinv-wishlist .tinv-close-modal, .tinv-wishlist .tinvwl_button_close",function(i){i.preventDefault(),t(this).parents(".tinv-modal:first").removeClass("tinv-modal-open")}),t("body").on("click",".tinv-wishlist .tinvwl-btn-onclick",function(i){t(this).data("url")&&(i.preventDefault(),window.location=t(this).data("url"))});var i=t(".tinv-wishlist .navigation-button");i.length&&i.each(function(){var i=t(this).find("> li");i.length<5&&i.parent().addClass("tinvwl-btns-count-"+i.length)}),t(".tinv-login .showlogin").unbind("click").on("click",function(i){i.preventDefault(),t(this).closest(".tinv-login").find(".login").toggle()}),t(".tinv-wishlist table.tinvwl-table-manage-list tfoot td").each(function(){t(this).toggle(!!t(this).children().not(".look_in").length||!!t(this).children(".look_in").children().length)})}),t(document.body).on("wc_fragments_refreshed wc_fragments_loaded",function(){t(".wishlist_products_counter").toggleClass("wishlist-counter-with-products","0"!=t(".wishlist_products_counter_number").html())}),t(window).on("load",function(){t(".tinv-wishlist.woocommerce").length&&t(".woocommerce-message").length&&(t(document.body).on("wc_fragments_refreshed.wishlist",function(){if("undefined"==typeof wc_cart_fragments_params)return!1;cart_hash_key=wc_cart_fragments_params.ajax_url.toString()+"-wc_cart_hash",localStorage.setItem(cart_hash_key,localStorage.getItem(cart_hash_key)+(new Date).getTime()),sessionStorage.setItem(cart_hash_key,sessionStorage.getItem(cart_hash_key)+(new Date).getTime()),t(document.body).off("wc_fragments_refreshed.wishlist")}),t(document.body).trigger("updated_wc_div"))})}(jQuery);
freemius/LICENSE.txt DELETED
@@ -1,674 +0,0 @@
1
- GNU GENERAL PUBLIC LICENSE
2
- Version 3, 29 June 2007
3
-
4
- Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
5
- Everyone is permitted to copy and distribute verbatim copies
6
- of this license document, but changing it is not allowed.
7
-
8
- Preamble
9
-
10
- The GNU General Public License is a free, copyleft license for
11
- software and other kinds of works.
12
-
13
- The licenses for most software and other practical works are designed
14
- to take away your freedom to share and change the works. By contrast,
15
- the GNU General Public License is intended to guarantee your freedom to
16
- share and change all versions of a program--to make sure it remains free
17
- software for all its users. We, the Free Software Foundation, use the
18
- GNU General Public License for most of our software; it applies also to
19
- any other work released this way by its authors. You can apply it to
20
- your programs, too.
21
-
22
- When we speak of free software, we are referring to freedom, not
23
- price. Our General Public Licenses are designed to make sure that you
24
- have the freedom to distribute copies of free software (and charge for
25
- them if you wish), that you receive source code or can get it if you
26
- want it, that you can change the software or use pieces of it in new
27
- free programs, and that you know you can do these things.
28
-
29
- To protect your rights, we need to prevent others from denying you
30
- these rights or asking you to surrender the rights. Therefore, you have
31
- certain responsibilities if you distribute copies of the software, or if
32
- you modify it: responsibilities to respect the freedom of others.
33
-
34
- For example, if you distribute copies of such a program, whether
35
- gratis or for a fee, you must pass on to the recipients the same
36
- freedoms that you received. You must make sure that they, too, receive
37
- or can get the source code. And you must show them these terms so they
38
- know their rights.
39
-
40
- Developers that use the GNU GPL protect your rights with two steps:
41
- (1) assert copyright on the software, and (2) offer you this License
42
- giving you legal permission to copy, distribute and/or modify it.
43
-
44
- For the developers' and authors' protection, the GPL clearly explains
45
- that there is no warranty for this free software. For both users' and
46
- authors' sake, the GPL requires that modified versions be marked as
47
- changed, so that their problems will not be attributed erroneously to
48
- authors of previous versions.
49
-
50
- Some devices are designed to deny users access to install or run
51
- modified versions of the software inside them, although the manufacturer
52
- can do so. This is fundamentally incompatible with the aim of
53
- protecting users' freedom to change the software. The systematic
54
- pattern of such abuse occurs in the area of products for individuals to
55
- use, which is precisely where it is most unacceptable. Therefore, we
56
- have designed this version of the GPL to prohibit the practice for those
57
- products. If such problems arise substantially in other domains, we
58
- stand ready to extend this provision to those domains in future versions
59
- of the GPL, as needed to protect the freedom of users.
60
-
61
- Finally, every program is threatened constantly by software patents.
62
- States should not allow patents to restrict development and use of
63
- software on general-purpose computers, but in those that do, we wish to
64
- avoid the special danger that patents applied to a free program could
65
- make it effectively proprietary. To prevent this, the GPL assures that
66
- patents cannot be used to render the program non-free.
67
-
68
- The precise terms and conditions for copying, distribution and
69
- modification follow.
70
-
71
- TERMS AND CONDITIONS
72
-
73
- 0. Definitions.
74
-
75
- "This License" refers to version 3 of the GNU General Public License.
76
-
77
- "Copyright" also means copyright-like laws that apply to other kinds of
78
- works, such as semiconductor masks.
79
-
80
- "The Program" refers to any copyrightable work licensed under this
81
- License. Each licensee is addressed as "you". "Licensees" and
82
- "recipients" may be individuals or organizations.
83
-
84
- To "modify" a work means to copy from or adapt all or part of the work
85
- in a fashion requiring copyright permission, other than the making of an
86
- exact copy. The resulting work is called a "modified version" of the
87
- earlier work or a work "based on" the earlier work.
88
-
89
- A "covered work" means either the unmodified Program or a work based
90
- on the Program.
91
-
92
- To "propagate" a work means to do anything with it that, without
93
- permission, would make you directly or secondarily liable for
94
- infringement under applicable copyright law, except executing it on a
95
- computer or modifying a private copy. Propagation includes copying,
96
- distribution (with or without modification), making available to the
97
- public, and in some countries other activities as well.
98
-
99
- To "convey" a work means any kind of propagation that enables other
100
- parties to make or receive copies. Mere interaction with a user through
101
- a computer network, with no transfer of a copy, is not conveying.
102
-
103
- An interactive user interface displays "Appropriate Legal Notices"
104
- to the extent that it includes a convenient and prominently visible
105
- feature that (1) displays an appropriate copyright notice, and (2)
106
- tells the user that there is no warranty for the work (except to the
107
- extent that warranties are provided), that licensees may convey the
108
- work under this License, and how to view a copy of this License. If
109
- the interface presents a list of user commands or options, such as a
110
- menu, a prominent item in the list meets this criterion.
111
-
112
- 1. Source Code.
113
-
114
- The "source code" for a work means the preferred form of the work
115
- for making modifications to it. "Object code" means any non-source
116
- form of a work.
117
-
118
- A "Standard Interface" means an interface that either is an official
119
- standard defined by a recognized standards body, or, in the case of
120
- interfaces specified for a particular programming language, one that
121
- is widely used among developers working in that language.
122
-
123
- The "System Libraries" of an executable work include anything, other
124
- than the work as a whole, that (a) is included in the normal form of
125
- packaging a Major Component, but which is not part of that Major
126
- Component, and (b) serves only to enable use of the work with that
127
- Major Component, or to implement a Standard Interface for which an
128
- implementation is available to the public in source code form. A
129
- "Major Component", in this context, means a major essential component
130
- (kernel, window system, and so on) of the specific operating system
131
- (if any) on which the executable work runs, or a compiler used to
132
- produce the work, or an object code interpreter used to run it.
133
-
134
- The "Corresponding Source" for a work in object code form means all
135
- the source code needed to generate, install, and (for an executable
136
- work) run the object code and to modify the work, including scripts to
137
- control those activities. However, it does not include the work's
138
- System Libraries, or general-purpose tools or generally available free
139
- programs which are used unmodified in performing those activities but
140
- which are not part of the work. For example, Corresponding Source
141
- includes interface definition files associated with source files for
142
- the work, and the source code for shared libraries and dynamically
143
- linked subprograms that the work is specifically designed to require,
144
- such as by intimate data communication or control flow between those
145
- subprograms and other parts of the work.
146
-
147
- The Corresponding Source need not include anything that users
148
- can regenerate automatically from other parts of the Corresponding
149
- Source.
150
-
151
- The Corresponding Source for a work in source code form is that
152
- same work.
153
-
154
- 2. Basic Permissions.
155
-
156
- All rights granted under this License are granted for the term of
157
- copyright on the Program, and are irrevocable provided the stated
158
- conditions are met. This License explicitly affirms your unlimited
159
- permission to run the unmodified Program. The output from running a
160
- covered work is covered by this License only if the output, given its
161
- content, constitutes a covered work. This License acknowledges your
162
- rights of fair use or other equivalent, as provided by copyright law.
163
-
164
- You may make, run and propagate covered works that you do not
165
- convey, without conditions so long as your license otherwise remains
166
- in force. You may convey covered works to others for the sole purpose
167
- of having them make modifications exclusively for you, or provide you
168
- with facilities for running those works, provided that you comply with
169
- the terms of this License in conveying all material for which you do
170
- not control copyright. Those thus making or running the covered works
171
- for you must do so exclusively on your behalf, under your direction
172
- and control, on terms that prohibit them from making any copies of
173
- your copyrighted material outside their relationship with you.
174
-
175
- Conveying under any other circumstances is permitted solely under
176
- the conditions stated below. Sublicensing is not allowed; section 10
177
- makes it unnecessary.
178
-
179
- 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
180
-
181
- No covered work shall be deemed part of an effective technological
182
- measure under any applicable law fulfilling obligations under article
183
- 11 of the WIPO copyright treaty adopted on 20 December 1996, or
184
- similar laws prohibiting or restricting circumvention of such
185
- measures.
186
-
187
- When you convey a covered work, you waive any legal power to forbid
188
- circumvention of technological measures to the extent such circumvention
189
- is effected by exercising rights under this License with respect to
190
- the covered work, and you disclaim any intention to limit operation or
191
- modification of the work as a means of enforcing, against the work's
192
- users, your or third parties' legal rights to forbid circumvention of
193
- technological measures.
194
-
195
- 4. Conveying Verbatim Copies.
196
-
197
- You may convey verbatim copies of the Program's source code as you
198
- receive it, in any medium, provided that you conspicuously and
199
- appropriately publish on each copy an appropriate copyright notice;
200
- keep intact all notices stating that this License and any
201
- non-permissive terms added in accord with section 7 apply to the code;
202
- keep intact all notices of the absence of any warranty; and give all
203
- recipients a copy of this License along with the Program.
204
-
205
- You may charge any price or no price for each copy that you convey,
206
- and you may offer support or warranty protection for a fee.
207
-
208
- 5. Conveying Modified Source Versions.
209
-
210
- You may convey a work based on the Program, or the modifications to
211
- produce it from the Program, in the form of source code under the
212
- terms of section 4, provided that you also meet all of these conditions:
213
-
214
- a) The work must carry prominent notices stating that you modified
215
- it, and giving a relevant date.
216
-
217
- b) The work must carry prominent notices stating that it is
218
- released under this License and any conditions added under section
219
- 7. This requirement modifies the requirement in section 4 to
220
- "keep intact all notices".
221
-
222
- c) You must license the entire work, as a whole, under this
223
- License to anyone who comes into possession of a copy. This
224
- License will therefore apply, along with any applicable section 7
225
- additional terms, to the whole of the work, and all its parts,
226
- regardless of how they are packaged. This License gives no
227
- permission to license the work in any other way, but it does not
228
- invalidate such permission if you have separately received it.
229
-
230
- d) If the work has interactive user interfaces, each must display
231
- Appropriate Legal Notices; however, if the Program has interactive
232
- interfaces that do not display Appropriate Legal Notices, your
233
- work need not make them do so.
234
-
235
- A compilation of a covered work with other separate and independent
236
- works, which are not by their nature extensions of the covered work,
237
- and which are not combined with it such as to form a larger program,
238
- in or on a volume of a storage or distribution medium, is called an
239
- "aggregate" if the compilation and its resulting copyright are not
240
- used to limit the access or legal rights of the compilation's users
241
- beyond what the individual works permit. Inclusion of a covered work
242
- in an aggregate does not cause this License to apply to the other
243
- parts of the aggregate.
244
-
245
- 6. Conveying Non-Source Forms.
246
-
247
- You may convey a covered work in object code form under the terms
248
- of sections 4 and 5, provided that you also convey the
249
- machine-readable Corresponding Source under the terms of this License,
250
- in one of these ways:
251
-
252
- a) Convey the object code in, or embodied in, a physical product
253
- (including a physical distribution medium), accompanied by the
254
- Corresponding Source fixed on a durable physical medium
255
- customarily used for software interchange.
256
-
257
- b) Convey the object code in, or embodied in, a physical product
258
- (including a physical distribution medium), accompanied by a
259
- written offer, valid for at least three years and valid for as
260
- long as you offer spare parts or customer support for that product
261
- model, to give anyone who possesses the object code either (1) a
262
- copy of the Corresponding Source for all the software in the
263
- product that is covered by this License, on a durable physical
264
- medium customarily used for software interchange, for a price no
265
- more than your reasonable cost of physically performing this
266
- conveying of source, or (2) access to copy the
267
- Corresponding Source from a network server at no charge.
268
-
269
- c) Convey individual copies of the object code with a copy of the
270
- written offer to provide the Corresponding Source. This
271
- alternative is allowed only occasionally and noncommercially, and
272
- only if you received the object code with such an offer, in accord
273
- with subsection 6b.
274
-
275
- d) Convey the object code by offering access from a designated
276
- place (gratis or for a charge), and offer equivalent access to the
277
- Corresponding Source in the same way through the same place at no
278
- further charge. You need not require recipients to copy the
279
- Corresponding Source along with the object code. If the place to
280
- copy the object code is a network server, the Corresponding Source
281
- may be on a different server (operated by you or a third party)
282
- that supports equivalent copying facilities, provided you maintain
283
- clear directions next to the object code saying where to find the
284
- Corresponding Source. Regardless of what server hosts the
285
- Corresponding Source, you remain obligated to ensure that it is
286
- available for as long as needed to satisfy these requirements.
287
-
288
- e) Convey the object code using peer-to-peer transmission, provided
289
- you inform other peers where the object code and Corresponding
290
- Source of the work are being offered to the general public at no
291
- charge under subsection 6d.
292
-
293
- A separable portion of the object code, whose source code is excluded
294
- from the Corresponding Source as a System Library, need not be
295
- included in conveying the object code work.
296
-
297
- A "User Product" is either (1) a "consumer product", which means any
298
- tangible personal property which is normally used for personal, family,
299
- or household purposes, or (2) anything designed or sold for incorporation
300
- into a dwelling. In determining whether a product is a consumer product,
301
- doubtful cases shall be resolved in favor of coverage. For a particular
302
- product received by a particular user, "normally used" refers to a
303
- typical or common use of that class of product, regardless of the status
304
- of the particular user or of the way in which the particular user
305
- actually uses, or expects or is expected to use, the product. A product
306
- is a consumer product regardless of whether the product has substantial
307
- commercial, industrial or non-consumer uses, unless such uses represent
308
- the only significant mode of use of the product.
309
-
310
- "Installation Information" for a User Product means any methods,
311
- procedures, authorization keys, or other information required to install
312
- and execute modified versions of a covered work in that User Product from
313
- a modified version of its Corresponding Source. The information must
314
- suffice to ensure that the continued functioning of the modified object
315
- code is in no case prevented or interfered with solely because
316
- modification has been made.
317
-
318
- If you convey an object code work under this section in, or with, or
319
- specifically for use in, a User Product, and the conveying occurs as
320
- part of a transaction in which the right of possession and use of the
321
- User Product is transferred to the recipient in perpetuity or for a
322
- fixed term (regardless of how the transaction is characterized), the
323
- Corresponding Source conveyed under this section must be accompanied
324
- by the Installation Information. But this requirement does not apply
325
- if neither you nor any third party retains the ability to install
326
- modified object code on the User Product (for example, the work has
327
- been installed in ROM).
328
-
329
- The requirement to provide Installation Information does not include a
330
- requirement to continue to provide support service, warranty, or updates
331
- for a work that has been modified or installed by the recipient, or for
332
- the User Product in which it has been modified or installed. Access to a
333
- network may be denied when the modification itself materially and
334
- adversely affects the operation of the network or violates the rules and
335
- protocols for communication across the network.
336
-
337
- Corresponding Source conveyed, and Installation Information provided,
338
- in accord with this section must be in a format that is publicly
339
- documented (and with an implementation available to the public in
340
- source code form), and must require no special password or key for
341
- unpacking, reading or copying.
342
-
343
- 7. Additional Terms.
344
-
345
- "Additional permissions" are terms that supplement the terms of this
346
- License by making exceptions from one or more of its conditions.
347
- Additional permissions that are applicable to the entire Program shall
348
- be treated as though they were included in this License, to the extent
349
- that they are valid under applicable law. If additional permissions
350
- apply only to part of the Program, that part may be used separately
351
- under those permissions, but the entire Program remains governed by
352
- this License without regard to the additional permissions.
353
-
354
- When you convey a copy of a covered work, you may at your option
355
- remove any additional permissions from that copy, or from any part of
356
- it. (Additional permissions may be written to require their own
357
- removal in certain cases when you modify the work.) You may place
358
- additional permissions on material, added by you to a covered work,
359
- for which you have or can give appropriate copyright permission.
360
-
361
- Notwithstanding any other provision of this License, for material you
362
- add to a covered work, you may (if authorized by the copyright holders of
363
- that material) supplement the terms of this License with terms:
364
-
365
- a) Disclaiming warranty or limiting liability differently from the
366
- terms of sections 15 and 16 of this License; or
367
-
368
- b) Requiring preservation of specified reasonable legal notices or
369
- author attributions in that material or in the Appropriate Legal
370
- Notices displayed by works containing it; or
371
-
372
- c) Prohibiting misrepresentation of the origin of that material, or
373
- requiring that modified versions of such material be marked in
374
- reasonable ways as different from the original version; or
375
-
376
- d) Limiting the use for publicity purposes of names of licensors or
377
- authors of the material; or
378
-
379
- e) Declining to grant rights under trademark law for use of some
380
- trade names, trademarks, or service marks; or
381
-
382
- f) Requiring indemnification of licensors and authors of that
383
- material by anyone who conveys the material (or modified versions of
384
- it) with contractual assumptions of liability to the recipient, for
385
- any liability that these contractual assumptions directly impose on
386
- those licensors and authors.
387
-
388
- All other non-permissive additional terms are considered "further
389
- restrictions" within the meaning of section 10. If the Program as you
390
- received it, or any part of it, contains a notice stating that it is
391
- governed by this License along with a term that is a further
392
- restriction, you may remove that term. If a license document contains
393
- a further restriction but permits relicensing or conveying under this
394
- License, you may add to a covered work material governed by the terms
395
- of that license document, provided that the further restriction does
396
- not survive such relicensing or conveying.
397
-
398
- If you add terms to a covered work in accord with this section, you
399
- must place, in the relevant source files, a statement of the
400
- additional terms that apply to those files, or a notice indicating
401
- where to find the applicable terms.
402
-
403
- Additional terms, permissive or non-permissive, may be stated in the
404
- form of a separately written license, or stated as exceptions;
405
- the above requirements apply either way.
406
-
407
- 8. Termination.
408
-
409
- You may not propagate or modify a covered work except as expressly
410
- provided under this License. Any attempt otherwise to propagate or
411
- modify it is void, and will automatically terminate your rights under
412
- this License (including any patent licenses granted under the third
413
- paragraph of section 11).
414
-
415
- However, if you cease all violation of this License, then your
416
- license from a particular copyright holder is reinstated (a)
417
- provisionally, unless and until the copyright holder explicitly and
418
- finally terminates your license, and (b) permanently, if the copyright
419
- holder fails to notify you of the violation by some reasonable means
420
- prior to 60 days after the cessation.
421
-
422
- Moreover, your license from a particular copyright holder is
423
- reinstated permanently if the copyright holder notifies you of the
424
- violation by some reasonable means, this is the first time you have
425
- received notice of violation of this License (for any work) from that
426
- copyright holder, and you cure the violation prior to 30 days after
427
- your receipt of the notice.
428
-
429
- Termination of your rights under this section does not terminate the
430
- licenses of parties who have received copies or rights from you under
431
- this License. If your rights have been terminated and not permanently
432
- reinstated, you do not qualify to receive new licenses for the same
433
- material under section 10.
434
-
435
- 9. Acceptance Not Required for Having Copies.
436
-
437
- You are not required to accept this License in order to receive or
438
- run a copy of the Program. Ancillary propagation of a covered work
439
- occurring solely as a consequence of using peer-to-peer transmission
440
- to receive a copy likewise does not require acceptance. However,
441
- nothing other than this License grants you permission to propagate or
442
- modify any covered work. These actions infringe copyright if you do
443
- not accept this License. Therefore, by modifying or propagating a
444
- covered work, you indicate your acceptance of this License to do so.
445
-
446
- 10. Automatic Licensing of Downstream Recipients.
447
-
448
- Each time you convey a covered work, the recipient automatically
449
- receives a license from the original licensors, to run, modify and
450
- propagate that work, subject to this License. You are not responsible
451
- for enforcing compliance by third parties with this License.
452
-
453
- An "entity transaction" is a transaction transferring control of an
454
- organization, or substantially all assets of one, or subdividing an
455
- organization, or merging organizations. If propagation of a covered
456
- work results from an entity transaction, each party to that
457
- transaction who receives a copy of the work also receives whatever
458
- licenses to the work the party's predecessor in interest had or could
459
- give under the previous paragraph, plus a right to possession of the
460
- Corresponding Source of the work from the predecessor in interest, if
461
- the predecessor has it or can get it with reasonable efforts.
462
-
463
- You may not impose any further restrictions on the exercise of the
464
- rights granted or affirmed under this License. For example, you may
465
- not impose a license fee, royalty, or other charge for exercise of
466
- rights granted under this License, and you may not initiate litigation
467
- (including a cross-claim or counterclaim in a lawsuit) alleging that
468
- any patent claim is infringed by making, using, selling, offering for
469
- sale, or importing the Program or any portion of it.
470
-
471
- 11. Patents.
472
-
473
- A "contributor" is a copyright holder who authorizes use under this
474
- License of the Program or a work on which the Program is based. The
475
- work thus licensed is called the contributor's "contributor version".
476
-
477
- A contributor's "essential patent claims" are all patent claims
478
- owned or controlled by the contributor, whether already acquired or
479
- hereafter acquired, that would be infringed by some manner, permitted
480
- by this License, of making, using, or selling its contributor version,
481
- but do not include claims that would be infringed only as a
482
- consequence of further modification of the contributor version. For
483
- purposes of this definition, "control" includes the right to grant
484
- patent sublicenses in a manner consistent with the requirements of
485
- this License.
486
-
487
- Each contributor grants you a non-exclusive, worldwide, royalty-free
488
- patent license under the contributor's essential patent claims, to
489
- make, use, sell, offer for sale, import and otherwise run, modify and
490
- propagate the contents of its contributor version.
491
-
492
- In the following three paragraphs, a "patent license" is any express
493
- agreement or commitment, however denominated, not to enforce a patent
494
- (such as an express permission to practice a patent or covenant not to
495
- sue for patent infringement). To "grant" such a patent license to a
496
- party means to make such an agreement or commitment not to enforce a
497
- patent against the party.
498
-
499
- If you convey a covered work, knowingly relying on a patent license,
500
- and the Corresponding Source of the work is not available for anyone
501
- to copy, free of charge and under the terms of this License, through a
502
- publicly available network server or other readily accessible means,
503
- then you must either (1) cause the Corresponding Source to be so
504
- available, or (2) arrange to deprive yourself of the benefit of the
505
- patent license for this particular work, or (3) arrange, in a manner
506
- consistent with the requirements of this License, to extend the patent
507
- license to downstream recipients. "Knowingly relying" means you have
508
- actual knowledge that, but for the patent license, your conveying the
509
- covered work in a country, or your recipient's use of the covered work
510
- in a country, would infringe one or more identifiable patents in that
511
- country that you have reason to believe are valid.
512
-
513
- If, pursuant to or in connection with a single transaction or
514
- arrangement, you convey, or propagate by procuring conveyance of, a
515
- covered work, and grant a patent license to some of the parties
516
- receiving the covered work authorizing them to use, propagate, modify
517
- or convey a specific copy of the covered work, then the patent license
518
- you grant is automatically extended to all recipients of the covered
519
- work and works based on it.
520
-
521
- A patent license is "discriminatory" if it does not include within
522
- the scope of its coverage, prohibits the exercise of, or is
523
- conditioned on the non-exercise of one or more of the rights that are
524
- specifically granted under this License. You may not convey a covered
525
- work if you are a party to an arrangement with a third party that is
526
- in the business of distributing software, under which you make payment
527
- to the third party based on the extent of your activity of conveying
528
- the work, and under which the third party grants, to any of the
529
- parties who would receive the covered work from you, a discriminatory
530
- patent license (a) in connection with copies of the covered work
531
- conveyed by you (or copies made from those copies), or (b) primarily
532
- for and in connection with specific products or compilations that
533
- contain the covered work, unless you entered into that arrangement,
534
- or that patent license was granted, prior to 28 March 2007.
535
-
536
- Nothing in this License shall be construed as excluding or limiting
537
- any implied license or other defenses to infringement that may
538
- otherwise be available to you under applicable patent law.
539
-
540
- 12. No Surrender of Others' Freedom.
541
-
542
- If conditions are imposed on you (whether by court order, agreement or
543
- otherwise) that contradict the conditions of this License, they do not
544
- excuse you from the conditions of this License. If you cannot convey a
545
- covered work so as to satisfy simultaneously your obligations under this
546
- License and any other pertinent obligations, then as a consequence you may
547
- not convey it at all. For example, if you agree to terms that obligate you
548
- to collect a royalty for further conveying from those to whom you convey
549
- the Program, the only way you could satisfy both those terms and this
550
- License would be to refrain entirely from conveying the Program.
551
-
552
- 13. Use with the GNU Affero General Public License.
553
-
554
- Notwithstanding any other provision of this License, you have
555
- permission to link or combine any covered work with a work licensed
556
- under version 3 of the GNU Affero General Public License into a single
557
- combined work, and to convey the resulting work. The terms of this
558
- License will continue to apply to the part which is the covered work,
559
- but the special requirements of the GNU Affero General Public License,
560
- section 13, concerning interaction through a network will apply to the
561
- combination as such.
562
-
563
- 14. Revised Versions of this License.
564
-
565
- The Free Software Foundation may publish revised and/or new versions of
566
- the GNU General Public License from time to time. Such new versions will
567
- be similar in spirit to the present version, but may differ in detail to
568
- address new problems or concerns.
569
-
570
- Each version is given a distinguishing version number. If the
571
- Program specifies that a certain numbered version of the GNU General
572
- Public License "or any later version" applies to it, you have the
573
- option of following the terms and conditions either of that numbered
574
- version or of any later version published by the Free Software
575
- Foundation. If the Program does not specify a version number of the
576
- GNU General Public License, you may choose any version ever published
577
- by the Free Software Foundation.
578
-
579
- If the Program specifies that a proxy can decide which future
580
- versions of the GNU General Public License can be used, that proxy's
581
- public statement of acceptance of a version permanently authorizes you
582
- to choose that version for the Program.
583
-
584
- Later license versions may give you additional or different
585
- permissions. However, no additional obligations are imposed on any
586
- author or copyright holder as a result of your choosing to follow a
587
- later version.
588
-
589
- 15. Disclaimer of Warranty.
590
-
591
- THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
592
- APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
593
- HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
594
- OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
595
- THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
596
- PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
597
- IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
598
- ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
599
-
600
- 16. Limitation of Liability.
601
-
602
- IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
603
- WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
604
- THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
605
- GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
606
- USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
607
- DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
608
- PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
609
- EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
610
- SUCH DAMAGES.
611
-
612
- 17. Interpretation of Sections 15 and 16.
613
-
614
- If the disclaimer of warranty and limitation of liability provided
615
- above cannot be given local legal effect according to their terms,
616
- reviewing courts shall apply local law that most closely approximates
617
- an absolute waiver of all civil liability in connection with the
618
- Program, unless a warranty or assumption of liability accompanies a
619
- copy of the Program in return for a fee.
620
-
621
- END OF TERMS AND CONDITIONS
622
-
623
- How to Apply These Terms to Your New Programs
624
-
625
- If you develop a new program, and you want it to be of the greatest
626
- possible use to the public, the best way to achieve this is to make it
627
- free software which everyone can redistribute and change under these terms.
628
-
629
- To do so, attach the following notices to the program. It is safest
630
- to attach them to the start of each source file to most effectively
631
- state the exclusion of warranty; and each file should have at least
632
- the "copyright" line and a pointer to where the full notice is found.
633
-
634
- {one line to give the program's name and a brief idea of what it does.}
635
- Copyright (C) {year} {name of author}
636
-
637
- This program is free software: you can redistribute it and/or modify
638
- it under the terms of the GNU General Public License as published by
639
- the Free Software Foundation, either version 3 of the License, or
640
- (at your option) any later version.
641
-
642
- This program is distributed in the hope that it will be useful,
643
- but WITHOUT ANY WARRANTY; without even the implied warranty of
644
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
645
- GNU General Public License for more details.
646
-
647
- You should have received a copy of the GNU General Public License
648
- along with this program. If not, see <http://www.gnu.org/licenses/>.
649
-
650
- Also add information on how to contact you by electronic and paper mail.
651
-
652
- If the program does terminal interaction, make it output a short
653
- notice like this when it starts in an interactive mode:
654
-
655
- {project} Copyright (C) {year} {fullname}
656
- This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
657
- This is free software, and you are welcome to redistribute it
658
- under certain conditions; type `show c' for details.
659
-
660
- The hypothetical commands `show w' and `show c' should show the appropriate
661
- parts of the General Public License. Of course, your program's commands
662
- might be different; for a GUI interface, you would use an "about box".
663
-
664
- You should also get your employer (if you work as a programmer) or school,
665
- if any, to sign a "copyright disclaimer" for the program, if necessary.
666
- For more information on this, and how to apply and follow the GNU GPL, see
667
- <http://www.gnu.org/licenses/>.
668
-
669
- The GNU General Public License does not permit incorporating your program
670
- into proprietary programs. If your program is a subroutine library, you
671
- may consider it more useful to permit linking proprietary applications with
672
- the library. If this is what you want to do, use the GNU Lesser General
673
- Public License instead of this License. But first, please read
674
- <http://www.gnu.org/philosophy/why-not-lgpl.html>.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
freemius/README.md DELETED
@@ -1,253 +0,0 @@
1
- Freemius WordPress SDK
2
- ======================
3
-
4
- [Monetization](https://freemius.com/wordpress/), [analytics](https://freemius.com/wordpress/insights/), and marketing automation platform for plugin & theme developers. Freemius empower developers to create prosperous subscription based businesses.
5
-
6
- You can see some of the WordPress.org plugins & themes that are utilizing the power of Freemius here:
7
-
8
- https://includewp.com/freemius/#focus
9
-
10
- If you are a WordPress plugin or theme developer and you are interested to monetize with Freemius you can [sign-up here for free](https://dashboard.freemius.com/register/):
11
-
12
- https://dashboard.freemius.com/register/
13
-
14
- **Below you'll find the integration instructions for our WordPress SDK.**
15
-
16
- ## Code Documentation
17
-
18
- You can find the SDK's PHP-Doc documentation here:
19
- https://codedoc.pub/freemius/wordpress-sdk/master/
20
-
21
- ## Initializing the SDK
22
-
23
- Copy the code below and paste it into the top of your main plugin's PHP file, right after the plugin's header comment:
24
-
25
- ```php
26
- <?php
27
- // Create a helper function for easy SDK access.
28
- function my_prefix_fs() {
29
- global $my_prefix_fs;
30
- if ( ! isset( $my_prefix_fs ) ) {
31
- // Include Freemius SDK.
32
- require_once dirname(__FILE__) . '/freemius/start.php';
33
-
34
- $my_prefix_fs = fs_dynamic_init( array(
35
- 'id' => '1234',
36
- 'slug' => 'my-plugin-slug',
37
- 'menu_slug' => 'my_menu_slug', // You can also use __FILE__
38
- 'public_key' => 'pk_MY_PUBLIC_KEY',
39
- 'is_live' => true,
40
- 'is_premium' => true,
41
- 'has_addons' => false,
42
- 'has_paid_plans' => false,
43
- // Set the SDK to work in a sandbox mode (for development & testing).
44
- // IMPORTANT: MAKE SURE TO REMOVE SECRET KEY BEFORE DEPLOYMENT.
45
- 'secret_key' => 'sk_MY_SECRET_KEY',
46
- ) );
47
- }
48
-
49
- return $my_prefix_fs;
50
- }
51
-
52
- // Init Freemius.
53
- my_prefix_fs();
54
- ?>
55
- ```
56
-
57
- - **1234** - Replace with your plugin's ID.
58
- - **pk_MY_PUBLIC_KEY** - Replace with your plugin's public key.
59
- - **sk_MY_SECRET_KEY** - Replace with your plugin's secret key.
60
- - **my-plugin-slug** - Replace with your plugin's WordPress.org slug.
61
- - **my_menu_slug** - Replace with your admin dashboard settings menu slug.
62
-
63
-
64
- ## Usage example
65
-
66
- You can call the SDK by using the shortcode function:
67
-
68
- ```php
69
- <?php my_prefix_fs()->get_upgrade_url(); ?>
70
- ```
71
-
72
- Or when calling Freemius multiple times in a scope, it's recommended to use it with the global variable:
73
-
74
- ```php
75
- <?php
76
- global $my_prefix_fs;
77
- $my_prefix_fs->get_account_url();
78
- ?>
79
- ```
80
-
81
- ## Adding license based logic examples
82
-
83
- Add marketing content to encourage your users to upgrade for your paid version:
84
-
85
- ```php
86
- <?php
87
- if ( my_prefix_fs()->is_not_paying() ) {
88
- echo '<section><h1>' . esc_html__('Awesome Premium Features', 'my-plugin-slug') . '</h1>';
89
- echo '<a href="' . my_prefix_fs()->get_upgrade_url() . '">' .
90
- esc_html__('Upgrade Now!', 'my-plugin-slug') .
91
- '</a>';
92
- echo '</section>';
93
- }
94
- ?>
95
- ```
96
-
97
- Add logic which will only be available in your premium plugin version:
98
-
99
- ```php
100
- <?php
101
- // This "if" block will be auto removed from the Free version.
102
- if ( my_prefix_fs()->is__premium_only() ) {
103
-
104
- // ... premium only logic ...
105
-
106
- }
107
- ?>
108
- ```
109
-
110
- To add a function which will only be available in your premium plugin version, simply add __premium_only as the suffix of the function name. Just make sure that all lines that call that method directly or by hooks, are also wrapped in premium only logic:
111
-
112
- ```php
113
- <?php
114
- class My_Plugin {
115
- function init() {
116
- ...
117
-
118
- // This "if" block will be auto removed from the free version.
119
- if ( my_prefix_fs()->is__premium_only() ) {
120
- // Init premium version.
121
- $this->admin_init__premium_only();
122
-
123
- add_action( 'admin_init', array( &$this, 'admin_init_hook__premium_only' );
124
- }
125
-
126
- ...
127
- }
128
-
129
- // This method will be only included in the premium version.
130
- function admin_init__premium_only() {
131
- ...
132
- }
133
-
134
- // This method will be only included in the premium version.
135
- function admin_init_hook__premium_only() {
136
- ...
137
- }
138
- }
139
- ?>
140
- ```
141
-
142
- Add logic which will only be executed for customers in your 'professional' plan:
143
-
144
- ```php
145
- <?php
146
- if ( my_prefix_fs()->is_plan('professional', true) ) {
147
- // .. logic related to Professional plan only ...
148
- }
149
- ?>
150
- ```
151
-
152
- Add logic which will only be executed for customers in your 'professional' plan or higher plans:
153
-
154
- ```php
155
- <?php
156
- if ( my_prefix_fs()->is_plan('professional') ) {
157
- // ... logic related to Professional plan and higher plans ...
158
- }
159
- ?>
160
- ```
161
-
162
- Add logic which will only be available in your premium plugin version AND will only be executed for customers in your 'professional' plan (and higher plans):
163
-
164
- ```php
165
- <?php
166
- // This "if" block will be auto removed from the Free version.
167
- if ( my_prefix_fs()->is_plan__premium_only('professional') ) {
168
- // ... logic related to Professional plan and higher plans ...
169
- }
170
- ?>
171
- ```
172
-
173
- Add logic only for users in trial:
174
-
175
- ```php
176
- <?php
177
- if ( my_prefix_fs()->is_trial() ) {
178
- // ... logic for users in trial ...
179
- }
180
- ?>
181
- ```
182
-
183
- Add logic for specified paid plan:
184
-
185
- ```php
186
- <?php
187
- // This "if" block will be auto removed from the Free version.
188
- if ( my_prefix_fs()->is__premium_only() ) {
189
- if ( my_prefix_fs()->is_plan( 'professional', true ) ) {
190
-
191
- // ... logic related to Professional plan only ...
192
-
193
- } else if ( my_prefix_fs()->is_plan( 'business' ) ) {
194
-
195
- // ... logic related to Business plan and higher plans ...
196
-
197
- }
198
- }
199
- ?>
200
- ```
201
-
202
- ## Excluding files and folders from the free plugin version
203
- There are two ways to exclude files from your free version.
204
-
205
- 1. Add `__premium_only` just before the file extension. For example, functions__premium_only.php will be only included in the premium plugin version. This works for all type of files, not only PHP.
206
- 2. Add `@fs_premium_only` a sepcial meta tag to the plugin's main PHP file header. Example:
207
- ```php
208
- <?php
209
- /**
210
- * Plugin Name: My Very Awesome Plugin
211
- * Plugin URI: http://my-awesome-plugin.com
212
- * Description: Create and manage Awesomeness right in WordPress.
213
- * Version: 1.0.0
214
- * Author: Awesomattic
215
- * Author URI: http://my-awesome-plugin.com/me/
216
- * License: GPLv2
217
- * Text Domain: myplugin
218
- * Domain Path: /langs
219
- *
220
- * @fs_premium_only /lib/functions.php, /premium-files/
221
- */
222
-
223
- if ( ! defined( 'ABSPATH' ) ) {
224
- exit;
225
- }
226
-
227
- // ... my code ...
228
- ?>
229
- ```
230
- The file `/lib/functions.php` and the directory `/premium-files/` will be removed from the free plugin version.
231
-
232
- # WordPress.org Compliance
233
- Based on [WordPress.org Guidelines](https://wordpress.org/plugins/about/guidelines/) you are not allowed to submit a plugin that has premium code in it:
234
- > All code hosted by WordPress.org servers must be free and fully-functional. If you want to sell advanced features for a plugin (such as a "pro" version), then you must sell and serve that code from your own site, we will not host it on our servers.
235
-
236
- Therefore, if you want to deploy your free plugin's version to WordPress.org, make sure you wrap all your premium code with `if ( my_prefix_fs()->{{ method }}__premium_only() )` or the other methods provided to exclude premium features & files from the free version.
237
-
238
- ## Deployment
239
- Zip your plugin's root folder and upload it in the Deployment section in the *Freemius Developer's Dashboard*.
240
- The plugin will be scanned and processed by a custom developed *PHP Processor* which will auto-generate two versions of your plugin:
241
-
242
- 1. **Premium version**: Identical to your uploaded version, including all code (except your `secret_key`). Will be enabled for download ONLY for your paying or in trial customers.
243
- 2. **Free version**: The code stripped from all your paid features (based on the logic added wrapped in `{ method }__premium_only()`).
244
-
245
- The free version is the one that you should give your users to download. Therefore, download the free generated version and upload to your site. Or, if your plugin was WordPress.org complaint and you made sure to exclude all your premium code with the different provided techniques, you can deploy the downloaded free version to the .org repo.
246
-
247
- ## Reporting Bugs
248
- Email dev [at] freemius [dot] com
249
-
250
- ## FAQ
251
-
252
- ## Copyright
253
- Freemius, Inc.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
freemius/assets/css/admin/account.css DELETED
@@ -1 +0,0 @@
1
- #fs_account .postbox,#fs_account .widefat{max-width:700px}#fs_account h3{font-size:1.3em;padding:12px 15px;margin:0 0 12px 0;line-height:1.4;border-bottom:1px solid #F1F1F1}#fs_account h3 .dashicons{width:26px;height:26px;font-size:1.3em}#fs_account i.dashicons{font-size:1.2em;height:1.2em;width:1.2em}#fs_account .button i.dashicons{vertical-align:middle}#fs_account .fs-header-actions{position:absolute;top:17px;right:15px;font-size:0.9em}#fs_account .fs-header-actions ul{margin:0}#fs_account .fs-header-actions li{float:left}#fs_account .fs-header-actions li form{display:inline-block}#fs_account .fs-header-actions li a{text-decoration:none}#fs_account_details .button-group{float:right}.rtl #fs_account .fs-header-actions{left:15px;right:auto}.fs-key-value-table{width:100%}.fs-key-value-table form{display:inline-block}.fs-key-value-table tr td:first-child{text-align:right}.fs-key-value-table tr td:first-child nobr{font-weight:bold}.fs-key-value-table tr td:first-child form{display:block}.fs-key-value-table tr td.fs-right{text-align:right}.fs-key-value-table tr.fs-odd{background:#ebebeb}.fs-key-value-table td,.fs-key-value-table th{padding:10px}.fs-key-value-table code{line-height:28px}.fs-key-value-table var,.fs-key-value-table code,.fs-key-value-table input[type="text"]{color:#0073AA;font-size:16px;background:none}.fs-key-value-table input[type="text"]{width:100%;font-weight:bold}label.fs-tag{background:#ffba00;color:#fff;display:inline-block;border-radius:3px;padding:5px;font-size:11px;line-height:11px;vertical-align:baseline}label.fs-tag.fs-warn{background:#ffba00}label.fs-tag.fs-success{background:#46b450}label.fs-tag.fs-error{background:#dc3232}#fs_addons h3{border:none;margin-bottom:0;padding:4px 5px}#fs_addons td{vertical-align:middle}#fs_addons thead{white-space:nowrap}#fs_addons td:first-child,#fs_addons th:first-child{text-align:left;font-weight:bold}#fs_addons td:last-child,#fs_addons th:last-child{text-align:right}#fs_addons th{font-weight:bold}#fs_billing_address{width:100%}#fs_billing_address tr td{width:50%;padding:5px}#fs_billing_address tr:first-of-type td{padding-top:0}#fs_billing_address span{font-weight:bold}#fs_billing_address input,#fs_billing_address select{display:block;width:100%;margin-top:5px}#fs_billing_address input::-moz-placeholder,#fs_billing_address select::-moz-placeholder{color:transparent;opacity:1}#fs_billing_address input:-ms-input-placeholder,#fs_billing_address select:-ms-input-placeholder{color:transparent}#fs_billing_address input::-webkit-input-placeholder,#fs_billing_address select::-webkit-input-placeholder{color:transparent}#fs_billing_address input.fs-read-mode,#fs_billing_address select.fs-read-mode{border-color:transparent;color:#777;border-bottom:1px dashed #ccc;padding-left:0;background:none}#fs_billing_address.fs-read-mode td span{display:none}#fs_billing_address.fs-read-mode input,#fs_billing_address.fs-read-mode select{border-color:transparent;color:#777;border-bottom:1px dashed #ccc;padding-left:0;background:none}#fs_billing_address.fs-read-mode input::-moz-placeholder,#fs_billing_address.fs-read-mode select::-moz-placeholder{color:#ccc;opacity:1}#fs_billing_address.fs-read-mode input:-ms-input-placeholder,#fs_billing_address.fs-read-mode select:-ms-input-placeholder{color:#ccc}#fs_billing_address.fs-read-mode input::-webkit-input-placeholder,#fs_billing_address.fs-read-mode select::-webkit-input-placeholder{color:#ccc}#fs_billing_address button{display:block;width:100%}
 
freemius/assets/css/admin/add-ons.css DELETED
@@ -1,2 +0,0 @@
1
- #fs_addons .fs-cards-list{list-style:none}#fs_addons .fs-cards-list .fs-card{float:left;height:152px;width:310px;padding:0;margin:0 0 30px 30px;font-size:14px;list-style:none;border:1px solid #ddd;cursor:pointer;position:relative}#fs_addons .fs-cards-list .fs-card .fs-overlay{position:absolute;left:0;right:0;bottom:0;top:0;z-index:9}#fs_addons .fs-cards-list .fs-card .fs-inner{background-color:#fff;overflow:hidden;height:100%;position:relative}#fs_addons .fs-cards-list .fs-card .fs-inner ul{-moz-transition:all,0.15s;-o-transition:all,0.15s;-ms-transition:all,0.15s;-webkit-transition:all,0.15s;transition:all,0.15s;left:0;right:0;top:0;position:absolute}#fs_addons .fs-cards-list .fs-card .fs-inner li{list-style:none;line-height:18px;padding:0 15px;width:100%;display:block;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}#fs_addons .fs-cards-list .fs-card .fs-inner .fs-card-banner{padding:0;margin:0;line-height:0;display:block;height:100px;background-repeat:repeat-x;background-size:100% 100%;-moz-transition:all,0.15s;-o-transition:all,0.15s;-ms-transition:all,0.15s;-webkit-transition:all,0.15s;transition:all,0.15s}#fs_addons .fs-cards-list .fs-card .fs-inner .fs-title{margin:10px 0 0 0;height:18px;overflow:hidden;color:#000;white-space:nowrap;text-overflow:ellipsis;font-weight:bold}#fs_addons .fs-cards-list .fs-card .fs-inner .fs-offer{font-size:0.9em}#fs_addons .fs-cards-list .fs-card .fs-inner .fs-description{background-color:#f9f9f9;padding:10px 15px 100px 15px;border-top:1px solid #eee;margin:0 0 10px 0;color:#777}#fs_addons .fs-cards-list .fs-card .fs-inner .fs-tag{position:absolute;top:10px;right:0px;background:greenyellow;display:block;padding:2px 10px;-moz-box-shadow:1px 1px 1px rgba(0,0,0,0.3);-webkit-box-shadow:1px 1px 1px rgba(0,0,0,0.3);box-shadow:1px 1px 1px rgba(0,0,0,0.3);text-transform:uppercase;font-size:0.9em;font-weight:bold}#fs_addons .fs-cards-list .fs-card .fs-inner .fs-cta .button{position:absolute;top:112px;right:10px}@media screen and (min-width: 960px){#fs_addons .fs-cards-list .fs-card:hover .fs-overlay{border:2px solid #29abe1;margin-left:-1px;margin-top:-1px}#fs_addons .fs-cards-list .fs-card:hover .fs-inner ul{top:-100px}#fs_addons .fs-cards-list .fs-card:hover .fs-inner .fs-title,#fs_addons .fs-cards-list .fs-card:hover .fs-inner .fs-offer{color:#29abe1}}
2
- #TB_window,#TB_window iframe{width:772px !important}#plugin-information #section-description h2,#plugin-information #section-description h3,#plugin-information #section-description p,#plugin-information #section-description b,#plugin-information #section-description i,#plugin-information #section-description blockquote,#plugin-information #section-description li,#plugin-information #section-description ul,#plugin-information #section-description ol{clear:none}#plugin-information #section-description .fs-selling-points{padding-bottom:10px;border-bottom:1px solid #ddd}#plugin-information #section-description .fs-selling-points ul{margin:0}#plugin-information #section-description .fs-selling-points ul li{padding:0;list-style:none outside none}#plugin-information #section-description .fs-selling-points ul li i.dashicons{color:#71ae00;font-size:3em;vertical-align:middle;line-height:30px;float:left;margin:0 0 0 -15px}#plugin-information #section-description .fs-selling-points ul li h3{margin:1em 30px !important}#plugin-information #section-description .fs-screenshots:after{content:"";display:table;clear:both}#plugin-information #section-description .fs-screenshots ul{list-style:none;margin:0}#plugin-information #section-description .fs-screenshots ul li{width:225px;height:225px;float:left;margin-bottom:20px;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}#plugin-information #section-description .fs-screenshots ul li a{display:block;width:100%;height:100%;border:1px solid;-moz-box-shadow:1px 1px 1px rgba(0,0,0,0.2);-webkit-box-shadow:1px 1px 1px rgba(0,0,0,0.2);box-shadow:1px 1px 1px rgba(0,0,0,0.2);background-size:cover}#plugin-information #section-description .fs-screenshots ul li.odd{margin-right:20px}#plugin-information .plugin-information-pricing{margin:-16px;border-bottom:1px solid #ddd}#plugin-information .plugin-information-pricing .fs-plan h3{margin-top:0;padding:20px;font-size:16px}#plugin-information .plugin-information-pricing .fs-plan .nav-tab-wrapper{border-bottom:1px solid #ddd}#plugin-information .plugin-information-pricing .fs-plan .nav-tab-wrapper .nav-tab{cursor:pointer;position:relative;padding:0 10px;font-size:0.9em}#plugin-information .plugin-information-pricing .fs-plan .nav-tab-wrapper .nav-tab label{text-transform:uppercase;color:green;background:greenyellow;position:absolute;left:-1px;right:-1px;bottom:100%;border:1px solid darkgreen;padding:2px;text-align:center;font-size:0.9em;line-height:1em}#plugin-information .plugin-information-pricing .fs-plan .nav-tab-wrapper .nav-tab.nav-tab-active{cursor:default;background:#fffeec;border-bottom-color:#fffeec}#plugin-information .plugin-information-pricing .fs-plan.fs-single-cycle h3{background:#fffeec;margin:0;padding-bottom:0;color:#0073aa}#plugin-information .plugin-information-pricing .fs-plan.fs-single-cycle .nav-tab-wrapper,#plugin-information .plugin-information-pricing .fs-plan.fs-single-cycle .fs-billing-frequency{display:none}#plugin-information .plugin-information-pricing .fs-plan .fs-pricing-body{background:#fffeec;padding:20px}#plugin-information .plugin-information-pricing .fs-plan .button{width:100%;text-align:center;font-weight:bold;text-transform:uppercase;font-size:1.1em}#plugin-information .plugin-information-pricing .fs-plan label{white-space:nowrap}#plugin-information .plugin-information-pricing .fs-plan var{font-style:normal}#plugin-information .plugin-information-pricing .fs-plan .fs-billing-frequency,#plugin-information .plugin-information-pricing .fs-plan .fs-annual-discount{text-align:center;display:block;font-weight:bold;margin-bottom:10px;text-transform:uppercase;background:#F3F3F3;padding:2px;border:1px solid #ccc}#plugin-information .plugin-information-pricing .fs-plan .fs-annual-discount{text-transform:none;color:green;background:greenyellow}#plugin-information .plugin-information-pricing .fs-plan ul.fs-trial-terms{font-size:0.9em}#plugin-information .plugin-information-pricing .fs-plan ul.fs-trial-terms i{float:left;margin:0 0 0 -15px}#plugin-information .plugin-information-pricing .fs-plan ul.fs-trial-terms li{margin:10px 0 0 0}#plugin-information #section-features .fs-features{margin:-20px -26px}#plugin-information #section-features table{width:100%;border-spacing:0;border-collapse:separate}#plugin-information #section-features table thead th{padding:10px 0}#plugin-information #section-features table thead .fs-price{color:#71ae00;font-weight:normal;display:block;text-align:center}#plugin-information #section-features table tbody td{border-top:1px solid #ccc;padding:10px 0;text-align:center;width:100px;color:#71ae00}#plugin-information #section-features table tbody td:first-child{text-align:left;width:auto;color:inherit;padding-left:26px}#plugin-information #section-features table tbody tr.fs-odd td{background:#fefefe}#plugin-information #section-features .dashicons-yes{width:30px;height:30px;font-size:30px}@media screen and (max-width: 961px){#fs_addons .fs-cards-list .fs-card{height:265px}}
 
 
freemius/assets/css/admin/affiliation.css DELETED
@@ -1 +0,0 @@
1
- @charset "UTF-8";#fs_affiliation_content_wrapper #messages{margin-top:25px}#fs_affiliation_content_wrapper h3{font-size:24px;padding:0;margin-left:0}#fs_affiliation_content_wrapper ul li{box-sizing:border-box;list-style-type:none}#fs_affiliation_content_wrapper ul li:before{content:'✓';margin-right:10px;font-weight:bold}#fs_affiliation_content_wrapper p:not(.description),#fs_affiliation_content_wrapper li,#fs_affiliation_content_wrapper label{font-size:16px !important;line-height:26px !important}#fs_affiliation_content_wrapper .button{margin-top:20px;margin-bottom:7px;line-height:35px;height:40px;font-size:16px}#fs_affiliation_content_wrapper .button#cancel_button{margin-right:5px}#fs_affiliation_content_wrapper form .input-container{margin-bottom:15px}#fs_affiliation_content_wrapper form .input-container .input-label{font-weight:bold;display:block;width:100%}#fs_affiliation_content_wrapper form .input-container.input-container-text label,#fs_affiliation_content_wrapper form .input-container.input-container-text input,#fs_affiliation_content_wrapper form .input-container.input-container-text textarea{display:block}#fs_affiliation_content_wrapper form .input-container #add_domain,#fs_affiliation_content_wrapper form .input-container .remove-domain{text-decoration:none;display:inline-block;margin-top:3px}#fs_affiliation_content_wrapper form .input-container #add_domain:focus,#fs_affiliation_content_wrapper form .input-container .remove-domain:focus{box-shadow:none}#fs_affiliation_content_wrapper form .input-container #add_domain.disabled,#fs_affiliation_content_wrapper form .input-container .remove-domain.disabled{color:#aaa;cursor:default}#fs_affiliation_content_wrapper form #extra_domains_container .description{margin-top:0;position:relative;top:-4px}#fs_affiliation_content_wrapper form #extra_domains_container .extra-domain-input-container{margin-bottom:15px}#fs_affiliation_content_wrapper form #extra_domains_container .extra-domain-input-container .domain{display:inline-block;margin-right:5px}#fs_affiliation_content_wrapper form #extra_domains_container .extra-domain-input-container .domain:last-of-type{margin-bottom:0}
 
freemius/assets/css/admin/checkout.css DELETED
@@ -1 +0,0 @@
1
- @media screen and (max-width: 782px){#wpbody-content{padding-bottom:0 !important}}
 
freemius/assets/css/admin/common.css DELETED
@@ -1,2 +0,0 @@
1
- .theme-browser .theme .fs-premium-theme-badge{position:absolute;top:10px;right:0;background:#71ae00;color:#fff;text-transform:uppercase;padding:5px 10px;-moz-border-radius:3px 0 0 3px;-webkit-border-radius:3px 0 0 3px;border-radius:3px 0 0 3px;font-weight:bold;border-right:0;-moz-box-shadow:0 2px 1px -1px rgba(0,0,0,0.3);-webkit-box-shadow:0 2px 1px -1px rgba(0,0,0,0.3);box-shadow:0 2px 1px -1px rgba(0,0,0,0.3);font-size:1.1em}#iframe{line-height:0;font-size:0}.fs-full-size-wrapper{margin:40px 0 -65px -20px}@media (max-width: 600px){.fs-full-size-wrapper{margin:0 0 -65px -10px}}
2
- .fs-notice{position:relative}.fs-notice.fs-has-title{margin-bottom:30px !important}.fs-notice.success{color:green}.fs-notice.promotion{border-color:#00a0d2 !important;background-color:#f2fcff !important}.fs-notice .fs-notice-body{margin:.5em 0;padding:2px}.fs-notice .fs-close{cursor:pointer;color:#aaa;float:right}.fs-notice .fs-close:hover{color:#666}.fs-notice .fs-close>*{margin-top:7px;display:inline-block}.fs-notice label.fs-plugin-title{background:rgba(0,0,0,0.3);color:#fff;padding:2px 10px;position:absolute;top:100%;bottom:auto;right:auto;-moz-border-radius:0 0 3px 3px;-webkit-border-radius:0 0 3px 3px;border-radius:0 0 3px 3px;left:10px;font-size:12px;font-weight:bold;cursor:auto}div.fs-notice.updated,div.fs-notice.success,div.fs-notice.promotion{display:block !important}.rtl .fs-notice .fs-close{float:left}.fs-secure-notice{position:fixed;top:32px;left:160px;right:0;background:#ebfdeb;padding:10px 20px;color:green;z-index:9999;-moz-box-shadow:0 2px 2px rgba(6,113,6,0.3);-webkit-box-shadow:0 2px 2px rgba(6,113,6,0.3);box-shadow:0 2px 2px rgba(6,113,6,0.3);opacity:0.95;filter:alpha(opacity=95)}.fs-secure-notice:hover{opacity:1;filter:alpha(opacity=100)}.fs-secure-notice a.fs-security-proof{color:green;text-decoration:none}@media screen and (max-width: 960px){.fs-secure-notice{left:36px}}@media screen and (max-width: 600px){.fs-secure-notice{display:none}}@media screen and (max-width: 500px){#fs_promo_tab{display:none}}@media screen and (max-width: 782px){.fs-secure-notice{left:0;top:46px;text-align:center}}span.fs-submenu-item.fs-sub:before{content:'\21B3';padding:0 5px}.rtl span.fs-submenu-item.fs-sub:before{content:'\21B2'}.fs-submenu-item.pricing.upgrade-mode{color:greenyellow}.fs-submenu-item.pricing.trial-mode{color:#83e2ff}#adminmenu .update-plugins.fs-trial{background-color:#00b9eb}.fs-ajax-spinner{border:0;width:20px;height:20px;margin-right:5px;vertical-align:sub;display:inline-block;background:url("../../../../../../../wp-admin/images/wpspin_light-2x.gif");background-size:contain}.wrap.fs-section h2{text-align:left}
 
 
freemius/assets/css/admin/connect.css DELETED
@@ -1 +0,0 @@
1
- #fs_connect{width:480px;-moz-box-shadow:0px 1px 2px rgba(0,0,0,0.3);-webkit-box-shadow:0px 1px 2px rgba(0,0,0,0.3);box-shadow:0px 1px 2px rgba(0,0,0,0.3);margin:20px 0}@media screen and (max-width: 479px){#fs_connect{-moz-box-shadow:none;-webkit-box-shadow:none;box-shadow:none;width:auto;margin:0 0 0 -10px}}#fs_connect .fs-content{background:#fff;padding:15px 20px}#fs_connect .fs-content .fs-error{background:snow;color:#d3135a;border:1px solid #d3135a;-moz-box-shadow:0 1px 1px 0 rgba(0,0,0,0.1);-webkit-box-shadow:0 1px 1px 0 rgba(0,0,0,0.1);box-shadow:0 1px 1px 0 rgba(0,0,0,0.1);text-align:center;padding:5px;margin-bottom:10px}#fs_connect .fs-content p{margin:0;padding:0;font-size:1.2em}#fs_connect .fs-license-key-container{position:relative;width:280px;margin:10px auto 0 auto}#fs_connect .fs-license-key-container input{width:100%}#fs_connect .fs-license-key-container .dashicons{position:absolute;top:5px;right:5px}#fs_connect .fs-actions{padding:10px 20px;background:#C0C7CA}#fs_connect .fs-actions .button{padding:0 10px 1px;line-height:35px;height:37px;font-size:16px;margin-bottom:0}#fs_connect .fs-actions .button .dashicons{font-size:37px;margin-left:-8px;margin-right:12px}#fs_connect .fs-actions .button.button-primary{padding-right:15px;padding-left:15px}#fs_connect .fs-actions .button.button-primary:after{content:' \279C'}#fs_connect .fs-actions .button.button-primary.fs-loading:after{content:''}#fs_connect .fs-actions .button.button-secondary{float:right}#fs_connect.fs-anonymous-disabled .fs-actions .button.button-primary{width:100%}#fs_connect .fs-permissions{padding:10px 20px;background:#FEFEFE;-moz-transition:background 0.5s ease;-o-transition:background 0.5s ease;-ms-transition:background 0.5s ease;-webkit-transition:background 0.5s ease;transition:background 0.5s ease}#fs_connect .fs-permissions .fs-license-sync-disclaimer{text-align:center;margin-top:0}#fs_connect .fs-permissions .fs-trigger{font-size:0.9em;text-decoration:none;text-align:center;display:block}#fs_connect .fs-permissions ul{height:0;overflow:hidden;margin:0}#fs_connect .fs-permissions ul li{margin-bottom:12px}#fs_connect .fs-permissions ul li:last-child{margin-bottom:0}#fs_connect .fs-permissions ul li i.dashicons{float:left;font-size:40px;width:40px;height:40px}#fs_connect .fs-permissions ul li div{margin-left:55px}#fs_connect .fs-permissions ul li div span{font-weight:bold;text-transform:uppercase;color:#23282d}#fs_connect .fs-permissions ul li div p{margin:2px 0 0 0}#fs_connect .fs-permissions.fs-open{background:#fff}#fs_connect .fs-permissions.fs-open ul{height:auto;margin:20px 20px 10px 20px}@media screen and (max-width: 479px){#fs_connect .fs-permissions{background:#fff}#fs_connect .fs-permissions .fs-trigger{display:none}#fs_connect .fs-permissions ul{height:auto;margin:20px}}#fs_connect .fs-freemium-licensing{padding:8px;background:#777;color:#fff}#fs_connect .fs-freemium-licensing p{text-align:center;display:block;margin:0;padding:0}#fs_connect .fs-freemium-licensing a{color:#C2EEFF;text-decoration:underline}#fs_connect .fs-visual{padding:12px;line-height:0;background:#fafafa;height:80px;position:relative}#fs_connect .fs-visual .fs-site-icon{position:absolute;left:20px;top:10px}#fs_connect .fs-visual .fs-connect-logo{position:absolute;right:20px;top:10px}#fs_connect .fs-visual .fs-plugin-icon{position:absolute;top:10px;left:50%;margin-left:-40px}#fs_connect .fs-visual .fs-plugin-icon,#fs_connect .fs-visual .fs-site-icon,#fs_connect .fs-visual img,#fs_connect .fs-visual object{width:80px;height:80px}#fs_connect .fs-visual .dashicons-wordpress{font-size:64px;background:#01749a;color:#fff;width:64px;height:64px;padding:8px}#fs_connect .fs-visual .dashicons-plus{position:absolute;top:50%;font-size:30px;margin-top:-10px;color:#bbb}#fs_connect .fs-visual .dashicons-plus.fs-first{left:28%}#fs_connect .fs-visual .dashicons-plus.fs-second{left:65%}#fs_connect .fs-visual .fs-plugin-icon,#fs_connect .fs-visual .fs-connect-logo,#fs_connect .fs-visual .fs-site-icon{border:1px solid #ccc;padding:1px;background:#fff}#fs_connect .fs-terms{text-align:center;font-size:0.85em;padding:5px;background:rgba(0,0,0,0.05)}#fs_connect .fs-terms,#fs_connect .fs-terms a{color:#999}#fs_connect .fs-terms a{text-decoration:none}.rtl #fs_connect .fs-actions{padding:10px 20px;background:#C0C7CA}.rtl #fs_connect .fs-actions .button .dashicons{font-size:37px;margin-left:-8px;margin-right:12px}.rtl #fs_connect .fs-actions .button.button-primary:after{content:' \000bb'}.rtl #fs_connect .fs-actions .button.button-primary.fs-loading:after{content:''}.rtl #fs_connect .fs-actions .button.button-secondary{float:left}.rtl #fs_connect .fs-permissions ul li div{margin-right:55px;margin-left:0}.rtl #fs_connect .fs-permissions ul li i.dashicons{float:right}.rtl #fs_connect .fs-visual .fs-site-icon{right:20px;left:auto}.rtl #fs_connect .fs-visual .fs-connect-logo{right:auto;left:20px}#fs_theme_connect_wrapper{position:fixed;top:0;height:100%;width:100%;z-index:99990;background:rgba(0,0,0,0.75);text-align:center;overflow-y:auto}#fs_theme_connect_wrapper:before{content:"";display:inline-block;vertical-align:middle;height:100%}#fs_theme_connect_wrapper>button.close{color:white;cursor:pointer;height:40px;width:40px;position:absolute;right:0;border:0;background-color:transparent;top:32px}#fs_theme_connect_wrapper #fs_connect{top:0;text-align:left;display:inline-block;vertical-align:middle;margin-top:52px;margin-bottom:20px}#fs_theme_connect_wrapper #fs_connect .fs-terms{background:rgba(140,140,140,0.64)}#fs_theme_connect_wrapper #fs_connect .fs-terms,#fs_theme_connect_wrapper #fs_connect .fs-terms a{color:#c5c5c5}.wp-pointer-content #fs_connect{margin:0;-moz-box-shadow:none;-webkit-box-shadow:none;box-shadow:none}.fs-opt-in-pointer .wp-pointer-content{padding:0}.fs-opt-in-pointer.wp-pointer-top .wp-pointer-arrow{border-bottom-color:#dfdfdf}.fs-opt-in-pointer.wp-pointer-top .wp-pointer-arrow-inner{border-bottom-color:#fafafa}.fs-opt-in-pointer.wp-pointer-bottom .wp-pointer-arrow{border-top-color:#dfdfdf}.fs-opt-in-pointer.wp-pointer-bottom .wp-pointer-arrow-inner{border-top-color:#fafafa}.fs-opt-in-pointer.wp-pointer-left .wp-pointer-arrow{border-right-color:#dfdfdf}.fs-opt-in-pointer.wp-pointer-left .wp-pointer-arrow-inner{border-right-color:#fafafa}.fs-opt-in-pointer.wp-pointer-right .wp-pointer-arrow{border-left-color:#dfdfdf}.fs-opt-in-pointer.wp-pointer-right .wp-pointer-arrow-inner{border-left-color:#fafafa}
 
freemius/assets/css/admin/deactivation-feedback.css DELETED
@@ -1 +0,0 @@
1
- .fs-modal{position:fixed;overflow:auto;height:100%;width:100%;top:0;z-index:100000;display:none;background:rgba(0,0,0,0.6)}.fs-modal .fs-modal-dialog{background:transparent;position:absolute;left:50%;margin-left:-298px;padding-bottom:30px;top:-100%;z-index:100001;width:596px}@media (max-width: 650px){.fs-modal .fs-modal-dialog{margin-left:-50%;box-sizing:border-box;padding-left:10px;padding-right:10px;width:100%}.fs-modal .fs-modal-dialog .fs-modal-panel>h3>strong{font-size:1.3em}.fs-modal .fs-modal-dialog li.reason{margin-bottom:10px}.fs-modal .fs-modal-dialog li.reason .reason-input,.fs-modal .fs-modal-dialog li.reason .internal-message{margin-left:29px}.fs-modal .fs-modal-dialog li.reason label{display:table}.fs-modal .fs-modal-dialog li.reason label>span{display:table-cell;font-size:1.3em}}.fs-modal.active{display:block}.fs-modal.active:before{display:block}.fs-modal.active .fs-modal-dialog{top:10%}.fs-modal .fs-modal-body,.fs-modal .fs-modal-footer{border:0;background:#fefefe;padding:20px}.fs-modal .fs-modal-body{border-bottom:0}.fs-modal .fs-modal-body h2{font-size:20px}.fs-modal .fs-modal-body>div{margin-top:10px}.fs-modal .fs-modal-body>div h2{font-weight:bold;font-size:20px;margin-top:0}.fs-modal .fs-modal-footer{border-top:#eeeeee solid 1px;text-align:right}.fs-modal .fs-modal-footer>.button{margin:0 7px}.fs-modal .fs-modal-footer>.button:first-child{margin:0}.fs-modal .fs-modal-panel:not(.active){display:none}.fs-modal .reason-input,.fs-modal .internal-message{margin:3px 0 3px 22px}.fs-modal .reason-input input,.fs-modal .reason-input textarea,.fs-modal .internal-message input,.fs-modal .internal-message textarea{width:100%}.fs-modal li.reason.has-internal-message .internal-message{border:1px solid #ccc;padding:7px;display:none}body.has-fs-modal{overflow:hidden}#the-list .deactivate>.fs-slug{display:none}
 
freemius/assets/css/admin/debug.css DELETED
@@ -1 +0,0 @@
1
- .switch{position:relative;display:inline-block;font-size:1.6em;font-weight:bold;color:#ccc;text-shadow:0px 1px 1px rgba(255,255,255,0.8);height:18px;padding:6px 6px 5px 6px;border:1px solid #ccc;border:1px solid rgba(0,0,0,0.2);border-radius:4px;background:#ececec;box-shadow:0px 0px 4px rgba(0,0,0,0.1),inset 0px 1px 3px 0px rgba(0,0,0,0.1);cursor:pointer}.switch span{display:inline-block;width:35px;text-transform:uppercase}.switch span.on{color:#6bc406}.switch .toggle{position:absolute;top:1px;width:37px;height:25px;border:1px solid #ccc;border:1px solid rgba(0,0,0,0.3);border-radius:4px;background:#fff;background:-moz-linear-gradient(top, #ececec 0%, #fff 100%);background:-webkit-gradient(linear, left top, left bottom, color-stop(0%, #ececec), color-stop(100%, #fff));background:-webkit-linear-gradient(top, #ececec 0%, #fff 100%);background:-o-linear-gradient(top, #ececec 0%, #fff 100%);background:-ms-linear-gradient(top, #ececec 0%, #fff 100%);background:linear-gradient(top, #ececec 0%, #fff 100%);box-shadow:inset 0px 1px 0px 0px rgba(255,255,255,0.5);z-index:999;-moz-transition:all 0.15s ease-in-out;-o-transition:all 0.15s ease-in-out;-ms-transition:all 0.15s ease-in-out;-webkit-transition:all 0.15s ease-in-out;transition:all 0.15s ease-in-out}.switch.on .toggle{left:2%}.switch.off .toggle{left:54%}.switch.round{padding:0px 20px;border-radius:40px}.switch.round .toggle{border-radius:40px;width:14px;height:14px}.switch.round.on .toggle{left:3%;background:#6bc406}.switch.round.off .toggle{left:58%}.switch-label{font-size:20px;line-height:31px;margin:0 5px}#fs_log_book table{font-family:Consolas,Monaco,monospace;font-size:12px}#fs_log_book table th{color:#ccc}#fs_log_book table tr{background:#232525}#fs_log_book table tr.alternate{background:#2b2b2b}#fs_log_book table tr td.fs-col--logger{color:#5a7435}#fs_log_book table tr td.fs-col--type{color:#ffc861}#fs_log_book table tr td.fs-col--function{color:#a7b7b1;font-weight:bold}#fs_log_book table tr td.fs-col--message,#fs_log_book table tr td.fs-col--message a{color:#9a73ac !important}#fs_log_book table tr td.fs-col--file{color:#d07922}#fs_log_book table tr td.fs-col--timestamp{color:#6596be}
 
freemius/assets/css/admin/dialog-boxes.css DELETED
@@ -1,2 +0,0 @@
1
- .fs-modal{position:fixed;overflow:auto;height:100%;width:100%;top:0;z-index:100000;display:none;background:rgba(0,0,0,0.6)}.fs-modal .fs-modal-dialog{background:transparent;position:absolute;left:50%;margin-left:-298px;padding-bottom:30px;top:-100%;z-index:100001;width:596px}@media (max-width: 650px){.fs-modal .fs-modal-dialog{margin-left:-50%;box-sizing:border-box;padding-left:10px;padding-right:10px;width:100%}.fs-modal .fs-modal-dialog .fs-modal-panel>h3>strong{font-size:1.3em}}.fs-modal.active{display:block}.fs-modal.active:before{display:block}.fs-modal.active .fs-modal-dialog{top:10%}.fs-modal.fs-success .fs-modal-header{border-bottom-color:#46b450}.fs-modal.fs-success .fs-modal-body{background-color:#f7fff7}.fs-modal.fs-warn .fs-modal-header{border-bottom-color:#ffb900}.fs-modal.fs-warn .fs-modal-body{background-color:#fff8e5}.fs-modal.fs-error .fs-modal-header{border-bottom-color:#dc3232}.fs-modal.fs-error .fs-modal-body{background-color:#ffeaea}.fs-modal .fs-modal-body,.fs-modal .fs-modal-footer{border:0;background:#fefefe;padding:20px}.fs-modal .fs-modal-header{border-bottom:#eeeeee solid 1px;background:#fbfbfb;padding:15px 20px;position:relative;margin-bottom:-10px}.fs-modal .fs-modal-header h4{margin:0;padding:0;text-transform:uppercase;font-size:1.2em;font-weight:bold;color:#cacaca;text-shadow:1px 1px 1px #fff;letter-spacing:0.6px;-webkit-font-smoothing:antialiased}.fs-modal .fs-modal-header .fs-close{position:absolute;right:10px;top:12px;cursor:pointer;color:#bbb;-moz-border-radius:20px;-webkit-border-radius:20px;border-radius:20px;padding:3px;-moz-transition:all 0.2s ease-in-out;-o-transition:all 0.2s ease-in-out;-ms-transition:all 0.2s ease-in-out;-webkit-transition:all 0.2s ease-in-out;transition:all 0.2s ease-in-out}.fs-modal .fs-modal-header .fs-close:hover{color:#fff;background:#aaa}.fs-modal .fs-modal-body{border-bottom:0}.fs-modal .fs-modal-body p{font-size:14px}.fs-modal .fs-modal-body h2{font-size:20px;line-height:1.5em}.fs-modal .fs-modal-body>div{margin-top:10px}.fs-modal .fs-modal-body>div h2{font-weight:bold;font-size:20px;margin-top:0}.fs-modal .fs-modal-footer{border-top:#eeeeee solid 1px;text-align:right}.fs-modal .fs-modal-footer>.button{margin:0 7px}.fs-modal .fs-modal-footer>.button:first-child{margin:0}.fs-modal .fs-modal-panel>.notice.inline{margin:0;display:none}.fs-modal .fs-modal-panel:not(.active){display:none}.rtl .fs-modal .fs-modal-header .fs-close{right:auto;left:20px}body.has-fs-modal{overflow:hidden}.fs-modal.fs-modal-deactivation-feedback .reason-input,.fs-modal.fs-modal-deactivation-feedback .internal-message{margin:3px 0 3px 22px}.fs-modal.fs-modal-deactivation-feedback .reason-input input,.fs-modal.fs-modal-deactivation-feedback .reason-input textarea,.fs-modal.fs-modal-deactivation-feedback .internal-message input,.fs-modal.fs-modal-deactivation-feedback .internal-message textarea{width:100%}.fs-modal.fs-modal-deactivation-feedback li.reason.has-internal-message .internal-message{border:1px solid #ccc;padding:7px;display:none}@media (max-width: 650px){.fs-modal.fs-modal-deactivation-feedback li.reason li.reason{margin-bottom:10px}.fs-modal.fs-modal-deactivation-feedback li.reason li.reason .reason-input,.fs-modal.fs-modal-deactivation-feedback li.reason li.reason .internal-message{margin-left:29px}.fs-modal.fs-modal-deactivation-feedback li.reason li.reason label{display:table}.fs-modal.fs-modal-deactivation-feedback li.reason li.reason label>span{display:table-cell;font-size:1.3em}}.fs-modal.fs-modal-deactivation-feedback .anonymous-feedback-label{float:left}.fs-modal.fs-modal-deactivation-feedback .fs-modal-panel{margin-top:0 !important}.fs-modal.fs-modal-deactivation-feedback .fs-modal-panel h3{margin-top:0;line-height:1.5em}#the-list .deactivate>.fs-slug{display:none}.fs-modal.fs-modal-license-activation .fs-modal-body input.license_key{width:100%}.fs-modal.fs-modal-license-key-resend .email-address-container{overflow:hidden;padding-right:2px}.fs-modal.fs-modal-license-key-resend.fs-freemium input.email-address{width:300px}.fs-modal.fs-modal-license-key-resend.fs-freemium label{display:block;margin-bottom:10px}.fs-modal.fs-modal-license-key-resend.fs-premium input.email-address{width:100%}.fs-modal.fs-modal-license-key-resend.fs-premium .button-container{float:right;margin-left:7px}@media (max-width: 650px){.fs-modal.fs-modal-license-key-resend.fs-premium .button-container{margin-top:2px}}
2
- .rtl .fs-modal.fs-modal-license-key-resend .fs-modal-body .input-container>.email-address-container{padding-left:2px;padding-right:0}.rtl .fs-modal.fs-modal-license-key-resend .fs-modal-body .button-container{float:left;margin-right:7px;margin-left:0}a.show-license-resend-modal{margin-top:4px;display:inline-block}.fs-ajax-loader{position:relative;width:170px;height:20px;margin:auto}.fs-ajax-loader .fs-ajax-loader-bar{position:absolute;top:0;background-color:#0074a3;width:20px;height:20px;-webkit-animation-name:bounce_ajaxLoader;-moz-animation-name:bounce_ajaxLoader;-ms-animation-name:bounce_ajaxLoader;-o-animation-name:bounce_ajaxLoader;animation-name:bounce_ajaxLoader;-webkit-animation-duration:1.5s;-moz-animation-duration:1.5s;-ms-animation-duration:1.5s;-o-animation-duration:1.5s;animation-duration:1.5s;animation-iteration-count:infinite;-o-animation-iteration-count:infinite;-ms-animation-iteration-count:infinite;-webkit-animation-iteration-count:infinite;-moz-animation-iteration-count:infinite;-webkit-animation-direction:normal;-moz-animation-direction:normal;-ms-animation-direction:normal;-o-animation-direction:normal;animation-direction:normal;-moz-transform:0.3;-o-transform:0.3;-ms-transform:0.3;-webkit-transform:0.3;transform:0.3}.fs-ajax-loader .fs-ajax-loader-bar-1{left:0px;animation-delay:0.6s;-o-animation-delay:0.6s;-ms-animation-delay:0.6s;-webkit-animation-delay:0.6s;-moz-animation-delay:0.6s}.fs-ajax-loader .fs-ajax-loader-bar-2{left:19px;animation-delay:0.75s;-o-animation-delay:0.75s;-ms-animation-delay:0.75s;-webkit-animation-delay:0.75s;-moz-animation-delay:0.75s}.fs-ajax-loader .fs-ajax-loader-bar-3{left:38px;animation-delay:0.9s;-o-animation-delay:0.9s;-ms-animation-delay:0.9s;-webkit-animation-delay:0.9s;-moz-animation-delay:0.9s}.fs-ajax-loader .fs-ajax-loader-bar-4{left:57px;animation-delay:1.05s;-o-animation-delay:1.05s;-ms-animation-delay:1.05s;-webkit-animation-delay:1.05s;-moz-animation-delay:1.05s}.fs-ajax-loader .fs-ajax-loader-bar-5{left:76px;animation-delay:1.2s;-o-animation-delay:1.2s;-ms-animation-delay:1.2s;-webkit-animation-delay:1.2s;-moz-animation-delay:1.2s}.fs-ajax-loader .fs-ajax-loader-bar-6{left:95px;animation-delay:1.35s;-o-animation-delay:1.35s;-ms-animation-delay:1.35s;-webkit-animation-delay:1.35s;-moz-animation-delay:1.35s}.fs-ajax-loader .fs-ajax-loader-bar-7{left:114px;animation-delay:1.5s;-o-animation-delay:1.5s;-ms-animation-delay:1.5s;-webkit-animation-delay:1.5s;-moz-animation-delay:1.5s}.fs-ajax-loader .fs-ajax-loader-bar-8{left:133px;animation-delay:1.65s;-o-animation-delay:1.65s;-ms-animation-delay:1.65s;-webkit-animation-delay:1.65s;-moz-animation-delay:1.65s}@-moz-keyframes bounce_ajaxLoader{0%{-moz-transform:scale(1);-o-transform:scale(1);-ms-transform:scale(1);-webkit-transform:scale(1);transform:scale(1);background-color:#0074a3}100%{-moz-transform:scale(0.3);-o-transform:scale(0.3);-ms-transform:scale(0.3);-webkit-transform:scale(0.3);transform:scale(0.3);background-color:#fff}}@-ms-keyframes bounce_ajaxLoader{0%{-moz-transform:scale(1);-o-transform:scale(1);-ms-transform:scale(1);-webkit-transform:scale(1);transform:scale(1);background-color:#0074a3}100%{-moz-transform:scale(0.3);-o-transform:scale(0.3);-ms-transform:scale(0.3);-webkit-transform:scale(0.3);transform:scale(0.3);background-color:#fff}}@-o-keyframes bounce_ajaxLoader{0%{-moz-transform:scale(1);-o-transform:scale(1);-ms-transform:scale(1);-webkit-transform:scale(1);transform:scale(1);background-color:#0074a3}100%{-moz-transform:scale(0.3);-o-transform:scale(0.3);-ms-transform:scale(0.3);-webkit-transform:scale(0.3);transform:scale(0.3);background-color:#fff}}@-webkit-keyframes bounce_ajaxLoader{0%{-moz-transform:scale(1);-o-transform:scale(1);-ms-transform:scale(1);-webkit-transform:scale(1);transform:scale(1);background-color:#0074a3}100%{-moz-transform:scale(0.3);-o-transform:scale(0.3);-ms-transform:scale(0.3);-webkit-transform:scale(0.3);transform:scale(0.3);background-color:#fff}}@keyframes bounce_ajaxLoader{0%{-moz-transform:scale(1);-o-transform:scale(1);-ms-transform:scale(1);-webkit-transform:scale(1);transform:scale(1);background-color:#0074a3}100%{-moz-transform:scale(0.3);-o-transform:scale(0.3);-ms-transform:scale(0.3);-webkit-transform:scale(0.3);transform:scale(0.3);background-color:#fff}}.fs-modal-auto-install #request-filesystem-credentials-form h2,.fs-modal-auto-install #request-filesystem-credentials-form .request-filesystem-credentials-action-buttons{display:none}.fs-modal-auto-install #request-filesystem-credentials-form input[type=password],.fs-modal-auto-install #request-filesystem-credentials-form input[type=email],.fs-modal-auto-install #request-filesystem-credentials-form input[type=text]{-webkit-appearance:none;padding:10px 10px 5px 10px;width:300px;max-width:100%}.fs-modal-auto-install #request-filesystem-credentials-form>div,.fs-modal-auto-install #request-filesystem-credentials-form label,.fs-modal-auto-install #request-filesystem-credentials-form fieldset{width:300px;max-width:100%;margin:0 auto;display:block}
 
 
freemius/assets/css/admin/index.php DELETED
@@ -1,3 +0,0 @@
1
- <?php
2
- // Silence is golden.
3
- // Hide file structure from users on unprotected servers.
 
 
 
freemius/assets/css/admin/license-activation.css DELETED
@@ -1 +0,0 @@
1
- .fs-modal{position:fixed;overflow:auto;height:100%;width:100%;top:0;z-index:100000;display:none;background:rgba(0,0,0,0.6)}.fs-modal .fs-modal-dialog{background:transparent;position:absolute;left:50%;margin-left:-298px;padding-bottom:30px;top:-100%;z-index:100001;width:596px}@media (max-width: 650px){.fs-modal .fs-modal-dialog{margin-left:-50%;box-sizing:border-box;padding-left:10px;padding-right:10px;width:100%}.fs-modal .fs-modal-dialog .fs-modal-panel>h3>strong{font-size:1.3em}}.fs-modal.active{display:block}.fs-modal.active:before{display:block}.fs-modal.active .fs-modal-dialog{top:10%}.fs-modal .fs-modal-body,.fs-modal .fs-modal-footer{border:0;background:#fefefe;padding:20px}.fs-modal .fs-modal-body{border-bottom:0}.fs-modal .fs-modal-body .license-activation-message{margin:0;display:none}.fs-modal .fs-modal-body input.license_key{width:100%}.fs-modal .fs-modal-body p{font-size:14px}.fs-modal .fs-modal-body h2{font-size:20px}.fs-modal .fs-modal-body>div{margin-top:10px}.fs-modal .fs-modal-body>div h2{font-weight:bold;font-size:20px;margin-top:0}.fs-modal .fs-modal-footer{border-top:#eeeeee solid 1px;text-align:right}.fs-modal .fs-modal-footer>.button{margin:0 7px}.fs-modal .fs-modal-footer>.button:first-child{margin:0}.fs-modal .fs-modal-panel:not(.active){display:none}body.has-fs-modal{overflow:hidden}
 
freemius/assets/css/customizer.css DELETED
@@ -1 +0,0 @@
1
- #fs_customizer_upsell .fs-customizer-plan{padding:10px 20px 20px 20px;border-radius:3px;background:#fff}#fs_customizer_upsell .fs-customizer-plan h2{position:relative;margin:0;line-height:2em;text-transform:uppercase}#fs_customizer_upsell .fs-customizer-plan h2 .button-link{top:-2px}#fs_customizer_upsell .fs-feature{position:relative}#fs_customizer_upsell .dashicons-yes{color:#0085ba;font-size:2em;vertical-align:bottom;margin-left:-7px;margin-right:10px}.rtl #fs_customizer_upsell .dashicons-yes{margin-left:10px;margin-right:-7px}#fs_customizer_upsell .dashicons-editor-help{color:#bbb;cursor:help}#fs_customizer_upsell .dashicons-editor-help .fs-feature-desc{opacity:0;visibility:hidden;-moz-transition:opacity 0.3s ease-in-out;-o-transition:opacity 0.3s ease-in-out;-ms-transition:opacity 0.3s ease-in-out;-webkit-transition:opacity 0.3s ease-in-out;transition:opacity 0.3s ease-in-out;position:absolute;background:#000;color:#fff;font-family:'arial', serif;font-size:12px;padding:10px;z-index:999999;bottom:100%;margin-bottom:5px;left:0;right:0;-moz-border-radius:5px;-webkit-border-radius:5px;border-radius:5px;-moz-box-shadow:1px 1px 1px rgba(0,0,0,0.2);-webkit-box-shadow:1px 1px 1px rgba(0,0,0,0.2);box-shadow:1px 1px 1px rgba(0,0,0,0.2);line-height:1.3em;font-weight:bold;text-align:left}.rtl #fs_customizer_upsell .dashicons-editor-help .fs-feature-desc{text-align:right}#fs_customizer_upsell .dashicons-editor-help .fs-feature-desc::after{content:' ';display:block;width:0;height:0;border-style:solid;border-width:5px 5px 0 5px;border-color:#000 transparent transparent transparent;position:absolute;top:100%;left:21px}.rtl #fs_customizer_upsell .dashicons-editor-help .fs-feature-desc::after{right:21px;left:auto}#fs_customizer_upsell .dashicons-editor-help:hover .fs-feature-desc{visibility:visible;opacity:1}#fs_customizer_upsell .button-primary{display:block;text-align:center;margin-top:10px}#fs_customizer_support{display:block !important}#fs_customizer_support .button{float:right}#fs_customizer_support .button-group{width:100%;display:block;margin-top:10px}#fs_customizer_support .button-group .button{float:none;width:50%;text-align:center}
 
freemius/assets/css/index.php DELETED
@@ -1,3 +0,0 @@
1
- <?php
2
- // Silence is golden.
3
- // Hide file structure from users on unprotected servers.
 
 
 
freemius/assets/img/index.php DELETED
@@ -1,3 +0,0 @@
1
- <?php
2
- // Silence is golden.
3
- // Hide file structure from users on unprotected servers.
 
 
 
freemius/assets/img/plugin-icon.png DELETED
Binary file
freemius/assets/img/theme-icon.png DELETED
Binary file
freemius/assets/img/ti-woocommerce-wishlist.png DELETED
Binary file
freemius/assets/index.php DELETED
@@ -1,3 +0,0 @@
1
- <?php
2
- // Silence is golden.
3
- // Hide file structure from users on unprotected servers.
 
 
 
freemius/assets/js/index.php DELETED
@@ -1,3 +0,0 @@
1
- <?php
2
- // Silence is golden.
3
- // Hide file structure from users on unprotected servers.
 
 
 
freemius/assets/js/nojquery.ba-postmessage.js DELETED
@@ -1,140 +0,0 @@
1
- /*!
2
- * jQuery postMessage - v0.5 - 9/11/2009
3
- * http://benalman.com/projects/jquery-postmessage-plugin/
4
- *
5
- * Copyright (c) 2009 "Cowboy" Ben Alman
6
- * Dual licensed under the MIT and GPL licenses.
7
- * http://benalman.com/about/license/
8
- *
9
- * Non-jQuery fork by Jeff Lee
10
- *
11
- * This fork consists of the following changes:
12
- * 1. Basic code cleanup and restructuring, for legibility.
13
- * 2. The `postMessage` and `receiveMessage` functions can be bound arbitrarily,
14
- * in terms of both function names and object scope. Scope is specified by
15
- * the the "this" context of NoJQueryPostMessageMixin();
16
- * 3. I've removed the check for Opera 9.64, which used `$.browser`. There were
17
- * at least three different GitHub users requesting the removal of this
18
- * "Opera sniff" on the original project's Issues page, so I figured this
19
- * would be a relatively safe change.
20
- * 4. `postMessage` no longer uses `$.param` to serialize messages that are not
21
- * strings. I actually prefer this structure anyway. `receiveMessage` does
22
- * not implement a corresponding deserialization step, and as such it seems
23
- * cleaner and more symmetric to leave both data serialization and
24
- * deserialization to the client.
25
- * 5. The use of `$.isFunction` is replaced by a functionally-identical check.
26
- * 6. The `$:nomunge` YUI option is no longer necessary.
27
- */
28
-
29
- function NoJQueryPostMessageMixin(postBinding, receiveBinding) {
30
-
31
- var setMessageCallback, unsetMessageCallback, currentMsgCallback,
32
- intervalId, lastHash, cacheBust = 1;
33
-
34
- if (window.postMessage) {
35
-
36
- if (window.addEventListener) {
37
- setMessageCallback = function(callback) {
38
- window.addEventListener('message', callback, false);
39
- }
40
-
41
- unsetMessageCallback = function(callback) {
42
- window.removeEventListener('message', callback, false);
43
- }
44
- } else {
45
- setMessageCallback = function(callback) {
46
- window.attachEvent('onmessage', callback);
47
- }
48
-
49
- unsetMessageCallback = function(callback) {
50
- window.detachEvent('onmessage', callback);
51
- }
52
- }
53
-
54
- this[postBinding] = function(message, targetUrl, target) {
55
- if (!targetUrl) {
56
- return;
57
- }
58
-
59
- // The browser supports window.postMessage, so call it with a targetOrigin
60
- // set appropriately, based on the targetUrl parameter.
61
- target.postMessage( message, targetUrl.replace( /([^:]+:\/\/[^\/]+).*/, '$1' ) );
62
- }
63
-
64
- // Since the browser supports window.postMessage, the callback will be
65
- // bound to the actual event associated with window.postMessage.
66
- this[receiveBinding] = function(callback, sourceOrigin, delay) {
67
- // Unbind an existing callback if it exists.
68
- if (currentMsgCallback) {
69
- unsetMessageCallback(currentMsgCallback);
70
- currentMsgCallback = null;
71
- }
72
-
73
- if (!callback) {
74
- return false;
75
- }
76
-
77
- // Bind the callback. A reference to the callback is stored for ease of
78
- // unbinding.
79
- currentMsgCallback = setMessageCallback(function(e) {
80
- switch(Object.prototype.toString.call(sourceOrigin)) {
81
- case '[object String]':
82
- if (sourceOrigin !== e.origin) {
83
- return false;
84
- }
85
- break;
86
- case '[object Function]':
87
- if (sourceOrigin(e.origin)) {
88
- return false;
89
- }
90
- break;
91
- }
92
-
93
- callback(e);
94
- });
95
- };
96
-
97
- } else {
98
-
99
- this[postBinding] = function(message, targetUrl, target) {
100
- if (!targetUrl) {
101
- return;
102
- }
103
-
104
- // The browser does not support window.postMessage, so set the location
105
- // of the target to targetUrl#message. A bit ugly, but it works! A cache
106
- // bust parameter is added to ensure that repeat messages trigger the
107
- // callback.
108
- target.location = targetUrl.replace( /#.*$/, '' ) + '#' + (+new Date) + (cacheBust++) + '&' + message;
109
- }
110
-
111
- // Since the browser sucks, a polling loop will be started, and the
112
- // callback will be called whenever the location.hash changes.
113
- this[receiveBinding] = function(callback, sourceOrigin, delay) {
114
- if (intervalId) {
115
- clearInterval(intervalId);
116
- intervalId = null;
117
- }
118
-
119
- if (callback) {
120
- delay = typeof sourceOrigin === 'number'
121
- ? sourceOrigin
122
- : typeof delay === 'number'
123
- ? delay
124
- : 100;
125
-
126
- intervalId = setInterval(function(){
127
- var hash = document.location.hash,
128
- re = /^#?\d+&/;
129
- if ( hash !== lastHash && re.test( hash ) ) {
130
- lastHash = hash;
131
- callback({ data: hash.replace( re, '' ) });
132
- }
133
- }, delay );
134
- }
135
- };
136
-
137
- }
138
-
139
- return this;
140
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
freemius/assets/js/nojquery.ba-postmessage.min.js DELETED
@@ -1,12 +0,0 @@
1
- /*
2
- * nojquery-postmessage by Jeff Lee
3
- * a non-jQuery fork of:
4
- *
5
- * jQuery postMessage - v0.5 - 9/11/2009
6
- * http://benalman.com/projects/jquery-postmessage-plugin/
7
- *
8
- * Copyright (c) 2009 "Cowboy" Ben Alman
9
- * Dual licensed under the MIT and GPL licenses.
10
- * http://benalman.com/about/license/
11
- */
12
- function NoJQueryPostMessageMixin(g,a){var b,h,e,d,f,c=1;if(window.postMessage){if(window.addEventListener){b=function(i){window.addEventListener("message",i,false)};h=function(i){window.removeEventListener("message",i,false)}}else{b=function(i){window.attachEvent("onmessage",i)};h=function(i){window.detachEvent("onmessage",i)}}this[g]=function(i,k,j){if(!k){return}j.postMessage(i,k.replace(/([^:]+:\/\/[^\/]+).*/,"$1"))};this[a]=function(k,j,i){if(e){h(e);e=null}if(!k){return false}e=b(function(l){switch(Object.prototype.toString.call(j)){case"[object String]":if(j!==l.origin){return false}break;case"[object Function]":if(j(l.origin)){return false}break}k(l)})}}else{this[g]=function(i,k,j){if(!k){return}j.location=k.replace(/#.*$/,"")+"#"+(+new Date)+(c++)+"&"+i};this[a]=function(k,j,i){if(d){clearInterval(d);d=null}if(k){i=typeof j==="number"?j:typeof i==="number"?i:100;d=setInterval(function(){var m=document.location.hash,l=/^#?\d+&/;if(m!==f&&l.test(m)){f=m;k({data:m.replace(l,"")})}},i)}}}return this};
 
 
 
 
 
 
 
 
 
 
 
 
freemius/assets/js/postmessage.js DELETED
@@ -1,135 +0,0 @@
1
- (function ($, undef) {
2
- var global = this;
3
-
4
- // Namespace.
5
- global.FS = global.FS || {};
6
-
7
- global.FS.PostMessage = function ()
8
- {
9
- var
10
- _is_child = false,
11
- _postman = new NoJQueryPostMessageMixin('postMessage', 'receiveMessage'),
12
- _callbacks = {},
13
- _base_url,
14
- _parent_url = decodeURIComponent(document.location.hash.replace(/^#/, '')),
15
- _parent_subdomain = _parent_url.substring(0, _parent_url.indexOf('/', ('https://' === _parent_url.substring(0, ('https://').length)) ? 8 : 7)),
16
- _init = function () {
17
- _postman.receiveMessage(function (e) {
18
- var data = JSON.parse(e.data);
19
-
20
- if (_callbacks[data.type]) {
21
- for (var i = 0; i < _callbacks[data.type].length; i++) {
22
- // Execute type callbacks.
23
- _callbacks[data.type][i](data.data);
24
- }
25
- }
26
- }, _base_url);
27
- },
28
- _hasParent = ('' !== _parent_url),
29
- $window = $(window),
30
- $html = $('html');
31
-
32
- return {
33
- init : function (url, iframes)
34
- {
35
- _base_url = url;
36
- _init();
37
-
38
- // Automatically receive forward messages.
39
- FS.PostMessage.receiveOnce('forward', function (data){
40
- window.location = data.url;
41
- });
42
-
43
- iframes = iframes || [];
44
-
45
- if (iframes.length > 0) {
46
- $window.on('scroll', function () {
47
- for (var i = 0; i < iframes.length; i++) {
48
- FS.PostMessage.postScroll(iframes[i]);
49
- }
50
- });
51
- }
52
- },
53
- init_child : function ()
54
- {
55
- this.init(_parent_subdomain);
56
-
57
- _is_child = true;
58
-
59
- // Post height of a child right after window is loaded.
60
- $(window).bind('load', function () {
61
- FS.PostMessage.postHeight();
62
-
63
- // Post message that window was loaded.
64
- FS.PostMessage.post('loaded');
65
- });
66
- },
67
- hasParent : function ()
68
- {
69
- return _hasParent;
70
- },
71
- postHeight : function (diff, wrapper) {
72
- diff = diff || 0;
73
- wrapper = wrapper || '#wrap_section';
74
- this.post('height', {
75
- height: diff + $(wrapper).outerHeight(true)
76
- });
77
- },
78
- postScroll : function (iframe) {
79
- this.post('scroll', {
80
- top: $window.scrollTop(),
81
- height: ($window.height() - parseFloat($html.css('paddingTop')) - parseFloat($html.css('marginTop')))
82
- }, iframe);
83
- },
84
- post : function (type, data, iframe)
85
- {
86
- console.debug('PostMessage.post', type);
87
-
88
- if (iframe)
89
- {
90
- // Post to iframe.
91
- _postman.postMessage(JSON.stringify({
92
- type: type,
93
- data: data
94
- }), iframe.src, iframe.contentWindow);
95
- }
96
- else {
97
- // Post to parent.
98
- _postman.postMessage(JSON.stringify({
99
- type: type,
100
- data: data
101
- }), _parent_url, window.parent);
102
- }
103
- },
104
- receive: function (type, callback)
105
- {
106
- console.debug('PostMessage.receive', type);
107
-
108
- if (undef === _callbacks[type])
109
- _callbacks[type] = [];
110
-
111
- _callbacks[type].push(callback);
112
- },
113
- receiveOnce: function (type, callback)
114
- {
115
- if (this.is_set(type))
116
- return;
117
-
118
- this.receive(type, callback);
119
- },
120
- // Check if any callbacks assigned to a specified message type.
121
- is_set: function (type)
122
- {
123
- return (undef != _callbacks[type]);
124
- },
125
- parent_url: function ()
126
- {
127
- return _parent_url;
128
- },
129
- parent_subdomain: function ()
130
- {
131
- return _parent_subdomain;
132
- }
133
- };
134
- }();
135
- })(jQuery);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
freemius/assets/scss/_colors.scss DELETED
@@ -1,65 +0,0 @@
1
- $menu-hover-color: #333;
2
- $darkest-color: #000;
3
- $fms-live-color: #71ae00;
4
- $fms-test-color: #f7941d;
5
- $fms-link-color: #29abe1;
6
- $fms-link-hover-color: darken(#29abe1, 10%);
7
- $body-bkg: #111;
8
- $special-color: #d3135a;
9
- $body-color: #f1f1f1;
10
- $fms-white: #f1f1f1;
11
- $container-bkg: #222;
12
- $container-bkg-odd: #262626;
13
- $container-border-color: #333;
14
- $table-head-bkg: #333;
15
- $table-head-color: #999;
16
- $info-color: #999;
17
- $error-color: #ff0000;
18
-
19
- $fs-logo-blue-color: #29abe1;
20
- $fs-logo-green-color: #71ae00;
21
- $fs-logo-magenta-color: #d3135a;
22
-
23
- // WordPress colors.
24
- $page-header-bkg: #333;
25
- $page-header-color: $fms-white;
26
- $text-dark-color: #333;
27
- $text-light-color: #666;
28
- $text-lightest-color: #999;
29
-
30
- // Notices.
31
- $wp-notice-success-color: #f7fff7;
32
- $wp-notice-success-dark-color: #46b450;
33
- $wp-notice-error-color: #ffeaea;
34
- $wp-notice-error-dark-color: #dc3232;
35
- $wp-notice-warn-color: #fff8e5;
36
- $wp-notice-warn-dark-color: #ffb900;
37
- $fs-notice-promotion-border-color: #00a0d2;
38
- $fs-notice-promotion-bkg: #f2fcff;
39
-
40
- // WP Buttons.
41
- $button-primary-bkg: #6bc406;
42
- $button-primary-color: $fms-white;
43
- $button-secondary-bkg: #333;
44
- $button-secondary-color: $fms-white;
45
- $featured-color: #6bc406;
46
- $wp-selected-color: #0074a3;
47
-
48
- $wordpress_color: #01749A;
49
- $blogger_color: #ff8100;
50
- $wix_color: #fac102;
51
- $shopify_color: #80d100;
52
- $addthis_color: #fe6d4e;
53
- $tumblr_color: #34506b;
54
- $zepo_color: #00baf2;
55
- $jquery_color: #000919;
56
- $javascript_color: #00baf2;
57
- $squarespace_color: #000;
58
-
59
- $blog_color: #ff6600;
60
- $facebook_color: #3b5998;
61
- $twitter_color: #4099ff;
62
- $linkedin_color: #4875b4;
63
- $youtube_color: #ff3333;
64
- $gplus_color: #c63d2d;
65
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
freemius/assets/scss/_functions.scss DELETED
File without changes
freemius/assets/scss/_load.scss DELETED
@@ -1,4 +0,0 @@
1
- @import 'mixins';
2
- @import "vars";
3
- @import "functions";
4
- @import "colors";
 
 
 
 
freemius/assets/scss/_mixins.scss DELETED
@@ -1,270 +0,0 @@
1
- // ---- CSS3 SASS MIXINS ----
2
- // https://github.com/madr/css3-sass-mixins
3
- //
4
- // Copyright (C) 2011 by Anders Ytterström
5
- //
6
- // Permission is hereby granted, free of charge, to any person obtaining a copy
7
- // of this software and associated documentation files (the "Software"), to deal
8
- // in the Software without restriction, including without limitation the rights
9
- // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
- // copies of the Software, and to permit persons to whom the Software is
11
- // furnished to do so, subject to the following conditions:
12
- //
13
- // The above copyright notice and this permission notice shall be included in
14
- // all copies or substantial portions of the Software.
15
- //
16
- // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
- // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
- // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
- // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
- // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
- // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22
- // THE SOFTWARE.
23
- //
24
-
25
- // ---- LEGACY IE SUPPORT USING FILTERS ----
26
- // Should IE filters be used or not?
27
- // PROS: gradients, drop shadows etc will be handled by css.
28
- // CONS: will harm the site performance badly,
29
- // especially on sites with heavy rendering and scripting.
30
- $useIEFilters: 0;
31
- // might be 0 or 1. disabled by default.
32
- // ---- /LEGACY IE SUPPORT USING FILTERS ----
33
-
34
-
35
- @mixin background-size ($value) {
36
- -webkit-background-size: $value;
37
- background-size: $value;
38
- }
39
-
40
- @mixin border-image ($path, $offsets, $repeats) {
41
- -moz-border-image: $path $offsets $repeats;
42
- -o-border-image: $path $offsets $repeats;
43
- -webkit-border-image: $path $offsets $repeats;
44
- border-image: $path $offsets $repeats;
45
- }
46
-
47
- @mixin border-radius ($values...) {
48
- -moz-border-radius: $values;
49
- -webkit-border-radius: $values;
50
- border-radius: $values;
51
- /*-moz-background-clip: padding;
52
- -webkit-background-clip: padding-box;
53
- background-clip: padding-box;*/
54
- }
55
-
56
- @mixin box-shadow ($values...) {
57
- -moz-box-shadow: $values;
58
- -webkit-box-shadow: $values;
59
- box-shadow: $values;
60
- }
61
-
62
- //@mixin box-shadow ($x, $y, $offset, $hex, $ie: $useIEFilters, $inset: null, $spread:null) {
63
- // -moz-box-shadow: $x $y $offset $spread $hex $inset;
64
- // -webkit-box-shadow: $x $y $offset $spread $hex $inset;
65
- // box-shadow: $x $y $offset $spread $hex $inset;
66
- //
67
- // @if $ie == 1 {
68
- // $iecolor: '#' + red($hex) + green($hex) + blue($hex);
69
- // filter: progid:DXImageTransform.Microsoft.dropshadow(OffX=#{$x}, OffY=#{$y}, Color='#{$iecolor}');
70
- // -ms-filter: quote(progid:DXImageTransform.Microsoft.dropshadow(OffX=#{$x}, OffY=#{$y}, Color='#{$iecolor}'));
71
- // }
72
- //}
73
-
74
- @mixin box-sizing($value) {
75
- -moz-box-sizing: $value;
76
- -webkit-box-sizing: $value;
77
- box-sizing: $value;
78
- }
79
-
80
- // requires sass 3.2
81
- @mixin keyframes($name){
82
- @-moz-keyframes #{$name} { @content; }
83
- @-ms-keyframes #{$name} { @content; }
84
- @-o-keyframes #{$name} { @content; }
85
- @-webkit-keyframes #{$name} { @content; }
86
- @keyframes #{$name} { @content; }
87
- }
88
-
89
- @mixin linear-gradient($from, $to, $ie: $useIEFilters) {
90
- @if $ie != 1 { background-color: $to; }
91
-
92
- background-image: -webkit-gradient(linear,left top,left bottom,color-stop(0, $from),color-stop(1, $to));
93
- background-image: -webkit-linear-gradient(top, $from, $to);
94
- background-image: -moz-linear-gradient(top, $from, $to);
95
- background-image: -ms-linear-gradient(top, $from, $to);
96
- background-image: -o-linear-gradient(top, $from, $to);
97
- background-image: linear-gradient(top, bottom, $from, $to);
98
-
99
- @if $ie == 1 {
100
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{$from}', endColorstr='#{$to}');
101
- }
102
- }
103
-
104
- @mixin horizontal-gradient($startColor: #555, $endColor: #333, $ie: $useIEFilters) {
105
- @if $ie != 1 { background-color: $endColor; }
106
-
107
- background-color: $endColor;
108
- background-image: -webkit-gradient(linear, 0 0, 100% 0, from($startColor), to($endColor)); // Safari 4+, Chrome 2+
109
- background-image: -webkit-linear-gradient(left, $startColor, $endColor); // Safari 5.1+, Chrome 10+
110
- background-image: -moz-linear-gradient(left, $startColor, $endColor); // FF 3.6+
111
- background-image: -o-linear-gradient(left, $startColor, $endColor); // Opera 11.10
112
- background-image: linear-gradient(to right, $startColor, $endColor); // Standard, IE10
113
- background-repeat: repeat-x;
114
- @if $ie == 1 {
115
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{$startColor}', endColorstr='#{$endColor}', GradientType=1);
116
- }
117
- }
118
-
119
- @mixin radial-gradient($from, $to, $ie: $useIEFilters) {
120
- @if $ie != 1 { background-color: $to; }
121
-
122
- background: -moz-radial-gradient(center, circle cover, $from 0%, $to 100%);
123
- background: -webkit-gradient(radial, center center, 0px, center center, 100%, color-stop(0%, $from), color-stop(100%, $to));
124
- background: -webkit-radial-gradient(center, circle cover, $from 0%, $to 100%);
125
- background: -o-radial-gradient(center, circle cover, $from 0%, $to 100%);
126
- background: -ms-radial-gradient(center, circle cover, $from 0%, $to 100%);
127
- background: radial-gradient(center, circle cover, $from 0%, $to 100%);
128
- background-color: $from;
129
-
130
- @if $ie == 1 {
131
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{$from}', endColorstr='#{$to}', GradientType=1); /* IE6-9 fallback on horizontal gradient */
132
- }
133
- }
134
-
135
- @mixin perspective($perspective) {
136
- -moz-perspective: $perspective;
137
- -ms-perspective: $perspective;
138
- -webkit-perspective: $perspective;
139
- perspective: $perspective;
140
- -moz-transform-style: preserve-3d;
141
- -ms-transform-style: preserve-3d;
142
- -webkit-transform-style: preserve-3d;
143
- transform-style: preserve-3d;
144
- }
145
-
146
- @mixin transform ($transforms) {
147
- -moz-transform: $transforms;
148
- -o-transform: $transforms;
149
- -ms-transform: $transforms;
150
- -webkit-transform: $transforms;
151
- transform: $transforms;
152
- }
153
-
154
- @mixin matrix ($a, $b, $c, $d, $e, $f) {
155
- -moz-transform: matrix($a, $b, $c, $d, #{$e}px, #{$f}px);
156
- -o-transform: matrix($a, $b, $c, $d, $e, $f);
157
- -ms-transform: matrix($a, $b, $c, $d, $e, $f);
158
- -webkit-transform: matrix($a, $b, $c, $d, $e, $f);
159
- transform: matrix($a, $b, $c, $d, $e, $f);
160
- }
161
-
162
- @mixin rotate ($deg) {
163
- @include transform(rotate(#{$deg}deg));
164
- }
165
-
166
- @mixin scale ($size) {
167
- @include transform(scale(#{$size}));
168
- }
169
-
170
- @mixin translate ($x, $y) {
171
- @include transform(translate($x, $y));
172
- }
173
-
174
- @mixin transition ($value...) {
175
- -moz-transition: $value;
176
- -o-transition: $value;
177
- -ms-transition: $value;
178
- -webkit-transition: $value;
179
- transition: $value;
180
- }
181
-
182
- @mixin animation($str) {
183
- -webkit-animation: #{$str};
184
- -moz-animation: #{$str};
185
- -ms-animation: #{$str};
186
- -o-animation: #{$str};
187
- animation: #{$str};
188
- }
189
-
190
- @mixin animation-name($str) {
191
- -webkit-animation-name: #{$str};
192
- -moz-animation-name: #{$str};
193
- -ms-animation-name: #{$str};
194
- -o-animation-name: #{$str};
195
- animation-name: #{$str};
196
- }
197
-
198
- @mixin animation-duration($str) {
199
- -webkit-animation-duration: #{$str};
200
- -moz-animation-duration: #{$str};
201
- -ms-animation-duration: #{$str};
202
- -o-animation-duration: #{$str};
203
- animation-duration: #{$str};
204
- }
205
-
206
- @mixin animation-direction($str) {
207
- -webkit-animation-direction: #{$str};
208
- -moz-animation-direction: #{$str};
209
- -ms-animation-direction: #{$str};
210
- -o-animation-direction: #{$str};
211
- animation-direction: #{$str};
212
- }
213
-
214
- @mixin animation-delay($str) {
215
- animation-delay:#{$str};
216
- -o-animation-delay:#{$str};
217
- -ms-animation-delay:#{$str};
218
- -webkit-animation-delay:#{$str};
219
- -moz-animation-delay:#{$str};
220
- }
221
-
222
- @mixin animation-iteration-count($str) {
223
- animation-iteration-count:#{$str};
224
- -o-animation-iteration-count:#{$str};
225
- -ms-animation-iteration-count:#{$str};
226
- -webkit-animation-iteration-count:#{$str};
227
- -moz-animation-iteration-count:#{$str};
228
- }
229
-
230
- @mixin animation-timing-function($str) {
231
- -webkit-animation-timing-function: #{$str};
232
- -moz-animation-timing-function: #{$str};
233
- -ms-animation-timing-function: #{$str};
234
- -o-animation-timing-function: #{$str};
235
- animation-timing-function: #{$str};
236
- }
237
-
238
- // ==== /CSS3 SASS MIXINS ====
239
-
240
- @mixin opacity($opacity) {
241
- opacity: $opacity;
242
- $opacity-ie: $opacity * 100;
243
- filter: alpha(opacity=$opacity-ie); //IE8
244
- }
245
-
246
- @mixin size($width, $height: $width)
247
- {
248
- width: $width;
249
- height: $height;
250
- }
251
-
252
- @mixin clearfix
253
- {
254
- &:after {
255
- content: "";
256
- display: table;
257
- clear: both;
258
- }
259
- }
260
-
261
- // Placeholder text
262
- @mixin placeholder($color: $input-color-placeholder) {
263
- // Firefox
264
- &::-moz-placeholder {
265
- color: $color;
266
- opacity: 1; // Override Firefox's unusual default opacity; see https://github.com/twbs/bootstrap/pull/11526
267
- }
268
- &:-ms-input-placeholder { color: $color; } // Internet Explorer 10+
269
- &::-webkit-input-placeholder { color: $color; } // Safari and Chrome
270
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
freemius/assets/scss/_start.scss DELETED
@@ -1,4 +0,0 @@
1
- @import "vars";
2
- @import "colors";
3
- @import "mixins";
4
- @import "functions";
 
 
 
 
freemius/assets/scss/_vars.scss DELETED
@@ -1,6 +0,0 @@
1
- $is_production: true;
2
-
3
- $img_common: if($is_production == true, '//img.freemius.com', 'http://img.freemius:8080');
4
-
5
- $layout_width: 960px;
6
- $admin_mobile_max_width: 782px;
 
 
 
 
 
 
freemius/assets/scss/admin/_ajax-loader.scss DELETED
@@ -1,49 +0,0 @@
1
- $color: $wp-selected-color;
2
- $bkg-color: #fff;
3
- $size: 20;
4
-
5
- .fs-ajax-loader
6
- {
7
- position: relative;
8
- width: #{8*$size + 10}px;
9
- height: #{$size}px;
10
- margin: auto;
11
-
12
- .fs-ajax-loader-bar
13
- {
14
- position: absolute;
15
- top: 0;
16
- background-color: $color;
17
- width: #{$size}px;
18
- height: #{$size}px;
19
- @include animation-name(bounce_ajaxLoader);
20
- @include animation-duration(1.5s);
21
- @include animation-iteration-count(infinite);
22
- @include animation-direction(normal);
23
- @include transform(.3);
24
- }
25
-
26
- @for $i from 0 through 7
27
- {
28
- .fs-ajax-loader-bar-#{$i + 1}
29
- {
30
- left: #{$i*($size - 1)}px;
31
- @include animation-delay(#{0.6 + $i*0.15}s);
32
- }
33
- }
34
- }
35
-
36
- @include keyframes(bounce_ajaxLoader)
37
- {
38
- 0%
39
- {
40
- @include transform(scale(1));
41
- background-color: $color;
42
- }
43
-
44
- 100%
45
- {
46
- @include transform(scale(.3));
47
- background-color: $bkg-color;
48
- }
49
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
freemius/assets/scss/admin/_auto-install.scss DELETED
@@ -1,33 +0,0 @@
1
- .fs-modal-auto-install
2
- {
3
- $max-width: 300px;
4
-
5
- #request-filesystem-credentials-form
6
- {
7
- h2,
8
- .request-filesystem-credentials-action-buttons
9
- {
10
- display: none;
11
- }
12
-
13
- input[type=password],
14
- input[type=email],
15
- input[type=text]
16
- {
17
- -webkit-appearance: none;
18
- padding: 10px 10px 5px 10px;
19
- width: $max-width;
20
- max-width: 100%;
21
- }
22
-
23
- > div,
24
- label,
25
- fieldset
26
- {
27
- width: $max-width;
28
- max-width: 100%;
29
- margin: 0 auto;
30
- display: block;
31
- }
32
- }
33
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
freemius/assets/scss/admin/_deactivation-feedback.scss DELETED
@@ -1,55 +0,0 @@
1
- @import "../colors";
2
-
3
- .fs-modal.fs-modal-deactivation-feedback {
4
- .reason-input, .internal-message {
5
- margin: 3px 0 3px 22px;
6
-
7
- input, textarea {
8
- width: 100%;
9
- }
10
- }
11
-
12
- li.reason {
13
- &.has-internal-message .internal-message {
14
- border: 1px solid lighten($darkest-color, 80%);
15
- padding: 7px;
16
- display: none;
17
- }
18
-
19
- @media (max-width: 650px) {
20
- li.reason {
21
- margin-bottom: 10px;
22
-
23
- .reason-input, .internal-message {
24
- margin-left: 29px;
25
- }
26
-
27
- label {
28
- display: table;
29
-
30
- > span {
31
- display: table-cell;
32
- font-size: 1.3em;
33
- }
34
- }
35
- }
36
- }
37
- }
38
-
39
- .anonymous-feedback-label {
40
- float: left;
41
- }
42
-
43
- .fs-modal-panel {
44
- margin-top: 0 !important;
45
-
46
- h3 {
47
- margin-top: 0;
48
- line-height: 1.5em;
49
- }
50
- }
51
- }
52
-
53
- #the-list .deactivate > .fs-slug {
54
- display: none;
55
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
freemius/assets/scss/admin/_license-activation.scss DELETED
@@ -1,7 +0,0 @@
1
- .fs-modal.fs-modal-license-activation {
2
- .fs-modal-body {
3
- input.license_key {
4
- width: 100%;
5
- }
6
- }
7
- }
 
 
 
 
 
 
 
freemius/assets/scss/admin/_license-key-resend.scss DELETED
@@ -1,68 +0,0 @@
1
- .fs-modal.fs-modal-license-key-resend
2
- {
3
- .email-address-container
4
- {
5
- overflow: hidden;
6
- padding-right: 2px;
7
- }
8
-
9
- &.fs-freemium
10
- {
11
- input.email-address
12
- {
13
- width: 300px;
14
- }
15
-
16
- label
17
- {
18
- display: block;
19
- margin-bottom: 10px;
20
- }
21
- }
22
-
23
- &.fs-premium
24
- {
25
- input.email-address
26
- {
27
- width: 100%;
28
- }
29
-
30
- .button-container
31
- {
32
- float: right;
33
- margin-left: 7px;
34
-
35
- @media (max-width: 650px) {
36
- margin-top: 2px;
37
- }
38
- }
39
- }
40
- }
41
-
42
- .rtl
43
- {
44
- .fs-modal.fs-modal-license-key-resend
45
- {
46
- .fs-modal-body
47
- {
48
- .input-container > .email-address-container
49
- {
50
- padding-left: 2px;
51
- padding-right: 0;
52
- }
53
-
54
- .button-container
55
- {
56
- float: left;
57
- margin-right: 7px;
58
- margin-left: 0;
59
- }
60
- }
61
- }
62
- }
63
-
64
- a.show-license-resend-modal
65
- {
66
- margin-top: 4px;
67
- display: inline-block;
68
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
freemius/assets/scss/admin/_modal-common.scss DELETED
@@ -1,186 +0,0 @@
1
- @import "../colors";
2
- @import "../mixins";
3
-
4
- .fs-modal {
5
- position: fixed;
6
- overflow: auto;
7
- height: 100%;
8
- width: 100%;
9
- top: 0;
10
- z-index: 100000;
11
- display: none;
12
- background: rgba(0, 0, 0, 0.6);
13
-
14
- .fs-modal-dialog {
15
- background: transparent;
16
- position: absolute;
17
- left: 50%;
18
- margin-left: -298px;
19
- padding-bottom: 30px;
20
- top: -100%;
21
- z-index: 100001;
22
- width: 596px;
23
-
24
- @media (max-width: 650px) {
25
- margin-left: -50%;
26
- box-sizing: border-box;
27
- padding-left: 10px;
28
- padding-right: 10px;
29
- width: 100%;
30
-
31
- .fs-modal-panel > h3 > strong {
32
- font-size: 1.3em;
33
- }
34
- }
35
- }
36
-
37
- &.active {
38
- display: block;
39
-
40
- &:before {
41
- display: block;
42
- }
43
-
44
- .fs-modal-dialog {
45
- top: 10%;
46
- }
47
- }
48
-
49
- &.fs-success {
50
- .fs-modal-header {
51
- border-bottom-color: $wp-notice-success-dark-color;
52
- }
53
-
54
- .fs-modal-body {
55
- background-color: $wp-notice-success-color;
56
- }
57
- }
58
-
59
- &.fs-warn {
60
- .fs-modal-header {
61
- border-bottom-color: $wp-notice-warn-dark-color;
62
- }
63
-
64
- .fs-modal-body {
65
- background-color: $wp-notice-warn-color;
66
- }
67
- }
68
-
69
- &.fs-error {
70
- .fs-modal-header {
71
- border-bottom-color: $wp-notice-error-dark-color;
72
- }
73
-
74
- .fs-modal-body {
75
- background-color: $wp-notice-error-color;
76
- }
77
- }
78
-
79
-
80
- .fs-modal-body,
81
- .fs-modal-footer {
82
- border: 0;
83
- background: #fefefe;
84
- padding: 20px;
85
- }
86
-
87
- .fs-modal-header {
88
- border-bottom: #eeeeee solid 1px;
89
- background: #fbfbfb;
90
- padding: 15px 20px;
91
- position: relative;
92
- margin-bottom: -10px;
93
- // z-index: 2;
94
-
95
- h4 {
96
- margin: 0;
97
- padding: 0;
98
- text-transform: uppercase;
99
- font-size: 1.2em;
100
- font-weight: bold;
101
- color: #cacaca;
102
- text-shadow: 1px 1px 1px #fff;
103
- letter-spacing: 0.6px;
104
- -webkit-font-smoothing: antialiased;
105
- }
106
-
107
- .fs-close {
108
- position: absolute;
109
- right: 10px;
110
- top: 12px;
111
- cursor: pointer;
112
- color: #bbb;
113
- @include border-radius(20px);
114
- padding: 3px;
115
- @include transition(all 0.2s ease-in-out);
116
-
117
- &:hover {
118
- color: #fff;
119
- background: #aaa;
120
- }
121
- }
122
- }
123
-
124
- .fs-modal-body {
125
- border-bottom: 0;
126
-
127
- p {
128
- font-size: 14px;
129
- }
130
-
131
- h2 {
132
- font-size: 20px;
133
- line-height: 1.5em;
134
- }
135
-
136
- > div {
137
- margin-top: 10px;
138
-
139
- h2 {
140
- font-weight: bold;
141
- font-size: 20px;
142
- margin-top: 0;
143
- }
144
- }
145
- }
146
-
147
- .fs-modal-footer {
148
- border-top: #eeeeee solid 1px;
149
- text-align: right;
150
-
151
- > .button {
152
- margin: 0 7px;
153
-
154
- &:first-child {
155
- margin: 0;
156
- }
157
- }
158
- }
159
-
160
- .fs-modal-panel {
161
- > .notice.inline {
162
- margin: 0;
163
- display: none;
164
- }
165
-
166
- &:not(.active) {
167
- display: none;
168
- }
169
- }
170
- }
171
-
172
- .rtl
173
- {
174
- .fs-modal {
175
- .fs-modal-header {
176
- .fs-close {
177
- right: auto;
178
- left: 20px;
179
- }
180
- }
181
- }
182
- }
183
-
184
- body.has-fs-modal {
185
- overflow: hidden;
186
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
freemius/assets/scss/admin/_themes.scss DELETED
@@ -1,21 +0,0 @@
1
- .theme-browser
2
- {
3
- .theme
4
- {
5
- .fs-premium-theme-badge
6
- {
7
- position: absolute;
8
- top: 10px;
9
- right: 0;
10
- background: $fs-logo-green-color;
11
- color: #fff;
12
- text-transform: uppercase;
13
- padding: 5px 10px;
14
- @include border-radius(3px 0 0 3px);
15
- font-weight: bold;
16
- border-right: 0;
17
- @include box-shadow(0 2px 1px -1px rgba(0, 0, 0, .3));
18
- font-size: 1.1em;
19
- }
20
- }
21
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
freemius/assets/scss/admin/account.scss DELETED
@@ -1,256 +0,0 @@
1
- @import "../start";
2
-
3
- #fs_account
4
- {
5
- .postbox,
6
- .widefat
7
- {
8
- max-width: 700px;
9
- }
10
-
11
- h3
12
- {
13
- font-size: 1.3em;
14
- padding: 12px 15px;
15
- margin: 0 0 12px 0;
16
- line-height: 1.4;
17
- border-bottom: 1px solid #F1F1F1;
18
-
19
- .dashicons {
20
- width: 26px;
21
- height: 26px;
22
- font-size: 1.3em;
23
- }
24
- }
25
-
26
- i.dashicons
27
- {
28
- font-size: 1.2em;
29
- height: 1.2em;
30
- width: 1.2em;
31
- }
32
-
33
- .button
34
- {
35
- i.dashicons
36
- {
37
- vertical-align: middle;
38
- }
39
- }
40
-
41
- .fs-header-actions
42
- {
43
- position: absolute;
44
- top: 17px;
45
- right: 15px;
46
- font-size: 0.9em;
47
-
48
- ul
49
- {
50
- margin: 0;
51
- }
52
-
53
- li
54
- {
55
- form
56
- {
57
- display: inline-block;
58
- }
59
-
60
- float: left;
61
- a
62
- {
63
- text-decoration: none;
64
- }
65
- }
66
- }
67
- }
68
-
69
- #fs_account_details .button-group {
70
- float: right;
71
- }
72
-
73
- .rtl #fs_account .fs-header-actions
74
- {
75
- left: 15px;
76
- right: auto;
77
- }
78
-
79
- .fs-key-value-table
80
- {
81
- width: 100%;
82
-
83
- form
84
- {
85
- display: inline-block;
86
- }
87
-
88
- tr
89
- {
90
- td:first-child
91
- {
92
- nobr
93
- {
94
- font-weight: bold;
95
- }
96
-
97
- text-align: right;
98
-
99
- form
100
- {
101
- display: block;
102
- }
103
- }
104
-
105
- td.fs-right
106
- {
107
- text-align: right;
108
- }
109
-
110
- &.fs-odd
111
- {
112
- background: #ebebeb;
113
- }
114
- }
115
-
116
- td, th
117
- {
118
- padding: 10px;
119
- }
120
-
121
- code {
122
- line-height: 28px;
123
- }
124
-
125
- var, code, input[type="text"]
126
- {
127
- color: #0073AA;
128
- font-size: 16px;
129
- background: none;
130
- }
131
-
132
- input[type="text"] {
133
- width: 100%;
134
- font-weight: bold;
135
- }
136
- }
137
-
138
- label.fs-tag
139
- {
140
- background: #ffba00;
141
- color: #fff;
142
- display: inline-block;
143
- border-radius: 3px;
144
- padding: 5px;
145
- font-size: 11px;
146
- line-height: 11px;
147
- vertical-align: baseline;
148
-
149
- &.fs-warn
150
- {
151
- background: #ffba00;
152
- }
153
- &.fs-success
154
- {
155
- background: #46b450;
156
- }
157
- &.fs-error
158
- {
159
- background: #dc3232;
160
- }
161
- }
162
-
163
- #fs_addons
164
- {
165
- h3
166
- {
167
- border: none;
168
- margin-bottom: 0;
169
- padding: 4px 5px;
170
- }
171
-
172
- td
173
- {
174
- vertical-align: middle;
175
- }
176
-
177
- thead {
178
- white-space: nowrap;
179
- }
180
-
181
- td:first-child,
182
- th:first-child
183
- {
184
- text-align: left;
185
- font-weight: bold;
186
- }
187
- td:last-child,
188
- th:last-child
189
- {
190
- text-align: right;
191
- }
192
- th
193
- {
194
- font-weight: bold;
195
- }
196
- }
197
-
198
- #fs_billing_address {
199
- width: 100%;
200
-
201
- tr {
202
- td {
203
- width: 50%;
204
- padding: 5px;
205
- }
206
-
207
- &:first-of-type {
208
- td {
209
- padding-top: 0;
210
- }
211
- }
212
- }
213
-
214
- @mixin read-mode {
215
- border-color: transparent;
216
- color: #777;
217
- border-bottom: 1px dashed #ccc;
218
- padding-left: 0;
219
- background: none;
220
- }
221
-
222
- span {
223
- font-weight: bold;
224
- }
225
-
226
- input, select {
227
- @include placeholder(transparent);
228
-
229
- display: block;
230
- width: 100%;
231
- margin-top: 5px;
232
-
233
- &.fs-read-mode {
234
- @include read-mode();
235
- }
236
- }
237
-
238
-
239
- &.fs-read-mode {
240
- td span {
241
- display: none;
242
- }
243
-
244
- input, select
245
- {
246
- @include read-mode();
247
- @include placeholder(#ccc);
248
- }
249
- }
250
-
251
-
252
- button {
253
- display: block;
254
- width: 100%;
255
- }
256
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
freemius/assets/scss/admin/add-ons.scss DELETED
@@ -1,449 +0,0 @@
1
- @import "../start";
2
-
3
- #fs_addons
4
- {
5
- .fs-cards-list
6
- {
7
- list-style: none;
8
-
9
- .fs-card
10
- {
11
- float: left;
12
- // height: 185px; // With reviews/ratings
13
- height: 152px;
14
- width: 310px;
15
- padding: 0;
16
- margin: 0 0 30px 30px;
17
- font-size: 14px;
18
- list-style: none;
19
- border: 1px solid #ddd;
20
- cursor: pointer;
21
- position: relative;
22
-
23
- .fs-overlay
24
- {
25
- position: absolute;
26
- left: 0;
27
- right: 0;
28
- bottom: 0;
29
- top: 0;
30
- z-index: 9;
31
- }
32
-
33
- .fs-inner
34
- {
35
- background-color: #fff;
36
- overflow: hidden;
37
- height: 100%;
38
- position: relative;
39
-
40
- ul
41
- {
42
- @include transition(all, 0.15s);
43
- left: 0;
44
- right: 0;
45
- top: 0;
46
- position: absolute;
47
- }
48
-
49
- li
50
- {
51
- list-style: none;
52
- line-height: 18px;
53
- padding: 0 15px;
54
- width: 100%;
55
- display: block;
56
- @include box-sizing(border-box);
57
- }
58
-
59
- .fs-card-banner
60
- {
61
- padding: 0;
62
- margin: 0;
63
- line-height: 0;
64
- display: block;
65
- height: 100px;
66
- background-repeat: repeat-x;
67
- background-size: 100% 100%;
68
- @include transition(all, 0.15s);
69
- }
70
-
71
- .fs-title
72
- {
73
- margin: 10px 0 0 0;
74
- height: 18px;
75
- overflow: hidden;
76
- color: #000;
77
- white-space: nowrap;
78
- text-overflow: ellipsis;
79
- font-weight: bold;
80
- }
81
-
82
- .fs-offer
83
- {
84
- font-size: 0.9em;
85
- }
86
-
87
- .fs-description
88
- {
89
- background-color: #f9f9f9;
90
- padding: 10px 15px 100px 15px;
91
- border-top: 1px solid #eee;
92
- margin: 0 0 10px 0;
93
- color: #777;
94
- }
95
-
96
- .fs-tag
97
- {
98
- position: absolute;
99
- top: 10px;
100
- right: 0px;
101
- background: greenyellow;
102
- display: block;
103
- padding: 2px 10px;
104
- @include box-shadow(1px 1px 1px rgba(0,0,0,0.3));
105
- text-transform: uppercase;
106
- font-size: 0.9em;
107
- font-weight: bold;
108
- }
109
-
110
- .fs-cta
111
- {
112
- .button
113
- {
114
- position: absolute;
115
- top: 112px;
116
- right: 10px;
117
- }
118
- }
119
- }
120
-
121
- @media screen and (min-width: 960px) {
122
- &:hover
123
- {
124
- .fs-overlay
125
- {
126
- border: 2px solid $fms-link-color;
127
- margin-left: -1px;
128
- margin-top: -1px;
129
- }
130
-
131
- .fs-inner
132
- {
133
- ul
134
- {
135
- top: -100px;
136
- }
137
-
138
- .fs-card-banner
139
- {
140
- // background-position: 50% -100px;
141
- }
142
-
143
- .fs-title,
144
- .fs-offer
145
- {
146
- color: $fms-link-color;
147
- }
148
- }
149
- }
150
- }
151
- }
152
- }
153
- }
154
-
155
- #TB_window
156
- {
157
- &, iframe
158
- {
159
- width: 772px !important;
160
- }
161
- }
162
-
163
- #plugin-information
164
- {
165
- #section-description
166
- {
167
- h2, h3, p, b, i, blockquote, li, ul, ol
168
- {
169
- clear: none;
170
- }
171
-
172
- .fs-selling-points
173
- {
174
- padding-bottom: 10px;
175
- border-bottom: 1px solid #ddd;
176
-
177
- ul
178
- {
179
- margin: 0;
180
-
181
- li
182
- {
183
- padding: 0;
184
- list-style: none outside none;
185
-
186
- i.dashicons
187
- {
188
- color: $fs-logo-green-color;
189
- font-size: 3em;
190
- vertical-align: middle;
191
- line-height: 30px;
192
- float: left;
193
- margin: 0 0 0 -15px;
194
- }
195
-
196
- h3
197
- {
198
- margin: 1em 30px !important;
199
- }
200
- }
201
- }
202
- }
203
-
204
- .fs-screenshots
205
- {
206
- @include clearfix();
207
- ul
208
- {
209
- list-style: none;
210
- margin: 0;
211
-
212
- li
213
- {
214
- width: 225px;
215
- height: 225px;
216
- float: left;
217
- margin-bottom: 20px;
218
- @include box-sizing(content-box);
219
-
220
- a
221
- {
222
- display: block;
223
- width: 100%;
224
- height: 100%;
225
- border: 1px solid;
226
- @include box-shadow(1px 1px 1px rgba(0, 0, 0, 0.2));
227
- background-size: cover;
228
- }
229
-
230
- &.odd
231
- {
232
- margin-right: 20px;
233
- }
234
- }
235
- }
236
- }
237
- }
238
-
239
- .plugin-information-pricing
240
- {
241
- $pricing_color: #FFFEEC;
242
- $borders_color: #DDD;
243
- margin: -16px;
244
- // padding: 20px;
245
- border-bottom: 1px solid $borders_color;
246
-
247
- .fs-plan
248
- {
249
-
250
- h3
251
- {
252
- margin-top: 0;
253
- padding: 20px;
254
- font-size: 16px;
255
- }
256
-
257
- .nav-tab-wrapper
258
- {
259
- border-bottom: 1px solid $borders_color;
260
-
261
- .nav-tab
262
- {
263
- cursor: pointer;
264
- position: relative;
265
- padding: 0 10px;
266
- font-size: 0.9em;
267
-
268
- label
269
- {
270
- text-transform: uppercase;
271
- color: green;
272
- background: greenyellow;
273
- position: absolute;
274
- left: -1px;
275
- right: -1px;
276
- bottom: 100%;
277
- border: 1px solid darkgreen;
278
- padding: 2px;
279
- text-align: center;
280
- font-size: 0.9em;
281
- line-height: 1em;
282
- }
283
-
284
- &.nav-tab-active
285
- {
286
- cursor: default;
287
- background: $pricing_color;
288
- border-bottom-color: $pricing_color;
289
- }
290
- }
291
- }
292
-
293
- &.fs-single-cycle
294
- {
295
- h3
296
- {
297
- background: $pricing_color;
298
- margin: 0;
299
- padding-bottom: 0;
300
- color: #0073aa;
301
- }
302
-
303
- .nav-tab-wrapper,
304
- .fs-billing-frequency
305
- {
306
- display: none;
307
- }
308
- }
309
-
310
- .fs-pricing-body
311
- {
312
- background: $pricing_color;
313
- padding: 20px;
314
- }
315
-
316
- .button
317
- {
318
- width: 100%;
319
- text-align: center;
320
- font-weight: bold;
321
- text-transform: uppercase;
322
- font-size: 1.1em;
323
- }
324
-
325
- label
326
- {
327
- white-space: nowrap;
328
- }
329
-
330
- var {
331
- font-style: normal;
332
- }
333
-
334
- .fs-billing-frequency,
335
- .fs-annual-discount
336
- {
337
- text-align: center;
338
- display: block;
339
- font-weight: bold;
340
- margin-bottom: 10px;
341
- text-transform: uppercase;
342
- background: #F3F3F3;
343
- padding: 2px;
344
- border: 1px solid #ccc;
345
- }
346
-
347
- .fs-annual-discount
348
- {
349
- text-transform: none;
350
- color: green;
351
- background: greenyellow;
352
- }
353
-
354
- ul.fs-trial-terms
355
- {
356
- font-size: 0.9em;
357
-
358
- i
359
- {
360
- float: left;
361
- margin: 0 0 0 -15px;
362
- }
363
-
364
- li
365
- {
366
- margin: 10px 0 0 0;
367
- }
368
- }
369
- }
370
- }
371
-
372
- #section-features
373
- {
374
- .fs-features
375
- {
376
- margin: -20px -26px;
377
- }
378
-
379
- table
380
- {
381
- width: 100%;
382
- border-spacing: 0;
383
- border-collapse: separate;
384
-
385
- thead
386
- {
387
- th
388
- {
389
- padding: 10px 0;
390
- }
391
-
392
- .fs-price
393
- {
394
- color: $fs-logo-green-color;
395
- font-weight: normal;
396
- display: block;
397
- text-align: center;
398
- }
399
- }
400
-
401
- tbody
402
- {
403
- td
404
- {
405
- border-top: 1px solid #ccc;
406
- padding: 10px 0;
407
- text-align: center;
408
- width: 100px;
409
- color: $fs-logo-green-color;
410
-
411
- &:first-child
412
- {
413
- text-align: left;
414
- width: auto;
415
- color: inherit;
416
- padding-left: 26px;
417
- }
418
- }
419
- tr.fs-odd
420
- {
421
- td
422
- {
423
- background: #fefefe;
424
- }
425
- }
426
- }
427
- }
428
-
429
- .dashicons-yes
430
- {
431
- width: 30px;
432
- height: 30px;
433
- font-size: 30px;
434
- }
435
- }
436
- }
437
-
438
- @media screen and (max-width: 961px) {
439
- #fs_addons
440
- {
441
- .fs-cards-list
442
- {
443
- .fs-card
444
- {
445
- height: 265px;
446
- }
447
- }
448
- }
449
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
freemius/assets/scss/admin/affiliation.scss DELETED
@@ -1,97 +0,0 @@
1
- @import "../start";
2
-
3
- #fs_affiliation_content_wrapper {
4
- #messages {
5
- margin-top: 25px;
6
- }
7
-
8
- h3 {
9
- font-size: 24px;
10
- padding: 0;
11
- margin-left: 0;
12
- }
13
-
14
- ul {
15
- li {
16
- @include box-sizing(border-box);
17
- list-style-type: none;
18
-
19
- &:before {
20
- content: '✓';
21
- margin-right: 10px;
22
- font-weight: bold;
23
- }
24
- }
25
- }
26
-
27
- p:not(.description), li, label {
28
- font-size: 16px !important;
29
- line-height: 26px !important;
30
- }
31
-
32
- .button {
33
- margin-top: 20px;
34
- margin-bottom: 7px;
35
- line-height: 35px;
36
- height: 40px;
37
- font-size: 16px;
38
-
39
- &#cancel_button {
40
- margin-right: 5px;
41
- }
42
- }
43
-
44
- form {
45
- .input-container {
46
- .input-label {
47
- font-weight: bold;
48
- display: block;
49
- width: 100%;
50
- }
51
-
52
- &.input-container-text {
53
- label, input, textarea {
54
- display: block;
55
- }
56
- }
57
-
58
- margin-bottom: 15px;
59
-
60
- #add_domain, .remove-domain {
61
- text-decoration: none;
62
- display: inline-block;
63
- margin-top: 3px;
64
-
65
- &:focus {
66
- box-shadow: none;
67
- }
68
-
69
- &.disabled {
70
- color: #aaa;
71
- cursor: default;
72
- }
73
- }
74
- }
75
-
76
- #extra_domains_container {
77
- .description {
78
- margin-top: 0;
79
- position: relative;
80
- top: -4px;
81
- }
82
-
83
- .extra-domain-input-container {
84
- margin-bottom: 15px;
85
-
86
- .domain {
87
- display: inline-block;
88
- margin-right: 5px;
89
-
90
- &:last-of-type {
91
- margin-bottom: 0;
92
- }
93
- }
94
- }
95
- }
96
- }
97
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
freemius/assets/scss/admin/checkout.scss DELETED
@@ -1,5 +0,0 @@
1
- @media screen and (max-width: 782px) {
2
- #wpbody-content {
3
- padding-bottom: 0 !important;
4
- }
5
- }
 
 
 
 
 
freemius/assets/scss/admin/common.scss DELETED
@@ -1,218 +0,0 @@
1
- @import "../start";
2
- @import "themes";
3
-
4
- #iframe
5
- {
6
- line-height: 0;
7
- font-size: 0;
8
- }
9
-
10
- .fs-full-size-wrapper
11
- {
12
- margin: 40px 0 -65px -20px;
13
-
14
- @media (max-width: 600px) {
15
- margin: 0 0 -65px -10px;
16
- }
17
- }
18
-
19
- .fs-notice
20
- {
21
- position: relative;
22
-
23
- &.fs-has-title
24
- {
25
- margin-bottom: 30px !important;
26
- }
27
-
28
- &.success
29
- {
30
- color: green;
31
- // font-weight: normal;
32
- }
33
-
34
- &.promotion
35
- {
36
- border-color: $fs-notice-promotion-border-color !important;
37
- background-color: $fs-notice-promotion-bkg !important;
38
- }
39
-
40
- .fs-notice-body
41
- {
42
- margin: .5em 0;
43
- padding: 2px;
44
- }
45
-
46
- .fs-close
47
- {
48
- // position: absolute;
49
- // top: 2px;
50
- // bottom: 2px;
51
- // right: 2px;
52
- // min-width: 100px;
53
- // text-align: center;
54
- // padding-right: 2px;
55
- cursor: pointer;
56
- color: #aaa;
57
- float: right;
58
-
59
- &:hover
60
- {
61
- color: #666;
62
- // background: #A9A9A9;
63
- }
64
-
65
- > *
66
- {
67
- margin-top: 7px;
68
- display: inline-block;
69
- }
70
- }
71
-
72
- label.fs-plugin-title
73
- {
74
- background: rgba(0, 0, 0, 0.3);
75
- color: #fff;
76
- padding: 2px 10px;
77
- position: absolute;
78
- top: 100%;
79
- bottom: auto;
80
- right: auto;
81
- @include border-radius(0 0 3px 3px);
82
- left: 10px;
83
- font-size: 12px;
84
- font-weight: bold;
85
- cursor: auto;
86
- }
87
- }
88
-
89
- div.fs-notice
90
- {
91
- &.updated,
92
- &.success,
93
- &.promotion
94
- {
95
- display: block !important;
96
- }
97
- }
98
-
99
- .rtl .fs-notice
100
- {
101
- .fs-close
102
- {
103
- // left: 2px;
104
- // right: auto;
105
- // padding-right: 0;
106
- // padding-left: 2px;
107
- float: left;
108
- }
109
- }
110
-
111
- .fs-secure-notice
112
- {
113
- position: fixed;
114
- top: 32px;
115
- left: 160px;
116
- right: 0;
117
- background: rgb(235, 253, 235);
118
- padding: 10px 20px;
119
- color: green;
120
- z-index: 9999;
121
- @include box-shadow(0 2px 2px rgba(6, 113, 6, 0.3));
122
- @include opacity(0.95);
123
-
124
- &:hover
125
- {
126
- @include opacity(1);
127
- }
128
-
129
- a.fs-security-proof
130
- {
131
- color: green;
132
- text-decoration: none;
133
- }
134
- }
135
-
136
- @media screen and (max-width: 960px) {
137
- .fs-secure-notice
138
- {
139
- left: 36px;
140
- }
141
- }
142
-
143
- @media screen and (max-width: 600px) {
144
- .fs-secure-notice
145
- {
146
- display: none;
147
- }
148
- }
149
-
150
- @media screen and (max-width: 500px) {
151
- #fs_promo_tab
152
- {
153
- display: none;
154
- }
155
- }
156
-
157
- @media screen and (max-width: 782px) {
158
- .fs-secure-notice
159
- {
160
- left: 0;
161
- top: 46px;
162
- text-align: center;
163
- }
164
- }
165
-
166
- span.fs-submenu-item.fs-sub:before
167
- {
168
- // Add small arrow.
169
- content: '\21B3';
170
- padding: 0 5px;
171
- }
172
-
173
- .rtl
174
- {
175
- span.fs-submenu-item.fs-sub:before
176
- {
177
- // Add small RTL arrow.
178
- content: '\21B2';
179
- }
180
- }
181
-
182
- .fs-submenu-item
183
- {
184
- &.pricing
185
- {
186
- &.upgrade-mode
187
- {
188
- color: greenyellow;
189
- }
190
-
191
- &.trial-mode
192
- {
193
- color: #83e2ff;
194
- }
195
- }
196
- }
197
-
198
- #adminmenu .update-plugins.fs-trial
199
- {
200
- background-color: #00b9eb;
201
- }
202
- .fs-ajax-spinner
203
- {
204
- border: 0;
205
- width: 20px;
206
- height: 20px;
207
- margin-right: 5px;
208
- vertical-align: sub;
209
- display: inline-block;
210
- background: url('../../../../../../../wp-admin/images/wpspin_light-2x.gif');
211
- background-size: contain;
212
- }
213
-
214
- .wrap.fs-section {
215
- h2 {
216
- text-align: left;
217
- }
218
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
freemius/assets/scss/admin/connect.scss DELETED
@@ -1,520 +0,0 @@
1
- @import "../start";
2
-
3
- $form_width: 480px;
4
-
5
- #fs_connect
6
- {
7
- width: $form_width;
8
- @include box-shadow(0px 1px 2px rgba(0, 0, 0, 0.3));
9
- margin: 20px 0;
10
-
11
- @media screen and (max-width: ($form_width - 1)) {
12
- @include box-shadow(none);
13
- width: auto;
14
- margin: 0 0 0 -10px;
15
- }
16
-
17
- .fs-content
18
- {
19
- background: #fff;
20
- padding: 15px 20px;
21
-
22
- .fs-error {
23
- background: snow;
24
- color: $fs-logo-magenta-color;
25
- border: 1px solid $fs-logo-magenta-color;
26
- @include box-shadow(0 1px 1px 0 rgba(0,0,0,.1));
27
- text-align: center;
28
- padding: 5px;
29
- margin-bottom: 10px;
30
- }
31
-
32
- p
33
- {
34
- margin: 0;
35
- padding: 0;
36
- font-size: 1.2em;
37
- }
38
- }
39
-
40
- .fs-license-key-container {
41
- position: relative;
42
- width: 280px;
43
- margin: 10px auto 0 auto;
44
-
45
- input {
46
- width: 100%;
47
- }
48
-
49
- .dashicons {
50
- position: absolute;
51
- top: 5px;
52
- right: 5px;
53
- }
54
- }
55
-
56
- .fs-actions
57
- {
58
- padding: 10px 20px;
59
- background: #C0C7CA;
60
-
61
- .button
62
- {
63
- padding: 0 10px 1px;
64
- line-height: 35px;
65
- height: 37px;
66
- font-size: 16px;
67
- margin-bottom: 0;
68
-
69
- .dashicons
70
- {
71
- font-size: 37px;
72
- margin-left: -8px;
73
- margin-right: 12px;
74
- }
75
-
76
- &.button-primary
77
- {
78
- padding-right: 15px;
79
- padding-left: 15px;
80
-
81
- &:after
82
- {
83
- content: ' \279C';
84
- }
85
-
86
- &.fs-loading
87
- {
88
- &:after
89
- {
90
- content: '';
91
- }
92
- }
93
- }
94
-
95
- &.button-secondary
96
- {
97
- float: right;
98
- }
99
- }
100
-
101
- // .fs-skip
102
- // {
103
- // line-height: 38px;
104
- // vertical-align: middle;
105
- // text-decoration: none;
106
- // margin-left: 10px;
107
- // }
108
- }
109
-
110
- &.fs-anonymous-disabled
111
- {
112
- .fs-actions
113
- {
114
- .button.button-primary
115
- {
116
- width: 100%;
117
- }
118
- }
119
- }
120
-
121
- .fs-permissions
122
- {
123
- padding: 10px 20px;
124
- background: #FEFEFE;
125
- // background: #F1F1F1;
126
- @include transition(background 0.5s ease);
127
-
128
- .fs-license-sync-disclaimer {
129
- text-align: center;
130
- margin-top: 0;
131
- }
132
-
133
- .fs-trigger
134
- {
135
- font-size: 0.9em;
136
- text-decoration: none;
137
- text-align: center;
138
- display: block;
139
- }
140
-
141
- ul
142
- {
143
- height: 0;
144
- overflow: hidden;
145
- margin: 0;
146
-
147
- li
148
- {
149
- margin-bottom: 12px;
150
-
151
- &:last-child
152
- {
153
- margin-bottom: 0;
154
- }
155
-
156
- i.dashicons
157
- {
158
- float: left;
159
- font-size: 40px;
160
- width: 40px;
161
- height: 40px;
162
- }
163
-
164
- div
165
- {
166
- margin-left: 55px;
167
-
168
- span
169
- {
170
- font-weight: bold;
171
- text-transform: uppercase;
172
- color: #23282d;
173
- }
174
-
175
- p
176
- {
177
- margin: 2px 0 0 0;
178
- }
179
- }
180
- }
181
- }
182
-
183
- &.fs-open
184
- {
185
- background: #fff;
186
-
187
- ul
188
- {
189
- height: auto;
190
- margin: 20px 20px 10px 20px;
191
- }
192
- }
193
-
194
- @media screen and (max-width: ($form_width - 1)) {
195
- background: #fff;
196
-
197
- .fs-trigger
198
- {
199
- display: none;
200
- }
201
-
202
- ul
203
- {
204
- height: auto;
205
- margin: 20px;
206
- }
207
- }
208
- }
209
-
210
- .fs-freemium-licensing {
211
- padding: 8px;
212
- // background: #0085BA;
213
- background: #777;
214
- color: #fff;
215
-
216
- p {
217
- text-align: center;
218
- display: block;
219
- margin: 0;
220
- padding: 0;
221
- }
222
-
223
- a {
224
- color: #C2EEFF;
225
- text-decoration: underline;
226
- }
227
- }
228
-
229
- $icon_size: 80px;
230
- $wp_logo_padding: $icon_size / 10;
231
- $icons_top: 10px;
232
-
233
- .fs-visual
234
- {
235
- padding: 12px;
236
- line-height: 0;
237
- background: #fafafa;
238
- height: $icon_size;
239
- position: relative;
240
-
241
- .fs-site-icon
242
- {
243
- position: absolute;
244
- left: 20px;
245
- top: $icons_top;
246
- }
247
-
248
- .fs-connect-logo
249
- {
250
- position: absolute;
251
- right: 20px;
252
- top: $icons_top;
253
- }
254
-
255
- .fs-plugin-icon
256
- {
257
- position: absolute;
258
- top: $icons_top;
259
- left: 50%;
260
- margin-left: - ($icon_size / 2);
261
- }
262
-
263
- .fs-plugin-icon,
264
- .fs-site-icon,
265
- img,
266
- object
267
- {
268
- width: $icon_size;
269
- height: $icon_size;
270
- }
271
-
272
- .dashicons-wordpress
273
- {
274
- font-size: $icon_size - ($wp_logo_padding * 2);
275
- background: $wordpress_color;
276
- color: #fff;
277
- width: $icon_size - ($wp_logo_padding * 2);
278
- height: $icon_size - ($wp_logo_padding * 2);
279
- padding: $wp_logo_padding;
280
- }
281
-
282
- .dashicons-plus
283
- {
284
- position: absolute;
285
- top: 50%;
286
- font-size: 30px;
287
- margin-top: -10px;
288
- color: #bbb;
289
-
290
- &.fs-first
291
- {
292
- left: 28%;
293
- }
294
- &.fs-second
295
- {
296
- left: 65%;
297
- }
298
- }
299
-
300
- .fs-plugin-icon,
301
- .fs-connect-logo,
302
- .fs-site-icon
303
- {
304
- border: 1px solid #ccc;
305
- padding: 1px;
306
- background: #fff;
307
- }
308
- }
309
-
310
- .fs-terms
311
- {
312
- text-align: center;
313
- font-size: 0.85em;
314
- padding: 5px;
315
- background: rgba(0, 0, 0, 0.05);
316
-
317
- &, a
318
- {
319
- color: #999;
320
- }
321
-
322
- a
323
- {
324
- text-decoration: none;
325
- }
326
- }
327
- }
328
-
329
- .rtl
330
- {
331
- #fs_connect
332
- {
333
- .fs-actions
334
- {
335
- padding: 10px 20px;
336
- background: #C0C7CA;
337
-
338
- .button
339
- {
340
- .dashicons
341
- {
342
- font-size: 37px;
343
- margin-left: -8px;
344
- margin-right: 12px;
345
- }
346
-
347
- &.button-primary
348
- {
349
- &:after
350
- {
351
- content: ' \000bb';
352
- }
353
-
354
- &.fs-loading
355
- {
356
- &:after
357
- {
358
- content: '';
359
- }
360
- }
361
- }
362
-
363
- &.button-secondary
364
- {
365
- float: left;
366
- }
367
- }
368
- }
369
-
370
- .fs-permissions
371
- {
372
- ul
373
- {
374
- li
375
- {
376
- div
377
- {
378
- margin-right: 55px;
379
- margin-left: 0;
380
- }
381
-
382
- i.dashicons
383
- {
384
- float: right;
385
- }
386
-
387
- }
388
- }
389
- }
390
-
391
- .fs-visual
392
- {
393
- .fs-site-icon
394
- {
395
- right: 20px;
396
- left: auto;
397
- }
398
-
399
- .fs-connect-logo
400
- {
401
- right: auto;
402
- left: 20px;
403
- }
404
- }
405
- }
406
- }
407
-
408
- #fs_theme_connect_wrapper {
409
- position: fixed;
410
- top: 0;
411
- height: 100%;
412
- width: 100%;
413
- z-index: 99990;
414
- background: rgba(0, 0, 0, 0.75);
415
- text-align: center;
416
- overflow-y: auto;
417
-
418
- &:before {
419
- content: "";
420
- display: inline-block;
421
- vertical-align: middle;
422
- height: 100%;
423
- }
424
-
425
- > button.close {
426
- color: white;
427
- cursor: pointer;
428
- height: 40px;
429
- width: 40px;
430
- position: absolute;
431
- right: 0;
432
- border: 0;
433
- background-color: transparent;
434
- top: 32px;
435
- }
436
-
437
- #fs_connect {
438
- top: 0;
439
- text-align: left;
440
- display: inline-block;
441
- vertical-align: middle;
442
- margin-top: 52px;
443
- margin-bottom: 20px;
444
-
445
- .fs-terms
446
- {
447
- background: rgba(140, 140, 140, 0.64);
448
-
449
- &, a
450
- {
451
- color: #c5c5c5;
452
- }
453
- }
454
- }
455
- }
456
-
457
- .wp-pointer-content
458
- {
459
- #fs_connect
460
- {
461
- margin: 0;
462
- @include box-shadow(none);
463
- }
464
- }
465
-
466
- .fs-opt-in-pointer
467
- {
468
- .wp-pointer-content
469
- {
470
- padding: 0;
471
- }
472
-
473
- &.wp-pointer-top
474
- {
475
- .wp-pointer-arrow
476
- {
477
- border-bottom-color: #dfdfdf;
478
- }
479
- .wp-pointer-arrow-inner
480
- {
481
- border-bottom-color: #fafafa;
482
- }
483
- }
484
-
485
- &.wp-pointer-bottom
486
- {
487
- .wp-pointer-arrow
488
- {
489
- border-top-color: #dfdfdf;
490
- }
491
- .wp-pointer-arrow-inner
492
- {
493
- border-top-color: #fafafa;
494
- }
495
- }
496
-
497
- &.wp-pointer-left
498
- {
499
- .wp-pointer-arrow
500
- {
501
- border-right-color: #dfdfdf;
502
- }
503
- .wp-pointer-arrow-inner
504
- {
505
- border-right-color: #fafafa;
506
- }
507
- }
508
-
509
- &.wp-pointer-right
510
- {
511
- .wp-pointer-arrow
512
- {
513
- border-left-color: #dfdfdf;
514
- }
515
- .wp-pointer-arrow-inner
516
- {
517
- border-left-color: #fafafa;
518
- }
519
- }
520
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
freemius/assets/scss/admin/debug.scss DELETED
@@ -1,135 +0,0 @@
1
- @import "../start";
2
-
3
- .switch
4
- {
5
- position: relative;
6
- display: inline-block;
7
- font-size: 1.6em;
8
- font-weight: bold;
9
- color: #ccc;
10
- text-shadow: 0px 1px 1px rgba(255, 255, 255, 0.8);
11
- height: 18px;
12
- padding: 6px 6px 5px 6px;
13
- border: 1px solid #ccc;
14
- border: 1px solid rgba(0, 0, 0, 0.2);
15
- border-radius: 4px;
16
- background: #ececec;
17
- box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.1), inset 0px 1px 3px 0px rgba(0, 0, 0, 0.1);
18
- cursor: pointer;
19
-
20
- span
21
- {
22
- display: inline-block; width: 35px;
23
- text-transform: uppercase;
24
-
25
- &.on
26
- {
27
- color: $button-primary-bkg;
28
- }
29
- }
30
-
31
- .toggle
32
- {
33
- position: absolute;
34
- top: 1px;
35
- width: 37px;
36
- height: 25px;
37
- border: 1px solid #ccc;
38
- border: 1px solid rgba(0, 0, 0, 0.3);
39
- border-radius: 4px;
40
- background: #fff;
41
- background: -moz-linear-gradient(top, #ececec 0%, #fff 100%);
42
- background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #ececec), color-stop(100%, #fff));
43
- background: -webkit-linear-gradient(top, #ececec 0%, #fff 100%);
44
- background: -o-linear-gradient(top, #ececec 0%, #fff 100%);
45
- background: -ms-linear-gradient(top, #ececec 0%, #fff 100%);
46
- background: linear-gradient(top, #ececec 0%, #fff 100%);
47
- box-shadow: inset 0px 1px 0px 0px rgba(255, 255, 255, 0.5);
48
- z-index: 999;
49
- @include transition(all 0.15s ease-in-out);
50
- }
51
-
52
- &.on .toggle
53
- {
54
- left: 2%;
55
- }
56
- &.off .toggle
57
- {
58
- left: 54%;
59
- }
60
-
61
- /* Round switch */
62
- &.round
63
- {
64
- padding: 0px 20px;
65
- border-radius: 40px;
66
-
67
- .toggle
68
- {
69
- border-radius: 40px;
70
- width: 14px;
71
- height: 14px;
72
- }
73
-
74
- &.on .toggle
75
- {
76
- left: 3%;
77
- background: $button-primary-bkg;
78
- }
79
- &.off .toggle
80
- {
81
- left: 58%;
82
- }
83
- }
84
- }
85
-
86
- .switch-label
87
- {
88
- font-size: 20px;
89
- line-height: 31px;
90
- margin: 0 5px;
91
- }
92
-
93
- #fs_log_book {
94
- table {
95
- font-family: Consolas,Monaco,monospace;
96
- font-size: 12px;
97
-
98
- th {
99
- color: #ccc;
100
- }
101
-
102
- tr {
103
- background: #232525;
104
-
105
- &.alternate {
106
- background: #2b2b2b;
107
- }
108
-
109
- td {
110
- &.fs-col--logger {
111
- color: #5a7435;
112
- }
113
- &.fs-col--type {
114
- color: #ffc861;
115
- }
116
- &.fs-col--function {
117
- color: #a7b7b1;
118
- font-weight: bold;
119
- }
120
- &.fs-col--message {
121
- &, a
122
- {
123
- color: #9a73ac !important;
124
- }
125
- }
126
- &.fs-col--file {
127
- color: #d07922;
128
- }
129
- &.fs-col--timestamp {
130
- color: #6596be;
131
- }
132
- }
133
- }
134
- }
135
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
freemius/assets/scss/admin/dialog-boxes.scss DELETED
@@ -1,7 +0,0 @@
1
- @import "../start";
2
- @import "modal-common";
3
- @import "deactivation-feedback";
4
- @import "license-activation";
5
- @import "license-key-resend";
6
- @import "ajax-loader";
7
- @import "auto-install";
 
 
 
 
 
 
 
freemius/assets/scss/admin/index.php DELETED
@@ -1,3 +0,0 @@
1
- <?php
2
- // Silence is golden.
3
- // Hide file structure from users on unprotected servers.
 
 
 
freemius/assets/scss/customizer.scss DELETED
@@ -1,125 +0,0 @@
1
- @import "start";
2
-
3
- #fs_customizer_upsell {
4
- .fs-customizer-plan {
5
- padding: 10px 20px 20px 20px;
6
- border-radius: 3px;
7
- background: #fff;
8
-
9
- h2 {
10
- position: relative;
11
- margin: 0;
12
- line-height: 2em;
13
- text-transform: uppercase;
14
-
15
- .button-link {
16
- top: -2px;
17
- }
18
- }
19
- }
20
-
21
- .fs-feature {
22
- position: relative;
23
- }
24
-
25
- .dashicons-yes {
26
- color: #0085ba;
27
- font-size: 2em;
28
- vertical-align: bottom;
29
- margin-left: -7px;
30
- margin-right: 10px;
31
-
32
- .rtl & {
33
- margin-left: 10px;
34
- margin-right: -7px;
35
- }
36
- }
37
-
38
- .dashicons-editor-help
39
- {
40
- color: #bbb;
41
- cursor: help;
42
-
43
- $tooltip-color: #000;
44
-
45
- .fs-feature-desc {
46
- opacity: 0;
47
- visibility: hidden;
48
- @include transition(opacity 0.3s ease-in-out);
49
-
50
- position: absolute;
51
- background: $tooltip-color;
52
- color: #fff;
53
- font-family: 'arial', serif;
54
- font-size: 12px;
55
- padding: 10px;
56
- z-index: 999999;
57
- bottom: 100%;
58
- margin-bottom: 5px;
59
- left: 0;
60
- right: 0;
61
- @include border-radius(5px);
62
- @include box-shadow(1px 1px 1px rgba(0,0,0,0.2));
63
- line-height: 1.3em;
64
- font-weight: bold;
65
- text-align: left;
66
-
67
- .rtl &
68
- {
69
- text-align: right;
70
- }
71
-
72
- &::after {
73
- content: ' ';
74
- display: block;
75
- width: 0;
76
- height: 0;
77
- border-style: solid;
78
- border-width: 5px 5px 0 5px;
79
- border-color: $tooltip-color transparent transparent transparent;
80
- position: absolute;
81
- top: 100%;
82
- left: 21px;
83
-
84
- .rtl & {
85
- right: 21px;
86
- left: auto;
87
- }
88
- }
89
- }
90
-
91
- &:hover {
92
- .fs-feature-desc {
93
- visibility: visible;
94
- opacity: 1;
95
- }
96
- }
97
- }
98
-
99
- .button-primary {
100
- display: block;
101
- text-align: center;
102
- margin-top: 10px;
103
- }
104
- }
105
-
106
- #fs_customizer_support
107
- {
108
- display: block !important;
109
-
110
- .button {
111
- float: right;
112
- }
113
-
114
- .button-group {
115
- width: 100%;
116
- display: block;
117
- margin-top: 10px;
118
-
119
- .button {
120
- float: none;
121
- width: 50%;
122
- text-align: center;
123
- }
124
- }
125
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
freemius/assets/scss/index.php DELETED
@@ -1,3 +0,0 @@
1
- <?php
2
- // Silence is golden.
3
- // Hide file structure from users on unprotected servers.
 
 
 
freemius/config.php DELETED
@@ -1,331 +0,0 @@
1
- <?php
2
- /**
3
- * @package Freemius
4
- * @copyright Copyright (c) 2015, Freemius, Inc.
5
- * @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3
6
- * @since 1.0.4
7
- */
8
-
9
- if ( ! defined( 'ABSPATH' ) ) {
10
- exit;
11
- }
12
-
13
- if ( ! defined( 'WP_FS__SLUG' ) ) {
14
- define( 'WP_FS__SLUG', 'freemius' );
15
- }
16
- if ( ! defined( 'WP_FS__DEV_MODE' ) ) {
17
- define( 'WP_FS__DEV_MODE', false );
18
- }
19
-
20
- #--------------------------------------------------------------------------------
21
- #region API Connectivity Issues Simulation
22
- #--------------------------------------------------------------------------------
23
-
24
- if ( ! defined( 'WP_FS__SIMULATE_NO_API_CONNECTIVITY' ) ) {
25
- define( 'WP_FS__SIMULATE_NO_API_CONNECTIVITY', false );
26
- }
27
- if ( ! defined( 'WP_FS__SIMULATE_NO_CURL' ) ) {
28
- define( 'WP_FS__SIMULATE_NO_CURL', false );
29
- }
30
- if ( ! defined( 'WP_FS__SIMULATE_NO_API_CONNECTIVITY_CLOUDFLARE' ) ) {
31
- define( 'WP_FS__SIMULATE_NO_API_CONNECTIVITY_CLOUDFLARE', false );
32
- }
33
- if ( ! defined( 'WP_FS__SIMULATE_NO_API_CONNECTIVITY_SQUID_ACL' ) ) {
34
- define( 'WP_FS__SIMULATE_NO_API_CONNECTIVITY_SQUID_ACL', false );
35
- }
36
- if ( WP_FS__SIMULATE_NO_CURL ) {
37
- define( 'FS_SDK__SIMULATE_NO_CURL', true );
38
- }
39
- if ( WP_FS__SIMULATE_NO_API_CONNECTIVITY_CLOUDFLARE ) {
40
- define( 'FS_SDK__SIMULATE_NO_API_CONNECTIVITY_CLOUDFLARE', true );
41
- }
42
- if ( WP_FS__SIMULATE_NO_API_CONNECTIVITY_SQUID_ACL ) {
43
- define( 'FS_SDK__SIMULATE_NO_API_CONNECTIVITY_SQUID_ACL', true );
44
- }
45
-
46
- #endregion
47
-
48
- if ( ! defined( 'WP_FS__SIMULATE_FREEMIUS_OFF' ) ) {
49
- define( 'WP_FS__SIMULATE_FREEMIUS_OFF', false );
50
- }
51
-
52
- if ( ! defined( 'WP_FS__PING_API_ON_IP_OR_HOST_CHANGES' ) ) {
53
- /**
54
- * @since 1.1.7.3
55
- * @author Vova Feldman (@svovaf)
56
- *
57
- * I'm not sure if shared servers periodically change IP, or the subdomain of the
58
- * admin dashboard. Also, I've seen sites that have strange loop of switching
59
- * between domains on a daily basis. Therefore, to eliminate the risk of
60
- * multiple unwanted connectivity test pings, temporary ignore domain or
61
- * server IP changes.
62
- */
63
- define( 'WP_FS__PING_API_ON_IP_OR_HOST_CHANGES', false );
64
- }
65
-
66
- /**
67
- * If your dev environment supports custom public network IP setup
68
- * like VVV, please update WP_FS__LOCALHOST_IP with your public IP
69
- * and uncomment it during dev.
70
- */
71
- if ( ! defined( 'WP_FS__LOCALHOST_IP' ) ) {
72
- // VVV default public network IP.
73
- define( 'WP_FS__VVV_DEFAULT_PUBLIC_IP', '192.168.50.4' );
74
-
75
- // define( 'WP_FS__LOCALHOST_IP', WP_FS__VVV_DEFAULT_PUBLIC_IP );
76
- }
77
-
78
- /**
79
- * If true and running with secret key, the opt-in process
80
- * will skip the email activation process which is invoked
81
- * when the email of the context user already exist in Freemius
82
- * database (as a security precaution, to prevent sharing user
83
- * secret with unauthorized entity).
84
- *
85
- * IMPORTANT:
86
- * AS A SECURITY PRECAUTION, WE VALIDATE THE TIMESTAMP OF THE OPT-IN REQUEST.
87
- * THEREFORE, MAKE SURE THAT WHEN USING THIS PARAMETER,YOUR TESTING ENVIRONMENT'S
88
- * CLOCK IS SYNCED.
89
- */
90
- if ( ! defined( 'WP_FS__SKIP_EMAIL_ACTIVATION' ) ) {
91
- define( 'WP_FS__SKIP_EMAIL_ACTIVATION', false );
92
- }
93
-
94
-
95
- #--------------------------------------------------------------------------------
96
- #region Directories
97
- #--------------------------------------------------------------------------------
98
-
99
- if ( ! defined( 'WP_FS__DIR' ) ) {
100
- define( 'WP_FS__DIR', dirname( __FILE__ ) );
101
- }
102
- if ( ! defined( 'WP_FS__DIR_INCLUDES' ) ) {
103
- define( 'WP_FS__DIR_INCLUDES', WP_FS__DIR . '/includes' );
104
- }
105
- if ( ! defined( 'WP_FS__DIR_TEMPLATES' ) ) {
106
- define( 'WP_FS__DIR_TEMPLATES', WP_FS__DIR . '/templates' );
107
- }
108
- if ( ! defined( 'WP_FS__DIR_ASSETS' ) ) {
109
- define( 'WP_FS__DIR_ASSETS', WP_FS__DIR . '/assets' );
110
- }
111
- if ( ! defined( 'WP_FS__DIR_CSS' ) ) {
112
- define( 'WP_FS__DIR_CSS', WP_FS__DIR_ASSETS . '/css' );
113
- }
114
- if ( ! defined( 'WP_FS__DIR_JS' ) ) {
115
- define( 'WP_FS__DIR_JS', WP_FS__DIR_ASSETS . '/js' );
116
- }
117
- if ( ! defined( 'WP_FS__DIR_IMG' ) ) {
118
- define( 'WP_FS__DIR_IMG', WP_FS__DIR_ASSETS . '/img' );
119
- }
120
- if ( ! defined( 'WP_FS__DIR_SDK' ) ) {
121
- define( 'WP_FS__DIR_SDK', WP_FS__DIR_INCLUDES . '/sdk' );
122
- }
123
-
124
- #endregion
125
-
126
- /**
127
- * Domain / URL / Address
128
- */
129
- define( 'WP_FS__ROOT_DOMAIN_PRODUCTION', 'freemius.com' );
130
- define( 'WP_FS__DOMAIN_PRODUCTION', 'wp.freemius.com' );
131
- define( 'WP_FS__ADDRESS_PRODUCTION', 'https://' . WP_FS__DOMAIN_PRODUCTION );
132
-
133
- if ( ! defined( 'WP_FS__DOMAIN_LOCALHOST' ) ) {
134
- define( 'WP_FS__DOMAIN_LOCALHOST', 'wp.freemius' );
135
- }
136
- if ( ! defined( 'WP_FS__ADDRESS_LOCALHOST' ) ) {
137
- define( 'WP_FS__ADDRESS_LOCALHOST', 'http://' . WP_FS__DOMAIN_LOCALHOST . ':8080' );
138
- }
139
-
140
- if ( ! defined( 'WP_FS__TESTING_DOMAIN' ) ) {
141
- define( 'WP_FS__TESTING_DOMAIN', 'fswp' );
142
- }
143
-
144
- #--------------------------------------------------------------------------------
145
- #region HTTP
146
- #--------------------------------------------------------------------------------
147
-
148
- if ( ! defined( 'WP_FS__IS_HTTP_REQUEST' ) ) {
149
- define( 'WP_FS__IS_HTTP_REQUEST', isset( $_SERVER['HTTP_HOST'] ) );
150
- }
151
-
152
- if ( ! defined( 'WP_FS__IS_HTTPS' ) ) {
153
- define( 'WP_FS__IS_HTTPS', ( WP_FS__IS_HTTP_REQUEST &&
154
- // Checks if CloudFlare's HTTPS (Flexible SSL support).
155
- isset( $_SERVER['HTTP_X_FORWARDED_PROTO'] ) &&
156
- 'https' === strtolower( $_SERVER['HTTP_X_FORWARDED_PROTO'] )
157
- ) ||
158
- // Check if HTTPS request.
159
- ( isset( $_SERVER['HTTPS'] ) && 'on' == $_SERVER['HTTPS'] ) ||
160
- ( isset( $_SERVER['SERVER_PORT'] ) && 443 == $_SERVER['SERVER_PORT'] )
161
- );
162
- }
163
-
164
- if ( ! defined( 'WP_FS__IS_POST_REQUEST' ) ) {
165
- define( 'WP_FS__IS_POST_REQUEST', ( WP_FS__IS_HTTP_REQUEST &&
166
- strtoupper( $_SERVER['REQUEST_METHOD'] ) == 'POST' ) );
167
- }
168
-
169
- if ( ! defined( 'WP_FS__REMOTE_ADDR' ) ) {
170
- define( 'WP_FS__REMOTE_ADDR', fs_get_ip() );
171
- }
172
-
173
- if ( ! defined( 'WP_FS__IS_LOCALHOST' ) ) {
174
- if ( defined( 'WP_FS__LOCALHOST_IP' ) ) {
175
- define( 'WP_FS__IS_LOCALHOST', ( WP_FS__LOCALHOST_IP === WP_FS__REMOTE_ADDR ) );
176
- } else {
177
- define( 'WP_FS__IS_LOCALHOST', WP_FS__IS_HTTP_REQUEST &&
178
- is_string( WP_FS__REMOTE_ADDR ) &&
179
- ( substr( WP_FS__REMOTE_ADDR, 0, 4 ) === '127.' ||
180
- WP_FS__REMOTE_ADDR === '::1' )
181
- );
182
- }
183
- }
184
-
185
- if ( ! defined( 'WP_FS__IS_LOCALHOST_FOR_SERVER' ) ) {
186
- define( 'WP_FS__IS_LOCALHOST_FOR_SERVER', ( ! WP_FS__IS_HTTP_REQUEST ||
187
- false !== strpos( $_SERVER['HTTP_HOST'], 'localhost' ) ) );
188
- }
189
-
190
- #endregion
191
-
192
- if ( ! defined( 'WP_FS__IS_PRODUCTION_MODE' ) ) {
193
- // By default, run with Freemius production servers.
194
- define( 'WP_FS__IS_PRODUCTION_MODE', true );
195
- }
196
-
197
- if ( ! defined( 'WP_FS__ADDRESS' ) ) {
198
- define( 'WP_FS__ADDRESS', ( WP_FS__IS_PRODUCTION_MODE ? WP_FS__ADDRESS_PRODUCTION : WP_FS__ADDRESS_LOCALHOST ) );
199
- }
200
-
201
-
202
- #--------------------------------------------------------------------------------
203
- #region API
204
- #--------------------------------------------------------------------------------
205
-
206
- if ( ! defined( 'WP_FS__API_ADDRESS_LOCALHOST' ) ) {
207
- define( 'WP_FS__API_ADDRESS_LOCALHOST', 'http://api.freemius:8080' );
208
- }
209
- if ( ! defined( 'WP_FS__API_SANDBOX_ADDRESS_LOCALHOST' ) ) {
210
- define( 'WP_FS__API_SANDBOX_ADDRESS_LOCALHOST', 'http://sandbox-api.freemius:8080' );
211
- }
212
-
213
- // Set API address for local testing.
214
- if ( ! WP_FS__IS_PRODUCTION_MODE ) {
215
- if ( ! defined( 'FS_API__ADDRESS' ) ) {
216
- define( 'FS_API__ADDRESS', WP_FS__API_ADDRESS_LOCALHOST );
217
- }
218
- if ( ! defined( 'FS_API__SANDBOX_ADDRESS' ) ) {
219
- define( 'FS_API__SANDBOX_ADDRESS', WP_FS__API_SANDBOX_ADDRESS_LOCALHOST );
220
- }
221
- }
222
-
223
- #endregion
224
-
225
- #--------------------------------------------------------------------------------
226
- #region Checkout
227
- #--------------------------------------------------------------------------------
228
-
229
- if ( ! defined( 'FS_CHECKOUT__ADDRESS_PRODUCTION' ) ) {
230
- define( 'FS_CHECKOUT__ADDRESS_PRODUCTION', 'https://checkout.freemius.com' );
231
- }
232
-
233
- if ( ! defined( 'FS_CHECKOUT__ADDRESS_LOCALHOST' ) ) {
234
- define( 'FS_CHECKOUT__ADDRESS_LOCALHOST', 'http://checkout.freemius-local.com:8080' );
235
- }
236
-
237
- if ( ! defined( 'FS_CHECKOUT__ADDRESS' ) ) {
238
- define( 'FS_CHECKOUT__ADDRESS', ( WP_FS__IS_PRODUCTION_MODE ? FS_CHECKOUT__ADDRESS_PRODUCTION : FS_CHECKOUT__ADDRESS_LOCALHOST ) );
239
- }
240
-
241
- #endregion
242
-
243
- define( 'WP_FS___OPTION_PREFIX', 'fs' . ( WP_FS__IS_PRODUCTION_MODE ? '' : '_dbg' ) . '_' );
244
-
245
- if ( ! defined( 'WP_FS__ACCOUNTS_OPTION_NAME' ) ) {
246
- define( 'WP_FS__ACCOUNTS_OPTION_NAME', WP_FS___OPTION_PREFIX . 'accounts' );
247
- }
248
- if ( ! defined( 'WP_FS__API_CACHE_OPTION_NAME' ) ) {
249
- define( 'WP_FS__API_CACHE_OPTION_NAME', WP_FS___OPTION_PREFIX . 'api_cache' );
250
- }
251
- define( 'WP_FS__OPTIONS_OPTION_NAME', WP_FS___OPTION_PREFIX . 'options' );
252
-
253
- /**
254
- * Module types
255
- *
256
- * @since 1.2.2
257
- */
258
- define( 'WP_FS__MODULE_TYPE_PLUGIN', 'plugin' );
259
- define( 'WP_FS__MODULE_TYPE_THEME', 'theme' );
260
-
261
- /**
262
- * Billing Frequencies
263
- */
264
- define( 'WP_FS__PERIOD_ANNUALLY', 'annual' );
265
- define( 'WP_FS__PERIOD_MONTHLY', 'monthly' );
266
- define( 'WP_FS__PERIOD_LIFETIME', 'lifetime' );
267
-
268
- /**
269
- * Plans
270
- */
271
- define( 'WP_FS__PLAN_DEFAULT_PAID', false );
272
- define( 'WP_FS__PLAN_FREE', 'free' );
273
- define( 'WP_FS__PLAN_TRIAL', 'trial' );
274
-
275
- /**
276
- * Times in seconds
277
- */
278
- if ( ! defined( 'WP_FS__TIME_5_MIN_IN_SEC' ) ) {
279
- define( 'WP_FS__TIME_5_MIN_IN_SEC', 300 );
280
- }
281
- if ( ! defined( 'WP_FS__TIME_10_MIN_IN_SEC' ) ) {
282
- define( 'WP_FS__TIME_10_MIN_IN_SEC', 600 );
283
- }
284
- // define( 'WP_FS__TIME_15_MIN_IN_SEC', 900 );
285
- if ( ! defined( 'WP_FS__TIME_24_HOURS_IN_SEC' ) ) {
286
- define( 'WP_FS__TIME_24_HOURS_IN_SEC', 86400 );
287
- }
288
- if ( ! defined( 'WP_FS__TIME_WEEK_IN_SEC' ) ) {
289
- define( 'WP_FS__TIME_WEEK_IN_SEC', 7 * WP_FS__TIME_24_HOURS_IN_SEC );
290
- }
291
-
292
- #--------------------------------------------------------------------------------
293
- #region Debugging
294
- #--------------------------------------------------------------------------------
295
-
296
- if ( ! defined( 'WP_FS__DEBUG_SDK' ) ) {
297
- $debug_mode = get_option( 'fs_debug_mode', null );
298
-
299
- if ( $debug_mode === null ) {
300
- $debug_mode = false;
301
- add_option( 'fs_debug_mode', $debug_mode );
302
- }
303
-
304
- define( 'WP_FS__DEBUG_SDK', is_numeric( $debug_mode ) ? ( 0 < $debug_mode ) : WP_FS__DEV_MODE );
305
- }
306
-
307
- if ( ! defined( 'WP_FS__ECHO_DEBUG_SDK' ) ) {
308
- define( 'WP_FS__ECHO_DEBUG_SDK', WP_FS__DEV_MODE && ! empty( $_GET['fs_dbg_echo'] ) );
309
- }
310
- if ( ! defined( 'WP_FS__LOG_DATETIME_FORMAT' ) ) {
311
- define( 'WP_FS__LOG_DATETIME_FORMAT', 'Y-m-d H:i:s' );
312
- }
313
- if ( ! defined( 'FS_API__LOGGER_ON' ) ) {
314
- define( 'FS_API__LOGGER_ON', WP_FS__DEBUG_SDK );
315
- }
316
-
317
- if ( WP_FS__ECHO_DEBUG_SDK ) {
318
- error_reporting( E_ALL );
319
- }
320
-
321
- #endregion
322
-
323
- if ( ! defined( 'WP_FS__SCRIPT_START_TIME' ) ) {
324
- define( 'WP_FS__SCRIPT_START_TIME', time() );
325
- }
326
- if ( ! defined( 'WP_FS__DEFAULT_PRIORITY' ) ) {
327
- define( 'WP_FS__DEFAULT_PRIORITY', 10 );
328
- }
329
- if ( ! defined( 'WP_FS__LOWEST_PRIORITY' ) ) {
330
- define( 'WP_FS__LOWEST_PRIORITY', 999999999 );
331
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
freemius/includes/class-freemius-abstract.php DELETED
@@ -1,597 +0,0 @@
1
- <?php
2
- /**
3
- * @package Freemius
4
- * @copyright Copyright (c) 2015, Freemius, Inc.
5
- * @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3
6
- * @since 1.0.7
7
- */
8
-
9
- if ( ! defined( 'ABSPATH' ) ) {
10
- exit;
11
- }
12
-
13
-
14
- /**
15
- * - Each instance of Freemius class represents a single plugin
16
- * install by a single user (the installer of the plugin).
17
- *
18
- * - Each website can only have one install of the same plugin.
19
- *
20
- * - Install entity is only created after a user connects his account with Freemius.
21
- *
22
- * Class Freemius_Abstract
23
- */
24
- abstract class Freemius_Abstract {
25
-
26
- #----------------------------------------------------------------------------------
27
- #region Identity
28
- #----------------------------------------------------------------------------------
29
-
30
- /**
31
- * Check if user has connected his account (opted-in).
32
- *
33
- * Note:
34
- * If the user opted-in and opted-out on a later stage,
35
- * this will still return true. If you want to check if the
36
- * user is currently opted-in, use:
37
- * `$fs->is_registered() && $fs->is_tracking_allowed()`
38
- *
39
- * @since 1.0.1
40
- * @return bool
41
- */
42
- abstract function is_registered();
43
-
44
- /**
45
- * Check if the user skipped connecting the account with Freemius.
46
- *
47
- * @since 1.0.7
48
- *
49
- * @return bool
50
- */
51
- abstract function is_anonymous();
52
-
53
- /**
54
- * Check if the user currently in activation mode.
55
- *
56
- * @since 1.0.7
57
- *
58
- * @return bool
59
- */
60
- abstract function is_activation_mode();
61
-
62
- #endregion
63
-
64
- #----------------------------------------------------------------------------------
65
- #region Usage Tracking
66
- #----------------------------------------------------------------------------------
67
-
68
- /**
69
- * Returns TRUE if the user opted-in and didn't disconnect (opt-out).
70
- *
71
- * @author Leo Fajardo (@leorw)
72
- * @since 1.2.1.5
73
- *
74
- * @return bool
75
- */
76
- abstract function is_tracking_allowed();
77
-
78
- /**
79
- * Returns TRUE if the user never opted-in or manually opted-out.
80
- *
81
- * @author Vova Feldman (@svovaf)
82
- * @since 1.2.1.5
83
- *
84
- * @return bool
85
- */
86
- function is_tracking_prohibited() {
87
- return ! $this->is_registered() || ! $this->is_tracking_allowed();
88
- }
89
-
90
- /**
91
- * Opt-out from usage tracking.
92
- *
93
- * Note: This will not delete the account information but will stop all tracking.
94
- *
95
- * Returns:
96
- * 1. FALSE - If the user never opted-in.
97
- * 2. TRUE - If successfully opted-out.
98
- * 3. object - API Result on failure.
99
- *
100
- * @author Leo Fajardo (@leorw)
101
- * @since 1.2.1.5
102
- *
103
- * @return bool|object
104
- */
105
- abstract function stop_tracking();
106
-
107
- /**
108
- * Opt-in back into usage tracking.
109
- *
110
- * Note: This will only work if the user opted-in previously.
111
- *
112
- * Returns:
113
- * 1. FALSE - If the user never opted-in.
114
- * 2. TRUE - If successfully opted-in back to usage tracking.
115
- * 3. object - API result on failure.
116
- *
117
- * @author Leo Fajardo (@leorw)
118
- * @since 1.2.1.5
119
- *
120
- * @return bool|object
121
- */
122
- abstract function allow_tracking();
123
-
124
- #endregion
125
-
126
- #----------------------------------------------------------------------------------
127
- #region Module Type
128
- #----------------------------------------------------------------------------------
129
-
130
- /**
131
- * Checks if the plugin's type is "plugin". The other type is "theme".
132
- *
133
- * @author Leo Fajardo (@leorw)
134
- * @since 1.2.2
135
- *
136
- * @return bool
137
- */
138
- abstract function is_plugin();
139
-
140
- /**
141
- * Checks if the module type is "theme". The other type is "plugin".
142
- *
143
- * @author Leo Fajardo (@leorw)
144
- * @since 1.2.2
145
- *
146
- * @return bool
147
- */
148
- function is_theme() {
149
- return ( ! $this->is_plugin() );
150
- }
151
-
152
- #endregion
153
-
154
- #----------------------------------------------------------------------------------
155
- #region Permissions
156
- #----------------------------------------------------------------------------------
157
-
158
- /**
159
- * Check if plugin must be WordPress.org compliant.
160
- *
161
- * @since 1.0.7
162
- *
163
- * @return bool
164
- */
165
- abstract function is_org_repo_compliant();
166
-
167
- /**
168
- * Check if plugin is allowed to install executable files.
169
- *
170
- * @author Vova Feldman (@svovaf)
171
- * @since 1.0.5
172
- *
173
- * @return bool
174
- */
175
- function is_allowed_to_install() {
176
- return ( $this->is_premium() || ! $this->is_org_repo_compliant() );
177
- }
178
-
179
- #endregion
180
-
181
- /**
182
- * Check if user in trial or in free plan (not paying).
183
- *
184
- * @author Vova Feldman (@svovaf)
185
- * @since 1.0.4
186
- *
187
- * @return bool
188
- */
189
- function is_not_paying() {
190
- return ( $this->is_trial() || $this->is_free_plan() );
191
- }
192
-
193
- /**
194
- * Check if the user has an activated and valid paid license on current plugin's install.
195
- *
196
- * @since 1.0.9
197
- *
198
- * @return bool
199
- */
200
- abstract function is_paying();
201
-
202
- /**
203
- * Check if the user is paying or in trial.
204
- *
205
- * @since 1.0.9
206
- *
207
- * @return bool
208
- */
209
- function is_paying_or_trial() {
210
- return ( $this->is_paying() || $this->is_trial() );
211
- }
212
-
213
- /**
214
- * Check if user in a trial or have feature enabled license.
215
- *
216
- * @author Vova Feldman (@svovaf)
217
- * @since 1.1.7
218
- *
219
- * @return bool
220
- */
221
- abstract function can_use_premium_code();
222
-
223
- #----------------------------------------------------------------------------------
224
- #region Premium Only
225
- #----------------------------------------------------------------------------------
226
-
227
- /**
228
- * All logic wrapped in methods with "__premium_only()" suffix will be only
229
- * included in the premium code.
230
- *
231
- * Example:
232
- * if ( freemius()->is__premium_only() ) {
233
- * ...
234
- * }
235
- */
236
-
237
- /**
238
- * Returns true when running premium plugin code.
239
- *
240
- * @since 1.0.9
241
- *
242
- * @return bool
243
- */
244
- function is__premium_only() {
245
- return $this->is_premium();
246
- }
247
-
248
- /**
249
- * Check if the user has an activated and valid paid license on current plugin's install.
250
- *
251
- * @since 1.0.9
252
- *
253
- * @return bool
254
- *
255
- */
256
- function is_paying__premium_only() {
257
- return ( $this->is__premium_only() && $this->is_paying() );
258
- }
259
-
260
- /**
261
- * All code wrapped in this statement will be only included in the premium code.
262
- *
263
- * @since 1.0.9
264
- *
265
- * @param string $plan Plan name.
266
- * @param bool $exact If true, looks for exact plan. If false, also check "higher" plans.
267
- *
268
- * @return bool
269
- */
270
- function is_plan__premium_only( $plan, $exact = false ) {
271
- return ( $this->is_premium() && $this->is_plan( $plan, $exact ) );
272
- }
273
-
274
- /**
275
- * Check if plan matches active license' plan or active trial license' plan.
276
- *
277
- * All code wrapped in this statement will be only included in the premium code.
278
- *
279
- * @since 1.0.9
280
- *
281
- * @param string $plan Plan name.
282
- * @param bool $exact If true, looks for exact plan. If false, also check "higher" plans.
283
- *
284
- * @return bool
285
- */
286
- function is_plan_or_trial__premium_only( $plan, $exact = false ) {
287
- return ( $this->is_premium() && $this->is_plan_or_trial( $plan, $exact ) );
288
- }
289
-
290
- /**
291
- * Check if the user is paying or in trial.
292
- *
293
- * All code wrapped in this statement will be only included in the premium code.
294
- *
295
- * @since 1.0.9
296
- *
297
- * @return bool
298
- */
299
- function is_paying_or_trial__premium_only() {
300
- return $this->is_premium() && $this->is_paying_or_trial();
301
- }
302
-
303
- /**
304
- * Check if the user has an activated and valid paid license on current plugin's install.
305
- *
306
- * @since 1.0.4
307
- *
308
- * @return bool
309
- *
310
- * @deprecated Method name is confusing since it's not clear from the name the code will be removed.
311
- * @using Alias to is_paying__premium_only()
312
- */
313
- function is_paying__fs__() {
314
- return $this->is_paying__premium_only();
315
- }
316
-
317
- /**
318
- * Check if user in a trial or have feature enabled license.
319
- *
320
- * All code wrapped in this statement will be only included in the premium code.
321
- *
322
- * @author Vova Feldman (@svovaf)
323
- * @since 1.1.9
324
- *
325
- * @return bool
326
- */
327
- function can_use_premium_code__premium_only() {
328
- return $this->is_premium() && $this->can_use_premium_code();
329
- }
330
-
331
- #endregion
332
-
333
- #----------------------------------------------------------------------------------
334
- #region Trial
335
- #----------------------------------------------------------------------------------
336
-
337
- /**
338
- * Check if the user in a trial.
339
- *
340
- * @since 1.0.3
341
- *
342
- * @return bool
343
- */
344
- abstract function is_trial();
345
-
346
- /**
347
- * Check if trial already utilized.
348
- *
349
- * @since 1.0.9
350
- *
351
- * @return bool
352
- */
353
- abstract function is_trial_utilized();
354
-
355
- #endregion
356
-
357
- #----------------------------------------------------------------------------------
358
- #region Plans
359
- #----------------------------------------------------------------------------------
360
-
361
- /**
362
- * Check if plugin using the free plan.
363
- *
364
- * @since 1.0.4
365
- *
366
- * @return bool
367
- */
368
- abstract function is_free_plan();
369
-
370
- /**
371
- * @since 1.0.2
372
- *
373
- * @param string $plan Plan name.
374
- * @param bool $exact If true, looks for exact plan. If false, also check "higher" plans.
375
- *
376
- * @return bool
377
- */
378
- abstract function is_plan( $plan, $exact = false );
379
-
380
- /**
381
- * Check if plan based on trial. If not in trial mode, should return false.
382
- *
383
- * @since 1.0.9
384
- *
385
- * @param string $plan Plan name.
386
- * @param bool $exact If true, looks for exact plan. If false, also check "higher" plans.
387
- *
388
- * @return bool
389
- */
390
- abstract function is_trial_plan( $plan, $exact = false );
391
-
392
- /**
393
- * Check if plan matches active license' plan or active trial license' plan.
394
- *
395
- * @since 1.0.9
396
- *
397
- * @param string $plan Plan name.
398
- * @param bool $exact If true, looks for exact plan. If false, also check "higher" plans.
399
- *
400
- * @return bool
401
- */
402
- function is_plan_or_trial( $plan, $exact = false ) {
403
- return $this->is_plan( $plan, $exact ) ||
404
- $this->is_trial_plan( $plan, $exact );
405
- }
406
-
407
- /**
408
- * Check if plugin has any paid plans.
409
- *
410
- * @author Vova Feldman (@svovaf)
411
- * @since 1.0.7
412
- *
413
- * @return bool
414
- */
415
- abstract function has_paid_plan();
416
-
417
- /**
418
- * Check if plugin has any free plan, or is it premium only.
419
- *
420
- * Note: If no plans configured, assume plugin is free.
421
- *
422
- * @author Vova Feldman (@svovaf)
423
- * @since 1.0.7
424
- *
425
- * @return bool
426
- */
427
- abstract function has_free_plan();
428
-
429
- /**
430
- * Check if plugin is premium only (no free plans).
431
- *
432
- * NOTE: is__premium_only() is very different method, don't get confused.
433
- *
434
- * @author Vova Feldman (@svovaf)
435
- * @since 1.1.9
436
- *
437
- * @return bool
438
- */
439
- abstract function is_only_premium();
440
-
441
- /**
442
- * Check if module has a premium code version.
443
- *
444
- * Serviceware module might be freemium without any
445
- * premium code version, where the paid features
446
- * are all part of the service.
447
- *
448
- * @author Vova Feldman (@svovaf)
449
- * @since 1.2.1.6
450
- *
451
- * @return bool
452
- */
453
- abstract function has_premium_version();
454
-
455
- /**
456
- * Check if module has any release on Freemius,
457
- * or all plugin's code is on WordPress.org (Serviceware).
458
- *
459
- * @return bool
460
- */
461
- function has_release_on_freemius() {
462
- return ! $this->is_org_repo_compliant() ||
463
- $this->has_premium_version();
464
- }
465
-
466
- /**
467
- * Checks if it's a freemium plugin.
468
- *
469
- * @author Vova Feldman (@svovaf)
470
- * @since 1.1.9
471
- *
472
- * @return bool
473
- */
474
- function is_freemium() {
475
- return $this->has_paid_plan() &&
476
- $this->has_free_plan();
477
- }
478
-
479
- /**
480
- * Check if module has only one plan.
481
- *
482
- * @author Vova Feldman (@svovaf)
483
- * @since 1.2.1.7
484
- *
485
- * @return bool
486
- */
487
- abstract function is_single_plan();
488
-
489
- #endregion
490
-
491
- /**
492
- * Check if running payments in sandbox mode.
493
- *
494
- * @since 1.0.4
495
- *
496
- * @return bool
497
- */
498
- abstract function is_payments_sandbox();
499
-
500
- /**
501
- * Check if running test vs. live plugin.
502
- *
503
- * @since 1.0.5
504
- *
505
- * @return bool
506
- */
507
- abstract function is_live();
508
-
509
- /**
510
- * Check if running premium plugin code.
511
- *
512
- * @since 1.0.5
513
- *
514
- * @return bool
515
- */
516
- abstract function is_premium();
517
-
518
- /**
519
- * Get upgrade URL.
520
- *
521
- * @author Vova Feldman (@svovaf)
522
- * @since 1.0.2
523
- *
524
- * @param string $period Billing cycle.
525
- *
526
- * @return string
527
- */
528
- abstract function get_upgrade_url( $period = WP_FS__PERIOD_ANNUALLY );
529
-
530
- /**
531
- * Check if Freemius was first added in a plugin update.
532
- *
533
- * @author Vova Feldman (@svovaf)
534
- * @since 1.1.5
535
- *
536
- * @return bool
537
- */
538
- function is_plugin_update() {
539
- return ! $this->is_plugin_new_install();
540
- }
541
-
542
- /**
543
- * Check if Freemius was part of the plugin when the user installed it first.
544
- *
545
- * @author Vova Feldman (@svovaf)
546
- * @since 1.1.5
547
- *
548
- * @return bool
549
- */
550
- abstract function is_plugin_new_install();
551
-
552
- #----------------------------------------------------------------------------------
553
- #region Marketing
554
- #----------------------------------------------------------------------------------
555
-
556
- /**
557
- * Check if current user purchased any other plugins before.
558
- *
559
- * @author Vova Feldman (@svovaf)
560
- * @since 1.0.9
561
- *
562
- * @return bool
563
- */
564
- abstract function has_purchased_before();
565
-
566
- /**
567
- * Check if current user classified as an agency.
568
- *
569
- * @author Vova Feldman (@svovaf)
570
- * @since 1.0.9
571
- *
572
- * @return bool
573
- */
574
- abstract function is_agency();
575
-
576
- /**
577
- * Check if current user classified as a developer.
578
- *
579
- * @author Vova Feldman (@svovaf)
580
- * @since 1.0.9
581
- *
582
- * @return bool
583
- */
584
- abstract function is_developer();
585
-
586
- /**
587
- * Check if current user classified as a business.
588
- *
589
- * @author Vova Feldman (@svovaf)
590
- * @since 1.0.9
591
- *
592
- * @return bool
593
- */
594
- abstract function is_business();
595
-
596
- #endregion
597
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
freemius/includes/class-freemius.php DELETED
@@ -1,14328 +0,0 @@
1
- <?php
2
- /**
3
- * @package Freemius
4
- * @copyright Copyright (c) 2015, Freemius, Inc.
5
- * @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3
6
- * @since 1.0.3
7
- */
8
- if ( ! defined( 'ABSPATH' ) ) {
9
- exit;
10
- }
11
-
12
- // "final class"
13
- class Freemius extends Freemius_Abstract {
14
- /**
15
- * SDK Version
16
- *
17
- * @var string
18
- */
19
- public $version = WP_FS__SDK_VERSION;
20
-
21
- #region Plugin Info
22
-
23
- /**
24
- * @since 1.0.1
25
- *
26
- * @var string
27
- */
28
- private $_slug;
29
-
30
- /**
31
- * @since 1.0.0
32
- *
33
- * @var string
34
- */
35
- private $_plugin_basename;
36
- /**
37
- * @since 1.0.0
38
- *
39
- * @var string
40
- */
41
- private $_free_plugin_basename;
42
- /**
43
- * @since 1.0.0
44
- *
45
- * @var string
46
- */
47
- private $_plugin_dir_path;
48
- /**
49
- * @since 1.0.0
50
- *
51
- * @var string
52
- */
53
- private $_plugin_dir_name;
54
- /**
55
- * @since 1.0.0
56
- *
57
- * @var string
58
- */
59
- private $_plugin_main_file_path;
60
- /**
61
- * @var string[]
62
- */
63
- private $_plugin_data;
64
- /**
65
- * @since 1.0.9
66
- *
67
- * @var string
68
- */
69
- private $_plugin_name;
70
- /**
71
- * @since 1.2.2
72
- *
73
- * @var string
74
- */
75
- private $_module_type;
76
-
77
- #endregion Plugin Info
78
-
79
- /**
80
- * @since 1.0.9
81
- *
82
- * @var bool If false, don't turn Freemius on.
83
- */
84
- private $_is_on;
85
-
86
- /**
87
- * @since 1.1.3
88
- *
89
- * @var bool If false, don't turn Freemius on.
90
- */
91
- private $_is_anonymous;
92
-
93
- /**
94
- * @since 1.0.9
95
- * @var bool If false, issues with connectivity to Freemius API.
96
- */
97
- private $_has_api_connection;
98
-
99
- /**
100
- * @since 1.0.9
101
- * @var bool Hints the SDK if plugin can support anonymous mode (if skip connect is visible).
102
- */
103
- private $_enable_anonymous;
104
-
105
- /**
106
- * @since 1.1.7.5
107
- * @var bool Hints the SDK if plugin should run in anonymous mode (only adds feedback form).
108
- */
109
- private $_anonymous_mode;
110
-
111
- /**
112
- * @since 1.1.9
113
- * @var bool Hints the SDK if plugin have any free plans.
114
- */
115
- private $_is_premium_only;
116
-
117
- /**
118
- * @since 1.2.1.6
119
- * @var bool Hints the SDK if plugin have premium code version at all.
120
- */
121
- private $_has_premium_version;
122
-
123
- /**
124
- * @since 1.2.1.6
125
- * @var bool Hints the SDK if plugin should ignore pending mode by simulating a skip.
126
- */
127
- private $_ignore_pending_mode;
128
-
129
- /**
130
- * @since 1.0.8
131
- * @var bool Hints the SDK if the plugin has any paid plans.
132
- */
133
- private $_has_paid_plans;
134
-
135
- /**
136
- * @since 1.2.1.5
137
- * @var int Hints the SDK if the plugin offers a trial period. If negative, no trial, if zero - has a trial but
138
- * without a specified period, if positive - the number of trial days.
139
- */
140
- private $_trial_days = - 1;
141
-
142
- /**
143
- * @since 1.2.1.5
144
- * @var bool Hints the SDK if the trial requires a payment method or not.
145
- */
146
- private $_is_trial_require_payment = false;
147
-
148
- /**
149
- * @since 1.0.7
150
- * @var bool Hints the SDK if the plugin is WordPress.org compliant.
151
- */
152
- private $_is_org_compliant;
153
-
154
- /**
155
- * @since 1.0.7
156
- * @var bool Hints the SDK if the plugin is has add-ons.
157
- */
158
- private $_has_addons;
159
-
160
- /**
161
- * @since 1.1.6
162
- * @var string[]bool.
163
- */
164
- private $_permissions;
165
-
166
- /**
167
- * @var FS_Key_Value_Storage
168
- */
169
- private $_storage;
170
-
171
- /**
172
- * @since 1.2.2.7
173
- * @var FS_Cache_Manager
174
- */
175
- private $_cache;
176
-
177
- /**
178
- * @since 1.0.0
179
- *
180
- * @var FS_Logger
181
- */
182
- private $_logger;
183
- /**
184
- * @since 1.0.4
185
- *
186
- * @var FS_Plugin
187
- */
188
- private $_plugin = false;
189
- /**
190
- * @since 1.0.4
191
- *
192
- * @var FS_Plugin|false
193
- */
194
- private $_parent_plugin = false;
195
- /**
196
- * @since 1.1.1
197
- *
198
- * @var Freemius
199
- */
200
- private $_parent = false;
201
- /**
202
- * @since 1.0.1
203
- *
204
- * @var FS_User
205
- */
206
- private $_user = false;
207
- /**
208
- * @since 1.0.1
209
- *
210
- * @var FS_Site
211
- */
212
- private $_site = false;
213
- /**
214
- * @since 1.0.1
215
- *
216
- * @var FS_Plugin_License
217
- */
218
- private $_license;
219
- /**
220
- * @since 1.0.2
221
- *
222
- * @var FS_Plugin_Plan[]
223
- */
224
- private $_plans = false;
225
- /**
226
- * @var FS_Plugin_License[]
227
- * @since 1.0.5
228
- */
229
- private $_licenses = false;
230
-
231
- /**
232
- * @since 1.0.1
233
- *
234
- * @var FS_Admin_Menu_Manager
235
- */
236
- private $_menu;
237
-
238
- /**
239
- * @var FS_Admin_Notice_Manager
240
- */
241
- private $_admin_notices;
242
-
243
- /**
244
- * @since 1.1.6
245
- *
246
- * @var FS_Admin_Notice_Manager
247
- */
248
- private static $_global_admin_notices;
249
-
250
- /**
251
- * @var FS_Logger
252
- * @since 1.0.0
253
- */
254
- private static $_static_logger;
255
-
256
- /**
257
- * @var FS_Option_Manager
258
- * @since 1.0.2
259
- */
260
- private static $_accounts;
261
-
262
- /**
263
- * @since 1.2.2
264
- *
265
- * @var number
266
- */
267
- private $_module_id;
268
-
269
- /**
270
- * @var Freemius[]
271
- */
272
- private static $_instances = array();
273
-
274
- /**
275
- * @author Leo Fajardo (@leorw)
276
- *
277
- * @since 1.2.3
278
- *
279
- * @var FS_Affiliate
280
- */
281
- private $affiliate = null;
282
-
283
- /**
284
- * @author Leo Fajardo (@leorw)
285
- *
286
- * @since 1.2.3
287
- *
288
- * @var FS_AffiliateTerms
289
- */
290
- private $plugin_affiliate_terms = null;
291
-
292
- /**
293
- * @author Leo Fajardo (@leorw)
294
- *
295
- * @since 1.2.3
296
- *
297
- * @var FS_AffiliateTerms
298
- */
299
- private $custom_affiliate_terms = null;
300
-
301
- #region Uninstall Reasons IDs
302
-
303
- const REASON_NO_LONGER_NEEDED = 1;
304
- const REASON_FOUND_A_BETTER_PLUGIN = 2;
305
- const REASON_NEEDED_FOR_A_SHORT_PERIOD = 3;
306
- const REASON_BROKE_MY_SITE = 4;
307
- const REASON_SUDDENLY_STOPPED_WORKING = 5;
308
- const REASON_CANT_PAY_ANYMORE = 6;
309
- const REASON_OTHER = 7;
310
- const REASON_DIDNT_WORK = 8;
311
- const REASON_DONT_LIKE_TO_SHARE_MY_INFORMATION = 9;
312
- const REASON_COULDNT_MAKE_IT_WORK = 10;
313
- const REASON_GREAT_BUT_NEED_SPECIFIC_FEATURE = 11;
314
- const REASON_NOT_WORKING = 12;
315
- const REASON_NOT_WHAT_I_WAS_LOOKING_FOR = 13;
316
- const REASON_DIDNT_WORK_AS_EXPECTED = 14;
317
- const REASON_TEMPORARY_DEACTIVATION = 15;
318
-
319
- #endregion
320
-
321
- /* Ctor
322
- ------------------------------------------------------------------------------------------------------------------*/
323
-
324
- /**
325
- * Main singleton instance.
326
- *
327
- * @author Vova Feldman (@svovaf)
328
- * @since 1.0.0
329
- *
330
- * @param number $module_id
331
- * @param string|bool $slug
332
- * @param bool $is_init Since 1.2.1 Is initiation sequence.
333
- */
334
- private function __construct( $module_id, $slug = false, $is_init = false ) {
335
- if ( $is_init && is_numeric( $module_id ) && is_string( $slug ) ) {
336
- $this->store_id_slug_type_path_map( $module_id, $slug );
337
- }
338
-
339
- $this->_module_id = $module_id;
340
- $this->_slug = $this->get_slug();
341
- $this->_module_type = $this->get_module_type();
342
-
343
- $this->_storage = FS_Key_Value_Storage::instance( $this->_module_type . '_data', $this->_slug );
344
- $this->_cache = FS_Cache_Manager::get_manager( WP_FS___OPTION_PREFIX . "cache_{$module_id}" );
345
-
346
- $this->_logger = FS_Logger::get_logger( WP_FS__SLUG . '_' . $this->get_unique_affix(), WP_FS__DEBUG_SDK, WP_FS__ECHO_DEBUG_SDK );
347
-
348
- $this->_plugin_main_file_path = $this->_find_caller_plugin_file( $is_init );
349
- $this->_plugin_dir_path = plugin_dir_path( $this->_plugin_main_file_path );
350
- $this->_plugin_basename = $this->get_plugin_basename();
351
- $this->_free_plugin_basename = str_replace( '-premium/', '/', $this->_plugin_basename );
352
-
353
- $base_name_split = explode( '/', $this->_plugin_basename );
354
- $this->_plugin_dir_name = $base_name_split[0];
355
-
356
- if ( $this->_logger->is_on() ) {
357
- $this->_logger->info( 'plugin_main_file_path = ' . $this->_plugin_main_file_path );
358
- $this->_logger->info( 'plugin_dir_path = ' . $this->_plugin_dir_path );
359
- $this->_logger->info( 'plugin_basename = ' . $this->_plugin_basename );
360
- $this->_logger->info( 'free_plugin_basename = ' . $this->_free_plugin_basename );
361
- $this->_logger->info( 'plugin_dir_name = ' . $this->_plugin_dir_name );
362
- }
363
-
364
- // Remember link between file to slug.
365
- $this->store_file_slug_map();
366
-
367
- // Store plugin's initial install timestamp.
368
- if ( ! isset( $this->_storage->install_timestamp ) ) {
369
- $this->_storage->install_timestamp = WP_FS__SCRIPT_START_TIME;
370
- }
371
-
372
- if ( ! is_object( $this->_plugin ) ) {
373
- $this->_plugin = FS_Plugin_Manager::instance( $this->_module_id )->get();
374
- }
375
-
376
- $this->_admin_notices = FS_Admin_Notice_Manager::instance(
377
- $this->_slug . ( $this->is_theme() ? ':theme' : '' ),
378
- /**
379
- * Ensure that the admin notice will always have a title by using the stored plugin title if available and
380
- * retrieving the title via the "get_plugin_name" method if there is no stored plugin title available.
381
- *
382
- * @author Leo Fajardo (@leorw)
383
- * @since 1.2.2
384
- */
385
- ( is_object( $this->_plugin ) ? $this->_plugin->title : $this->get_plugin_name() ),
386
- $this->get_unique_affix()
387
- );
388
-
389
- if ( 'true' === fs_request_get( 'fs_clear_api_cache' ) ||
390
- 'true' === fs_request_is_action( 'restart_freemius' )
391
- ) {
392
- FS_Api::clear_cache();
393
- $this->_cache->clear();
394
- }
395
-
396
- $this->_register_hooks();
397
-
398
- $this->_load_account();
399
-
400
- $this->_version_updates_handler();
401
- }
402
-
403
- /**
404
- * Checks whether this module has a settings menu.
405
- *
406
- * @author Leo Fajardo (@leorw)
407
- * @since 1.2.2
408
- *
409
- * @return bool
410
- */
411
- function has_settings_menu() {
412
- return $this->_menu->has_menu();
413
- }
414
-
415
- /**
416
- * Check if the context module is free wp.org theme.
417
- *
418
- * This method is helpful because:
419
- * 1. wp.org themes are limited to a single submenu item,
420
- * and sub-submenu items are most likely not allowed (never verified).
421
- * 2. wp.org themes are not allowed to redirect the user
422
- * after the theme activation, therefore, the agreed UX
423
- * is showing the opt-in as a modal dialog box after
424
- * activation (approved by @otto42, @emiluzelac, @greenshady, @grapplerulrich).
425
- *
426
- * @author Vova Feldman (@svovaf)
427
- * @since 1.2.2.7
428
- *
429
- * @return bool
430
- */
431
- function is_free_wp_org_theme() {
432
- return (
433
- $this->is_theme() &&
434
- $this->is_org_repo_compliant() &&
435
- ! $this->is_premium()
436
- );
437
- }
438
-
439
- /**
440
- * Checks whether this a submenu item is visible.
441
- *
442
- * @author Vova Feldman (@svovaf)
443
- * @since 1.2.2.6
444
- * @since 1.2.2.7 Even if the menu item was specified to be hidden, when it is the context page, then show the submenu item so the user will have the right context page.
445
- *
446
- * @param string $slug
447
- *
448
- * @return bool
449
- */
450
- function is_submenu_item_visible( $slug ) {
451
- if ( $this->is_admin_page( $slug ) ) {
452
- /**
453
- * It is the current context page, so show the submenu item
454
- * so the user will have the right context page, even if it
455
- * was set to hidden.
456
- */
457
- return true;
458
- }
459
-
460
- if ( ! $this->has_settings_menu() ) {
461
- // No menu settings at all.
462
- return false;
463
- }
464
-
465
- if ( $this->is_free_wp_org_theme() ) {
466
- /**
467
- * wp.org themes are limited to a single submenu item, and
468
- * sub-submenu items are most likely not allowed (never verified).
469
- */
470
- return false;
471
- }
472
-
473
- return $this->_menu->is_submenu_item_visible( $slug );
474
- }
475
-
476
- /**
477
- * Check if a Freemius page should be accessible via the UI.
478
- *
479
- * @author Vova Feldman (@svovaf)
480
- * @since 1.2.2.7
481
- *
482
- * @param string $slug
483
- *
484
- * @return bool
485
- */
486
- function is_page_visible( $slug ) {
487
- if ( $this->is_admin_page( $slug ) ) {
488
- return true;
489
- }
490
-
491
- return $this->_menu->is_submenu_item_visible( $slug, true, true );
492
- }
493
-
494
- /**
495
- * @author Vova Feldman (@svovaf)
496
- * @since 1.0.9
497
- */
498
- private function _version_updates_handler() {
499
- if ( ! isset( $this->_storage->sdk_version ) || $this->_storage->sdk_version != $this->version ) {
500
- // Freemius version upgrade mode.
501
- $this->_storage->sdk_last_version = $this->_storage->sdk_version;
502
- $this->_storage->sdk_version = $this->version;
503
-
504
- if ( empty( $this->_storage->sdk_last_version ) ||
505
- version_compare( $this->_storage->sdk_last_version, $this->version, '<' )
506
- ) {
507
- $this->_storage->sdk_upgrade_mode = true;
508
- $this->_storage->sdk_downgrade_mode = false;
509
- } else {
510
- $this->_storage->sdk_downgrade_mode = true;
511
- $this->_storage->sdk_upgrade_mode = false;
512
-
513
- }
514
-
515
- $this->do_action( 'sdk_version_update', $this->_storage->sdk_last_version, $this->version );
516
- }
517
-
518
- $plugin_version = $this->get_plugin_version();
519
- if ( ! isset( $this->_storage->plugin_version ) || $this->_storage->plugin_version != $plugin_version ) {
520
- // Plugin version upgrade mode.
521
- $this->_storage->plugin_last_version = $this->_storage->plugin_version;
522
- $this->_storage->plugin_version = $plugin_version;
523
-
524
- if ( empty( $this->_storage->plugin_last_version ) ||
525
- version_compare( $this->_storage->plugin_last_version, $plugin_version, '<' )
526
- ) {
527
- $this->_storage->plugin_upgrade_mode = true;
528
- $this->_storage->plugin_downgrade_mode = false;
529
- } else {
530
- $this->_storage->plugin_downgrade_mode = true;
531
- $this->_storage->plugin_upgrade_mode = false;
532
- }
533
-
534
- if ( ! empty( $this->_storage->plugin_last_version ) ) {
535
- // Different version of the plugin was installed before, therefore it's an update.
536
- $this->_storage->is_plugin_new_install = false;
537
- }
538
-
539
- $this->do_action( 'plugin_version_update', $this->_storage->plugin_last_version, $plugin_version );
540
- }
541
- }
542
-
543
- /**
544
- * @author Vova Feldman (@svovaf)
545
- * @since 1.1.5
546
- *
547
- * @param string $sdk_prev_version
548
- * @param string $sdk_version
549
- */
550
- function _data_migration( $sdk_prev_version, $sdk_version ) {
551
- /**
552
- * @since 1.1.7.3 Fixed unwanted connectivity test cleanup.
553
- */
554
- if ( empty( $sdk_prev_version ) ) {
555
- return;
556
- }
557
-
558
- if ( version_compare( $sdk_prev_version, '1.2.3', '<' ) &&
559
- version_compare( $sdk_version, '1.2.3', '>=' )
560
- ) {
561
- /**
562
- * Starting from version 1.2.3, paths are stored as relative paths and not absolute paths; so when
563
- * upgrading to 1.2.3, make paths relative.
564
- *
565
- * @author Leo Fajardo (@leorw)
566
- */
567
- $this->make_paths_relative();
568
- }
569
-
570
- if ( version_compare( $sdk_prev_version, '1.1.5', '<' ) &&
571
- version_compare( $sdk_version, '1.1.5', '>=' )
572
- ) {
573
- // On version 1.1.5 merged connectivity and is_on data.
574
- if ( isset( $this->_storage->connectivity_test ) ) {
575
- if ( ! isset( $this->_storage->is_on ) ) {
576
- unset( $this->_storage->connectivity_test );
577
- } else {
578
- $connectivity_data = $this->_storage->connectivity_test;
579
- $connectivity_data['is_active'] = $this->_storage->is_on['is_active'];
580
- $connectivity_data['timestamp'] = $this->_storage->is_on['timestamp'];
581
-
582
- // Override.
583
- $this->_storage->connectivity_test = $connectivity_data;
584
-
585
- // Remove previous structure.
586
- unset( $this->_storage->is_on );
587
- }
588
-
589
- }
590
- }
591
- }
592
-
593
- /**
594
- * Makes paths relative.
595
- *
596
- * @author Leo Fajardo
597
- * @since 1.2.3
598
- */
599
- private function make_paths_relative() {
600
- $id_slug_type_path_map = self::$_accounts->get_option( 'id_slug_type_path_map', array() );
601
-
602
- if ( isset( $id_slug_type_path_map[ $this->_module_id ]['path'] ) ) {
603
- $id_slug_type_path_map[ $this->_module_id ]['path'] = $this->get_relative_path( $id_slug_type_path_map[ $this->_module_id ]['path'] );
604
-
605
- self::$_accounts->set_option( 'id_slug_type_path_map', $id_slug_type_path_map, true );
606
- }
607
-
608
- if ( isset( $this->_storage->plugin_main_file ) ) {
609
- $plugin_main_file = $this->_storage->plugin_main_file;
610
-
611
- if ( isset( $plugin_main_file->path ) ) {
612
- $this->_storage->plugin_main_file->path = $this->get_relative_path( $this->_storage->plugin_main_file->path );
613
- } else if ( isset( $plugin_main_file->prev_path ) ) {
614
- $this->_storage->plugin_main_file->prev_path = $this->get_relative_path( $this->_storage->plugin_main_file->prev_path );
615
- }
616
- }
617
-
618
- // Remove invalid path that is still associated with the current slug if there's any.
619
- $file_slug_map = self::$_accounts->get_option( 'file_slug_map', array() );
620
- foreach ( $file_slug_map as $plugin_basename => $slug ) {
621
- if ( $slug === $this->_slug &&
622
- $plugin_basename !== $this->_plugin_basename &&
623
- ! file_exists( $this->get_absolute_path( $plugin_basename ) )
624
- ) {
625
- unset( $file_slug_map[ $plugin_basename ] );
626
- self::$_accounts->set_option( 'file_slug_map', $file_slug_map, true );
627
-
628
- break;
629
- }
630
- }
631
- }
632
-
633
- /**
634
- * @author Vova Feldman (@svovaf)
635
- * @since 1.2.2.7
636
- *
637
- * @param string $plugin_prev_version
638
- * @param string $plugin_version
639
- */
640
- function _after_version_update( $plugin_prev_version, $plugin_version ) {
641
- if ( $this->is_theme() ) {
642
- // Expire the cache of the previous tabs since the theme may
643
- // have setting updates.
644
- $this->_cache->expire( 'tabs' );
645
- $this->_cache->expire( 'tabs_stylesheets' );
646
- }
647
- }
648
-
649
- /**
650
- * This action is connected to the 'plugins_loaded' hook and helps to determine
651
- * if this is a new plugin installation or a plugin update.
652
- *
653
- * There are 3 different use-cases:
654
- * 1) New plugin installation right with Freemius:
655
- * 1.1 _activate_plugin_event_hook() will be executed first
656
- * 1.2 Since $this->_storage->is_plugin_new_install is not set,
657
- * and $this->_storage->plugin_last_version is not set,
658
- * $this->_storage->is_plugin_new_install will be set to TRUE.
659
- * 1.3 When _plugins_loaded() will be executed, $this->_storage->is_plugin_new_install will
660
- * be already set to TRUE.
661
- *
662
- * 2) Plugin update, didn't have Freemius before, and now have the SDK:
663
- * 2.1 _activate_plugin_event_hook() will not be executed, because
664
- * the activation hook do NOT fires on updates since WP 3.1.
665
- * 2.2 When _plugins_loaded() will be executed, $this->_storage->is_plugin_new_install will
666
- * be empty, therefore, it will be set to FALSE.
667
- *
668
- * 3) Plugin update, had Freemius in prev version as well:
669
- * 3.1 _version_updates_handler() will be executed 1st, since FS was installed
670
- * before, $this->_storage->plugin_last_version will NOT be empty,
671
- * therefore, $this->_storage->is_plugin_new_install will be set to FALSE.
672
- * 3.2 When _plugins_loaded() will be executed, $this->_storage->is_plugin_new_install is
673
- * already set, therefore, it will not be modified.
674
- *
675
- * Use-case #3 is backward compatible, #3.1 will be executed since 1.0.9.
676
- *
677
- * NOTE:
678
- * The only fallback of this mechanism is if an admin updates a plugin based on use-case #2,
679
- * and then, the next immediate PageView is the plugin's main settings page, it will not
680
- * show the opt-in right away. The reason it will happen is because Freemius execution
681
- * will be turned off till the plugin is fully loaded at least once
682
- * (till $this->_storage->was_plugin_loaded is TRUE).
683
- *
684
- * @author Vova Feldman (@svovaf)
685
- * @since 1.1.9
686
- *
687
- */
688
- function _plugins_loaded() {
689
- // Update flag that plugin was loaded with Freemius at least once.
690
- $this->_storage->was_plugin_loaded = true;
691
-
692
- /**
693
- * Bug fix - only set to false when it's a plugin, due to the
694
- * execution sequence of the theme hooks and our methods, if
695
- * this will be set for themes, Freemius will always assume
696
- * it's a theme update.
697
- *
698
- * @author Vova Feldman (@svovaf)
699
- * @since 1.2.2.2
700
- */
701
- if ( $this->is_plugin() &&
702
- ! isset( $this->_storage->is_plugin_new_install )
703
- ) {
704
- $this->_storage->is_plugin_new_install = false;
705
- }
706
- }
707
-
708
- /**
709
- * @author Vova Feldman (@svovaf)
710
- * @since 1.0.9
711
- */
712
- private function _register_hooks() {
713
- $this->_logger->entrance();
714
-
715
- if ( is_admin() ) {
716
- if ( $this->is_plugin() ) {
717
- $plugin_dir = dirname( $this->_plugin_dir_path ) . '/';
718
-
719
- /**
720
- * @since 1.2.2
721
- *
722
- * Hook to both free and premium version activations to support
723
- * auto deactivation on the other version activation.
724
- */
725
- register_activation_hook(
726
- $plugin_dir . $this->_free_plugin_basename,
727
- array( &$this, '_activate_plugin_event_hook' )
728
- );
729
-
730
- register_activation_hook(
731
- $plugin_dir . $this->premium_plugin_basename(),
732
- array( &$this, '_activate_plugin_event_hook' )
733
- );
734
- } else {
735
- add_action( 'after_switch_theme', array( &$this, '_activate_theme_event_hook' ), 10, 2 );
736
-
737
- /**
738
- * Include the required hooks to capture the theme settings' page tabs
739
- * and cache them.
740
- *
741
- * @author Vova Feldman (@svovaf)
742
- * @since 1.2.2.7
743
- */
744
- if ( ! $this->_cache->has_valid( 'tabs' ) ) {
745
- add_action( 'admin_footer', array( &$this, '_tabs_capture' ) );
746
- // Add license activation AJAX callback.
747
- $this->add_ajax_action( 'store_tabs', array( &$this, '_store_tabs_ajax_action' ) );
748
-
749
- add_action( 'admin_enqueue_scripts', array( &$this, '_store_tabs_styles' ), 9999999 );
750
- }
751
-
752
- add_action(
753
- 'admin_footer',
754
- array( &$this, '_add_freemius_tabs' ),
755
- /**
756
- * The tabs JS code must be executed after the tabs capture logic (_tabs_capture()).
757
- * That's why the priority is 11 while the tabs capture logic is added
758
- * with priority 10.
759
- *
760
- * @author Vova Feldman (@svovaf)
761
- */
762
- 11
763
- );
764
-
765
- add_action( 'admin_footer', array( &$this, '_style_premium_theme' ) );
766
- }
767
-
768
- /**
769
- * Part of the mechanism to identify new plugin install vs. plugin update.
770
- *
771
- * @author Vova Feldman (@svovaf)
772
- * @since 1.1.9
773
- */
774
- if ( empty( $this->_storage->was_plugin_loaded ) ) {
775
- if ( $this->is_plugin() &&
776
- $this->is_activation_mode( false ) &&
777
- 0 == did_action( 'plugins_loaded' )
778
- ) {
779
- add_action( 'plugins_loaded', array( &$this, '_plugins_loaded' ) );
780
- } else {
781
- // If was activated before, then it was already loaded before.
782
- $this->_plugins_loaded();
783
- }
784
- }
785
-
786
- if ( ! self::is_ajax() ) {
787
- if ( ! $this->is_addon() ) {
788
- add_action( 'init', array( &$this, '_add_default_submenu_items' ), WP_FS__LOWEST_PRIORITY );
789
- }
790
- }
791
- }
792
-
793
- if ( $this->is_plugin() ) {
794
- register_deactivation_hook( $this->_plugin_main_file_path, array( &$this, '_deactivate_plugin_hook' ) );
795
- }
796
-
797
- if ( $this->is_theme() && self::is_customizer() ) {
798
- // Register customizer upsell.
799
- add_action( 'customize_register', array( &$this, '_customizer_register' ) );
800
- }
801
-
802
- add_action( 'init', array( &$this, '_redirect_on_clicked_menu_link' ), WP_FS__LOWEST_PRIORITY );
803
-
804
- add_action( 'admin_init', array( &$this, '_add_tracking_links' ) );
805
- add_action( 'admin_init', array( &$this, '_add_license_activation' ) );
806
- $this->add_ajax_action( 'update_billing', array( &$this, '_update_billing_ajax_action' ) );
807
- $this->add_ajax_action( 'start_trial', array( &$this, '_start_trial_ajax_action' ) );
808
-
809
- $this->add_ajax_action( 'install_premium_version', array(
810
- &$this,
811
- '_install_premium_version_ajax_action'
812
- ) );
813
-
814
- $this->add_ajax_action( 'submit_affiliate_application', array( &$this, '_submit_affiliate_application' ) );
815
-
816
- $this->add_action( 'after_plans_sync', array( &$this, '_check_for_trial_plans' ) );
817
-
818
- $this->add_action( 'sdk_version_update', array( &$this, '_data_migration' ), WP_FS__DEFAULT_PRIORITY, 2 );
819
- $this->add_action( 'plugin_version_update', array( &$this, '_after_version_update' ), WP_FS__DEFAULT_PRIORITY, 2 );
820
- $this->add_filter( 'after_code_type_change', array( &$this, '_after_code_type_change' ) );
821
-
822
- add_action( 'admin_init', array( &$this, '_add_trial_notice' ) );
823
- add_action( 'admin_init', array( &$this, '_add_affiliate_program_notice' ) );
824
- add_action( 'admin_init', array( &$this, '_enqueue_common_css' ) );
825
-
826
- /**
827
- * Handle request to reset anonymous mode for `get_reconnect_url()`.
828
- *
829
- * @author Vova Feldman (@svovaf)
830
- * @since 1.2.1.5
831
- */
832
- if ( fs_request_is_action( 'reset_anonymous_mode' ) &&
833
- $this->get_unique_affix() === fs_request_get( 'fs_unique_affix' )
834
- ) {
835
- add_action( 'admin_init', array( &$this, 'connect_again' ) );
836
- }
837
- }
838
-
839
- /**
840
- * Keeping the uninstall hook registered for free or premium plugin version may result to a fatal error that
841
- * could happen when a user tries to uninstall either version while one of them is still active. Uninstalling a
842
- * plugin will trigger inclusion of the free or premium version and if one of them is active during the
843
- * uninstallation, a fatal error may occur in case the plugin's class or functions are already defined.
844
- *
845
- * @author Leo Fajardo (leorw)
846
- *
847
- * @since 1.2.0
848
- */
849
- private function unregister_uninstall_hook() {
850
- $uninstallable_plugins = (array) get_option( 'uninstall_plugins' );
851
- unset( $uninstallable_plugins[ $this->_free_plugin_basename ] );
852
- unset( $uninstallable_plugins[ $this->premium_plugin_basename() ] );
853
-
854
- update_option( 'uninstall_plugins', $uninstallable_plugins );
855
- }
856
-
857
- /**
858
- * @since 1.2.0 Invalidate module's main file cache, otherwise, FS_Plugin_Updater will not fetch updates.
859
- */
860
- private function clear_module_main_file_cache() {
861
- if ( ! isset( $this->_storage->plugin_main_file ) ||
862
- empty( $this->_storage->plugin_main_file->path )
863
- ) {
864
- return;
865
- }
866
-
867
- $plugin_main_file = clone $this->_storage->plugin_main_file;
868
-
869
- // Store cached path (2nd layer cache).
870
- $plugin_main_file->prev_path = $plugin_main_file->path;
871
-
872
- // Clear cached path.
873
- unset( $plugin_main_file->path );
874
-
875
- $this->_storage->plugin_main_file = $plugin_main_file;
876
-
877
- /**
878
- * Clear global cached path.
879
- *
880
- * @author Leo Fajardo (@leorw)
881
- * @since 1.2.2
882
- */
883
- $id_slug_type_path_map = self::$_accounts->get_option( 'id_slug_type_path_map' );
884
- unset( $id_slug_type_path_map[ $this->_module_id ]['path'] );
885
- self::$_accounts->set_option( 'id_slug_type_path_map', $id_slug_type_path_map, true );
886
- }
887
-
888
- /**
889
- * @author Vova Feldman (@svovaf)
890
- * @since 1.0.9
891
- */
892
- private function _register_account_hooks() {
893
- if ( ! is_admin() ) {
894
- return;
895
- }
896
-
897
- /**
898
- * Always show the deactivation feedback form since we added
899
- * automatic free version deactivation upon premium code activation.
900
- *
901
- * @since 1.2.1.6
902
- */
903
- $this->add_ajax_action(
904
- 'submit_uninstall_reason',
905
- array( &$this, '_submit_uninstall_reason_action' )
906
- );
907
-
908
- if ( ( $this->is_plugin() && self::is_plugins_page() ) ||
909
- ( $this->is_theme() && self::is_themes_page() )
910
- ) {
911
- add_action( 'admin_footer', array( &$this, '_add_deactivation_feedback_dialog_box' ) );
912
- }
913
- }
914
-
915
- /**
916
- * Leverage backtrace to find caller plugin file path.
917
- *
918
- * @author Vova Feldman (@svovaf)
919
- * @since 1.0.6
920
- *
921
- * @param bool $is_init Is initiation sequence.
922
- *
923
- * @return string
924
- */
925
- private function _find_caller_plugin_file( $is_init = false ) {
926
- // Try to load the cached value of the file path.
927
- if ( isset( $this->_storage->plugin_main_file ) ) {
928
- $plugin_main_file = $this->_storage->plugin_main_file;
929
- if ( isset( $plugin_main_file->path ) ) {
930
- $absolute_path = $this->get_absolute_path( $plugin_main_file->path );
931
- if ( file_exists( $absolute_path ) ) {
932
- return $absolute_path;
933
- }
934
- }
935
- }
936
-
937
- /**
938
- * @since 1.2.1
939
- *
940
- * `clear_module_main_file_cache()` is clearing the plugin's cached path on
941
- * deactivation. Therefore, if any plugin/theme was initiating `Freemius`
942
- * with that plugin's slug, it was overriding the empty plugin path with a wrong path.
943
- *
944
- * So, we've added a special mechanism with a 2nd layer of cache that uses `prev_path`
945
- * when the class instantiator isn't the module.
946
- */
947
- if ( ! $is_init ) {
948
- // Fetch prev path cache.
949
- if ( isset( $this->_storage->plugin_main_file ) &&
950
- isset( $this->_storage->plugin_main_file->prev_path )
951
- ) {
952
- $absolute_path = $this->get_absolute_path( $this->_storage->plugin_main_file->prev_path );
953
- if ( file_exists( $absolute_path ) ) {
954
- return $absolute_path;
955
- }
956
- }
957
-
958
- wp_die(
959
- $this->get_text_inline( 'Freemius SDK couldn\'t find the plugin\'s main file. Please contact sdk@freemius.com with the current error.', 'failed-finding-main-path' ) .
960
- " Module: {$this->_slug}; SDK: " . WP_FS__SDK_VERSION . ";",
961
- $this->get_text_inline( 'Error', 'error' ),
962
- array( 'back_link' => true )
963
- );
964
- }
965
-
966
- //Fix for migration issues.
967
- if ('ti-woocommerce-wishlist' === $this->_slug) {
968
- return TINVWL_PATH . 'ti-woocommerce-wishlist.php';
969
- }
970
-
971
- /**
972
- * @since 1.2.1
973
- *
974
- * Only the original instantiator that calls dynamic_init can modify the module's path.
975
- */
976
- // Find caller module.
977
- $id_slug_type_path_map = self::$_accounts->get_option( 'id_slug_type_path_map', array() );
978
- $this->_storage->plugin_main_file = (object) array(
979
- 'path' => $id_slug_type_path_map[ $this->_module_id ]['path'],
980
- );
981
-
982
- return $this->get_absolute_path( $id_slug_type_path_map[ $this->_module_id ]['path'] );
983
- }
984
-
985
- /**
986
- * @author Leo Fajardo (@leorw)
987
- * @since 1.2.3
988
- *
989
- * @param string $path
990
- *
991
- * @return string
992
- */
993
- private function get_relative_path( $path ) {
994
- $module_root_dir = $this->get_module_root_dir_path();
995
- if ( 0 === strpos( $path, $module_root_dir ) ) {
996
- $path = substr( $path, strlen( $module_root_dir ) );
997
- }
998
-
999
- return $path;
1000
- }
1001
-
1002
- /**
1003
- * @author Leo Fajardo (@leorw)
1004
- * @since 1.2.3
1005
- *
1006
- * @param string $path
1007
- * @param string|bool $module_type
1008
- *
1009
- * @return string
1010
- */
1011
- private function get_absolute_path( $path, $module_type = false ) {
1012
- $module_root_dir = $this->get_module_root_dir_path( $module_type );
1013
- if ( 0 !== strpos( $path, $module_root_dir ) ) {
1014
- $path = fs_normalize_path( $module_root_dir . $path );
1015
- }
1016
-
1017
- return $path;
1018
- }
1019
-
1020
- /**
1021
- * @author Leo Fajardo (@leorw)
1022
- * @since 1.2.3
1023
- *
1024
- * @param string|bool $module_type
1025
- *
1026
- * @return string
1027
- */
1028
- private function get_module_root_dir_path( $module_type = false ) {
1029
- $is_plugin = empty( $module_type ) ?
1030
- $this->is_plugin() :
1031
- ( WP_FS__MODULE_TYPE_PLUGIN === $module_type );
1032
-
1033
- return fs_normalize_path( trailingslashit( $is_plugin ?
1034
- WP_PLUGIN_DIR :
1035
- get_theme_root() ) );
1036
- }
1037
-
1038
- /**
1039
- * @author Leo Fajardo (@leorw)
1040
- *
1041
- * @param number $module_id
1042
- * @param string $slug
1043
- *
1044
- * @since 1.2.2
1045
- */
1046
- private function store_id_slug_type_path_map( $module_id, $slug ) {
1047
- $id_slug_type_path_map = self::$_accounts->get_option( 'id_slug_type_path_map', array() );
1048
-
1049
- $store_option = false;
1050
-
1051
- if ( ! isset( $id_slug_type_path_map[ $module_id ] ) ) {
1052
- $id_slug_type_path_map[ $module_id ] = array(
1053
- 'slug' => $slug
1054
- );
1055
-
1056
- $store_option = true;
1057
- }
1058
-
1059
- if ( ! isset( $id_slug_type_path_map[ $module_id ]['path'] ) ||
1060
- /**
1061
- * This verification is for cases when suddenly the same module
1062
- * is installed but with a different folder name.
1063
- *
1064
- * @author Vova Feldman (@svovaf)
1065
- * @since 1.2.3
1066
- */
1067
- ! file_exists( $this->get_absolute_path(
1068
- $id_slug_type_path_map[ $module_id ]['path'],
1069
- $id_slug_type_path_map[ $module_id ]['type']
1070
- ) )
1071
- ) {
1072
- $caller_main_file_and_type = $this->get_caller_main_file_and_type();
1073
-
1074
- $id_slug_type_path_map[ $module_id ]['type'] = $caller_main_file_and_type->module_type;
1075
- $id_slug_type_path_map[ $module_id ]['path'] = $caller_main_file_and_type->path;
1076
-
1077
- $store_option = true;
1078
- }
1079
-
1080
- if ( $store_option ) {
1081
- self::$_accounts->set_option( 'id_slug_type_path_map', $id_slug_type_path_map, true );
1082
- }
1083
- }
1084
-
1085
- /**
1086
- * Identifies the caller type: plugin or theme.
1087
- *
1088
- * @author Leo Fajardo (@leorw)
1089
- * @since 1.2.2
1090
- *
1091
- * @author Vova Feldman (@svovaf)
1092
- * @since 1.2.2.3 Find the earliest module in the call stack that calls to the SDK. This fix is for cases when
1093
- * add-ons are relying on loading the SDK from the parent module, and also allows themes including the
1094
- * SDK an internal file instead of directly from functions.php.
1095
- * @since 1.2.1.7 Knows how to handle cases when an add-on includes the parent module logic.
1096
- */
1097
- private function get_caller_main_file_and_type() {
1098
- self::require_plugin_essentials();
1099
-
1100
- $all_plugins = get_plugins();
1101
- $all_plugins_paths = array();
1102
-
1103
- // Get active plugin's main files real full names (might be symlinks).
1104
- foreach ( $all_plugins as $relative_path => &$data ) {
1105
- if ( false === strpos( fs_normalize_path( $relative_path ), '/' ) ) {
1106
- /**
1107
- * Ignore plugins that don't have a folder (e.g. Hello Dolly) since they
1108
- * can't really include the SDK.
1109
- *
1110
- * @author Vova Feldman
1111
- * @since 1.2.1.7
1112
- */
1113
- continue;
1114
- }
1115
-
1116
- $all_plugins_paths[] = fs_normalize_path( realpath( WP_PLUGIN_DIR . '/' . $relative_path ) );
1117
- }
1118
-
1119
- $caller_file_candidate = false;
1120
- $caller_map = array();
1121
- $module_type = WP_FS__MODULE_TYPE_PLUGIN;
1122
- $themes_dir = fs_normalize_path( get_theme_root() );
1123
-
1124
- for ( $i = 1, $bt = debug_backtrace(), $len = count( $bt ); $i < $len; $i ++ ) {
1125
- if ( empty( $bt[ $i ]['file'] ) ) {
1126
- continue;
1127
- }
1128
-
1129
- if ( $i > 1 && ! empty( $bt[ $i - 1 ]['file'] ) && $bt[ $i ]['file'] === $bt[ $i - 1 ]['file'] ) {
1130
- // If file same as the prev file in the stack, skip it.
1131
- continue;
1132
- }
1133
-
1134
- if ( ! empty( $bt[ $i ]['function'] ) && in_array( $bt[ $i ]['function'], array(
1135
- 'do_action',
1136
- 'apply_filter',
1137
- // The string split is stupid, but otherwise, theme check
1138
- // throws info notices.
1139
- 'requir' . 'e_once',
1140
- 'requir' . 'e',
1141
- 'includ' . 'e_once',
1142
- 'includ' . 'e'
1143
- ) )
1144
- ) {
1145
- // Ignore call stack hooks and files inclusion.
1146
- continue;
1147
- }
1148
-
1149
- $caller_file_path = fs_normalize_path( $bt[ $i ]['file'] );
1150
-
1151
- if ( 'functions.php' === basename( $caller_file_path ) ) {
1152
- /**
1153
- * 1. Assumes that theme's starting execution file is functions.php.
1154
- * 2. This complex logic fixes symlink issues (e.g. with Vargant).
1155
- *
1156
- * @author Vova Feldman (@svovaf)
1157
- * @since 1.2.2.5
1158
- */
1159
-
1160
- if ( $caller_file_path == fs_normalize_path( realpath( trailingslashit( $themes_dir ) . basename( dirname( $caller_file_path ) ) . '/' . basename( $caller_file_path ) ) ) ) {
1161
- $module_type = WP_FS__MODULE_TYPE_THEME;
1162
-
1163
- /**
1164
- * Relative path of the theme, e.g.:
1165
- * `my-theme/functions.php`
1166
- *
1167
- * @author Leo Fajardo (@leorw)
1168
- */
1169
- $caller_file_candidate = basename( dirname( $caller_file_path ) ) .
1170
- '/' .
1171
- basename( $caller_file_path );
1172
-
1173
- continue;
1174
- }
1175
- }
1176
-
1177
- $caller_file_hash = md5( $caller_file_path );
1178
-
1179
- if ( ! isset( $caller_map[ $caller_file_hash ] ) ) {
1180
- foreach ( $all_plugins_paths as $plugin_path ) {
1181
- if ( false !== strpos( $caller_file_path, fs_normalize_path( dirname( $plugin_path ) . '/' ) ) ) {
1182
- $caller_map[ $caller_file_hash ] = fs_normalize_path( $plugin_path );
1183
- break;
1184
- }
1185
- }
1186
- }
1187
-
1188
- if ( isset( $caller_map[ $caller_file_hash ] ) ) {
1189
- $module_type = WP_FS__MODULE_TYPE_PLUGIN;
1190
- $caller_file_candidate = plugin_basename( $caller_map[ $caller_file_hash ] );
1191
- }
1192
- }
1193
-
1194
- return (object) array(
1195
- 'module_type' => $module_type,
1196
- 'path' => $caller_file_candidate
1197
- );
1198
- }
1199
-
1200
- #----------------------------------------------------------------------------------
1201
- #region Deactivation Feedback Form
1202
- #----------------------------------------------------------------------------------
1203
-
1204
- /**
1205
- * Displays a confirmation and feedback dialog box when the user clicks on the "Deactivate" link on the plugins
1206
- * page.
1207
- *
1208
- * @author Vova Feldman (@svovaf)
1209
- * @author Leo Fajardo (@leorw)
1210
- * @since 1.1.2
1211
- */
1212
- function _add_deactivation_feedback_dialog_box() {
1213
- /* Check the type of user:
1214
- * 1. Long-term (long-term)
1215
- * 2. Non-registered and non-anonymous short-term (non-registered-and-non-anonymous-short-term).
1216
- * 3. Short-term (short-term)
1217
- */
1218
- $is_long_term_user = true;
1219
-
1220
- // Check if the site is at least 2 days old.
1221
- $time_installed = $this->_storage->install_timestamp;
1222
-
1223
- // Difference in seconds.
1224
- $date_diff = time() - $time_installed;
1225
-
1226
- // Convert seconds to days.
1227
- $date_diff_days = floor( $date_diff / ( 60 * 60 * 24 ) );
1228
-
1229
- if ( $date_diff_days < 2 ) {
1230
- $is_long_term_user = false;
1231
- }
1232
-
1233
- $is_long_term_user = $this->apply_filters( 'is_long_term_user', $is_long_term_user );
1234
-
1235
- if ( $is_long_term_user ) {
1236
- $user_type = 'long-term';
1237
- } else {
1238
- if ( ! $this->is_registered() && ! $this->is_anonymous() ) {
1239
- $user_type = 'non-registered-and-non-anonymous-short-term';
1240
- } else {
1241
- $user_type = 'short-term';
1242
- }
1243
- }
1244
-
1245
- $uninstall_reasons = $this->_get_uninstall_reasons( $user_type );
1246
-
1247
- // Load the HTML template for the deactivation feedback dialog box.
1248
- $vars = array(
1249
- 'reasons' => $uninstall_reasons,
1250
- 'id' => $this->_module_id
1251
- );
1252
-
1253
- /**
1254
- * @todo Deactivation form core functions should be loaded only once! Otherwise, when there are multiple Freemius powered plugins the same code is loaded multiple times. The only thing that should be loaded differently is the various deactivation reasons object based on the state of the plugin.
1255
- */
1256
- fs_require_template( 'forms/deactivation/form.php', $vars );
1257
- }
1258
-
1259
- /**
1260
- * @author Leo Fajardo (leorw)
1261
- * @since 1.1.2
1262
- *
1263
- * @param string $user_type
1264
- *
1265
- * @return array The uninstall reasons for the specified user type.
1266
- */
1267
- function _get_uninstall_reasons( $user_type = 'long-term' ) {
1268
- $module_type = $this->_module_type;
1269
-
1270
- $internal_message_template_var = array(
1271
- 'id' => $this->_module_id
1272
- );
1273
-
1274
- if ( $this->is_registered() && false !== $this->get_plan() && $this->get_plan()->has_technical_support() ) {
1275
- $contact_support_template = fs_get_template( 'forms/deactivation/contact.php', $internal_message_template_var );
1276
- } else {
1277
- $contact_support_template = '';
1278
- }
1279
-
1280
- $reason_found_better_plugin = array(
1281
- 'id' => self::REASON_FOUND_A_BETTER_PLUGIN,
1282
- 'text' => sprintf( $this->get_text_inline( 'I found a better %s', 'reason-found-a-better-plugin' ), $module_type ),
1283
- 'input_type' => 'textfield',
1284
- 'input_placeholder' => sprintf( $this->get_text_inline( "What's the %s's name?", 'placeholder-plugin-name' ), $module_type ),
1285
- );
1286
-
1287
- $reason_temporary_deactivation = array(
1288
- 'id' => self::REASON_TEMPORARY_DEACTIVATION,
1289
- 'text' => sprintf(
1290
- $this->get_text_inline( "It's a temporary %s. I'm just debugging an issue.", 'reason-temporary-x' ),
1291
- strtolower( $this->is_plugin() ?
1292
- $this->get_text_inline( 'Deactivation', 'deactivation' ) :
1293
- $this->get_text_inline( 'Theme Switch', 'theme-switch' )
1294
- )
1295
- ),
1296
- 'input_type' => '',
1297
- 'input_placeholder' => ''
1298
- );
1299
-
1300
- $reason_other = array(
1301
- 'id' => self::REASON_OTHER,
1302
- 'text' => $this->get_text_inline( 'Other', 'reason-other' ),
1303
- 'input_type' => 'textfield',
1304
- 'input_placeholder' => ''
1305
- );
1306
-
1307
- $long_term_user_reasons = array(
1308
- array(
1309
- 'id' => self::REASON_NO_LONGER_NEEDED,
1310
- 'text' => sprintf( $this->get_text_inline( 'I no longer need the %s', 'reason-no-longer-needed' ), $module_type ),
1311
- 'input_type' => '',
1312
- 'input_placeholder' => ''
1313
- ),
1314
- $reason_found_better_plugin,
1315
- array(
1316
- 'id' => self::REASON_NEEDED_FOR_A_SHORT_PERIOD,
1317
- 'text' => sprintf( $this->get_text_inline( 'I only needed the %s for a short period', 'reason-needed-for-a-short-period' ), $module_type ),
1318
- 'input_type' => '',
1319
- 'input_placeholder' => ''
1320
- ),
1321
- array(
1322
- 'id' => self::REASON_BROKE_MY_SITE,
1323
- 'text' => sprintf( $this->get_text_inline( 'The %s broke my site', 'reason-broke-my-site' ), $module_type ),
1324
- 'input_type' => '',
1325
- 'input_placeholder' => '',
1326
- 'internal_message' => $contact_support_template
1327
- ),
1328
- array(
1329
- 'id' => self::REASON_SUDDENLY_STOPPED_WORKING,
1330
- 'text' => sprintf( $this->get_text_inline( 'The %s suddenly stopped working', 'reason-suddenly-stopped-working' ), $module_type ),
1331
- 'input_type' => '',
1332
- 'input_placeholder' => '',
1333
- 'internal_message' => $contact_support_template
1334
- )
1335
- );
1336
-
1337
- if ( $this->is_paying() ) {
1338
- $long_term_user_reasons[] = array(
1339
- 'id' => self::REASON_CANT_PAY_ANYMORE,
1340
- 'text' => $this->get_text_inline( "I can't pay for it anymore", 'reason-cant-pay-anymore' ),
1341
- 'input_type' => 'textfield',
1342
- 'input_placeholder' => $this->get_text_inline( 'What price would you feel comfortable paying?', 'placeholder-comfortable-price' )
1343
- );
1344
- }
1345
-
1346
- $reason_dont_share_info = array(
1347
- 'id' => self::REASON_DONT_LIKE_TO_SHARE_MY_INFORMATION,
1348
- 'text' => $this->get_text_inline( "I don't like to share my information with you", 'reason-dont-like-to-share-my-information' ),
1349
- 'input_type' => '',
1350
- 'input_placeholder' => ''
1351
- );
1352
-
1353
- /**
1354
- * If the current user has selected the "don't share data" reason in the deactivation feedback modal, inform the
1355
- * user by showing additional message that he doesn't have to share data and can just choose to skip the opt-in
1356
- * (the Skip button is included in the message to show). This message will only be shown if anonymous mode is
1357
- * enabled and the user's account is currently not in pending activation state (similar to the way the Skip
1358
- * button in the opt-in form is shown/hidden).
1359
- */
1360
- if ( $this->is_enable_anonymous() && ! $this->is_pending_activation() ) {
1361
- $reason_dont_share_info['internal_message'] = fs_get_template( 'forms/deactivation/retry-skip.php', $internal_message_template_var );
1362
- }
1363
-
1364
- $uninstall_reasons = array(
1365
- 'long-term' => $long_term_user_reasons,
1366
- 'non-registered-and-non-anonymous-short-term' => array(
1367
- array(
1368
- 'id' => self::REASON_DIDNT_WORK,
1369
- 'text' => sprintf( $this->get_text_inline( "The %s didn't work", 'reason-didnt-work' ), $module_type ),
1370
- 'input_type' => '',
1371
- 'input_placeholder' => ''
1372
- ),
1373
- $reason_dont_share_info,
1374
- $reason_found_better_plugin
1375
- ),
1376
- 'short-term' => array(
1377
- array(
1378
- 'id' => self::REASON_COULDNT_MAKE_IT_WORK,
1379
- 'text' => $this->get_text_inline( "I couldn't understand how to make it work", 'reason-couldnt-make-it-work' ),
1380
- 'input_type' => '',
1381
- 'input_placeholder' => '',
1382
- 'internal_message' => $contact_support_template
1383
- ),
1384
- $reason_found_better_plugin,
1385
- array(
1386
- 'id' => self::REASON_GREAT_BUT_NEED_SPECIFIC_FEATURE,
1387
- 'text' => sprintf( $this->get_text_inline( "The %s is great, but I need specific feature that you don't support", 'reason-great-but-need-specific-feature' ), $module_type ),
1388
- 'input_type' => 'textarea',
1389
- 'input_placeholder' => $this->get_text_inline( 'What feature?', 'placeholder-feature' )
1390
- ),
1391
- array(
1392
- 'id' => self::REASON_NOT_WORKING,
1393
- 'text' => sprintf( $this->get_text_inline( 'The %s is not working', 'reason-not-working' ), $module_type ),
1394
- 'input_type' => 'textarea',
1395
- 'input_placeholder' => $this->get_text_inline( "Kindly share what didn't work so we can fix it for future users...", 'placeholder-share-what-didnt-work' )
1396
- ),
1397
- array(
1398
- 'id' => self::REASON_NOT_WHAT_I_WAS_LOOKING_FOR,
1399
- 'text' => $this->get_text_inline( "It's not what I was looking for", 'reason-not-what-i-was-looking-for' ),
1400
- 'input_type' => 'textarea',
1401
- 'input_placeholder' => $this->get_text_inline( "What you've been looking for?", 'placeholder-what-youve-been-looking-for' )
1402
- ),
1403
- array(
1404
- 'id' => self::REASON_DIDNT_WORK_AS_EXPECTED,
1405
- 'text' => sprintf( $this->get_text_inline( "The %s didn't work as expected", 'reason-didnt-work-as-expected' ), $module_type ),
1406
- 'input_type' => 'textarea',
1407
- 'input_placeholder' => $this->get_text_inline( 'What did you expect?', 'placeholder-what-did-you-expect' )
1408
- )
1409
- )
1410
- );
1411
-
1412
- // Randomize the reasons for the current user type.
1413
- shuffle( $uninstall_reasons[ $user_type ] );
1414
-
1415
- // Keep the following reasons as the last items in the list.
1416
- $uninstall_reasons[ $user_type ][] = $reason_temporary_deactivation;
1417
- $uninstall_reasons[ $user_type ][] = $reason_other;
1418
-
1419
- $uninstall_reasons = $this->apply_filters( 'uninstall_reasons', $uninstall_reasons );
1420
-
1421
- return $uninstall_reasons[ $user_type ];
1422
- }
1423
-
1424
- /**
1425
- * Called after the user has submitted his reason for deactivating the plugin.
1426
- *
1427
- * @author Leo Fajardo (@leorw)
1428
- * @since 1.1.2
1429
- */
1430
- function _submit_uninstall_reason_action() {
1431
- $this->_logger->entrance();
1432
-
1433
- $this->check_ajax_referer( 'submit_uninstall_reason' );
1434
-
1435
- $reason_id = fs_request_get( 'reason_id' );
1436
-
1437
- // Check if the given reason ID is an unsigned integer.
1438
- if ( ! ctype_digit( $reason_id ) ) {
1439
- exit;
1440
- }
1441
-
1442
- $reason_info = trim( fs_request_get( 'reason_info', '' ) );
1443
- if ( ! empty( $reason_info ) ) {
1444
- $reason_info = substr( $reason_info, 0, 128 );
1445
- }
1446
-
1447
- $reason = (object) array(
1448
- 'id' => $reason_id,
1449
- 'info' => $reason_info,
1450
- 'is_anonymous' => fs_request_get_bool( 'is_anonymous' )
1451
- );
1452
-
1453
- $this->_storage->store( 'uninstall_reason', $reason );
1454
-
1455
- /**
1456
- * If the module type is "theme", trigger the uninstall event here (on theme deactivation) since themes do
1457
- * not support uninstall hook.
1458
- *
1459
- * @author Leo Fajardo (@leorw)
1460
- * @since 1.2.2
1461
- */
1462
- if ( $this->is_theme() ) {
1463
- $this->_uninstall_plugin_event( false );
1464
- $this->remove_sdk_reference();
1465
- }
1466
-
1467
- // Print '1' for successful operation.
1468
- echo 1;
1469
- exit;
1470
- }
1471
-
1472
- #endregion
1473
-
1474
- #----------------------------------------------------------------------------------
1475
- #region Instance
1476
- #----------------------------------------------------------------------------------
1477
-
1478
- /**
1479
- * Main singleton instance.
1480
- *
1481
- * @author Vova Feldman (@svovaf)
1482
- * @since 1.0.0
1483
- *
1484
- * @param number $module_id
1485
- * @param string|bool $slug
1486
- * @param bool $is_init Is initiation sequence.
1487
- *
1488
- * @return Freemius|false
1489
- */
1490
- static function instance( $module_id, $slug = false, $is_init = false ) {
1491
- if ( empty( $module_id ) ) {
1492
- return false;
1493
- }
1494
-
1495
- if ( ! is_numeric( $module_id ) ) {
1496
- if ( ! $is_init && true === $slug ) {
1497
- $is_init = true;
1498
- }
1499
-
1500
- $slug = $module_id;
1501
-
1502
- $module = FS_Plugin_Manager::instance( $slug )->get();
1503
-
1504
- if ( is_object( $module ) ) {
1505
- $module_id = $module->id;
1506
- }
1507
- }
1508
-
1509
- $key = 'm_' . $module_id;
1510
-
1511
- if ( ! isset( self::$_instances[ $key ] ) ) {
1512
- if ( 0 === count( self::$_instances ) ) {
1513
- self::_load_required_static();
1514
- }
1515
-
1516
- self::$_instances[ $key ] = new Freemius( $module_id, $slug, $is_init );
1517
- }
1518
-
1519
- return self::$_instances[ $key ];
1520
- }
1521
-
1522
- /**
1523
- * @author Vova Feldman (@svovaf)
1524
- * @since 1.0.6
1525
- *
1526
- * @param number $addon_id
1527
- *
1528
- * @return bool
1529
- */
1530
- private static function has_instance( $addon_id ) {
1531
- return isset( self::$_instances[ 'm_' . $addon_id ] );
1532
- }
1533
-
1534
- /**
1535
- * @author Leo Fajardo (@leorw)
1536
- * @since 1.2.2
1537
- *
1538
- * @param string|number $id_or_slug
1539
- *
1540
- * @return number|false
1541
- */
1542
- private static function get_module_id( $id_or_slug ) {
1543
- if ( is_numeric( $id_or_slug ) ) {
1544
- return $id_or_slug;
1545
- }
1546
-
1547
- foreach ( self::$_instances as $instance ) {
1548
- if ( $instance->is_plugin() && ( $id_or_slug === $instance->get_slug() ) ) {
1549
- return $instance->get_id();
1550
- }
1551
- }
1552
-
1553
- return false;
1554
- }
1555
-
1556
- /**
1557
- * @author Vova Feldman (@svovaf)
1558
- * @since 1.0.6
1559
- *
1560
- * @param number $id
1561
- *
1562
- * @return false|Freemius
1563
- */
1564
- static function get_instance_by_id( $id ) {
1565
- return isset ( self::$_instances[ 'm_' . $id ] ) ?
1566
- self::$_instances[ 'm_' . $id ] :
1567
- false;
1568
- }
1569
-
1570
- /**
1571
- *
1572
- * @author Vova Feldman (@svovaf)
1573
- * @since 1.0.1
1574
- *
1575
- * @param $plugin_file
1576
- *
1577
- * @return false|Freemius
1578
- */
1579
- static function get_instance_by_file( $plugin_file ) {
1580
- $slug = self::find_slug_by_basename( $plugin_file );
1581
-
1582
- return ( false !== $slug ) ?
1583
- self::instance( self::get_module_id( $slug ) ) :
1584
- false;
1585
- }
1586
-
1587
- /**
1588
- * @author Vova Feldman (@svovaf)
1589
- * @since 1.0.6
1590
- *
1591
- * @return false|Freemius
1592
- */
1593
- function get_parent_instance() {
1594
- return self::get_instance_by_id( $this->_plugin->parent_plugin_id );
1595
- }
1596
-
1597
- /**
1598
- * @author Vova Feldman (@svovaf)
1599
- * @since 1.0.6
1600
- *
1601
- * @param string|number $id_or_slug
1602
- *
1603
- * @return false|Freemius
1604
- */
1605
- function get_addon_instance( $id_or_slug ) {
1606
- $addon_id = self::get_module_id( $id_or_slug );
1607
-
1608
- return self::instance( $addon_id );
1609
- }
1610
-
1611
- #endregion ------------------------------------------------------------------
1612
-
1613
- /**
1614
- * @author Vova Feldman (@svovaf)
1615
- * @since 1.0.6
1616
- *
1617
- * @return bool
1618
- */
1619
- function is_parent_plugin_installed() {
1620
- $is_active = self::has_instance( $this->_plugin->parent_plugin_id );
1621
-
1622
- if ( $is_active ) {
1623
- return true;
1624
- }
1625
-
1626
- /**
1627
- * Parent module might be a theme. If that's the case, the add-on's FS
1628
- * instance will be loaded prior to the theme's FS instance, therefore,
1629
- * we need to check if it's active with a "look ahead".
1630
- *
1631
- * @author Vova Feldman
1632
- * @since 1.2.2.3
1633
- */
1634
- global $fs_active_plugins;
1635
- if ( is_object( $fs_active_plugins ) && is_array( $fs_active_plugins->plugins ) ) {
1636
- $active_theme = wp_get_theme();
1637
-
1638
- foreach ( $fs_active_plugins->plugins as $sdk => $module ) {
1639
- if ( WP_FS__MODULE_TYPE_THEME === $module->type ) {
1640
- if ( $module->plugin_path == $active_theme->get_stylesheet() ) {
1641
- // Parent module is a theme and it's currently active.
1642
- return true;
1643
- }
1644
- }
1645
- }
1646
- }
1647
-
1648
- return false;
1649
- }
1650
-
1651
- /**
1652
- * Check if add-on parent plugin in activation mode.
1653
- *
1654
- * @author Vova Feldman (@svovaf)
1655
- * @since 1.0.7
1656
- *
1657
- * @return bool
1658
- */
1659
- function is_parent_in_activation() {
1660
- $parent_fs = $this->get_parent_instance();
1661
- if ( ! is_object( $parent_fs ) ) {
1662
- return false;
1663
- }
1664
-
1665
- return ( $parent_fs->is_activation_mode() );
1666
- }
1667
-
1668
- /**
1669
- * Is plugin in activation mode.
1670
- *
1671
- * @author Vova Feldman (@svovaf)
1672
- * @since 1.0.7
1673
- *
1674
- * @param bool $and_on
1675
- *
1676
- * @return bool
1677
- */
1678
- function is_activation_mode( $and_on = true ) {
1679
- return (
1680
- ( $this->is_on() || ! $and_on ) &&
1681
- ( ! $this->is_registered() || ( $this->is_only_premium() && ! $this->has_features_enabled_license() ) ) &&
1682
- ( ! $this->is_enable_anonymous() ||
1683
- ( ! $this->is_anonymous() && ! $this->is_pending_activation() ) )
1684
- );
1685
- }
1686
-
1687
- /**
1688
- * Check if current page is the opt-in/pending-activation page.
1689
- *
1690
- * @author Vova Feldman (@svovaf)
1691
- * @since 1.2.1.7
1692
- *
1693
- * @return bool
1694
- */
1695
- function is_activation_page() {
1696
- if ( $this->_menu->is_main_settings_page() ) {
1697
- return true;
1698
- }
1699
-
1700
- if ( ! $this->is_activation_mode() ) {
1701
- return false;
1702
- }
1703
-
1704
- // Check if current page is matching the activation page.
1705
- return $this->is_matching_url( $this->get_activation_url() );
1706
- }
1707
-
1708
- /**
1709
- * Check if URL path's are matching and that all querystring
1710
- * arguments of the $sub_url exist in the $url with the same values.
1711
- *
1712
- * WARNING:
1713
- * 1. This method doesn't check if the sub/domain are matching.
1714
- * 2. Ignore case sensitivity.
1715
- *
1716
- * @author Vova Feldman (@svovaf)
1717
- * @since 1.2.1.7
1718
- *
1719
- * @param string $sub_url
1720
- * @param string $url If argument is not set, check if the sub_url matching the current's page URL.
1721
- *
1722
- * @return bool
1723
- */
1724
- private function is_matching_url( $sub_url, $url = '' ) {
1725
- if ( empty( $url ) ) {
1726
- $url = $_SERVER['REQUEST_URI'];
1727
- }
1728
-
1729
- $url = strtolower( $url );
1730
- $sub_url = strtolower( $sub_url );
1731
-
1732
- if ( parse_url( $sub_url, PHP_URL_PATH ) !== parse_url( $url, PHP_URL_PATH ) ) {
1733
- // Different path - DO NOT OVERRIDE PAGE.
1734
- return false;
1735
- }
1736
-
1737
- $url_params = array();
1738
- parse_str( parse_url( $url, PHP_URL_QUERY ), $url_params );
1739
-
1740
- $sub_url_params = array();
1741
- parse_str( parse_url( $sub_url, PHP_URL_QUERY ), $sub_url_params );
1742
-
1743
- foreach ( $sub_url_params as $key => $val ) {
1744
- if ( ! isset( $url_params[ $key ] ) || $val != $url_params[ $key ] ) {
1745
- // Not matching query string - DO NOT OVERRIDE PAGE.
1746
- return false;
1747
- }
1748
- }
1749
-
1750
- return true;
1751
- }
1752
-
1753
- /**
1754
- * Get collection of all active plugins.
1755
- *
1756
- * @author Vova Feldman (@svovaf)
1757
- * @since 1.0.9
1758
- *
1759
- * @return array[string]array
1760
- */
1761
- private static function get_active_plugins() {
1762
- self::require_plugin_essentials();
1763
-
1764
- $active_plugin = array();
1765
- $all_plugins = get_plugins();
1766
- $active_plugins_basenames = get_option( 'active_plugins' );
1767
-
1768
- foreach ( $active_plugins_basenames as $plugin_basename ) {
1769
- $active_plugin[ $plugin_basename ] = $all_plugins[ $plugin_basename ];
1770
- }
1771
-
1772
- return $active_plugin;
1773
- }
1774
-
1775
- /**
1776
- * Get collection of all plugins.
1777
- *
1778
- * @author Vova Feldman (@svovaf)
1779
- * @since 1.1.8
1780
- *
1781
- * @return array Key is the plugin file path and the value is an array of the plugin data.
1782
- */
1783
- private static function get_all_plugins() {
1784
- self::require_plugin_essentials();
1785
-
1786
- $all_plugins = get_plugins();
1787
- $active_plugins_basenames = get_option( 'active_plugins' );
1788
-
1789
- foreach ( $all_plugins as $basename => &$data ) {
1790
- // By default set to inactive (next foreach update the active plugins).
1791
- $data['is_active'] = false;
1792
- // Enrich with plugin slug.
1793
- $data['slug'] = self::get_plugin_slug( $basename );
1794
- }
1795
-
1796
- // Flag active plugins.
1797
- foreach ( $active_plugins_basenames as $basename ) {
1798
- if ( isset( $all_plugins[ $basename ] ) ) {
1799
- $all_plugins[ $basename ]['is_active'] = true;
1800
- }
1801
- }
1802
-
1803
- return $all_plugins;
1804
- }
1805
-
1806
-
1807
- /**
1808
- * Cached result of get_site_transient( 'update_plugins' )
1809
- *
1810
- * @author Vova Feldman (@svovaf)
1811
- * @since 1.1.8
1812
- *
1813
- * @var object
1814
- */
1815
- private static $_plugins_info;
1816
-
1817
- /**
1818
- * Helper function to get specified plugin's slug.
1819
- *
1820
- * @author Vova Feldman (@svovaf)
1821
- * @since 1.1.8
1822
- *
1823
- * @param $basename
1824
- *
1825
- * @return string
1826
- */
1827
- private static function get_plugin_slug( $basename ) {
1828
- if ( ! isset( self::$_plugins_info ) ) {
1829
- self::$_plugins_info = get_site_transient( 'update_plugins' );
1830
- }
1831
-
1832
- $slug = '';
1833
-
1834
- if ( is_object( self::$_plugins_info ) ) {
1835
- if ( isset( self::$_plugins_info->no_update ) &&
1836
- isset( self::$_plugins_info->no_update[ $basename ] ) &&
1837
- ! empty( self::$_plugins_info->no_update[ $basename ]->slug )
1838
- ) {
1839
- $slug = self::$_plugins_info->no_update[ $basename ]->slug;
1840
- } else if ( isset( self::$_plugins_info->response ) &&
1841
- isset( self::$_plugins_info->response[ $basename ] ) &&
1842
- ! empty( self::$_plugins_info->response[ $basename ]->slug )
1843
- ) {
1844
- $slug = self::$_plugins_info->response[ $basename ]->slug;
1845
- }
1846
- }
1847
-
1848
- if ( empty( $slug ) ) {
1849
- // Try to find slug from FS data.
1850
- $slug = self::find_slug_by_basename( $basename );
1851
- }
1852
-
1853
- if ( empty( $slug ) ) {
1854
- // Fallback to plugin's folder name.
1855
- $slug = dirname( $basename );
1856
- }
1857
-
1858
- return $slug;
1859
- }
1860
-
1861
- private static $_statics_loaded = false;
1862
-
1863
- /**
1864
- * Load static resources.
1865
- *
1866
- * @author Vova Feldman (@svovaf)
1867
- * @since 1.0.1
1868
- */
1869
- private static function _load_required_static() {
1870
- if ( self::$_statics_loaded ) {
1871
- return;
1872
- }
1873
-
1874
- self::$_static_logger = FS_Logger::get_logger( WP_FS__SLUG, WP_FS__DEBUG_SDK, WP_FS__ECHO_DEBUG_SDK );
1875
-
1876
- self::$_static_logger->entrance();
1877
-
1878
- self::$_accounts = FS_Option_Manager::get_manager( WP_FS__ACCOUNTS_OPTION_NAME, true );
1879
-
1880
- self::$_global_admin_notices = FS_Admin_Notice_Manager::instance( 'global' );
1881
-
1882
- add_action( 'admin_menu', array( 'Freemius', '_add_debug_section' ) );
1883
-
1884
- add_action( "wp_ajax_fs_toggle_debug_mode", array( 'Freemius', '_toggle_debug_mode' ) );
1885
-
1886
- self::add_ajax_action_static( 'get_debug_log', array( 'Freemius', '_get_debug_log' ) );
1887
-
1888
- self::add_ajax_action_static( 'get_db_option', array( 'Freemius', '_get_db_option' ) );
1889
-
1890
- self::add_ajax_action_static( 'set_db_option', array( 'Freemius', '_set_db_option' ) );
1891
-
1892
- if ( 0 == did_action( 'plugins_loaded' ) ) {
1893
- add_action( 'plugins_loaded', array( 'Freemius', '_load_textdomain' ), 1 );
1894
- }
1895
-
1896
- self::$_statics_loaded = true;
1897
- }
1898
-
1899
- #----------------------------------------------------------------------------------
1900
- #region Localization
1901
- #----------------------------------------------------------------------------------
1902
-
1903
- /**
1904
- * Load framework's text domain.
1905
- *
1906
- * @author Vova Feldman (@svovaf)
1907
- * @since 1.2.1
1908
- */
1909
- static function _load_textdomain() {
1910
- if ( ! is_admin() ) {
1911
- return;
1912
- }
1913
-
1914
- global $fs_active_plugins;
1915
-
1916
- // Works both for plugins and themes.
1917
- load_plugin_textdomain(
1918
- 'freemius',
1919
- false,
1920
- $fs_active_plugins->newest->sdk_path . '/languages/'
1921
- );
1922
- }
1923
-
1924
- #endregion
1925
-
1926
- #----------------------------------------------------------------------------------
1927
- #region Debugging
1928
- #----------------------------------------------------------------------------------
1929
-
1930
- /**
1931
- * @author Vova Feldman (@svovaf)
1932
- * @since 1.0.8
1933
- */
1934
- static function _add_debug_section() {
1935
- if ( ! current_user_can( 'activate_plugins' )
1936
- && ! current_user_can( 'switch_themes' )
1937
- ) {
1938
- return;
1939
- }
1940
-
1941
- self::$_static_logger->entrance();
1942
-
1943
- $title = sprintf( '%s [v.%s]', fs_text_inline( 'Freemius Debug' ), WP_FS__SDK_VERSION );
1944
-
1945
- if ( WP_FS__DEV_MODE ) {
1946
- // Add top-level debug menu item.
1947
- $hook = FS_Admin_Menu_Manager::add_page(
1948
- $title,
1949
- $title,
1950
- 'manage_options',
1951
- 'freemius',
1952
- array( 'Freemius', '_debug_page_render' )
1953
- );
1954
- } else {
1955
- // Add hidden debug page.
1956
- $hook = FS_Admin_Menu_Manager::add_subpage(
1957
- null,
1958
- $title,
1959
- $title,
1960
- 'manage_options',
1961
- 'freemius',
1962
- array( 'Freemius', '_debug_page_render' )
1963
- );
1964
- }
1965
-
1966
- if ( ! empty( $hook ) ) {
1967
- add_action( "load-$hook", array( 'Freemius', '_debug_page_actions' ) );
1968
- }
1969
- }
1970
-
1971
- /**
1972
- * @author Vova Feldman (@svovaf)
1973
- * @since 1.1.7.3
1974
- */
1975
- static function _toggle_debug_mode() {
1976
- $is_on = fs_request_get( 'is_on', false, 'post' );
1977
-
1978
- if ( fs_request_is_post() && in_array( $is_on, array( 0, 1 ) ) ) {
1979
- update_option( 'fs_debug_mode', $is_on );
1980
-
1981
- // Turn on/off storage logging.
1982
- FS_Logger::_set_storage_logging( ( 1 == $is_on ) );
1983
- }
1984
-
1985
- exit;
1986
- }
1987
-
1988
- /**
1989
- * @author Vova Feldman (@svovaf)
1990
- * @since 1.2.1.6
1991
- */
1992
- static function _get_debug_log() {
1993
- $logs = FS_Logger::load_db_logs(
1994
- fs_request_get( 'filters', false, 'post' ),
1995
- ! empty( $_POST['limit'] ) && is_numeric( $_POST['limit'] ) ? $_POST['limit'] : 200,
1996
- ! empty( $_POST['offset'] ) && is_numeric( $_POST['offset'] ) ? $_POST['offset'] : 0
1997
- );
1998
-
1999
- self::shoot_ajax_success( $logs );
2000
- }
2001
-
2002
- /**
2003
- * @author Vova Feldman (@svovaf)
2004
- * @since 1.2.1.7
2005
- */
2006
- static function _get_db_option() {
2007
- $option_name = fs_request_get( 'option_name' );
2008
-
2009
- $value = get_option( $option_name );
2010
-
2011
- $result = array(
2012
- 'name' => $option_name,
2013
- );
2014
-
2015
- if ( false !== $value ) {
2016
- if ( ! is_string( $value ) ) {
2017
- $value = json_encode( $value );
2018
- }
2019
-
2020
- $result['value'] = $value;
2021
- }
2022
-
2023
- self::shoot_ajax_success( $result );
2024
- }
2025
-
2026
- /**
2027
- * @author Vova Feldman (@svovaf)
2028
- * @since 1.2.1.7
2029
- */
2030
- static function _set_db_option() {
2031
- $option_name = fs_request_get( 'option_name' );
2032
- $option_value = fs_request_get( 'option_value' );
2033
-
2034
- if ( ! empty( $option_value ) ) {
2035
- update_option( $option_name, $option_value );
2036
- }
2037
-
2038
- self::shoot_ajax_success();
2039
- }
2040
-
2041
- /**
2042
- * @author Vova Feldman (@svovaf)
2043
- * @since 1.0.8
2044
- */
2045
- static function _debug_page_actions() {
2046
- self::_clean_admin_content_section();
2047
-
2048
- if ( fs_request_is_action( 'restart_freemius' ) ) {
2049
- check_admin_referer( 'restart_freemius' );
2050
-
2051
- // Clear accounts data.
2052
- self::$_accounts->clear( true );
2053
-
2054
- // Clear SDK reference cache.
2055
- delete_option( 'fs_active_plugins' );
2056
- } else if ( fs_request_is_action( 'simulate_trial' ) ) {
2057
- check_admin_referer( 'simulate_trial' );
2058
-
2059
- $fs = freemius( fs_request_get( 'module_id' ) );
2060
-
2061
- // Update SDK install to at least 24 hours before.
2062
- $fs->_storage->install_timestamp = ( time() - WP_FS__TIME_24_HOURS_IN_SEC );
2063
- // Unset the trial shown timestamp.
2064
- unset( $fs->_storage->trial_promotion_shown );
2065
- } else if ( fs_request_is_action( 'delete_install' ) ) {
2066
- check_admin_referer( 'delete_install' );
2067
-
2068
- self::_delete_site_by_slug(
2069
- fs_request_get( 'slug' ),
2070
- fs_request_get( 'module_type' )
2071
- );
2072
- } else if ( fs_request_is_action( 'download_logs' ) ) {
2073
- check_admin_referer( 'download_logs' );
2074
-
2075
- $download_url = FS_Logger::download_db_logs(
2076
- fs_request_get( 'filters', false, 'post' )
2077
- );
2078
-
2079
- if ( false === $download_url ) {
2080
- wp_die( 'Oops... there was an error while generating the logs download file. Please try again and if it doesn\'t work contact support@freemius.com.' );
2081
- }
2082
-
2083
- fs_redirect( $download_url );
2084
- }
2085
- }
2086
-
2087
- /**
2088
- * @author Vova Feldman (@svovaf)
2089
- * @since 1.0.8
2090
- */
2091
- static function _debug_page_render() {
2092
- self::$_static_logger->entrance();
2093
-
2094
- $vars = array(
2095
- 'plugin_sites' => self::get_all_sites(),
2096
- 'theme_sites' => self::get_all_sites( WP_FS__MODULE_TYPE_THEME ),
2097
- 'users' => self::get_all_users(),
2098
- 'addons' => self::get_all_addons(),
2099
- 'account_addons' => self::get_all_account_addons(),
2100
- 'plugin_licenses' => self::get_all_licenses(),
2101
- 'theme_licenses' => self::get_all_licenses( WP_FS__MODULE_TYPE_THEME )
2102
- );
2103
-
2104
- fs_enqueue_local_style( 'fs_debug', '/admin/debug.css' );
2105
- fs_require_once_template( 'debug.php', $vars );
2106
- }
2107
-
2108
- #endregion
2109
-
2110
- #----------------------------------------------------------------------------------
2111
- #region Connectivity Issues
2112
- #----------------------------------------------------------------------------------
2113
-
2114
- /**
2115
- * Check if Freemius should be turned on for the current plugin install.
2116
- *
2117
- * Note:
2118
- * $this->_is_on is updated in has_api_connectivity()
2119
- *
2120
- * @author Vova Feldman (@svovaf)
2121
- * @since 1.0.9
2122
- *
2123
- * @return bool
2124
- */
2125
- function is_on() {
2126
- self::$_static_logger->entrance();
2127
-
2128
- if ( isset( $this->_is_on ) ) {
2129
- return $this->_is_on;
2130
- }
2131
-
2132
- // If already installed or pending then sure it's on :)
2133
- if ( $this->is_registered() || $this->is_pending_activation() ) {
2134
- $this->_is_on = true;
2135
-
2136
- return true;
2137
- }
2138
-
2139
- return false;
2140
- }
2141
-
2142
- /**
2143
- * @author Vova Feldman (@svovaf)
2144
- * @since 1.1.7.3
2145
- *
2146
- * @param bool $flush_if_no_connectivity
2147
- *
2148
- * @return bool
2149
- */
2150
- private function should_run_connectivity_test( $flush_if_no_connectivity = false ) {
2151
- if ( ! isset( $this->_storage->connectivity_test ) ) {
2152
- // Connectivity test was never executed, or cache was cleared.
2153
- return true;
2154
- }
2155
-
2156
- if ( WP_FS__PING_API_ON_IP_OR_HOST_CHANGES ) {
2157
- if ( WP_FS__IS_HTTP_REQUEST ) {
2158
- if ( $_SERVER['HTTP_HOST'] != $this->_storage->connectivity_test['host'] ) {
2159
- // Domain changed.
2160
- return true;
2161
- }
2162
-
2163
- if ( WP_FS__REMOTE_ADDR != $this->_storage->connectivity_test['server_ip'] ) {
2164
- // Server IP changed.
2165
- return true;
2166
- }
2167
- }
2168
- }
2169
-
2170
- if ( $this->_storage->connectivity_test['is_connected'] &&
2171
- $this->_storage->connectivity_test['is_active']
2172
- ) {
2173
- // API connected and Freemius is active - no need to run connectivity check.
2174
- return false;
2175
- }
2176
-
2177
- if ( $flush_if_no_connectivity ) {
2178
- /**
2179
- * If explicitly asked to flush when no connectivity - do it only
2180
- * if at least 10 sec passed from the last API connectivity test.
2181
- */
2182
- return ( isset( $this->_storage->connectivity_test['timestamp'] ) &&
2183
- ( WP_FS__SCRIPT_START_TIME - $this->_storage->connectivity_test['timestamp'] ) > 10 );
2184
- }
2185
-
2186
- /**
2187
- * @since 1.1.7 Don't check for connectivity on plugin downgrade.
2188
- */
2189
- $version = $this->get_plugin_version();
2190
- if ( version_compare( $version, $this->_storage->connectivity_test['version'], '>' ) ) {
2191
- // If it's a plugin version upgrade and Freemius is off or no connectivity, run connectivity test.
2192
- return true;
2193
- }
2194
-
2195
- return false;
2196
- }
2197
-
2198
- /**
2199
- * @author Vova Feldman (@svovaf)
2200
- * @since 1.1.7.4
2201
- *
2202
- * @return object|false
2203
- */
2204
- private function ping() {
2205
- if ( WP_FS__SIMULATE_NO_API_CONNECTIVITY ) {
2206
- return false;
2207
- }
2208
-
2209
- $version = $this->get_plugin_version();
2210
-
2211
- $is_update = $this->apply_filters( 'is_plugin_update', $this->is_plugin_update() );
2212
-
2213
- return $this->get_api_plugin_scope()->ping(
2214
- $this->get_anonymous_id(),
2215
- array(
2216
- 'is_update' => json_encode( $is_update ),
2217
- 'version' => $version,
2218
- 'sdk' => $this->version,
2219
- 'is_admin' => json_encode( is_admin() ),
2220
- 'is_ajax' => json_encode( self::is_ajax() ),
2221
- 'is_cron' => json_encode( self::is_cron() ),
2222
- 'is_http' => json_encode( WP_FS__IS_HTTP_REQUEST ),
2223
- )
2224
- );
2225
- }
2226
-
2227
- /**
2228
- * Check if there's any connectivity issue to Freemius API.
2229
- *
2230
- * @author Vova Feldman (@svovaf)
2231
- * @since 1.0.9
2232
- *
2233
- * @param bool $flush_if_no_connectivity
2234
- *
2235
- * @return bool
2236
- */
2237
- function has_api_connectivity( $flush_if_no_connectivity = false ) {
2238
- $this->_logger->entrance();
2239
-
2240
- if ( isset( $this->_has_api_connection ) && ( $this->_has_api_connection || ! $flush_if_no_connectivity ) ) {
2241
- return $this->_has_api_connection;
2242
- }
2243
-
2244
- if ( WP_FS__SIMULATE_NO_API_CONNECTIVITY &&
2245
- isset( $this->_storage->connectivity_test ) &&
2246
- true === $this->_storage->connectivity_test['is_connected']
2247
- ) {
2248
- unset( $this->_storage->connectivity_test );
2249
- }
2250
-
2251
- if ( ! $this->should_run_connectivity_test( $flush_if_no_connectivity ) ) {
2252
- $this->_has_api_connection = $this->_storage->connectivity_test['is_connected'];
2253
- /**
2254
- * @since 1.1.6 During dev mode, if there's connectivity - turn Freemius on regardless the configuration.
2255
- *
2256
- * @since 1.2.1.5 If the user running the premium version then ignore the 'is_active' flag and turn Freemius on to enable license key activation.
2257
- */
2258
- $this->_is_on = $this->_storage->connectivity_test['is_active'] ||
2259
- $this->is_premium() ||
2260
- ( WP_FS__DEV_MODE && $this->_has_api_connection && ! WP_FS__SIMULATE_FREEMIUS_OFF );
2261
-
2262
- return $this->_has_api_connection;
2263
- }
2264
-
2265
- $pong = $this->ping();
2266
- $is_connected = $this->get_api_plugin_scope()->is_valid_ping( $pong );
2267
-
2268
- if ( ! $is_connected ) {
2269
- // API failure.
2270
- $this->_add_connectivity_issue_message( $pong );
2271
- }
2272
-
2273
- $this->store_connectivity_info( $pong, $is_connected );
2274
-
2275
- return $this->_has_api_connection;
2276
- }
2277
-
2278
- /**
2279
- * @author Vova Feldman (@svovaf)
2280
- * @since 1.1.7.4
2281
- *
2282
- * @param object $pong
2283
- * @param bool $is_connected
2284
- */
2285
- private function store_connectivity_info( $pong, $is_connected ) {
2286
- $this->_logger->entrance();
2287
-
2288
- $version = $this->get_plugin_version();
2289
-
2290
- if ( ! $is_connected || WP_FS__SIMULATE_FREEMIUS_OFF ) {
2291
- $is_active = false;
2292
- } else {
2293
- $is_active = ( isset( $pong->is_active ) && true == $pong->is_active );
2294
- }
2295
-
2296
- $is_active = $this->apply_filters(
2297
- 'is_on',
2298
- $is_active,
2299
- $this->is_plugin_update(),
2300
- $version
2301
- );
2302
-
2303
- $this->_storage->connectivity_test = array(
2304
- 'is_connected' => $is_connected,
2305
- 'host' => $_SERVER['HTTP_HOST'],
2306
- 'server_ip' => WP_FS__REMOTE_ADDR,
2307
- 'is_active' => $is_active,
2308
- 'timestamp' => WP_FS__SCRIPT_START_TIME,
2309
- // Last version with connectivity attempt.
2310
- 'version' => $version,
2311
- );
2312
-
2313
- $this->_has_api_connection = $is_connected;
2314
- $this->_is_on = $is_active || ( WP_FS__DEV_MODE && $is_connected && ! WP_FS__SIMULATE_FREEMIUS_OFF );
2315
- }
2316
-
2317
- /**
2318
- * Force turning Freemius on.
2319
- *
2320
- * @author Vova Feldman (@svovaf)
2321
- * @since 1.1.8.1
2322
- *
2323
- * @return bool TRUE if successfully turned on.
2324
- */
2325
- private function turn_on() {
2326
- $this->_logger->entrance();
2327
-
2328
- if ( $this->is_on() || ! isset( $this->_storage->connectivity_test['is_active'] ) ) {
2329
- return false;
2330
- }
2331
-
2332
- $updated_connectivity = $this->_storage->connectivity_test;
2333
- $updated_connectivity['is_active'] = true;
2334
- $updated_connectivity['timestamp'] = WP_FS__SCRIPT_START_TIME;
2335
- $this->_storage->connectivity_test = $updated_connectivity;
2336
-
2337
- $this->_is_on = true;
2338
-
2339
- return true;
2340
- }
2341
-
2342
- /**
2343
- * Anonymous and unique site identifier (Hash).
2344
- *
2345
- * @author Vova Feldman (@svovaf)
2346
- * @since 1.1.0
2347
- *
2348
- * @return string
2349
- */
2350
- function get_anonymous_id() {
2351
- $unique_id = self::$_accounts->get_option( 'unique_id' );
2352
-
2353
- if ( empty( $unique_id ) || ! is_string( $unique_id ) ) {
2354
- $key = get_site_url();
2355
-
2356
- // If localhost, assign microtime instead of domain.
2357
- if ( WP_FS__IS_LOCALHOST ||
2358
- false !== strpos( $key, 'localhost' ) ||
2359
- false === strpos( $key, '.' )
2360
- ) {
2361
- $key = microtime();
2362
- }
2363
-
2364
- /**
2365
- * Base the unique identifier on the WP secure authentication key. Which
2366
- * turns the key into a secret anonymous identifier.
2367
- *
2368
- * @author Vova Feldman (@svovaf)
2369
- * @since 1.2.3
2370
- */
2371
- $unique_id = md5( $key . SECURE_AUTH_KEY );
2372
-
2373
- self::$_accounts->set_option( 'unique_id', $unique_id, true );
2374
- }
2375
-
2376
- $this->_logger->departure( $unique_id );
2377
-
2378
- return $unique_id;
2379
- }
2380
-
2381
- /**
2382
- * @author Vova Feldman (@svovaf)
2383
- * @since 1.1.7.4
2384
- *
2385
- * @return \WP_User
2386
- */
2387
- static function _get_current_wp_user() {
2388
- self::require_pluggable_essentials();
2389
-
2390
- return wp_get_current_user();
2391
- }
2392
-
2393
- /**
2394
- * @author Vova Feldman (@svovaf)
2395
- * @since 1.2.1.7
2396
- *
2397
- * @param string $email
2398
- *
2399
- * @return bool
2400
- */
2401
- static function is_valid_email( $email ) {
2402
- if ( false === filter_var( $email, FILTER_VALIDATE_EMAIL ) ) {
2403
- return false;
2404
- }
2405
-
2406
- $parts = explode( '@', $email );
2407
-
2408
- if ( 2 !== count( $parts ) || empty( $parts[1] ) ) {
2409
- return false;
2410
- }
2411
-
2412
- $blacklist = array(
2413
- 'admin.',
2414
- 'webmaster.',
2415
- 'localhost.',
2416
- 'dev.',
2417
- 'development.',
2418
- 'test.',
2419
- 'stage.',
2420
- 'staging.',
2421
- );
2422
-
2423
- // Make sure domain is not one of the blacklisted.
2424
- foreach ( $blacklist as $invalid ) {
2425
- if ( 0 === strpos( $parts[1], $invalid ) ) {
2426
- return false;
2427
- }
2428
- }
2429
-
2430
- // Get the UTF encoded domain name.
2431
- $domain = idn_to_ascii( $parts[1] ) . '.';
2432
-
2433
- return ( checkdnsrr( $domain, 'MX' ) || checkdnsrr( $domain, 'A' ) );
2434
- }
2435
-
2436
- /**
2437
- * Generate API connectivity issue message.
2438
- *
2439
- * @author Vova Feldman (@svovaf)
2440
- * @since 1.0.9
2441
- *
2442
- * @param mixed $api_result
2443
- * @param bool $is_first_failure
2444
- */
2445
- function _add_connectivity_issue_message( $api_result, $is_first_failure = true ) {
2446
- if ( ! $this->is_premium() && $this->_enable_anonymous ) {
2447
- // Don't add message if it's the free version and can run anonymously.
2448
- return;
2449
- }
2450
-
2451
- if ( ! function_exists( 'wp_nonce_url' ) ) {
2452
- require_once ABSPATH . 'wp-includes/functions.php';
2453
- }
2454
-
2455
- $current_user = self::_get_current_wp_user();
2456
- // $admin_email = get_option( 'admin_email' );
2457
- $admin_email = $current_user->user_email;
2458
-
2459
- // Aliases.
2460
- $deactivate_plugin_title = $this->esc_html_inline( 'That\'s exhausting, please deactivate', 'deactivate-plugin-title' );
2461
- $deactivate_plugin_desc = $this->esc_html_inline( 'We feel your frustration and sincerely apologize for the inconvenience. Hope to see you again in the future.', 'deactivate-plugin-desc' );
2462
- $install_previous_title = $this->esc_html_inline( 'Let\'s try your previous version', 'install-previous-title' );
2463
- $install_previous_desc = $this->esc_html_inline( 'Uninstall this version and install the previous one.', 'install-previous-desc' );
2464
- $fix_issue_title = $this->esc_html_inline( 'Yes - I\'m giving you a chance to fix it', 'fix-issue-title' );
2465
- $fix_issue_desc = $this->esc_html_inline( 'We will do our best to whitelist your server and resolve this issue ASAP. You will get a follow-up email to %s once we have an update.', 'fix-issue-desc' );
2466
- /* translators: %s: product title (e.g. "Awesome Plugin" requires an access to...) */
2467
- $x_requires_access_to_api = $this->esc_html_inline( '%s requires an access to our API.', 'x-requires-access-to-api' );
2468
- $sysadmin_title = $this->esc_html_inline( 'I\'m a system administrator', 'sysadmin-title' );
2469
- $happy_to_resolve_issue_asap = $this->esc_html_inline( 'We are sure it\'s an issue on our side and more than happy to resolve it for you ASAP if you give us a chance.', 'happy-to-resolve-issue-asap' );
2470
-
2471
- $message = false;
2472
- if ( is_object( $api_result ) &&
2473
- isset( $api_result->error ) &&
2474
- isset( $api_result->error->code )
2475
- ) {
2476
- switch ( $api_result->error->code ) {
2477
- case 'curl_missing':
2478
- $missing_methods = '';
2479
- if ( is_array( $api_result->missing_methods ) &&
2480
- ! empty( $api_result->missing_methods )
2481
- ) {
2482
- foreach ( $api_result->missing_methods as $m ) {
2483
- if ( 'curl_version' === $m ) {
2484
- continue;
2485
- }
2486
-
2487
- if ( ! empty( $missing_methods ) ) {
2488
- $missing_methods .= ', ';
2489
- }
2490
-
2491
- $missing_methods .= sprintf( '<code>%s</code>', $m );
2492
- }
2493
-
2494
- if ( ! empty( $missing_methods ) ) {
2495
- $missing_methods = sprintf(
2496
- '<br><br><b>%s</b> %s',
2497
- $this->esc_html_inline( 'Disabled method(s):', 'curl-disabled-methods' ),
2498
- $missing_methods
2499
- );
2500
- }
2501
- }
2502
-
2503
- $message = sprintf(
2504
- $x_requires_access_to_api . ' ' .
2505
- $this->esc_html_inline( 'We use PHP cURL library for the API calls, which is a very common library and usually installed and activated out of the box. Unfortunately, cURL is not activated (or disabled) on your server.', 'curl-missing-message' ) . ' ' .
2506
- $missing_methods .
2507
- ' %s',
2508
- '<b>' . $this->get_plugin_name() . '</b>',
2509
- sprintf(
2510
- '<ol id="fs_firewall_issue_options"><li>%s</li><li>%s</li><li>%s</li></ol>',
2511
- sprintf(
2512
- '<a class="fs-resolve" data-type="curl" href="#"><b>%s</b></a>%s',
2513
- $this->get_text_inline( 'I don\'t know what is cURL or how to install it, help me!', 'curl-missing-no-clue-title' ),
2514
- ' - ' . sprintf(
2515
- $this->get_text_inline( 'We\'ll make sure to contact your hosting company and resolve the issue. You will get a follow-up email to %s once we have an update.', 'curl-missing-no-clue-desc' ),
2516
- '<a href="mailto:' . $admin_email . '">' . $admin_email . '</a>'
2517
- )
2518
- ),
2519
- sprintf(
2520
- '<b>%s</b> - %s',
2521
- $sysadmin_title,
2522
- esc_html( sprintf( $this->get_text_inline( 'Great, please install cURL and enable it in your php.ini file. In addition, search for the \'disable_functions\' directive in your php.ini file and remove any disabled methods starting with \'curl_\'. To make sure it was successfully activated, use \'phpinfo()\'. Once activated, deactivate the %s and reactivate it back again.', 'curl-missing-sysadmin-desc' ), $this->get_module_label( true ) ) )
2523
- ),
2524
- sprintf(
2525
- '<a href="%s"><b>%s</b></a> - %s',
2526
- wp_nonce_url( 'plugins.php?action=deactivate&amp;plugin=' . $this->_plugin_basename . '&amp;plugin_status=all&amp;paged=1&amp;s=', 'deactivate-plugin_' . $this->_plugin_basename ),
2527
- $deactivate_plugin_title,
2528
- $deactivate_plugin_desc
2529
- )
2530
- )
2531
- );
2532
- break;
2533
- case 'cloudflare_ddos_protection':
2534
- $message = sprintf(
2535
- $x_requires_access_to_api . ' ' .
2536
- $this->esc_html_inline( 'From unknown reason, CloudFlare, the firewall we use, blocks the connection.', 'cloudflare-blocks-connection-message' ) . ' ' .
2537
- $happy_to_resolve_issue_asap .
2538
- ' %s',
2539
- '<b>' . $this->get_plugin_name() . '</b>',
2540
- sprintf(
2541
- '<ol id="fs_firewall_issue_options"><li>%s</li><li>%s</li><li>%s</li></ol>',
2542
- sprintf(
2543
- '<a class="fs-resolve" data-type="cloudflare" href="#"><b>%s</b></a>%s',
2544
- $fix_issue_title,
2545
- ' - ' . sprintf(
2546
- $fix_issue_desc,
2547
- '<a href="mailto:' . $admin_email . '">' . $admin_email . '</a>'
2548
- )
2549
- ),
2550
- sprintf(
2551
- '<a href="%s" target="_blank"><b>%s</b></a> - %s',
2552
- sprintf( 'https://wordpress.org/plugins/%s/download/', $this->_slug ),
2553
- $install_previous_title,
2554
- $install_previous_desc
2555
- ),
2556
- sprintf(
2557
- '<a href="%s"><b>%s</b></a> - %s',
2558
- wp_nonce_url( 'plugins.php?action=deactivate&amp;plugin=' . $this->_plugin_basename . '&amp;plugin_status=all&amp;paged=1&amp;s=' . '', 'deactivate-plugin_' . $this->_plugin_basename ),
2559
- $deactivate_plugin_title,
2560
- $deactivate_plugin_desc
2561
- )
2562
- )
2563
- );
2564
- break;
2565
- case 'squid_cache_block':
2566
- $message = sprintf(
2567
- $x_requires_access_to_api . ' ' .
2568
- $this->esc_html_inline( 'It looks like your server is using Squid ACL (access control lists), which blocks the connection.', 'squid-blocks-connection-message' ) .
2569
- ' %s',
2570
- '<b>' . $this->get_plugin_name() . '</b>',
2571
- sprintf(
2572
- '<ol id="fs_firewall_issue_options"><li>%s</li><li>%s</li><li>%s</li></ol>',
2573
- sprintf(
2574
- '<a class="fs-resolve" data-type="squid" href="#"><b>%s</b></a> - %s',
2575
- $this->esc_html_inline( 'I don\'t know what is Squid or ACL, help me!', 'squid-no-clue-title' ),
2576
- sprintf(
2577
- $this->esc_html_inline( 'We\'ll make sure to contact your hosting company and resolve the issue. You will get a follow-up email to %s once we have an update.', 'squid-no-clue-desc' ),
2578
- '<a href="mailto:' . $admin_email . '">' . $admin_email . '</a>'
2579
- )
2580
- ),
2581
- sprintf(
2582
- '<b>%s</b> - %s',
2583
- $sysadmin_title,
2584
- sprintf(
2585
- $this->esc_html_inline( 'Great, please whitelist the following domains: %s. Once you are done, deactivate the %s and activate it again.', 'squid-sysadmin-desc' ),
2586
- // We use a filter since the plugin might require additional API connectivity.
2587
- '<b>' . implode( ', ', $this->apply_filters( 'api_domains', array( 'api.freemius.com', 'wp.freemius.com' ) ) ) . '</b>',
2588
- $this->_module_type
2589
- )
2590
- ),
2591
- sprintf(
2592
- '<a href="%s"><b>%s</b></a> - %s',
2593
- wp_nonce_url( 'plugins.php?action=deactivate&amp;plugin=' . $this->_plugin_basename . '&amp;plugin_status=all&amp;paged=1&amp;s=', 'deactivate-plugin_' . $this->_plugin_basename ),
2594
- $deactivate_plugin_title,
2595
- $deactivate_plugin_desc
2596
- )
2597
- )
2598
- );
2599
- break;
2600
- // default:
2601
- // $message = $this->get_text_inline( 'connectivity-test-fails-message' );
2602
- // break;
2603
- }
2604
- }
2605
-
2606
- $message_id = 'failed_connect_api';
2607
- $type = 'error';
2608
-
2609
- $connectivity_test_fails_message = $this->esc_html_inline( 'From unknown reason, the API connectivity test failed.', 'connectivity-test-fails-message' );
2610
-
2611
- if ( false === $message ) {
2612
- if ( $is_first_failure ) {
2613
- // First attempt failed.
2614
- $message = sprintf(
2615
- $x_requires_access_to_api . ' ' .
2616
- $connectivity_test_fails_message . ' ' .
2617
- $this->esc_html_inline( 'It\'s probably a temporary issue on our end. Just to be sure, with your permission, would it be o.k to run another connectivity test?', 'connectivity-test-maybe-temporary' ) . '<br><br>' .
2618
- '%s',
2619
- '<b>' . $this->get_plugin_name() . '</b>',
2620
- sprintf(
2621
- '<div id="fs_firewall_issue_options">%s %s</div>',
2622
- sprintf(
2623
- '<a class="button button-primary fs-resolve" data-type="retry_ping" href="#">%s</a>',
2624
- $this->get_text_inline( 'Yes - do your thing', 'yes-do-your-thing' )
2625
- ),
2626
- sprintf(
2627
- '<a href="%s" class="button">%s</a>',
2628
- wp_nonce_url( 'plugins.php?action=deactivate&amp;plugin=' . $this->_plugin_basename . '&amp;plugin_status=all&amp;paged=1&amp;s=', 'deactivate-plugin_' . $this->_plugin_basename ),
2629
- $this->get_text_inline( 'No - just deactivate', 'no-deactivate' )
2630
- )
2631
- )
2632
- );
2633
-
2634
- $message_id = 'failed_connect_api_first';
2635
- $type = 'promotion';
2636
- } else {
2637
- // Second connectivity attempt failed.
2638
- $message = sprintf(
2639
- $x_requires_access_to_api . ' ' .
2640
- $connectivity_test_fails_message . ' ' .
2641
- $happy_to_resolve_issue_asap .
2642
- ' %s',
2643
- '<b>' . $this->get_plugin_name() . '</b>',
2644
- sprintf(
2645
- '<ol id="fs_firewall_issue_options"><li>%s</li><li>%s</li><li>%s</li></ol>',
2646
- sprintf(
2647
- '<a class="fs-resolve" data-type="general" href="#"><b>%s</b></a>%s',
2648
- $fix_issue_title,
2649
- ' - ' . sprintf(
2650
- $fix_issue_desc,
2651
- '<a href="mailto:' . $admin_email . '">' . $admin_email . '</a>'
2652
- )
2653
- ),
2654
- sprintf(
2655
- '<a href="%s" target="_blank"><b>%s</b></a> - %s',
2656
- sprintf( 'https://wordpress.org/plugins/%s/download/', $this->_slug ),
2657
- $install_previous_title,
2658
- $install_previous_desc
2659
- ),
2660
- sprintf(
2661
- '<a href="%s"><b>%s</b></a> - %s',
2662
- wp_nonce_url( 'plugins.php?action=deactivate&amp;plugin=' . $this->_plugin_basename . '&amp;plugin_status=all&amp;paged=1&amp;s=', 'deactivate-plugin_' . $this->_plugin_basename ),
2663
- $deactivate_plugin_title,
2664
- $deactivate_plugin_desc
2665
- )
2666
- )
2667
- );
2668
- }
2669
- }
2670
-
2671
- $this->_admin_notices->add_sticky(
2672
- $message,
2673
- $message_id,
2674
- $this->get_text_x_inline( 'Oops', 'exclamation', 'oops' ) . '...',
2675
- $type
2676
- );
2677
- }
2678
-
2679
- /**
2680
- * Handle user request to resolve connectivity issue.
2681
- * This method will send an email to Freemius API technical staff for resolution.
2682
- * The email will contain server's info and installed plugins (might be caching issue).
2683
- *
2684
- * @author Vova Feldman (@svovaf)
2685
- * @since 1.0.9
2686
- */
2687
- function _email_about_firewall_issue() {
2688
- $this->_admin_notices->remove_sticky( 'failed_connect_api' );
2689
-
2690
- $pong = $this->ping();
2691
-
2692
- $is_connected = $this->get_api_plugin_scope()->is_valid_ping( $pong );
2693
-
2694
- if ( $is_connected ) {
2695
- $this->store_connectivity_info( $pong, $is_connected );
2696
-
2697
- echo $this->get_after_plugin_activation_redirect_url();
2698
- exit;
2699
- }
2700
-
2701
- $current_user = self::_get_current_wp_user();
2702
- $admin_email = $current_user->user_email;
2703
-
2704
- $error_type = fs_request_get( 'error_type', 'general' );
2705
-
2706
- switch ( $error_type ) {
2707
- case 'squid':
2708
- $title = 'Squid ACL Blocking Issue';
2709
- break;
2710
- case 'cloudflare':
2711
- $title = 'CloudFlare Blocking Issue';
2712
- break;
2713
- default:
2714
- $title = 'API Connectivity Issue';
2715
- break;
2716
- }
2717
-
2718
- $custom_email_sections = array();
2719
-
2720
- // Add 'API Error' custom email section.
2721
- $custom_email_sections['api_error'] = array(
2722
- 'title' => 'API Error',
2723
- 'rows' => array(
2724
- 'ping' => array(
2725
- 'API Error',
2726
- is_string( $pong ) ? htmlentities( $pong ) : json_encode( $pong )
2727
- ),
2728
- )
2729
- );
2730
-
2731
- // Send email with technical details to resolve API connectivity issues.
2732
- $this->send_email(
2733
- 'api@freemius.com', // recipient
2734
- $title . ' [' . $this->get_plugin_name() . ']', // subject
2735
- $custom_email_sections,
2736
- array( "Reply-To: $admin_email <$admin_email>" ) // headers
2737
- );
2738
-
2739
- $this->_admin_notices->add_sticky(
2740
- sprintf(
2741
- $this->get_text_inline( 'Thank for giving us the chance to fix it! A message was just sent to our technical staff. We will get back to you as soon as we have an update to %s. Appreciate your patience.', 'fix-request-sent-message' ),
2742
- '<a href="mailto:' . $admin_email . '">' . $admin_email . '</a>'
2743
- ),
2744
- 'server_details_sent'
2745
- );
2746
-
2747
- // Action was taken, tell that API connectivity troubleshooting should be off now.
2748
-
2749
- echo "1";
2750
- exit;
2751
- }
2752
-
2753
- /**
2754
- * Handle connectivity test retry approved by the user.
2755
- *
2756
- * @author Vova Feldman (@svovaf)
2757
- * @since 1.1.7.4
2758
- */
2759
- function _retry_connectivity_test() {
2760
- $this->_admin_notices->remove_sticky( 'failed_connect_api_first' );
2761
-
2762
- $pong = $this->ping();
2763
-
2764
- $is_connected = $this->get_api_plugin_scope()->is_valid_ping( $pong );
2765
-
2766
- if ( $is_connected ) {
2767
- $this->store_connectivity_info( $pong, $is_connected );
2768
-
2769
- echo $this->get_after_plugin_activation_redirect_url();
2770
- } else {
2771
- // Add connectivity issue message after 2nd failed attempt.
2772
- $this->_add_connectivity_issue_message( $pong, false );
2773
-
2774
- echo "1";
2775
- }
2776
-
2777
- exit;
2778
- }
2779
-
2780
- static function _add_firewall_issues_javascript() {
2781
- $params = array();
2782
- fs_require_once_template( 'firewall-issues-js.php', $params );
2783
- }
2784
-
2785
- #endregion
2786
-
2787
- #----------------------------------------------------------------------------------
2788
- #region Email
2789
- #----------------------------------------------------------------------------------
2790
-
2791
- /**
2792
- * Generates and sends an HTML email with customizable sections.
2793
- *
2794
- * @author Leo Fajardo (@leorw)
2795
- * @since 1.1.2
2796
- *
2797
- * @param string $to_address
2798
- * @param string $subject
2799
- * @param array $sections
2800
- * @param array $headers
2801
- *
2802
- * @return bool Whether the email contents were sent successfully.
2803
- */
2804
- private function send_email(
2805
- $to_address,
2806
- $subject,
2807
- $sections = array(),
2808
- $headers = array()
2809
- ) {
2810
- $default_sections = $this->get_email_sections();
2811
-
2812
- // Insert new sections or replace the default email sections.
2813
- if ( is_array( $sections ) && ! empty( $sections ) ) {
2814
- foreach ( $sections as $section_id => $custom_section ) {
2815
- if ( ! isset( $default_sections[ $section_id ] ) ) {
2816
- // If the section does not exist, add it.
2817
- $default_sections[ $section_id ] = $custom_section;
2818
- } else {
2819
- // If the section already exists, override it.
2820
- $current_section = $default_sections[ $section_id ];
2821
-
2822
- // Replace the current section's title if a custom section title exists.
2823
- if ( isset( $custom_section['title'] ) ) {
2824
- $current_section['title'] = $custom_section['title'];
2825
- }
2826
-
2827
- // Insert new rows under the current section or replace the default rows.
2828
- if ( isset( $custom_section['rows'] ) && is_array( $custom_section['rows'] ) && ! empty( $custom_section['rows'] ) ) {
2829
- foreach ( $custom_section['rows'] as $row_id => $row ) {
2830
- $current_section['rows'][ $row_id ] = $row;
2831
- }
2832
- }
2833
-
2834
- $default_sections[ $section_id ] = $current_section;
2835
- }
2836
- }
2837
- }
2838
-
2839
- $vars = array( 'sections' => $default_sections );
2840
- $message = fs_get_template( 'email.php', $vars );
2841
-
2842
- // Set the type of email to HTML.
2843
- $headers[] = 'Content-type: text/html; charset=UTF-8';
2844
-
2845
- $header_string = implode( "\r\n", $headers );
2846
-
2847
- return wp_mail(
2848
- $to_address,
2849
- $subject,
2850
- $message,
2851
- $header_string
2852
- );
2853
- }
2854
-
2855
- /**
2856
- * Generates the data for the sections of the email content.
2857
- *
2858
- * @author Leo Fajardo (@leorw)
2859
- * @since 1.1.2
2860
- *
2861
- * @return array
2862
- */
2863
- private function get_email_sections() {
2864
- // Retrieve the current user's information so that we can get the user's email, first name, and last name below.
2865
- $current_user = self::_get_current_wp_user();
2866
-
2867
- // Retrieve the cURL version information so that we can get the version number below.
2868
- $curl_version_information = curl_version();
2869
-
2870
- $active_plugin = self::get_active_plugins();
2871
-
2872
- // Generate the list of active plugins separated by new line.
2873
- $active_plugin_string = '';
2874
- foreach ( $active_plugin as $plugin ) {
2875
- $active_plugin_string .= sprintf(
2876
- '<a href="%s">%s</a> [v%s]<br>',
2877
- $plugin['PluginURI'],
2878
- $plugin['Name'],
2879
- $plugin['Version']
2880
- );
2881
- }
2882
-
2883
- $server_ip = WP_FS__REMOTE_ADDR;
2884
-
2885
- // Add PHP info for deeper investigation.
2886
- ob_start();
2887
- phpinfo();
2888
- $php_info = ob_get_clean();
2889
-
2890
- $api_domain = substr( FS_API__ADDRESS, strpos( FS_API__ADDRESS, ':' ) + 3 );
2891
-
2892
- // Generate the default email sections.
2893
- $sections = array(
2894
- 'sdk' => array(
2895
- 'title' => 'SDK',
2896
- 'rows' => array(
2897
- 'fs_version' => array( 'FS Version', $this->version ),
2898
- 'curl_version' => array( 'cURL Version', $curl_version_information['version'] )
2899
- )
2900
- ),
2901
- 'plugin' => array(
2902
- 'title' => ucfirst( $this->get_module_type() ),
2903
- 'rows' => array(
2904
- 'name' => array( 'Name', $this->get_plugin_name() ),
2905
- 'version' => array( 'Version', $this->get_plugin_version() )
2906
- )
2907
- ),
2908
- 'api' => array(
2909
- 'title' => 'API Subdomain',
2910
- 'rows' => array(
2911
- 'dns' => array(
2912
- 'DNS_CNAME',
2913
- function_exists( 'dns_get_record' ) ?
2914
- var_export( dns_get_record( $api_domain, DNS_CNAME ), true ) :
2915
- 'dns_get_record() disabled/blocked'
2916
- ),
2917
- 'ip' => array(
2918
- 'IP',
2919
- function_exists( 'gethostbyname' ) ?
2920
- gethostbyname( $api_domain ) :
2921
- 'gethostbyname() disabled/blocked'
2922
- ),
2923
- ),
2924
- ),
2925
- 'site' => array(
2926
- 'title' => 'Site',
2927
- 'rows' => array(
2928
- 'unique_id' => array( 'Unique ID', $this->get_anonymous_id() ),
2929
- 'address' => array( 'Address', site_url() ),
2930
- 'host' => array(
2931
- 'HTTP_HOST',
2932
- ( ! empty( $_SERVER['HTTP_HOST'] ) ? $_SERVER['HTTP_HOST'] : '' )
2933
- ),
2934
- 'hosting' => array(
2935
- 'Hosting Company' => fs_request_has( 'hosting_company' ) ?
2936
- fs_request_get( 'hosting_company' ) :
2937
- 'Unknown',
2938
- ),
2939
- 'server_addr' => array(
2940
- 'SERVER_ADDR',
2941
- '<a href="http://www.projecthoneypot.org/ip_' . $server_ip . '">' . $server_ip . '</a>'
2942
- )
2943
- )
2944
- ),
2945
- 'user' => array(
2946
- 'title' => 'User',
2947
- 'rows' => array(
2948
- 'email' => array( 'Email', $current_user->user_email ),
2949
- 'first' => array( 'First', $current_user->user_firstname ),
2950
- 'last' => array( 'Last', $current_user->user_lastname )
2951
- )
2952
- ),
2953
- 'plugins' => array(
2954
- 'title' => 'Plugins',
2955
- 'rows' => array(
2956
- 'active_plugins' => array( 'Active Plugins', $active_plugin_string )
2957
- )
2958
- ),
2959
- 'php_info' => array(
2960
- 'title' => 'PHP Info',
2961
- 'rows' => array(
2962
- 'info' => array( $php_info )
2963
- ),
2964
- )
2965
- );
2966
-
2967
- // Allow the sections to be modified by other code.
2968
- $sections = $this->apply_filters( 'email_template_sections', $sections );
2969
-
2970
- return $sections;
2971
- }
2972
-
2973
- #endregion
2974
-
2975
- #----------------------------------------------------------------------------------
2976
- #region Initialization
2977
- #----------------------------------------------------------------------------------
2978
-
2979
- /**
2980
- * Init plugin's Freemius instance.
2981
- *
2982
- * @author Vova Feldman (@svovaf)
2983
- * @since 1.0.1
2984
- *
2985
- * @param number $id
2986
- * @param string $public_key
2987
- * @param bool $is_live
2988
- * @param bool $is_premium
2989
- */
2990
- function init( $id, $public_key, $is_live = true, $is_premium = true ) {
2991
- $this->_logger->entrance();
2992
-
2993
- $this->dynamic_init( array(
2994
- 'id' => $id,
2995
- 'public_key' => $public_key,
2996
- 'is_live' => $is_live,
2997
- 'is_premium' => $is_premium,
2998
- ) );
2999
- }
3000
-
3001
- /**
3002
- * Dynamic initiator, originally created to support initiation
3003
- * with parent_id for add-ons.
3004
- *
3005
- * @author Vova Feldman (@svovaf)
3006
- * @since 1.0.6
3007
- *
3008
- * @param array $plugin_info
3009
- *
3010
- * @throws Freemius_Exception
3011
- */
3012
- function dynamic_init( array $plugin_info ) {
3013
- $this->_logger->entrance();
3014
-
3015
- $this->parse_settings( $plugin_info );
3016
-
3017
- if ( ! self::is_ajax() ) {
3018
- if ( ! $this->is_addon() || $this->is_only_premium() ) {
3019
- add_action( 'admin_menu', array( &$this, '_prepare_admin_menu' ), WP_FS__LOWEST_PRIORITY );
3020
- }
3021
- }
3022
-
3023
- if ( $this->should_stop_execution() ) {
3024
- return;
3025
- }
3026
-
3027
- if ( ! $this->is_registered() ) {
3028
- if ( $this->is_anonymous() ) {
3029
- // If user skipped, no need to test connectivity.
3030
- $this->_has_api_connection = true;
3031
- $this->_is_on = true;
3032
- } else {
3033
- if ( ! $this->has_api_connectivity() ) {
3034
- if ( $this->_admin_notices->has_sticky( 'failed_connect_api_first' ) ||
3035
- $this->_admin_notices->has_sticky( 'failed_connect_api' )
3036
- ) {
3037
- if ( ! $this->_enable_anonymous || $this->is_premium() ) {
3038
- // If anonymous mode is disabled, add firewall admin-notice message.
3039
- add_action( 'admin_footer', array( 'Freemius', '_add_firewall_issues_javascript' ) );
3040
-
3041
- $this->add_ajax_action( 'resolve_firewall_issues', array(
3042
- &$this,
3043
- '_email_about_firewall_issue'
3044
- ) );
3045
-
3046
- $this->add_ajax_action( 'retry_connectivity_test', array(
3047
- &$this,
3048
- '_retry_connectivity_test'
3049
- ) );
3050
- }
3051
- }
3052
-
3053
- return;
3054
- } else {
3055
- $this->_admin_notices->remove_sticky( array(
3056
- 'failed_connect_api_first',
3057
- 'failed_connect_api',
3058
- ) );
3059
-
3060
- if ( $this->_anonymous_mode ) {
3061
- // Simulate anonymous mode.
3062
- $this->_is_anonymous = true;
3063
- }
3064
- }
3065
- }
3066
-
3067
- // Check if Freemius is on for the current plugin.
3068
- // This MUST be executed after all the plugin variables has been loaded.
3069
- if ( ! $this->is_on() ) {
3070
- return;
3071
- }
3072
- }
3073
-
3074
- if ( $this->has_api_connectivity() ) {
3075
- if ( self::is_cron() ) {
3076
- $this->hook_callback_to_sync_cron();
3077
- } else if ( $this->is_user_in_admin() ) {
3078
- /**
3079
- * Schedule daily data sync cron if:
3080
- *
3081
- * 1. User opted-in (for tracking).
3082
- * 2. If skipped, but later upgraded (opted-in via upgrade).
3083
- *
3084
- * @author Vova Feldman (@svovaf)
3085
- * @since 1.1.7.3
3086
- *
3087
- */
3088
- if ( $this->is_registered() ) {
3089
- if ( ! $this->is_sync_cron_on() && $this->is_tracking_allowed() ) {
3090
- $this->schedule_sync_cron();
3091
- }
3092
- }
3093
-
3094
- /**
3095
- * Check if requested for manual blocking background sync.
3096
- */
3097
- if ( fs_request_has( 'background_sync' ) ) {
3098
- $this->run_manual_sync();
3099
- }
3100
- }
3101
- }
3102
-
3103
- if ( $this->is_registered() ) {
3104
- $this->hook_callback_to_install_sync();
3105
- }
3106
-
3107
- if ( $this->is_addon() ) {
3108
- if ( $this->is_parent_plugin_installed() ) {
3109
- // Link to parent FS.
3110
- $this->_parent = self::get_instance_by_id( $this->_plugin->parent_plugin_id );
3111
-
3112
- // Get parent plugin reference.
3113
- $this->_parent_plugin = $this->_parent->get_plugin();
3114
- }
3115
- }
3116
-
3117
- if ( $this->is_user_in_admin() ) {
3118
- if ( self::is_plugins_page() && $this->is_plugin() ) {
3119
- $this->hook_plugin_action_links();
3120
- }
3121
-
3122
- if ( $this->is_addon() ) {
3123
- if ( ! $this->is_parent_plugin_installed() ) {
3124
- $parent_name = $this->get_option( $plugin_info, 'parent_name', null );
3125
-
3126
- if ( isset( $plugin_info['parent'] ) ) {
3127
- $parent_name = $this->get_option( $plugin_info['parent'], 'name', null );
3128
- }
3129
-
3130
- $this->_admin_notices->add(
3131
- ( ! empty( $parent_name ) ?
3132
- sprintf( $this->get_text_x_inline( '%s cannot run without %s.', 'addonX cannot run without pluginY', 'addon-x-cannot-run-without-y' ), $this->get_plugin_name(), $parent_name ) :
3133
- sprintf( $this->get_text_x_inline( '%s cannot run without the plugin.', 'addonX cannot run...', 'addon-x-cannot-run-without-parent' ), $this->get_plugin_name() )
3134
- ),
3135
- $this->get_text_x_inline( 'Oops', 'exclamation', 'oops' ) . '...',
3136
- 'error'
3137
- );
3138
-
3139
- return;
3140
- } else {
3141
- if ( $this->_parent->is_registered() && ! $this->is_registered() ) {
3142
- // If parent plugin activated, automatically install add-on for the user.
3143
- $this->_activate_addon_account( $this->_parent );
3144
- } else if ( ! $this->_parent->is_registered() && $this->is_registered() ) {
3145
- // If add-on activated and parent not, automatically install parent for the user.
3146
- $this->activate_parent_account( $this->_parent );
3147
- }
3148
-
3149
- // @todo This should be only executed on activation. It should be migrated to register_activation_hook() together with other activation related logic.
3150
- if ( $this->is_premium() ) {
3151
- // Remove add-on download admin-notice.
3152
- $this->_parent->_admin_notices->remove_sticky( array(
3153
- 'addon_plan_upgraded_' . $this->_slug,
3154
- 'no_addon_license_' . $this->_slug,
3155
- ) );
3156
- }
3157
-
3158
- // $this->deactivate_premium_only_addon_without_license();
3159
- }
3160
- } else {
3161
- if ( $this->has_addons() &&
3162
- 'plugin-information' === fs_request_get( 'tab', false ) &&
3163
- $this->get_id() == fs_request_get( 'parent_plugin_id', false )
3164
- ) {
3165
- require_once WP_FS__DIR_INCLUDES . '/fs-plugin-info-dialog.php';
3166
-
3167
- new FS_Plugin_Info_Dialog( $this );
3168
- }
3169
- }
3170
-
3171
- add_action( 'admin_init', array( &$this, '_admin_init_action' ) );
3172
-
3173
- // if ( $this->is_registered() ||
3174
- // $this->is_anonymous() ||
3175
- // $this->is_pending_activation()
3176
- // ) {
3177
- // $this->_init_admin();
3178
- // }
3179
- }
3180
-
3181
- /**
3182
- * Should be called outside `$this->is_user_in_admin()` scope
3183
- * because the updater has some logic that needs to be executed
3184
- * during AJAX calls.
3185
- *
3186
- * Currently we need to hook to the `http_request_host_is_external` filter.
3187
- * In the future, there might be additional logic added.
3188
- *
3189
- * @author Vova Feldman
3190
- * @since 1.2.1.6
3191
- */
3192
- if ( $this->is_premium() && $this->has_release_on_freemius() ) {
3193
- new FS_Plugin_Updater( $this );
3194
- }
3195
-
3196
- $this->do_action( 'initiated' );
3197
-
3198
- if ( $this->_storage->prev_is_premium !== $this->_plugin->is_premium ) {
3199
- if ( isset( $this->_storage->prev_is_premium ) ) {
3200
- $this->apply_filters(
3201
- 'after_code_type_change',
3202
- // New code type.
3203
- $this->_plugin->is_premium
3204
- );
3205
- } else {
3206
- // Set for code type for the first time.
3207
- $this->_storage->prev_is_premium = $this->_plugin->is_premium;
3208
- }
3209
- }
3210
-
3211
- if ( ! $this->is_addon() ) {
3212
- if ( $this->is_registered() ) {
3213
- // Fix for upgrade from versions < 1.0.9.
3214
- if ( ! isset( $this->_storage->activation_timestamp ) ) {
3215
- $this->_storage->activation_timestamp = WP_FS__SCRIPT_START_TIME;
3216
- }
3217
-
3218
- $this->do_action( 'after_init_plugin_registered' );
3219
- } else if ( $this->is_anonymous() ) {
3220
- $this->do_action( 'after_init_plugin_anonymous' );
3221
- } else if ( $this->is_pending_activation() ) {
3222
- $this->do_action( 'after_init_plugin_pending_activations' );
3223
- }
3224
- } else {
3225
- if ( $this->is_registered() ) {
3226
- $this->do_action( 'after_init_addon_registered' );
3227
- } else if ( $this->is_anonymous() ) {
3228
- $this->do_action( 'after_init_addon_anonymous' );
3229
- } else if ( $this->is_pending_activation() ) {
3230
- $this->do_action( 'after_init_addon_pending_activations' );
3231
- }
3232
- }
3233
- }
3234
-
3235
- /**
3236
- * @author Leo Fajardo (@leorw)
3237
- *
3238
- * @since 1.2.1.5
3239
- */
3240
- function _stop_tracking_callback() {
3241
- $this->_logger->entrance();
3242
-
3243
- $this->check_ajax_referer( 'stop_tracking' );
3244
-
3245
- $result = $this->stop_tracking();
3246
-
3247
- if ( true === $result ) {
3248
- self::shoot_ajax_success();
3249
- }
3250
-
3251
- $this->_logger->api_error( $result );
3252
-
3253
- self::shoot_ajax_failure(
3254
- sprintf( $this->get_text_inline( 'Unexpected API error. Please contact the %s\'s author with the following error.', 'unexpected-api-error' ), $this->_module_type ) .
3255
- ( $this->is_api_error( $result ) && isset( $result->error ) ?
3256
- $result->error->message :
3257
- var_export( $result, true ) )
3258
- );
3259
- }
3260
-
3261
- /**
3262
- * @author Leo Fajardo (@leorw)
3263
- * @since 1.2.1.5
3264
- */
3265
- function _allow_tracking_callback() {
3266
- $this->_logger->entrance();
3267
-
3268
- $this->check_ajax_referer( 'allow_tracking' );
3269
-
3270
- $result = $this->allow_tracking();
3271
-
3272
- if ( true === $result ) {
3273
- self::shoot_ajax_success();
3274
- }
3275
-
3276
- $this->_logger->api_error( $result );
3277
-
3278
- self::shoot_ajax_failure(
3279
- sprintf( $this->get_text_inline( 'Unexpected API error. Please contact the %s\'s author with the following error.', 'unexpected-api-error' ), $this->_module_type ) .
3280
- ( $this->is_api_error( $result ) && isset( $result->error ) ?
3281
- $result->error->message :
3282
- var_export( $result, true ) )
3283
- );
3284
- }
3285
-
3286
- /**
3287
- * Opt-out from usage tracking.
3288
- *
3289
- * Note: This will not delete the account information but will stop all tracking.
3290
- *
3291
- * Returns:
3292
- * 1. FALSE - If the user never opted-in.
3293
- * 2. TRUE - If successfully opted-out.
3294
- * 3. object - API result on failure.
3295
- *
3296
- * @author Leo Fajardo (@leorw)
3297
- * @since 1.2.1.5
3298
- *
3299
- * @return bool|object
3300
- */
3301
- function stop_tracking() {
3302
- $this->_logger->entrance();
3303
-
3304
- if ( ! $this->is_registered() ) {
3305
- // User never opted-in.
3306
- return false;
3307
- }
3308
-
3309
- if ( $this->is_tracking_prohibited() ) {
3310
- // Already disconnected.
3311
- return true;
3312
- }
3313
-
3314
- // Send update to FS.
3315
- $result = $this->get_api_site_scope()->call( '/?fields=is_disconnected', 'put', array(
3316
- 'is_disconnected' => true
3317
- ) );
3318
-
3319
- if ( ! $this->is_api_result_entity( $result ) ||
3320
- ! isset( $result->is_disconnected ) ||
3321
- ! $result->is_disconnected
3322
- ) {
3323
- $this->_logger->api_error( $result );
3324
-
3325
- return $result;
3326
- }
3327
-
3328
- $this->_site->is_disconnected = $result->is_disconnected;
3329
- $this->_store_site();
3330
-
3331
- $this->clear_sync_cron();
3332
-
3333
- // Successfully disconnected.
3334
- return true;
3335
- }
3336
-
3337
- /**
3338
- * Opt-in back into usage tracking.
3339
- *
3340
- * Note: This will only work if the user opted-in previously.
3341
- *
3342
- * Returns:
3343
- * 1. FALSE - If the user never opted-in.
3344
- * 2. TRUE - If successfully opted-in back to usage tracking.
3345
- * 3. object - API result on failure.
3346
- *
3347
- * @author Leo Fajardo (@leorw)
3348
- * @since 1.2.1.5
3349
- *
3350
- * @return bool|object
3351
- */
3352
- function allow_tracking() {
3353
- $this->_logger->entrance();
3354
-
3355
- if ( ! $this->is_registered() ) {
3356
- // User never opted-in.
3357
- return false;
3358
- }
3359
-
3360
- if ( $this->is_tracking_allowed() ) {
3361
- // Tracking already allowed.
3362
- return true;
3363
- }
3364
-
3365
- $result = $this->get_api_site_scope()->call( '/?is_disconnected', 'put', array(
3366
- 'is_disconnected' => false
3367
- ) );
3368
-
3369
- if ( ! $this->is_api_result_entity( $result ) ||
3370
- ! isset( $result->is_disconnected ) ||
3371
- $result->is_disconnected
3372
- ) {
3373
- $this->_logger->api_error( $result );
3374
-
3375
- return $result;
3376
- }
3377
-
3378
- $this->_site->is_disconnected = $result->is_disconnected;
3379
- $this->_store_site();
3380
-
3381
- $this->schedule_sync_cron();
3382
-
3383
- // Successfully reconnected.
3384
- return true;
3385
- }
3386
-
3387
- /**
3388
- * If user opted-in and later disabled usage-tracking,
3389
- * re-allow tracking for licensing and updates.
3390
- *
3391
- * @author Leo Fajardo (@leorw)
3392
- *
3393
- * @since 1.2.1.5
3394
- */
3395
- private function reconnect_locally() {
3396
- $this->_logger->entrance();
3397
-
3398
- if ( $this->is_tracking_prohibited() &&
3399
- $this->is_registered()
3400
- ) {
3401
- $this->_site->is_disconnected = false;
3402
- $this->_store_site();
3403
- }
3404
- }
3405
-
3406
- /**
3407
- * Parse plugin's settings (as defined by the plugin dev).
3408
- *
3409
- * @author Vova Feldman (@svovaf)
3410
- * @since 1.1.7.3
3411
- *
3412
- * @param array $plugin_info
3413
- *
3414
- * @throws \Freemius_Exception
3415
- */
3416
- private function parse_settings( &$plugin_info ) {
3417
- $this->_logger->entrance();
3418
-
3419
- $id = $this->get_numeric_option( $plugin_info, 'id', false );
3420
- $public_key = $this->get_option( $plugin_info, 'public_key', false );
3421
- $secret_key = $this->get_option( $plugin_info, 'secret_key', null );
3422
- $parent_id = $this->get_numeric_option( $plugin_info, 'parent_id', null );
3423
- $parent_name = $this->get_option( $plugin_info, 'parent_name', null );
3424
-
3425
- /**
3426
- * @author Vova Feldman (@svovaf)
3427
- * @since 1.1.9 Try to pull secret key from external config.
3428
- */
3429
- if ( is_null( $secret_key ) && defined( "WP_FS__{$this->_slug}_SECRET_KEY" ) ) {
3430
- $secret_key = constant( "WP_FS__{$this->_slug}_SECRET_KEY" );
3431
- }
3432
-
3433
- if ( isset( $plugin_info['parent'] ) ) {
3434
- $parent_id = $this->get_numeric_option( $plugin_info['parent'], 'id', null );
3435
- // $parent_slug = $this->get_option( $plugin_info['parent'], 'slug', null );
3436
- // $parent_public_key = $this->get_option( $plugin_info['parent'], 'public_key', null );
3437
- // $parent_name = $this->get_option( $plugin_info['parent'], 'name', null );
3438
- }
3439
-
3440
- if ( false === $id ) {
3441
- throw new Freemius_Exception( array(
3442
- 'error' => array(
3443
- 'type' => 'ParameterNotSet',
3444
- 'message' => 'Plugin id parameter is not set.',
3445
- 'code' => 'plugin_id_not_set',
3446
- 'http' => 500,
3447
- )
3448
- ) );
3449
- }
3450
- if ( false === $public_key ) {
3451
- throw new Freemius_Exception( array(
3452
- 'error' => array(
3453
- 'type' => 'ParameterNotSet',
3454
- 'message' => 'Plugin public_key parameter is not set.',
3455
- 'code' => 'plugin_public_key_not_set',
3456
- 'http' => 500,
3457
- )
3458
- ) );
3459
- }
3460
-
3461
- $plugin = ( $this->_plugin instanceof FS_Plugin ) ?
3462
- $this->_plugin :
3463
- new FS_Plugin();
3464
-
3465
- $plugin->update( array(
3466
- 'id' => $id,
3467
- 'type' => $this->get_option( $plugin_info, 'type', $this->_module_type),
3468
- 'public_key' => $public_key,
3469
- 'slug' => $this->_slug,
3470
- 'parent_plugin_id' => $parent_id,
3471
- 'version' => $this->get_plugin_version(),
3472
- 'title' => $this->get_plugin_name(),
3473
- 'file' => $this->_plugin_basename,
3474
- 'is_premium' => $this->get_bool_option( $plugin_info, 'is_premium', true ),
3475
- 'is_live' => $this->get_bool_option( $plugin_info, 'is_live', true ),
3476
- 'affiliate_moderation' => $this->get_option( $plugin_info, 'has_affiliation' ),
3477
- ) );
3478
-
3479
- if ( $plugin->is_updated() ) {
3480
- // Update plugin details.
3481
- $this->_plugin = FS_Plugin_Manager::instance( $this->_module_id )->store( $plugin );
3482
- }
3483
- // Set the secret key after storing the plugin, we don't want to store the key in the storage.
3484
- $this->_plugin->secret_key = $secret_key;
3485
-
3486
- if ( ! isset( $plugin_info['menu'] ) ) {
3487
- $plugin_info['menu'] = array();
3488
-
3489
- if ( ! empty( $this->_storage->sdk_last_version ) &&
3490
- version_compare( $this->_storage->sdk_last_version, '1.1.2', '<=' )
3491
- ) {
3492
- // Backward compatibility to 1.1.2
3493
- $plugin_info['menu']['slug'] = isset( $plugin_info['menu_slug'] ) ?
3494
- $plugin_info['menu_slug'] :
3495
- $this->_slug;
3496
- }
3497
- }
3498
-
3499
- $this->_menu = FS_Admin_Menu_Manager::instance(
3500
- $this->_module_id,
3501
- $this->_module_type,
3502
- $this->get_unique_affix()
3503
- );
3504
-
3505
- $this->_menu->init( $plugin_info['menu'], $this->is_addon() );
3506
-
3507
- $this->_has_addons = $this->get_bool_option( $plugin_info, 'has_addons', false );
3508
- $this->_has_paid_plans = $this->get_bool_option( $plugin_info, 'has_paid_plans', true );
3509
- $this->_has_premium_version = $this->get_bool_option( $plugin_info, 'has_premium_version', $this->_has_paid_plans );
3510
- $this->_ignore_pending_mode = $this->get_bool_option( $plugin_info, 'ignore_pending_mode', false );
3511
- $this->_is_org_compliant = $this->get_bool_option( $plugin_info, 'is_org_compliant', true );
3512
- $this->_is_premium_only = $this->get_bool_option( $plugin_info, 'is_premium_only', false );
3513
- if ( $this->_is_premium_only ) {
3514
- // If premium only plugin, disable anonymous mode.
3515
- $this->_enable_anonymous = false;
3516
- $this->_anonymous_mode = false;
3517
- } else {
3518
- $this->_enable_anonymous = $this->get_bool_option( $plugin_info, 'enable_anonymous', true );
3519
- $this->_anonymous_mode = $this->get_bool_option( $plugin_info, 'anonymous_mode', false );
3520
- }
3521
- $this->_permissions = $this->get_option( $plugin_info, 'permissions', array() );
3522
-
3523
- if ( ! empty( $plugin_info['trial'] ) ) {
3524
- $this->_trial_days = $this->get_numeric_option(
3525
- $plugin_info['trial'],
3526
- 'days',
3527
- // Default to 0 - trial without days specification.
3528
- 0
3529
- );
3530
-
3531
- $this->_is_trial_require_payment = $this->get_bool_option( $plugin_info['trial'], 'is_require_payment', false );
3532
- }
3533
- }
3534
-
3535
- /**
3536
- * @param string[] $options
3537
- * @param string $key
3538
- * @param mixed $default
3539
- *
3540
- * @return bool
3541
- */
3542
- private function get_option( &$options, $key, $default = false ) {
3543
- return ! empty( $options[ $key ] ) ? $options[ $key ] : $default;
3544
- }
3545
-
3546
- private function get_bool_option( &$options, $key, $default = false ) {
3547
- return isset( $options[ $key ] ) && is_bool( $options[ $key ] ) ? $options[ $key ] : $default;
3548
- }
3549
-
3550
- private function get_numeric_option( &$options, $key, $default = false ) {
3551
- return isset( $options[ $key ] ) && is_numeric( $options[ $key ] ) ? $options[ $key ] : $default;
3552
- }
3553
-
3554
- /**
3555
- * Gate keeper.
3556
- *
3557
- * @author Vova Feldman (@svovaf)
3558
- * @since 1.1.7.3
3559
- *
3560
- * @return bool
3561
- */
3562
- private function should_stop_execution() {
3563
- if ( empty( $this->_storage->was_plugin_loaded ) ) {
3564
- /**
3565
- * Don't execute Freemius until plugin was fully loaded at least once,
3566
- * to give the opportunity for the activation hook to run before pinging
3567
- * the API for connectivity test. This logic is relevant for the
3568
- * identification of new plugin install vs. plugin update.
3569
- *
3570
- * @author Vova Feldman (@svovaf)
3571
- * @since 1.1.9
3572
- */
3573
- return true;
3574
- }
3575
-
3576
- if ( $this->is_activation_mode() ) {
3577
- if ( ! is_admin() ) {
3578
- /**
3579
- * If in activation mode, don't execute Freemius outside of the
3580
- * admin dashboard.
3581
- *
3582
- * @author Vova Feldman (@svovaf)
3583
- * @since 1.1.7.3
3584
- */
3585
- return true;
3586
- }
3587
-
3588
- if ( ! WP_FS__IS_HTTP_REQUEST ) {
3589
- /**
3590
- * If in activation and executed without HTTP context (e.g. CLI, Cronjob),
3591
- * then don't start Freemius.
3592
- *
3593
- * @author Vova Feldman (@svovaf)
3594
- * @since 1.1.6.3
3595
- *
3596
- * @link https://wordpress.org/support/topic/errors-in-the-freemius-class-when-running-in-wordpress-in-cli
3597
- */
3598
- return true;
3599
- }
3600
-
3601
- if ( self::is_cron() ) {
3602
- /**
3603
- * If in activation mode, don't execute Freemius during wp crons
3604
- * (wp crons have HTTP context - called as HTTP request).
3605
- *
3606
- * @author Vova Feldman (@svovaf)
3607
- * @since 1.1.7.3
3608
- */
3609
- return true;
3610
- }
3611
-
3612
- if ( self::is_ajax() &&
3613
- ! $this->_admin_notices->has_sticky( 'failed_connect_api_first' ) &&
3614
- ! $this->_admin_notices->has_sticky( 'failed_connect_api' )
3615
- ) {
3616
- /**
3617
- * During activation, if running in AJAX mode, unless there's a sticky
3618
- * connectivity issue notice, don't run Freemius.
3619
- *
3620
- * @author Vova Feldman (@svovaf)
3621
- * @since 1.1.7.3
3622
- */
3623
- return true;
3624
- }
3625
- }
3626
-
3627
- return false;
3628
- }
3629
-
3630
- /**
3631
- * Triggered after code type has changed.
3632
- *
3633
- * @author Vova Feldman (@svovaf)
3634
- * @since 1.1.9.1
3635
- */
3636
- function _after_code_type_change() {
3637
- $this->_logger->entrance();
3638
-
3639
- if ( $this->is_theme() ) {
3640
- // Expire the cache of the previous tabs since the theme may
3641
- // have setting updates after code type has changed.
3642
- $this->_cache->expire( 'tabs' );
3643
- $this->_cache->expire( 'tabs_stylesheets' );
3644
- }
3645
-
3646
- if ( $this->is_registered() ) {
3647
- if ( ! $this->is_addon() ) {
3648
- add_action(
3649
- is_admin() ? 'admin_init' : 'init',
3650
- array( &$this, '_plugin_code_type_changed' )
3651
- );
3652
- }
3653
-
3654
- if ( $this->is_premium() ) {
3655
- // Purge cached payments after switching to the premium version.
3656
- // @todo This logic doesn't handle purging the cache for serviceware module upgrade.
3657
- $this->get_api_user_scope()->purge_cache( "/plugins/{$this->_module_id}/payments.json?include_addons=true" );
3658
- }
3659
- }
3660
- }
3661
-
3662
- /**
3663
- * Handles plugin's code type change (free <--> premium).
3664
- *
3665
- * @author Vova Feldman (@svovaf)
3666
- * @since 1.0.9
3667
- */
3668
- function _plugin_code_type_changed() {
3669
- $this->_logger->entrance();
3670
-
3671
- if ( $this->is_premium() ) {
3672
- $this->reconnect_locally();
3673
-
3674
- // Activated premium code.
3675
- $this->do_action( 'after_premium_version_activation' );
3676
-
3677
- // Remove all sticky messages related to download of the premium version.
3678
- $this->_admin_notices->remove_sticky( array(
3679
- 'trial_started',
3680
- 'plan_upgraded',
3681
- 'plan_changed',
3682
- 'license_activated',
3683
- ) );
3684
-
3685
- if ( ! $this->is_only_premium() ) {
3686
- $this->_admin_notices->add_sticky(
3687
- sprintf( $this->get_text_inline( 'Premium %s version was successfully activated.', 'premium-activated-message' ), $this->_module_type ),
3688
- 'premium_activated',
3689
- $this->get_text_x_inline( 'W00t',
3690
- 'Used to express elation, enthusiasm, or triumph (especially in electronic communication).', 'woot' ) . '!'
3691
- );
3692
- }
3693
- } else {
3694
- // Remove sticky message related to premium code activation.
3695
- $this->_admin_notices->remove_sticky( 'premium_activated' );
3696
-
3697
- // Activated free code (after had the premium before).
3698
- $this->do_action( 'after_free_version_reactivation' );
3699
-
3700
- if ( $this->is_paying() && ! $this->is_premium() ) {
3701
- $this->_admin_notices->add_sticky(
3702
- sprintf(
3703
- /* translators: %s: License type (e.g. you have a professional license) */
3704
- $this->get_text_inline( 'You have a %s license.', 'you-have-x-license' ),
3705
- $this->_site->plan->title
3706
- ) . $this->get_complete_upgrade_instructions(),
3707
- 'plan_upgraded',
3708
- $this->get_text_x_inline( 'Yee-haw', 'interjection expressing joy or exuberance', 'yee-haw' ) . '!'
3709
- );
3710
- }
3711
- }
3712
-
3713
- // Schedule code type changes event.
3714
- $this->schedule_install_sync();
3715
-
3716
- /**
3717
- * Unregister the uninstall hook for the other version of the plugin (with different code type) to avoid
3718
- * triggering a fatal error when uninstalling that plugin. For example, after deactivating the "free" version
3719
- * of a specific plugin, its uninstall hook should be unregistered after the "premium" version has been
3720
- * activated. If we don't do that, a fatal error will occur when we try to uninstall the "free" version since
3721
- * the main file of the "free" version will be loaded first before calling the hooked callback. Since the
3722
- * free and premium versions are almost identical (same class or have same functions), a fatal error like
3723
- * "Cannot redeclare class MyClass" or "Cannot redeclare my_function()" will occur.
3724
- */
3725
- $this->unregister_uninstall_hook();
3726
-
3727
- $this->clear_module_main_file_cache();
3728
-
3729
- // Update is_premium of latest version.
3730
- $this->_storage->prev_is_premium = $this->_plugin->is_premium;
3731
- }
3732
-
3733
- #endregion
3734
-
3735
- #----------------------------------------------------------------------------------
3736
- #region Add-ons
3737
- #----------------------------------------------------------------------------------
3738
-
3739
- /**
3740
- * Check if add-on installed and activated on site.
3741
- *
3742
- * @author Vova Feldman (@svovaf)
3743
- * @since 1.0.6
3744
- *
3745
- * @param string|number $id_or_slug
3746
- * @param bool|null $is_premium Since 1.2.1.7 can check for specified add-on version.
3747
- *
3748
- * @return bool
3749
- */
3750
- function is_addon_activated( $id_or_slug, $is_premium = null ) {
3751
- $this->_logger->entrance();
3752
-
3753
- $addon_id = self::get_module_id( $id_or_slug );
3754
- $is_activated = self::has_instance( $addon_id );
3755
-
3756
- if ( ! $is_activated ) {
3757
- return false;
3758
- }
3759
-
3760
- if ( is_bool( $is_premium ) ) {
3761
- // Check if the specified code version is activate.
3762
- $addon = $this->get_addon_instance( $addon_id );
3763
- $is_activated = ( $is_premium === $addon->is_premium() );
3764
- }
3765
-
3766
- return $is_activated;
3767
- }
3768
-
3769
- /**
3770
- * Check if add-on was connected to install
3771
- *
3772
- * @author Vova Feldman (@svovaf)
3773
- * @since 1.1.7
3774
- *
3775
- * @param string|number $id_or_slug
3776
- *
3777
- * @return bool
3778
- */
3779
- function is_addon_connected( $id_or_slug ) {
3780
- $this->_logger->entrance();
3781
-
3782
- $sites = self::get_all_sites( WP_FS__MODULE_TYPE_PLUGIN );
3783
-
3784
- $addon_id = self::get_module_id( $id_or_slug );
3785
- $addon = $this->get_addon( $addon_id );
3786
- $slug = $addon->slug;
3787
- if ( ! isset( $sites[ $slug ] ) ) {
3788
- return false;
3789
- }
3790
-
3791
- $site = $sites[ $slug ];
3792
-
3793
- $plugin = FS_Plugin_Manager::instance( $addon_id )->get();
3794
-
3795
- if ( $plugin->parent_plugin_id != $this->_plugin->id ) {
3796
- // The given slug do NOT belong to any of the plugin's add-ons.
3797
- return false;
3798
- }
3799
-
3800
- return ( is_object( $site ) &&
3801
- is_numeric( $site->id ) &&
3802
- is_numeric( $site->user_id ) &&
3803
- is_object( $site->plan )
3804
- );
3805
- }
3806
-
3807
- /**
3808
- * Determines if add-on installed.
3809
- *
3810
- * NOTE: This is a heuristic and only works if the folder/file named as the slug.
3811
- *
3812
- * @author Vova Feldman (@svovaf)
3813
- * @since 1.0.6
3814
- *
3815
- * @param string|number $id_or_slug
3816
- *
3817
- * @return bool
3818
- */
3819
- function is_addon_installed( $id_or_slug ) {
3820
- $this->_logger->entrance();
3821
-
3822
- $addon_id = self::get_module_id( $id_or_slug );
3823
-
3824
- return file_exists( fs_normalize_path( WP_PLUGIN_DIR . '/' . $this->get_addon_basename( $addon_id ) ) );
3825
- }
3826
-
3827
- /**
3828
- * Get add-on basename.
3829
- *
3830
- * @author Vova Feldman (@svovaf)
3831
- * @since 1.0.6
3832
- *
3833
- * @param string|number $id_or_slug
3834
- *
3835
- * @return string
3836
- */
3837
- function get_addon_basename( $id_or_slug ) {
3838
- $addon_id = self::get_module_id( $id_or_slug );
3839
-
3840
- if ( $this->is_addon_activated( $addon_id ) ) {
3841
- return self::instance( $addon_id )->get_plugin_basename();
3842
- }
3843
-
3844
- $addon = $this->get_addon( $addon_id );
3845
- $premium_basename = "{$addon->slug}-premium/{$addon->slug}.php";
3846
-
3847
- if ( file_exists( fs_normalize_path( WP_PLUGIN_DIR . '/' . $premium_basename ) ) ) {
3848
- return $premium_basename;
3849
- }
3850
-
3851
- $all_plugins = $this->get_all_plugins();
3852
-
3853
- foreach ( $all_plugins as $basename => &$data ) {
3854
- if ( $addon->slug === $data['slug'] ||
3855
- $addon->slug . '-premium' === $data['slug']
3856
- ) {
3857
- return $basename;
3858
- }
3859
- }
3860
-
3861
- $free_basename = "{$addon->slug}/{$addon->slug}.php";
3862
-
3863
- return $free_basename;
3864
- }
3865
-
3866
- /**
3867
- * Get installed add-ons instances.
3868
- *
3869
- * @author Vova Feldman (@svovaf)
3870
- * @since 1.0.6
3871
- *
3872
- * @return Freemius[]
3873
- */
3874
- function get_installed_addons() {
3875
- $installed_addons = array();
3876
- foreach ( self::$_instances as $instance ) {
3877
- if ( $instance->is_addon() && is_object( $instance->_parent_plugin ) ) {
3878
- if ( $this->_plugin->id == $instance->_parent_plugin->id ) {
3879
- $installed_addons[] = $instance;
3880
- }
3881
- }
3882
- }
3883
-
3884
- return $installed_addons;
3885
- }
3886
-
3887
- /**
3888
- * Check if any add-ons of the plugin are installed.
3889
- *
3890
- * @author Leo Fajardo (@leorw)
3891
- * @since 1.1.1
3892
- *
3893
- * @return bool
3894
- */
3895
- function has_installed_addons() {
3896
- if ( ! $this->has_addons() ) {
3897
- return false;
3898
- }
3899
-
3900
- foreach ( self::$_instances as $instance ) {
3901
- if ( $instance->is_addon() && is_object( $instance->_parent_plugin ) ) {
3902
- if ( $this->_plugin->id == $instance->_parent_plugin->id ) {
3903
- return true;
3904
- }
3905
- }
3906
- }
3907
-
3908
- return false;
3909
- }
3910
-
3911
- /**
3912
- * Tell Freemius that the current plugin is an add-on.
3913
- *
3914
- * @author Vova Feldman (@svovaf)
3915
- * @since 1.0.6
3916
- *
3917
- * @param number $parent_plugin_id The parent plugin ID
3918
- */
3919
- function init_addon( $parent_plugin_id ) {
3920
- $this->_plugin->parent_plugin_id = $parent_plugin_id;
3921
- }
3922
-
3923
- /**
3924
- * @author Vova Feldman (@svovaf)
3925
- * @since 1.0.6
3926
- *
3927
- * @return bool
3928
- */
3929
- function is_addon() {
3930
- return isset( $this->_plugin->parent_plugin_id ) && is_numeric( $this->_plugin->parent_plugin_id );
3931
- }
3932
-
3933
- /**
3934
- * Deactivate add-on if it's premium only and the user does't have a valid license.
3935
- *
3936
- * @param bool $is_after_trial_cancel
3937
- *
3938
- * @return bool If add-on was deactivated.
3939
- */
3940
- private function deactivate_premium_only_addon_without_license( $is_after_trial_cancel = false ) {
3941
- if ( ! $this->has_free_plan() &&
3942
- ! $this->has_features_enabled_license() &&
3943
- ! $this->_has_premium_license()
3944
- ) {
3945
- if ( $this->is_registered() ) {
3946
- // IF wrapper is turned off because activation_timestamp is currently only stored for plugins (not addons).
3947
- // if (empty($this->_storage->activation_timestamp) ||
3948
- // (WP_FS__SCRIPT_START_TIME - $this->_storage->activation_timestamp) > 30
3949
- // ) {
3950
- /**
3951
- * @todo When it's first fail, there's no reason to try and re-sync because the licenses were just synced after initial activation.
3952
- *
3953
- * Retry syncing the user add-on licenses.
3954
- */
3955
- // Sync licenses.
3956
- $this->_sync_licenses();
3957
- // }
3958
-
3959
- // Try to activate premium license.
3960
- $this->_activate_license( true );
3961
- }
3962
-
3963
- if ( ! $this->has_free_plan() &&
3964
- ! $this->has_features_enabled_license() &&
3965
- ! $this->_has_premium_license()
3966
- ) {
3967
- // @todo Check if deactivate plugins also call the deactivation hook.
3968
-
3969
- $this->_parent->_admin_notices->add_sticky(
3970
- sprintf(
3971
- ($is_after_trial_cancel ?
3972
- $this->_parent->get_text_inline(
3973
- '%s free trial was successfully cancelled. Since the add-on is premium only it was automatically deactivated. If you like to use it in the future, you\'ll have to purchase a license.',
3974
- 'addon-trial-cancelled-message'
3975
- ) :
3976
- $this->_parent->get_text_inline(
3977
- '%s is a premium only add-on. You have to purchase a license first before activating the plugin.',
3978
- 'addon-no-license-message'
3979
- )
3980
- ),
3981
- '<b>' . $this->_plugin->title . '</b>'
3982
- ) . ' ' . sprintf(
3983
- '<a href="%s" aria-label="%s" class="button button-primary" style="margin-left: 10px; vertical-align: middle;">%s &nbsp;&#10140;</a>',
3984
- $this->_parent->addon_url( $this->_slug ),
3985
- esc_attr( sprintf( $this->_parent->get_text_inline( 'More information about %s', 'more-information-about-x' ), $this->_plugin->title ) ),
3986
- $this->_parent->get_text_inline( 'Purchase License', 'purchase-license' )
3987
- ),
3988
- 'no_addon_license_' . $this->_slug,
3989
- ( $is_after_trial_cancel ? '' : $this->_parent->get_text_x_inline( 'Oops', 'exclamation', 'oops' ) . '...' ),
3990
- ( $is_after_trial_cancel ? 'success' : 'error' )
3991
- );
3992
-
3993
- deactivate_plugins( array( $this->_plugin_basename ), true );
3994
-
3995
- return true;
3996
- }
3997
- }
3998
-
3999
- return false;
4000
- }
4001
-
4002
- #endregion
4003
-
4004
- #----------------------------------------------------------------------------------
4005
- #region Sandbox
4006
- #----------------------------------------------------------------------------------
4007
-
4008
- /**
4009
- * Set Freemius into sandbox mode for debugging.
4010
- *
4011
- * @author Vova Feldman (@svovaf)
4012
- * @since 1.0.4
4013
- *
4014
- * @param string $secret_key
4015
- */
4016
- function init_sandbox( $secret_key ) {
4017
- $this->_plugin->secret_key = $secret_key;
4018
-
4019
- // Update plugin details.
4020
- FS_Plugin_Manager::instance( $this->_module_id )->update( $this->_plugin, true );
4021
- }
4022
-
4023
- /**
4024
- * Check if running payments in sandbox mode.
4025
- *
4026
- * @author Vova Feldman (@svovaf)
4027
- * @since 1.0.4
4028
- *
4029
- * @return bool
4030
- */
4031
- function is_payments_sandbox() {
4032
- return ( ! $this->is_live() ) || isset( $this->_plugin->secret_key );
4033
- }
4034
-
4035
- #endregion
4036
-
4037
- /**
4038
- * Check if running test vs. live plugin.
4039
- *
4040
- * @author Vova Feldman (@svovaf)
4041
- * @since 1.0.5
4042
- *
4043
- * @return bool
4044
- */
4045
- function is_live() {
4046
- return $this->_plugin->is_live;
4047
- }
4048
-
4049
- /**
4050
- * Check if the user skipped connecting the account with Freemius.
4051
- *
4052
- * @author Vova Feldman (@svovaf)
4053
- * @since 1.0.7
4054
- *
4055
- * @return bool
4056
- */
4057
- function is_anonymous() {
4058
- if ( ! isset( $this->_is_anonymous ) ) {
4059
- if ( ! isset( $this->_storage->is_anonymous ) ) {
4060
- // Not skipped.
4061
- $this->_is_anonymous = false;
4062
- } else if ( is_bool( $this->_storage->is_anonymous ) ) {
4063
- // For back compatibility, since the variable was boolean before.
4064
- $this->_is_anonymous = $this->_storage->is_anonymous;
4065
-
4066
- // Upgrade stored data format to 1.1.3 format.
4067
- $this->set_anonymous_mode( $this->_storage->is_anonymous );
4068
- } else {
4069
- // Version 1.1.3 and later.
4070
- $this->_is_anonymous = $this->_storage->is_anonymous['is'];
4071
- }
4072
- }
4073
-
4074
- return $this->_is_anonymous;
4075
- }
4076
-
4077
- /**
4078
- * Check if user connected his account and install pending email activation.
4079
- *
4080
- * @author Vova Feldman (@svovaf)
4081
- * @since 1.0.7
4082
- *
4083
- * @return bool
4084
- */
4085
- function is_pending_activation() {
4086
- return $this->_storage->get( 'is_pending_activation', false );
4087
- }
4088
-
4089
- /**
4090
- * Check if plugin must be WordPress.org compliant.
4091
- *
4092
- * @since 1.0.7
4093
- *
4094
- * @return bool
4095
- */
4096
- function is_org_repo_compliant() {
4097
- return $this->_is_org_compliant;
4098
- }
4099
-
4100
- #----------------------------------------------------------------------------------
4101
- #region Daily Sync Cron
4102
- #----------------------------------------------------------------------------------
4103
-
4104
- /**
4105
- * @author Vova Feldman (@svovaf)
4106
- * @since 1.1.7.3
4107
- */
4108
- private function run_manual_sync() {
4109
- self::require_pluggable_essentials();
4110
-
4111
- if ( ! $this->is_user_admin() ) {
4112
- return;
4113
- }
4114
-
4115
- // Run manual sync.
4116
- $this->_sync_cron();
4117
-
4118
- // Reschedule next cron to run 24 hours from now (performance optimization).
4119
- $this->clear_sync_cron();
4120
-
4121
- $this->schedule_sync_cron( time() + WP_FS__TIME_24_HOURS_IN_SEC, false );
4122
- }
4123
-
4124
- /**
4125
- * Data sync cron job. Replaces the background sync non blocking HTTP request
4126
- * that doesn't halt page loading.
4127
- *
4128
- * @author Vova Feldman (@svovaf)
4129
- * @since 1.1.7.3
4130
- */
4131
- function _sync_cron() {
4132
- $this->_logger->entrance();
4133
-
4134
- // Store the last time data sync was executed.
4135
- $this->_storage->sync_timestamp = time();
4136
-
4137
- // Check if API is temporary down.
4138
- if ( FS_Api::is_temporary_down() ) {
4139
- return;
4140
- }
4141
-
4142
- // @todo Add logic that identifies API latency, and reschedule the next background sync randomly between 8-16 hours.
4143
-
4144
- if ( $this->is_registered() ) {
4145
- if ( $this->has_paid_plan() ) {
4146
- // Initiate background plan sync.
4147
- $this->_sync_license( true );
4148
-
4149
- if ( $this->is_paying() ) {
4150
- // Check for premium plugin updates.
4151
- $this->check_updates( true );
4152
- }
4153
- } else {
4154
- // Sync install (only if something changed locally).
4155
- $this->sync_install();
4156
- }
4157
- }
4158
-
4159
- $this->do_action( 'after_sync_cron' );
4160
- }
4161
-
4162
- /**
4163
- * Check if sync was executed in the last $period of seconds.
4164
- *
4165
- * @author Vova Feldman (@svovaf)
4166
- * @since 1.1.7.3
4167
- *
4168
- * @param int $period In seconds
4169
- *
4170
- * @return bool
4171
- */
4172
- private function is_sync_executed( $period = WP_FS__TIME_24_HOURS_IN_SEC ) {
4173
- if ( ! isset( $this->_storage->sync_timestamp ) ) {
4174
- return false;
4175
- }
4176
-
4177
- return ( $this->_storage->sync_timestamp > ( WP_FS__SCRIPT_START_TIME - $period ) );
4178
- }
4179
-
4180
- /**
4181
- * @author Vova Feldman (@svovaf)
4182
- * @since 1.1.7.3
4183
- *
4184
- * @return bool
4185
- */
4186
- private function is_sync_cron_on() {
4187
- /**
4188
- * @var object $sync_cron_data
4189
- */
4190
- $sync_cron_data = $this->_storage->get( 'sync_cron', null );
4191
-
4192
- return ( ! is_null( $sync_cron_data ) && true === $sync_cron_data->on );
4193
- }
4194
-
4195
- /**
4196
- * @author Vova Feldman (@svovaf)
4197
- * @since 1.1.7.3
4198
- *
4199
- * @param int $start_at Defaults to now.
4200
- * @param bool $randomize_start If true, schedule first job randomly during the next 12 hours. Otherwise,
4201
- * schedule job to start right away.
4202
- */
4203
- private function schedule_sync_cron( $start_at = WP_FS__SCRIPT_START_TIME, $randomize_start = true ) {
4204
- $this->_logger->entrance();
4205
-
4206
- if ( $randomize_start ) {
4207
- // Schedule first sync with a random 12 hour time range from now.
4208
- $start_at += rand( 0, ( WP_FS__TIME_24_HOURS_IN_SEC / 2 ) );
4209
- }
4210
-
4211
- // Schedule daily WP cron.
4212
- wp_schedule_event(
4213
- $start_at,
4214
- 'daily',
4215
- $this->get_action_tag( 'data_sync' )
4216
- );
4217
-
4218
- $this->_storage->store( 'sync_cron', (object) array(
4219
- 'version' => $this->get_plugin_version(),
4220
- 'sdk_version' => $this->version,
4221
- 'timestamp' => WP_FS__SCRIPT_START_TIME,
4222
- 'on' => true,
4223
- ) );
4224
- }
4225
-
4226
- /**
4227
- * Add the actual sync function to the cron job hook.
4228
- *
4229
- * @author Vova Feldman (@svovaf)
4230
- * @since 1.1.7.3
4231
- */
4232
- private function hook_callback_to_sync_cron() {
4233
- $this->add_action( 'data_sync', array( &$this, '_sync_cron' ) );
4234
- }
4235
-
4236
- /**
4237
- * @author Vova Feldman (@svovaf)
4238
- * @since 1.1.7.3
4239
- */
4240
- private function clear_sync_cron() {
4241
- $this->_logger->entrance();
4242
-
4243
- if ( ! $this->is_sync_cron_on() ) {
4244
- return;
4245
- }
4246
-
4247
- $this->_storage->remove( 'sync_cron' );
4248
-
4249
- wp_clear_scheduled_hook( $this->get_action_tag( 'data_sync' ) );
4250
- }
4251
-
4252
- /**
4253
- * Unix timestamp for next sync cron execution or false if not scheduled.
4254
- *
4255
- * @author Vova Feldman (@svovaf)
4256
- * @since 1.1.7.3
4257
- *
4258
- * @return int|false
4259
- */
4260
- function next_sync_cron() {
4261
- $this->_logger->entrance();
4262
-
4263
- if ( ! $this->is_sync_cron_on() ) {
4264
- return false;
4265
- }
4266
-
4267
- return wp_next_scheduled( $this->get_action_tag( 'data_sync' ) );
4268
- }
4269
-
4270
- /**
4271
- * Unix timestamp for previous sync cron execution or false if never executed.
4272
- *
4273
- * @author Vova Feldman (@svovaf)
4274
- * @since 1.1.7.3
4275
- *
4276
- * @return int|false
4277
- */
4278
- function last_sync_cron() {
4279
- $this->_logger->entrance();
4280
-
4281
- return $this->_storage->get( 'sync_timestamp' );
4282
- }
4283
-
4284
- #endregion Daily Sync Cron ------------------------------------------------------------------
4285
-
4286
- #----------------------------------------------------------------------------------
4287
- #region Async Install Sync
4288
- #----------------------------------------------------------------------------------
4289
-
4290
- /**
4291
- * @author Vova Feldman (@svovaf)
4292
- * @since 1.1.7.3
4293
- *
4294
- * @return bool
4295
- */
4296
- private function is_install_sync_scheduled() {
4297
- /**
4298
- * @var object $cron_data
4299
- */
4300
- $cron_data = $this->_storage->get( 'install_sync_cron', null );
4301
-
4302
- return ( ! is_null( $cron_data ) && true === $cron_data->on );
4303
- }
4304
-
4305
- /**
4306
- * Instead of running blocking install sync event, execute non blocking scheduled wp-cron.
4307
- *
4308
- * @author Vova Feldman (@svovaf)
4309
- * @since 1.1.7.3
4310
- */
4311
- private function schedule_install_sync() {
4312
- $this->_logger->entrance();
4313
-
4314
- $this->clear_install_sync_cron();
4315
-
4316
- // Schedule immediate install sync.
4317
- wp_schedule_single_event(
4318
- WP_FS__SCRIPT_START_TIME,
4319
- $this->get_action_tag( 'install_sync' )
4320
- );
4321
-
4322
- $this->_storage->store( 'install_sync_cron', (object) array(
4323
- 'version' => $this->get_plugin_version(),
4324
- 'sdk_version' => $this->version,
4325
- 'timestamp' => WP_FS__SCRIPT_START_TIME,
4326
- 'on' => true,
4327
- ) );
4328
- }
4329
-
4330
- /**
4331
- * Unix timestamp for previous install sync cron execution or false if never executed.
4332
- *
4333
- * @todo There's some very strange bug that $this->_storage->install_sync_timestamp value is not being
4334
- * updated. But for sure the sync event is working.
4335
- *
4336
- * @author Vova Feldman (@svovaf)
4337
- * @since 1.1.7.3
4338
- *
4339
- * @return int|false
4340
- */
4341
- function last_install_sync() {
4342
- $this->_logger->entrance();
4343
-
4344
- return $this->_storage->get( 'install_sync_timestamp' );
4345
- }
4346
-
4347
- /**
4348
- * Unix timestamp for next install sync cron execution or false if not scheduled.
4349
- *
4350
- * @author Vova Feldman (@svovaf)
4351
- * @since 1.1.7.3
4352
- *
4353
- * @return int|false
4354
- */
4355
- function next_install_sync() {
4356
- $this->_logger->entrance();
4357
-
4358
- if ( ! $this->is_install_sync_scheduled() ) {
4359
- return false;
4360
- }
4361
-
4362
- return wp_next_scheduled( $this->get_action_tag( 'install_sync' ) );
4363
- }
4364
-
4365
- /**
4366
- * Add the actual install sync function to the cron job hook.
4367
- *
4368
- * @author Vova Feldman (@svovaf)
4369
- * @since 1.1.7.3
4370
- */
4371
- private function hook_callback_to_install_sync() {
4372
- $this->add_action( 'install_sync', array( &$this, '_run_sync_install' ) );
4373
- }
4374
-
4375
- /**
4376
- * @author Vova Feldman (@svovaf)
4377
- * @since 1.1.7.3
4378
- */
4379
- private function clear_install_sync_cron() {
4380
- $this->_logger->entrance();
4381
-
4382
- if ( ! $this->is_install_sync_scheduled() ) {
4383
- return;
4384
- }
4385
-
4386
- $this->_storage->remove( 'install_sync_cron' );
4387
-
4388
- wp_clear_scheduled_hook( $this->get_action_tag( 'install_sync' ) );
4389
- }
4390
-
4391
- /**
4392
- * @author Vova Feldman (@svovaf)
4393
- * @since 1.1.7.3
4394
- */
4395
- public function _run_sync_install() {
4396
- $this->_logger->entrance();
4397
-
4398
- // Update last install sync timestamp.
4399
- $this->_storage->install_sync_timestamp = time();
4400
-
4401
- $this->sync_install( array(), true );
4402
- }
4403
-
4404
- #endregion Async Install Sync ------------------------------------------------------------------
4405
-
4406
- /**
4407
- * Show a notice that activation is currently pending.
4408
- *
4409
- * @author Vova Feldman (@svovaf)
4410
- * @since 1.0.7
4411
- *
4412
- * @param bool|string $email
4413
- * @param bool $is_pending_trial Since 1.2.1.5
4414
- */
4415
- function _add_pending_activation_notice( $email = false, $is_pending_trial = false ) {
4416
- if ( ! is_string( $email ) ) {
4417
- $current_user = self::_get_current_wp_user();
4418
- $email = $current_user->user_email;
4419
- }
4420
-
4421
- $this->_admin_notices->add_sticky(
4422
- sprintf(
4423
- $this->get_text_inline( 'You should receive an activation email for %s to your mailbox at %s. Please make sure you click the activation button in that email to %s.', 'pending-activation-message' ),
4424
- '<b>' . $this->get_plugin_name() . '</b>',
4425
- '<b>' . $email . '</b>',
4426
- ( $is_pending_trial ?
4427
- $this->get_text_inline( 'start the trial', 'start-the-trial' ) :
4428
- $this->get_text_inline( 'complete the install', 'complete-the-install' ) )
4429
- ),
4430
- 'activation_pending',
4431
- 'Thanks!'
4432
- );
4433
- }
4434
-
4435
- /**
4436
- * Check if currently in plugin activation.
4437
- *
4438
- * @author Vova Feldman (@svovaf)
4439
- * @since 1.1.4
4440
- *
4441
- * @return bool
4442
- */
4443
- function is_plugin_activation() {
4444
- return get_option( 'fs_'
4445
- . ( $this->is_plugin() ? '' : $this->_module_type . '_' )
4446
- . "{$this->_slug}_activated", false );
4447
- }
4448
-
4449
- /**
4450
- *
4451
- * NOTE: admin_menu action executed before admin_init.
4452
- *
4453
- * @author Vova Feldman (@svovaf)
4454
- * @since 1.0.7
4455
- */
4456
- function _admin_init_action() {
4457
- /**
4458
- * Automatically redirect to connect/activation page after plugin activation.
4459
- *
4460
- * @since 1.1.7 Do NOT redirect to opt-in when running in network admin mode.
4461
- */
4462
- if ( $this->is_plugin_activation() ) {
4463
- delete_option( 'fs_'
4464
- . ( $this->is_plugin() ? '' : $this->_module_type . '_' )
4465
- . "{$this->_slug}_activated" );
4466
-
4467
- if ( ! function_exists( 'is_network_admin' ) || ! is_network_admin() ) {
4468
- $this->_redirect_on_activation_hook();
4469
-
4470
- return;
4471
- }
4472
- }
4473
-
4474
- if ( fs_request_is_action( $this->get_unique_affix() . '_skip_activation' ) ) {
4475
- check_admin_referer( $this->get_unique_affix() . '_skip_activation' );
4476
-
4477
- $this->skip_connection();
4478
-
4479
- fs_redirect( $this->get_after_activation_url( 'after_skip_url' ) );
4480
- }
4481
-
4482
- if ( ! $this->is_addon() && ! $this->is_registered() && ! $this->is_anonymous() ) {
4483
- if ( ! $this->is_pending_activation() ) {
4484
- if ( ! $this->_menu->is_main_settings_page() ) {
4485
- /**
4486
- * If a user visits any other admin page before activating the premium-only theme with a valid
4487
- * license, reactivate the previous theme.
4488
- *
4489
- * @author Leo Fajardo (@leorw)
4490
- * @since 1.2.2
4491
- */
4492
- if ( $this->is_theme()
4493
- && $this->is_only_premium()
4494
- && ! $this->has_settings_menu()
4495
- && ! isset( $_REQUEST['fs_action'] )
4496
- && $this->can_activate_previous_theme()
4497
- ) {
4498
- $this->activate_previous_theme();
4499
-
4500
- return;
4501
- }
4502
-
4503
- if ( $this->is_plugin_new_install() || $this->is_only_premium() ) {
4504
- // Show notice for new plugin installations.
4505
- $this->_admin_notices->add(
4506
- sprintf(
4507
- $this->get_text_inline( 'You are just one step away - %s', 'you-are-step-away' ),
4508
- sprintf( '<b><a href="%s">%s</a></b>',
4509
- $this->get_activation_url(),
4510
- sprintf( $this->get_text_x_inline( 'Complete "%s" Activation Now',
4511
- '%s - plugin name. As complete "PluginX" activation now', 'activate-x-now' ), $this->get_plugin_name() )
4512
- )
4513
- ),
4514
- '',
4515
- 'update-nag'
4516
- );
4517
- } else {
4518
- if ( ! isset( $this->_storage->sticky_optin_added ) ) {
4519
- $this->_storage->sticky_optin_added = true;
4520
-
4521
- // Show notice for new plugin installations.
4522
- $this->_admin_notices->add_sticky(
4523
- sprintf(
4524
- $this->get_text_inline( 'We made a few tweaks to the %s, %s', 'few-plugin-tweaks' ),
4525
- $this->_module_type,
4526
- sprintf( '<b><a href="%s">%s</a></b>',
4527
- $this->get_activation_url(),
4528
- sprintf( $this->get_text_inline( 'Opt in to make "%s" Better!', 'optin-x-now' ), $this->get_plugin_name() )
4529
- )
4530
- ),
4531
- 'connect_account',
4532
- '',
4533
- 'update-nag'
4534
- );
4535
- }
4536
-
4537
- if ( $this->has_filter( 'optin_pointer_element' ) ) {
4538
- // Don't show admin nag if plugin update.
4539
- wp_enqueue_script( 'wp-pointer' );
4540
- wp_enqueue_style( 'wp-pointer' );
4541
-
4542
- $this->_enqueue_connect_essentials();
4543
-
4544
- add_action( 'admin_print_footer_scripts', array(
4545
- $this,
4546
- '_add_connect_pointer_script'
4547
- ) );
4548
- }
4549
- }
4550
- }
4551
- }
4552
-
4553
- if ( $this->is_theme() &&
4554
- $this->_menu->is_main_settings_page()
4555
- ) {
4556
- $this->_show_theme_activation_optin_dialog();
4557
- }
4558
- }
4559
-
4560
- $this->_add_upgrade_action_link();
4561
- }
4562
-
4563
- /**
4564
- * Enqueue connect requires scripts and styles.
4565
- *
4566
- * @author Vova Feldman (@svovaf)
4567
- * @since 1.1.4
4568
- */
4569
- function _enqueue_connect_essentials() {
4570
- wp_enqueue_script( 'jquery' );
4571
- wp_enqueue_script( 'json2' );
4572
-
4573
- fs_enqueue_local_script( 'postmessage', 'nojquery.ba-postmessage.min.js' );
4574
- fs_enqueue_local_script( 'fs-postmessage', 'postmessage.js' );
4575
-
4576
- fs_enqueue_local_style( 'fs_connect', '/admin/connect.css' );
4577
- }
4578
-
4579
- /**
4580
- * Add connect / opt-in pointer.
4581
- *
4582
- * @author Vova Feldman (@svovaf)
4583
- * @since 1.1.4
4584
- */
4585
- function _add_connect_pointer_script() {
4586
- $vars = array( 'id' => $this->_module_id );
4587
- $pointer_content = fs_get_template( 'connect.php', $vars );
4588
- ?>
4589
- <script type="text/javascript">// <![CDATA[
4590
- jQuery(document).ready(function ($) {
4591
- if ('undefined' !== typeof(jQuery().pointer)) {
4592
-
4593
- var element = <?php echo $this->apply_filters( 'optin_pointer_element', '$("#non_existing_element");' ) ?>;
4594
-
4595
- if (element.length > 0) {
4596
- var optin = $(element).pointer($.extend(true, {}, {
4597
- content : <?php echo json_encode( $pointer_content ) ?>,
4598
- position : {
4599
- edge : 'left',
4600
- align: 'center'
4601
- },
4602
- buttons : function () {
4603
- // Don't show pointer buttons.
4604
- return '';
4605
- },
4606
- pointerWidth: 482
4607
- }, <?php echo $this->apply_filters( 'optin_pointer_options_json', '{}' ) ?>));
4608
-
4609
- <?php
4610
- echo $this->apply_filters( 'optin_pointer_execute', "
4611
-
4612
- optin.pointer('open');
4613
-
4614
- // Tag the opt-in pointer with custom class.
4615
- $('.wp-pointer #fs_connect')
4616
- .parents('.wp-pointer.wp-pointer-top')
4617
- .addClass('fs-opt-in-pointer');
4618
-
4619
- ", 'element', 'optin' ) ?>
4620
- }
4621
- }
4622
- });
4623
- // ]]></script>
4624
- <?php
4625
- }
4626
-
4627
- /**
4628
- * Return current page's URL.
4629
- *
4630
- * @author Vova Feldman (@svovaf)
4631
- * @since 1.0.7
4632
- *
4633
- * @return string
4634
- */
4635
- function current_page_url() {
4636
- $url = 'http';
4637
-
4638
- if ( isset( $_SERVER["HTTPS"] ) ) {
4639
- if ( $_SERVER["HTTPS"] == "on" ) {
4640
- $url .= "s";
4641
- }
4642
- }
4643
- $url .= "://";
4644
- if ( $_SERVER["SERVER_PORT"] != "80" ) {
4645
- $url .= $_SERVER["SERVER_NAME"] . ":" . $_SERVER["SERVER_PORT"] . $_SERVER["REQUEST_URI"];
4646
- } else {
4647
- $url .= $_SERVER["SERVER_NAME"] . $_SERVER["REQUEST_URI"];
4648
- }
4649
-
4650
- return esc_url( $url );
4651
- }
4652
-
4653
- /**
4654
- * Check if the current page is the plugin's main admin settings page.
4655
- *
4656
- * @author Vova Feldman (@svovaf)
4657
- * @since 1.0.7
4658
- *
4659
- * @return bool
4660
- */
4661
- function _is_plugin_page() {
4662
- return fs_is_plugin_page( $this->_menu->get_raw_slug() ) ||
4663
- fs_is_plugin_page( $this->_slug );
4664
- }
4665
-
4666
- /* Events
4667
- ------------------------------------------------------------------------------------------------------------------*/
4668
- /**
4669
- * Delete site install from Database.
4670
- *
4671
- * @author Vova Feldman (@svovaf)
4672
- * @since 1.0.1
4673
- *
4674
- * @param bool $store
4675
- */
4676
- function _delete_site( $store = true ) {
4677
- self::_delete_site_by_slug( $this->_slug, $this->_module_type, $store );
4678
- }
4679
-
4680
- /**
4681
- * Delete site install from Database.
4682
- *
4683
- * @author Vova Feldman (@svovaf)
4684
- * @since 1.2.2.7
4685
- *
4686
- * @param string $slug
4687
- * @param string $module_type
4688
- * @param bool $store
4689
- */
4690
- static function _delete_site_by_slug($slug, $module_type, $store = true ) {
4691
- $sites = self::get_all_sites( $module_type );
4692
-
4693
- if ( isset( $sites[ $slug ] ) ) {
4694
- unset( $sites[ $slug ] );
4695
- }
4696
-
4697
- self::set_account_option_by_module( $module_type, 'sites', $sites, $store );
4698
- }
4699
-
4700
- /**
4701
- * Delete plugin's plans information.
4702
- *
4703
- * @param bool $store Flush to Database if true.
4704
- *
4705
- * @author Vova Feldman (@svovaf)
4706
- * @since 1.0.9
4707
- */
4708
- private function _delete_plans( $store = true ) {
4709
- $this->_logger->entrance();
4710
-
4711
- $plans = self::get_all_plans( $this->_module_type );
4712
-
4713
- unset( $plans[ $this->_slug ] );
4714
-
4715
- $this->set_account_option( 'plans', $plans, $store );
4716
- }
4717
-
4718
- /**
4719
- * Delete all plugin licenses.
4720
- *
4721
- * @author Vova Feldman (@svovaf)
4722
- * @since 1.0.9
4723
- *
4724
- * @param bool $store
4725
- * @param string|bool $plugin_slug
4726
- */
4727
- private function _delete_licenses( $store = true, $plugin_slug = false ) {
4728
- $this->_logger->entrance();
4729
-
4730
- $all_licenses = self::get_all_licenses( $this->_module_type );
4731
-
4732
- if ( ! is_string( $plugin_slug ) ) {
4733
- $plugin_slug = $this->_slug;
4734
- }
4735
-
4736
- unset( $all_licenses[ $plugin_slug ] );
4737
-
4738
- $this->set_account_option( 'licenses', $all_licenses, $store );
4739
- }
4740
-
4741
- /**
4742
- * Check if Freemius was added on new plugin installation.
4743
- *
4744
- * @author Vova Feldman (@svovaf)
4745
- * @since 1.1.5
4746
- *
4747
- * @return bool
4748
- */
4749
- function is_plugin_new_install() {
4750
- return isset( $this->_storage->is_plugin_new_install ) &&
4751
- $this->_storage->is_plugin_new_install;
4752
- }
4753
-
4754
- /**
4755
- * Check if it's the first plugin release that is running Freemius.
4756
- *
4757
- * @author Vova Feldman (@svovaf)
4758
- * @since 1.2.1.5
4759
- *
4760
- * @return bool
4761
- */
4762
- function is_first_freemius_powered_version() {
4763
- return empty( $this->_storage->plugin_last_version );
4764
- }
4765
-
4766
- /**
4767
- * @author Leo Fajardo (@leorw)
4768
- * @since 1.2.2
4769
- *
4770
- * @return bool|string
4771
- */
4772
- private function get_previous_theme_slug() {
4773
- return isset( $this->_storage->previous_theme ) ?
4774
- $this->_storage->previous_theme :
4775
- false;
4776
- }
4777
-
4778
- /**
4779
- * @author Leo Fajardo (@leorw)
4780
- * @since 1.2.2
4781
- *
4782
- * @return string
4783
- */
4784
- private function can_activate_previous_theme() {
4785
- $slug = $this->get_previous_theme_slug();
4786
- if ( false !== $slug && current_user_can( 'switch_themes' ) ) {
4787
- $theme_instance = wp_get_theme( $slug );
4788
-
4789
- return $theme_instance->exists();
4790
- }
4791
-
4792
- return false;
4793
- }
4794
-
4795
- /**
4796
- * @author Leo Fajardo (@leorw)
4797
- * @since 1.2.2
4798
- *
4799
- * @return string
4800
- */
4801
- private function activate_previous_theme() {
4802
- switch_theme( $this->get_previous_theme_slug() );
4803
- unset( $this->_storage->previous_theme );
4804
-
4805
- global $pagenow;
4806
- if ( 'themes.php' === $pagenow ) {
4807
- /**
4808
- * Refresh the active theme information.
4809
- *
4810
- * @author Leo Fajardo (@leorw)
4811
- * @since 1.2.2
4812
- */
4813
- fs_redirect( admin_url( $pagenow ) );
4814
- }
4815
- }
4816
-
4817
- /**
4818
- * @author Leo Fajardo (@leorw)
4819
- * @since 1.2.2
4820
- *
4821
- * @return string
4822
- */
4823
- function get_previous_theme_activation_url() {
4824
- if ( ! $this->can_activate_previous_theme() ) {
4825
- return '';
4826
- }
4827
-
4828
- /**
4829
- * Activation URL
4830
- *
4831
- * @author Leo Fajardo (@leorw)
4832
- * @since 1.2.2
4833
- */
4834
- return wp_nonce_url(
4835
- admin_url( 'themes.php?action=activate&stylesheet=' . urlencode( $this->get_previous_theme_slug() ) ),
4836
- 'switch-theme_' . $this->get_previous_theme_slug()
4837
- );
4838
- }
4839
-
4840
- /**
4841
- * Saves the slug of the previous theme if it still exists so that it can be used by the logic in the opt-in
4842
- * form that decides whether to add a close button to the opt-in dialog or not. So after a premium-only theme is
4843
- * activated, the close button will appear and will reactivate the previous theme if clicked. If the previous
4844
- * theme doesn't exist, then there will be no close button.
4845
- *
4846
- * @author Leo Fajardo (@leorw)
4847
- * @since 1.2.2
4848
- *
4849
- * @param string $slug_or_name Old theme's slug or name.
4850
- * @param bool|WP_Theme $old_theme WP_Theme instance of the old theme if it still exists.
4851
- */
4852
- function _activate_theme_event_hook( $slug_or_name, $old_theme = false ) {
4853
- $this->_storage->previous_theme = ( false !== $old_theme ) ?
4854
- $old_theme->get_stylesheet() :
4855
- $slug_or_name;
4856
-
4857
- $this->_activate_plugin_event_hook();
4858
- }
4859
-
4860
- /**
4861
- * Plugin activated hook.
4862
- *
4863
- * @author Vova Feldman (@svovaf)
4864
- * @since 1.0.1
4865
- *
4866
- * @uses FS_Api
4867
- */
4868
- function _activate_plugin_event_hook() {
4869
- $this->_logger->entrance( 'slug = ' . $this->_slug );
4870
-
4871
- if ( ! $this->is_user_admin() ) {
4872
- return;
4873
- }
4874
-
4875
- $this->unregister_uninstall_hook();
4876
-
4877
- // Clear API cache on activation.
4878
- FS_Api::clear_cache();
4879
-
4880
- $is_premium_version_activation = ( current_filter() !== ( 'activate_' . $this->_free_plugin_basename ) );
4881
-
4882
- $this->_logger->info( 'Activating ' . ( $is_premium_version_activation ? 'premium' : 'free' ) . ' plugin version.' );
4883
-
4884
- // 1. If running in the activation of the FREE module, get the basename of the PREMIUM.
4885
- // 2. If running in the activation of the PREMIUM module, get the basename of the FREE.
4886
- $other_version_basename = $is_premium_version_activation ?
4887
- $this->_free_plugin_basename :
4888
- $this->premium_plugin_basename();
4889
-
4890
- /**
4891
- * If the other module version is activate, deactivate it.
4892
- *
4893
- * @author Leo Fajardo (@leorw)
4894
- * @since 1.2.2
4895
- */
4896
- if ( is_plugin_active( $other_version_basename ) ) {
4897
- deactivate_plugins( $other_version_basename );
4898
- }
4899
-
4900
- if ( $this->is_registered() ) {
4901
- if ( $is_premium_version_activation ) {
4902
- $this->reconnect_locally();
4903
- }
4904
-
4905
-
4906
- // Schedule re-activation event and sync.
4907
- // $this->sync_install( array(), true );
4908
- $this->schedule_install_sync();
4909
-
4910
- // If activating the premium module version, add an admin notice to congratulate for an upgrade completion.
4911
- if ( $is_premium_version_activation ) {
4912
- $this->_admin_notices->add(
4913
- sprintf( $this->get_text_inline( 'The upgrade of %s was successfully completed.', 'successful-version-upgrade-message' ), sprintf( '<b>%s</b>', $this->_plugin->title ) ),
4914
- $this->get_text_x_inline( 'W00t',
4915
- 'Used to express elation, enthusiasm, or triumph (especially in electronic communication).', 'woot' ) . '!'
4916
- );
4917
- }
4918
- } else if ( $this->is_anonymous() ) {
4919
- /**
4920
- * Reset "skipped" click cache on the following:
4921
- * 1. Freemius DEV mode.
4922
- * 2. WordPress DEBUG mode.
4923
- * 3. If a plugin and the user skipped the exact same version before.
4924
- *
4925
- * @since 1.2.2.7 Ulrich Pogson (@grapplerulrich) asked to not reset the SKIPPED flag if the exact same THEME version was activated before unless the developer is running with WP_DEBUG on, or Freemius debug mode on (WP_FS__DEV_MODE).
4926
- *
4927
- * @todo 4. If explicitly asked to retry after every activation.
4928
- */
4929
- if ( WP_FS__DEV_MODE ||
4930
- (
4931
- ( $this->is_plugin() || ( defined( 'WP_DEBUG' ) && WP_DEBUG ) ) &&
4932
- $this->get_plugin_version() == $this->_storage->is_anonymous['version']
4933
- )
4934
- ) {
4935
- $this->reset_anonymous_mode();
4936
- }
4937
- }
4938
-
4939
- if ( ! isset( $this->_storage->is_plugin_new_install ) ) {
4940
- /**
4941
- * If no previous version of plugin's version exist, it means that it's either
4942
- * the first time that the plugin installed on the site, or the plugin was installed
4943
- * before but didn't have Freemius integrated.
4944
- *
4945
- * Since register_activation_hook() do NOT fires on updates since 3.1, and only fires
4946
- * on manual activation via the dashboard, is_plugin_activation() is TRUE
4947
- * only after immediate activation.
4948
- *
4949
- * @since 1.1.4
4950
- * @link https://make.wordpress.org/core/2010/10/27/plugin-activation-hooks-no-longer-fire-for-updates/
4951
- */
4952
- $this->_storage->is_plugin_new_install = empty( $this->_storage->plugin_last_version );
4953
- }
4954
-
4955
- if ( ! $this->_anonymous_mode &&
4956
- $this->has_api_connectivity( WP_FS__DEV_MODE ) &&
4957
- ! $this->_isAutoInstall
4958
- ) {
4959
- // Store hint that the plugin was just activated to enable auto-redirection to settings.
4960
- add_option( 'fs_'
4961
- . ( $this->is_plugin() ? '' : $this->_module_type . '_' )
4962
- . "{$this->_slug}_activated", true );
4963
- }
4964
-
4965
- /**
4966
- * Activation hook is executed after the plugin's main file is loaded, therefore,
4967
- * after the plugin was loaded. The logic is located at activate_plugin()
4968
- * ./wp-admin/includes/plugin.php.
4969
- *
4970
- * @author Vova Feldman (@svovaf)
4971
- * @since 1.1.9
4972
- */
4973
- $this->_storage->was_plugin_loaded = true;
4974
- }
4975
-
4976
- /**
4977
- * Delete account.
4978
- *
4979
- * @author Vova Feldman (@svovaf)
4980
- * @since 1.0.3
4981
- *
4982
- * @param bool $check_user Enforce checking if user have plugins activation privileges.
4983
- */
4984
- function delete_account_event( $check_user = true ) {
4985
- $this->_logger->entrance( 'slug = ' . $this->_slug );
4986
-
4987
- if ( $check_user && ! $this->is_user_admin() ) {
4988
- return;
4989
- }
4990
-
4991
- $this->do_action( 'before_account_delete' );
4992
-
4993
- // Clear all admin notices.
4994
- $this->_admin_notices->clear_all_sticky();
4995
-
4996
- $this->_delete_site( false );
4997
-
4998
- $this->_delete_plans( false );
4999
-
5000
- $this->_delete_licenses( false );
5001
-
5002
- // Delete add-ons related to plugin's account.
5003
- $this->_delete_account_addons( false );
5004
-
5005
- // @todo Delete plans and licenses of add-ons.
5006
-
5007
- self::$_accounts->store();
5008
-
5009
- /**
5010
- * IMPORTANT:
5011
- * Clear crons must be executed before clearing all storage.
5012
- * Otherwise, the cron will not be cleared.
5013
- */
5014
- $this->clear_sync_cron();
5015
- $this->clear_install_sync_cron();
5016
-
5017
- // Clear all storage data.
5018
- $this->_storage->clear_all( true, array(
5019
- 'connectivity_test',
5020
- 'is_on',
5021
- ) );
5022
-
5023
- // Send delete event.
5024
- $this->get_api_site_scope()->call( '/', 'delete' );
5025
-
5026
- $this->do_action( 'after_account_delete' );
5027
- }
5028
-
5029
- /**
5030
- * Plugin deactivation hook.
5031
- *
5032
- * @author Vova Feldman (@svovaf)
5033
- * @since 1.0.1
5034
- */
5035
- function _deactivate_plugin_hook() {
5036
- $this->_logger->entrance( 'slug = ' . $this->_slug );
5037
-
5038
- if ( ! current_user_can( 'activate_plugins' ) ) {
5039
- return;
5040
- }
5041
-
5042
- $this->_admin_notices->clear_all_sticky();
5043
- if ( isset( $this->_storage->sticky_optin_added ) ) {
5044
- unset( $this->_storage->sticky_optin_added );
5045
- }
5046
-
5047
- if ( ! isset( $this->_storage->is_plugin_new_install ) ) {
5048
- // Remember that plugin was already installed.
5049
- $this->_storage->is_plugin_new_install = false;
5050
- }
5051
-
5052
- // Hook to plugin uninstall.
5053
- register_uninstall_hook( $this->_plugin_main_file_path, array( 'Freemius', '_uninstall_plugin_hook' ) );
5054
-
5055
- $this->clear_module_main_file_cache();
5056
- $this->clear_sync_cron();
5057
- $this->clear_install_sync_cron();
5058
-
5059
- if ( $this->is_registered() ) {
5060
- // Send deactivation event.
5061
- $this->sync_install( array(
5062
- 'is_active' => false,
5063
- ) );
5064
- } else {
5065
- if ( ! $this->has_api_connectivity() ) {
5066
- // Reset connectivity test cache.
5067
- unset( $this->_storage->connectivity_test );
5068
- }
5069
- }
5070
-
5071
- // Clear API cache on deactivation.
5072
- FS_Api::clear_cache();
5073
-
5074
- $this->remove_sdk_reference();
5075
- }
5076
-
5077
- /**
5078
- * @author Vova Feldman (@svovaf)
5079
- * @since 1.1.6
5080
- */
5081
- private function remove_sdk_reference() {
5082
- global $fs_active_plugins;
5083
-
5084
- foreach ( $fs_active_plugins->plugins as $sdk_path => &$data ) {
5085
- if ( $this->_plugin_basename == $data->plugin_path ) {
5086
- unset( $fs_active_plugins->plugins[ $sdk_path ] );
5087
- break;
5088
- }
5089
- }
5090
-
5091
- fs_fallback_to_newest_active_sdk();
5092
- }
5093
-
5094
- /**
5095
- * @author Vova Feldman (@svovaf)
5096
- * @since 1.1.3
5097
- *
5098
- * @param bool $is_anonymous
5099
- */
5100
- private function set_anonymous_mode( $is_anonymous = true ) {
5101
- // Store information regarding skip to try and opt-in the user
5102
- // again in the future.
5103
- $this->_storage->is_anonymous = array(
5104
- 'is' => $is_anonymous,
5105
- 'timestamp' => WP_FS__SCRIPT_START_TIME,
5106
- 'version' => $this->get_plugin_version(),
5107
- );
5108
-
5109
- // Update anonymous mode cache.
5110
- $this->_is_anonymous = $is_anonymous;
5111
- }
5112
-
5113
- /**
5114
- * @author Vova Feldman (@svovaf)
5115
- * @since 1.1.3
5116
- */
5117
- private function reset_anonymous_mode() {
5118
- unset( $this->_storage->is_anonymous );
5119
-
5120
- /**
5121
- * Ensure that this field is also "false", otherwise, if the current module's type is "theme" and the module
5122
- * has no menus, the opt-in popup will not be shown immediately (in this case, the user will have to click
5123
- * on the admin notice that contains the opt-in link in order to trigger the opt-in popup).
5124
- *
5125
- * @author Leo Fajardo (@leorw)
5126
- * @since 1.2.2
5127
- */
5128
- unset( $this->_is_anonymous );
5129
- }
5130
-
5131
- /**
5132
- * Clears the anonymous mode and redirects to the opt-in screen.
5133
- *
5134
- * @author Vova Feldman (@svovaf)
5135
- * @since 1.1.7
5136
- */
5137
- function connect_again() {
5138
- if ( ! $this->is_anonymous() ) {
5139
- return;
5140
- }
5141
-
5142
- $this->reset_anonymous_mode();
5143
-
5144
- fs_redirect( $this->get_activation_url() );
5145
- }
5146
-
5147
- /**
5148
- * Skip account connect, and set anonymous mode.
5149
- *
5150
- * @author Vova Feldman (@svovaf)
5151
- * @since 1.1.1
5152
- */
5153
- private function skip_connection() {
5154
- $this->_logger->entrance();
5155
-
5156
- $this->_admin_notices->remove_sticky( 'connect_account' );
5157
-
5158
- $this->set_anonymous_mode();
5159
-
5160
- // Send anonymous skip event.
5161
- // No user identified info nor any tracking will be sent after the user skips the opt-in.
5162
- $this->get_api_plugin_scope()->call( 'skip.json', 'put', array(
5163
- 'uid' => $this->get_anonymous_id(),
5164
- ) );
5165
- }
5166
-
5167
- /**
5168
- * Plugin version update hook.
5169
- *
5170
- * @author Vova Feldman (@svovaf)
5171
- * @since 1.0.4
5172
- */
5173
- private function update_plugin_version_event() {
5174
- $this->_logger->entrance();
5175
-
5176
- if ( ! $this->is_registered() ) {
5177
- return;
5178
- }
5179
-
5180
- $this->schedule_install_sync();
5181
- // $this->sync_install( array(), true );
5182
- }
5183
-
5184
- /**
5185
- * Return a list of modified plugins since the last sync.
5186
- *
5187
- * Note:
5188
- * There's no point to store a plugins counter since even if the number of
5189
- * plugins didn't change, we still need to check if the versions are all the
5190
- * same and the activity state is similar.
5191
- *
5192
- * @author Vova Feldman (@svovaf)
5193
- * @since 1.1.8
5194
- *
5195
- * @return array|false
5196
- */
5197
- private function get_plugins_data_for_api() {
5198
- // Alias.
5199
- $option_name = 'all_plugins';
5200
-
5201
- $all_cached_plugins = self::$_accounts->get_option( $option_name );
5202
-
5203
- if ( ! is_object( $all_cached_plugins ) ) {
5204
- $all_cached_plugins = (object) array(
5205
- 'timestamp' => '',
5206
- 'md5' => '',
5207
- 'plugins' => array(),
5208
- );
5209
- }
5210
-
5211
- $time = time();
5212
-
5213
- if ( ! empty( $all_cached_plugins->timestamp ) &&
5214
- ( $time - $all_cached_plugins->timestamp ) < WP_FS__TIME_5_MIN_IN_SEC
5215
- ) {
5216
- // Don't send plugin updates if last update was in the past 5 min.
5217
- return false;
5218
- }
5219
-
5220
- // Write timestamp to lock the logic.
5221
- $all_cached_plugins->timestamp = $time;
5222
- self::$_accounts->set_option( $option_name, $all_cached_plugins, true );
5223
-
5224
- // Reload options from DB.
5225
- self::$_accounts->load( true );
5226
- $all_cached_plugins = self::$_accounts->get_option( $option_name );
5227
-
5228
- if ( $time != $all_cached_plugins->timestamp ) {
5229
- // If timestamp is different, then another thread captured the lock.
5230
- return false;
5231
- }
5232
-
5233
- // Check if there's a change in plugins.
5234
- $all_plugins = self::get_all_plugins();
5235
-
5236
- // Check if plugins changed.
5237
- ksort( $all_plugins );
5238
-
5239
- $plugins_signature = '';
5240
- foreach ( $all_plugins as $basename => $data ) {
5241
- $plugins_signature .= $data['slug'] . ',' .
5242
- $data['Version'] . ',' .
5243
- ( $data['is_active'] ? '1' : '0' ) . ';';
5244
- }
5245
-
5246
- // Check if plugins status changed (version or active/inactive).
5247
- $plugins_changed = ( $all_cached_plugins->md5 !== md5( $plugins_signature ) );
5248
-
5249
- $plugins_update_data = array();
5250
-
5251
- if ( $plugins_changed ) {
5252
- // Change in plugins, report changes.
5253
-
5254
- // Update existing plugins info.
5255
- foreach ( $all_cached_plugins->plugins as $basename => $data ) {
5256
- if ( ! isset( $all_plugins[ $basename ] ) ) {
5257
- // Plugin uninstalled.
5258
- $uninstalled_plugin_data = $data;
5259
- $uninstalled_plugin_data['is_active'] = false;
5260
- $uninstalled_plugin_data['is_uninstalled'] = true;
5261
- $plugins_update_data[] = $uninstalled_plugin_data;
5262
-
5263
- unset( $all_plugins[ $basename ] );
5264
- unset( $all_cached_plugins->plugins[ $basename ] );
5265
- } else if ( $data['is_active'] !== $all_plugins[ $basename ]['is_active'] ||
5266
- $data['version'] !== $all_plugins[ $basename ]['Version']
5267
- ) {
5268
- // Plugin activated or deactivated, or version changed.
5269
- $all_cached_plugins->plugins[ $basename ]['is_active'] = $all_plugins[ $basename ]['is_active'];
5270
- $all_cached_plugins->plugins[ $basename ]['version'] = $all_plugins[ $basename ]['Version'];
5271
-
5272
- $plugins_update_data[] = $all_cached_plugins->plugins[ $basename ];
5273
- }
5274
- }
5275
-
5276
- // Find new plugins that weren't yet seen before.
5277
- foreach ( $all_plugins as $basename => $data ) {
5278
- if ( ! isset( $all_cached_plugins->plugins[ $basename ] ) ) {
5279
- // New plugin.
5280
- $new_plugin = array(
5281
- 'slug' => $data['slug'],
5282
- 'version' => $data['Version'],
5283
- 'title' => $data['Name'],
5284
- 'is_active' => $data['is_active'],
5285
- 'is_uninstalled' => false,
5286
- );
5287
-
5288
- $plugins_update_data[] = $new_plugin;
5289
- $all_cached_plugins->plugins[ $basename ] = $new_plugin;
5290
- }
5291
- }
5292
-
5293
- $all_cached_plugins->md5 = md5( $plugins_signature );
5294
- $all_cached_plugins->timestamp = $time;
5295
- self::$_accounts->set_option( $option_name, $all_cached_plugins, true );
5296
- }
5297
-
5298
- return $plugins_update_data;
5299
- }
5300
-
5301
- /**
5302
- * Return a list of modified themes since the last sync.
5303
- *
5304
- * Note:
5305
- * There's no point to store a themes counter since even if the number of
5306
- * themes didn't change, we still need to check if the versions are all the
5307
- * same and the activity state is similar.
5308
- *
5309
- * @author Vova Feldman (@svovaf)
5310
- * @since 1.1.8
5311
- *
5312
- * @return array|false
5313
- */
5314
- private function get_themes_data_for_api() {
5315
- // Alias.
5316
- $option_name = 'all_themes';
5317
-
5318
- $all_cached_themes = self::$_accounts->get_option( $option_name );
5319
-
5320
- if ( ! is_object( $all_cached_themes ) ) {
5321
- $all_cached_themes = (object) array(
5322
- 'timestamp' => '',
5323
- 'md5' => '',
5324
- 'themes' => array(),
5325
- );
5326
- }
5327
-
5328
- $time = time();
5329
-
5330
- if ( ! empty( $all_cached_themes->timestamp ) &&
5331
- ( $time - $all_cached_themes->timestamp ) < WP_FS__TIME_5_MIN_IN_SEC
5332
- ) {
5333
- // Don't send theme updates if last update was in the past 5 min.
5334
- return false;
5335
- }
5336
-
5337
- // Write timestamp to lock the logic.
5338
- $all_cached_themes->timestamp = $time;
5339
- self::$_accounts->set_option( $option_name, $all_cached_themes, true );
5340
-
5341
- // Reload options from DB.
5342
- self::$_accounts->load( true );
5343
- $all_cached_themes = self::$_accounts->get_option( $option_name );
5344
-
5345
- if ( $time != $all_cached_themes->timestamp ) {
5346
- // If timestamp is different, then another thread captured the lock.
5347
- return false;
5348
- }
5349
-
5350
- // Get active theme.
5351
- $active_theme = wp_get_theme();
5352
- $active_theme_stylesheet = $active_theme->get_stylesheet();
5353
-
5354
- // Check if there's a change in themes.
5355
- $all_themes = wp_get_themes();
5356
-
5357
- // Check if themes changed.
5358
- ksort( $all_themes );
5359
-
5360
- $themes_signature = '';
5361
- foreach ( $all_themes as $slug => $data ) {
5362
- $is_active = ( $slug === $active_theme_stylesheet );
5363
- $themes_signature .= $slug . ',' .
5364
- $data->version . ',' .
5365
- ( $is_active ? '1' : '0' ) . ';';
5366
- }
5367
-
5368
- // Check if themes status changed (version or active/inactive).
5369
- $themes_changed = ( $all_cached_themes->md5 !== md5( $themes_signature ) );
5370
-
5371
- $themes_update_data = array();
5372
-
5373
- if ( $themes_changed ) {
5374
- // Change in themes, report changes.
5375
-
5376
- // Update existing themes info.
5377
- foreach ( $all_cached_themes->themes as $slug => $data ) {
5378
- $is_active = ( $slug === $active_theme_stylesheet );
5379
-
5380
- if ( ! isset( $all_themes[ $slug ] ) ) {
5381
- // Plugin uninstalled.
5382
- $uninstalled_theme_data = $data;
5383
- $uninstalled_theme_data['is_active'] = false;
5384
- $uninstalled_theme_data['is_uninstalled'] = true;
5385
- $themes_update_data[] = $uninstalled_theme_data;
5386
-
5387
- unset( $all_themes[ $slug ] );
5388
- unset( $all_cached_themes->themes[ $slug ] );
5389
- } else if ( $data['is_active'] !== $is_active ||
5390
- $data['version'] !== $all_themes[ $slug ]->version
5391
- ) {
5392
- // Plugin activated or deactivated, or version changed.
5393
-
5394
- $all_cached_themes->themes[ $slug ]['is_active'] = $is_active;
5395
- $all_cached_themes->themes[ $slug ]['version'] = $all_themes[ $slug ]->version;
5396
-
5397
- $themes_update_data[] = $all_cached_themes->themes[ $slug ];
5398
- }
5399
- }
5400
-
5401
- // Find new themes that weren't yet seen before.
5402
- foreach ( $all_themes as $slug => $data ) {
5403
- if ( ! isset( $all_cached_themes->themes[ $slug ] ) ) {
5404
- $is_active = ( $slug === $active_theme_stylesheet );
5405
-
5406
- // New plugin.
5407
- $new_plugin = array(
5408
- 'slug' => $slug,
5409
- 'version' => $data->version,
5410
- 'title' => $data->name,
5411
- 'is_active' => $is_active,
5412
- 'is_uninstalled' => false,
5413
- );
5414
-
5415
- $themes_update_data[] = $new_plugin;
5416
- $all_cached_themes->themes[ $slug ] = $new_plugin;
5417
- }
5418
- }
5419
-
5420
- $all_cached_themes->md5 = md5( $themes_signature );
5421
- $all_cached_themes->timestamp = time();
5422
- self::$_accounts->set_option( $option_name, $all_cached_themes, true );
5423
- }
5424
-
5425
- return $themes_update_data;
5426
- }
5427
-
5428
- /**
5429
- * Update install details.
5430
- *
5431
- * @author Vova Feldman (@svovaf)
5432
- * @since 1.1.2
5433
- *
5434
- * @param string[] string $override
5435
- * @param bool $include_plugins Since 1.1.8 by default include plugin changes.
5436
- * @param bool $include_themes Since 1.1.8 by default include plugin changes.
5437
- *
5438
- * @return array
5439
- */
5440
- private function get_install_data_for_api(
5441
- array $override,
5442
- $include_plugins = true,
5443
- $include_themes = true
5444
- ) {
5445
- /**
5446
- * @since 1.1.8 Also send plugin updates.
5447
- */
5448
- if ( $include_plugins && ! isset( $override['plugins'] ) ) {
5449
- $plugins = $this->get_plugins_data_for_api();
5450
- if ( ! empty( $plugins ) ) {
5451
- $override['plugins'] = $plugins;
5452
- }
5453
- }
5454
- /**
5455
- * @since 1.1.8 Also send themes updates.
5456
- */
5457
- if ( $include_themes && ! isset( $override['themes'] ) ) {
5458
- $themes = $this->get_themes_data_for_api();
5459
- if ( ! empty( $themes ) ) {
5460
- $override['themes'] = $themes;
5461
- }
5462
- }
5463
-
5464
- return array_merge( array(
5465
- 'version' => $this->get_plugin_version(),
5466
- 'is_premium' => $this->is_premium(),
5467
- 'language' => get_bloginfo( 'language' ),
5468
- 'charset' => get_bloginfo( 'charset' ),
5469
- 'platform_version' => get_bloginfo( 'version' ),
5470
- 'sdk_version' => $this->version,
5471
- 'programming_language_version' => phpversion(),
5472
- 'title' => get_bloginfo( 'name' ),
5473
- 'url' => get_site_url(),
5474
- // Special params.
5475
- 'is_active' => true,
5476
- 'is_disconnected' => $this->is_tracking_prohibited(),
5477
- 'is_uninstalled' => false,
5478
- ), $override );
5479
- }
5480
-
5481
- /**
5482
- * Update install only if changed.
5483
- *
5484
- * @author Vova Feldman (@svovaf)
5485
- * @since 1.0.9
5486
- *
5487
- * @param string[] string $override
5488
- * @param bool $flush
5489
- *
5490
- * @return false|object|string
5491
- */
5492
- private function send_install_update( $override = array(), $flush = false ) {
5493
- $this->_logger->entrance();
5494
-
5495
- $check_properties = $this->get_install_data_for_api( $override );
5496
-
5497
- if ( $flush ) {
5498
- $params = $check_properties;
5499
- } else {
5500
- $params = array();
5501
- $special = array();
5502
- $special_override = false;
5503
-
5504
- foreach ( $check_properties as $p => $v ) {
5505
- if ( property_exists( $this->_site, $p ) ) {
5506
- if ( ( is_bool( $this->_site->{$p} ) || ! empty( $this->_site->{$p} ) ) &&
5507
- $this->_site->{$p} != $v
5508
- ) {
5509
- $this->_site->{$p} = $v;
5510
- $params[ $p ] = $v;
5511
- }
5512
- } else {
5513
- $special[ $p ] = $v;
5514
-
5515
- if ( isset( $override[ $p ] ) ||
5516
- 'plugins' === $p ||
5517
- 'themes' === $p
5518
- ) {
5519
- $special_override = true;
5520
- }
5521
- }
5522
- }
5523
-
5524
- if ( $special_override || 0 < count( $params ) ) {
5525
- // Add special params only if has at least one
5526
- // standard param, or if explicitly requested to
5527
- // override a special param or a param which is not exist
5528
- // in the install object.
5529
- $params = array_merge( $params, $special );
5530
- }
5531
- }
5532
-
5533
- if ( 0 < count( $params ) ) {
5534
- // Update last install sync timestamp.
5535
- $this->_storage->install_sync_timestamp = time();
5536
-
5537
- $params['uid'] = $this->get_anonymous_id();
5538
-
5539
- // Send updated values to FS.
5540
- $site = $this->get_api_site_scope()->call( '/', 'put', $params );
5541
-
5542
- if ( $this->is_api_result_entity( $site ) ) {
5543
- // I successfully sent install update, clear scheduled sync if exist.
5544
- $this->clear_install_sync_cron();
5545
- }
5546
-
5547
- return $site;
5548
- }
5549
-
5550
- return false;
5551
- }
5552
-
5553
- /**
5554
- * Update install only if changed.
5555
- *
5556
- * @author Vova Feldman (@svovaf)
5557
- * @since 1.0.9
5558
- *
5559
- * @param string[] string $override
5560
- * @param bool $flush
5561
- */
5562
- private function sync_install( $override = array(), $flush = false ) {
5563
- $this->_logger->entrance();
5564
-
5565
- $site = $this->send_install_update( $override, $flush );
5566
-
5567
- if ( false === $site ) {
5568
- // No sync required.
5569
- return;
5570
- }
5571
-
5572
- if ( ! $this->is_api_result_entity( $site ) ) {
5573
- // Failed to sync, don't update locally.
5574
- return;
5575
- }
5576
-
5577
- $plan = $this->get_plan();
5578
- $this->_site = new FS_Site( $site );
5579
- $this->_site->plan = $plan;
5580
-
5581
- $this->_store_site( true );
5582
- }
5583
-
5584
- /**
5585
- * Track install's custom event.
5586
- *
5587
- * IMPORTANT:
5588
- * Custom event tracking is currently only supported for specific clients.
5589
- * If you are not one of them, please don't use this method. If you will,
5590
- * the API will simply ignore your request based on the plugin ID.
5591
- *
5592
- * Need custom tracking for your plugin or theme?
5593
- * If you are interested in custom event tracking please contact yo@freemius.com
5594
- * for further details.
5595
- *
5596
- * @author Vova Feldman (@svovaf)
5597
- * @since 1.2.1
5598
- *
5599
- * @param string $name Event name.
5600
- * @param array $properties Associative key/value array with primitive values only
5601
- * @param bool $process_at A valid future date-time in the following format Y-m-d H:i:s.
5602
- * @param bool $once If true, event will be tracked only once. IMPORTANT: Still trigger the API call.
5603
- *
5604
- * @return object|false Event data or FALSE on failure.
5605
- *
5606
- * @throws \Freemius_InvalidArgumentException
5607
- */
5608
- public function track_event( $name, $properties = array(), $process_at = false, $once = false ) {
5609
- $this->_logger->entrance( http_build_query( array( 'name' => $name, 'once' => $once ) ) );
5610
-
5611
- if ( ! $this->is_registered() ) {
5612
- return false;
5613
- }
5614
-
5615
- $event = array( 'type' => $name );
5616
-
5617
- if ( is_numeric( $process_at ) && $process_at > time() ) {
5618
- $event['process_at'] = $process_at;
5619
- }
5620
-
5621
- if ( $once ) {
5622
- $event['once'] = true;
5623
- }
5624
-
5625
- if ( ! empty( $properties ) ) {
5626
- // Verify associative array values are primitive.
5627
- foreach ( $properties as $k => $v ) {
5628
- if ( ! is_scalar( $v ) ) {
5629
- throw new Freemius_InvalidArgumentException( 'The $properties argument must be an associative key/value array with primitive values only.' );
5630
- }
5631
- }
5632
-
5633
- $event['properties'] = $properties;
5634
- }
5635
-
5636
- $result = $this->get_api_site_scope()->call( 'events.json', 'post', $event );
5637
-
5638
- return $this->is_api_error( $result ) ?
5639
- false :
5640
- $result;
5641
- }
5642
-
5643
- /**
5644
- * Track install's custom event only once, but it still triggers the API call.
5645
- *
5646
- * IMPORTANT:
5647
- * Custom event tracking is currently only supported for specific clients.
5648
- * If you are not one of them, please don't use this method. If you will,
5649
- * the API will simply ignore your request based on the plugin ID.
5650
- *
5651
- * Need custom tracking for your plugin or theme?
5652
- * If you are interested in custom event tracking please contact yo@freemius.com
5653
- * for further details.
5654
- *
5655
- * @author Vova Feldman (@svovaf)
5656
- * @since 1.2.1
5657
- *
5658
- * @param string $name Event name.
5659
- * @param array $properties Associative key/value array with primitive values only
5660
- * @param bool $process_at A valid future date-time in the following format Y-m-d H:i:s.
5661
- *
5662
- * @return object|false Event data or FALSE on failure.
5663
- *
5664
- * @throws \Freemius_InvalidArgumentException
5665
- *
5666
- * @user Freemius::track_event()
5667
- */
5668
- public function track_event_once( $name, $properties = array(), $process_at = false ) {
5669
- return $this->track_event( $name, $properties, $process_at, true );
5670
- }
5671
-
5672
- /**
5673
- * Plugin uninstall hook.
5674
- *
5675
- * @author Vova Feldman (@svovaf)
5676
- * @since 1.0.1
5677
- *
5678
- * @param bool $check_user Enforce checking if user have plugins activation privileges.
5679
- */
5680
- function _uninstall_plugin_event( $check_user = true ) {
5681
- $this->_logger->entrance( 'slug = ' . $this->_slug );
5682
-
5683
- if ( $check_user && ! current_user_can( 'activate_plugins' ) ) {
5684
- return;
5685
- }
5686
-
5687
- $params = array();
5688
- $uninstall_reason = null;
5689
- if ( isset( $this->_storage->uninstall_reason ) ) {
5690
- $uninstall_reason = $this->_storage->uninstall_reason;
5691
- $params['reason_id'] = $uninstall_reason->id;
5692
- $params['reason_info'] = $uninstall_reason->info;
5693
- }
5694
-
5695
- if ( ! $this->is_registered() ) {
5696
- // Send anonymous uninstall event only if user submitted a feedback.
5697
- if ( isset( $uninstall_reason ) ) {
5698
- if ( isset( $uninstall_reason->is_anonymous ) && ! $uninstall_reason->is_anonymous ) {
5699
- $this->opt_in( false, false, false, false, true );
5700
- } else {
5701
- $params['uid'] = $this->get_anonymous_id();
5702
- $this->get_api_plugin_scope()->call( 'uninstall.json', 'put', $params );
5703
- }
5704
- }
5705
- } else {
5706
- // Send uninstall event.
5707
- $this->send_install_update( array_merge( $params, array(
5708
- 'is_active' => false,
5709
- 'is_uninstalled' => true,
5710
- ) ) );
5711
- }
5712
-
5713
- // @todo Decide if we want to delete plugin information from db.
5714
- }
5715
-
5716
- /**
5717
- * @author Vova Feldman (@svovaf)
5718
- * @since 1.1.1
5719
- *
5720
- * @return string
5721
- */
5722
- function premium_plugin_basename() {
5723
- return "{$this->_slug}-premium/" . basename( $this->_free_plugin_basename );
5724
- }
5725
-
5726
- /**
5727
- * Uninstall plugin hook. Called only when connected his account with Freemius for active sites tracking.
5728
- *
5729
- * @author Vova Feldman (@svovaf)
5730
- * @since 1.0.2
5731
- */
5732
- public static function _uninstall_plugin_hook() {
5733
- self::_load_required_static();
5734
-
5735
- self::$_static_logger->entrance();
5736
-
5737
- if ( ! current_user_can( 'activate_plugins' ) ) {
5738
- return;
5739
- }
5740
-
5741
- $plugin_file = substr( current_filter(), strlen( 'uninstall_' ) );
5742
-
5743
- self::$_static_logger->info( 'plugin = ' . $plugin_file );
5744
-
5745
- define( 'WP_FS__UNINSTALL_MODE', true );
5746
-
5747
- $fs = self::get_instance_by_file( $plugin_file );
5748
-
5749
- if ( is_object( $fs ) ) {
5750
- self::require_plugin_essentials();
5751
-
5752
- if ( is_plugin_active( $fs->_free_plugin_basename ) ||
5753
- is_plugin_active( $fs->premium_plugin_basename() )
5754
- ) {
5755
- // Deleting Free or Premium plugin version while the other version still installed.
5756
- return;
5757
- }
5758
-
5759
- $fs->_uninstall_plugin_event();
5760
-
5761
- $fs->do_action( 'after_uninstall' );
5762
- }
5763
- }
5764
-
5765
- #----------------------------------------------------------------------------------
5766
- #region Plugin Information
5767
- #----------------------------------------------------------------------------------
5768
-
5769
- /**
5770
- * Load WordPress core plugin.php essential module.
5771
- *
5772
- * @author Vova Feldman (@svovaf)
5773
- * @since 1.1.1
5774
- */
5775
- private static function require_plugin_essentials() {
5776
- if ( ! function_exists( 'get_plugins' ) ) {
5777
- self::$_static_logger->log( 'Including wp-admin/includes/plugin.php...' );
5778
-
5779
- require_once ABSPATH . 'wp-admin/includes/plugin.php';
5780
- }
5781
- }
5782
-
5783
- /**
5784
- * Load WordPress core pluggable.php module.
5785
- *
5786
- * @author Vova Feldman (@svovaf)
5787
- * @since 1.1.2
5788
- */
5789
- private static function require_pluggable_essentials() {
5790
- if ( ! function_exists( 'wp_get_current_user' ) ) {
5791
- require_once ABSPATH . 'wp-includes/pluggable.php';
5792
- }
5793
- }
5794
-
5795
- /**
5796
- * Return plugin data.
5797
- *
5798
- * @author Vova Feldman (@svovaf)
5799
- * @since 1.0.1
5800
- *
5801
- * @return array
5802
- */
5803
- function get_plugin_data() {
5804
- if ( ! isset( $this->_plugin_data ) ) {
5805
- self::require_plugin_essentials();
5806
-
5807
- if ( $this->is_plugin() ) {
5808
- /**
5809
- * @author Vova Feldman (@svovaf)
5810
- * @since 1.2.0 When using get_plugin_data() do NOT translate plugin data.
5811
- *
5812
- * @link https://github.com/Freemius/wordpress-sdk/issues/77
5813
- */
5814
- $plugin_data = get_plugin_data(
5815
- $this->_plugin_main_file_path,
5816
- false,
5817
- false
5818
- );
5819
- } else {
5820
- $theme_data = wp_get_theme();
5821
-
5822
- $plugin_data = array(
5823
- 'Name' => $theme_data->get( 'Name' ),
5824
- 'Version' => $theme_data->get( 'Version' ),
5825
- 'Author' => $theme_data->get( 'Author' ),
5826
- 'Description' => $theme_data->get( 'Description' ),
5827
- 'PluginURI' => $theme_data->get( 'ThemeURI' ),
5828
- );
5829
- }
5830
-
5831
- $this->_plugin_data = $plugin_data;
5832
- }
5833
-
5834
- return $this->_plugin_data;
5835
- }
5836
-
5837
- /**
5838
- * @author Vova Feldman (@svovaf)
5839
- * @since 1.0.1
5840
- * @since 1.2.2.5 If slug not set load slug by module ID.
5841
- *
5842
- * @return string Plugin slug.
5843
- */
5844
- function get_slug() {
5845
- if ( ! isset( $this->_slug ) ) {
5846
- $id_slug_type_path_map = self::$_accounts->get_option( 'id_slug_type_path_map', array() );
5847
- $this->_slug = $id_slug_type_path_map[ $this->_module_id ]['slug'];
5848
- }
5849
-
5850
- return $this->_slug;
5851
- }
5852
-
5853
- /**
5854
- * @author Vova Feldman (@svovaf)
5855
- * @since 1.2.1.7
5856
- *
5857
- * @return string Plugin slug.
5858
- */
5859
- function get_target_folder_name() {
5860
- return $this->_slug . ( $this->can_use_premium_code() ? '-premium' : '' );
5861
- }
5862
-
5863
- /**
5864
- * @author Vova Feldman (@svovaf)
5865
- * @since 1.0.1
5866
- *
5867
- * @return number Plugin ID.
5868
- */
5869
- function get_id() {
5870
- return $this->_plugin->id;
5871
- }
5872
-
5873
- /**
5874
- * @author Vova Feldman (@svovaf)
5875
- * @since 1.2.1.5
5876
- *
5877
- * @return string Freemius SDK version
5878
- */
5879
- function get_sdk_version() {
5880
- return $this->version;
5881
- }
5882
-
5883
- /**
5884
- * @author Vova Feldman (@svovaf)
5885
- * @since 1.2.1.5
5886
- *
5887
- * @return number Parent plugin ID (if parent exist).
5888
- */
5889
- function get_parent_id() {
5890
- return $this->is_addon() ?
5891
- $this->get_parent_instance()->get_id() :
5892
- $this->_plugin->id;
5893
- }
5894
-
5895
- /**
5896
- * @author Vova Feldman (@svovaf)
5897
- * @since 1.0.1
5898
- *
5899
- * @return string Plugin public key.
5900
- */
5901
- function get_public_key() {
5902
- return $this->_plugin->public_key;
5903
- }
5904
-
5905
- /**
5906
- * Will be available only on sandbox mode.
5907
- *
5908
- * @author Vova Feldman (@svovaf)
5909
- * @since 1.0.4
5910
- *
5911
- * @return mixed Plugin secret key.
5912
- */
5913
- function get_secret_key() {
5914
- return $this->_plugin->secret_key;
5915
- }
5916
-
5917
- /**
5918
- * @author Vova Feldman (@svovaf)
5919
- * @since 1.1.1
5920
- *
5921
- * @return bool
5922
- */
5923
- function has_secret_key() {
5924
- return ! empty( $this->_plugin->secret_key );
5925
- }
5926
-
5927
- /**
5928
- * @author Vova Feldman (@svovaf)
5929
- * @since 1.0.9
5930
- *
5931
- * @return string
5932
- */
5933
- function get_plugin_name() {
5934
- $this->_logger->entrance();
5935
-
5936
- if ( ! isset( $this->_plugin_name ) ) {
5937
- $plugin_data = $this->get_plugin_data();
5938
-
5939
- // Get name.
5940
- $this->_plugin_name = $plugin_data['Name'];
5941
-
5942
- // Check if plugin name contains "(Premium)" suffix and remove it.
5943
- $suffix = ' (premium)';
5944
- $suffix_len = strlen( $suffix );
5945
-
5946
- if ( strlen( $plugin_data['Name'] ) > $suffix_len &&
5947
- $suffix === substr( strtolower( $plugin_data['Name'] ), - $suffix_len )
5948
- ) {
5949
- $this->_plugin_name = substr( $plugin_data['Name'], 0, - $suffix_len );
5950
- }
5951
-
5952
- $this->_logger->departure( 'Name = ' . $this->_plugin_name );
5953
- }
5954
-
5955
- return $this->_plugin_name;
5956
- }
5957
-
5958
- /**
5959
- * @author Vova Feldman (@svovaf)
5960
- * @since 1.0.0
5961
- *
5962
- * @return string
5963
- */
5964
- function get_plugin_version() {
5965
- $this->_logger->entrance();
5966
-
5967
- $plugin_data = $this->get_plugin_data();
5968
-
5969
- $this->_logger->departure( 'Version = ' . $plugin_data['Version'] );
5970
-
5971
- return $this->apply_filters( 'plugin_version', $plugin_data['Version'] );
5972
- }
5973
-
5974
- /**
5975
- * @author Vova Feldman (@svovaf)
5976
- * @since 1.2.1.7
5977
- *
5978
- * @return string
5979
- */
5980
- function get_plugin_title() {
5981
- $this->_logger->entrance();
5982
-
5983
- $title = $this->_plugin->title;
5984
-
5985
- return $this->apply_filters( 'plugin_title', $title );
5986
- }
5987
-
5988
- /**
5989
- * @author Vova Feldman (@svovaf)
5990
- * @since 1.2.2.7
5991
- *
5992
- * @param bool $lowercase
5993
- *
5994
- * @return string
5995
- */
5996
- function get_module_label( $lowercase = false ) {
5997
- $label = $this->is_addon() ?
5998
- $this->get_text_inline( 'Add-On', 'addon' ) :
5999
- ( $this->is_plugin() ?
6000
- $this->get_text_inline( 'Plugin', 'plugin' ) :
6001
- $this->get_text_inline( 'Theme', 'theme' ) );
6002
-
6003
- if ( $lowercase ) {
6004
- $label = strtolower( $label );
6005
- }
6006
-
6007
- return $label;
6008
- }
6009
-
6010
- /**
6011
- * @author Vova Feldman (@svovaf)
6012
- * @since 1.0.4
6013
- *
6014
- * @return string
6015
- */
6016
- function get_plugin_basename() {
6017
- if ( ! isset( $this->_plugin_basename ) ) {
6018
- if ( $this->is_plugin() ) {
6019
- $this->_plugin_basename = plugin_basename( $this->_plugin_main_file_path );
6020
- } else {
6021
- $this->_plugin_basename = basename( dirname( $this->_plugin_main_file_path ) );
6022
- }
6023
- }
6024
-
6025
- return $this->_plugin_basename;
6026
- }
6027
-
6028
- function get_plugin_folder_name() {
6029
- $this->_logger->entrance();
6030
-
6031
- $plugin_folder = $this->_plugin_basename;
6032
-
6033
- while ( '.' !== dirname( $plugin_folder ) ) {
6034
- $plugin_folder = dirname( $plugin_folder );
6035
- }
6036
-
6037
- $this->_logger->departure( 'Folder Name = ' . $plugin_folder );
6038
-
6039
- return $plugin_folder;
6040
- }
6041
-
6042
- #endregion ------------------------------------------------------------------
6043
-
6044
- /* Account
6045
- ------------------------------------------------------------------------------------------------------------------*/
6046
-
6047
- /**
6048
- * Find plugin's slug by plugin's basename.
6049
- *
6050
- * @author Vova Feldman (@svovaf)
6051
- * @since 1.0.9
6052
- *
6053
- * @param string $plugin_base_name
6054
- *
6055
- * @return false|string
6056
- */
6057
- private static function find_slug_by_basename( $plugin_base_name ) {
6058
- $file_slug_map = self::$_accounts->get_option( 'file_slug_map', array() );
6059
-
6060
- if ( ! array( $file_slug_map ) || ! isset( $file_slug_map[ $plugin_base_name ] ) ) {
6061
- return false;
6062
- }
6063
-
6064
- return $file_slug_map[ $plugin_base_name ];
6065
- }
6066
-
6067
- /**
6068
- * Store the map between the plugin's basename to the slug.
6069
- *
6070
- * @author Vova Feldman (@svovaf)
6071
- * @since 1.0.9
6072
- */
6073
- private function store_file_slug_map() {
6074
- $file_slug_map = self::$_accounts->get_option( 'file_slug_map', array() );
6075
-
6076
- if ( ! array( $file_slug_map ) ) {
6077
- $file_slug_map = array();
6078
- }
6079
-
6080
- if ( ! isset( $file_slug_map[ $this->_plugin_basename ] ) ||
6081
- $file_slug_map[ $this->_plugin_basename ] !== $this->_slug
6082
- ) {
6083
- $file_slug_map[ $this->_plugin_basename ] = $this->_slug;
6084
- self::$_accounts->set_option( 'file_slug_map', $file_slug_map, true );
6085
- }
6086
- }
6087
-
6088
- /**
6089
- * @return FS_User[]
6090
- */
6091
- static function get_all_users() {
6092
- $users = self::$_accounts->get_option( 'users', array() );
6093
-
6094
- if ( ! is_array( $users ) ) {
6095
- $users = array();
6096
- }
6097
-
6098
- return $users;
6099
- }
6100
-
6101
- /**
6102
- * @param string $module_type
6103
- *
6104
- * @return FS_Site[]
6105
- */
6106
- private static function get_all_sites( $module_type = WP_FS__MODULE_TYPE_PLUGIN ) {
6107
- $sites = self::get_account_option( 'sites', $module_type );
6108
-
6109
- if ( ! is_array( $sites ) ) {
6110
- $sites = array();
6111
- }
6112
-
6113
- return $sites;
6114
- }
6115
-
6116
- /**
6117
- * @author Leo Fajardo (@leorw)
6118
- *
6119
- * @since 1.2.2
6120
- *
6121
- * @param string $option_name
6122
- * @param string $module_type
6123
- *
6124
- * @return mixed
6125
- */
6126
- private static function get_account_option( $option_name, $module_type ) {
6127
- if ( WP_FS__MODULE_TYPE_PLUGIN !== $module_type ) {
6128
- $option_name = $module_type . '_' . $option_name;
6129
- }
6130
-
6131
- return self::$_accounts->get_option( $option_name, array() );
6132
- }
6133
-
6134
- /**
6135
- * @author Leo Fajardo (@leorw)
6136
- *
6137
- * @since 1.2.2
6138
- *
6139
- * @param string $option_name
6140
- * @param mixed $option_value
6141
- * @param bool $store
6142
- */
6143
- private function set_account_option( $option_name, $option_value, $store ) {
6144
- self::set_account_option_by_module(
6145
- $this->_module_type,
6146
- $option_name,
6147
- $option_value,
6148
- $store
6149
- );
6150
- }
6151
-
6152
- /**
6153
- * @author Vova Feldman (@svovaf)
6154
- *
6155
- * @since 1.2.2.7
6156
- *
6157
- * @param string $module_type
6158
- * @param string $option_name
6159
- * @param mixed $option_value
6160
- * @param bool $store
6161
- */
6162
- private static function set_account_option_by_module( $module_type, $option_name, $option_value, $store ) {
6163
- if ( WP_FS__MODULE_TYPE_PLUGIN != $module_type ) {
6164
- $option_name = $module_type . '_' . $option_name;
6165
- }
6166
-
6167
- self::$_accounts->set_option( $option_name, $option_value, $store );
6168
- }
6169
-
6170
- /**
6171
- * @author Vova Feldman (@svovaf)
6172
- * @since 1.0.6
6173
- *
6174
- * @param string $module_type
6175
- *
6176
- * @return FS_Plugin_License[]
6177
- */
6178
- private static function get_all_licenses( $module_type = WP_FS__MODULE_TYPE_PLUGIN ) {
6179
- $licenses = self::get_account_option( 'licenses', $module_type );
6180
-
6181
- if ( ! is_array( $licenses ) ) {
6182
- $licenses = array();
6183
- }
6184
-
6185
- return $licenses;
6186
- }
6187
-
6188
- /**
6189
- * @param string|bool $module_type
6190
- *
6191
- * @return FS_Plugin_Plan[]
6192
- */
6193
- private static function get_all_plans( $module_type = false ) {
6194
- $plans = self::get_account_option( 'plans', $module_type );
6195
-
6196
- if ( ! is_array( $plans ) ) {
6197
- $plans = array();
6198
- }
6199
-
6200
- return $plans;
6201
- }
6202
-
6203
- /**
6204
- * @author Vova Feldman (@svovaf)
6205
- * @since 1.0.4
6206
- *
6207
- * @return FS_Plugin_Tag[]
6208
- */
6209
- private static function get_all_updates() {
6210
- $updates = self::$_accounts->get_option( 'updates', array() );
6211
-
6212
- if ( ! is_array( $updates ) ) {
6213
- $updates = array();
6214
- }
6215
-
6216
- return $updates;
6217
- }
6218
-
6219
- /**
6220
- * @author Vova Feldman (@svovaf)
6221
- * @since 1.0.6
6222
- *
6223
- * @return array<number,FS_Plugin[]>|false
6224
- */
6225
- private static function get_all_addons() {
6226
- $addons = self::$_accounts->get_option( 'addons', array() );
6227
-
6228
- if ( ! is_array( $addons ) ) {
6229
- $addons = array();
6230
- }
6231
-
6232
- return $addons;
6233
- }
6234
-
6235
- /**
6236
- * @author Vova Feldman (@svovaf)
6237
- * @since 1.0.6
6238
- *
6239
- * @return FS_Plugin[]|false
6240
- */
6241
- private static function get_all_account_addons() {
6242
- $addons = self::$_accounts->get_option( 'account_addons', array() );
6243
-
6244
- if ( ! is_array( $addons ) ) {
6245
- $addons = array();
6246
- }
6247
-
6248
- return $addons;
6249
- }
6250
-
6251
- /**
6252
- * Check if user has connected his account (opted-in).
6253
- *
6254
- * Note:
6255
- * If the user opted-in and opted-out on a later stage,
6256
- * this will still return true. If you want to check if the
6257
- * user is currently opted-in, use:
6258
- * `$fs->is_registered() && $fs->is_tracking_allowed()`
6259
- *
6260
- * @author Vova Feldman (@svovaf)
6261
- * @since 1.0.1
6262
- * @return bool
6263
- */
6264
- function is_registered() {
6265
- return is_object( $this->_user );
6266
- }
6267
-
6268
- /**
6269
- * Returns TRUE if the user opted-in and didn't disconnect (opt-out).
6270
- *
6271
- * @author Leo Fajardo (@leorw)
6272
- * @since 1.2.1.5
6273
- *
6274
- * @return bool
6275
- */
6276
- function is_tracking_allowed() {
6277
- return ( is_object( $this->_site ) && true !== $this->_site->is_disconnected );
6278
- }
6279
-
6280
- /**
6281
- * @author Vova Feldman (@svovaf)
6282
- * @since 1.0.4
6283
- *
6284
- * @return FS_Plugin
6285
- */
6286
- function get_plugin() {
6287
- return $this->_plugin;
6288
- }
6289
-
6290
- /**
6291
- * @author Vova Feldman (@svovaf)
6292
- * @since 1.0.3
6293
- *
6294
- * @return FS_User
6295
- */
6296
- function get_user() {
6297
- return $this->_user;
6298
- }
6299
-
6300
- /**
6301
- * @author Vova Feldman (@svovaf)
6302
- * @since 1.0.3
6303
- *
6304
- * @return FS_Site
6305
- */
6306
- function get_site() {
6307
- return $this->_site;
6308
- }
6309
-
6310
- /**
6311
- * Get plugin add-ons.
6312
- *
6313
- * @author Vova Feldman (@svovaf)
6314
- * @since 1.0.6
6315
- *
6316
- * @since 1.1.7.3 If not yet loaded, fetch data from the API.
6317
- *
6318
- * @param bool $flush
6319
- *
6320
- * @return FS_Plugin[]|false
6321
- */
6322
- function get_addons( $flush = false ) {
6323
- $this->_logger->entrance();
6324
-
6325
- if ( ! $this->_has_addons ) {
6326
- return false;
6327
- }
6328
-
6329
- $addons = $this->sync_addons( $flush );
6330
-
6331
- return ( ! is_array( $addons ) || empty( $addons ) ) ?
6332
- false :
6333
- $addons;
6334
- }
6335
-
6336
- /**
6337
- * @author Vova Feldman (@svovaf)
6338
- * @since 1.0.6
6339
- *
6340
- * @return FS_Plugin[]|false
6341
- */
6342
- function get_account_addons() {
6343
- $this->_logger->entrance();
6344
-
6345
- $addons = self::get_all_account_addons();
6346
-
6347
- if ( ! is_array( $addons ) ||
6348
- ! isset( $addons[ $this->_plugin->id ] ) ||
6349
- ! is_array( $addons[ $this->_plugin->id ] ) ||
6350
- 0 === count( $addons[ $this->_plugin->id ] )
6351
- ) {
6352
- return false;
6353
- }
6354
-
6355
- return $addons[ $this->_plugin->id ];
6356
- }
6357
-
6358
- /**
6359
- * Check if user has any
6360
- *
6361
- * @author Vova Feldman (@svovaf)
6362
- * @since 1.1.6
6363
- *
6364
- * @return bool
6365
- */
6366
- function has_account_addons() {
6367
- $addons = $this->get_account_addons();
6368
-
6369
- return is_array( $addons ) && ( 0 < count( $addons ) );
6370
- }
6371
-
6372
-
6373
- /**
6374
- * Get add-on by ID (from local data).
6375
- *
6376
- * @author Vova Feldman (@svovaf)
6377
- * @since 1.0.6
6378
- *
6379
- * @param number $id
6380
- *
6381
- * @return FS_Plugin|false
6382
- */
6383
- function get_addon( $id ) {
6384
- $this->_logger->entrance();
6385
-
6386
- $addons = $this->get_addons();
6387
-
6388
- if ( is_array( $addons ) ) {
6389
- foreach ( $addons as $addon ) {
6390
- if ( $id == $addon->id ) {
6391
- return $addon;
6392
- }
6393
- }
6394
- }
6395
-
6396
- return false;
6397
- }
6398
-
6399
- /**
6400
- * Get add-on by slug (from local data).
6401
- *
6402
- * @author Vova Feldman (@svovaf)
6403
- * @since 1.0.6
6404
- *
6405
- * @param string $slug
6406
- *
6407
- * @param bool $flush
6408
- *
6409
- * @return FS_Plugin|false
6410
- */
6411
- function get_addon_by_slug( $slug, $flush = false ) {
6412
- $this->_logger->entrance();
6413
-
6414
- $addons = $this->get_addons( $flush );
6415
-
6416
- if ( is_array( $addons ) ) {
6417
- foreach ( $addons as $addon ) {
6418
- if ( $slug === $addon->slug ) {
6419
- return $addon;
6420
- }
6421
- }
6422
- }
6423
-
6424
- return false;
6425
- }
6426
-
6427
- #----------------------------------------------------------------------------------
6428
- #region Plans & Licensing
6429
- #----------------------------------------------------------------------------------
6430
-
6431
- /**
6432
- * Check if running premium plugin code.
6433
- *
6434
- * @author Vova Feldman (@svovaf)
6435
- * @since 1.0.5
6436
- *
6437
- * @return bool
6438
- */
6439
- function is_premium() {
6440
- return $this->_plugin->is_premium;
6441
- }
6442
-
6443
- /**
6444
- * Get site's plan ID.
6445
- *
6446
- * @author Vova Feldman (@svovaf)
6447
- * @since 1.0.2
6448
- *
6449
- * @return number
6450
- */
6451
- function get_plan_id() {
6452
- return $this->_site->plan->id;
6453
- }
6454
-
6455
- /**
6456
- * Get site's plan title.
6457
- *
6458
- * @author Vova Feldman (@svovaf)
6459
- * @since 1.0.2
6460
- *
6461
- * @return string
6462
- */
6463
- function get_plan_title() {
6464
- return $this->_site->plan->title;
6465
- }
6466
-
6467
- /**
6468
- * @author Vova Feldman (@svovaf)
6469
- * @since 1.0.9
6470
- *
6471
- * @return FS_Plugin_Plan|false
6472
- */
6473
- function get_plan() {
6474
- return is_object( $this->_site->plan ) ?
6475
- $this->_site->plan :
6476
- false;
6477
- }
6478
-
6479
- /**
6480
- * @author Vova Feldman (@svovaf)
6481
- * @since 1.0.3
6482
- *
6483
- * @return bool
6484
- */
6485
- function is_trial() {
6486
- $this->_logger->entrance();
6487
-
6488
- if ( ! $this->is_registered() ) {
6489
- return false;
6490
- }
6491
-
6492
- return $this->_site->is_trial();
6493
- }
6494
-
6495
- /**
6496
- * Check if currently in a trial with payment method (credit card or paypal).
6497
- *
6498
- * @author Vova Feldman (@svovaf)
6499
- * @since 1.1.7
6500
- *
6501
- * @return bool
6502
- */
6503
- function is_paid_trial() {
6504
- $this->_logger->entrance();
6505
-
6506
- if ( ! $this->is_trial() ) {
6507
- return false;
6508
- }
6509
-
6510
- return $this->has_active_valid_license() && ( $this->_site->trial_plan_id == $this->_license->plan_id );
6511
- }
6512
-
6513
- /**
6514
- * Check if trial already utilized.
6515
- *
6516
- * @since 1.0.9
6517
- *
6518
- * @return bool
6519
- */
6520
- function is_trial_utilized() {
6521
- $this->_logger->entrance();
6522
-
6523
- if ( ! $this->is_registered() ) {
6524
- return false;
6525
- }
6526
-
6527
- return $this->_site->is_trial_utilized();
6528
- }
6529
-
6530
- /**
6531
- * Get trial plan information (if in trial).
6532
- *
6533
- * @author Vova Feldman (@svovaf)
6534
- * @since 1.0.9
6535
- *
6536
- * @return bool|FS_Plugin_Plan
6537
- */
6538
- function get_trial_plan() {
6539
- $this->_logger->entrance();
6540
-
6541
- if ( ! $this->is_trial() ) {
6542
- return false;
6543
- }
6544
-
6545
- return $this->_storage->trial_plan;
6546
- }
6547
-
6548
- /**
6549
- * Check if the user has an activate, non-expired license on current plugin's install.
6550
- *
6551
- * @since 1.0.9
6552
- *
6553
- * @return bool
6554
- */
6555
- function is_paying() {
6556
- $this->_logger->entrance();
6557
-
6558
- if ( ! $this->is_registered() ) {
6559
- return false;
6560
- }
6561
-
6562
- if ( ! $this->has_paid_plan() ) {
6563
- return false;
6564
- }
6565
-
6566
- return (
6567
- ! $this->is_trial() &&
6568
- 'free' !== $this->_site->plan->name &&
6569
- $this->has_active_valid_license()
6570
- );
6571
- }
6572
-
6573
- /**
6574
- * @author Vova Feldman (@svovaf)
6575
- * @since 1.0.4
6576
- *
6577
- * @return bool
6578
- */
6579
- function is_free_plan() {
6580
- if ( ! $this->is_registered() ) {
6581
- return true;
6582
- }
6583
-
6584
- if ( ! $this->has_paid_plan() ) {
6585
- return true;
6586
- }
6587
-
6588
- return (
6589
- 'free' === $this->_site->plan->name ||
6590
- ! $this->has_features_enabled_license()
6591
- );
6592
- }
6593
-
6594
- /**
6595
- * @author Vova Feldman (@svovaf)
6596
- * @since 1.0.5
6597
- *
6598
- * @return bool
6599
- */
6600
- function _has_premium_license() {
6601
- $this->_logger->entrance();
6602
-
6603
- $premium_license = $this->_get_available_premium_license();
6604
-
6605
- return ( false !== $premium_license );
6606
- }
6607
-
6608
- /**
6609
- * Check if user has any licenses associated with the plugin (including expired or blocking).
6610
- *
6611
- * @author Vova Feldman (@svovaf)
6612
- * @since 1.1.7.3
6613
- *
6614
- * @return bool
6615
- */
6616
- private function has_any_license() {
6617
- return is_array( $this->_licenses ) && ( 0 < count( $this->_licenses ) );
6618
- }
6619
-
6620
- /**
6621
- * @author Vova Feldman (@svovaf)
6622
- * @since 1.0.5
6623
- *
6624
- * @return FS_Plugin_License|false
6625
- */
6626
- function _get_available_premium_license() {
6627
- $this->_logger->entrance();
6628
-
6629
- if ( ! $this->has_paid_plan() ) {
6630
- return false;
6631
- }
6632
-
6633
- if ( is_array( $this->_licenses ) ) {
6634
- foreach ( $this->_licenses as $license ) {
6635
- if ( ! $license->is_utilized() && $license->is_features_enabled() ) {
6636
- return $license;
6637
- }
6638
- }
6639
- }
6640
-
6641
- return false;
6642
- }
6643
-
6644
- /**
6645
- * Sync local plugin plans with remote server.
6646
- *
6647
- * @author Vova Feldman (@svovaf)
6648
- * @since 1.0.5
6649
- *
6650
- * @return FS_Plugin_Plan[]|object
6651
- */
6652
- function _sync_plans() {
6653
- $plans = $this->_fetch_plugin_plans();
6654
-
6655
- if ( $this->is_array_instanceof( $plans, 'FS_Plugin_Plan' ) ) {
6656
- $this->_plans = $plans;
6657
- $this->_store_plans();
6658
- }
6659
-
6660
- $this->do_action( 'after_plans_sync', $plans );
6661
-
6662
- return $this->_plans;
6663
- }
6664
-
6665
- /**
6666
- * @author Vova Feldman (@svovaf)
6667
- * @since 1.0.5
6668
- *
6669
- * @param number $id
6670
- *
6671
- * @return FS_Plugin_Plan|false
6672
- */
6673
- function _get_plan_by_id( $id ) {
6674
- $this->_logger->entrance();
6675
-
6676
- if ( ! is_array( $this->_plans ) || 0 === count( $this->_plans ) ) {
6677
- $this->_sync_plans();
6678
- }
6679
-
6680
- foreach ( $this->_plans as $plan ) {
6681
- if ( $id == $plan->id ) {
6682
- return $plan;
6683
- }
6684
- }
6685
-
6686
- return false;
6687
- }
6688
-
6689
- /**
6690
- * @author Vova Feldman (@svovaf)
6691
- * @since 1.1.8.1
6692
- *
6693
- * @param string $name
6694
- *
6695
- * @return FS_Plugin_Plan|false
6696
- */
6697
- private function get_plan_by_name( $name ) {
6698
- $this->_logger->entrance();
6699
-
6700
- if ( ! is_array( $this->_plans ) || 0 === count( $this->_plans ) ) {
6701
- $this->_sync_plans();
6702
- }
6703
-
6704
- foreach ( $this->_plans as $plan ) {
6705
- if ( $name == $plan->name ) {
6706
- return $plan;
6707
- }
6708
- }
6709
-
6710
- return false;
6711
- }
6712
-
6713
- /**
6714
- * Sync local plugin plans with remote server.
6715
- *
6716
- * @author Vova Feldman (@svovaf)
6717
- * @since 1.0.6
6718
- *
6719
- * @param number|bool $site_license_id
6720
- *
6721
- * @return FS_Plugin_License[]|object
6722
- */
6723
- function _sync_licenses( $site_license_id = false ) {
6724
- $licenses = $this->_fetch_licenses( false, $site_license_id );
6725
-
6726
- if ( $this->is_array_instanceof( $licenses, 'FS_Plugin_License' ) ) {
6727
- $this->_licenses = $licenses;
6728
- $this->_store_licenses();
6729
- }
6730
-
6731
- // Update current license.
6732
- if ( is_object( $this->_license ) ) {
6733
- $this->_license = $this->_get_license_by_id( $this->_license->id );
6734
- }
6735
-
6736
- return $this->_licenses;
6737
- }
6738
-
6739
- /**
6740
- * @author Vova Feldman (@svovaf)
6741
- * @since 1.0.5
6742
- *
6743
- * @param number $id
6744
- *
6745
- * @return FS_Plugin_License|false
6746
- */
6747
- function _get_license_by_id( $id ) {
6748
- $this->_logger->entrance();
6749
-
6750
- if ( ! is_numeric( $id ) ) {
6751
- return false;
6752
- }
6753
-
6754
- if ( ! $this->has_any_license() ) {
6755
- $this->_sync_licenses();
6756
- }
6757
-
6758
- foreach ( $this->_licenses as $license ) {
6759
- if ( $id == $license->id ) {
6760
- return $license;
6761
- }
6762
- }
6763
-
6764
- return false;
6765
- }
6766
-
6767
- /**
6768
- * Sync site's license with user licenses.
6769
- *
6770
- * @author Vova Feldman (@svovaf)
6771
- * @since 1.0.6
6772
- *
6773
- * @param FS_Plugin_License|null $new_license
6774
- */
6775
- function _update_site_license( $new_license ) {
6776
- $this->_logger->entrance();
6777
-
6778
- $this->_license = $new_license;
6779
-
6780
- if ( ! is_object( $new_license ) ) {
6781
- $this->_site->license_id = null;
6782
- $this->_sync_site_subscription( null );
6783
-
6784
- return;
6785
- }
6786
-
6787
- $this->_site->license_id = $this->_license->id;
6788
-
6789
- if ( ! is_array( $this->_licenses ) ) {
6790
- $this->_licenses = array();
6791
- }
6792
-
6793
- $is_license_found = false;
6794
- for ( $i = 0, $len = count( $this->_licenses ); $i < $len; $i ++ ) {
6795
- if ( $new_license->id == $this->_licenses[ $i ]->id ) {
6796
- $this->_licenses[ $i ] = $new_license;
6797
-
6798
- $is_license_found = true;
6799
- break;
6800
- }
6801
- }
6802
-
6803
- // If new license just append.
6804
- if ( ! $is_license_found ) {
6805
- $this->_licenses[] = $new_license;
6806
- }
6807
-
6808
- $this->_sync_site_subscription( $new_license );
6809
- }
6810
-
6811
- /**
6812
- * Sync site's subscription.
6813
- *
6814
- * @author Vova Feldman (@svovaf)
6815
- * @since 1.0.9
6816
- *
6817
- * @param FS_Plugin_License|null $license
6818
- *
6819
- * @return bool|\FS_Subscription
6820
- */
6821
- private function _sync_site_subscription( $license ) {
6822
- if ( ! is_object( $license ) ) {
6823
- unset( $this->_storage->subscription );
6824
-
6825
- return false;
6826
- }
6827
-
6828
- // Load subscription details if not lifetime.
6829
- $subscription = $license->is_lifetime() ?
6830
- false :
6831
- $this->_fetch_site_license_subscription();
6832
-
6833
- if ( is_object( $subscription ) && ! isset( $subscription->error ) ) {
6834
- $this->_storage->subscription = $subscription;
6835
- } else {
6836
- unset( $this->_storage->subscription );
6837
- }
6838
-
6839
- return $subscription;
6840
- }
6841
-
6842
- /**
6843
- * @author Vova Feldman (@svovaf)
6844
- * @since 1.0.6
6845
- *
6846
- * @return bool|\FS_Plugin_License
6847
- */
6848
- function _get_license() {
6849
- return $this->_license;
6850
- }
6851
-
6852
- /**
6853
- * @return bool|\FS_Subscription
6854
- */
6855
- function _get_subscription() {
6856
- return isset( $this->_storage->subscription ) ?
6857
- $this->_storage->subscription :
6858
- false;
6859
- }
6860
-
6861
- /**
6862
- * @author Vova Feldman (@svovaf)
6863
- * @since 1.0.2
6864
- *
6865
- * @param string $plan Plan name
6866
- * @param bool $exact If true, looks for exact plan. If false, also check "higher" plans.
6867
- *
6868
- * @return bool
6869
- */
6870
- function is_plan( $plan, $exact = false ) {
6871
- $this->_logger->entrance();
6872
-
6873
- if ( ! $this->is_registered() ) {
6874
- return false;
6875
- }
6876
-
6877
- $plan = strtolower( $plan );
6878
-
6879
- if ( $this->_site->plan->name === $plan ) // Exact plan.
6880
- {
6881
- return true;
6882
- } else if ( $exact ) // Required exact, but plans are different.
6883
- {
6884
- return false;
6885
- }
6886
-
6887
- $current_plan_order = - 1;
6888
- $required_plan_order = - 1;
6889
- for ( $i = 0, $len = count( $this->_plans ); $i < $len; $i ++ ) {
6890
- if ( $plan === $this->_plans[ $i ]->name ) {
6891
- $required_plan_order = $i;
6892
- } else if ( $this->_site->plan->name === $this->_plans[ $i ]->name ) {
6893
- $current_plan_order = $i;
6894
- }
6895
- }
6896
-
6897
- return ( $current_plan_order > $required_plan_order );
6898
- }
6899
-
6900
- /**
6901
- * Check if module has only one plan.
6902
- *
6903
- * @author Vova Feldman (@svovaf)
6904
- * @since 1.2.1.7
6905
- *
6906
- * @return bool
6907
- */
6908
- function is_single_plan() {
6909
- $this->_logger->entrance();
6910
-
6911
- if ( ! $this->is_registered() ||
6912
- ! is_array( $this->_plans ) ||
6913
- 0 === count( $this->_plans )
6914
- ) {
6915
- return true;
6916
- }
6917
-
6918
- return ( 1 === count( $this->_plans ) );
6919
- }
6920
-
6921
- /**
6922
- * Check if plan based on trial. If not in trial mode, should return false.
6923
- *
6924
- * @since 1.0.9
6925
- *
6926
- * @param string $plan Plan name
6927
- * @param bool $exact If true, looks for exact plan. If false, also check "higher" plans.
6928
- *
6929
- * @return bool
6930
- */
6931
- function is_trial_plan( $plan, $exact = false ) {
6932
- $this->_logger->entrance();
6933
-
6934
- if ( ! $this->is_registered() ) {
6935
- return false;
6936
- }
6937
-
6938
- if ( ! $this->is_trial() ) {
6939
- return false;
6940
- }
6941
-
6942
- if ( ! isset( $this->_storage->trial_plan ) ) {
6943
- // Store trial plan information.
6944
- $this->_enrich_site_trial_plan( true );
6945
- }
6946
-
6947
- if ( $this->_storage->trial_plan->name === $plan ) // Exact plan.
6948
- {
6949
- return true;
6950
- } else if ( $exact ) // Required exact, but plans are different.
6951
- {
6952
- return false;
6953
- }
6954
-
6955
- $current_plan_order = - 1;
6956
- $required_plan_order = - 1;
6957
- for ( $i = 0, $len = count( $this->_plans ); $i < $len; $i ++ ) {
6958
- if ( $plan === $this->_plans[ $i ]->name ) {
6959
- $required_plan_order = $i;
6960
- } else if ( $this->_storage->trial_plan->name === $this->_plans[ $i ]->name ) {
6961
- $current_plan_order = $i;
6962
- }
6963
- }
6964
-
6965
- return ( $current_plan_order > $required_plan_order );
6966
- }
6967
-
6968
- /**
6969
- * Check if plugin has any paid plans.
6970
- *
6971
- * @author Vova Feldman (@svovaf)
6972
- * @since 1.0.7
6973
- *
6974
- * @return bool
6975
- */
6976
- function has_paid_plan() {
6977
- return $this->_has_paid_plans ||
6978
- FS_Plan_Manager::instance()->has_paid_plan( $this->_plans );
6979
- }
6980
-
6981
- /**
6982
- * Check if plugin has any plan with a trail.
6983
- *
6984
- * @author Vova Feldman (@svovaf)
6985
- * @since 1.0.9
6986
- *
6987
- * @return bool
6988
- */
6989
- function has_trial_plan() {
6990
- if ( ! $this->is_registered() ) {
6991
- /**
6992
- * @author Vova Feldman(@svovaf)
6993
- * @since 1.2.1.5
6994
- *
6995
- * Allow setting a trial from the SDK without calling the API.
6996
- * But, if the user did opt-in, continue using the real data from the API.
6997
- */
6998
- if ( $this->_trial_days >= 0 ) {
6999
- return true;
7000
- }
7001
-
7002
- return false;
7003
- }
7004
-
7005
- return $this->_storage->get( 'has_trial_plan', false );
7006
- }
7007
-
7008
- /**
7009
- * Check if plugin has any free plan, or is it premium only.
7010
- *
7011
- * Note: If no plans configured, assume plugin is free.
7012
- *
7013
- * @author Vova Feldman (@svovaf)
7014
- * @since 1.0.7
7015
- *
7016
- * @return bool
7017
- */
7018
- function has_free_plan() {
7019
- return ! $this->is_only_premium();
7020
- }
7021
-
7022
- /**
7023
- * Displays a license activation dialog box when the user clicks on the "Activate License"
7024
- * or "Change License" link on the plugins
7025
- * page.
7026
- *
7027
- * @author Leo Fajardo (@leorw)
7028
- * @since 1.1.9
7029
- */
7030
- function _add_license_activation_dialog_box() {
7031
- $vars = array(
7032
- 'id' => $this->_module_id,
7033
- );
7034
-
7035
- fs_require_template( 'forms/license-activation.php', $vars );
7036
- fs_require_template( 'forms/resend-key.php', $vars );
7037
- }
7038
-
7039
- /**
7040
- * Displays the opt-out dialog box when the user clicks on the "Opt Out" link on the "Plugins"
7041
- * page.
7042
- *
7043
- * @author Leo Fajardo (@leorw)
7044
- * @since 1.2.1.5
7045
- */
7046
- function _add_optout_dialog() {
7047
- if ( $this->is_theme() ) {
7048
- $vars = null;
7049
- fs_require_once_template( '/js/jquery.content-change.php', $vars );
7050
- }
7051
-
7052
- $vars = array( 'id' => $this->_module_id );
7053
- fs_require_template( 'forms/optout.php', $vars );
7054
- }
7055
-
7056
- /**
7057
- * Prepare page to include all required UI and logic for the license activation dialog.
7058
- *
7059
- * @author Vova Feldman (@svovaf)
7060
- * @since 1.2.0
7061
- */
7062
- function _add_license_activation() {
7063
- if ( ! $this->is_user_admin() ) {
7064
- // Only admins can activate a license.
7065
- return;
7066
- }
7067
-
7068
- if ( ! $this->has_paid_plan() ) {
7069
- // Module doesn't have any paid plans.
7070
- return;
7071
- }
7072
-
7073
- if ( ! $this->is_premium() ) {
7074
- // Only add license activation logic to the premium version.
7075
- return;
7076
- }
7077
-
7078
- // Add license activation link and AJAX request handler.
7079
- if ( self::is_plugins_page() ) {
7080
- /**
7081
- * @since 1.2.0 Add license action link only on plugins page.
7082
- */
7083
- $this->_add_license_action_link();
7084
- }
7085
-
7086
- // Add license activation AJAX callback.
7087
- $this->add_ajax_action( 'activate_license', array( &$this, '_activate_license_ajax_action' ) );
7088
-
7089
- // Add resend license AJAX callback.
7090
- $this->add_ajax_action( 'resend_license_key', array( &$this, '_resend_license_key_ajax_action' ) );
7091
- }
7092
-
7093
- /**
7094
- * @author Leo Fajardo (@leorw)
7095
- * @since 1.1.9
7096
- */
7097
- function _activate_license_ajax_action() {
7098
- $this->_logger->entrance();
7099
-
7100
- $this->check_ajax_referer( 'activate_license' );
7101
-
7102
- $license_key = trim( fs_request_get( 'license_key' ) );
7103
-
7104
- if ( empty( $license_key ) ) {
7105
- exit;
7106
- }
7107
-
7108
- $plugin_id = fs_request_get( 'module_id', '', 'post' );
7109
- $fs = ( $plugin_id == $this->_module_id ) ?
7110
- $this :
7111
- $this->get_addon_instance( $plugin_id );
7112
-
7113
- $error = false;
7114
- $next_page = false;
7115
-
7116
- if ( $fs->is_registered() ) {
7117
- $api = $fs->get_api_site_scope();
7118
- $install = $api->call( '/', 'put', array(
7119
- 'license_key' => $fs->apply_filters( 'license_key', $license_key )
7120
- ) );
7121
-
7122
- if ( isset( $install->error ) ) {
7123
- $error = $install->error->message;
7124
- } else {
7125
- $fs->_sync_license( true );
7126
-
7127
- $next_page = $fs->is_addon() ?
7128
- $fs->get_parent_instance()->get_account_url() :
7129
- $fs->get_account_url();
7130
-
7131
- $fs->reconnect_locally();
7132
- }
7133
- } else {
7134
- $next_page = $fs->opt_in( false, false, false, $license_key );
7135
-
7136
- if ( isset( $next_page->error ) ) {
7137
- $error = $next_page->error;
7138
- }
7139
- }
7140
-
7141
- $result = array(
7142
- 'success' => ( false === $error )
7143
- );
7144
-
7145
- if ( false !== $error ) {
7146
- $result['error'] = $error;
7147
- } else {
7148
- $result['next_page'] = $next_page;
7149
- }
7150
-
7151
- echo json_encode( $result );
7152
-
7153
- exit;
7154
- }
7155
-
7156
- /**
7157
- * Billing update AJAX callback.
7158
- *
7159
- * @author Vova Feldman (@svovaf)
7160
- * @since 1.2.1.5
7161
- */
7162
- function _update_billing_ajax_action() {
7163
- $this->_logger->entrance();
7164
-
7165
- $this->check_ajax_referer( 'update_billing' );
7166
-
7167
- if ( ! $this->is_user_admin() ) {
7168
- // Only for admins.
7169
- self::shoot_ajax_failure();
7170
- }
7171
-
7172
- $billing = fs_request_get( 'billing' );
7173
-
7174
- $api = $this->get_api_user_scope();
7175
- $result = $api->call( '/billing.json', 'put', array_merge( $billing, array(
7176
- 'plugin_id' => $this->get_parent_id(),
7177
- ) ) );
7178
-
7179
- if ( ! $this->is_api_result_entity( $result ) ) {
7180
- self::shoot_ajax_failure();
7181
- }
7182
-
7183
- // Purge cached billing.
7184
- $this->get_api_user_scope()->purge_cache( 'billing.json' );
7185
-
7186
- self::shoot_ajax_success();
7187
- }
7188
-
7189
- /**
7190
- * Trial start for anonymous users (AJAX callback).
7191
- *
7192
- * @author Vova Feldman (@svovaf)
7193
- * @since 1.2.1.5
7194
- */
7195
- function _start_trial_ajax_action() {
7196
- $this->_logger->entrance();
7197
-
7198
- $this->check_ajax_referer( 'start_trial' );
7199
-
7200
- if ( ! $this->is_user_admin() ) {
7201
- // Only for admins.
7202
- self::shoot_ajax_failure();
7203
- }
7204
-
7205
- $trial_data = fs_request_get( 'trial' );
7206
-
7207
- $next_page = $this->opt_in(
7208
- false,
7209
- false,
7210
- false,
7211
- false,
7212
- false,
7213
- $trial_data['plan_id']
7214
- );
7215
-
7216
- if ( is_object( $next_page ) && $this->is_api_error( $next_page ) ) {
7217
- self::shoot_ajax_failure(
7218
- isset( $next_page->error ) ?
7219
- $next_page->error->message :
7220
- var_export( $next_page, true )
7221
- );
7222
- }
7223
-
7224
- $this->shoot_ajax_success( array(
7225
- 'next_page' => $next_page,
7226
- ) );
7227
- }
7228
-
7229
- /**
7230
- * @author Leo Fajardo (@leorw)
7231
- * @since 1.2.0
7232
- */
7233
- function _resend_license_key_ajax_action() {
7234
- $this->_logger->entrance();
7235
-
7236
- $this->check_ajax_referer( 'resend_license_key' );
7237
-
7238
- $email_address = sanitize_email( trim( fs_request_get( 'email', '', 'post' ) ) );
7239
-
7240
- if ( empty( $email_address ) ) {
7241
- exit;
7242
- }
7243
-
7244
- $error = false;
7245
-
7246
- $api = $this->get_api_plugin_scope();
7247
- $result = $api->call( '/licenses/resend.json', 'post',
7248
- array(
7249
- 'email' => $email_address,
7250
- 'url' => home_url(),
7251
- )
7252
- );
7253
-
7254
- if ( is_object( $result ) && isset( $result->error ) ) {
7255
- $error = $result->error;
7256
-
7257
- if ( in_array( $error->code, array( 'invalid_email', 'no_user' ) ) ) {
7258
- $error = $this->get_text_inline( "We couldn't find your email address in the system, are you sure it's the right address?", 'email-not-found' );
7259
- } else if ( 'no_license' === $error->code ) {
7260
- $error = $this->get_text_inline( "We can't see any active licenses associated with that email address, are you sure it's the right address?", 'no-active-licenses' );
7261
- } else {
7262
- $error = $error->message;
7263
- }
7264
- }
7265
-
7266
- $licenses = array(
7267
- 'success' => ( false === $error )
7268
- );
7269
-
7270
- if ( false !== $error ) {
7271
- $licenses['error'] = sprintf( '%s... %s', $this->get_text_x_inline( 'Oops', 'exclamation', 'oops' ), strtolower( $error ) );
7272
- }
7273
-
7274
- echo json_encode( $licenses );
7275
-
7276
- exit;
7277
- }
7278
-
7279
- /**
7280
- * @author Vova Feldman (@svovaf)
7281
- * @since 1.2.1.8
7282
- *
7283
- * @var string
7284
- */
7285
- private static $_pagenow;
7286
-
7287
- /**
7288
- * Get current page or the referer if executing a WP AJAX request.
7289
- *
7290
- * @author Vova Feldman (@svovaf)
7291
- * @since 1.2.1.8
7292
- *
7293
- * @return string
7294
- */
7295
- static function get_current_page() {
7296
- if ( ! isset( self::$_pagenow ) ) {
7297
- global $pagenow;
7298
-
7299
- self::$_pagenow = $pagenow;
7300
-
7301
- if ( self::is_ajax() &&
7302
- 'admin-ajax.php' === $pagenow
7303
- ) {
7304
- $referer = fs_get_raw_referer();
7305
-
7306
- if ( is_string( $referer ) ) {
7307
- $parts = explode( '?', $referer );
7308
-
7309
- self::$_pagenow = basename( $parts[0] );
7310
- }
7311
- }
7312
- }
7313
-
7314
- return self::$_pagenow;
7315
- }
7316
-
7317
- /**
7318
- * Helper method to check if user in the plugins page.
7319
- *
7320
- * @author Vova Feldman (@svovaf)
7321
- * @since 1.2.1.5
7322
- *
7323
- * @return bool
7324
- */
7325
- static function is_plugins_page() {
7326
- return ( 'plugins.php' === self::get_current_page() );
7327
- }
7328
-
7329
- /**
7330
- * Helper method to check if user in the themes page.
7331
- *
7332
- * @author Vova Feldman (@svovaf)
7333
- * @since 1.2.2.6
7334
- *
7335
- * @return bool
7336
- */
7337
- static function is_themes_page() {
7338
- return ( 'themes.php' === self::get_current_page() );
7339
- }
7340
-
7341
- #----------------------------------------------------------------------------------
7342
- #region Affiliation
7343
- #----------------------------------------------------------------------------------
7344
-
7345
- /**
7346
- * @author Leo Fajardo
7347
- * @since 1.2.3
7348
- *
7349
- * @return bool
7350
- */
7351
- function has_affiliate_program() {
7352
- if ( ! is_object( $this->_plugin ) ) {
7353
- return false;
7354
- }
7355
-
7356
- return $this->_plugin->has_affiliate_program();
7357
- }
7358
-
7359
- /**
7360
- * @author Leo Fajardo (@leorw)
7361
- * @since 1.2.4
7362
- */
7363
- private function fetch_affiliate_terms() {
7364
- if ( ! is_object( $this->plugin_affiliate_terms ) ) {
7365
- $plugins_api = $this->get_api_plugin_scope();
7366
- $affiliate_terms = $plugins_api->get( '/aff.json?type=affiliation', false, WP_FS__TIME_WEEK_IN_SEC );
7367
-
7368
- if ( ! $this->is_api_result_entity( $affiliate_terms ) ) {
7369
- return;
7370
- }
7371
-
7372
- $this->plugin_affiliate_terms = new FS_AffiliateTerms( $affiliate_terms );
7373
- }
7374
- }
7375
-
7376
- /**
7377
- * @author Leo Fajardo (@leorw)
7378
- * @since 1.2.4
7379
- */
7380
- private function fetch_affiliate_and_custom_terms() {
7381
- if ( ! empty( $this->_storage->affiliate_application_data ) ) {
7382
- $application_data = $this->_storage->affiliate_application_data;
7383
- $flush = ( ! isset( $application_data['status'] ) || 'pending' === $application_data['status'] );
7384
-
7385
- $users_api = $this->get_api_user_scope();
7386
- $result = $users_api->get( "/plugins/{$this->_plugin->id}/aff/{$this->plugin_affiliate_terms->id}/affiliates.json", $flush, WP_FS__TIME_WEEK_IN_SEC );
7387
- if ( $this->is_api_result_object( $result, 'affiliates' ) ) {
7388
- if ( ! empty( $result->affiliates ) ) {
7389
- $affiliate = new FS_Affiliate( $result->affiliates[0] );
7390
-
7391
- if ( ! isset( $application_data['status'] ) || $application_data['status'] !== $affiliate->status ) {
7392
- $application_data['status'] = $affiliate->status;
7393
- $this->_storage->affiliate_application_data = $application_data;
7394
- }
7395
-
7396
- if ( $affiliate->is_using_custom_terms ) {
7397
- $affiliate_terms = $users_api->get( "/plugins/{$this->_plugin->id}/affiliates/{$affiliate->id}/aff/{$affiliate->custom_affiliate_terms_id}.json", $flush, WP_FS__TIME_WEEK_IN_SEC );
7398
- if ( $this->is_api_result_entity( $affiliate_terms ) ) {
7399
- $this->custom_affiliate_terms = new FS_AffiliateTerms( $affiliate_terms );
7400
- }
7401
- }
7402
-
7403
- $this->affiliate = $affiliate;
7404
- }
7405
- }
7406
- }
7407
- }
7408
-
7409
- /**
7410
- * @author Leo Fajardo (@leorw)
7411
- * @since 1.2.3
7412
- */
7413
- private function fetch_affiliate_and_terms() {
7414
- $this->_logger->entrance();
7415
-
7416
- $this->fetch_affiliate_terms();
7417
- $this->fetch_affiliate_and_custom_terms();
7418
- }
7419
-
7420
- /**
7421
- * @author Leo Fajardo
7422
- * @since 1.2.3
7423
- *
7424
- * @return FS_Affiliate
7425
- */
7426
- function get_affiliate() {
7427
- return $this->affiliate;
7428
- }
7429
-
7430
-
7431
- /**
7432
- * @author Leo Fajardo
7433
- * @since 1.2.3
7434
- *
7435
- * @return FS_AffiliateTerms
7436
- */
7437
- function get_affiliate_terms() {
7438
- return is_object( $this->custom_affiliate_terms ) ?
7439
- $this->custom_affiliate_terms :
7440
- $this->plugin_affiliate_terms;
7441
- }
7442
-
7443
- /**
7444
- * @author Leo Fajardo
7445
- * @since 1.2.3
7446
- *
7447
- * @return FS_Affiliate|null
7448
- */
7449
- function _submit_affiliate_application() {
7450
- $this->_logger->entrance();
7451
-
7452
- $this->check_ajax_referer( 'submit_affiliate_application' );
7453
-
7454
- if ( ! $this->is_user_admin() ) {
7455
- // Only for admins.
7456
- self::shoot_ajax_failure();
7457
- }
7458
-
7459
- $affiliate = fs_request_get( 'affiliate' );
7460
-
7461
- if ( empty( $affiliate['promotion_methods'] ) ) {
7462
- unset( $affiliate['promotion_methods'] );
7463
- }
7464
-
7465
- if ( ! empty( $affiliate['additional_domains'] ) ) {
7466
- $affiliate['additional_domains'] = array_unique( $affiliate['additional_domains'] );
7467
- }
7468
-
7469
- if ( ! $this->is_registered() ) {
7470
- // Opt in but don't track usage.
7471
- $next_page = $this->opt_in(
7472
- false,
7473
- false,
7474
- false,
7475
- false,
7476
- false,
7477
- false,
7478
- true
7479
- );
7480
-
7481
- if ( is_object( $next_page ) && $this->is_api_error( $next_page ) ) {
7482
- self::shoot_ajax_failure(
7483
- isset( $next_page->error ) ?
7484
- $next_page->error->message :
7485
- var_export( $next_page, true )
7486
- );
7487
- } else if ( $this->is_pending_activation() ) {
7488
- self::shoot_ajax_failure( $this->get_text_inline( 'Account is pending activation.', 'account-is-pending-activation' ) );
7489
- }
7490
- }
7491
-
7492
- $this->fetch_affiliate_terms();
7493
-
7494
- $api = $this->get_api_user_scope();
7495
- $result = $api->call(
7496
- ( "/plugins/{$this->_plugin->id}/aff/{$this->plugin_affiliate_terms->id}/affiliates.json" ),
7497
- 'post',
7498
- $affiliate
7499
- );
7500
-
7501
- if ( $this->is_api_error( $result ) ) {
7502
- self::shoot_ajax_failure(
7503
- isset( $result->error ) ?
7504
- $result->error->message :
7505
- var_export( $result, true )
7506
- );
7507
- }
7508
- else
7509
- {
7510
- if ( $this->_admin_notices->has_sticky( 'affiliate_program' ) ) {
7511
- $this->_admin_notices->remove_sticky( 'affiliate_program' );
7512
- }
7513
-
7514
- $affiliate_application_data = array(
7515
- 'status' => 'pending',
7516
- 'stats_description' => $affiliate['stats_description'],
7517
- 'promotion_method_description' => $affiliate['promotion_method_description'],
7518
- );
7519
-
7520
- if ( ! empty( $affiliate['promotion_methods'] ) ) {
7521
- $affiliate_application_data['promotion_methods'] = $affiliate['promotion_methods'];
7522
- }
7523
-
7524
- if ( ! empty( $affiliate['domain'] ) ) {
7525
- $affiliate_application_data['domain'] = $affiliate['domain'];
7526
- }
7527
-
7528
- if ( ! empty( $affiliate['additional_domains'] ) ) {
7529
- $affiliate_application_data['additional_domains'] = $affiliate['additional_domains'];
7530
- }
7531
-
7532
- $this->_storage->affiliate_application_data = $affiliate_application_data;
7533
- }
7534
-
7535
- // Purge cached affiliate.
7536
- $api->purge_cache( 'affiliate.json' );
7537
-
7538
- self::shoot_ajax_success( $result );
7539
- }
7540
-
7541
- /**
7542
- * @author Leo Fajardo
7543
- * @since 1.2.3
7544
- *
7545
- * @return array|null
7546
- */
7547
- function get_affiliate_application_data() {
7548
- if ( empty( $this->_storage->affiliate_application_data ) ) {
7549
- return null;
7550
- }
7551
-
7552
- return $this->_storage->affiliate_application_data;
7553
- }
7554
-
7555
- #endregion Affiliation ------------------------------------------------------------
7556
-
7557
- #----------------------------------------------------------------------------------
7558
- #region URL Generators
7559
- #----------------------------------------------------------------------------------
7560
-
7561
- /**
7562
- * Alias to pricing_url().
7563
- *
7564
- * @author Vova Feldman (@svovaf)
7565
- * @since 1.0.2
7566
- *
7567
- * @uses pricing_url()
7568
- *
7569
- * @param string $period Billing cycle
7570
- * @param bool $is_trial
7571
- *
7572
- * @return string
7573
- */
7574
- function get_upgrade_url( $period = WP_FS__PERIOD_ANNUALLY, $is_trial = false ) {
7575
- return $this->pricing_url( $period, $is_trial );
7576
- }
7577
-
7578
- /**
7579
- * @author Vova Feldman (@svovaf)
7580
- * @since 1.0.9
7581
- *
7582
- * @uses get_upgrade_url()
7583
- *
7584
- * @return string
7585
- */
7586
- function get_trial_url() {
7587
- return $this->get_upgrade_url( WP_FS__PERIOD_ANNUALLY, true );
7588
- }
7589
-
7590
- /**
7591
- * Plugin's pricing URL.
7592
- *
7593
- * @author Vova Feldman (@svovaf)
7594
- * @since 1.0.4
7595
- *
7596
- * @param string $billing_cycle Billing cycle
7597
- *
7598
- * @param bool $is_trial
7599
- *
7600
- * @return string
7601
- */
7602
- function pricing_url( $billing_cycle = WP_FS__PERIOD_ANNUALLY, $is_trial = false ) {
7603
- $this->_logger->entrance();
7604
-
7605
- $params = array(
7606
- 'billing_cycle' => $billing_cycle
7607
- );
7608
-
7609
- if ( $is_trial ) {
7610
- $params['trial'] = 'true';
7611
- }
7612
-
7613
- return $this->_get_admin_page_url( 'pricing', $params );
7614
- }
7615
-
7616
- /**
7617
- * Checkout page URL.
7618
- *
7619
- * @author Vova Feldman (@svovaf)
7620
- * @since 1.0.6
7621
- *
7622
- * @param string $billing_cycle Billing cycle
7623
- * @param bool $is_trial
7624
- * @param array $extra (optional) Extra parameters, override other query params.
7625
- *
7626
- * @return string
7627
- */
7628
- function checkout_url(
7629
- $billing_cycle = WP_FS__PERIOD_ANNUALLY,
7630
- $is_trial = false,
7631
- $extra = array()
7632
- ) {
7633
- $this->_logger->entrance();
7634
-
7635
- $params = array(
7636
- 'checkout' => 'true',
7637
- 'billing_cycle' => $billing_cycle,
7638
- );
7639
-
7640
- if ( $is_trial ) {
7641
- $params['trial'] = 'true';
7642
- }
7643
-
7644
- /**
7645
- * Params in extra override other params.
7646
- */
7647
- $params = array_merge( $params, $extra );
7648
-
7649
- return $this->_get_admin_page_url( 'pricing', $params );
7650
- }
7651
-
7652
- /**
7653
- * Add-on checkout URL.
7654
- *
7655
- * @author Vova Feldman (@svovaf)
7656
- * @since 1.1.7
7657
- *
7658
- * @param number $addon_id
7659
- * @param number $pricing_id
7660
- * @param string $billing_cycle
7661
- * @param bool $is_trial
7662
- *
7663
- * @return string
7664
- */
7665
- function addon_checkout_url(
7666
- $addon_id,
7667
- $pricing_id,
7668
- $billing_cycle = WP_FS__PERIOD_ANNUALLY,
7669
- $is_trial = false
7670
- ) {
7671
- return $this->checkout_url( $billing_cycle, $is_trial, array(
7672
- 'plugin_id' => $addon_id,
7673
- 'pricing_id' => $pricing_id,
7674
- ) );
7675
- }
7676
-
7677
- #endregion
7678
-
7679
- #endregion ------------------------------------------------------------------
7680
-
7681
- /**
7682
- * Check if plugin has any add-ons.
7683
- *
7684
- * @author Vova Feldman (@svovaf)
7685
- * @since 1.0.5
7686
- *
7687
- * @since 1.1.7.3 Base logic only on the parameter provided by the developer in the init function.
7688
- *
7689
- * @return bool
7690
- */
7691
- function has_addons() {
7692
- $this->_logger->entrance();
7693
-
7694
- return $this->_has_addons;
7695
- }
7696
-
7697
- /**
7698
- * Check if plugin can work in anonymous mode.
7699
- *
7700
- * @author Vova Feldman (@svovaf)
7701
- * @since 1.0.9
7702
- *
7703
- * @return bool
7704
- *
7705
- * @deprecated Please use is_enable_anonymous() instead
7706
- */
7707
- function enable_anonymous() {
7708
- return $this->_enable_anonymous;
7709
- }
7710
-
7711
- /**
7712
- * Check if plugin can work in anonymous mode.
7713
- *
7714
- * @author Vova Feldman (@svovaf)
7715
- * @since 1.1.9
7716
- *
7717
- * @return bool
7718
- */
7719
- function is_enable_anonymous() {
7720
- return $this->_enable_anonymous;
7721
- }
7722
-
7723
- /**
7724
- * Check if plugin is premium only (no free plans).
7725
- *
7726
- * @author Vova Feldman (@svovaf)
7727
- * @since 1.1.9
7728
- *
7729
- * @return bool
7730
- */
7731
- function is_only_premium() {
7732
- return $this->_is_premium_only;
7733
- }
7734
-
7735
- /**
7736
- * Checks if the plugin's type is "plugin". The other type is "theme".
7737
- *
7738
- * @author Leo Fajardo (@leorw)
7739
- * @since 1.2.2
7740
- *
7741
- * @return bool
7742
- */
7743
- function is_plugin() {
7744
- return ( WP_FS__MODULE_TYPE_PLUGIN === $this->_module_type );
7745
- }
7746
-
7747
- /**
7748
- * @author Leo Fajardo (@leorw)
7749
- * @since 1.2.2
7750
- *
7751
- * @return string
7752
- */
7753
- function get_module_type() {
7754
- if ( ! isset( $this->_module_type ) ) {
7755
- $id_slug_type_path_map = self::$_accounts->get_option( 'id_slug_type_path_map', array() );
7756
- $this->_module_type = $id_slug_type_path_map[ $this->_module_id ]['type'];
7757
- }
7758
-
7759
- return $this->_module_type;
7760
- }
7761
-
7762
- /**
7763
- * @author Leo Fajardo (@leorw)
7764
- * @since 1.2.2
7765
- *
7766
- * @return string
7767
- */
7768
- function get_plugin_main_file_path() {
7769
- return $this->_plugin_main_file_path;
7770
- }
7771
-
7772
- /**
7773
- * Check if module has a premium code version.
7774
- *
7775
- * Serviceware module might be freemium without any
7776
- * premium code version, where the paid features
7777
- * are all part of the service.
7778
- *
7779
- * @author Vova Feldman (@svovaf)
7780
- * @since 1.2.1.6
7781
- *
7782
- * @return bool
7783
- */
7784
- function has_premium_version() {
7785
- return $this->_has_premium_version;
7786
- }
7787
-
7788
- /**
7789
- * Check if feature supported with current site's plan.
7790
- *
7791
- * @author Vova Feldman (@svovaf)
7792
- * @since 1.0.1
7793
- *
7794
- * @todo IMPLEMENT
7795
- *
7796
- * @param number $feature_id
7797
- *
7798
- * @throws Exception
7799
- */
7800
- function is_feature_supported( $feature_id ) {
7801
- throw new Exception( 'not implemented' );
7802
- }
7803
-
7804
- /**
7805
- * @author Vova Feldman (@svovaf)
7806
- * @since 1.0.1
7807
- *
7808
- * @return bool Is running in SSL/HTTPS
7809
- */
7810
- function is_ssl() {
7811
- return WP_FS__IS_HTTPS;
7812
- }
7813
-
7814
- /**
7815
- * @author Vova Feldman (@svovaf)
7816
- * @since 1.0.9
7817
- *
7818
- * @return bool Is running in AJAX call.
7819
- *
7820
- * @link http://wordpress.stackexchange.com/questions/70676/how-to-check-if-i-am-in-admin-ajax
7821
- */
7822
- static function is_ajax() {
7823
- return ( defined( 'DOING_AJAX' ) && DOING_AJAX );
7824
- }
7825
-
7826
- /**
7827
- * Check if it's an AJAX call targeted for the current module.
7828
- *
7829
- * @author Vova Feldman (@svovaf)
7830
- * @since 1.2.0
7831
- *
7832
- * @param array|string $actions Collection of AJAX actions.
7833
- *
7834
- * @return bool
7835
- */
7836
- function is_ajax_action( $actions ) {
7837
- // Verify it's an ajax call.
7838
- if ( ! self::is_ajax() ) {
7839
- return false;
7840
- }
7841
-
7842
- // Verify the call is relevant for the plugin.
7843
- if ( $this->_module_id != fs_request_get( 'module_id' ) ) {
7844
- return false;
7845
- }
7846
-
7847
- // Verify it's one of the specified actions.
7848
- if ( is_string( $actions ) ) {
7849
- $actions = explode( ',', $actions );
7850
- }
7851
-
7852
- if ( is_array( $actions ) && 0 < count( $actions ) ) {
7853
- $ajax_action = fs_request_get( 'action' );
7854
-
7855
- foreach ( $actions as $action ) {
7856
- if ( $ajax_action === $this->get_action_tag( $action ) ) {
7857
- return true;
7858
- }
7859
- }
7860
- }
7861
-
7862
- return false;
7863
- }
7864
-
7865
- /**
7866
- * Check if it's an AJAX call targeted for current request.
7867
- *
7868
- * @author Vova Feldman (@svovaf)
7869
- * @since 1.2.0
7870
- *
7871
- * @param array|string $actions Collection of AJAX actions.
7872
- * @param number|null $module_id
7873
- *
7874
- * @return bool
7875
- */
7876
- static function is_ajax_action_static( $actions, $module_id = null ) {
7877
- // Verify it's an ajax call.
7878
- if ( ! self::is_ajax() ) {
7879
- return false;
7880
- }
7881
-
7882
-
7883
- if ( ! empty( $module_id ) ) {
7884
- // Verify the call is relevant for the plugin.
7885
- if ( $module_id != fs_request_get( 'module_id' ) ) {
7886
- return false;
7887
- }
7888
- }
7889
-
7890
- // Verify it's one of the specified actions.
7891
- if ( is_string( $actions ) ) {
7892
- $actions = explode( ',', $actions );
7893
- }
7894
-
7895
- if ( is_array( $actions ) && 0 < count( $actions ) ) {
7896
- $ajax_action = fs_request_get( 'action' );
7897
-
7898
- foreach ( $actions as $action ) {
7899
- if ( $ajax_action === self::get_ajax_action_static( $action, $module_id ) ) {
7900
- return true;
7901
- }
7902
- }
7903
- }
7904
-
7905
- return false;
7906
- }
7907
-
7908
- /**
7909
- * @author Vova Feldman (@svovaf)
7910
- * @since 1.1.7
7911
- *
7912
- * @return bool
7913
- */
7914
- static function is_cron() {
7915
- return ( defined( 'DOING_CRON' ) && DOING_CRON );
7916
- }
7917
-
7918
- /**
7919
- * Check if a real user is visiting the admin dashboard.
7920
- *
7921
- * @author Vova Feldman (@svovaf)
7922
- * @since 1.1.7
7923
- *
7924
- * @return bool
7925
- */
7926
- function is_user_in_admin() {
7927
- return is_admin() && ! self::is_ajax() && ! self::is_cron();
7928
- }
7929
-
7930
- /**
7931
- * Check if a real user is in the customizer view.
7932
- *
7933
- * @author Vova Feldman (@svovaf)
7934
- * @since 1.2.2.7
7935
- *
7936
- * @return bool
7937
- */
7938
- static function is_customizer() {
7939
- return is_customize_preview();
7940
- }
7941
-
7942
- /**
7943
- * Check if running in HTTPS and if site's plan matching the specified plan.
7944
- *
7945
- * @param string $plan
7946
- * @param bool $exact
7947
- *
7948
- * @return bool
7949
- */
7950
- function is_ssl_and_plan( $plan, $exact = false ) {
7951
- return ( $this->is_ssl() && $this->is_plan( $plan, $exact ) );
7952
- }
7953
-
7954
- /**
7955
- * Construct plugin's settings page URL.
7956
- *
7957
- * @author Vova Feldman (@svovaf)
7958
- * @since 1.0.4
7959
- *
7960
- * @param string $page
7961
- * @param array $params
7962
- *
7963
- * @return string
7964
- */
7965
- function _get_admin_page_url( $page = '', $params = array() ) {
7966
- if ( 0 < count( $params ) ) {
7967
- foreach ( $params as $k => $v ) {
7968
- $params[ $k ] = urlencode( $v );
7969
- }
7970
- }
7971
-
7972
- $page_param = $this->_menu->get_slug( $page );
7973
-
7974
- if ( empty( $page ) &&
7975
- $this->is_theme() &&
7976
- // Show the opt-in as an overlay for free wp.org themes or themes without any settings page.
7977
- ( $this->is_free_wp_org_theme() || ! $this->has_settings_menu() ) ) {
7978
- $params[ $this->get_unique_affix() . '_show_optin' ] = 'true';
7979
-
7980
- return add_query_arg(
7981
- $params,
7982
- admin_url( 'themes.php' )
7983
- );
7984
- }
7985
-
7986
- if ( ! $this->has_settings_menu() ) {
7987
- if ( ! empty( $page ) ) {
7988
- // Module doesn't have a setting page, but since the request is for
7989
- // a specific Freemius page, use the admin.php path.
7990
- return add_query_arg( array_merge( $params, array(
7991
- 'page' => $page_param,
7992
- ) ), admin_url( 'admin.php' ) );
7993
- } else {
7994
- if ( $this->is_activation_mode() ) {
7995
- /**
7996
- * @author Vova Feldman
7997
- * @since 1.2.1.6
7998
- *
7999
- * If plugin doesn't have a settings page, create one for the opt-in screen.
8000
- */
8001
- return add_query_arg( array_merge( $params, array(
8002
- 'page' => $this->_slug,
8003
- ) ), admin_url( 'admin.php', 'admin' ) );
8004
- } else {
8005
- // Plugin without a settings page.
8006
- return add_query_arg(
8007
- $params,
8008
- admin_url( 'plugins.php' )
8009
- );
8010
- }
8011
- }
8012
- }
8013
-
8014
- // Module has a submenu settings page.
8015
- if ( ! $this->_menu->is_top_level() ) {
8016
- $parent_slug = $this->_menu->get_parent_slug();
8017
- $menu_file = ( false !== strpos( $parent_slug, '.php' ) ) ?
8018
- $parent_slug :
8019
- 'admin.php';
8020
-
8021
- return add_query_arg( array_merge( $params, array(
8022
- 'page' => $page_param,
8023
- ) ), admin_url( $menu_file, 'admin' ) );
8024
- }
8025
-
8026
- // Module has a top level CPT settings page.
8027
- if ( $this->_menu->is_cpt() ) {
8028
- if ( empty( $page ) && $this->is_activation_mode() ) {
8029
- return add_query_arg( array_merge( $params, array(
8030
- 'page' => $page_param
8031
- ) ), admin_url( 'admin.php', 'admin' ) );
8032
- } else {
8033
- if ( ! empty( $page ) ) {
8034
- $params['page'] = $page_param;
8035
- }
8036
-
8037
- return add_query_arg(
8038
- $params,
8039
- admin_url( $this->_menu->get_raw_slug(), 'admin' )
8040
- );
8041
- }
8042
- }
8043
-
8044
- // Module has a custom top level settings page.
8045
- return add_query_arg( array_merge( $params, array(
8046
- 'page' => $page_param,
8047
- ) ), admin_url( 'admin.php', 'admin' ) );
8048
- }
8049
-
8050
- /**
8051
- * Check if currently in a specified admin page.
8052
- *
8053
- * @author Vova Feldman (@svovaf)
8054
- * @since 1.2.2.7
8055
- *
8056
- * @param string $page
8057
- *
8058
- * @return bool
8059
- */
8060
- function is_admin_page( $page ) {
8061
- return ( $this->_menu->get_slug( $page ) === fs_request_get( 'page', '', 'get' ) );
8062
- }
8063
-
8064
- /**
8065
- * Get module's main admin setting page URL.
8066
- *
8067
- * @author Vova Feldman (@svovaf)
8068
- * @since 1.2.2.7
8069
- *
8070
- * @return string
8071
- */
8072
- function main_menu_url() {
8073
- return $this->_menu->main_menu_url();
8074
- }
8075
-
8076
- /**
8077
- * Check if currently on the theme's setting page or
8078
- * on any of the Freemius added pages (via tabs).
8079
- *
8080
- * @author Vova Feldman (@svovaf)
8081
- * @since 1.2.2.7
8082
- *
8083
- * @return bool
8084
- */
8085
- function is_theme_settings_page() {
8086
- return fs_starts_with(
8087
- fs_request_get( 'page', '', 'get' ),
8088
- $this->_menu->get_slug()
8089
- );
8090
- }
8091
-
8092
- /**
8093
- * Plugin's account page + sync license URL.
8094
- *
8095
- * @author Vova Feldman (@svovaf)
8096
- * @since 1.1.9.1
8097
- *
8098
- * @param bool|number $plugin_id
8099
- * @param bool $add_action_nonce
8100
- * @param array $params
8101
- *
8102
- * @return string
8103
- */
8104
- function _get_sync_license_url( $plugin_id = false, $add_action_nonce = true, $params = array() ) {
8105
- if ( is_numeric( $plugin_id ) ) {
8106
- $params['plugin_id'] = $plugin_id;
8107
- }
8108
-
8109
- return $this->get_account_url(
8110
- $this->get_unique_affix() . '_sync_license',
8111
- $params,
8112
- $add_action_nonce
8113
- );
8114
- }
8115
-
8116
- /**
8117
- * Plugin's account URL.
8118
- *
8119
- * @author Vova Feldman (@svovaf)
8120
- * @since 1.0.4
8121
- *
8122
- * @param bool|string $action
8123
- * @param array $params
8124
- *
8125
- * @param bool $add_action_nonce
8126
- *
8127
- * @return string
8128
- */
8129
- function get_account_url( $action = false, $params = array(), $add_action_nonce = true ) {
8130
- if ( is_string( $action ) ) {
8131
- $params['fs_action'] = $action;
8132
- }
8133
-
8134
- self::require_pluggable_essentials();
8135
-
8136
- return ( $add_action_nonce && is_string( $action ) ) ?
8137
- fs_nonce_url( $this->_get_admin_page_url( 'account', $params ), $action ) :
8138
- $this->_get_admin_page_url( 'account', $params );
8139
- }
8140
-
8141
- /**
8142
- * @author Vova Feldman (@svovaf)
8143
- * @since 1.2.0
8144
- *
8145
- * @param string $tab
8146
- * @param bool $action
8147
- * @param array $params
8148
- * @param bool $add_action_nonce
8149
- *
8150
- * @return string
8151
- *
8152
- * @uses get_account_url()
8153
- */
8154
- function get_account_tab_url( $tab, $action = false, $params = array(), $add_action_nonce = true ) {
8155
- $params['tab'] = $tab;
8156
-
8157
- return $this->get_account_url( $action, $params, $add_action_nonce );
8158
- }
8159
-
8160
- /**
8161
- * Plugin's account URL.
8162
- *
8163
- * @author Vova Feldman (@svovaf)
8164
- * @since 1.0.4
8165
- *
8166
- * @param bool|string $topic
8167
- * @param bool|string $message
8168
- *
8169
- * @return string
8170
- */
8171
- function contact_url( $topic = false, $message = false ) {
8172
- $params = array();
8173
- if ( is_string( $topic ) ) {
8174
- $params['topic'] = $topic;
8175
- }
8176
- if ( is_string( $message ) ) {
8177
- $params['message'] = $message;
8178
- }
8179
-
8180
- if ( $this->is_addon() ) {
8181
- $params['addon_id'] = $this->get_id();
8182
-
8183
- return $this->get_parent_instance()->_get_admin_page_url( 'contact', $params );
8184
- } else {
8185
- return $this->_get_admin_page_url( 'contact', $params );
8186
- }
8187
- }
8188
-
8189
- /**
8190
- * Add-on direct info URL.
8191
- *
8192
- * @author Vova Feldman (@svovaf)
8193
- * @since 1.1.0
8194
- *
8195
- * @param string $slug
8196
- *
8197
- * @return string
8198
- */
8199
- function addon_url( $slug ) {
8200
- return $this->_get_admin_page_url( 'addons', array(
8201
- 'slug' => $slug
8202
- ) );
8203
- }
8204
-
8205
- /* Logger
8206
- ------------------------------------------------------------------------------------------------------------------*/
8207
- /**
8208
- * @param string $id
8209
- * @param bool $prefix_slug
8210
- *
8211
- * @return FS_Logger
8212
- */
8213
- function get_logger( $id = '', $prefix_slug = true ) {
8214
- return FS_Logger::get_logger( ( $prefix_slug ? $this->_slug : '' ) . ( ( ! $prefix_slug || empty( $id ) ) ? '' : '_' ) . $id );
8215
- }
8216
-
8217
- /**
8218
- * @param $id
8219
- * @param bool $load_options
8220
- * @param bool $prefix_slug
8221
- *
8222
- * @return FS_Option_Manager
8223
- */
8224
- function get_options_manager( $id, $load_options = false, $prefix_slug = true ) {
8225
- return FS_Option_Manager::get_manager( ( $prefix_slug ? $this->_slug : '' ) . ( ( ! $prefix_slug || empty( $id ) ) ? '' : '_' ) . $id, $load_options );
8226
- }
8227
-
8228
- /* Security
8229
- ------------------------------------------------------------------------------------------------------------------*/
8230
- private static function _encrypt( $str ) {
8231
- if ( is_null( $str ) ) {
8232
- return null;
8233
- }
8234
-
8235
- /**
8236
- * The encrypt/decrypt functions are used to protect
8237
- * the user from messing up with some of the sensitive
8238
- * data stored for the module as a JSON in the database.
8239
- *
8240
- * I used the same suggested hack by the theme review team.
8241
- * For more details, look at the function `Base64UrlDecode()`
8242
- * in `./sdk/FreemiusBase.php`.
8243
- *
8244
- * @todo Remove this hack once the base64 error is removed from the Theme Check.
8245
- *
8246
- * @author Vova Feldman (@svovaf)
8247
- * @since 1.2.2
8248
- */
8249
- $fn = 'base64' . '_encode';
8250
-
8251
- return $fn( $str );
8252
- }
8253
-
8254
- static function _decrypt( $str ) {
8255
- if ( is_null( $str ) ) {
8256
- return null;
8257
- }
8258
-
8259
- /**
8260
- * The encrypt/decrypt functions are used to protect
8261
- * the user from messing up with some of the sensitive
8262
- * data stored for the module as a JSON in the database.
8263
- *
8264
- * I used the same suggested hack by the theme review team.
8265
- * For more details, look at the function `Base64UrlDecode()`
8266
- * in `./sdk/FreemiusBase.php`.
8267
- *
8268
- * @todo Remove this hack once the base64 error is removed from the Theme Check.
8269
- *
8270
- * @author Vova Feldman (@svovaf)
8271
- * @since 1.2.2
8272
- */
8273
- $fn = 'base64' . '_decode';
8274
-
8275
- return $fn( $str );
8276
- }
8277
-
8278
- /**
8279
- * @author Vova Feldman (@svovaf)
8280
- * @since 1.0.5
8281
- *
8282
- * @param FS_Entity $entity
8283
- *
8284
- * @return FS_Entity Return an encrypted clone entity.
8285
- */
8286
- private static function _encrypt_entity( FS_Entity $entity ) {
8287
- $clone = clone $entity;
8288
- $props = get_object_vars( $entity );
8289
-
8290
- foreach ( $props as $key => $val ) {
8291
- $clone->{$key} = self::_encrypt( $val );
8292
- }
8293
-
8294
- return $clone;
8295
- }
8296
-
8297
- /**
8298
- * @author Vova Feldman (@svovaf)
8299
- * @since 1.0.5
8300
- *
8301
- * @param FS_Entity $entity
8302
- *
8303
- * @return FS_Entity Return an decrypted clone entity.
8304
- */
8305
- private static function decrypt_entity( FS_Entity $entity ) {
8306
- $clone = clone $entity;
8307
- $props = get_object_vars( $entity );
8308
-
8309
- foreach ( $props as $key => $val ) {
8310
- $clone->{$key} = self::_decrypt( $val );
8311
- }
8312
-
8313
- return $clone;
8314
- }
8315
-
8316
- /**
8317
- * Tries to activate account based on POST params.
8318
- *
8319
- * @author Vova Feldman (@svovaf)
8320
- * @since 1.0.2
8321
- */
8322
- function _activate_account() {
8323
- if ( $this->is_registered() ) {
8324
- // Already activated.
8325
- return;
8326
- }
8327
-
8328
- self::_clean_admin_content_section();
8329
-
8330
- if ( fs_request_is_action( 'activate' ) && fs_request_is_post() ) {
8331
- // check_admin_referer( 'activate_' . $this->_plugin->public_key );
8332
-
8333
- // Verify matching plugin details.
8334
- if ( $this->_plugin->id != fs_request_get( 'plugin_id' ) || $this->_slug != fs_request_get( 'plugin_slug' ) ) {
8335
- return;
8336
- }
8337
-
8338
- $user = new FS_User();
8339
- $user->id = fs_request_get( 'user_id' );
8340
- $user->public_key = fs_request_get( 'user_public_key' );
8341
- $user->secret_key = fs_request_get( 'user_secret_key' );
8342
- $user->email = fs_request_get( 'user_email' );
8343
- $user->first = fs_request_get( 'user_first' );
8344
- $user->last = fs_request_get( 'user_last' );
8345
- $user->is_verified = fs_request_get_bool( 'user_is_verified' );
8346
-
8347
- $site = new FS_Site();
8348
- $site->id = fs_request_get( 'install_id' );
8349
- $site->public_key = fs_request_get( 'install_public_key' );
8350
- $site->secret_key = fs_request_get( 'install_secret_key' );
8351
- $site->plan->id = fs_request_get( 'plan_id' );
8352
- $site->plan->title = fs_request_get( 'plan_title' );
8353
- $site->plan->name = fs_request_get( 'plan_name' );
8354
-
8355
- $plans = array();
8356
- $plans_data = json_decode( urldecode( fs_request_get( 'plans' ) ) );
8357
- foreach ( $plans_data as $p ) {
8358
- $plans[] = new FS_Plugin_Plan( $p );
8359
- }
8360
-
8361
- $this->_set_account( $user, $site, $plans );
8362
-
8363
- // Reload the page with the keys.
8364
- fs_redirect( $this->_get_admin_page_url() );
8365
- }
8366
- }
8367
-
8368
- /**
8369
- * @author Vova Feldman (@svovaf)
8370
- * @since 1.0.7
8371
- *
8372
- * @param string $email
8373
- *
8374
- * @return FS_User|bool
8375
- */
8376
- static function _get_user_by_email( $email ) {
8377
- self::$_static_logger->entrance();
8378
-
8379
- $email = trim( strtolower( $email ) );
8380
- $users = self::get_all_users();
8381
- if ( is_array( $users ) ) {
8382
- foreach ( $users as $u ) {
8383
- if ( $email === trim( strtolower( $u->email ) ) ) {
8384
- return $u;
8385
- }
8386
- }
8387
- }
8388
-
8389
- return false;
8390
- }
8391
-
8392
- #----------------------------------------------------------------------------------
8393
- #region Account (Loading, Updates & Activation)
8394
- #----------------------------------------------------------------------------------
8395
-
8396
- /***
8397
- * Load account information (user + site).
8398
- *
8399
- * @author Vova Feldman (@svovaf)
8400
- * @since 1.0.1
8401
- */
8402
- private function _load_account() {
8403
- $this->_logger->entrance();
8404
-
8405
- $this->do_action( 'before_account_load' );
8406
-
8407
- $sites = self::get_all_sites( $this->_module_type );
8408
- $users = self::get_all_users();
8409
- $plans = self::get_all_plans( $this->_module_type );
8410
- $licenses = self::get_all_licenses( $this->_module_type );
8411
-
8412
- if ( $this->_logger->is_on() && is_admin() ) {
8413
- $this->_logger->log( 'sites = ' . var_export( $sites, true ) );
8414
- $this->_logger->log( 'users = ' . var_export( $users, true ) );
8415
- $this->_logger->log( 'plans = ' . var_export( $plans, true ) );
8416
- $this->_logger->log( 'licenses = ' . var_export( $licenses, true ) );
8417
- }
8418
-
8419
- $site = isset( $sites[ $this->_slug ] ) ? $sites[ $this->_slug ] : false;
8420
-
8421
- if ( is_object( $site ) &&
8422
- is_numeric( $site->id ) &&
8423
- is_numeric( $site->user_id ) &&
8424
- is_object( $site->plan )
8425
- ) {
8426
- // Load site.
8427
- $this->_site = clone $site;
8428
- $this->_site->plan = self::decrypt_entity( $this->_site->plan );
8429
-
8430
- /**
8431
- * If the install owner's details are not stored locally, use the previous user's details if available.
8432
- *
8433
- * @author Leo Fajardo (@leorw)
8434
- */
8435
- if ( ! isset( $users[ $this->_site->user_id ] ) && FS_User::is_valid_id( $this->_storage->prev_user_id ) ) {
8436
- $user_id = $this->_storage->prev_user_id;
8437
- } else {
8438
- $user_id = $this->_site->user_id;
8439
- }
8440
-
8441
- // Load relevant user.
8442
- $this->_user = clone $users[ $user_id ];
8443
-
8444
- // Load plans.
8445
- $this->_plans = $plans[ $this->_slug ];
8446
- if ( ! is_array( $this->_plans ) || empty( $this->_plans ) ) {
8447
- $this->_sync_plans();
8448
- } else {
8449
- for ( $i = 0, $len = count( $this->_plans ); $i < $len; $i ++ ) {
8450
- if ( $this->_plans[ $i ] instanceof FS_Plugin_Plan ) {
8451
- $this->_plans[ $i ] = self::decrypt_entity( $this->_plans[ $i ] );
8452
- } else {
8453
- unset( $this->_plans[ $i ] );
8454
- }
8455
- }
8456
- }
8457
-
8458
- // Load licenses.
8459
- $this->_licenses = array();
8460
- if ( is_array( $licenses ) &&
8461
- isset( $licenses[ $this->_slug ] ) &&
8462
- isset( $licenses[ $this->_slug ][ $this->_user->id ] )
8463
- ) {
8464
- $this->_licenses = $licenses[ $this->_slug ][ $this->_user->id ];
8465
- }
8466
-
8467
- $this->_license = $this->_get_license_by_id( $this->_site->license_id );
8468
-
8469
- if ( $this->_site->version != $this->get_plugin_version() ) {
8470
- // If stored install version is different than current installed plugin version,
8471
- // then update plugin version event.
8472
- $this->update_plugin_version_event();
8473
- }
8474
- }
8475
-
8476
- $this->_register_account_hooks();
8477
- }
8478
-
8479
- /**
8480
- * @author Vova Feldman (@svovaf)
8481
- * @since 1.0.1
8482
- *
8483
- * @param FS_User $user
8484
- * @param FS_Site $site
8485
- * @param bool|array $plans
8486
- */
8487
- private function _set_account( FS_User $user, FS_Site $site, $plans = false ) {
8488
- $site->slug = $this->_slug;
8489
- $site->user_id = $user->id;
8490
-
8491
- $this->_site = $site;
8492
- $this->_user = $user;
8493
- if ( false !== $plans ) {
8494
- $this->_plans = $plans;
8495
- }
8496
-
8497
- $this->send_install_update();
8498
-
8499
- $this->_store_account();
8500
-
8501
- }
8502
-
8503
- /**
8504
- * @author Vova Feldman (@svovaf)
8505
- * @since 1.1.7.4
8506
- *
8507
- * @param array $override_with
8508
- *
8509
- * @return array
8510
- */
8511
- function get_opt_in_params( $override_with = array() ) {
8512
- $this->_logger->entrance();
8513
-
8514
- $current_user = self::_get_current_wp_user();
8515
-
8516
- $activation_action = $this->get_unique_affix() . '_activate_new';
8517
- $return_url = $this->is_anonymous() ?
8518
- // If skipped already, then return to the account page.
8519
- $this->get_account_url( $activation_action, array(), false ) :
8520
- // Return to the module's main page.
8521
- $this->get_after_activation_url( 'after_connect_url', array( 'fs_action' => $activation_action ) );
8522
-
8523
- $params = array(
8524
- 'user_firstname' => $current_user->user_firstname,
8525
- 'user_lastname' => $current_user->user_lastname,
8526
- 'user_nickname' => $current_user->user_nicename,
8527
- 'user_email' => $current_user->user_email,
8528
- 'user_ip' => WP_FS__REMOTE_ADDR,
8529
- 'plugin_slug' => $this->_slug,
8530
- 'plugin_id' => $this->get_id(),
8531
- 'plugin_public_key' => $this->get_public_key(),
8532
- 'plugin_version' => $this->get_plugin_version(),
8533
- 'return_url' => fs_nonce_url( $return_url, $activation_action ),
8534
- 'account_url' => fs_nonce_url( $this->_get_admin_page_url(
8535
- 'account',
8536
- array( 'fs_action' => 'sync_user' )
8537
- ), 'sync_user' ),
8538
- 'site_uid' => $this->get_anonymous_id(),
8539
- 'site_url' => get_site_url(),
8540
- 'site_name' => get_bloginfo( 'name' ),
8541
- 'platform_version' => get_bloginfo( 'version' ),
8542
- 'sdk_version' => $this->version,
8543
- 'programming_language_version' => phpversion(),
8544
- 'language' => get_bloginfo( 'language' ),
8545
- 'charset' => get_bloginfo( 'charset' ),
8546
- 'is_premium' => $this->is_premium(),
8547
- 'is_active' => true,
8548
- 'is_uninstalled' => false,
8549
- );
8550
-
8551
- if ( $this->is_pending_activation() &&
8552
- ! empty( $this->_storage->pending_license_key )
8553
- ) {
8554
- $params['license_key'] = $this->_storage->pending_license_key;
8555
- }
8556
-
8557
- if ( WP_FS__SKIP_EMAIL_ACTIVATION && $this->has_secret_key() ) {
8558
- // Even though rand() is known for its security issues,
8559
- // the timestamp adds another layer of protection.
8560
- // It would be very hard for an attacker to get the secret key form here.
8561
- // Plus, this should never run in production since the secret should never
8562
- // be included in the production version.
8563
- $params['ts'] = WP_FS__SCRIPT_START_TIME;
8564
- $params['salt'] = md5( uniqid( rand() ) );
8565
- $params['secure'] = md5(
8566
- $params['ts'] .
8567
- $params['salt'] .
8568
- $this->get_secret_key()
8569
- );
8570
- }
8571
-
8572
- return array_merge( $params, $override_with );
8573
- }
8574
-
8575
- /**
8576
- * 1. If successful opt-in or pending activation returns the next page that the user should be redirected to.
8577
- * 2. If there was an API error, return the API result.
8578
- *
8579
- * @author Vova Feldman (@svovaf)
8580
- * @since 1.1.7.4
8581
- *
8582
- * @param string|bool $email
8583
- * @param string|bool $first
8584
- * @param string|bool $last
8585
- * @param string|bool $license_key
8586
- * @param bool $is_uninstall If "true", this means that the module is currently being uninstalled.
8587
- * In this case, the user and site info will be sent to the server but no
8588
- * data will be saved to the WP installation's database.
8589
- * @param number|bool $trial_plan_id
8590
- * @param bool $is_disconnected Whether or not to opt in without tracking.
8591
- *
8592
- * @return string|object
8593
- * @use WP_Error
8594
- */
8595
- function opt_in(
8596
- $email = false,
8597
- $first = false,
8598
- $last = false,
8599
- $license_key = false,
8600
- $is_uninstall = false,
8601
- $trial_plan_id = false,
8602
- $is_disconnected = false
8603
- ) {
8604
- $this->_logger->entrance();
8605
-
8606
- if ( false === $email ) {
8607
- $current_user = self::_get_current_wp_user();
8608
- $email = $current_user->user_email;
8609
- }
8610
-
8611
- /**
8612
- * @since 1.2.1 If activating with license key, ignore the context-user
8613
- * since the user will be automatically loaded from the license.
8614
- */
8615
- if ( empty( $license_key ) ) {
8616
- // Clean up pending license if opt-ing in again.
8617
- $this->_storage->remove( 'pending_license_key' );
8618
-
8619
- if ( ! $is_uninstall ) {
8620
- $fs_user = Freemius::_get_user_by_email( $email );
8621
- if ( is_object( $fs_user ) && ! $this->is_pending_activation() ) {
8622
- return $this->install_with_current_user( false, $trial_plan_id );
8623
- }
8624
- }
8625
- }
8626
-
8627
- $user_info = array();
8628
- if ( ! empty( $email ) ) {
8629
- $user_info['user_email'] = $email;
8630
- }
8631
- if ( ! empty( $first ) ) {
8632
- $user_info['user_firstname'] = $first;
8633
- }
8634
- if ( ! empty( $last ) ) {
8635
- $user_info['user_lastname'] = $last;
8636
- }
8637
-
8638
- $params = $this->get_opt_in_params( $user_info );
8639
-
8640
- $filtered_license_key = false;
8641
- if ( is_string( $license_key ) ) {
8642
- $filtered_license_key = $this->apply_filters( 'license_key', $license_key );
8643
- $params['license_key'] = $filtered_license_key;
8644
- } else if ( FS_Plugin_Plan::is_valid_id( $trial_plan_id ) ) {
8645
- $params['trial_plan_id'] = $trial_plan_id;
8646
- }
8647
-
8648
- if ( $is_uninstall ) {
8649
- $params['uninstall_params'] = array(
8650
- 'reason_id' => $this->_storage->uninstall_reason->id,
8651
- 'reason_info' => $this->_storage->uninstall_reason->info
8652
- );
8653
- }
8654
-
8655
- if ( isset( $params['license_key'] ) ) {
8656
- $fs_user = Freemius::_get_user_by_email( $email );
8657
-
8658
- if ( is_object( $fs_user ) ) {
8659
- /**
8660
- * If opting in with a context license and the context WP Admin user already opted in
8661
- * before from the current site, add the user context security params to avoid the
8662
- * unnecessry email activation when the context license is owned by the same context user.
8663
- *
8664
- * @author Leo Fajardo (@leorw)
8665
- * @since 1.2.3
8666
- */
8667
- $params = array_merge( $params, FS_Security::instance()->get_context_params(
8668
- $fs_user,
8669
- false,
8670
- 'install_with_existing_user'
8671
- ) );
8672
- }
8673
- }
8674
-
8675
- $params['is_disconnected'] = $is_disconnected;
8676
- $params['format'] = 'json';
8677
-
8678
- $url = WP_FS__ADDRESS . '/action/service/user/install/';
8679
- if ( isset( $_COOKIE['XDEBUG_SESSION'] ) ) {
8680
- $url = add_query_arg( 'XDEBUG_SESSION', 'PHPSTORM', $url );
8681
- }
8682
-
8683
- $response = wp_remote_post( $url, array(
8684
- 'method' => 'POST',
8685
- 'body' => $params,
8686
- 'timeout' => 15,
8687
- ) );
8688
-
8689
- if ( $response instanceof WP_Error ) {
8690
- if ( 'https://' === substr( $url, 0, 8 ) &&
8691
- isset( $response->errors ) &&
8692
- isset( $response->errors['http_request_failed'] )
8693
- ) {
8694
- $http_error = strtolower( $response->errors['http_request_failed'][0] );
8695
-
8696
- if ( false !== strpos( $http_error, 'ssl' ) ) {
8697
- // Failed due to old version of cURL or Open SSL (SSLv3 is not supported by CloudFlare).
8698
- $url = 'http://' . substr( $url, 8 );
8699
-
8700
- $response = wp_remote_post( $url, array(
8701
- 'method' => 'POST',
8702
- 'body' => $params,
8703
- 'timeout' => 15,
8704
- ) );
8705
- }
8706
- }
8707
- }
8708
-
8709
- if ( is_wp_error( $response ) ) {
8710
- /**
8711
- * @var WP_Error $response
8712
- */
8713
- $result = new stdClass();
8714
-
8715
- $error_code = $response->get_error_code();
8716
- $error_type = str_replace( ' ', '', ucwords( str_replace( '_', ' ', $error_code ) ) );
8717
-
8718
- $result->error = (object) array(
8719
- 'type' => $error_type,
8720
- 'message' => $response->get_error_message(),
8721
- 'code' => $error_code,
8722
- 'http' => 402
8723
- );
8724
-
8725
- return $result;
8726
- }
8727
-
8728
- // Module is being uninstalled, don't handle the returned data.
8729
- if ( $is_uninstall ) {
8730
- return true;
8731
- }
8732
-
8733
- /**
8734
- * When json_decode() executed on PHP 5.2 with an invalid JSON, it will throw a PHP warning. Unfortunately, the new Theme Check doesn't allow PHP silencing and the theme review team isn't open to change that, therefore, instead of using `@json_decode()` we had to use the method without the `@` directive.
8735
- *
8736
- * @author Vova Feldman (@svovaf)
8737
- * @since 1.2.3
8738
- * @link https://themes.trac.wordpress.org/ticket/46134#comment:5
8739
- * @link https://themes.trac.wordpress.org/ticket/46134#comment:9
8740
- * @link https://themes.trac.wordpress.org/ticket/46134#comment:12
8741
- * @link https://themes.trac.wordpress.org/ticket/46134#comment:14
8742
- */
8743
- $decoded = is_string( $response['body'] ) ?
8744
- json_decode( $response['body'] ) :
8745
- null;
8746
-
8747
- if ( empty( $decoded ) ) {
8748
- return false;
8749
- }
8750
-
8751
- if ( ! $this->is_api_result_object( $decoded ) ) {
8752
- if ( ! empty( $params['license_key'] ) ) {
8753
- // Pass the fully entered license key to the failure handler.
8754
- $params['license_key'] = $license_key;
8755
- }
8756
-
8757
- return $is_uninstall ?
8758
- $decoded :
8759
- $this->apply_filters( 'after_install_failure', $decoded, $params );
8760
- } else if ( isset( $decoded->pending_activation ) && $decoded->pending_activation ) {
8761
- // Pending activation, add message.
8762
- return $this->set_pending_confirmation(
8763
- ( isset( $decoded->email ) ?
8764
- $decoded->email :
8765
- true ),
8766
- false,
8767
- $filtered_license_key,
8768
- ! empty( $params['trial_plan_id'] )
8769
- );
8770
- } else if ( isset( $decoded->install_secret_key ) ) {
8771
- return $this->install_with_new_user(
8772
- $decoded->user_id,
8773
- $decoded->user_public_key,
8774
- $decoded->user_secret_key,
8775
- $decoded->install_id,
8776
- $decoded->install_public_key,
8777
- $decoded->install_secret_key,
8778
- false
8779
- );
8780
- }
8781
-
8782
- return $decoded;
8783
- }
8784
-
8785
- /**
8786
- * Set user and site identities.
8787
- *
8788
- * @author Vova Feldman (@svovaf)
8789
- * @since 1.0.9
8790
- *
8791
- * @param FS_User $user
8792
- * @param FS_Site $site
8793
- * @param bool $redirect
8794
- * @param bool $auto_install Since 1.2.1.7 If `true` and setting up an account with a valid license, will
8795
- * redirect (or return a URL) to the account page with a special parameter to
8796
- * trigger the auto installation processes.
8797
- *
8798
- * @return string If redirect is `false`, returns the next page the user should be redirected to.
8799
- */
8800
- function setup_account(
8801
- FS_User $user,
8802
- FS_Site $site,
8803
- $redirect = true,
8804
- $auto_install = false
8805
- ) {
8806
- $this->_user = $user;
8807
- $this->_site = $site;
8808
-
8809
- $this->_sync_plans();
8810
-
8811
- $this->_enrich_site_plan( false );
8812
-
8813
- $this->_set_account( $user, $site );
8814
-
8815
- if ( $this->is_trial() ) {
8816
- // Store trial plan information.
8817
- $this->_enrich_site_trial_plan( true );
8818
- }
8819
-
8820
- // If Freemius was OFF before, turn it on.
8821
- $this->turn_on();
8822
-
8823
- $this->do_action( 'after_account_connection', $user, $site );
8824
-
8825
- if ( is_numeric( $site->license_id ) ) {
8826
- $this->_license = $this->_get_license_by_id( $site->license_id );
8827
- }
8828
-
8829
- $this->_admin_notices->remove_sticky( 'connect_account' );
8830
-
8831
- if ( $this->is_pending_activation() || ! $this->has_settings_menu() ) {
8832
- // Remove pending activation sticky notice (if still exist).
8833
- $this->_admin_notices->remove_sticky( 'activation_pending' );
8834
-
8835
- // Remove plugin from pending activation mode.
8836
- unset( $this->_storage->is_pending_activation );
8837
-
8838
- if ( ! $this->is_paying_or_trial() ) {
8839
- $this->_admin_notices->add_sticky(
8840
- sprintf( $this->get_text_x_inline( '%s activation was successfully completed.',
8841
- 'pluginX activation was successfully...', 'plugin-x-activation-message' ), '<b>' . $this->get_plugin_name() . '</b>' ),
8842
- 'activation_complete'
8843
- );
8844
- }
8845
- }
8846
-
8847
- if ( $this->is_paying_or_trial() ) {
8848
- if ( ! $this->is_premium() || ! $this->has_premium_version() || ! $this->has_settings_menu() ) {
8849
- if ( $this->is_paying() ) {
8850
- $this->_admin_notices->add_sticky(
8851
- sprintf(
8852
- $this->get_text_inline( 'Your account was successfully activated with the %s plan.', 'activation-with-plan-x-message' ),
8853
- $this->_site->plan->title
8854
- ) . $this->get_complete_upgrade_instructions(),
8855
- 'plan_upgraded',
8856
- $this->get_text_x_inline( 'Yee-haw', 'interjection expressing joy or exuberance', 'yee-haw' ) . '!'
8857
- );
8858
- } else {
8859
- $this->_admin_notices->add_sticky(
8860
- sprintf(
8861
- $this->get_text_inline( 'Your trial has been successfully started.', 'trial-started-message' ),
8862
- '<i>' . $this->get_plugin_name() . '</i>'
8863
- ) . $this->get_complete_upgrade_instructions( $this->_storage->trial_plan->title ),
8864
- 'trial_started',
8865
- $this->get_text_x_inline( 'Yee-haw', 'interjection expressing joy or exuberance', 'yee-haw' ) . '!'
8866
- );
8867
- }
8868
- }
8869
-
8870
- $this->_admin_notices->remove_sticky( array(
8871
- 'trial_promotion',
8872
- ) );
8873
- }
8874
-
8875
- $plugin_id = fs_request_get( 'plugin_id', false );
8876
-
8877
- // Store activation time ONLY for plugins (not add-ons).
8878
- if ( ! is_numeric( $plugin_id ) || ( $plugin_id == $this->_plugin->id ) ) {
8879
- $this->_storage->activation_timestamp = WP_FS__SCRIPT_START_TIME;
8880
- }
8881
-
8882
- $next_page = '';
8883
-
8884
- $extra = array();
8885
- if ( $auto_install ) {
8886
- $extra['auto_install'] = 'true';
8887
- }
8888
-
8889
- if ( is_numeric( $plugin_id ) ) {
8890
- /**
8891
- * @author Leo Fajardo
8892
- * @since 1.2.1.6
8893
- *
8894
- * Also sync the license after an anonymous user subscribes.
8895
- */
8896
- if ( $this->is_anonymous() || $plugin_id != $this->_plugin->id ) {
8897
- // Add-on was installed - sync license right after install.
8898
- $next_page = $this->_get_sync_license_url( $plugin_id, true, $extra );
8899
- }
8900
- } else {
8901
- /**
8902
- * @author Vova Feldman (@svovaf)
8903
- * @since 1.1.9 If site installed with a valid license, sync license.
8904
- */
8905
- if ( $this->is_paying() ) {
8906
- $this->_sync_plugin_license( true );
8907
- }
8908
-
8909
- // Reload the page with the keys.
8910
- $next_page = $this->is_anonymous() ?
8911
- // If user previously skipped, redirect to account page.
8912
- $this->get_account_url( false, $extra ) :
8913
- $this->get_after_activation_url( 'after_connect_url' );
8914
- }
8915
-
8916
- if ( ! empty( $next_page ) && $redirect ) {
8917
- fs_redirect( $next_page );
8918
- }
8919
-
8920
- return $next_page;
8921
- }
8922
-
8923
- /**
8924
- * Install plugin with new user information after approval.
8925
- *
8926
- * @author Vova Feldman (@svovaf)
8927
- * @since 1.0.7
8928
- */
8929
- function _install_with_new_user() {
8930
- $this->_logger->entrance();
8931
-
8932
- if ( $this->is_registered() ) {
8933
- return;
8934
- }
8935
-
8936
- if ( ( $this->is_plugin() && fs_request_is_action( $this->get_unique_affix() . '_activate_new' ) ) ||
8937
- // @todo This logic should be improved because it's executed on every load of a theme.
8938
- $this->is_theme()
8939
- ) {
8940
- // check_admin_referer( $this->_slug . '_activate_new' );
8941
-
8942
- if ( fs_request_has( 'user_secret_key' ) ) {
8943
- $this->install_with_new_user(
8944
- fs_request_get( 'user_id' ),
8945
- fs_request_get( 'user_public_key' ),
8946
- fs_request_get( 'user_secret_key' ),
8947
- fs_request_get( 'install_id' ),
8948
- fs_request_get( 'install_public_key' ),
8949
- fs_request_get( 'install_secret_key' ),
8950
- true,
8951
- fs_request_get_bool( 'auto_install' )
8952
- );
8953
- } else if ( fs_request_has( 'pending_activation' ) ) {
8954
- $this->set_pending_confirmation( fs_request_get( 'user_email' ), true );
8955
- }
8956
- }
8957
- }
8958
-
8959
- /**
8960
- * Install plugin with new user.
8961
- *
8962
- * @author Vova Feldman (@svovaf)
8963
- * @since 1.1.7.4
8964
- *
8965
- * @param number $user_id
8966
- * @param string $user_public_key
8967
- * @param string $user_secret_key
8968
- * @param number $install_id
8969
- * @param string $install_public_key
8970
- * @param string $install_secret_key
8971
- * @param bool $redirect
8972
- * @param bool $auto_install Since 1.2.1.7 If `true` and setting up an account with a valid license, will
8973
- * redirect (or return a URL) to the account page with a special parameter to
8974
- * trigger the auto installation processes.
8975
- *
8976
- * @return string If redirect is `false`, returns the next page the user should be redirected to.
8977
- */
8978
- private function install_with_new_user(
8979
- $user_id,
8980
- $user_public_key,
8981
- $user_secret_key,
8982
- $install_id,
8983
- $install_public_key,
8984
- $install_secret_key,
8985
- $redirect = true,
8986
- $auto_install = false
8987
- ) {
8988
- $user = new FS_User();
8989
- $user->id = $user_id;
8990
- $user->public_key = $user_public_key;
8991
- $user->secret_key = $user_secret_key;
8992
-
8993
- $this->_user = $user;
8994
- $user_result = $this->get_api_user_scope()->get();
8995
- $user = new FS_User( $user_result );
8996
- $this->_user = $user;
8997
-
8998
- $site = new FS_Site();
8999
- $site->id = $install_id;
9000
- $site->public_key = $install_public_key;
9001
- $site->secret_key = $install_secret_key;
9002
-
9003
- $this->_site = $site;
9004
- $site_result = $this->get_api_site_scope()->get();
9005
- $site = new FS_Site( $site_result );
9006
- $this->_site = $site;
9007
-
9008
- return $this->setup_account(
9009
- $this->_user,
9010
- $this->_site,
9011
- $redirect,
9012
- $auto_install
9013
- );
9014
- }
9015
-
9016
- /**
9017
- * @author Vova Feldman (@svovaf)
9018
- * @since 1.1.7.4
9019
- *
9020
- * @param string|bool $email
9021
- * @param bool $redirect
9022
- * @param string|bool $license_key Since 1.2.1.5
9023
- * @param bool $is_pending_trial Since 1.2.1.5
9024
- *
9025
- * @return string Since 1.2.1.5 if $redirect is `false`, return the pending activation page.
9026
- */
9027
- private function set_pending_confirmation(
9028
- $email = false,
9029
- $redirect = true,
9030
- $license_key = false,
9031
- $is_pending_trial = false
9032
- ) {
9033
- if ( $this->_ignore_pending_mode ) {
9034
- /**
9035
- * If explicitly asked to ignore pending mode, set to anonymous mode
9036
- * if require confirmation before finalizing the opt-in.
9037
- *
9038
- * @author Vova Feldman
9039
- * @since 1.2.1.6
9040
- */
9041
- $this->skip_connection();
9042
- } else {
9043
- // Install must be activated via email since
9044
- // user with the same email already exist.
9045
- $this->_storage->is_pending_activation = true;
9046
- $this->_add_pending_activation_notice( $email, $is_pending_trial );
9047
- }
9048
-
9049
- if ( ! empty( $license_key ) ) {
9050
- $this->_storage->pending_license_key = $license_key;
9051
- }
9052
-
9053
- // Remove the opt-in sticky notice.
9054
- $this->_admin_notices->remove_sticky( array(
9055
- 'connect_account',
9056
- 'trial_promotion',
9057
- ) );
9058
-
9059
- $next_page = $this->get_after_activation_url( 'after_pending_connect_url' );
9060
-
9061
- // Reload the page with with pending activation message.
9062
- if ( $redirect ) {
9063
- fs_redirect( $next_page );
9064
- }
9065
-
9066
- return $next_page;
9067
- }
9068
-
9069
- /**
9070
- * Install plugin with current logged WP user info.
9071
- *
9072
- * @author Vova Feldman (@svovaf)
9073
- * @since 1.0.7
9074
- */
9075
- function _install_with_current_user() {
9076
- $this->_logger->entrance();
9077
-
9078
- if ( $this->is_registered() ) {
9079
- return;
9080
- }
9081
-
9082
- if ( fs_request_is_action( $this->get_unique_affix() . '_activate_existing' ) && fs_request_is_post() ) {
9083
- // check_admin_referer( 'activate_existing_' . $this->_plugin->public_key );
9084
-
9085
- /**
9086
- * @author Vova Feldman (@svovaf)
9087
- * @since 1.1.9 Add license key if given.
9088
- */
9089
- $license_key = fs_request_get( 'license_secret_key' );
9090
-
9091
- $this->install_with_current_user( $license_key );
9092
- }
9093
- }
9094
-
9095
-
9096
- /**
9097
- * @author Vova Feldman (@svovaf)
9098
- * @since 1.1.7.4
9099
- *
9100
- * @param string|bool $license_key
9101
- * @param number|bool $trial_plan_id
9102
- * @param bool $redirect
9103
- *
9104
- * @return string|object If redirect is `false`, returns the next page the user should be redirected to, or the
9105
- * API error object if failed to install.
9106
- */
9107
- private function install_with_current_user(
9108
- $license_key = false,
9109
- $trial_plan_id = false,
9110
- $redirect = true
9111
- ) {
9112
- // Get current logged WP user.
9113
- $current_user = self::_get_current_wp_user();
9114
-
9115
- // Find the relevant FS user by the email.
9116
- $user = self::_get_user_by_email( $current_user->user_email );
9117
-
9118
- // We have to set the user before getting user scope API handler.
9119
- $this->_user = $user;
9120
-
9121
- $extra_install_params = array(
9122
- 'uid' => $this->get_anonymous_id(),
9123
- );
9124
-
9125
- if ( ! empty( $license_key ) ) {
9126
- $filtered_license_key = $this->apply_filters( 'license_key', $license_key );
9127
- $extra_install_params['license_key'] = $filtered_license_key;
9128
- } else if ( FS_Plugin_Plan::is_valid_id( $trial_plan_id ) ) {
9129
- $extra_install_params['trial_plan_id'] = $trial_plan_id;
9130
- }
9131
-
9132
- $args = $this->get_install_data_for_api( $extra_install_params, false, false );
9133
-
9134
- // Install the plugin.
9135
- $install = $this->get_api_user_scope()->call(
9136
- "/plugins/{$this->get_id()}/installs.json",
9137
- 'post',
9138
- $args
9139
- );
9140
-
9141
- if ( ! $this->is_api_result_entity( $install ) ) {
9142
- if ( ! empty( $args['license_key'] ) ) {
9143
- // Pass full the fully entered license key to the failure handler.
9144
- $args['license_key'] = $license_key;
9145
- }
9146
-
9147
- $install = $this->apply_filters( 'after_install_failure', $install, $args );
9148
-
9149
- $this->_admin_notices->add(
9150
- sprintf( $this->get_text_inline( 'Couldn\'t activate %s.', 'could-not-activate-x' ), $this->get_plugin_name() ) . ' ' .
9151
- $this->get_text_inline( 'Please contact us with the following message:', 'contact-us-with-error-message' ) . ' ' . '<b>' . $install->error->message . '</b>',
9152
- $this->get_text_x_inline( 'Oops', 'exclamation', 'oops' ) . '...',
9153
- 'error'
9154
- );
9155
-
9156
- if ( $redirect ) {
9157
- /**
9158
- * We set the user before getting the user scope API handler, so the user became temporarily
9159
- * registered (`is_registered() = true`). Since the API returned an error and we will redirect,
9160
- * we have to set the user to `null`, otherwise, the user will be redirected to the wrong
9161
- * activation page based on the return value of `is_registered()`. In addition, in case the
9162
- * context plugin doesn't have a settings menu and the default page is the `Plugins` page,
9163
- * misleading plugin activation errors will be shown on the `Plugins` page.
9164
- *
9165
- * @author Leo Fajardo (@leorw)
9166
- */
9167
- $this->_user = null;
9168
-
9169
- fs_redirect( $this->get_activation_url( array( 'error' => $install->error->message ) ) );
9170
- }
9171
-
9172
- return $install;
9173
- }
9174
-
9175
- $site = new FS_Site( $install );
9176
- $this->_site = $site;
9177
-
9178
- return $this->setup_account( $this->_user, $this->_site, $redirect );
9179
- }
9180
-
9181
- /**
9182
- * Tries to activate add-on account based on parent plugin info.
9183
- *
9184
- * @author Vova Feldman (@svovaf)
9185
- * @since 1.0.6
9186
- *
9187
- * @param Freemius $parent_fs
9188
- */
9189
- private function _activate_addon_account( Freemius $parent_fs ) {
9190
- if ( $this->is_registered() ) {
9191
- // Already activated.
9192
- return;
9193
- }
9194
-
9195
- // Activate add-on with parent plugin credentials.
9196
- $addon_install = $parent_fs->get_api_site_scope()->call(
9197
- "/addons/{$this->_plugin->id}/installs.json",
9198
- 'post',
9199
- $this->get_install_data_for_api( array(
9200
- 'uid' => $this->get_anonymous_id(),
9201
- ), false, false )
9202
- );
9203
-
9204
- if ( isset( $addon_install->error ) ) {
9205
- $this->_admin_notices->add(
9206
- sprintf( $this->get_text_inline( 'Couldn\'t activate %s.', 'could-not-activate-x' ), $this->get_plugin_name() ) . ' ' .
9207
- $this->get_text_inline( 'Please contact us with the following message:', 'contact-us-with-error-message' ) . ' ' . '<b>' . $addon_install->error->message . '</b>',
9208
- $this->get_text_x_inline( 'Oops', 'exclamation', 'oops' ) . '...',
9209
- 'error'
9210
- );
9211
-
9212
- return;
9213
- }
9214
-
9215
- // First of all, set site info - otherwise we won't
9216
- // be able to invoke API calls.
9217
- $this->_site = new FS_Site( $addon_install );
9218
-
9219
- // Sync add-on plans.
9220
- $this->_sync_plans();
9221
-
9222
- // Get site's current plan.
9223
- $this->_site->plan = $this->_get_plan_by_id( $this->_site->plan->id );
9224
-
9225
- // Get user information based on parent's plugin.
9226
- $user = $parent_fs->get_user();
9227
-
9228
- $this->_set_account( $user, $this->_site );
9229
-
9230
- // Sync licenses.
9231
- $this->_sync_licenses();
9232
-
9233
- // Try to activate premium license.
9234
- $this->_activate_license( true );
9235
- }
9236
-
9237
- /**
9238
- * Tries to activate parent account based on add-on's info.
9239
- *
9240
- * @author Vova Feldman (@svovaf)
9241
- * @since 1.2.2.7
9242
- *
9243
- * @param Freemius $parent_fs
9244
- */
9245
- private function activate_parent_account( Freemius $parent_fs ) {
9246
- if ( ! $this->is_addon() ) {
9247
- // This is not an add-on.
9248
- return;
9249
- }
9250
-
9251
- if ( $parent_fs->is_registered() ) {
9252
- // Already activated.
9253
- return;
9254
- }
9255
-
9256
- // Activate parent with add-on's user credentials.
9257
- $parent_install = $this->get_api_user_scope()->call(
9258
- "/plugins/{$parent_fs->_plugin->id}/installs.json",
9259
- 'post',
9260
- $parent_fs->get_install_data_for_api( array(
9261
- 'uid' => $parent_fs->get_anonymous_id(),
9262
- ), false, false )
9263
- );
9264
-
9265
- if ( isset( $parent_install->error ) ) {
9266
- $this->_admin_notices->add(
9267
- sprintf( $this->get_text_inline( 'Couldn\'t activate %s.', 'could-not-activate-x' ), $this->get_plugin_name() ) . ' ' .
9268
- $this->get_text_inline( 'Please contact us with the following message:', 'contact-us-with-error-message' ) . ' ' . '<b>' . $parent_install->error->message . '</b>',
9269
- $this->get_text_x_inline( 'Oops', 'exclamation', 'oops' ) . '...',
9270
- 'error'
9271
- );
9272
-
9273
- return;
9274
- }
9275
-
9276
- $parent_fs->_admin_notices->remove_sticky( 'connect_account' );
9277
-
9278
- if ( $parent_fs->is_pending_activation() ) {
9279
- $parent_fs->_admin_notices->remove_sticky( 'activation_pending' );
9280
-
9281
- unset( $parent_fs->_storage->is_pending_activation );
9282
- }
9283
-
9284
- // First of all, set site info - otherwise we won't
9285
- // be able to invoke API calls.
9286
- $parent_fs->_site = new FS_Site( $parent_install );
9287
-
9288
- // Sync add-on plans.
9289
- $parent_fs->_sync_plans();
9290
-
9291
- // Get site's current plan.
9292
- $parent_fs->_site->plan = $parent_fs->_get_plan_by_id( $parent_fs->_site->plan->id );
9293
-
9294
- // Get user information based on parent's plugin.
9295
- $user = $this->get_user();
9296
-
9297
- $parent_fs->_set_account( $user, $parent_fs->_site );
9298
- }
9299
-
9300
- #endregion
9301
-
9302
- #----------------------------------------------------------------------------------
9303
- #region Admin Menu Items
9304
- #----------------------------------------------------------------------------------
9305
-
9306
- private $_menu_items = array();
9307
-
9308
- /**
9309
- * @author Vova Feldman (@svovaf)
9310
- * @since 1.2.1.8
9311
- *
9312
- * @return array
9313
- */
9314
- function get_menu_items() {
9315
- return $this->_menu_items;
9316
- }
9317
-
9318
- /**
9319
- * @author Vova Feldman (@svovaf)
9320
- * @since 1.0.7
9321
- *
9322
- * @return string
9323
- */
9324
- function get_menu_slug() {
9325
- return $this->_menu->get_slug();
9326
- }
9327
-
9328
- /**
9329
- * @author Vova Feldman (@svovaf)
9330
- * @since 1.0.9
9331
- */
9332
- function _prepare_admin_menu() {
9333
- // if ( ! $this->is_on() ) {
9334
- // return;
9335
- // }
9336
-
9337
- if ( ! $this->has_api_connectivity() && ! $this->is_enable_anonymous() ) {
9338
- $this->_menu->remove_menu_item();
9339
- } else {
9340
- $this->do_action( 'before_admin_menu_init' );
9341
-
9342
- $this->add_menu_action();
9343
- $this->add_submenu_items();
9344
- }
9345
- }
9346
-
9347
- /**
9348
- * Admin dashboard menu items modifications.
9349
- *
9350
- * NOTE: admin_menu action executed before admin_init.
9351
- *
9352
- * @author Vova Feldman (@svovaf)
9353
- * @since 1.0.7
9354
- *
9355
- */
9356
- private function add_menu_action() {
9357
- if ( $this->is_activation_mode() ) {
9358
- if ( $this->is_plugin() || ( $this->has_settings_menu() && ! $this->is_free_wp_org_theme() ) ) {
9359
- $this->override_plugin_menu_with_activation();
9360
- } else {
9361
- /**
9362
- * Handle theme opt-in when the opt-in form shows as a dialog box in the themes page.
9363
- */
9364
- if ( fs_request_is_action( $this->get_unique_affix() . '_activate_existing' ) ) {
9365
- add_action( 'load-themes.php', array( &$this, '_install_with_current_user' ) );
9366
- } else if ( fs_request_is_action( $this->get_unique_affix() . '_activate_new' ) ||
9367
- fs_request_get_bool( 'pending_activation' )
9368
- ) {
9369
- add_action( 'load-themes.php', array( &$this, '_install_with_new_user' ) );
9370
- }
9371
- }
9372
- } else {
9373
- if ( ! $this->is_registered() ) {
9374
- // If not registered try to install user.
9375
- if ( fs_request_is_action( $this->get_unique_affix() . '_activate_new' ) ) {
9376
- $this->_install_with_new_user();
9377
- }
9378
- } else if (
9379
- fs_request_is_action( 'sync_user' ) &&
9380
- ( ! $this->has_settings_menu() || $this->is_free_wp_org_theme() )
9381
- ) {
9382
- $this->_handle_account_user_sync();
9383
- }
9384
- }
9385
- }
9386
-
9387
- /**
9388
- * @author Vova Feldman (@svovaf)
9389
- * @since 1.0.1
9390
- */
9391
- function _redirect_on_clicked_menu_link() {
9392
- $this->_logger->entrance();
9393
-
9394
- $page = strtolower( isset( $_REQUEST['page'] ) ? $_REQUEST['page'] : '' );
9395
-
9396
- $this->_logger->log( 'page = ' . $page );
9397
-
9398
- foreach ( $this->_menu_items as $priority => $items ) {
9399
- foreach ( $items as $item ) {
9400
- if ( isset( $item['url'] ) ) {
9401
- if ( $page === $this->_menu->get_slug( strtolower( $item['menu_slug'] ) ) ) {
9402
- $this->_logger->log( 'Redirecting to ' . $item['url'] );
9403
-
9404
- fs_redirect( $item['url'] );
9405
- }
9406
- }
9407
- }
9408
- }
9409
- }
9410
-
9411
- /**
9412
- * Remove plugin's all admin menu items & pages, and replace with activation page.
9413
- *
9414
- * @author Vova Feldman (@svovaf)
9415
- * @since 1.0.1
9416
- */
9417
- private function override_plugin_menu_with_activation() {
9418
- $this->_logger->entrance();
9419
-
9420
- $hook = false;
9421
-
9422
- if ( ! $this->_menu->has_menu() ) {
9423
- // Add the opt-in page without a menu item.
9424
- $hook = FS_Admin_Menu_Manager::add_subpage(
9425
- null,
9426
- $this->get_plugin_name(),
9427
- $this->get_plugin_name(),
9428
- 'manage_options',
9429
- $this->_slug,
9430
- array( &$this, '_connect_page_render' )
9431
- );
9432
- } else if ( $this->_menu->is_top_level() ) {
9433
- $hook = $this->_menu->override_menu_item( array( &$this, '_connect_page_render' ) );
9434
-
9435
- if ( false === $hook ) {
9436
- // Create new menu item just for the opt-in.
9437
- $hook = FS_Admin_Menu_Manager::add_page(
9438
- $this->get_plugin_name(),
9439
- $this->get_plugin_name(),
9440
- 'manage_options',
9441
- $this->_menu->get_slug(),
9442
- array( &$this, '_connect_page_render' )
9443
- );
9444
- }
9445
- } else {
9446
- $menus = array( $this->_menu->get_parent_slug() );
9447
-
9448
- if ( $this->_menu->is_override_exact() ) {
9449
- // Make sure the current page is matching the activation page.
9450
- if ( ! $this->is_matching_url( $this->get_activation_url() ) ) {
9451
- return;
9452
- }
9453
- }
9454
-
9455
- foreach ( $menus as $parent_slug ) {
9456
- $hook = $this->_menu->override_submenu_action(
9457
- $parent_slug,
9458
- $this->_menu->get_raw_slug(),
9459
- array( &$this, '_connect_page_render' )
9460
- );
9461
-
9462
- if ( false !== $hook ) {
9463
- // Found plugin's submenu item.
9464
- break;
9465
- }
9466
- }
9467
- }
9468
-
9469
- if ( $this->is_activation_page() ) {
9470
- // Clean admin page from distracting content.
9471
- self::_clean_admin_content_section();
9472
- }
9473
-
9474
- if ( false !== $hook ) {
9475
- if ( fs_request_is_action( $this->get_unique_affix() . '_activate_existing' ) ) {
9476
- $this->_install_with_current_user();
9477
- } else if ( fs_request_is_action( $this->get_unique_affix() . '_activate_new' ) ) {
9478
- $this->_install_with_new_user();
9479
- }
9480
- }
9481
- }
9482
-
9483
- /**
9484
- * @author Leo Fajardo (leorw)
9485
- * @since 1.2.1
9486
- *
9487
- * return string
9488
- */
9489
- function get_top_level_menu_capability() {
9490
- global $menu;
9491
-
9492
- $top_level_menu_slug = $this->get_top_level_menu_slug();
9493
-
9494
- foreach ( $menu as $menu_info ) {
9495
- /**
9496
- * The second element in the menu info array is the capability/role that has access to the menu and the
9497
- * third element is the menu slug.
9498
- */
9499
- if ( $menu_info[2] === $top_level_menu_slug ) {
9500
- return $menu_info[1];
9501
- }
9502
- }
9503
-
9504
- return 'read';
9505
- }
9506
-
9507
- /**
9508
- * @author Vova Feldman (@svovaf)
9509
- * @since 1.0.0
9510
- *
9511
- * @return string
9512
- */
9513
- private function get_top_level_menu_slug() {
9514
- return ( $this->is_addon() ?
9515
- $this->get_parent_instance()->_menu->get_top_level_menu_slug() :
9516
- $this->_menu->get_top_level_menu_slug() );
9517
- }
9518
-
9519
- /**
9520
- * @author Vova Feldman (@svovaf)
9521
- * @since 1.2.2.7
9522
- *
9523
- * @return string
9524
- */
9525
- function get_pricing_cta_label() {
9526
- $label = $this->get_text_inline( 'Upgrade', 'upgrade' );
9527
-
9528
- if ( $this->is_in_trial_promotion() &&
9529
- ! $this->is_paying_or_trial()
9530
- ) {
9531
- // If running a trial promotion, modify the pricing to load the trial.
9532
- $label = $this->get_text_inline( 'Start Trial', 'start-trial' );
9533
- } else if ( $this->is_paying() ) {
9534
- $label = $this->get_text_inline( 'Pricing', 'pricing' );
9535
- }
9536
-
9537
- return $label;
9538
- }
9539
-
9540
- /**
9541
- * @author Vova Feldman (@svovaf)
9542
- * @since 1.2.2.7
9543
- *
9544
- * @return bool
9545
- */
9546
- function is_pricing_page_visible() {
9547
- return (
9548
- // Has at least one paid plan.
9549
- $this->has_paid_plan() &&
9550
- // Didn't ask to hide the pricing page.
9551
- $this->is_page_visible( 'pricing' ) &&
9552
- // Don't have a valid active license or has more than one plan.
9553
- ( ! $this->is_paying() || ! $this->is_single_plan() )
9554
- );
9555
- }
9556
-
9557
- /**
9558
- * Add default Freemius menu items.
9559
- *
9560
- * @author Vova Feldman (@svovaf)
9561
- * @since 1.0.0
9562
- */
9563
- private function add_submenu_items() {
9564
- $this->_logger->entrance();
9565
-
9566
- if ( ! $this->is_addon() ) {
9567
- /**
9568
- * @since 1.2.2.7 Also add submenu items when running in a free .org theme so the tabs will be visible.
9569
- */
9570
- if ( ! $this->is_activation_mode() || $this->is_free_wp_org_theme() ) {
9571
- if ( $this->has_affiliate_program() ) {
9572
- // Add affiliation page.
9573
- $this->add_submenu_item(
9574
- $this->get_text_inline( 'Affiliation', 'affiliation' ),
9575
- array( &$this, '_affiliation_page_render' ),
9576
- $this->get_plugin_name() . ' &ndash; ' . $this->get_text_inline( 'Affiliation', 'affiliation' ),
9577
- 'manage_options',
9578
- 'affiliation',
9579
- 'Freemius::_clean_admin_content_section',
9580
- WP_FS__DEFAULT_PRIORITY,
9581
- $this->is_submenu_item_visible( 'affiliation' )
9582
- );
9583
- }
9584
-
9585
- if ( $this->is_registered() ) {
9586
- $show_account = (
9587
- $this->is_submenu_item_visible( 'account' ) &&
9588
- /**
9589
- * @since 1.2.2.7 Don't show the Account for free WP.org themes without any paid plans.
9590
- */
9591
- ( ! $this->is_free_wp_org_theme() || $this->has_paid_plan() )
9592
- );
9593
-
9594
- // Add user account page.
9595
- $this->add_submenu_item(
9596
- $this->get_text_inline( 'Account', 'account' ),
9597
- array( &$this, '_account_page_render' ),
9598
- $this->get_plugin_name() . ' &ndash; ' . $this->get_text_inline( 'Account', 'account' ),
9599
- 'manage_options',
9600
- 'account',
9601
- array( &$this, '_account_page_load' ),
9602
- WP_FS__DEFAULT_PRIORITY,
9603
- $show_account
9604
- );
9605
- }
9606
-
9607
- // Add contact page.
9608
- $this->add_submenu_item(
9609
- $this->get_text_inline( 'Contact Us', 'contact-us' ),
9610
- array( &$this, '_contact_page_render' ),
9611
- $this->get_plugin_name() . ' &ndash; ' . $this->get_text_inline( 'Contact Us', 'contact-us' ),
9612
- 'manage_options',
9613
- 'contact',
9614
- 'Freemius::_clean_admin_content_section',
9615
- WP_FS__DEFAULT_PRIORITY,
9616
- $this->is_submenu_item_visible( 'contact' )
9617
- );
9618
-
9619
- if ( $this->has_addons() ) {
9620
- $this->add_submenu_item(
9621
- $this->get_text_inline( 'Add-Ons', 'add-ons' ),
9622
- array( &$this, '_addons_page_render' ),
9623
- $this->get_plugin_name() . ' &ndash; ' . $this->get_text_inline( 'Add-Ons', 'add-ons' ),
9624
- 'manage_options',
9625
- 'addons',
9626
- array( &$this, '_addons_page_load' ),
9627
- WP_FS__LOWEST_PRIORITY - 1,
9628
- $this->is_submenu_item_visible( 'addons' )
9629
- );
9630
- }
9631
-
9632
- $show_pricing = (
9633
- $this->is_submenu_item_visible( 'pricing' ) &&
9634
- $this->is_pricing_page_visible()
9635
- );
9636
-
9637
- $pricing_cta_text = $this->get_pricing_cta_label();
9638
- $pricing_class = 'upgrade-mode';
9639
- if ( $show_pricing ) {
9640
- if ( $this->is_in_trial_promotion() &&
9641
- ! $this->is_paying_or_trial()
9642
- ) {
9643
- // If running a trial promotion, modify the pricing to load the trial.
9644
- $pricing_class = 'trial-mode';
9645
- } else if ( $this->is_paying() ) {
9646
- $pricing_class = '';
9647
- }
9648
- }
9649
-
9650
- // Add upgrade/pricing page.
9651
- $this->add_submenu_item(
9652
- $pricing_cta_text . '&nbsp;&nbsp;' . ( is_rtl() ? '&#x2190;' : '&#x27a4;' ),
9653
- array( &$this, '_pricing_page_render' ),
9654
- $this->get_plugin_name() . ' &ndash; ' . $this->get_text_x_inline( 'Pricing', 'noun', 'pricing' ),
9655
- 'manage_options',
9656
- 'pricing',
9657
- 'Freemius::_clean_admin_content_section',
9658
- WP_FS__LOWEST_PRIORITY,
9659
- $show_pricing,
9660
- $pricing_class
9661
- );
9662
- }
9663
- }
9664
-
9665
-
9666
- if ( 0 < count( $this->_menu_items ) ) {
9667
- if ( ! $this->_menu->is_top_level() ) {
9668
- fs_enqueue_local_style( 'fs_common', '/admin/common.css' );
9669
-
9670
- // Append submenu items right after the plugin's submenu item.
9671
- $this->order_sub_submenu_items();
9672
- } else {
9673
- // Append submenu items.
9674
- $this->embed_submenu_items();
9675
- }
9676
- }
9677
- }
9678
-
9679
- /**
9680
- * Moved the actual submenu item additions to a separated function,
9681
- * in order to support sub-submenu items when the plugin's settings
9682
- * only have a submenu and not top-level menu item.
9683
- *
9684
- * @author Vova Feldman (@svovaf)
9685
- * @since 1.1.4
9686
- */
9687
- private function embed_submenu_items() {
9688
- $item_template = $this->_menu->is_top_level() ?
9689
- '<span class="fs-submenu-item %s %s %s">%s</span>' :
9690
- '<span class="fs-submenu-item fs-sub %s %s %s">%s</span>';
9691
-
9692
- $top_level_menu_capability = $this->get_top_level_menu_capability();
9693
-
9694
- ksort( $this->_menu_items );
9695
-
9696
- foreach ( $this->_menu_items as $priority => $items ) {
9697
- foreach ( $items as $item ) {
9698
- $capability = ( ! empty( $item['capability'] ) ? $item['capability'] : $top_level_menu_capability );
9699
-
9700
- $menu_item = sprintf(
9701
- $item_template,
9702
- $this->get_unique_affix(),
9703
- $item['menu_slug'],
9704
- ! empty( $item['class'] ) ? $item['class'] : '',
9705
- $item['menu_title']
9706
- );
9707
-
9708
- $menu_slug = $this->_menu->get_slug( $item['menu_slug'] );
9709
-
9710
- if ( ! isset( $item['url'] ) ) {
9711
- $hook = FS_Admin_Menu_Manager::add_subpage(
9712
- $item['show_submenu'] ?
9713
- $this->get_top_level_menu_slug() :
9714
- null,
9715
- $item['page_title'],
9716
- $menu_item,
9717
- $capability,
9718
- $menu_slug,
9719
- $item['render_function']
9720
- );
9721
-
9722
- if ( false !== $item['before_render_function'] ) {
9723
- add_action( "load-$hook", $item['before_render_function'] );
9724
- }
9725
- } else {
9726
- FS_Admin_Menu_Manager::add_subpage(
9727
- $item['show_submenu'] ?
9728
- $this->get_top_level_menu_slug() :
9729
- null,
9730
- $item['page_title'],
9731
- $menu_item,
9732
- $capability,
9733
- $menu_slug,
9734
- array( $this, '' )
9735
- );
9736
- }
9737
- }
9738
- }
9739
- }
9740
-
9741
- /**
9742
- * Re-order the submenu items so all Freemius added new submenu items
9743
- * are added right after the plugin's settings submenu item.
9744
- *
9745
- * @author Vova Feldman (@svovaf)
9746
- * @since 1.1.4
9747
- */
9748
- private function order_sub_submenu_items() {
9749
- global $submenu;
9750
-
9751
- $menu_slug = $this->_menu->get_top_level_menu_slug();
9752
-
9753
- /**
9754
- * Before "admin_menu" fires, WordPress will loop over the default submenus and remove pages for which the user
9755
- * does not have permissions. So in case a plugin does not have top-level menu but does have submenus under any
9756
- * of the default menus, only users that have the right role can access its sub-submenus (Account, Contact Us,
9757
- * Support Forum, etc.) since $submenu[ $menu_slug ] will be empty if the user doesn't have permission.
9758
- *
9759
- * In case a plugin does not have submenus under any of the default menus but does have submenus under the menu
9760
- * of another plugin, only users that have the right role can access its sub-submenus since we will use the
9761
- * capability needed to access the parent menu as the capability for the submenus that we will add.
9762
- */
9763
- if ( empty( $submenu[ $menu_slug ] ) ) {
9764
- return;
9765
- }
9766
-
9767
- $top_level_menu = &$submenu[ $menu_slug ];
9768
-
9769
- $all_submenu_items_after = array();
9770
-
9771
- $found_submenu_item = false;
9772
-
9773
- foreach ( $top_level_menu as $submenu_id => $meta ) {
9774
- if ( $found_submenu_item ) {
9775
- // Remove all submenu items after the plugin's submenu item.
9776
- $all_submenu_items_after[] = $meta;
9777
- unset( $top_level_menu[ $submenu_id ] );
9778
- }
9779
-
9780
- if ( $this->_menu->get_raw_slug() === $meta[2] ) {
9781
- // Found the submenu item, put all below.
9782
- $found_submenu_item = true;
9783
- continue;
9784
- }
9785
- }
9786
-
9787
- // Embed all plugin's new submenu items.
9788
- $this->embed_submenu_items();
9789
-
9790
- // Start with specially high number to make sure it's appended.
9791
- $i = max( 10000, max( array_keys( $top_level_menu ) ) + 1 );
9792
- foreach ( $all_submenu_items_after as $meta ) {
9793
- $top_level_menu[ $i ] = $meta;
9794
- $i ++;
9795
- }
9796
-
9797
- // Sort submenu items.
9798
- ksort( $top_level_menu );
9799
- }
9800
-
9801
- /**
9802
- * Helper method to return the module's support forum URL.
9803
- *
9804
- * @author Vova Feldman (@svovaf)
9805
- * @since 1.2.2.7
9806
- *
9807
- * @return string
9808
- */
9809
- function get_support_forum_url() {
9810
- return $this->apply_filters( 'support_forum_url', "https://wordpress.org/support/{$this->_module_type}/{$this->_slug}" );
9811
- }
9812
-
9813
- /**
9814
- * Displays the Support Forum link when enabled.
9815
- *
9816
- * Can be filtered like so:
9817
- *
9818
- * function _fs_show_support_menu( $is_visible, $menu_id ) {
9819
- * if ( 'support' === $menu_id ) {
9820
- * return _fs->is_registered();
9821
- * }
9822
- * return $is_visible;
9823
- * }
9824
- * _fs()->add_filter('is_submenu_visible', '_fs_show_support_menu', 10, 2);
9825
- *
9826
- */
9827
- function _add_default_submenu_items() {
9828
- if ( ! $this->is_on() ) {
9829
- return;
9830
- }
9831
-
9832
- if ( ! $this->is_activation_mode() ) {
9833
- $this->add_submenu_link_item(
9834
- $this->apply_filters( 'support_forum_submenu', $this->get_text_inline( 'Support Forum', 'support-forum' ) ),
9835
- $this->get_support_forum_url(),
9836
- 'wp-support-forum',
9837
- null,
9838
- 50,
9839
- $this->is_submenu_item_visible( 'support' )
9840
- );
9841
- }
9842
- }
9843
-
9844
- /**
9845
- * @author Vova Feldman (@svovaf)
9846
- * @since 1.0.1
9847
- *
9848
- * @param string $menu_title
9849
- * @param callable $render_function
9850
- * @param bool|string $page_title
9851
- * @param string $capability
9852
- * @param bool|string $menu_slug
9853
- * @param bool|callable $before_render_function
9854
- * @param int $priority
9855
- * @param bool $show_submenu
9856
- * @param string $class Since 1.2.1.5 can add custom classes to menu items.
9857
- */
9858
- function add_submenu_item(
9859
- $menu_title,
9860
- $render_function,
9861
- $page_title = false,
9862
- $capability = 'manage_options',
9863
- $menu_slug = false,
9864
- $before_render_function = false,
9865
- $priority = WP_FS__DEFAULT_PRIORITY,
9866
- $show_submenu = true,
9867
- $class = ''
9868
- ) {
9869
- $this->_logger->entrance( 'Title = ' . $menu_title );
9870
-
9871
- if ( $this->is_addon() ) {
9872
- $parent_fs = $this->get_parent_instance();
9873
-
9874
- if ( is_object( $parent_fs ) ) {
9875
- $parent_fs->add_submenu_item(
9876
- $menu_title,
9877
- $render_function,
9878
- $page_title,
9879
- $capability,
9880
- $menu_slug,
9881
- $before_render_function,
9882
- $priority,
9883
- $show_submenu,
9884
- $class
9885
- );
9886
-
9887
- return;
9888
- }
9889
- }
9890
-
9891
- if ( ! isset( $this->_menu_items[ $priority ] ) ) {
9892
- $this->_menu_items[ $priority ] = array();
9893
- }
9894
-
9895
- $this->_menu_items[ $priority ][] = array(
9896
- 'page_title' => is_string( $page_title ) ? $page_title : $menu_title,
9897
- 'menu_title' => $menu_title,
9898
- 'capability' => $capability,
9899
- 'menu_slug' => is_string( $menu_slug ) ? $menu_slug : strtolower( $menu_title ),
9900
- 'render_function' => $render_function,
9901
- 'before_render_function' => $before_render_function,
9902
- 'show_submenu' => $show_submenu,
9903
- 'class' => $class,
9904
- );
9905
- }
9906
-
9907
- /**
9908
- * @author Vova Feldman (@svovaf)
9909
- * @since 1.0.1
9910
- *
9911
- * @param string $menu_title
9912
- * @param string $url
9913
- * @param bool $menu_slug
9914
- * @param string $capability
9915
- * @param int $priority
9916
- * @param bool $show_submenu
9917
- */
9918
- function add_submenu_link_item(
9919
- $menu_title,
9920
- $url,
9921
- $menu_slug = false,
9922
- $capability = 'read',
9923
- $priority = WP_FS__DEFAULT_PRIORITY,
9924
- $show_submenu = true
9925
- ) {
9926
- $this->_logger->entrance( 'Title = ' . $menu_title . '; Url = ' . $url );
9927
-
9928
- if ( $this->is_addon() ) {
9929
- $parent_fs = $this->get_parent_instance();
9930
-
9931
- if ( is_object( $parent_fs ) ) {
9932
- $parent_fs->add_submenu_link_item(
9933
- $menu_title,
9934
- $url,
9935
- $menu_slug,
9936
- $capability,
9937
- $priority,
9938
- $show_submenu
9939
- );
9940
-
9941
- return;
9942
- }
9943
- }
9944
-
9945
- if ( ! isset( $this->_menu_items[ $priority ] ) ) {
9946
- $this->_menu_items[ $priority ] = array();
9947
- }
9948
-
9949
- $this->_menu_items[ $priority ][] = array(
9950
- 'menu_title' => $menu_title,
9951
- 'capability' => $capability,
9952
- 'menu_slug' => is_string( $menu_slug ) ? $menu_slug : strtolower( $menu_title ),
9953
- 'url' => $url,
9954
- 'page_title' => $menu_title,
9955
- 'render_function' => 'fs_dummy',
9956
- 'before_render_function' => '',
9957
- 'show_submenu' => $show_submenu,
9958
- );
9959
- }
9960
-
9961
- #endregion ------------------------------------------------------------------
9962
-
9963
-
9964
- #--------------------------------------------------------------------------------
9965
- #region Actions / Hooks / Filters
9966
- #--------------------------------------------------------------------------------
9967
-
9968
- /**
9969
- * @author Vova Feldman (@svovaf)
9970
- * @since 1.1.7
9971
- *
9972
- * @param string $tag
9973
- *
9974
- * @return string
9975
- */
9976
- public function get_action_tag( $tag ) {
9977
- return self::get_action_tag_static( $tag, $this->_slug, $this->is_plugin() );
9978
- }
9979
-
9980
- /**
9981
- * @author Vova Feldman (@svovaf)
9982
- * @since 1.2.1.6
9983
- *
9984
- * @param string $tag
9985
- * @param string $slug
9986
- * @param bool $is_plugin
9987
- *
9988
- * @return string
9989
- */
9990
- static function get_action_tag_static( $tag, $slug = '', $is_plugin = true ) {
9991
- $action = "fs_{$tag}";
9992
-
9993
- if ( ! empty( $slug ) ) {
9994
- $action .= '_' . self::get_module_unique_affix( $slug, $is_plugin );
9995
- }
9996
-
9997
- return $action;
9998
- }
9999
-
10000
- /**
10001
- * Returns a string that can be used to generate a unique action name,
10002
- * option name, HTML element ID, or HTML element class.
10003
- *
10004
- * @author Leo Fajardo (@leorw)
10005
- * @since 1.2.2
10006
- *
10007
- * @return string
10008
- */
10009
- public function get_unique_affix() {
10010
- return self::get_module_unique_affix( $this->_slug, $this->is_plugin() );
10011
- }
10012
-
10013
- /**
10014
- * Returns a string that can be used to generate a unique action name,
10015
- * option name, HTML element ID, or HTML element class.
10016
- *
10017
- * @author Vova Feldman (@svovaf)
10018
- * @since 1.2.2.5
10019
- *
10020
- * @param string $slug
10021
- * @param bool $is_plugin
10022
- *
10023
- * @return string
10024
- */
10025
- static function get_module_unique_affix( $slug, $is_plugin = true ) {
10026
- $affix = $slug;
10027
-
10028
- if ( ! $is_plugin ) {
10029
- $affix .= '-' . WP_FS__MODULE_TYPE_THEME;
10030
- }
10031
-
10032
- return $affix;
10033
- }
10034
-
10035
- /**
10036
- * @author Vova Feldman (@svovaf)
10037
- * @since 1.2.1
10038
- * @since 1.2.2.5 The AJAX action names are based on the module ID, not like the non-AJAX actions that are
10039
- * based on the slug for backward compatibility.
10040
- *
10041
- * @param string $tag
10042
- *
10043
- * @return string
10044
- */
10045
- function get_ajax_action( $tag ) {
10046
- return self::get_ajax_action_static( $tag, $this->_module_id );
10047
- }
10048
-
10049
- /**
10050
- * @author Vova Feldman (@svovaf)
10051
- * @since 1.2.1.7
10052
- *
10053
- * @param string $tag
10054
- *
10055
- * @return string
10056
- */
10057
- function get_ajax_security( $tag ) {
10058
- return wp_create_nonce( $this->get_ajax_action( $tag ) );
10059
- }
10060
-
10061
- /**
10062
- * @author Vova Feldman (@svovaf)
10063
- * @since 1.2.1.7
10064
- *
10065
- * @param string $tag
10066
- */
10067
- function check_ajax_referer( $tag ) {
10068
- check_ajax_referer( $this->get_ajax_action( $tag ), 'security' );
10069
- }
10070
-
10071
- /**
10072
- * @author Vova Feldman (@svovaf)
10073
- * @since 1.2.1.6
10074
- * @since 1.2.2.5 The AJAX action names are based on the module ID, not like the non-AJAX actions that are
10075
- * based on the slug for backward compatibility.
10076
- *
10077
- * @param string $tag
10078
- * @param number|null $module_id
10079
- *
10080
- * @return string
10081
- */
10082
- private static function get_ajax_action_static( $tag, $module_id = null ) {
10083
- $action = "fs_{$tag}";
10084
-
10085
- if ( ! empty( $module_id ) ) {
10086
- $action .= "_{$module_id}";
10087
- }
10088
-
10089
- return $action;
10090
- }
10091
-
10092
- /**
10093
- * Do action, specific for the current context plugin.
10094
- *
10095
- * @author Vova Feldman (@svovaf)
10096
- * @since 1.0.1
10097
- *
10098
- * @param string $tag The name of the action to be executed.
10099
- * @param mixed $arg,... Optional. Additional arguments which are passed on to the
10100
- * functions hooked to the action. Default empty.
10101
- *
10102
- * @uses do_action()
10103
- */
10104
- function do_action( $tag, $arg = '' ) {
10105
- $this->_logger->entrance( $tag );
10106
-
10107
- $args = func_get_args();
10108
-
10109
- call_user_func_array( 'do_action', array_merge(
10110
- array( $this->get_action_tag( $tag ) ),
10111
- array_slice( $args, 1 ) )
10112
- );
10113
- }
10114
-
10115
- /**
10116
- * Add action, specific for the current context plugin.
10117
- *
10118
- * @author Vova Feldman (@svovaf)
10119
- * @since 1.0.1
10120
- *
10121
- * @param string $tag
10122
- * @param callable $function_to_add
10123
- * @param int $priority
10124
- * @param int $accepted_args
10125
- *
10126
- * @uses add_action()
10127
- */
10128
- function add_action(
10129
- $tag,
10130
- $function_to_add,
10131
- $priority = WP_FS__DEFAULT_PRIORITY,
10132
- $accepted_args = 1
10133
- ) {
10134
- $this->_logger->entrance( $tag );
10135
-
10136
- add_action( $this->get_action_tag( $tag ), $function_to_add, $priority, $accepted_args );
10137
- }
10138
-
10139
- /**
10140
- * Add AJAX action, specific for the current context plugin.
10141
- *
10142
- * @author Vova Feldman (@svovaf)
10143
- * @since 1.2.1
10144
- *
10145
- * @param string $tag
10146
- * @param callable $function_to_add
10147
- * @param int $priority
10148
- *
10149
- * @uses add_action()
10150
- *
10151
- * @return bool True if action added, false if no need to add the action since the AJAX call isn't matching.
10152
- */
10153
- function add_ajax_action(
10154
- $tag,
10155
- $function_to_add,
10156
- $priority = WP_FS__DEFAULT_PRIORITY
10157
- ) {
10158
- $this->_logger->entrance( $tag );
10159
-
10160
- return self::add_ajax_action_static(
10161
- $tag,
10162
- $function_to_add,
10163
- $priority,
10164
- $this->_module_id
10165
- );
10166
- }
10167
-
10168
- /**
10169
- * Add AJAX action.
10170
- *
10171
- * @author Vova Feldman (@svovaf)
10172
- * @since 1.2.1.6
10173
- *
10174
- * @param string $tag
10175
- * @param callable $function_to_add
10176
- * @param int $priority
10177
- * @param number|null $module_id
10178
- *
10179
- * @return bool True if action added, false if no need to add the action since the AJAX call isn't matching.
10180
- * @uses add_action()
10181
- *
10182
- */
10183
- static function add_ajax_action_static(
10184
- $tag,
10185
- $function_to_add,
10186
- $priority = WP_FS__DEFAULT_PRIORITY,
10187
- $module_id = null
10188
- ) {
10189
- self::$_static_logger->entrance( $tag );
10190
-
10191
- if ( ! self::is_ajax_action_static( $tag, $module_id ) ) {
10192
- return false;
10193
- }
10194
-
10195
- add_action(
10196
- 'wp_ajax_' . self::get_ajax_action_static( $tag, $module_id ),
10197
- $function_to_add,
10198
- $priority,
10199
- 0
10200
- );
10201
-
10202
- self::$_static_logger->info( "$tag AJAX callback action added." );
10203
-
10204
- return true;
10205
- }
10206
-
10207
- /**
10208
- * Send a JSON response back to an Ajax request.
10209
- *
10210
- * @author Vova Feldman (@svovaf)
10211
- * @since 1.2.1.5
10212
- *
10213
- * @param mixed $response
10214
- */
10215
- static function shoot_ajax_response( $response ) {
10216
- wp_send_json( $response );
10217
- }
10218
-
10219
- /**
10220
- * Send a JSON response back to an Ajax request, indicating success.
10221
- *
10222
- * @author Vova Feldman (@svovaf)
10223
- * @since 1.2.1.5
10224
- *
10225
- * @param mixed $data Data to encode as JSON, then print and exit.
10226
- */
10227
- static function shoot_ajax_success( $data = null ) {
10228
- wp_send_json_success( $data );
10229
- }
10230
-
10231
- /**
10232
- * Send a JSON response back to an Ajax request, indicating failure.
10233
- *
10234
- * @author Vova Feldman (@svovaf)
10235
- * @since 1.2.1.5
10236
- *
10237
- * @param mixed $error Optional error message.
10238
- */
10239
- static function shoot_ajax_failure( $error = '' ) {
10240
- $result = array( 'success' => false );
10241
- if ( ! empty( $error ) ) {
10242
- $result['error'] = $error;
10243
- }
10244
-
10245
- wp_send_json( $result );
10246
- }
10247
-
10248
- /**
10249
- * Apply filter, specific for the current context plugin.
10250
- *
10251
- * @author Vova Feldman (@svovaf)
10252
- * @since 1.0.9
10253
- *
10254
- * @param string $tag The name of the filter hook.
10255
- * @param mixed $value The value on which the filters hooked to `$tag` are applied on.
10256
- *
10257
- * @return mixed The filtered value after all hooked functions are applied to it.
10258
- *
10259
- * @uses apply_filters()
10260
- */
10261
- function apply_filters( $tag, $value ) {
10262
- $this->_logger->entrance( $tag );
10263
-
10264
- $args = func_get_args();
10265
- array_unshift( $args, $this->get_unique_affix() );
10266
-
10267
- return call_user_func_array( 'fs_apply_filter', $args );
10268
- }
10269
-
10270
- /**
10271
- * Add filter, specific for the current context plugin.
10272
- *
10273
- * @author Vova Feldman (@svovaf)
10274
- * @since 1.0.9
10275
- *
10276
- * @param string $tag
10277
- * @param callable $function_to_add
10278
- * @param int $priority
10279
- * @param int $accepted_args
10280
- *
10281
- * @uses add_filter()
10282
- */
10283
- function add_filter( $tag, $function_to_add, $priority = WP_FS__DEFAULT_PRIORITY, $accepted_args = 1 ) {
10284
- $this->_logger->entrance( $tag );
10285
-
10286
- add_filter( $this->get_action_tag( $tag ), $function_to_add, $priority, $accepted_args );
10287
- }
10288
-
10289
- /**
10290
- * Check if has filter.
10291
- *
10292
- * @author Vova Feldman (@svovaf)
10293
- * @since 1.1.4
10294
- *
10295
- * @param string $tag
10296
- * @param callable|bool $function_to_check Optional. The callback to check for. Default false.
10297
- *
10298
- * @return false|int
10299
- *
10300
- * @uses has_filter()
10301
- */
10302
- function has_filter( $tag, $function_to_check = false ) {
10303
- $this->_logger->entrance( $tag );
10304
-
10305
- return has_filter( $this->get_action_tag( $tag ), $function_to_check );
10306
- }
10307
-
10308
- #endregion
10309
-
10310
- /**
10311
- * Override default i18n text phrases.
10312
- *
10313
- * @author Vova Feldman (@svovaf)
10314
- * @since 1.1.6
10315
- *
10316
- * @param string[] string $key_value
10317
- *
10318
- * @uses fs_override_i18n()
10319
- */
10320
- function override_i18n( $key_value ) {
10321
- fs_override_i18n( $key_value, $this->_slug );
10322
- }
10323
-
10324
- /* Account Page
10325
- ------------------------------------------------------------------------------------------------------------------*/
10326
- /**
10327
- * Update site information.
10328
- *
10329
- * @author Vova Feldman (@svovaf)
10330
- * @since 1.0.1
10331
- *
10332
- * @param bool $store Flush to Database if true.
10333
- */
10334
- private function _store_site( $store = true ) {
10335
- $this->_logger->entrance();
10336
-
10337
- if ( empty( $this->_site->id ) ) {
10338
- $this->_logger->error( "Empty install ID, can't store site." );
10339
-
10340
- return;
10341
- }
10342
-
10343
- $encrypted_site = clone $this->_site;
10344
- $encrypted_site->plan = self::_encrypt_entity( $this->_site->plan );
10345
-
10346
- $sites = self::get_all_sites( $this->_module_type );
10347
-
10348
- if ( empty( $this->_storage->prev_user_id ) && $this->_user->id != $this->_site->user_id ) {
10349
- /**
10350
- * Store the current user ID as the previous user ID so that the previous user can be used
10351
- * as the install's owner while the new owner's details are not yet available.
10352
- *
10353
- * This will be executed only in the `replica` site. For example, there are 2 sites, namely `original`
10354
- * and `replica`, then an ownership change was initiated and completed in the `original`, the `replica`
10355
- * will be using the previous user until it is updated again (e.g.: until the next clone of `original`
10356
- * into `replica`.
10357
- *
10358
- * @author Leo Fajardo (@leorw)
10359
- */
10360
- $this->_storage->prev_user_id = $sites[ $this->_slug ]->user_id;
10361
- }
10362
-
10363
- $sites[ $this->_slug ] = $encrypted_site;
10364
-
10365
- $this->set_account_option( 'sites', $sites, $store );
10366
- }
10367
-
10368
- /**
10369
- * Update plugin's plans information.
10370
- *
10371
- * @author Vova Feldman (@svovaf)
10372
- * @since 1.0.2
10373
- *
10374
- * @param bool $store Flush to Database if true.
10375
- */
10376
- private function _store_plans( $store = true ) {
10377
- $this->_logger->entrance();
10378
-
10379
- $plans = self::get_all_plans( $this->_module_type );
10380
-
10381
- // Copy plans.
10382
- $encrypted_plans = array();
10383
- for ( $i = 0, $len = count( $this->_plans ); $i < $len; $i ++ ) {
10384
- $encrypted_plans[] = self::_encrypt_entity( $this->_plans[ $i ] );
10385
- }
10386
-
10387
- $plans[ $this->_slug ] = $encrypted_plans;
10388
-
10389
- $this->set_account_option( 'plans', $plans, $store );
10390
- }
10391
-
10392
- /**
10393
- * Update user's plugin licenses.
10394
- *
10395
- * @author Vova Feldman (@svovaf)
10396
- * @since 1.0.5
10397
- *
10398
- * @param bool $store
10399
- * @param string|bool $plugin_slug
10400
- * @param FS_Plugin_License[] $licenses
10401
- */
10402
- private function _store_licenses( $store = true, $plugin_slug = false, $licenses = array() ) {
10403
- $this->_logger->entrance();
10404
-
10405
- $all_licenses = self::get_all_licenses( $this->_module_type );
10406
-
10407
- if ( ! is_string( $plugin_slug ) ) {
10408
- $plugin_slug = $this->_slug;
10409
- $licenses = $this->_licenses;
10410
- }
10411
-
10412
- if ( ! isset( $all_licenses[ $plugin_slug ] ) ) {
10413
- $all_licenses[ $plugin_slug ] = array();
10414
- }
10415
-
10416
- $all_licenses[ $plugin_slug ][ $this->_user->id ] = $licenses;
10417
-
10418
- $this->set_account_option( 'licenses', $all_licenses, $store );
10419
- }
10420
-
10421
- /**
10422
- * Update user information.
10423
- *
10424
- * @author Vova Feldman (@svovaf)
10425
- * @since 1.0.1
10426
- *
10427
- * @param bool $store Flush to Database if true.
10428
- */
10429
- private function _store_user( $store = true ) {
10430
- $this->_logger->entrance();
10431
-
10432
- if ( empty( $this->_user->id ) ) {
10433
- $this->_logger->error( "Empty user ID, can't store user." );
10434
-
10435
- return;
10436
- }
10437
-
10438
- $users = self::get_all_users();
10439
- $users[ $this->_user->id ] = $this->_user;
10440
- self::$_accounts->set_option( 'users', $users, $store );
10441
- }
10442
-
10443
- /**
10444
- * Update new updates information.
10445
- *
10446
- * @author Vova Feldman (@svovaf)
10447
- * @since 1.0.4
10448
- *
10449
- * @param FS_Plugin_Tag|null $update
10450
- * @param bool $store Flush to Database if true.
10451
- * @param bool|number $plugin_id
10452
- */
10453
- private function _store_update( $update, $store = true, $plugin_id = false ) {
10454
- $this->_logger->entrance();
10455
-
10456
- if ( $update instanceof FS_Plugin_Tag ) {
10457
- $update->updated = time();
10458
- }
10459
-
10460
- if ( ! is_numeric( $plugin_id ) ) {
10461
- $plugin_id = $this->_plugin->id;
10462
- }
10463
-
10464
- $updates = self::get_all_updates();
10465
- $updates[ $plugin_id ] = $update;
10466
- self::$_accounts->set_option( 'updates', $updates, $store );
10467
- }
10468
-
10469
- /**
10470
- * Update new updates information.
10471
- *
10472
- * @author Vova Feldman (@svovaf)
10473
- * @since 1.0.6
10474
- *
10475
- * @param FS_Plugin[] $plugin_addons
10476
- * @param bool $store Flush to Database if true.
10477
- */
10478
- private function _store_addons( $plugin_addons, $store = true ) {
10479
- $this->_logger->entrance();
10480
-
10481
- $addons = self::get_all_addons();
10482
- $addons[ $this->_plugin->id ] = $plugin_addons;
10483
- self::$_accounts->set_option( 'addons', $addons, $store );
10484
- }
10485
-
10486
- /**
10487
- * Delete plugin's associated add-ons.
10488
- *
10489
- * @author Vova Feldman (@svovaf)
10490
- * @since 1.0.8
10491
- *
10492
- * @param bool $store
10493
- *
10494
- * @return bool
10495
- */
10496
- private function _delete_account_addons( $store = true ) {
10497
- $all_addons = self::get_all_account_addons();
10498
-
10499
- if ( ! isset( $all_addons[ $this->_plugin->id ] ) ) {
10500
- return false;
10501
- }
10502
-
10503
- unset( $all_addons[ $this->_plugin->id ] );
10504
-
10505
- self::$_accounts->set_option( 'account_addons', $all_addons, $store );
10506
-
10507
- return true;
10508
- }
10509
-
10510
- /**
10511
- * Update account add-ons list.
10512
- *
10513
- * @author Vova Feldman (@svovaf)
10514
- * @since 1.0.6
10515
- *
10516
- * @param FS_Plugin[] $addons
10517
- * @param bool $store Flush to Database if true.
10518
- */
10519
- private function _store_account_addons( $addons, $store = true ) {
10520
- $this->_logger->entrance();
10521
-
10522
- $all_addons = self::get_all_account_addons();
10523
- $all_addons[ $this->_plugin->id ] = $addons;
10524
- self::$_accounts->set_option( 'account_addons', $all_addons, $store );
10525
- }
10526
-
10527
- /**
10528
- * Store account params in the Database.
10529
- *
10530
- * @author Vova Feldman (@svovaf)
10531
- * @since 1.0.1
10532
- */
10533
- private function _store_account() {
10534
- $this->_logger->entrance();
10535
-
10536
- $this->_store_site( false );
10537
- $this->_store_user( false );
10538
- $this->_store_plans( false );
10539
- $this->_store_licenses( false );
10540
-
10541
- self::$_accounts->store();
10542
- }
10543
-
10544
- /**
10545
- * Sync user's information.
10546
- *
10547
- * @author Vova Feldman (@svovaf)
10548
- * @since 1.0.3
10549
- * @uses FS_Api
10550
- */
10551
- private function _handle_account_user_sync() {
10552
- $this->_logger->entrance();
10553
-
10554
- $api = $this->get_api_user_scope();
10555
-
10556
- // Get user's information.
10557
- $user = $api->get( '/', true );
10558
-
10559
- if ( isset( $user->id ) ) {
10560
- $this->_user->first = $user->first;
10561
- $this->_user->last = $user->last;
10562
- $this->_user->email = $user->email;
10563
-
10564
- $is_menu_item_account_visible = $this->is_submenu_item_visible( 'account' );
10565
-
10566
- if ( $user->is_verified &&
10567
- ( ! isset( $this->_user->is_verified ) || false === $this->_user->is_verified )
10568
- ) {
10569
- $this->_user->is_verified = true;
10570
-
10571
- $this->do_action( 'account_email_verified', $user->email );
10572
-
10573
- $this->_admin_notices->add(
10574
- $this->get_text_inline( 'Your email has been successfully verified - you are AWESOME!', 'email-verified-message' ),
10575
- $this->get_text_x_inline( 'Right on', 'a positive response', 'right-on' ) . '!',
10576
- 'success',
10577
- // Make admin sticky if account menu item is invisible,
10578
- // since the page will be auto redirected to the plugin's
10579
- // main settings page, and the non-sticky message
10580
- // will disappear.
10581
- ! $is_menu_item_account_visible,
10582
- false,
10583
- 'email_verified'
10584
- );
10585
- }
10586
-
10587
- // Flush user details to DB.
10588
- $this->_store_user();
10589
-
10590
- $this->do_action( 'after_account_user_sync', $user );
10591
-
10592
- /**
10593
- * If account menu item is hidden, redirect to plugin's main settings page.
10594
- *
10595
- * @author Vova Feldman (@svovaf)
10596
- * @since 1.1.6
10597
- *
10598
- * @link https://github.com/Freemius/wordpress-sdk/issues/6
10599
- */
10600
- if ( ! $is_menu_item_account_visible ) {
10601
- fs_redirect( $this->_get_admin_page_url() );
10602
- }
10603
- }
10604
- }
10605
-
10606
- /**
10607
- * @param bool $store
10608
- *
10609
- * @return FS_Plugin_Plan|object|false
10610
- */
10611
- private function _enrich_site_plan( $store = true ) {
10612
- // Try to load plan from local cache.
10613
- $plan = $this->_get_plan_by_id( $this->_site->plan->id );
10614
-
10615
- if ( false === $plan ) {
10616
- $plan = $this->_fetch_site_plan();
10617
- }
10618
-
10619
- if ( $plan instanceof FS_Plugin_Plan ) {
10620
- $this->_update_plan( $plan, $store );
10621
- }
10622
-
10623
- return $plan;
10624
- }
10625
-
10626
- /**
10627
- * @author Vova Feldman (@svovaf)
10628
- * @since 1.0.9
10629
- * @uses FS_Api
10630
- *
10631
- * @param bool $store
10632
- *
10633
- * @return FS_Plugin_Plan|object|false
10634
- */
10635
- private function _enrich_site_trial_plan( $store = true ) {
10636
- // Try to load plan from local cache.
10637
- $trial_plan = $this->_get_plan_by_id( $this->_site->trial_plan_id );
10638
-
10639
- if ( false === $trial_plan ) {
10640
- $trial_plan = $this->_fetch_site_plan( $this->_site->trial_plan_id );
10641
- }
10642
-
10643
- if ( $trial_plan instanceof FS_Plugin_Plan ) {
10644
- $this->_storage->store( 'trial_plan', $trial_plan, $store );
10645
- }
10646
-
10647
- return $trial_plan;
10648
- }
10649
-
10650
- /**
10651
- * @author Vova Feldman (@svovaf)
10652
- * @since 1.0.9
10653
- * @uses FS_Api
10654
- *
10655
- * @param number|bool $license_id
10656
- *
10657
- * @return FS_Subscription|object|bool
10658
- */
10659
- private function _fetch_site_license_subscription( $license_id = false ) {
10660
- $this->_logger->entrance();
10661
- $api = $this->get_api_site_scope();
10662
-
10663
- if ( ! is_numeric( $license_id ) ) {
10664
- $license_id = $this->_license->id;
10665
- }
10666
-
10667
- $result = $api->get( "/licenses/{$license_id}/subscriptions.json", true );
10668
-
10669
- return ! isset( $result->error ) ?
10670
- ( ( is_array( $result->subscriptions ) && 0 < count( $result->subscriptions ) ) ?
10671
- new FS_Subscription( $result->subscriptions[0] ) :
10672
- false
10673
- ) :
10674
- $result;
10675
- }
10676
-
10677
- /**
10678
- * @author Vova Feldman (@svovaf)
10679
- * @since 1.0.4
10680
- * @uses FS_Api
10681
- *
10682
- * @param number|bool $plan_id
10683
- *
10684
- * @return FS_Plugin_Plan|object
10685
- */
10686
- private function _fetch_site_plan( $plan_id = false ) {
10687
- $this->_logger->entrance();
10688
- $api = $this->get_api_site_scope();
10689
-
10690
- if ( ! is_numeric( $plan_id ) ) {
10691
- $plan_id = $this->_site->plan->id;
10692
- }
10693
-
10694
- $plan = $api->get( "/plans/{$plan_id}.json", true );
10695
-
10696
- return ! isset( $plan->error ) ? new FS_Plugin_Plan( $plan ) : $plan;
10697
- }
10698
-
10699
- /**
10700
- * @author Vova Feldman (@svovaf)
10701
- * @since 1.0.5
10702
- * @uses FS_Api
10703
- *
10704
- * @return FS_Plugin_Plan[]|object
10705
- */
10706
- private function _fetch_plugin_plans() {
10707
- $this->_logger->entrance();
10708
- $api = $this->get_api_site_scope();
10709
-
10710
- /**
10711
- * @since 1.2.3 When running in DEV mode, retrieve pending plans as well.
10712
- */
10713
- $result = $api->get( '/plans.json?show_pending=' . ( $this->has_secret_key() ? 'true' : 'false' ), true );
10714
-
10715
- if ( $this->is_api_result_object( $result, 'plans' ) && is_array( $result->plans ) ) {
10716
- for ( $i = 0, $len = count( $result->plans ); $i < $len; $i ++ ) {
10717
- $result->plans[ $i ] = new FS_Plugin_Plan( $result->plans[ $i ] );
10718
- }
10719
-
10720
- $result = $result->plans;
10721
- }
10722
-
10723
- return $result;
10724
- }
10725
-
10726
- /**
10727
- * @author Vova Feldman (@svovaf)
10728
- * @since 1.0.5
10729
- * @uses FS_Api
10730
- *
10731
- * @param number|bool $plugin_id
10732
- * @param number|bool $site_license_id
10733
- *
10734
- * @return FS_Plugin_License[]|object
10735
- */
10736
- private function _fetch_licenses( $plugin_id = false, $site_license_id = false ) {
10737
- $this->_logger->entrance();
10738
-
10739
- $api = $this->get_api_user_scope();
10740
-
10741
- if ( ! is_numeric( $plugin_id ) ) {
10742
- $plugin_id = $this->_plugin->id;
10743
- }
10744
-
10745
- $result = $api->get( "/plugins/{$plugin_id}/licenses.json", true );
10746
-
10747
- $is_site_license_synced = false;
10748
-
10749
- $api_errors = array();
10750
-
10751
- if ( $this->is_api_result_object( $result, 'licenses' ) &&
10752
- is_array( $result->licenses )
10753
- ) {
10754
- for ( $i = 0, $len = count( $result->licenses ); $i < $len; $i ++ ) {
10755
- $result->licenses[ $i ] = new FS_Plugin_License( $result->licenses[ $i ] );
10756
-
10757
- if ( ( ! $is_site_license_synced ) && is_numeric( $site_license_id ) ) {
10758
- $is_site_license_synced = ( $site_license_id == $result->licenses[ $i ]->id );
10759
- }
10760
- }
10761
-
10762
- $result = $result->licenses;
10763
- } else {
10764
- $api_errors[] = $result;
10765
- $result = array();
10766
- }
10767
-
10768
- if ( ! $is_site_license_synced ) {
10769
- $api = $this->get_api_site_scope();
10770
-
10771
- if ( is_numeric( $site_license_id ) ) {
10772
- // Try to retrieve a foreign license that is linked to the install.
10773
- $api_result = $api->call( '/licenses.json' );
10774
-
10775
- if ( $this->is_api_result_object( $api_result, 'licenses' ) &&
10776
- is_array( $api_result->licenses )
10777
- ) {
10778
- $licenses = $api_result->licenses;
10779
-
10780
- if ( ! empty( $licenses ) ) {
10781
- $result[] = new FS_Plugin_License( $licenses[0] );
10782
- }
10783
- } else {
10784
- $api_errors[] = $api_result;
10785
- }
10786
- } else if ( is_object( $this->_license ) ) {
10787
- // Fetch foreign license by ID and license key.
10788
- $license = $api->get( "/licenses/{$this->_license->id}.json?license_key=" .
10789
- urlencode( $this->_license->secret_key ) );
10790
-
10791
- if ( $this->is_api_result_entity( $license ) ) {
10792
- $result[] = new FS_Plugin_License( $license );
10793
- } else {
10794
- $api_errors[] = $license;
10795
- }
10796
- }
10797
- }
10798
-
10799
- if ( is_array( $result ) && 0 < count( $result ) ) {
10800
- // If found at least one license, return license collection even if there are errors.
10801
- return $result;
10802
- }
10803
-
10804
- if ( ! empty( $api_errors ) ) {
10805
- // If found any errors and no licenses, return first error.
10806
- return $api_errors[0];
10807
- }
10808
-
10809
- // Fallback to empty licenses list.
10810
- return $result;
10811
- }
10812
-
10813
- /**
10814
- * @author Vova Feldman (@svovaf)
10815
- * @since 1.2.0
10816
- * @uses FS_Api
10817
- *
10818
- * @param number|bool $plugin_id
10819
- * @param bool $flush
10820
- *
10821
- * @return FS_Payment[]|object
10822
- */
10823
- function _fetch_payments( $plugin_id = false, $flush = false ) {
10824
- $this->_logger->entrance();
10825
-
10826
- $api = $this->get_api_user_scope();
10827
-
10828
- if ( ! is_numeric( $plugin_id ) ) {
10829
- $plugin_id = $this->_plugin->id;
10830
- }
10831
-
10832
- $result = $api->get( "/plugins/{$plugin_id}/payments.json?include_addons=true", $flush );
10833
-
10834
- if ( ! isset( $result->error ) ) {
10835
- for ( $i = 0, $len = count( $result->payments ); $i < $len; $i ++ ) {
10836
- $result->payments[ $i ] = new FS_Payment( $result->payments[ $i ] );
10837
- }
10838
- $result = $result->payments;
10839
- }
10840
-
10841
- return $result;
10842
- }
10843
-
10844
- /**
10845
- * @author Vova Feldman (@svovaf)
10846
- * @since 1.2.1.5
10847
- * @uses FS_Api
10848
- *
10849
- * @param bool $flush
10850
- *
10851
- * @return \FS_Billing|mixed
10852
- */
10853
- function _fetch_billing( $flush = false ) {
10854
- require_once WP_FS__DIR_INCLUDES . '/entities/class-fs-billing.php';
10855
-
10856
- $billing = $this->get_api_user_scope()->get( 'billing.json', $flush );
10857
-
10858
- if ( $this->is_api_result_entity( $billing ) ) {
10859
- $billing = new FS_Billing( $billing );
10860
- }
10861
-
10862
- return $billing;
10863
- }
10864
-
10865
- /**
10866
- * @author Vova Feldman (@svovaf)
10867
- * @since 1.0.4
10868
- *
10869
- * @param FS_Plugin_Plan $plan
10870
- * @param bool $store
10871
- */
10872
- private function _update_plan( $plan, $store = false ) {
10873
- $this->_logger->entrance();
10874
-
10875
- $this->_site->plan = $plan;
10876
- $this->_store_site( $store );
10877
- }
10878
-
10879
- /**
10880
- * @author Vova Feldman (@svovaf)
10881
- * @since 1.0.5
10882
- *
10883
- * @param FS_Plugin_License[] $licenses
10884
- * @param string|bool $plugin_slug
10885
- */
10886
- private function _update_licenses( $licenses, $plugin_slug = false ) {
10887
- $this->_logger->entrance();
10888
-
10889
- if ( is_array( $licenses ) ) {
10890
- for ( $i = 0, $len = count( $licenses ); $i < $len; $i ++ ) {
10891
- $licenses[ $i ]->updated = time();
10892
- }
10893
- }
10894
-
10895
- if ( ! is_string( $plugin_slug ) ) {
10896
- $this->_licenses = $licenses;
10897
- }
10898
-
10899
- $this->_store_licenses( true, $plugin_slug, $licenses );
10900
- }
10901
-
10902
- /**
10903
- * @author Vova Feldman (@svovaf)
10904
- * @since 1.0.4
10905
- *
10906
- * @param bool|number $plugin_id
10907
- * @param bool $flush Since 1.1.7.3
10908
- * @param int $expiration Since 1.2.2.7
10909
- *
10910
- * @return object|false New plugin tag info if exist.
10911
- */
10912
- private function _fetch_newer_version( $plugin_id = false, $flush = true, $expiration = WP_FS__TIME_24_HOURS_IN_SEC ) {
10913
- $latest_tag = $this->_fetch_latest_version( $plugin_id, $flush, $expiration );
10914
-
10915
- if ( ! is_object( $latest_tag ) ) {
10916
- return false;
10917
- }
10918
-
10919
- // Check if version is actually newer.
10920
- $has_new_version =
10921
- // If it's an non-installed add-on then always return latest.
10922
- ( $this->_is_addon_id( $plugin_id ) && ! $this->is_addon_activated( $plugin_id ) ) ||
10923
- // Compare versions.
10924
- version_compare( $this->get_plugin_version(), $latest_tag->version, '<' );
10925
-
10926
- $this->_logger->departure( $has_new_version ? 'Found newer plugin version ' . $latest_tag->version : 'No new version' );
10927
-
10928
- return $has_new_version ? $latest_tag : false;
10929
- }
10930
-
10931
- /**
10932
- * @author Vova Feldman (@svovaf)
10933
- * @since 1.0.5
10934
- *
10935
- * @param bool|number $plugin_id
10936
- * @param bool $flush Since 1.1.7.3
10937
- * @param int $expiration Since 1.2.2.7
10938
- *
10939
- * @return bool|FS_Plugin_Tag
10940
- */
10941
- function get_update( $plugin_id = false, $flush = true, $expiration = WP_FS__TIME_24_HOURS_IN_SEC ) {
10942
- $this->_logger->entrance();
10943
-
10944
- if ( ! is_numeric( $plugin_id ) ) {
10945
- $plugin_id = $this->_plugin->id;
10946
- }
10947
-
10948
- $this->check_updates( true, $plugin_id, $flush, $expiration );
10949
- $updates = $this->get_all_updates();
10950
-
10951
- return isset( $updates[ $plugin_id ] ) && is_object( $updates[ $plugin_id ] ) ? $updates[ $plugin_id ] : false;
10952
- }
10953
-
10954
- /**
10955
- * Check if site assigned with active license.
10956
- *
10957
- * @author Vova Feldman (@svovaf)
10958
- * @since 1.0.6
10959
- *
10960
- * @deprecated Please use has_active_valid_license() instead because license can be cancelled.
10961
- */
10962
- function has_active_license() {
10963
- return (
10964
- is_object( $this->_license ) &&
10965
- is_numeric( $this->_license->id ) &&
10966
- ! $this->_license->is_expired()
10967
- );
10968
- }
10969
-
10970
- /**
10971
- * Check if site assigned with active & valid (not expired) license.
10972
- *
10973
- * @author Vova Feldman (@svovaf)
10974
- * @since 1.2.1
10975
- */
10976
- function has_active_valid_license() {
10977
- return (
10978
- is_object( $this->_license ) &&
10979
- is_numeric( $this->_license->id ) &&
10980
- $this->_license->is_active() &&
10981
- $this->_license->is_valid()
10982
- );
10983
- }
10984
-
10985
- /**
10986
- * Check if site assigned with license with enabled features.
10987
- *
10988
- * @author Vova Feldman (@svovaf)
10989
- * @since 1.0.6
10990
- *
10991
- * @return bool
10992
- */
10993
- function has_features_enabled_license() {
10994
- return (
10995
- is_object( $this->_license ) &&
10996
- is_numeric( $this->_license->id ) &&
10997
- $this->_license->is_features_enabled()
10998
- );
10999
- }
11000
-
11001
- /**
11002
- * Check if user is a trial or have feature enabled license.
11003
- *
11004
- * @author Vova Feldman (@svovaf)
11005
- * @since 1.1.7
11006
- *
11007
- * @return bool
11008
- */
11009
- function can_use_premium_code() {
11010
- return $this->is_trial() || $this->has_features_enabled_license();
11011
- }
11012
-
11013
- /**
11014
- * Checks if the current user can activate plugins or switch themes. Note that this method should only be used
11015
- * after the `init` action is triggered because it is using `current_user_can()` which is only functional after
11016
- * the context user is authenticated.
11017
- *
11018
- * @author Leo Fajardo (@leorw)
11019
- * @since 1.2.2
11020
- *
11021
- * @return bool
11022
- */
11023
- function is_user_admin() {
11024
- return ( $this->is_plugin() && current_user_can( 'activate_plugins' ) )
11025
- || ( $this->is_theme() && current_user_can( 'switch_themes' ) );
11026
- }
11027
-
11028
- /**
11029
- * Sync site's plan.
11030
- *
11031
- * @author Vova Feldman (@svovaf)
11032
- * @since 1.0.3
11033
- *
11034
- * @uses FS_Api
11035
- *
11036
- * @param bool $background Hints the method if it's a background sync. If false, it means that was initiated by
11037
- * the admin.
11038
- */
11039
- private function _sync_license( $background = false ) {
11040
- $this->_logger->entrance();
11041
-
11042
- $plugin_id = fs_request_get( 'plugin_id', $this->get_id() );
11043
-
11044
- $is_addon_sync = ( ! $this->_plugin->is_addon() && $plugin_id != $this->get_id() );
11045
-
11046
- if ( $is_addon_sync ) {
11047
- $this->_sync_addon_license( $plugin_id, $background );
11048
- } else {
11049
- $this->_sync_plugin_license( $background );
11050
- }
11051
-
11052
- $this->do_action( 'after_account_plan_sync', $this->_site->plan->name );
11053
- }
11054
-
11055
- /**
11056
- * Sync plugin's add-on license.
11057
- *
11058
- * @author Vova Feldman (@svovaf)
11059
- * @since 1.0.6
11060
- * @uses FS_Api
11061
- *
11062
- * @param number $addon_id
11063
- * @param bool $background
11064
- */
11065
- private function _sync_addon_license( $addon_id, $background ) {
11066
- $this->_logger->entrance();
11067
-
11068
- if ( $this->is_addon_activated( $addon_id ) ) {
11069
- // If already installed, use add-on sync.
11070
- $fs_addon = self::get_instance_by_id( $addon_id );
11071
- $fs_addon->_sync_license( $background );
11072
-
11073
- return;
11074
- }
11075
-
11076
- // Validate add-on exists.
11077
- $addon = $this->get_addon( $addon_id );
11078
-
11079
- if ( ! is_object( $addon ) ) {
11080
- return;
11081
- }
11082
-
11083
- // Add add-on into account add-ons.
11084
- $account_addons = $this->get_account_addons();
11085
- if ( ! is_array( $account_addons ) ) {
11086
- $account_addons = array();
11087
- }
11088
- $account_addons[] = $addon->id;
11089
- $account_addons = array_unique( $account_addons );
11090
- $this->_store_account_addons( $account_addons );
11091
-
11092
- // Load add-on licenses.
11093
- $licenses = $this->_fetch_licenses( $addon->id );
11094
-
11095
- // Sync add-on licenses.
11096
- if ( $this->is_array_instanceof( $licenses, 'FS_Plugin_License' ) ) {
11097
- $this->_update_licenses( $licenses, $addon->slug );
11098
-
11099
- if ( ! $this->is_addon_installed( $addon->id ) && FS_License_Manager::has_premium_license( $licenses ) ) {
11100
- $plans_result = $this->get_api_site_or_plugin_scope()->get( "/addons/{$addon_id}/plans.json" );
11101
-
11102
- if ( ! isset( $plans_result->error ) ) {
11103
- $plans = array();
11104
- foreach ( $plans_result->plans as $plan ) {
11105
- $plans[] = new FS_Plugin_Plan( $plan );
11106
- }
11107
-
11108
- $this->_admin_notices->add_sticky(
11109
- sprintf(
11110
- ( FS_Plan_Manager::instance()->has_free_plan( $plans ) ?
11111
- $this->get_text_inline( 'Your %s Add-on plan was successfully upgraded.', 'addon-successfully-upgraded-message' ) :
11112
- /* translators: %s:product name, e.g. Facebook add-on was successfully... */
11113
- $this->get_text_inline( '%s Add-on was successfully purchased.', 'addon-successfully-purchased-message' ) ),
11114
- $addon->title
11115
- ) . ' ' . $this->get_latest_download_link(
11116
- $this->get_text_inline( 'Download the latest version', 'download-latest-version' ),
11117
- $addon_id
11118
- ),
11119
- 'addon_plan_upgraded_' . $addon->slug,
11120
- $this->get_text_x_inline( 'Yee-haw', 'interjection expressing joy or exuberance', 'yee-haw' ) . '!'
11121
- );
11122
- }
11123
- }
11124
- }
11125
- }
11126
-
11127
- /**
11128
- * Sync site's plugin plan.
11129
- *
11130
- * @author Vova Feldman (@svovaf)
11131
- * @since 1.0.6
11132
- * @uses FS_Api
11133
- *
11134
- * @param bool $background Hints the method if it's a background sync. If false, it means that was initiated by
11135
- * the admin.
11136
- */
11137
- private function _sync_plugin_license( $background = false ) {
11138
- $this->_logger->entrance();
11139
-
11140
- /**
11141
- * Sync site info.
11142
- *
11143
- * @todo This line will execute install sync on a daily basis, even if running the free version (for opted-in users). The reason we want to keep it that way is for cases when the user was a paying customer, then there was a failure in subscription payment, and then after some time the payment was successful. This could be heavily optimized. For example, we can skip the $flush if the current install was never associated with a paid version.
11144
- */
11145
- $site = $this->send_install_update( array(), true );
11146
-
11147
- $plan_change = 'none';
11148
-
11149
- if ( ! $this->is_api_result_entity( $site ) ) {
11150
- // Show API messages only if not background sync or if paying customer.
11151
- if ( ! $background || $this->is_paying() ) {
11152
- // Try to ping API to see if not blocked.
11153
- if ( ! FS_Api::test() ) {
11154
- /**
11155
- * Failed to ping API - blocked!
11156
- *
11157
- * @author Vova Feldman (@svovaf)
11158
- * @since 1.1.6 Only show message related to one of the Freemius powered plugins. Once it will be resolved it will fix the issue for all plugins anyways. There's no point to scare users with multiple error messages.
11159
- */
11160
- $api = $this->get_api_site_scope();
11161
-
11162
- if ( ! self::$_global_admin_notices->has_sticky( 'api_blocked' ) ) {
11163
- self::$_global_admin_notices->add(
11164
- sprintf(
11165
- $this->get_text_x_inline( 'Your server is blocking the access to Freemius\' API, which is crucial for %1s synchronization. Please contact your host to whitelist %2s', '%1s - plugin title, %2s - API domain', 'server-blocking-access' ),
11166
- $this->get_plugin_name(),
11167
- '<a href="' . $api->get_url() . '" target="_blank">' . $api->get_url() . '</a>'
11168
- ) . '<br> ' . $this->get_text_inline( 'Error received from the server:', 'server-error-message' ) . var_export( $site->error, true ),
11169
- $this->get_text_x_inline( 'Oops', 'exclamation', 'oops' ) . '...',
11170
- 'error',
11171
- $background,
11172
- false,
11173
- 'api_blocked'
11174
- );
11175
- }
11176
- } else {
11177
- // Authentication params are broken.
11178
- $this->_admin_notices->add(
11179
- $this->get_text_inline( 'It seems like one of the authentication parameters is wrong. Update your Public Key, Secret Key & User ID, and try again.', 'wrong-authentication-param-message' ),
11180
- $this->get_text_x_inline( 'Oops', 'exclamation', 'oops' ) . '...',
11181
- 'error'
11182
- );
11183
- }
11184
- }
11185
-
11186
- // No reason to continue with license sync while there are API issues.
11187
- return;
11188
- }
11189
-
11190
- // Remove sticky API connectivity message.
11191
- self::$_global_admin_notices->remove_sticky( 'api_blocked' );
11192
-
11193
- $site = new FS_Site( $site );
11194
-
11195
- // Sync plans.
11196
- $this->_sync_plans();
11197
-
11198
- if ( ! $this->has_paid_plan() ) {
11199
- $this->_site = $site;
11200
- $this->_enrich_site_plan( true );
11201
- $this->_store_site();
11202
- } else {
11203
- /**
11204
- * Sync licenses. Pass the site's license ID so that the foreign licenses will be fetched if the license
11205
- * associated with that ID is not included in the user's licenses collection.
11206
- */
11207
- $this->_sync_licenses( $site->license_id );
11208
-
11209
- // Check if plan / license changed.
11210
- if ( ! FS_Entity::equals( $site->plan, $this->_site->plan ) ||
11211
- // Check if trial started.
11212
- $site->trial_plan_id != $this->_site->trial_plan_id ||
11213
- $site->trial_ends != $this->_site->trial_ends ||
11214
- // Check if license changed.
11215
- $site->license_id != $this->_site->license_id
11216
- ) {
11217
- if ( $site->is_trial() && ( ! $this->_site->is_trial() || $site->trial_ends != $this->_site->trial_ends ) ) {
11218
- // New trial started.
11219
- $this->_site = $site;
11220
- $plan_change = 'trial_started';
11221
-
11222
- // Store trial plan information.
11223
- $this->_enrich_site_trial_plan( true );
11224
-
11225
- // For trial with subscription use-case.
11226
- $new_license = is_null( $site->license_id ) ? null : $this->_get_license_by_id( $site->license_id );
11227
-
11228
- if ( is_object( $new_license ) && $new_license->is_valid() ) {
11229
- $this->_site = $site;
11230
- $this->_update_site_license( $new_license );
11231
- $this->_store_licenses();
11232
- $this->_enrich_site_plan( true );
11233
-
11234
- $this->_sync_site_subscription( $this->_license );
11235
- }
11236
- } else if ( $this->_site->is_trial() && ! $site->is_trial() && ! is_numeric( $site->license_id ) ) {
11237
- // Was in trial, but now trial expired and no license ID.
11238
- // New trial started.
11239
- $this->_site = $site;
11240
- $plan_change = 'trial_expired';
11241
-
11242
- // Clear trial plan information.
11243
- $this->_storage->trial_plan = null;
11244
-
11245
- } else {
11246
- $is_free = $this->is_free_plan();
11247
-
11248
- // Make sure license exist and not expired.
11249
- $new_license = is_null( $site->license_id ) ?
11250
- null :
11251
- $this->_get_license_by_id( $site->license_id );
11252
-
11253
- if ( $is_free && is_null( $new_license ) && $this->has_any_license() && $this->_license->is_cancelled ) {
11254
- // License cancelled.
11255
- $this->_site = $site;
11256
- $this->_update_site_license( $new_license );
11257
- $this->_store_licenses();
11258
- $this->_enrich_site_plan( true );
11259
-
11260
- $plan_change = 'cancelled';
11261
- } else if ( $is_free && ( ( ! is_object( $new_license ) || $new_license->is_expired() ) ) ) {
11262
- // The license is expired, so ignore upgrade method.
11263
- } else {
11264
- // License changed.
11265
- $this->_site = $site;
11266
- $this->_update_site_license( $new_license );
11267
- $this->_store_licenses();
11268
- $this->_enrich_site_plan( true );
11269
-
11270
- $plan_change = $is_free ?
11271
- 'upgraded' :
11272
- ( is_object( $new_license ) ?
11273
- 'changed' :
11274
- 'downgraded' );
11275
- }
11276
- }
11277
-
11278
- // Store updated site info.
11279
- $this->_store_site();
11280
- } else {
11281
- if ( is_object( $this->_license ) && $this->_license->is_expired() ) {
11282
- if ( ! $this->has_features_enabled_license() ) {
11283
- $this->_deactivate_license();
11284
- $plan_change = 'downgraded';
11285
- } else {
11286
- $plan_change = 'expired';
11287
- }
11288
- }
11289
-
11290
- if ( is_numeric( $site->license_id ) && is_object( $this->_license ) ) {
11291
- $this->_sync_site_subscription( $this->_license );
11292
- }
11293
- }
11294
- }
11295
-
11296
- $hmm_text = $this->get_text_x_inline( 'Hmm', 'something somebody says when they are thinking about what you have just said.', 'hmm' ) . '...';
11297
-
11298
- if ( $this->has_paid_plan() ) {
11299
- switch ( $plan_change ) {
11300
- case 'none':
11301
- if ( ! $background && is_admin() ) {
11302
- $plan = $this->is_trial() ?
11303
- $this->_storage->trial_plan :
11304
- $this->_site->plan;
11305
-
11306
- if ( $plan->is_free() ) {
11307
- $this->_admin_notices->add(
11308
- sprintf(
11309
- $this->get_text_inline( 'It looks like you are still on the %s plan. If you did upgrade or change your plan, it\'s probably an issue on our side - sorry.', 'plan-did-not-change-message' ),
11310
- '<i><b>' . $plan->title . ( $this->is_trial() ? ' ' . $this->get_text_x_inline( 'Trial', 'trial period', 'trial' ) : '' ) . '</b></i>'
11311
- ) . ' ' . sprintf(
11312
- '<a href="%s">%s</a>',
11313
- $this->contact_url(
11314
- 'bug',
11315
- sprintf( $this->get_text_inline( 'I have upgraded my account but when I try to Sync the License, the plan remains %s.', 'plan-did-not-change-email-message' ),
11316
- strtoupper( $plan->name )
11317
- )
11318
- ),
11319
- $this->get_text_inline( 'Please contact us here', 'contact-us-here' )
11320
- ),
11321
- $hmm_text
11322
- );
11323
- }
11324
- }
11325
- break;
11326
- case 'upgraded':
11327
- $this->_admin_notices->add_sticky(
11328
- sprintf(
11329
- $this->get_text_inline( 'Your plan was successfully upgraded.', 'plan-upgraded-message' ),
11330
- '<i>' . $this->get_plugin_name() . '</i>'
11331
- ) . $this->get_complete_upgrade_instructions(),
11332
- 'plan_upgraded',
11333
- $this->get_text_x_inline( 'Yee-haw', 'interjection expressing joy or exuberance', 'yee-haw' ) . '!'
11334
- );
11335
-
11336
- $this->_admin_notices->remove_sticky( array(
11337
- 'trial_started',
11338
- 'trial_promotion',
11339
- 'trial_expired',
11340
- 'activation_complete',
11341
- ) );
11342
- break;
11343
- case 'changed':
11344
- $this->_admin_notices->add_sticky(
11345
- sprintf(
11346
- $this->get_text_inline( 'Your plan was successfully changed to %s.', 'plan-changed-to-x-message' ),
11347
- $this->_site->plan->title
11348
- ),
11349
- 'plan_changed'
11350
- );
11351
-
11352
- $this->_admin_notices->remove_sticky( array(
11353
- 'trial_started',
11354
- 'trial_promotion',
11355
- 'trial_expired',
11356
- 'activation_complete',
11357
- ) );
11358
- break;
11359
- case 'downgraded':
11360
- $this->_admin_notices->add_sticky(
11361
- sprintf( $this->get_text_inline( 'Your license has expired. You can still continue using the free %s forever.', 'license-expired-blocking-message' ), $this->_module_type ),
11362
- 'license_expired',
11363
- $hmm_text
11364
- );
11365
- $this->_admin_notices->remove_sticky( 'plan_upgraded' );
11366
- break;
11367
- case 'cancelled':
11368
- $this->_admin_notices->add(
11369
- $this->get_text_inline( 'Your license has been cancelled. If you think it\'s a mistake, please contact support.', 'license-cancelled' ) . ' ' .
11370
- sprintf(
11371
- '<a href="%s">%s</a>',
11372
- $this->contact_url( 'bug' ),
11373
- $this->get_text_inline( 'Please contact us here', 'contact-us-here' )
11374
- ),
11375
- $hmm_text,
11376
- 'error'
11377
- );
11378
- $this->_admin_notices->remove_sticky( 'plan_upgraded' );
11379
- break;
11380
- case 'expired':
11381
- $this->_admin_notices->add_sticky(
11382
- sprintf( $this->get_text_inline( 'Your license has expired. You can still continue using all the %s features, but you\'ll need to renew your license to continue getting updates and support.', 'license-expired-non-blocking-message' ), $this->_site->plan->title ),
11383
- 'license_expired',
11384
- $hmm_text
11385
- );
11386
- $this->_admin_notices->remove_sticky( 'plan_upgraded' );
11387
- break;
11388
- case 'trial_started':
11389
- $this->_admin_notices->add_sticky(
11390
- sprintf(
11391
- $this->get_text_inline( 'Your trial has been successfully started.', 'trial-started-message' ),
11392
- '<i>' . $this->get_plugin_name() . '</i>'
11393
- ) . $this->get_complete_upgrade_instructions( $this->_storage->trial_plan->title ),
11394
- 'trial_started',
11395
- $this->get_text_x_inline( 'Yee-haw', 'interjection expressing joy or exuberance', 'yee-haw' ) . '!'
11396
- );
11397
-
11398
- $this->_admin_notices->remove_sticky( array(
11399
- 'trial_promotion',
11400
- ) );
11401
- break;
11402
- case 'trial_expired':
11403
- $this->_admin_notices->add_sticky(
11404
- $this->get_text_inline( 'Your trial has expired. You can still continue using all our free features.', 'trial-expired-message' ),
11405
- 'trial_expired',
11406
- $hmm_text
11407
- );
11408
- $this->_admin_notices->remove_sticky( array(
11409
- 'trial_started',
11410
- 'trial_promotion',
11411
- 'plan_upgraded',
11412
- ) );
11413
- break;
11414
- }
11415
- }
11416
-
11417
- if ( 'none' !== $plan_change ) {
11418
- $this->do_action( 'after_license_change', $plan_change, $this->_site->plan );
11419
- }
11420
- }
11421
-
11422
- /**
11423
- * @author Vova Feldman (@svovaf)
11424
- * @since 1.0.5
11425
- *
11426
- * @param bool $background
11427
- */
11428
- protected function _activate_license( $background = false ) {
11429
- $this->_logger->entrance();
11430
-
11431
- $license_id = fs_request_get( 'license_id' );
11432
-
11433
- if ( FS_Plugin_License::is_valid_id( $license_id ) && $license_id == $this->_site->license_id ) {
11434
- // License is already activated.
11435
- return;
11436
- }
11437
-
11438
- $premium_license = FS_Plugin_License::is_valid_id( $license_id ) ?
11439
- $this->_get_license_by_id( $license_id ) :
11440
- $this->_get_available_premium_license();
11441
-
11442
- if ( ! is_object( $premium_license ) ) {
11443
- return;
11444
- }
11445
-
11446
- /**
11447
- * If the premium license is already associated with the install, just
11448
- * update the license reference (activation is not required).
11449
- *
11450
- * @since 1.1.9
11451
- */
11452
- if ( $premium_license->id == $this->_site->license_id ) {
11453
- // License is already activated.
11454
- $this->_update_site_license( $premium_license );
11455
- $this->_enrich_site_plan( false );
11456
- $this->_store_account();
11457
-
11458
- return;
11459
- }
11460
-
11461
- if ( $this->_site->user_id != $premium_license->user_id ) {
11462
- $api_request_params = array( 'license_key' => $premium_license->secret_key );
11463
- } else {
11464
- $api_request_params = array();
11465
- }
11466
-
11467
- $api = $this->get_api_site_scope();
11468
- $license = $api->call( "/licenses/{$premium_license->id}.json", 'put', $api_request_params );
11469
-
11470
- if ( ! $this->is_api_result_entity( $license ) ) {
11471
- if ( ! $background ) {
11472
- $this->_admin_notices->add( sprintf(
11473
- '%s %s',
11474
- $this->get_text_inline( 'It looks like the license could not be activated.', 'license-activation-failed-message' ),
11475
- ( is_object( $license ) && isset( $license->error ) ?
11476
- $license->error->message :
11477
- sprintf( '%s<br><code>%s</code>',
11478
- $this->get_text_inline( 'Error received from the server:', 'server-error-message' ),
11479
- var_export( $license, true )
11480
- )
11481
- )
11482
- ),
11483
- $this->get_text_x_inline( 'Hmm', 'something somebody says when they are thinking about what you have just said.', 'hmm' ) . '...',
11484
- 'error'
11485
- );
11486
- }
11487
-
11488
- return;
11489
- }
11490
- $premium_license = new FS_Plugin_License( $license );
11491
-
11492
- // Updated site plan.
11493
- $site = $this->get_api_site_scope()->get( '/', true );
11494
- if ( $this->is_api_result_entity( $site ) ) {
11495
- $this->_site = new FS_Site( $site );
11496
- }
11497
- $this->_update_site_license( $premium_license );
11498
- $this->_enrich_site_plan( false );
11499
-
11500
- $this->_store_account();
11501
-
11502
- if ( ! $background ) {
11503
- $this->_admin_notices->add_sticky(
11504
- $this->get_text_inline( 'Your license was successfully activated.', 'license-activated-message' ) .
11505
- $this->get_complete_upgrade_instructions(),
11506
- 'license_activated',
11507
- $this->get_text_x_inline( 'Yee-haw', 'interjection expressing joy or exuberance', 'yee-haw' ) . '!'
11508
- );
11509
- }
11510
-
11511
- $this->_admin_notices->remove_sticky( array(
11512
- 'trial_promotion',
11513
- 'license_expired',
11514
- ) );
11515
- }
11516
-
11517
- /**
11518
- * @author Vova Feldman (@svovaf)
11519
- * @since 1.0.5
11520
- *
11521
- * @param bool $show_notice
11522
- */
11523
- protected function _deactivate_license( $show_notice = true ) {
11524
- $this->_logger->entrance();
11525
-
11526
- $hmm_text = $this->get_text_x_inline( 'Hmm', 'something somebody says when they are thinking about what you have just said.', 'hmm' ) . '...';
11527
-
11528
- if ( ! is_object( $this->_license ) ) {
11529
- $this->_admin_notices->add(
11530
- sprintf( $this->get_text_inline( 'It looks like your site currently doesn\'t have an active license.', 'no-active-license-message' ), $this->_site->plan->title ),
11531
- $hmm_text
11532
- );
11533
-
11534
- return;
11535
- }
11536
-
11537
- $api = $this->get_api_site_scope();
11538
- $license = $api->call( "/licenses/{$this->_site->license_id}.json", 'delete' );
11539
-
11540
- if ( isset( $license->error ) ) {
11541
- $this->_admin_notices->add(
11542
- $this->get_text_inline( 'It looks like the license deactivation failed.', 'license-deactivation-failed-message' ) . '<br> ' .
11543
- $this->get_text_inline( 'Error received from the server:', 'server-error-message' ) . ' ' . var_export( $license->error, true ),
11544
- $hmm_text,
11545
- 'error'
11546
- );
11547
-
11548
- return;
11549
- }
11550
-
11551
- // Update license cache.
11552
- for ( $i = 0, $len = count( $this->_licenses ); $i < $len; $i ++ ) {
11553
- if ( $license->id == $this->_licenses[ $i ]->id ) {
11554
- $this->_licenses[ $i ] = new FS_Plugin_License( $license );
11555
- }
11556
- }
11557
-
11558
- // Updated site plan to default.
11559
- $this->_sync_plans();
11560
- $this->_site->plan->id = $this->_plans[0]->id;
11561
- // Unlink license from site.
11562
- $this->_update_site_license( null );
11563
- $this->_enrich_site_plan( false );
11564
-
11565
- $this->_store_account();
11566
-
11567
- if ( $show_notice ) {
11568
- $this->_admin_notices->add(
11569
- sprintf( $this->get_text_inline( 'Your license was successfully deactivated, you are back to the %s plan.', 'license-deactivation-message' ), $this->_site->plan->title ),
11570
- $this->get_text_inline( 'O.K', 'ok' )
11571
- );
11572
- }
11573
-
11574
- $this->_admin_notices->remove_sticky( array(
11575
- 'plan_upgraded',
11576
- 'license_activated',
11577
- ) );
11578
- }
11579
-
11580
- /**
11581
- * Site plan downgrade.
11582
- *
11583
- * @author Vova Feldman (@svovaf)
11584
- * @since 1.0.4
11585
- *
11586
- * @uses FS_Api
11587
- */
11588
- private function _downgrade_site() {
11589
- $this->_logger->entrance();
11590
-
11591
- $api = $this->get_api_site_scope();
11592
- $site = $api->call( 'downgrade.json', 'put' );
11593
-
11594
- $plan_downgraded = false;
11595
- $plan = false;
11596
- if ( $this->is_api_result_entity( $site ) ) {
11597
- $prev_plan_id = $this->_site->plan->id;
11598
-
11599
- // Update new site plan id.
11600
- $this->_site->plan->id = $site->plan_id;
11601
-
11602
- $plan = $this->_enrich_site_plan();
11603
- $subscription = $this->_sync_site_subscription( $this->_license );
11604
-
11605
- // Plan downgraded if plan was changed or subscription was cancelled.
11606
- $plan_downgraded = ( $plan instanceof FS_Plugin_Plan && $prev_plan_id != $plan->id ) ||
11607
- ( is_object( $subscription ) && ! isset( $subscription->error ) && ! $subscription->is_active() );
11608
- } else {
11609
- // handle different error cases.
11610
-
11611
- }
11612
-
11613
- if ( $plan_downgraded ) {
11614
- // Remove previous sticky message about upgrade (if exist).
11615
- $this->_admin_notices->remove_sticky( 'plan_upgraded' );
11616
-
11617
- $this->_admin_notices->add(
11618
- sprintf( $this->get_text_inline( 'Your plan was successfully downgraded. Your %s plan license will expire in %s.', 'plan-x-downgraded-message' ),
11619
- $plan->title,
11620
- human_time_diff( time(), strtotime( $this->_license->expiration ) )
11621
- )
11622
- );
11623
-
11624
- // Store site updates.
11625
- $this->_store_site();
11626
- } else {
11627
- $this->_admin_notices->add(
11628
- $this->get_text_inline( 'Seems like we are having some temporary issue with your plan downgrade. Please try again in few minutes.', 'plan-downgraded-failure-message' ),
11629
- $this->get_text_x_inline( 'Oops', 'exclamation', 'oops' ) . '...',
11630
- 'error'
11631
- );
11632
- }
11633
- }
11634
-
11635
- /**
11636
- * @author Vova Feldman (@svovaf)
11637
- * @since 1.1.8.1
11638
- *
11639
- * @param bool|string $plan_name
11640
- *
11641
- * @return bool If trial was successfully started.
11642
- */
11643
- function start_trial( $plan_name = false ) {
11644
- $this->_logger->entrance();
11645
-
11646
- // Alias.
11647
- $oops_text = $this->get_text_x_inline( 'Oops', 'exclamation', 'oops' ) . '...';
11648
-
11649
- if ( $this->is_trial() ) {
11650
- // Already in trial mode.
11651
- $this->_admin_notices->add(
11652
- sprintf( $this->get_text_inline( 'You are already running the %s in a trial mode.', 'in-trial-mode' ), $this->_module_type ),
11653
- $oops_text,
11654
- 'error'
11655
- );
11656
-
11657
- return false;
11658
- }
11659
-
11660
- if ( $this->_site->is_trial_utilized() ) {
11661
- // Trial was already utilized.
11662
- $this->_admin_notices->add(
11663
- $this->get_text_inline( 'You already utilized a trial before.', 'trial-utilized' ),
11664
- $oops_text,
11665
- 'error'
11666
- );
11667
-
11668
- return false;
11669
- }
11670
-
11671
- if ( false !== $plan_name ) {
11672
- $plan = $this->get_plan_by_name( $plan_name );
11673
-
11674
- if ( false === $plan ) {
11675
- // Plan doesn't exist.
11676
- $this->_admin_notices->add(
11677
- sprintf( $this->get_text_inline( 'Plan %s do not exist, therefore, can\'t start a trial.', 'trial-plan-x-not-exist' ), $plan_name ),
11678
- $oops_text,
11679
- 'error'
11680
- );
11681
-
11682
- return false;
11683
- }
11684
-
11685
- if ( ! $plan->has_trial() ) {
11686
- // Plan doesn't exist.
11687
- $this->_admin_notices->add(
11688
- sprintf( $this->get_text_inline( 'Plan %s does not support a trial period.', 'plan-x-no-trial' ), $plan_name ),
11689
- $oops_text,
11690
- 'error'
11691
- );
11692
-
11693
- return false;
11694
- }
11695
- } else {
11696
- if ( ! $this->has_trial_plan() ) {
11697
- // None of the plans have a trial.
11698
- $this->_admin_notices->add(
11699
- sprintf( $this->get_text_inline( 'None of the %s\'s plans supports a trial period.', 'no-trials' ), $this->_module_type ),
11700
- $oops_text,
11701
- 'error'
11702
- );
11703
-
11704
- return false;
11705
- }
11706
-
11707
- $plans_with_trial = FS_Plan_Manager::instance()->get_trial_plans( $this->_plans );
11708
-
11709
- $plan = $plans_with_trial[0];
11710
- }
11711
-
11712
- $api = $this->get_api_site_scope();
11713
- $plan = $api->call( "plans/{$plan->id}/trials.json", 'post' );
11714
-
11715
- if ( ! $this->is_api_result_entity( $plan ) ) {
11716
- // Some API error while trying to start the trial.
11717
- $this->_admin_notices->add(
11718
- sprintf( $this->get_text_inline( 'Unexpected API error. Please contact the %s\'s author with the following error.', 'unexpected-api-error' ), $this->_module_type )
11719
- . ' ' . var_export( $plan, true ),
11720
- $oops_text,
11721
- 'error'
11722
- );
11723
-
11724
- return false;
11725
- }
11726
-
11727
- // Sync license.
11728
- $this->_sync_license();
11729
-
11730
- return $this->is_trial();
11731
- }
11732
-
11733
- /**
11734
- * Cancel site trial.
11735
- *
11736
- * @author Vova Feldman (@svovaf)
11737
- * @since 1.0.9
11738
- *
11739
- * @uses FS_Api
11740
- */
11741
- private function _cancel_trial() {
11742
- $this->_logger->entrance();
11743
-
11744
- // Alias.
11745
- $oops_text = $this->get_text_x_inline( 'Oops', 'exclamation', 'oops' ) . '...';
11746
-
11747
- if ( ! $this->is_trial() ) {
11748
- $this->_admin_notices->add(
11749
- $this->get_text_inline( 'It looks like you are not in trial mode anymore so there\'s nothing to cancel :)', 'trial-cancel-no-trial-message' ),
11750
- $oops_text,
11751
- 'error'
11752
- );
11753
-
11754
- return;
11755
- }
11756
-
11757
- $api = $this->get_api_site_scope();
11758
- $site = $api->call( 'trials.json', 'delete' );
11759
-
11760
- $trial_cancelled = false;
11761
-
11762
- if ( $this->is_api_result_entity( $site ) ) {
11763
- $prev_trial_ends = $this->_site->trial_ends;
11764
-
11765
- if ( $this->is_paid_trial() ) {
11766
- $this->_license->expiration = $site->trial_ends;
11767
- $this->_license->is_cancelled = true;
11768
- $this->_update_site_license( $this->_license );
11769
- $this->_store_licenses();
11770
-
11771
- // Clear subscription reference.
11772
- $this->_sync_site_subscription( null );
11773
- }
11774
-
11775
- // Update site info.
11776
- $this->_site = new FS_Site( $site );
11777
- $this->_enrich_site_plan();
11778
-
11779
- $trial_cancelled = ( $prev_trial_ends != $site->trial_ends );
11780
- } else {
11781
- // handle different error cases.
11782
-
11783
- }
11784
-
11785
- if ( $trial_cancelled ) {
11786
- // Remove previous sticky messages about upgrade or trial (if exist).
11787
- $this->_admin_notices->remove_sticky( array(
11788
- 'trial_started',
11789
- 'trial_promotion',
11790
- 'plan_upgraded',
11791
- ) );
11792
-
11793
- // Store site updates.
11794
- $this->_store_site();
11795
-
11796
- if ( ! $this->is_addon() ||
11797
- ! $this->deactivate_premium_only_addon_without_license( true )
11798
- ) {
11799
- $this->_admin_notices->add(
11800
- sprintf( $this->get_text_inline( 'Your %s free trial was successfully cancelled.', 'trial-cancel-message' ), $this->_storage->trial_plan->title )
11801
- );
11802
- }
11803
-
11804
- // Clear trial plan information.
11805
- unset( $this->_storage->trial_plan );
11806
- } else {
11807
- $this->_admin_notices->add(
11808
- $this->get_text_inline( 'Seems like we are having some temporary issue with your trial cancellation. Please try again in few minutes.', 'trial-cancel-failure-message' ),
11809
- $oops_text,
11810
- 'error'
11811
- );
11812
- }
11813
- }
11814
-
11815
- /**
11816
- * @author Vova Feldman (@svovaf)
11817
- * @since 1.0.6
11818
- *
11819
- * @param bool|number $plugin_id
11820
- *
11821
- * @return bool
11822
- */
11823
- private function _is_addon_id( $plugin_id ) {
11824
- return is_numeric( $plugin_id ) && ( $this->get_id() != $plugin_id );
11825
- }
11826
-
11827
- /**
11828
- * Check if user eligible to download premium version updates.
11829
- *
11830
- * @author Vova Feldman (@svovaf)
11831
- * @since 1.0.6
11832
- *
11833
- * @return bool
11834
- */
11835
- private function _can_download_premium() {
11836
- return $this->has_active_valid_license() ||
11837
- ( $this->is_trial() && ! $this->get_trial_plan()->is_free() );
11838
- }
11839
-
11840
- /**
11841
- *
11842
- * @author Vova Feldman (@svovaf)
11843
- * @since 1.0.6
11844
- *
11845
- * @param bool|number $addon_id
11846
- * @param string $type "json" or "zip"
11847
- *
11848
- * @return string
11849
- */
11850
- private function _get_latest_version_endpoint( $addon_id = false, $type = 'json' ) {
11851
-
11852
- $is_addon = $this->_is_addon_id( $addon_id );
11853
-
11854
- $is_premium = null;
11855
- if ( ! $is_addon ) {
11856
- $is_premium = $this->_can_download_premium();
11857
- } else if ( $this->is_addon_activated( $addon_id ) ) {
11858
- $is_premium = self::get_instance_by_id( $addon_id )->_can_download_premium();
11859
- }
11860
-
11861
- // If add-on, then append add-on ID.
11862
- $endpoint = ( $is_addon ? "/addons/$addon_id" : '' ) .
11863
- '/updates/latest.' . $type;
11864
-
11865
- // If add-on and not yet activated, try to fetch based on server licensing.
11866
- if ( is_bool( $is_premium ) ) {
11867
- $endpoint = add_query_arg( 'is_premium', json_encode( $is_premium ), $endpoint );
11868
- }
11869
-
11870
- if ( $this->has_secret_key() ) {
11871
- $endpoint = add_query_arg( 'type', 'all', $endpoint );
11872
- }
11873
-
11874
- return $endpoint;
11875
- }
11876
-
11877
- /**
11878
- * @author Vova Feldman (@svovaf)
11879
- * @since 1.0.4
11880
- *
11881
- * @param bool|number $addon_id
11882
- * @param bool $flush Since 1.1.7.3
11883
- * @param int $expiration Since 1.2.2.7
11884
- *
11885
- * @return object|false Plugin latest tag info.
11886
- */
11887
- function _fetch_latest_version( $addon_id = false, $flush = true, $expiration = WP_FS__TIME_24_HOURS_IN_SEC ) {
11888
- $this->_logger->entrance();
11889
-
11890
- /**
11891
- * @since 1.1.7.3 Check for plugin updates from Freemius only if opted-in.
11892
- * @since 1.1.7.4 Also check updates for add-ons.
11893
- */
11894
- if ( ! $this->is_registered() &&
11895
- ! $this->_is_addon_id( $addon_id )
11896
- ) {
11897
- return false;
11898
- }
11899
-
11900
- $tag = $this->get_api_site_or_plugin_scope()->get(
11901
- $this->_get_latest_version_endpoint( $addon_id, 'json' ),
11902
- $flush,
11903
- $expiration
11904
- );
11905
-
11906
- $latest_version = ( is_object( $tag ) && isset( $tag->version ) ) ? $tag->version : 'couldn\'t get';
11907
-
11908
- $this->_logger->departure( 'Latest version ' . $latest_version );
11909
-
11910
- return ( is_object( $tag ) && isset( $tag->version ) ) ? $tag : false;
11911
- }
11912
-
11913
- #----------------------------------------------------------------------------------
11914
- #region Download Plugin
11915
- #----------------------------------------------------------------------------------
11916
-
11917
- /**
11918
- * Download latest plugin version, based on plan.
11919
- *
11920
- * Not like _download_latest(), this will redirect the page
11921
- * to secure download url to prevent dual download (from FS to WP server,
11922
- * and then from WP server to the client / browser).
11923
- *
11924
- * @author Vova Feldman (@svovaf)
11925
- * @since 1.0.9
11926
- *
11927
- * @param bool|number $plugin_id
11928
- *
11929
- * @uses FS_Api
11930
- * @uses wp_redirect()
11931
- */
11932
- private function download_latest_directly( $plugin_id = false ) {
11933
- $this->_logger->entrance();
11934
-
11935
- wp_redirect( $this->get_latest_download_api_url( $plugin_id ) );
11936
- }
11937
-
11938
- /**
11939
- * Get latest plugin FS API download URL.
11940
- *
11941
- * @author Vova Feldman (@svovaf)
11942
- * @since 1.0.9
11943
- *
11944
- * @param bool|number $plugin_id
11945
- *
11946
- * @return string
11947
- */
11948
- private function get_latest_download_api_url( $plugin_id = false ) {
11949
- $this->_logger->entrance();
11950
-
11951
- return $this->get_api_site_scope()->get_signed_url(
11952
- $this->_get_latest_version_endpoint( $plugin_id, 'zip' )
11953
- );
11954
- }
11955
-
11956
- /**
11957
- * Get payment invoice URL.
11958
- *
11959
- * @author Vova Feldman (@svovaf)
11960
- * @since 1.2.0
11961
- *
11962
- * @param bool|number $payment_id
11963
- *
11964
- * @return string
11965
- */
11966
- function _get_invoice_api_url( $payment_id = false ) {
11967
- $this->_logger->entrance();
11968
-
11969
- return $this->get_api_user_scope()->get_signed_url(
11970
- "/payments/{$payment_id}/invoice.pdf"
11971
- );
11972
- }
11973
-
11974
- /**
11975
- * Get latest plugin download link.
11976
- *
11977
- * @author Vova Feldman (@svovaf)
11978
- * @since 1.0.9
11979
- *
11980
- * @param string $label
11981
- * @param bool|number $plugin_id
11982
- *
11983
- * @return string
11984
- */
11985
- private function get_latest_download_link( $label, $plugin_id = false ) {
11986
- return sprintf(
11987
- '<a target="_blank" href="%s">%s</a>',
11988
- $this->_get_latest_download_local_url( $plugin_id ),
11989
- $label
11990
- );
11991
- }
11992
-
11993
- /**
11994
- * Get latest plugin download local URL.
11995
- *
11996
- * @author Vova Feldman (@svovaf)
11997
- * @since 1.0.9
11998
- *
11999
- * @param bool|number $plugin_id
12000
- *
12001
- * @return string
12002
- */
12003
- function _get_latest_download_local_url( $plugin_id = false ) {
12004
- // Add timestamp to protect from caching.
12005
- $params = array( 'ts' => WP_FS__SCRIPT_START_TIME );
12006
-
12007
- if ( ! empty( $plugin_id ) ) {
12008
- $params['plugin_id'] = $plugin_id;
12009
- }
12010
-
12011
- return $this->get_account_url( 'download_latest', $params );
12012
- }
12013
-
12014
- #endregion Download Plugin ------------------------------------------------------------------
12015
-
12016
- /**
12017
- * @author Vova Feldman (@svovaf)
12018
- * @since 1.0.4
12019
- *
12020
- * @uses FS_Api
12021
- *
12022
- * @param bool $background Hints the method if it's a background updates check. If false, it means that
12023
- * was initiated by the admin.
12024
- * @param bool|number $plugin_id
12025
- * @param bool $flush Since 1.1.7.3
12026
- * @param int $expiration Since 1.2.2.7
12027
- */
12028
- private function check_updates(
12029
- $background = false,
12030
- $plugin_id = false,
12031
- $flush = true,
12032
- $expiration = WP_FS__TIME_24_HOURS_IN_SEC
12033
- ) {
12034
- $this->_logger->entrance();
12035
-
12036
- // Check if there's a newer version for download.
12037
- $new_version = $this->_fetch_newer_version( $plugin_id, $flush, $expiration );
12038
-
12039
- $update = null;
12040
- if ( is_object( $new_version ) ) {
12041
- $update = new FS_Plugin_Tag( $new_version );
12042
-
12043
- if ( ! $background ) {
12044
- $this->_admin_notices->add(
12045
- sprintf(
12046
- /* translators: %s: Numeric version number (e.g. '2.1.9' */
12047
- $this->get_text_inline( 'Version %s was released.', 'version-x-released' ) . ' ' . $this->get_text_inline( 'Please download %s.', 'please-download-x' ),
12048
- $update->version,
12049
- sprintf(
12050
- '<a href="%s" target="_blank">%s</a>',
12051
- $this->get_account_url( 'download_latest' ),
12052
- sprintf(
12053
- /* translators: %s: plan name (e.g. latest "Professional" version) */
12054
- $this->get_text_inline( 'the latest %s version here', 'latest-x-version' ),
12055
- $this->_site->plan->title
12056
- )
12057
- )
12058
- ),
12059
- $this->get_text_inline( 'New', 'new' ) . '!'
12060
- );
12061
- }
12062
- } else if ( false === $new_version && ! $background ) {
12063
- $this->_admin_notices->add(
12064
- $this->get_text_inline( 'Seems like you got the latest release.', 'you-have-latest' ),
12065
- $this->get_text_inline( 'You are all good!', 'you-are-good' )
12066
- );
12067
- }
12068
-
12069
- $this->_store_update( $update, true, $plugin_id );
12070
- }
12071
-
12072
- /**
12073
- * @author Vova Feldman (@svovaf)
12074
- * @since 1.0.4
12075
- *
12076
- * @param bool $flush Since 1.1.7.3 add 24 hour cache by default.
12077
- *
12078
- * @return FS_Plugin[]
12079
- *
12080
- * @uses FS_Api
12081
- */
12082
- private function sync_addons( $flush = false ) {
12083
- $this->_logger->entrance();
12084
-
12085
- $api = $this->get_api_site_or_plugin_scope();
12086
-
12087
- /**
12088
- * @since 1.2.1
12089
- *
12090
- * If there's a cached version of the add-ons and not asking
12091
- * for a flush, just use the currently stored add-ons.
12092
- */
12093
- if ( ! $flush && $api->is_cached( '/addons.json?enriched=true' ) ) {
12094
- $addons = self::get_all_addons();
12095
-
12096
- return $addons[ $this->_plugin->id ];
12097
- }
12098
-
12099
- $result = $api->get( '/addons.json?enriched=true', $flush );
12100
-
12101
- $addons = array();
12102
- if ( $this->is_api_result_object( $result, 'plugins' ) &&
12103
- is_array( $result->plugins )
12104
- ) {
12105
- for ( $i = 0, $len = count( $result->plugins ); $i < $len; $i ++ ) {
12106
- $addons[ $i ] = new FS_Plugin( $result->plugins[ $i ] );
12107
- }
12108
-
12109
- $this->_store_addons( $addons, true );
12110
- }
12111
-
12112
- return $addons;
12113
- }
12114
-
12115
- /**
12116
- * Handle user email update.
12117
- *
12118
- * @author Vova Feldman (@svovaf)
12119
- * @since 1.0.3
12120
- * @uses FS_Api
12121
- *
12122
- * @param string $new_email
12123
- *
12124
- * @return object
12125
- */
12126
- private function update_email( $new_email ) {
12127
- $this->_logger->entrance();
12128
-
12129
-
12130
- $api = $this->get_api_user_scope();
12131
- $user = $api->call( "?plugin_id={$this->_plugin->id}&fields=id,email,is_verified", 'put', array(
12132
- 'email' => $new_email,
12133
- 'after_email_confirm_url' => $this->_get_admin_page_url(
12134
- 'account',
12135
- array( 'fs_action' => 'sync_user' )
12136
- ),
12137
- ) );
12138
-
12139
- if ( ! isset( $user->error ) ) {
12140
- $this->_user->email = $user->email;
12141
- $this->_user->is_verified = $user->is_verified;
12142
- $this->_store_user();
12143
- } else {
12144
- // handle different error cases.
12145
-
12146
- }
12147
-
12148
- return $user;
12149
- }
12150
-
12151
- #----------------------------------------------------------------------------------
12152
- #region API Error Handling
12153
- #----------------------------------------------------------------------------------
12154
-
12155
- /**
12156
- * @author Vova Feldman (@svovaf)
12157
- * @since 1.1.1
12158
- *
12159
- * @param mixed $result
12160
- *
12161
- * @return bool Is API result contains an error.
12162
- */
12163
- private function is_api_error( $result ) {
12164
- return FS_Api::is_api_error( $result );
12165
- }
12166
-
12167
- /**
12168
- * Checks if given API result is a non-empty and not an error object.
12169
- *
12170
- * @author Vova Feldman (@svovaf)
12171
- * @since 1.2.1.5
12172
- *
12173
- * @param mixed $result
12174
- * @param string|null $required_property Optional property we want to verify that is set.
12175
- *
12176
- * @return bool
12177
- */
12178
- function is_api_result_object( $result, $required_property = null ) {
12179
- return FS_Api::is_api_result_object( $result, $required_property );
12180
- }
12181
-
12182
- /**
12183
- * Checks if given API result is a non-empty entity object with non-empty ID.
12184
- *
12185
- * @author Vova Feldman (@svovaf)
12186
- * @since 1.2.1.5
12187
- *
12188
- * @param mixed $result
12189
- *
12190
- * @return bool
12191
- */
12192
- private function is_api_result_entity( $result ) {
12193
- return FS_Api::is_api_result_entity( $result );
12194
- }
12195
-
12196
- #endregion
12197
-
12198
- /**
12199
- * Make sure a given argument is an array of a specific type.
12200
- *
12201
- * @author Vova Feldman (@svovaf)
12202
- * @since 1.2.1.5
12203
- *
12204
- * @param mixed $array
12205
- * @param string $class
12206
- *
12207
- * @return bool
12208
- */
12209
- private function is_array_instanceof( $array, $class ) {
12210
- return ( is_array( $array ) && ( empty( $array ) || $array[0] instanceof $class ) );
12211
- }
12212
-
12213
- /**
12214
- * Start install ownership change.
12215
- *
12216
- * @author Vova Feldman (@svovaf)
12217
- * @since 1.1.1
12218
- * @uses FS_Api
12219
- *
12220
- * @param string $candidate_email
12221
- *
12222
- * @return bool Is ownership change successfully initiated.
12223
- */
12224
- private function init_change_owner( $candidate_email ) {
12225
- $this->_logger->entrance();
12226
-
12227
- $api = $this->get_api_site_scope();
12228
- $result = $api->call( "/users/{$this->_user->id}.json", 'put', array(
12229
- 'email' => $candidate_email,
12230
- 'after_confirm_url' => $this->_get_admin_page_url(
12231
- 'account',
12232
- array( 'fs_action' => 'change_owner' )
12233
- ),
12234
- ) );
12235
-
12236
- return ! $this->is_api_error( $result );
12237
- }
12238
-
12239
- /**
12240
- * Handle install ownership change.
12241
- *
12242
- * @author Vova Feldman (@svovaf)
12243
- * @since 1.1.1
12244
- * @uses FS_Api
12245
- *
12246
- * @return bool Was ownership change successfully complete.
12247
- */
12248
- private function complete_change_owner() {
12249
- $this->_logger->entrance();
12250
-
12251
- $site_result = $this->get_api_site_scope( true )->get();
12252
- $site = new FS_Site( $site_result );
12253
- $this->_site = $site;
12254
-
12255
- $user = new FS_User();
12256
- $user->id = fs_request_get( 'user_id' );
12257
-
12258
- // Validate install's user and given user.
12259
- if ( $user->id != $this->_site->user_id ) {
12260
- return false;
12261
- }
12262
-
12263
- $user->public_key = fs_request_get( 'user_public_key' );
12264
- $user->secret_key = fs_request_get( 'user_secret_key' );
12265
-
12266
- // Fetch new user information.
12267
- $this->_user = $user;
12268
- $user_result = $this->get_api_user_scope( true )->get();
12269
- $user = new FS_User( $user_result );
12270
- $this->_user = $user;
12271
-
12272
- $this->_set_account( $user, $site );
12273
-
12274
- return true;
12275
- }
12276
-
12277
- /**
12278
- * Handle user name update.
12279
- *
12280
- * @author Vova Feldman (@svovaf)
12281
- * @since 1.0.9
12282
- * @uses FS_Api
12283
- *
12284
- * @return object
12285
- */
12286
- private function update_user_name() {
12287
- $this->_logger->entrance();
12288
- $name = fs_request_get( 'fs_user_name_' . $this->get_unique_affix(), '' );
12289
-
12290
- $api = $this->get_api_user_scope();
12291
- $user = $api->call( "?plugin_id={$this->_plugin->id}&fields=id,first,last", 'put', array(
12292
- 'name' => $name,
12293
- ) );
12294
-
12295
- if ( ! isset( $user->error ) ) {
12296
- $this->_user->first = $user->first;
12297
- $this->_user->last = $user->last;
12298
- $this->_store_user();
12299
- } else {
12300
- // handle different error cases.
12301
-
12302
- }
12303
-
12304
- return $user;
12305
- }
12306
-
12307
- /**
12308
- * Verify user email.
12309
- *
12310
- * @author Vova Feldman (@svovaf)
12311
- * @since 1.0.3
12312
- * @uses FS_Api
12313
- */
12314
- private function verify_email() {
12315
- $this->_handle_account_user_sync();
12316
-
12317
- if ( $this->_user->is_verified() ) {
12318
- return;
12319
- }
12320
-
12321
- $api = $this->get_api_site_scope();
12322
- $result = $api->call( "/users/{$this->_user->id}/verify.json", 'put', array(
12323
- 'after_email_confirm_url' => $this->_get_admin_page_url(
12324
- 'account',
12325
- array( 'fs_action' => 'sync_user' )
12326
- )
12327
- ) );
12328
-
12329
- if ( ! isset( $result->error ) ) {
12330
- $this->_admin_notices->add( sprintf(
12331
- $this->get_text_inline( 'Verification mail was just sent to %s. If you can\'t find it after 5 min, please check your spam box.', 'verification-email-sent-message' ),
12332
- sprintf( '<a href="mailto:%1s">%2s</a>', esc_url( $this->_user->email ), $this->_user->email )
12333
- ) );
12334
- } else {
12335
- // handle different error cases.
12336
-
12337
- }
12338
- }
12339
-
12340
- /**
12341
- * @author Vova Feldman (@svovaf)
12342
- * @since 1.1.2
12343
- *
12344
- * @param array $params
12345
- *
12346
- * @return string
12347
- */
12348
- function get_activation_url( $params = array() ) {
12349
- if ( $this->is_addon() && $this->has_free_plan() ) {
12350
- /**
12351
- * @author Vova Feldman (@svovaf)
12352
- * @since 1.2.1.7 Add-on's activation is the parent's module activation.
12353
- */
12354
- return $this->get_parent_instance()->get_activation_url( $params );
12355
- }
12356
-
12357
- return $this->apply_filters( 'connect_url', $this->_get_admin_page_url( '', $params ) );
12358
- }
12359
-
12360
- /**
12361
- * @author Vova Feldman (@svovaf)
12362
- * @since 1.2.1.5
12363
- *
12364
- * @param array $params
12365
- *
12366
- * @return string
12367
- */
12368
- function get_reconnect_url( $params = array() ) {
12369
- $params['fs_action'] = 'reset_anonymous_mode';
12370
- $params['fs_unique_affix'] = $this->get_unique_affix();
12371
-
12372
- return $this->get_activation_url( $params );
12373
- }
12374
-
12375
- /**
12376
- * Get the URL of the page that should be loaded after the user connect
12377
- * or skip in the opt-in screen.
12378
- *
12379
- * @author Vova Feldman (@svovaf)
12380
- * @since 1.1.3
12381
- *
12382
- * @param string $filter Filter name.
12383
- * @param array $params Since 1.2.2.7
12384
- *
12385
- * @return string
12386
- */
12387
- function get_after_activation_url( $filter, $params = array() ) {
12388
- if ( $this->is_free_wp_org_theme() &&
12389
- fs_request_has( 'pending_activation' )
12390
- ) {
12391
- $first_time_path = '';
12392
- } else {
12393
- $first_time_path = $this->_menu->get_first_time_path();
12394
- }
12395
-
12396
- return add_query_arg( $params, $this->apply_filters(
12397
- $filter,
12398
- empty( $first_time_path ) ?
12399
- $this->_get_admin_page_url() :
12400
- $first_time_path
12401
- ) );
12402
- }
12403
-
12404
- /**
12405
- * Handle account page updates / edits / actions.
12406
- *
12407
- * @author Vova Feldman (@svovaf)
12408
- * @since 1.0.2
12409
- *
12410
- */
12411
- private function _handle_account_edits() {
12412
- if ( ! $this->is_user_admin() ) {
12413
- return;
12414
- }
12415
-
12416
- $plugin_id = fs_request_get( 'plugin_id', $this->get_id() );
12417
- $action = fs_get_action();
12418
-
12419
- // Alias.
12420
- $oops_text = $this->get_text_x_inline( 'Oops', 'exclamation', 'oops' ) . '...';
12421
-
12422
- switch ( $action ) {
12423
- case 'delete_account':
12424
- check_admin_referer( $action );
12425
-
12426
- if ( $plugin_id == $this->get_id() ) {
12427
- $this->delete_account_event();
12428
-
12429
- // Clear user and site.
12430
- $this->_site = null;
12431
- $this->_user = null;
12432
-
12433
- fs_redirect( $this->get_activation_url() );
12434
- } else {
12435
- if ( $this->is_addon_activated( $plugin_id ) ) {
12436
- $fs_addon = self::get_instance_by_id( $plugin_id );
12437
- $fs_addon->delete_account_event();
12438
-
12439
- fs_redirect( $this->_get_admin_page_url( 'account' ) );
12440
- }
12441
- }
12442
-
12443
- return;
12444
-
12445
- case 'downgrade_account':
12446
- check_admin_referer( $action );
12447
-
12448
- if ( $plugin_id == $this->get_id() ) {
12449
- $this->_downgrade_site();
12450
- } else if ( $this->is_addon_activated( $plugin_id ) ) {
12451
- $fs_addon = self::get_instance_by_id( $plugin_id );
12452
- $fs_addon->_downgrade_site();
12453
- }
12454
-
12455
- return;
12456
-
12457
- case 'activate_license':
12458
- check_admin_referer( $action );
12459
-
12460
- if ( $plugin_id == $this->get_id() ) {
12461
- $this->_activate_license();
12462
- } else {
12463
- if ( $this->is_addon_activated( $plugin_id ) ) {
12464
- $fs_addon = self::get_instance_by_id( $plugin_id );
12465
- $fs_addon->_activate_license();
12466
- }
12467
- }
12468
-
12469
- return;
12470
-
12471
- case 'deactivate_license':
12472
- check_admin_referer( $action );
12473
-
12474
- if ( $plugin_id == $this->get_id() ) {
12475
- $this->_deactivate_license();
12476
-
12477
- if ( $this->is_only_premium() ) {
12478
- // Clear user and site.
12479
- $this->_site = null;
12480
- $this->_user = null;
12481
-
12482
- fs_redirect( $this->get_activation_url() );
12483
- }
12484
- } else {
12485
- if ( $this->is_addon_activated( $plugin_id ) ) {
12486
- $fs_addon = self::get_instance_by_id( $plugin_id );
12487
- $fs_addon->_deactivate_license();
12488
- }
12489
- }
12490
-
12491
- return;
12492
-
12493
- case 'check_updates':
12494
- check_admin_referer( $action );
12495
- $this->check_updates();
12496
-
12497
- return;
12498
-
12499
- case 'change_owner':
12500
- $state = fs_request_get( 'state', 'init' );
12501
- switch ( $state ) {
12502
- case 'init':
12503
- $candidate_email = fs_request_get( 'candidate_email', '' );
12504
-
12505
- if ( $this->init_change_owner( $candidate_email ) ) {
12506
- $this->_admin_notices->add( sprintf( $this->get_text_inline( 'Please check your mailbox, you should receive an email via %s to confirm the ownership change. From security reasons, you must confirm the change within the next 15 min. If you cannot find the email, please check your spam folder.', 'change-owner-request-sent-x' ), '<b>' . $this->_user->email . '</b>' ) );
12507
- }
12508
- break;
12509
- case 'owner_confirmed':
12510
- $candidate_email = fs_request_get( 'candidate_email', '' );
12511
-
12512
- $this->_admin_notices->add( sprintf( $this->get_text_inline( 'Thanks for confirming the ownership change. An email was just sent to %s for final approval.', 'change-owner-request_owner-confirmed' ), '<b>' . $candidate_email . '</b>' ) );
12513
- break;
12514
- case 'candidate_confirmed':
12515
- if ( $this->complete_change_owner() ) {
12516
- $this->_admin_notices->add_sticky(
12517
- sprintf( $this->get_text_inline( '%s is the new owner of the account.', 'change-owner-request_candidate-confirmed' ), '<b>' . $this->_user->email . '</b>' ),
12518
- 'ownership_changed',
12519
- $this->get_text_x_inline( 'Congrats', 'as congratulations', 'congrats' ) . '!'
12520
- );
12521
- } else {
12522
- // @todo Handle failed ownership change message.
12523
- }
12524
- break;
12525
- }
12526
-
12527
- return;
12528
-
12529
- case 'update_email':
12530
- check_admin_referer( 'update_email' );
12531
-
12532
- $new_email = fs_request_get( 'fs_email_' . $this->get_unique_affix(), '' );
12533
- $result = $this->update_email( $new_email );
12534
-
12535
- if ( isset( $result->error ) ) {
12536
- switch ( $result->error->code ) {
12537
- case 'user_exist':
12538
- $this->_admin_notices->add(
12539
- $this->get_text_inline( 'Sorry, we could not complete the email update. Another user with the same email is already registered.', 'user-exist-message' ) . ' ' .
12540
- sprintf( $this->get_text_inline( 'If you would like to give up the ownership of the %s\'s account to %s click the Change Ownership button.', 'user-exist-message_ownership' ), $this->_module_type, '<b>' . $new_email . '</b>' ) .
12541
- sprintf(
12542
- '<a style="margin-left: 10px;" href="%s"><button class="button button-primary">%s &nbsp;&#10140;</button></a>',
12543
- $this->get_account_url( 'change_owner', array(
12544
- 'state' => 'init',
12545
- 'candidate_email' => $new_email
12546
- ) ),
12547
- $this->get_text_inline( 'Change Ownership', 'change-ownership' )
12548
- ),
12549
- $oops_text,
12550
- 'error'
12551
- );
12552
- break;
12553
- }
12554
- } else {
12555
- $this->_admin_notices->add( $this->get_text_inline( 'Your email was successfully updated. You should receive an email with confirmation instructions in few moments.', 'email-updated-message' ) );
12556
- }
12557
-
12558
- return;
12559
-
12560
- case 'update_user_name':
12561
- check_admin_referer( 'update_user_name' );
12562
-
12563
- $result = $this->update_user_name();
12564
-
12565
- if ( isset( $result->error ) ) {
12566
- $this->_admin_notices->add(
12567
- $this->get_text_inline( 'Please provide your full name.', 'name-update-failed-message' ),
12568
- $oops_text,
12569
- 'error'
12570
- );
12571
- } else {
12572
- $this->_admin_notices->add( $this->get_text_inline( 'Your name was successfully updated.', 'name-updated-message' ) );
12573
- }
12574
-
12575
- return;
12576
-
12577
- #region Actions that might be called from external links (e.g. email)
12578
-
12579
- case 'cancel_trial':
12580
- if ( $plugin_id == $this->get_id() ) {
12581
- $this->_cancel_trial();
12582
- } else {
12583
- if ( $this->is_addon_activated( $plugin_id ) ) {
12584
- $fs_addon = self::get_instance_by_id( $plugin_id );
12585
- $fs_addon->_cancel_trial();
12586
- }
12587
- }
12588
-
12589
- return;
12590
-
12591
- case 'verify_email':
12592
- $this->verify_email();
12593
-
12594
- return;
12595
-
12596
- case 'sync_user':
12597
- $this->_handle_account_user_sync();
12598
-
12599
- return;
12600
-
12601
- case $this->get_unique_affix() . '_sync_license':
12602
- $this->_sync_license();
12603
-
12604
- return;
12605
-
12606
- case 'download_latest':
12607
- $this->download_latest_directly( $plugin_id );
12608
-
12609
- return;
12610
-
12611
- #endregion
12612
- }
12613
-
12614
- if ( WP_FS__IS_POST_REQUEST ) {
12615
- $properties = array( 'site_secret_key', 'site_id', 'site_public_key' );
12616
- foreach ( $properties as $p ) {
12617
- if ( 'update_' . $p === $action ) {
12618
- check_admin_referer( $action );
12619
-
12620
- $this->_logger->log( $action );
12621
-
12622
- $site_property = substr( $p, strlen( 'site_' ) );
12623
- $site_property_value = fs_request_get( 'fs_' . $p . '_' . $this->get_unique_affix(), '' );
12624
- $this->get_site()->{$site_property} = $site_property_value;
12625
-
12626
- // Store account after modification.
12627
- $this->_store_site();
12628
-
12629
- $this->do_action( 'account_property_edit', 'site', $site_property, $site_property_value );
12630
-
12631
- $this->_admin_notices->add( sprintf(
12632
- /* translators: %s: User's account property (e.g. email address, name) */
12633
- $this->get_text_inline( 'You have successfully updated your %s.', 'x-updated' ),
12634
- '<b>' . str_replace( '_', ' ', $p ) . '</b>'
12635
- ) );
12636
-
12637
- return;
12638
- }
12639
- }
12640
- }
12641
- }
12642
-
12643
- /**
12644
- * Account page resources load.
12645
- *
12646
- * @author Vova Feldman (@svovaf)
12647
- * @since 1.0.6
12648
- */
12649
- function _account_page_load() {
12650
- $this->_logger->entrance();
12651
-
12652
- $this->_logger->info( var_export( $_REQUEST, true ) );
12653
-
12654
- fs_enqueue_local_style( 'fs_account', '/admin/account.css' );
12655
-
12656
- if ( $this->has_addons() ) {
12657
- wp_enqueue_script( 'plugin-install' );
12658
- add_thickbox();
12659
-
12660
- function fs_addons_body_class( $classes ) {
12661
- $classes .= ' plugins-php';
12662
-
12663
- return $classes;
12664
- }
12665
-
12666
- add_filter( 'admin_body_class', 'fs_addons_body_class' );
12667
- }
12668
-
12669
- if ( $this->has_paid_plan() &&
12670
- ! $this->has_any_license() &&
12671
- ! $this->is_sync_executed() &&
12672
- $this->is_tracking_allowed()
12673
- ) {
12674
- /**
12675
- * If no licenses found and no sync job was executed during the last 24 hours,
12676
- * just execute the sync job right away (blocking execution).
12677
- *
12678
- * @since 1.1.7.3
12679
- */
12680
- $this->run_manual_sync();
12681
- }
12682
-
12683
- $this->_handle_account_edits();
12684
-
12685
- $this->do_action( 'account_page_load_before_departure' );
12686
- }
12687
-
12688
- /**
12689
- * Renders the "Affiliation" page.
12690
- *
12691
- * @author Leo Fajardo (@leorw)
12692
- * @since 1.2.3
12693
- */
12694
- function _affiliation_page_render() {
12695
- $this->_logger->entrance();
12696
-
12697
- $this->fetch_affiliate_and_terms();
12698
-
12699
- fs_enqueue_local_style( 'fs_affiliation', '/admin/affiliation.css' );
12700
-
12701
- $vars = array( 'id' => $this->_module_id );
12702
- echo $this->apply_filters( "/forms/affiliation.php", fs_get_template( '/forms/affiliation.php', $vars ) );
12703
- }
12704
-
12705
-
12706
- /**
12707
- * Render account page.
12708
- *
12709
- * @author Vova Feldman (@svovaf)
12710
- * @since 1.0.0
12711
- */
12712
- function _account_page_render() {
12713
- $this->_logger->entrance();
12714
-
12715
- $template = 'account.php';
12716
- $vars = array( 'id' => $this->_module_id );
12717
-
12718
- /**
12719
- * Added filter to the template to allow developers wrapping the template
12720
- * in custom HTML (e.g. within a wizard/tabs).
12721
- *
12722
- * @author Vova Feldman (@svovaf)
12723
- * @since 1.2.1.6
12724
- */
12725
- echo $this->apply_filters( "templates/{$template}", fs_get_template( $template, $vars ) );
12726
- }
12727
-
12728
- /**
12729
- * Render account connect page.
12730
- *
12731
- * @author Vova Feldman (@svovaf)
12732
- * @since 1.0.7
12733
- */
12734
- function _connect_page_render() {
12735
- $this->_logger->entrance();
12736
-
12737
- $vars = array( 'id' => $this->_module_id );
12738
-
12739
- /**
12740
- * Added filter to the template to allow developers wrapping the template
12741
- * in custom HTML (e.g. within a wizard/tabs).
12742
- *
12743
- * @author Vova Feldman (@svovaf)
12744
- * @since 1.2.1.6
12745
- */
12746
- echo $this->apply_filters( 'templates/connect.php', fs_get_template( 'connect.php', $vars ) );
12747
- }
12748
-
12749
- /**
12750
- * Load required resources before add-ons page render.
12751
- *
12752
- * @author Vova Feldman (@svovaf)
12753
- * @since 1.0.6
12754
- */
12755
- function _addons_page_load() {
12756
- $this->_logger->entrance();
12757
-
12758
- fs_enqueue_local_style( 'fs_addons', '/admin/add-ons.css' );
12759
-
12760
- wp_enqueue_script( 'plugin-install' );
12761
- add_thickbox();
12762
-
12763
- function fs_addons_body_class( $classes ) {
12764
- $classes .= ' plugins-php';
12765
-
12766
- return $classes;
12767
- }
12768
-
12769
- add_filter( 'admin_body_class', 'fs_addons_body_class' );
12770
-
12771
- if ( ! $this->is_registered() && $this->is_org_repo_compliant() ) {
12772
- $this->_admin_notices->add(
12773
- sprintf( $this->get_text_inline( 'Just letting you know that the add-ons information of %s is being pulled from an external server.', 'addons-info-external-message' ), '<b>' . $this->get_plugin_name() . '</b>' ),
12774
- $this->get_text_x_inline( 'Heads up', 'advance notice of something that will need attention.', 'heads-up' ),
12775
- 'update-nag'
12776
- );
12777
- }
12778
- }
12779
-
12780
- /**
12781
- * Render add-ons page.
12782
- *
12783
- * @author Vova Feldman (@svovaf)
12784
- * @since 1.0.6
12785
- */
12786
- function _addons_page_render() {
12787
- $this->_logger->entrance();
12788
-
12789
- $vars = array( 'id' => $this->_module_id );
12790
-
12791
- /**
12792
- * Added filter to the template to allow developers wrapping the template
12793
- * in custom HTML (e.g. within a wizard/tabs).
12794
- *
12795
- * @author Vova Feldman (@svovaf)
12796
- * @since 1.2.1.6
12797
- */
12798
- echo $this->apply_filters( 'templates/add-ons.php', fs_get_template( 'add-ons.php', $vars ) );
12799
- }
12800
-
12801
- /* Pricing & Upgrade
12802
- ------------------------------------------------------------------------------------------------------------------*/
12803
- /**
12804
- * Render pricing page.
12805
- *
12806
- * @author Vova Feldman (@svovaf)
12807
- * @since 1.0.0
12808
- */
12809
- function _pricing_page_render() {
12810
- $this->_logger->entrance();
12811
-
12812
- $vars = array( 'id' => $this->_module_id );
12813
-
12814
- if ( 'true' === fs_request_get( 'checkout', false ) ) {
12815
- fs_require_once_template( 'checkout.php', $vars );
12816
- } else {
12817
- fs_require_once_template( 'pricing.php', $vars );
12818
- }
12819
- }
12820
-
12821
- #----------------------------------------------------------------------------------
12822
- #region Contact Us
12823
- #----------------------------------------------------------------------------------
12824
-
12825
- /**
12826
- * Render contact-us page.
12827
- *
12828
- * @author Vova Feldman (@svovaf)
12829
- * @since 1.0.3
12830
- */
12831
- function _contact_page_render() {
12832
- $this->_logger->entrance();
12833
-
12834
- $vars = array( 'id' => $this->_module_id );
12835
- fs_require_once_template( 'contact.php', $vars );
12836
- }
12837
-
12838
- #endregion ------------------------------------------------------------------------
12839
-
12840
- /**
12841
- * Hide all admin notices to prevent distractions.
12842
- *
12843
- * @author Vova Feldman (@svovaf)
12844
- * @since 1.0.3
12845
- *
12846
- * @uses remove_all_actions()
12847
- */
12848
- private static function _hide_admin_notices() {
12849
- remove_all_actions( 'admin_notices' );
12850
- remove_all_actions( 'network_admin_notices' );
12851
- remove_all_actions( 'all_admin_notices' );
12852
- remove_all_actions( 'user_admin_notices' );
12853
- }
12854
-
12855
- static function _clean_admin_content_section_hook() {
12856
- self::_hide_admin_notices();
12857
-
12858
- // Hide footer.
12859
- echo '<style>#wpfooter { display: none !important; }</style>';
12860
- }
12861
-
12862
- /**
12863
- * Attach to admin_head hook to hide all admin notices.
12864
- *
12865
- * @author Vova Feldman (@svovaf)
12866
- * @since 1.0.3
12867
- */
12868
- static function _clean_admin_content_section() {
12869
- add_action( 'admin_head', 'Freemius::_clean_admin_content_section_hook' );
12870
- }
12871
-
12872
- /* CSS & JavaScript
12873
- ------------------------------------------------------------------------------------------------------------------*/
12874
- /* function _enqueue_script($handle, $src) {
12875
- $url = plugins_url( substr( WP_FS__DIR_JS, strlen( $this->_plugin_dir_path ) ) . '/assets/js/' . $src );
12876
-
12877
- $this->_logger->entrance( 'script = ' . $url );
12878
-
12879
- wp_enqueue_script( $handle, $url );
12880
- }*/
12881
-
12882
- /* SDK
12883
- ------------------------------------------------------------------------------------------------------------------*/
12884
- private $_user_api;
12885
-
12886
- /**
12887
- *
12888
- * @author Vova Feldman (@svovaf)
12889
- * @since 1.0.2
12890
- *
12891
- * @param bool $flush
12892
- *
12893
- * @return FS_Api
12894
- */
12895
- function get_api_user_scope( $flush = false ) {
12896
- if ( ! isset( $this->_user_api ) || $flush ) {
12897
- $this->_user_api = FS_Api::instance(
12898
- $this->_module_id,
12899
- 'user',
12900
- $this->_user->id,
12901
- $this->_user->public_key,
12902
- ! $this->is_live(),
12903
- $this->_user->secret_key
12904
- );
12905
- }
12906
-
12907
- return $this->_user_api;
12908
- }
12909
-
12910
- private $_site_api;
12911
-
12912
- /**
12913
- *
12914
- * @author Vova Feldman (@svovaf)
12915
- * @since 1.0.2
12916
- *
12917
- * @param bool $flush
12918
- *
12919
- * @return FS_Api
12920
- */
12921
- function get_api_site_scope( $flush = false ) {
12922
- if ( ! isset( $this->_site_api ) || $flush ) {
12923
- $this->_site_api = FS_Api::instance(
12924
- $this->_module_id,
12925
- 'install',
12926
- $this->_site->id,
12927
- $this->_site->public_key,
12928
- ! $this->is_live(),
12929
- $this->_site->secret_key
12930
- );
12931
- }
12932
-
12933
- return $this->_site_api;
12934
- }
12935
-
12936
- private $_plugin_api;
12937
-
12938
- /**
12939
- * Get plugin public API scope.
12940
- *
12941
- * @author Vova Feldman (@svovaf)
12942
- * @since 1.0.7
12943
- *
12944
- * @return FS_Api
12945
- */
12946
- function get_api_plugin_scope() {
12947
- if ( ! isset( $this->_plugin_api ) ) {
12948
- $this->_plugin_api = FS_Api::instance(
12949
- $this->_module_id,
12950
- 'plugin',
12951
- $this->_plugin->id,
12952
- $this->_plugin->public_key,
12953
- ! $this->is_live()
12954
- );
12955
- }
12956
-
12957
- return $this->_plugin_api;
12958
- }
12959
-
12960
- /**
12961
- * Get site API scope object (fallback to public plugin scope when not registered).
12962
- *
12963
- * @author Vova Feldman (@svovaf)
12964
- * @since 1.0.7
12965
- *
12966
- * @return FS_Api
12967
- */
12968
- function get_api_site_or_plugin_scope() {
12969
- return $this->is_registered() ?
12970
- $this->get_api_site_scope() :
12971
- $this->get_api_plugin_scope();
12972
- }
12973
-
12974
- /**
12975
- * Show trial promotional notice (if any trial exist).
12976
- *
12977
- * @author Vova Feldman (@svovaf)
12978
- * @since 1.0.9
12979
- *
12980
- * @param $plans
12981
- */
12982
- function _check_for_trial_plans( $plans ) {
12983
- $this->_storage->has_trial_plan = FS_Plan_Manager::instance()->has_trial_plan( $plans );
12984
- }
12985
-
12986
- /**
12987
- * During trial promotion the "upgrade" submenu item turns to
12988
- * "start trial" to encourage the trial. Since we want to keep
12989
- * the same menu item handler and there's no robust way to
12990
- * add new arguments to the menu item link's querystring,
12991
- * use JavaScript to find the menu item and update the href of
12992
- * the link.
12993
- *
12994
- * @author Vova Feldman (@svovaf)
12995
- * @since 1.2.1.5
12996
- */
12997
- function _fix_start_trial_menu_item_url() {
12998
- $template_args = array( 'id' => $this->_module_id );
12999
- fs_require_template( 'add-trial-to-pricing.php', $template_args );
13000
- }
13001
-
13002
- /**
13003
- * Check if module is currently in a trial promotion mode.
13004
- *
13005
- * @author Vova Feldman (@svovaf)
13006
- * @since 1.2.2.7
13007
- *
13008
- * @return bool
13009
- */
13010
- function is_in_trial_promotion() {
13011
- return $this->_admin_notices->has_sticky( 'trial_promotion' );
13012
- }
13013
-
13014
- /**
13015
- * Show trial promotional notice (if any trial exist).
13016
- *
13017
- * @author Vova Feldman (@svovaf)
13018
- * @since 1.0.9
13019
- *
13020
- * @return bool If trial notice added.
13021
- */
13022
- function _add_trial_notice() {
13023
- if ( ! $this->is_user_admin() ) {
13024
- return false;
13025
- }
13026
-
13027
- if ( ! $this->is_user_in_admin() ) {
13028
- return false;
13029
- }
13030
-
13031
- // Check if trial message is already shown.
13032
- if ( $this->is_in_trial_promotion() ) {
13033
- add_action( 'admin_footer', array( &$this, '_fix_start_trial_menu_item_url' ) );
13034
-
13035
- $this->_menu->add_counter_to_menu_item( 1, 'fs-trial' );
13036
-
13037
- return false;
13038
- }
13039
-
13040
- if ( $this->is_premium() && ! WP_FS__DEV_MODE ) {
13041
- // Don't show trial if running the premium code, unless running in DEV mode.
13042
- return false;
13043
- }
13044
-
13045
- if ( ! $this->has_trial_plan() ) {
13046
- // No plans with trial.
13047
- return false;
13048
- }
13049
-
13050
- if ( ! $this->apply_filters( 'show_trial', true ) ) {
13051
- // Developer explicitly asked not to show the trial promo.
13052
- return false;
13053
- }
13054
-
13055
- if ( $this->is_registered() ) {
13056
- // Check if trial already utilized.
13057
- if ( $this->_site->is_trial_utilized() ) {
13058
- return false;
13059
- }
13060
-
13061
- if ( $this->is_paying_or_trial() ) {
13062
- // Don't show trial if paying or already in trial.
13063
- return false;
13064
- }
13065
- }
13066
-
13067
- if ( $this->is_activation_mode() || $this->is_pending_activation() ) {
13068
- // If not yet opted-in/skipped, or pending activation, don't show trial.
13069
- return false;
13070
- }
13071
-
13072
- $last_time_trial_promotion_shown = $this->_storage->get( 'trial_promotion_shown', false );
13073
- $was_promotion_shown_before = ( false !== $last_time_trial_promotion_shown );
13074
-
13075
- // Show promotion if never shown before and 24 hours after initial activation with FS.
13076
- if ( ! $was_promotion_shown_before &&
13077
- $this->_storage->install_timestamp > ( time() - WP_FS__TIME_24_HOURS_IN_SEC )
13078
- ) {
13079
- return false;
13080
- }
13081
-
13082
- // OR if promotion was shown before, try showing it every 30 days.
13083
- if ( $was_promotion_shown_before &&
13084
- 30 * WP_FS__TIME_24_HOURS_IN_SEC > time() - $last_time_trial_promotion_shown
13085
- ) {
13086
- return false;
13087
- }
13088
-
13089
- $trial_period = $this->_trial_days;
13090
- $require_payment = $this->_is_trial_require_payment;
13091
- $trial_url = $this->get_trial_url();
13092
- $plans_string = strtolower( $this->get_text_inline( 'Awesome', 'awesome' ) );
13093
-
13094
- if ( $this->is_registered() ) {
13095
- // If opted-in, override trial with up to date data from API.
13096
- $trial_plans = FS_Plan_Manager::instance()->get_trial_plans( $this->_plans );
13097
- $trial_plans_count = count( $trial_plans );
13098
-
13099
- if ( 0 === $trial_plans_count ) {
13100
- // If there's no plans with a trial just exit.
13101
- return false;
13102
- }
13103
-
13104
- /**
13105
- * @var FS_Plugin_Plan $paid_plan
13106
- */
13107
- $paid_plan = $trial_plans[0];
13108
- $require_payment = $paid_plan->is_require_subscription;
13109
- $trial_period = $paid_plan->trial_period;
13110
-
13111
- $total_paid_plans = count( $this->_plans ) - ( FS_Plan_Manager::instance()->has_free_plan( $this->_plans ) ? 1 : 0 );
13112
-
13113
- if ( $total_paid_plans !== $trial_plans_count ) {
13114
- // Not all paid plans have a trial - generate a string of those that have it.
13115
- for ( $i = 0; $i < $trial_plans_count; $i ++ ) {
13116
- $plans_string .= sprintf(
13117
- ' <a href="%s">%s</a>',
13118
- $trial_url,
13119
- $trial_plans[ $i ]->title
13120
- );
13121
-
13122
- if ( $i < $trial_plans_count - 2 ) {
13123
- $plans_string .= ', ';
13124
- } else if ( $i == $trial_plans_count - 2 ) {
13125
- $plans_string .= ' and ';
13126
- }
13127
- }
13128
- }
13129
- }
13130
-
13131
- $message = sprintf(
13132
- $this->get_text_x_inline( 'Hey', 'exclamation', 'hey' ) . '! ' . $this->get_text_inline( 'How do you like %s so far? Test all our %s premium features with a %d-day free trial.', 'trial-x-promotion-message' ),
13133
- sprintf( '<b>%s</b>', $this->get_plugin_name() ),
13134
- $plans_string,
13135
- $trial_period
13136
- );
13137
-
13138
- // "No Credit-Card Required" or "No Commitment for N Days".
13139
- $cc_string = $require_payment ?
13140
- sprintf( $this->get_text_inline( 'No commitment for %s days - cancel anytime!', 'no-commitment-for-x-days' ), $trial_period ) :
13141
- $this->get_text_inline( 'No credit card required', 'no-cc-required' ) . '!';
13142
-
13143
-
13144
- // Start trial button.
13145
- $button = ' ' . sprintf(
13146
- '<a style="margin-left: 10px; vertical-align: super;" href="%s"><button class="button button-primary">%s &nbsp;&#10140;</button></a>',
13147
- $trial_url,
13148
- $this->get_text_x_inline( 'Start free trial', 'call to action', 'start-free-trial' )
13149
- );
13150
-
13151
- $this->_admin_notices->add_sticky(
13152
- $this->apply_filters( 'trial_promotion_message', "{$message} {$cc_string} {$button}" ),
13153
- 'trial_promotion',
13154
- '',
13155
- 'promotion'
13156
- );
13157
-
13158
- $this->_storage->trial_promotion_shown = WP_FS__SCRIPT_START_TIME;
13159
-
13160
- return true;
13161
- }
13162
-
13163
- /**
13164
- * Lets users/customers know that the product has an affiliate program.
13165
- *
13166
- * @author Leo Fajardo (@leorw)
13167
- * @since 1.2.2.11
13168
- *
13169
- * @return bool Returns true if the notice has been added.
13170
- */
13171
- function _add_affiliate_program_notice() {
13172
- if ( ! $this->is_user_admin() ) {
13173
- return false;
13174
- }
13175
-
13176
- if ( ! $this->is_user_in_admin() ) {
13177
- return false;
13178
- }
13179
-
13180
- // Check if the notice is already shown.
13181
- if ( $this->_admin_notices->has_sticky( 'affiliate_program' ) ) {
13182
- return false;
13183
- }
13184
-
13185
- if (
13186
- // Product has no affiliate program.
13187
- ! $this->has_affiliate_program() ||
13188
- // User has applied for an affiliate account.
13189
- ! empty( $this->_storage->affiliate_application_data ) ) {
13190
- return false;
13191
- }
13192
-
13193
- if ( ! $this->apply_filters( 'show_affiliate_program_notice', true ) ) {
13194
- // Developer explicitly asked not to show the notice about the affiliate program.
13195
- return false;
13196
- }
13197
-
13198
- if ( $this->is_activation_mode() || $this->is_pending_activation() ) {
13199
- // If not yet opted in/skipped, or pending activation, don't show the notice.
13200
- return false;
13201
- }
13202
-
13203
- $last_time_notice_was_shown = $this->_storage->get( 'affiliate_program_notice_shown', false );
13204
- $was_notice_shown_before = ( false !== $last_time_notice_was_shown );
13205
-
13206
- /**
13207
- * Do not show the notice if it was already shown before or less than 30 days have passed since the initial
13208
- * activation with FS.
13209
- */
13210
- if ( $was_notice_shown_before ||
13211
- $this->_storage->install_timestamp > ( time() - ( WP_FS__TIME_24_HOURS_IN_SEC * 30 ) )
13212
- ) {
13213
- return false;
13214
- }
13215
-
13216
- if ( ! $this->is_paying() &&
13217
- FS_Plugin::AFFILIATE_MODERATION_CUSTOMERS == $this->_plugin->affiliate_moderation ) {
13218
- // If the user is not a customer and the affiliate program is only for customers, don't show the notice.
13219
- return false;
13220
- }
13221
-
13222
- $message = sprintf(
13223
- $this->get_text_inline( 'Hey there, did you know that %s has an affiliate program? If you like the %s you can become our ambassador and earn some cash!', 'become-an-ambassador-admin-notice' ),
13224
- sprintf( '<strong>%s</strong>', $this->get_plugin_name() ),
13225
- $this->get_module_label( true )
13226
- );
13227
-
13228
- // HTML code for the "Learn more..." button.
13229
- $button = ' ' . sprintf(
13230
- '<a style="display: block; margin-top: 10px;" href="%s"><button class="button button-primary">%s &nbsp;&#10140;</button></a>',
13231
- $this->_get_admin_page_url( 'affiliation' ),
13232
- $this->get_text_inline( 'Learn more', 'learn-more' ) . '...'
13233
- );
13234
-
13235
- $this->_admin_notices->add_sticky(
13236
- $this->apply_filters( 'affiliate_program_notice', "{$message} {$button}" ),
13237
- 'affiliate_program',
13238
- '',
13239
- 'promotion'
13240
- );
13241
-
13242
- $this->_storage->affiliate_program_notice_shown = WP_FS__SCRIPT_START_TIME;
13243
-
13244
- return true;
13245
- }
13246
-
13247
- /**
13248
- * @author Vova Feldman (@svovaf)
13249
- * @since 1.2.1.5
13250
- */
13251
- function _enqueue_common_css() {
13252
- if ( $this->has_paid_plan() && ! $this->is_paying() ) {
13253
- // Add basic CSS for admin-notices and menu-item colors.
13254
- fs_enqueue_local_style( 'fs_common', '/admin/common.css' );
13255
- }
13256
- }
13257
-
13258
- /**
13259
- * @author Leo Fajardo (leorw)
13260
- * @since 1.2.2
13261
- */
13262
- function _show_theme_activation_optin_dialog() {
13263
- fs_enqueue_local_style( 'fs_connect', '/admin/connect.css' );
13264
-
13265
- add_action( 'admin_footer-themes.php', array( &$this, '_add_fs_theme_activation_dialog' ) );
13266
- }
13267
-
13268
- /**
13269
- * @author Leo Fajardo (leorw)
13270
- * @since 1.2.2
13271
- */
13272
- function _add_fs_theme_activation_dialog() {
13273
- $vars = array( 'id' => $this->_module_id );
13274
- fs_require_once_template( 'connect.php', $vars );
13275
- }
13276
-
13277
- /* Action Links
13278
- ------------------------------------------------------------------------------------------------------------------*/
13279
- private $_action_links_hooked = false;
13280
- private $_action_links = array();
13281
-
13282
- /**
13283
- * Hook to plugin action links filter.
13284
- *
13285
- * @author Vova Feldman (@svovaf)
13286
- * @since 1.0.0
13287
- */
13288
- private function hook_plugin_action_links() {
13289
- $this->_logger->entrance();
13290
-
13291
- $this->_action_links_hooked = true;
13292
-
13293
- $this->_logger->log( 'Adding action links hooks.' );
13294
-
13295
- // Add action link to settings page.
13296
- add_filter( 'plugin_action_links_' . $this->_plugin_basename, array(
13297
- &$this,
13298
- '_modify_plugin_action_links_hook'
13299
- ), WP_FS__DEFAULT_PRIORITY, 2 );
13300
- add_filter( 'network_admin_plugin_action_links_' . $this->_plugin_basename, array(
13301
- &$this,
13302
- '_modify_plugin_action_links_hook'
13303
- ), WP_FS__DEFAULT_PRIORITY, 2 );
13304
- }
13305
-
13306
- /**
13307
- * Add plugin action link.
13308
- *
13309
- * @author Vova Feldman (@svovaf)
13310
- * @since 1.0.0
13311
- *
13312
- * @param $label
13313
- * @param $url
13314
- * @param bool $external
13315
- * @param int $priority
13316
- * @param bool $key
13317
- */
13318
- function add_plugin_action_link( $label, $url, $external = false, $priority = WP_FS__DEFAULT_PRIORITY, $key = false ) {
13319
- $this->_logger->entrance();
13320
-
13321
- if ( ! isset( $this->_action_links[ $priority ] ) ) {
13322
- $this->_action_links[ $priority ] = array();
13323
- }
13324
-
13325
- if ( false === $key ) {
13326
- $key = preg_replace( "/[^A-Za-z0-9 ]/", '', strtolower( $label ) );
13327
- }
13328
-
13329
- $this->_action_links[ $priority ][] = array(
13330
- 'label' => $label,
13331
- 'href' => $url,
13332
- 'key' => $key,
13333
- 'external' => $external
13334
- );
13335
- }
13336
-
13337
- /**
13338
- * Adds Upgrade and Add-Ons links to the main Plugins page link actions collection.
13339
- *
13340
- * @author Vova Feldman (@svovaf)
13341
- * @since 1.0.0
13342
- */
13343
- function _add_upgrade_action_link() {
13344
- $this->_logger->entrance();
13345
-
13346
- if ( $this->is_registered() ) {
13347
- if ( ! $this->is_paying() && $this->has_paid_plan() ) {
13348
- $this->add_plugin_action_link(
13349
- $this->get_text_inline( 'Upgrade', 'upgrade' ),
13350
- $this->get_upgrade_url(),
13351
- false,
13352
- 7,
13353
- 'upgrade'
13354
- );
13355
- }
13356
-
13357
- if ( $this->has_addons() ) {
13358
- $this->add_plugin_action_link(
13359
- $this->get_text_inline( 'Add-Ons', 'add-ons' ),
13360
- $this->_get_admin_page_url( 'addons' ),
13361
- false,
13362
- 9,
13363
- 'addons'
13364
- );
13365
- }
13366
- }
13367
- }
13368
-
13369
- /**
13370
- * Adds "Activate License" or "Change License" link to the main Plugins page link actions collection.
13371
- *
13372
- * @author Leo Fajardo (@leorw)
13373
- * @since 1.1.9
13374
- */
13375
- function _add_license_action_link() {
13376
- $this->_logger->entrance();
13377
-
13378
- if ( $this->is_free_plan() && $this->is_addon() ) {
13379
- return;
13380
- }
13381
-
13382
- if ( ! self::is_ajax() ) {
13383
- // Inject license activation dialog UI and client side code.
13384
- add_action( 'admin_footer', array( &$this, '_add_license_activation_dialog_box' ) );
13385
- }
13386
-
13387
- $link_text = $this->is_free_plan() ?
13388
- $this->get_text_inline( 'Activate License', 'activate-license' ) :
13389
- $this->get_text_inline( 'Change License', 'change-license' );
13390
-
13391
- $this->add_plugin_action_link(
13392
- $link_text,
13393
- '#',
13394
- false,
13395
- 11,
13396
- ( 'activate-license ' . $this->get_unique_affix() )
13397
- );
13398
- }
13399
-
13400
- /**
13401
- * Adds "Opt in" or "Opt out" link to the main "Plugins" page link actions collection.
13402
- *
13403
- * @author Leo Fajardo (@leorw)
13404
- * @since 1.2.1.5
13405
- */
13406
- function _add_tracking_links() {
13407
- if ( ! current_user_can( 'activate_plugins' ) ) {
13408
- return;
13409
- }
13410
-
13411
- $this->_logger->entrance();
13412
-
13413
- if ( fs_request_is_action_secure( $this->get_unique_affix() . '_reconnect' ) ) {
13414
- if ( ! $this->is_registered() && $this->is_anonymous() ) {
13415
- $this->connect_again();
13416
-
13417
- return;
13418
- }
13419
- }
13420
-
13421
- if ( ( $this->is_plugin() && ! self::is_plugins_page() ) ||
13422
- ( $this->is_theme() && ! self::is_themes_page() )
13423
- ) {
13424
- // Only show tracking links on the plugins and themes pages.
13425
- return;
13426
- }
13427
-
13428
- if ( ! $this->is_enable_anonymous() ) {
13429
- // Don't allow to opt-out if anonymous mode is disabled.
13430
- return;
13431
- }
13432
-
13433
- if ( ! $this->is_free_plan() ) {
13434
- // Don't allow to opt-out if running in paid plan.
13435
- return;
13436
- }
13437
-
13438
- if ( $this->add_ajax_action( 'stop_tracking', array( &$this, '_stop_tracking_callback' ) ) ) {
13439
- return;
13440
- }
13441
-
13442
- if ( $this->add_ajax_action( 'allow_tracking', array( &$this, '_allow_tracking_callback' ) ) ) {
13443
- return;
13444
- }
13445
-
13446
- $url = '#';
13447
-
13448
- if ( $this->is_registered() ) {
13449
- if ( $this->is_tracking_allowed() ) {
13450
- $link_text_id = $this->get_text_inline( 'Opt Out', 'opt-out' );
13451
- } else {
13452
- $link_text_id = $this->get_text_inline( 'Opt In', 'opt-in' );
13453
- }
13454
-
13455
- add_action( 'admin_footer', array( &$this, '_add_optout_dialog' ) );
13456
- } else {
13457
- $link_text_id = $this->get_text_inline( 'Opt In', 'opt-in' );
13458
-
13459
- $params = ! $this->is_anonymous() ?
13460
- array() :
13461
- array(
13462
- 'nonce' => wp_create_nonce( $this->get_unique_affix() . '_reconnect' ),
13463
- 'fs_action' => ( $this->get_unique_affix() . '_reconnect' ),
13464
- );
13465
-
13466
- $url = $this->get_activation_url( $params );
13467
- }
13468
-
13469
- if ( $this->is_plugin() && self::is_plugins_page() ) {
13470
- $this->add_plugin_action_link(
13471
- $link_text_id,
13472
- $url,
13473
- false,
13474
- 13,
13475
- "opt-in-or-opt-out {$this->_slug}"
13476
- );
13477
- }
13478
- }
13479
-
13480
- /**
13481
- * Get the URL of the page that should be loaded right after the plugin activation.
13482
- *
13483
- * @author Vova Feldman (@svovaf)
13484
- * @since 1.1.7.4
13485
- *
13486
- * @return string
13487
- */
13488
- function get_after_plugin_activation_redirect_url() {
13489
- $url = false;
13490
-
13491
- if ( ! $this->is_addon() || ! $this->has_free_plan() ) {
13492
- $first_time_path = $this->_menu->get_first_time_path();
13493
- $url = $this->is_activation_mode() ?
13494
- $this->get_activation_url() :
13495
- ( empty( $first_time_path ) ?
13496
- $this->_get_admin_page_url() :
13497
- $first_time_path );
13498
- } else {
13499
- $plugin_fs = false;
13500
-
13501
- if ( $this->is_parent_plugin_installed() ) {
13502
- $plugin_fs = self::get_parent_instance();
13503
- }
13504
-
13505
- if ( is_object( $plugin_fs ) ) {
13506
- if ( ! $plugin_fs->is_registered() ) {
13507
- // Forward to parent plugin connect when parent not registered.
13508
- $url = $plugin_fs->get_activation_url();
13509
- } else {
13510
- // Forward to account page.
13511
- $url = $plugin_fs->_get_admin_page_url( 'account' );
13512
- }
13513
- }
13514
- }
13515
-
13516
- return $url;
13517
- }
13518
-
13519
- /**
13520
- * Forward page to activation page.
13521
- *
13522
- * @author Vova Feldman (@svovaf)
13523
- * @since 1.0.3
13524
- */
13525
- function _redirect_on_activation_hook() {
13526
- $url = $this->get_after_plugin_activation_redirect_url();
13527
-
13528
- if ( is_string( $url ) ) {
13529
- fs_redirect( $url );
13530
- }
13531
- }
13532
-
13533
- /**
13534
- * Modify plugin's page action links collection.
13535
- *
13536
- * @author Vova Feldman (@svovaf)
13537
- * @since 1.0.0
13538
- *
13539
- * @param array $links
13540
- * @param $file
13541
- *
13542
- * @return array
13543
- */
13544
- function _modify_plugin_action_links_hook( $links, $file ) {
13545
- $this->_logger->entrance();
13546
-
13547
- $passed_deactivate = false;
13548
- $deactivate_link = '';
13549
- $before_deactivate = array();
13550
- $after_deactivate = array();
13551
- foreach ( $links as $key => $link ) {
13552
- if ( 'deactivate' === $key ) {
13553
- $deactivate_link = $link;
13554
- $passed_deactivate = true;
13555
- continue;
13556
- }
13557
-
13558
- if ( ! $passed_deactivate ) {
13559
- $before_deactivate[ $key ] = $link;
13560
- } else {
13561
- $after_deactivate[ $key ] = $link;
13562
- }
13563
- }
13564
-
13565
- ksort( $this->_action_links );
13566
-
13567
- foreach ( $this->_action_links as $new_links ) {
13568
- foreach ( $new_links as $link ) {
13569
- $before_deactivate[ $link['key'] ] = '<a href="' . $link['href'] . '"' . ( $link['external'] ? ' target="_blank"' : '' ) . '>' . $link['label'] . '</a>';
13570
- }
13571
- }
13572
-
13573
- if ( ! empty( $deactivate_link ) ) {
13574
- /**
13575
- * This HTML element is used to identify the correct plugin when attaching an event to its Deactivate link.
13576
- *
13577
- * @since 1.2.1.6 Always show the deactivation feedback form since we added automatic free version deactivation upon premium code activation.
13578
- */
13579
- $deactivate_link .= '<i class="fs-module-id" data-module-id="' . $this->_module_id . '"></i>';
13580
-
13581
- // Append deactivation link.
13582
- $before_deactivate['deactivate'] = $deactivate_link;
13583
- }
13584
-
13585
- return array_merge( $before_deactivate, $after_deactivate );
13586
- }
13587
-
13588
- /**
13589
- * Adds admin message.
13590
- *
13591
- * @author Vova Feldman (@svovaf)
13592
- * @since 1.0.4
13593
- *
13594
- * @param string $message
13595
- * @param string $title
13596
- * @param string $type
13597
- */
13598
- function add_admin_message( $message, $title = '', $type = 'success' ) {
13599
- $this->_admin_notices->add( $message, $title, $type );
13600
- }
13601
-
13602
- /**
13603
- * Adds sticky admin message.
13604
- *
13605
- * @author Vova Feldman (@svovaf)
13606
- * @since 1.1.0
13607
- *
13608
- * @param string $message
13609
- * @param string $id
13610
- * @param string $title
13611
- * @param string $type
13612
- */
13613
- function add_sticky_admin_message( $message, $id, $title = '', $type = 'success' ) {
13614
- $this->_admin_notices->add_sticky( $message, $id, $title, $type );
13615
- }
13616
-
13617
- /**
13618
- * Helper function that returns the final steps for the upgrade completion.
13619
- *
13620
- * If the module is already running the premium code, returns an empty string.
13621
- *
13622
- * @author Vova Feldman (@svovaf)
13623
- * @since 1.2.1
13624
- *
13625
- * @param string $plan_title
13626
- *
13627
- * @return string
13628
- */
13629
- private function get_complete_upgrade_instructions( $plan_title = '' ) {
13630
- if ( ! $this->has_premium_version() || $this->is_premium() ) {
13631
- return '';
13632
- }
13633
-
13634
- if ( empty( $plan_title ) ) {
13635
- $plan_title = $this->_site->plan->title;
13636
- }
13637
-
13638
- // @since 1.2.1.5 The free version is auto deactivated.
13639
- $deactivation_step = version_compare( $this->version, '1.2.1.5', '<' ) ?
13640
- ( '<li>' . $this->esc_html_inline( 'Deactivate the free version', 'deactivate-free-version' ) . '.</li>' ) :
13641
- '';
13642
-
13643
- return sprintf(
13644
- ' %s: <ol><li>%s.</li>%s<li>%s (<a href="%s" target="_blank">%s</a>).</li></ol>',
13645
- $this->get_text_inline( 'Please follow these steps to complete the upgrade', 'follow-steps-to-complete-upgrade' ),
13646
- $this->get_latest_download_link( sprintf(
13647
- /* translators: %s: Plan title */
13648
- $this->get_text_inline( 'Download the latest %s version', 'download-latest-x-version' ),
13649
- $plan_title
13650
- ) ),
13651
- $deactivation_step,
13652
- $this->get_text_inline( 'Upload and activate the downloaded version', 'upload-and-activate' ),
13653
- '//bit.ly/upload-wp-' . $this->_module_type . 's',
13654
- $this->get_text_inline( 'How to upload and activate?', 'howto-upload-activate' )
13655
- );
13656
- }
13657
-
13658
- /**
13659
- * @author Vova Feldman (@svovaf)
13660
- * @since 1.2.1.7
13661
- *
13662
- * @param string $key
13663
- *
13664
- * @return string
13665
- */
13666
- function get_text( $key ) {
13667
- return fs_text( $key, $this->_slug );
13668
- }
13669
-
13670
- /**
13671
- * @author Vova Feldman (@svovaf)
13672
- * @since 1.2.3
13673
- *
13674
- * @param string $text Translatable string.
13675
- * @param string $key String key for overrides.
13676
- *
13677
- * @return string
13678
- */
13679
- function get_text_inline( $text, $key = '' ) {
13680
- return _fs_text_inline( $text, $key, $this->_slug );
13681
- }
13682
-
13683
- /**
13684
- * @author Vova Feldman (@svovaf)
13685
- * @since 1.2.3
13686
- *
13687
- * @param string $text Translatable string.
13688
- * @param string $context Context information for the translators.
13689
- * @param string $key String key for overrides.
13690
- *
13691
- * @return string
13692
- */
13693
- function get_text_x_inline( $text, $context, $key ) {
13694
- return _fs_text_x_inline( $text, $context, $key, $this->_slug );
13695
- }
13696
-
13697
- /**
13698
- * @author Vova Feldman (@svovaf)
13699
- * @since 1.2.3
13700
- *
13701
- * @param string $text Translatable string.
13702
- * @param string $key String key for overrides.
13703
- *
13704
- * @return string
13705
- */
13706
- function esc_html_inline( $text, $key ) {
13707
- return esc_html( _fs_text_inline( $text, $key, $this->_slug ) );
13708
- }
13709
-
13710
- #----------------------------------------------------------------------------------
13711
- #region Versioning
13712
- #----------------------------------------------------------------------------------
13713
-
13714
- /**
13715
- * Check if Freemius in SDK upgrade mode.
13716
- *
13717
- * @author Vova Feldman (@svovaf)
13718
- * @since 1.0.9
13719
- *
13720
- * @return bool
13721
- */
13722
- function is_sdk_upgrade_mode() {
13723
- return isset( $this->_storage->sdk_upgrade_mode ) ?
13724
- $this->_storage->sdk_upgrade_mode :
13725
- false;
13726
- }
13727
-
13728
- /**
13729
- * Turn SDK upgrade mode off.
13730
- *
13731
- * @author Vova Feldman (@svovaf)
13732
- * @since 1.0.9
13733
- */
13734
- function set_sdk_upgrade_complete() {
13735
- $this->_storage->sdk_upgrade_mode = false;
13736
- }
13737
-
13738
- /**
13739
- * Check if plugin upgrade mode.
13740
- *
13741
- * @author Vova Feldman (@svovaf)
13742
- * @since 1.0.9
13743
- *
13744
- * @return bool
13745
- */
13746
- function is_plugin_upgrade_mode() {
13747
- return isset( $this->_storage->plugin_upgrade_mode ) ?
13748
- $this->_storage->plugin_upgrade_mode :
13749
- false;
13750
- }
13751
-
13752
- /**
13753
- * Turn plugin upgrade mode off.
13754
- *
13755
- * @author Vova Feldman (@svovaf)
13756
- * @since 1.0.9
13757
- */
13758
- function set_plugin_upgrade_complete() {
13759
- $this->_storage->plugin_upgrade_mode = false;
13760
- }
13761
-
13762
- #endregion
13763
-
13764
- #----------------------------------------------------------------------------------
13765
- #region Permissions
13766
- #----------------------------------------------------------------------------------
13767
-
13768
- /**
13769
- * Check if specific permission requested.
13770
- *
13771
- * @author Vova Feldman (@svovaf)
13772
- * @since 1.1.6
13773
- *
13774
- * @param string $permission
13775
- *
13776
- * @return bool
13777
- */
13778
- function is_permission_requested( $permission ) {
13779
- return isset( $this->_permissions[ $permission ] ) && ( true === $this->_permissions[ $permission ] );
13780
- }
13781
-
13782
- #endregion
13783
-
13784
- #----------------------------------------------------------------------------------
13785
- #region Auto Activation
13786
- #----------------------------------------------------------------------------------
13787
-
13788
- /**
13789
- * Hints the SDK if running an auto-installation.
13790
- *
13791
- * @var bool
13792
- */
13793
- private $_isAutoInstall = false;
13794
-
13795
- /**
13796
- * After upgrade callback to install and auto activate a plugin.
13797
- * This code will only be executed on explicit request from the user,
13798
- * following the practice Jetpack are using with their theme installations.
13799
- *
13800
- * @link https://make.wordpress.org/plugins/2017/03/16/clarification-of-guideline-8-executable-code-and-installs/
13801
- *
13802
- * @author Vova Feldman (@svovaf)
13803
- * @since 1.2.1.7
13804
- */
13805
- function _install_premium_version_ajax_action() {
13806
- $this->_logger->entrance();
13807
-
13808
- $this->check_ajax_referer( 'install_premium_version' );
13809
-
13810
- if ( ! $this->is_registered() ) {
13811
- // Not registered.
13812
- self::shoot_ajax_failure( array(
13813
- 'message' => $this->get_text_inline( 'Auto installation only works for opted-in users.', 'auto-install-error-not-opted-in' ),
13814
- 'code' => 'premium_installed',
13815
- ) );
13816
- }
13817
-
13818
- $plugin_id = fs_request_get( 'target_module_id', $this->get_id() );
13819
-
13820
- if ( ! FS_Plugin::is_valid_id( $plugin_id ) ) {
13821
- // Invalid ID.
13822
- self::shoot_ajax_failure( array(
13823
- 'message' => $this->get_text_inline( 'Invalid module ID.', 'auto-install-error-invalid-id' ),
13824
- 'code' => 'invalid_module_id',
13825
- ) );
13826
- }
13827
-
13828
- if ( $plugin_id == $this->get_id() ) {
13829
- if ( $this->is_premium() ) {
13830
- // Already using the premium code version.
13831
- self::shoot_ajax_failure( array(
13832
- 'message' => $this->get_text_inline( 'Premium version already active.', 'auto-install-error-premium-activated' ),
13833
- 'code' => 'premium_installed',
13834
- ) );
13835
- }
13836
- if ( ! $this->can_use_premium_code() ) {
13837
- // Don't have access to the premium code.
13838
- self::shoot_ajax_failure( array(
13839
- 'message' => $this->get_text_inline( 'You do not have a valid license to access the premium version.', 'auto-install-error-invalid-license' ),
13840
- 'code' => 'invalid_license',
13841
- ) );
13842
- }
13843
- if ( ! $this->has_release_on_freemius() ) {
13844
- // Plugin is a serviceware, no premium code version.
13845
- self::shoot_ajax_failure( array(
13846
- 'message' => $this->get_text_inline( 'Plugin is a "Serviceware" which means it does not have a premium code version.', 'auto-install-error-serviceware' ),
13847
- 'code' => 'premium_version_missing',
13848
- ) );
13849
- }
13850
- } else {
13851
- $addon = $this->get_addon( $plugin_id );
13852
-
13853
- if ( ! is_object( $addon ) ) {
13854
- // Invalid add-on ID.
13855
- self::shoot_ajax_failure( array(
13856
- 'message' => $this->get_text_inline( 'Invalid module ID.', 'auto-install-error-invalid-id' ),
13857
- 'code' => 'invalid_module_id',
13858
- ) );
13859
- }
13860
-
13861
- if ( $this->is_addon_activated( $plugin_id, true ) ) {
13862
- // Premium add-on version is already activated.
13863
- self::shoot_ajax_failure( array(
13864
- 'message' => $this->get_text_inline( 'Premium add-on version already installed.', 'auto-install-error-premium-addon-activated' ),
13865
- 'code' => 'premium_installed',
13866
- ) );
13867
- }
13868
- }
13869
-
13870
- $this->_isAutoInstall = true;
13871
-
13872
- // Try to install and activate.
13873
- $updater = new FS_Plugin_Updater( $this );
13874
- $result = $updater->install_and_activate_plugin( $plugin_id );
13875
-
13876
- if ( is_array( $result ) && ! empty( $result['message'] ) ) {
13877
- self::shoot_ajax_failure( array(
13878
- 'message' => $result['message'],
13879
- 'code' => $result['code'],
13880
- ) );
13881
- }
13882
-
13883
- self::shoot_ajax_success( $result );
13884
- }
13885
-
13886
- /**
13887
- * Displays module activation dialog box after a successful upgrade
13888
- * where the user explicitly requested to auto download and install
13889
- * the premium version.
13890
- *
13891
- * @author Vova Feldman (@svovaf)
13892
- * @since 1.2.1.7
13893
- */
13894
- function _add_auto_installation_dialog_box() {
13895
- $this->_logger->entrance();
13896
-
13897
- if ( ! $this->is_registered() ) {
13898
- // Not registered.
13899
- return;
13900
- }
13901
-
13902
- $plugin_id = fs_request_get( 'plugin_id', $this->get_id() );
13903
-
13904
- if ( ! FS_Plugin::is_valid_id( $plugin_id ) ) {
13905
- // Invalid module ID.
13906
- return;
13907
- }
13908
-
13909
- if ( $plugin_id == $this->get_id() ) {
13910
- if ( $this->is_premium() ) {
13911
- // Already using the premium code version.
13912
- return;
13913
- }
13914
- if ( ! $this->can_use_premium_code() ) {
13915
- // Don't have access to the premium code.
13916
- return;
13917
- }
13918
- if ( ! $this->has_release_on_freemius() ) {
13919
- // Plugin is a serviceware, no premium code version.
13920
- return;
13921
- }
13922
- } else {
13923
- $addon = $this->get_addon( $plugin_id );
13924
-
13925
- if ( ! is_object( $addon ) ) {
13926
- // Invalid add-on ID.
13927
- return;
13928
- }
13929
-
13930
- if ( $this->is_addon_activated( $plugin_id, true ) ) {
13931
- // Premium add-on version is already activated.
13932
- return;
13933
- }
13934
- }
13935
-
13936
- $vars = array(
13937
- 'id' => $this->_module_id,
13938
- 'target_module_id' => $plugin_id,
13939
- 'slug' => $this->_slug,
13940
- );
13941
-
13942
- fs_require_template( 'auto-installation.php', $vars );
13943
- }
13944
-
13945
- #endregion
13946
-
13947
- #--------------------------------------------------------------------------------
13948
- #region Tabs Integration
13949
- #--------------------------------------------------------------------------------
13950
-
13951
- #region Module's Original Tabs
13952
-
13953
- /**
13954
- * Inject a JavaScript logic to capture the theme tabs HTML.
13955
- *
13956
- * @author Vova Feldman (@svovaf)
13957
- * @since 1.2.2.7
13958
- */
13959
- function _tabs_capture() {
13960
- $this->_logger->entrance();
13961
-
13962
- if ( ! $this->is_theme_settings_page() ||
13963
- ! $this->is_matching_url( $this->main_menu_url() )
13964
- ) {
13965
- return;
13966
- }
13967
-
13968
- $params = array(
13969
- 'id' => $this->_module_id,
13970
- );
13971
-
13972
- fs_require_once_template( 'tabs-capture-js.php', $params );
13973
- }
13974
-
13975
- /**
13976
- * Cache theme's tabs HTML for a week. The cache will also be set as expired
13977
- * after version and type (free/premium) changes, in addition to the week period.
13978
- *
13979
- * @author Vova Feldman (@svovaf)
13980
- * @since 1.2.2.7
13981
- */
13982
- function _store_tabs_ajax_action() {
13983
- $this->_logger->entrance();
13984
-
13985
- $this->check_ajax_referer( 'store_tabs' );
13986
-
13987
- // Init filesystem if not yet initiated.
13988
- WP_Filesystem();
13989
-
13990
- // Get POST body HTML data.
13991
- global $wp_filesystem;
13992
- $tabs_html = $wp_filesystem->get_contents( "php://input" );
13993
-
13994
- if ( is_string( $tabs_html ) ) {
13995
- $tabs_html = trim( $tabs_html );
13996
- }
13997
-
13998
- if ( ! is_string( $tabs_html ) || empty( $tabs_html ) ) {
13999
- self::shoot_ajax_failure();
14000
- }
14001
-
14002
- $this->_cache->set( 'tabs', $tabs_html, 7 * WP_FS__TIME_24_HOURS_IN_SEC );
14003
-
14004
- self::shoot_ajax_success();
14005
- }
14006
-
14007
- /**
14008
- * Cache theme's settings page custom styles. The cache will also be set as expired
14009
- * after version and type (free/premium) changes, in addition to the week period.
14010
- *
14011
- * @author Vova Feldman (@svovaf)
14012
- * @since 1.2.2.7
14013
- */
14014
- function _store_tabs_styles() {
14015
- $this->_logger->entrance();
14016
-
14017
- if ( ! $this->is_theme_settings_page() ||
14018
- ! $this->is_matching_url( $this->main_menu_url() )
14019
- ) {
14020
- return;
14021
- }
14022
-
14023
- $wp_styles = wp_styles();
14024
-
14025
- $theme_styles_url = get_template_directory_uri();
14026
-
14027
- $stylesheets = array();
14028
- foreach ( $wp_styles->queue as $handler ) {
14029
- if ( fs_starts_with( $handler, 'fs_' ) ) {
14030
- // Assume that stylesheets that their handler starts with "fs_" belong to the SDK.
14031
- continue;
14032
- }
14033
-
14034
- /**
14035
- * @var _WP_Dependency $stylesheet
14036
- */
14037
- $stylesheet = $wp_styles->registered[ $handler ];
14038
-
14039
- if ( fs_starts_with( $stylesheet->src, $theme_styles_url ) ) {
14040
- $stylesheets[] = $stylesheet->src;
14041
- }
14042
- }
14043
-
14044
- if ( ! empty( $stylesheets ) ) {
14045
- $this->_cache->set( 'tabs_stylesheets', $stylesheets, 7 * WP_FS__TIME_24_HOURS_IN_SEC );
14046
- }
14047
- }
14048
-
14049
- /**
14050
- * Check if module's original settings page has any tabs.
14051
- *
14052
- * @author Vova Feldman (@svovaf)
14053
- * @since 1.2.2.7
14054
- *
14055
- * @return bool
14056
- */
14057
- private function has_tabs() {
14058
- return $this->_cache->has( 'tabs' );
14059
- }
14060
-
14061
- /**
14062
- * Get module's settings page HTML content, starting
14063
- * from the beginning of the <div class="wrap"> element,
14064
- * until the tabs HTML (including).
14065
- *
14066
- * @author Vova Feldman (@svovaf)
14067
- * @since 1.2.2.7
14068
- *
14069
- * @return string
14070
- */
14071
- private function get_tabs_html() {
14072
- $this->_logger->entrance();
14073
-
14074
- return $this->_cache->get( 'tabs' );
14075
- }
14076
-
14077
- /**
14078
- * Check if page should include tabs.
14079
- *
14080
- * @author Vova Feldman (@svovaf)
14081
- * @since 1.2.2.7
14082
- *
14083
- * @return bool
14084
- */
14085
- private function should_page_include_tabs()
14086
- {
14087
- if ( ! $this->has_settings_menu() ) {
14088
- // Don't add tabs if no settings at all.
14089
- return false;
14090
- }
14091
-
14092
- if ( ! $this->is_theme() ) {
14093
- // Only add tabs to themes for now.
14094
- return false;
14095
- }
14096
-
14097
- if ( ! $this->has_paid_plan() && ! $this->has_addons() ) {
14098
- // Only add tabs to monetizing themes.
14099
- return false;
14100
- }
14101
-
14102
- if ( ! $this->is_theme_settings_page() ) {
14103
- // Only add tabs if browsing one of the theme's setting pages.
14104
- return false;
14105
- }
14106
-
14107
- if ( $this->is_admin_page( 'pricing' ) && fs_request_get_bool( 'checkout' ) ) {
14108
- // Don't add tabs on checkout page, we want to reduce distractions
14109
- // as much as possible.
14110
- return false;
14111
- }
14112
-
14113
- return true;
14114
- }
14115
-
14116
- /**
14117
- * Add the tabs HTML before the setting's page content and
14118
- * enqueue any required stylesheets.
14119
- *
14120
- * @author Vova Feldman (@svovaf)
14121
- * @since 1.2.2.7
14122
- *
14123
- * @return bool If tabs were included.
14124
- */
14125
- function _add_tabs_before_content() {
14126
- $this->_logger->entrance();
14127
-
14128
- if ( ! $this->should_page_include_tabs() ) {
14129
- return false;
14130
- }
14131
-
14132
- /**
14133
- * Enqueue the original stylesheets that are included in the
14134
- * theme settings page. That way, if the theme settings has
14135
- * some custom _styled_ content above the tabs UI, this
14136
- * will make sure that the styling is preserved.
14137
- */
14138
- $stylesheets = $this->_cache->get( 'tabs_stylesheets', array() );
14139
- if ( is_array( $stylesheets ) ) {
14140
- for ( $i = 0, $len = count( $stylesheets ); $i < $len; $i ++ ) {
14141
- wp_enqueue_style( "fs_{$this->_module_id}_tabs_{$i}", $stylesheets[ $i ] );
14142
- }
14143
- }
14144
-
14145
- // Cut closing </div> tag.
14146
- echo substr( trim( $this->get_tabs_html() ), 0, - 6 );
14147
-
14148
- return true;
14149
- }
14150
-
14151
- /**
14152
- * Add the tabs closing HTML after the setting's page content.
14153
- *
14154
- * @author Vova Feldman (@svovaf)
14155
- * @since 1.2.2.7
14156
- *
14157
- * @return bool If tabs closing HTML was included.
14158
- */
14159
- function _add_tabs_after_content() {
14160
- $this->_logger->entrance();
14161
-
14162
- if ( ! $this->should_page_include_tabs() ) {
14163
- return false;
14164
- }
14165
-
14166
- echo '</div>';
14167
-
14168
- return true;
14169
- }
14170
-
14171
- #endregion
14172
-
14173
- /**
14174
- * Add in-page JavaScript to inject the Freemius tabs into
14175
- * the module's setting tabs section.
14176
- *
14177
- * @author Vova Feldman (@svovaf)
14178
- * @since 1.2.2.7
14179
- */
14180
- function _add_freemius_tabs() {
14181
- $this->_logger->entrance();
14182
-
14183
- if ( ! $this->should_page_include_tabs() ) {
14184
- return;
14185
- }
14186
-
14187
- $params = array( 'id' => $this->_module_id );
14188
- fs_require_once_template( 'tabs.php', $params );
14189
- }
14190
-
14191
- #endregion
14192
-
14193
- #--------------------------------------------------------------------------------
14194
- #region Customizer Integration for Themes
14195
- #--------------------------------------------------------------------------------
14196
-
14197
- /**
14198
- * @author Vova Feldman (@svovaf)
14199
- * @since 1.2.2.7
14200
- *
14201
- * @param WP_Customize_Manager $customizer
14202
- */
14203
- function _customizer_register($customizer) {
14204
- $this->_logger->entrance();
14205
-
14206
- if ( $this->is_pricing_page_visible() ) {
14207
- require_once WP_FS__DIR_INCLUDES . '/customizer/class-fs-customizer-upsell-control.php';
14208
-
14209
- $customizer->add_section( 'freemius_upsell', array(
14210
- 'title' => '&#9733; ' . $this->get_text_inline( 'View paid features', 'view-paid-features' ),
14211
- 'priority' => 1,
14212
- ) );
14213
- $customizer->add_setting( 'freemius_upsell', array(
14214
- 'sanitize_callback' => 'esc_html',
14215
- ) );
14216
-
14217
- $customizer->add_control( new FS_Customizer_Upsell_Control( $customizer, 'freemius_upsell', array(
14218
- 'fs' => $this,
14219
- 'section' => 'freemius_upsell',
14220
- 'priority' => 100,
14221
- ) ) );
14222
- }
14223
-
14224
- if ( $this->is_page_visible( 'contact' ) || $this->is_page_visible( 'support' ) ) {
14225
- require_once WP_FS__DIR_INCLUDES . '/customizer/class-fs-customizer-support-section.php';
14226
-
14227
- // Main Documentation Link In Customizer Root.
14228
- $customizer->add_section( new FS_Customizer_Support_Section( $customizer, 'freemius_support', array(
14229
- 'fs' => $this,
14230
- 'priority' => 1000,
14231
- ) ) );
14232
- }
14233
- }
14234
-
14235
- #endregion
14236
-
14237
- /**
14238
- * If the theme has a paid version, add some custom
14239
- * styling to the theme's premium version (if exists)
14240
- * to highlight that it's the premium version of the
14241
- * same theme, making it easier for identification
14242
- * after the user upgrades and upload it to the site.
14243
- *
14244
- * @author Vova Feldman (@svo