YITH Essential Kit for WooCommerce #1 - Version 2.5.0

Version Description

  • Released on 18 January 2022 =
  • New: support for WooCommerce 6.1
  • New: support for WordPress 5.9
  • Update: YITH plugin framework
Download this release

Release Info

Developer yithemes
Plugin Icon 128x128 YITH Essential Kit for WooCommerce #1
Version 2.5.0
Comparing to
See all releases

Code changes from version 2.4.0 to 2.5.0

README.txt CHANGED
@@ -4,7 +4,7 @@ Contributors: yithemes
4
  Tags: woocommerce,yith woocommerce colors and labels variations,yith woocommerce zoom magnifier,yith woocommerce wishlist,yith woocommerce ajax product filter,yith woocommerce ajax search,yith woocommerce catalog mode, yith woocommerce badges management,yith woocommerce cart messages,yith woocommerce quick view,yith woocommerce stripe,yith woocommerce request a quote,yith woocommerce tab manager
5
  Requires at least: 3.8
6
  Tested up to: 5.9
7
- Stable tag: 2.4.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -117,6 +117,11 @@ YITH Essential Kit for WooCommerce #1 will add a new submenu called "YITH Essent
117
 
118
  == Changelog ==
119
 
 
 
 
 
 
120
  = 2.4.0 - Released on 02 December 2021 =
121
  * New: support for WooCommerce 6.0
122
  * Update: YITH plugin framework
4
  Tags: woocommerce,yith woocommerce colors and labels variations,yith woocommerce zoom magnifier,yith woocommerce wishlist,yith woocommerce ajax product filter,yith woocommerce ajax search,yith woocommerce catalog mode, yith woocommerce badges management,yith woocommerce cart messages,yith woocommerce quick view,yith woocommerce stripe,yith woocommerce request a quote,yith woocommerce tab manager
5
  Requires at least: 3.8
6
  Tested up to: 5.9
7
+ Stable tag: 2.5.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
117
 
118
  == Changelog ==
119
 
120
+ = 2.5.0 - Released on 18 January 2022 =
121
+ * New: support for WooCommerce 6.1
122
+ * New: support for WordPress 5.9
123
+ * Update: YITH plugin framework
124
+
125
  = 2.4.0 - Released on 02 December 2021 =
126
  * New: support for WooCommerce 6.0
127
  * Update: YITH plugin framework
init.php CHANGED
@@ -7,9 +7,9 @@
7
  * Domain Path: /languages/
8
  * Author: YITH
9
  * Author URI: https://yithemes.com/
10
- * Version: 2.4.0
11
- * WC requires at least: 5.8
12
- * WC tested up to: 6.0
13
  *
14
  * @author YITHEMES
15
  * @package YITH Essential Kit for Woocommerce #1
@@ -41,7 +41,7 @@ if ( ! defined( 'YJP_TEMPLATE_PATH' ) ) {
41
  }
42
 
43
  if ( ! defined( 'YJP_VERSION' ) ) {
44
- define( 'YJP_VERSION', '2.4.0' );
45
  }
46
 
47
  if ( ! function_exists( 'yith_plugin_registration_hook' ) ) {
7
  * Domain Path: /languages/
8
  * Author: YITH
9
  * Author URI: https://yithemes.com/
10
+ * Version: 2.5.0
11
+ * WC requires at least: 5.9
12
+ * WC tested up to: 6.1
13
  *
14
  * @author YITHEMES
15
  * @package YITH Essential Kit for Woocommerce #1
41
  }
42
 
43
  if ( ! defined( 'YJP_VERSION' ) ) {
44
+ define( 'YJP_VERSION', '2.5.0' );
45
  }
46
 
47
  if ( ! function_exists( 'yith_plugin_registration_hook' ) ) {
languages/yith-essential-kit-for-woocommerce-1.pot CHANGED
@@ -1,15 +1,15 @@
1
- # Copyright (C) 2021 YITH
2
  # This file is distributed under the same license as the YITH Essential Kit for WooCommerce #1 package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: YITH Essential Kit for WooCommerce #1 2.4.0\n"
6
  "Report-Msgid-Bugs-To: "
7
  "https://wordpress.org/support/plugin/yith-essential-kit-for-woocommerce-1\n"
8
- "POT-Creation-Date: 2021-12-02 15:27:56+00:00\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=utf-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
- "PO-Revision-Date: 2021-MO-DA HO:MI+ZONE\n"
13
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
  "Language-Team: LANGUAGE <LL@li.org>\n"
15
  "X-Generator: grunt-wp-i18n 1.0.3\n"
1
+ # Copyright (C) 2022 YITH
2
  # This file is distributed under the same license as the YITH Essential Kit for WooCommerce #1 package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: YITH Essential Kit for WooCommerce #1 2.5.0\n"
6
  "Report-Msgid-Bugs-To: "
7
  "https://wordpress.org/support/plugin/yith-essential-kit-for-woocommerce-1\n"
8
+ "POT-Creation-Date: 2022-01-18 08:50:20+00:00\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=utf-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
+ "PO-Revision-Date: 2022-MO-DA HO:MI+ZONE\n"
13
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
  "Language-Team: LANGUAGE <LL@li.org>\n"
15
  "X-Generator: grunt-wp-i18n 1.0.3\n"
plugin-fw/assets/css/yit-plugin-panel.css CHANGED
@@ -315,6 +315,152 @@
315
  text-align : center;
316
  }
317
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
318
  /**
319
  Post type Edit
320
  */
@@ -1046,12 +1192,55 @@ button#yith-plugin-fw-float-save-button.green {
1046
 
1047
  /* === Responsive === */
1048
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1049
  @media (max-width : 767px) {
1050
 
1051
  }
1052
 
1053
  @media (max-width : 480px) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1054
 
 
 
 
1055
  }
1056
 
1057
  @media (max-width : 992px) {
315
  text-align : center;
316
  }
317
 
318
+ /**
319
+ Premium Tab
320
+ */
321
+
322
+ #yith_plugin_fw_panel_premium_tab {
323
+ background-color : white;
324
+ padding : 40px;
325
+ margin-right : 15px;
326
+ border : 1px solid #d8d8d8;
327
+ border-top : none;
328
+ }
329
+
330
+ #yith_plugin_fw_panel_premium_tab .yith-plugin-fw-panel-premium-tab {
331
+ background-color : #f9f9f9;
332
+ padding : 40px;
333
+ border : 1px solid #dbdbdb;
334
+ border-radius : 5px;
335
+ max-width : 1400px;
336
+ margin : auto;
337
+ }
338
+
339
+ #yith_plugin_fw_panel_premium_tab .yith-plugin-fw-panel-premium-tab__header {
340
+ display : flex;
341
+ align-items : center;
342
+ gap : 35px 20px;
343
+ }
344
+
345
+ #yith_plugin_fw_panel_premium_tab .yith-plugin-fw-panel-premium-tab__header-title {
346
+ color : #C28D31;
347
+ text-transform : uppercase;
348
+ font-weight : 600;
349
+ font-size : 18px;
350
+ width : 100%;
351
+ }
352
+
353
+ #yith_plugin_fw_panel_premium_tab .yith-plugin-fw-panel-premium-tab__header-cta:before {
354
+ content : '\f11b';
355
+ font-family : 'yith-icon';
356
+ font-size : 18px;
357
+ line-height : 1em;
358
+ font-weight : 400;
359
+ }
360
+
361
+ #yith_plugin_fw_panel_premium_tab .yith-plugin-fw-panel-premium-tab__header-cta:hover:before {
362
+ transform-origin : center center;
363
+ animation : .3s yith-plugin-fw-jiggle linear;
364
+ animation-iteration-count : 3;
365
+ }
366
+
367
+ @keyframes yith-plugin-fw-jiggle {
368
+ 25% {
369
+ transform : rotate(-20deg);
370
+ }
371
+ 75% {
372
+ transform : rotate(20deg);
373
+ }
374
+ }
375
+
376
+ #yith_plugin_fw_panel_premium_tab .yith-plugin-fw-panel-premium-tab__header-cta {
377
+ color : white;
378
+ background-color : #e58f00;
379
+ display : flex;
380
+ align-items : center;
381
+ justify-content : space-between;
382
+ padding : 12px 24px;
383
+ column-gap : 12px;
384
+ font-size : 14px;
385
+ font-weight : 600;
386
+ }
387
+
388
+ #yith_plugin_fw_panel_premium_tab .yith-plugin-fw-panel-premium-tab__header-cta-arrow {
389
+ background : url("../images/arrow.svg") no-repeat center;
390
+ background-size : contain;
391
+ width : 100px;
392
+ height : 30px;
393
+ }
394
+
395
+ #yith_plugin_fw_panel_premium_tab .yith-plugin-fw-panel-premium-tab__content {
396
+ display : flex;
397
+ column-gap : 20px;
398
+ padding-top : 30px;
399
+ }
400
+
401
+ #yith_plugin_fw_panel_premium_tab .yith-plugin-fw-panel-premium-tab__main-image {
402
+ max-width : 50%;
403
+ object-fit : contain;
404
+ object-position : top;
405
+ flex : 1;
406
+ }
407
+
408
+ #yith_plugin_fw_panel_premium_tab .yith-plugin-fw-panel-premium-tab__features {
409
+ display : flex;
410
+ flex-direction : column;
411
+ row-gap : 45px;
412
+ font-size : 18px;
413
+ line-height : 24px;
414
+ padding-top : 30px;
415
+ flex : 1;
416
+ max-width : 100%;
417
+ }
418
+
419
+ #yith_plugin_fw_panel_premium_tab .yith-plugin-fw-panel-premium-tab__feature {
420
+ display : flex;
421
+ align-items : center;
422
+ column-gap : 25px;
423
+ }
424
+
425
+ #yith_plugin_fw_panel_premium_tab .yith-plugin-fw-panel-premium-tab__feature:before {
426
+ content : '';
427
+ display : block;
428
+ width : 12px;
429
+ height : 20px;
430
+ border : 8px solid #96ca20;
431
+ border-left : 0;
432
+ border-top : 0;
433
+ transform : rotate(45deg) translate(30%, -15%);
434
+ margin-right : 10px;
435
+ margin-bottom : 6px;
436
+ }
437
+
438
+ #yith_plugin_fw_panel_premium_tab .yith-plugin-fw-panel-premium-tab__feature-content {
439
+ width : calc(100% - 55px);
440
+ }
441
+
442
+ #yith_plugin_fw_panel_premium_tab .yith-plugin-fw-panel-premium-tab__cta-button {
443
+ background-color : #e58f00;
444
+ color : white;
445
+ text-transform : uppercase;
446
+ text-decoration : none;
447
+ border-radius : 5px;
448
+ white-space : nowrap;
449
+ transition : .3s;
450
+ }
451
+
452
+ #yith_plugin_fw_panel_premium_tab .yith-plugin-fw-panel-premium-tab__cta-button:hover {
453
+ background-color : #c67c00;
454
+ }
455
+
456
+ #yith_plugin_fw_panel_premium_tab .yith-plugin-fw-panel-premium-tab__content-cta {
457
+ padding : 20px;
458
+ font-size : 20px;
459
+ font-weight : 600;
460
+ text-align : center;
461
+ line-height : normal;
462
+ }
463
+
464
  /**
465
  Post type Edit
466
  */
1192
 
1193
  /* === Responsive === */
1194
 
1195
+ @media (max-width : 1210px) {
1196
+ #yith_plugin_fw_panel_premium_tab .yith-plugin-fw-panel-premium-tab__main-image,
1197
+ #yith_plugin_fw_panel_premium_tab .yith-plugin-fw-panel-premium-tab__header-cta-arrow {
1198
+ display : none;
1199
+ }
1200
+
1201
+ #yith_plugin_fw_panel_premium_tab .yith-plugin-fw-panel-premium-tab__header {
1202
+ flex-wrap : wrap;
1203
+ }
1204
+
1205
+ #yith_plugin_fw_panel_premium_tab .yith-plugin-fw-panel-premium-tab__features {
1206
+ padding-top : 15px;
1207
+ }
1208
+ }
1209
+
1210
+ @media (max-width : 600px) {
1211
+ #yith_plugin_fw_panel_premium_tab {
1212
+ padding : 20px;
1213
+ }
1214
+
1215
+ #yith_plugin_fw_panel_premium_tab .yith-plugin-fw-panel-premium-tab {
1216
+ padding : 30px;
1217
+ }
1218
+ }
1219
+
1220
  @media (max-width : 767px) {
1221
 
1222
  }
1223
 
1224
  @media (max-width : 480px) {
1225
+ #yith_plugin_fw_panel_premium_tab .yith-plugin-fw-panel-premium-tab__feature:before {
1226
+ width : 8px;
1227
+ height : 15px;
1228
+ border-width : 5px;
1229
+ }
1230
+
1231
+ #yith_plugin_fw_panel_premium_tab .yith-plugin-fw-panel-premium-tab__feature {
1232
+ flex-direction : column;
1233
+ align-items : flex-start;
1234
+ row-gap : 13px;
1235
+ }
1236
+
1237
+ #yith_plugin_fw_panel_premium_tab .yith-plugin-fw-panel-premium-tab__feature-content {
1238
+ width : 100%;
1239
+ }
1240
 
1241
+ #yith_plugin_fw_panel_premium_tab .yith-plugin-fw-panel-premium-tab__cta-button {
1242
+ white-space : unset;
1243
+ }
1244
  }
1245
 
1246
  @media (max-width : 992px) {
plugin-fw/assets/images/arrow.svg ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg width="86px" height="26px" viewBox="0 0 86 26" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
+ <title>arrow2</title>
4
+ <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
5
+ <g id="Create-badge---image-Copy" transform="translate(-795.000000, -218.000000)" fill="#336374">
6
+ <g id="arrow2" transform="translate(795.000000, 218.000000)">
7
+ <path d="M85.2527743,11.0287846 C85.0291804,10.8409658 84.5580864,10.4653284 83.9069923,9.99202513 C81.7582412,8.39556583 77.6702704,5.45995889 74.5990189,3.18547392 C73.0029243,2.00033766 71.6866736,1.0236802 71.0833921,0.482762228 C71.0032358,0.409512919 70.9019857,0.351289109 70.8513607,0.294943486 L70.8513607,0.306212611 L70.8513607,0.293065299 L70.8330794,0.272405237 C70.8246419,0.261136113 70.8204232,0.25550155 70.8218294,0.238597864 L70.8218294,0.238597864 C70.7216008,0.0191459435 70.5127354,-0.0622623017 70.3398646,0.0507452248 C70.1669939,0.163752751 70.086996,0.433994045 70.1552666,0.674337345 C70.2269854,0.978603707 71.7626112,2.67272876 73.859331,4.71995305 C75.783082,6.59814047 78.1540207,8.82567074 80.1143342,10.6512689 C75.6298006,10.6756854 69.8008914,10.6249743 63.3321381,10.6137052 C59.113386,10.6043142 54.6358837,10.5986797 50.0768189,10.641878 C47.4386925,10.6681726 44.7752537,10.7282746 42.1244711,10.7902548 C38.0730628,10.8860423 34.052592,11.0043682 30.1966525,11.1208158 C14.2807069,11.6072663 1.19835652,12.0279803 0.512106166,11.684272 C0.389268144,11.6171708 0.248958141,11.642693 0.144029579,11.7512246 C0.0391010166,11.8597562 -0.0145049592,12.0348087 0.00340450444,12.2104414 C0.0213139681,12.3860742 0.108017998,12.5356045 0.230856023,12.6027056 C0.848200087,12.9558049 11.476643,13.5925104 25.2283687,14.0338845 C30.4314964,14.2010431 36.088843,14.3512981 41.8108772,14.4226693 C44.5727536,14.4583548 47.351505,14.4715021 50.1077564,14.4508421 C52.9202578,14.4320602 55.6933842,14.3738364 58.3976044,14.3043434 C62.8062004,14.1916522 67.016515,14.0338845 70.8344857,13.8648476 C74.942144,13.6770288 78.5885521,13.46855 81.5388661,13.2694622 C81.0438659,13.678907 80.4940219,14.1334284 79.9104278,14.6255135 C79.0905836,15.3148083 78.2074582,16.0717178 77.3130827,16.8511656 C74.0660498,19.6853504 70.6558918,22.7392831 69.5674538,23.650204 C69.1305592,24.0067591 68.9841166,24.7618416 69.2364633,25.3568463 C69.4888101,25.951851 70.0490011,26.1723396 70.5026105,25.8551961 C71.5544861,25.1414849 74.7058939,22.9815693 77.824958,20.6357132 C79.5391776,19.3472767 81.2393347,18.0062509 82.5865229,16.8793384 C83.5022712,16.1209452 84.3879897,15.299703 85.240118,14.4189129 C85.8926184,13.708958 85.9952747,12.9708304 86,12.7754989 C85.9966809,12.7022496 86.0669934,11.6899066 85.2527743,11.0287846 Z" id="Path"></path>
8
+ </g>
9
+ </g>
10
+ </g>
11
+ </svg>
plugin-fw/dist/gutenberg/index.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('lodash', 'react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-element', 'wp-hooks', 'wp-polyfill', 'wp-url'), 'version' => 'ec5c5e974d97e00eb3f18286c25e0840');
1
+ <?php return array('dependencies' => array('lodash', 'react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-element', 'wp-hooks', 'wp-polyfill', 'wp-url'), 'version' => '0d1e043f27fa4c9d1318a4501208941a');
plugin-fw/dist/gutenberg/index.js CHANGED
@@ -1 +1 @@
1
- !function(){var e,t={783:function(e,t,o){"use strict";var r=window.wp.element,n=window.React,a=o(568),l=o.n(a),s=window.wp.blocks,c=window.wp.url;function i(e){if(e.status>=200&&e.status<300)return e;throw e}function u(e){return e.json?e.json():e.text()}const h=(0,r.createElement)("svg",{viewBox:"0 0 22 22",xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",role:"img","aria-hidden":"true",focusable:"false"},(0,r.createElement)("path",{width:"22",height:"22",d:"M 18.24 7.628 C 17.291 8.284 16.076 8.971 14.587 9.688 C 15.344 7.186 15.765 4.851 15.849 2.684 C 15.912 0.939 15.133 0.045 13.514 0.003 C 11.558 -0.06 10.275 1.033 9.665 3.284 C 10.007 3.137 10.359 3.063 10.723 3.063 C 11.021 3.063 11.267 3.184 11.459 3.426 C 11.651 3.668 11.736 3.947 11.715 4.262 C 11.695 5.082 11.276 5.961 10.46 6.896 C 9.644 7.833 8.918 8.3 8.282 8.3 C 7.837 8.3 7.625 7.922 7.646 7.165 C 7.667 6.765 7.804 5.955 8.056 4.735 C 8.287 3.579 8.403 2.801 8.403 2.401 C 8.403 1.707 8.224 1.144 7.867 0.713 C 7.509 0.282 6.994 0.098 6.321 0.161 C 5.858 0.203 5.175 0.624 4.27 1.422 C 3.596 2.035 2.923 2.644 2.25 3.254 L 2.976 4.106 C 3.564 3.664 3.922 3.443 4.048 3.443 C 4.448 3.443 4.637 3.717 4.617 4.263 C 4.617 4.306 4.427 4.968 4.049 6.251 C 3.671 7.534 3.471 8.491 3.449 9.122 C 3.407 9.985 3.565 10.647 3.924 11.109 C 4.367 11.677 5.106 11.919 6.142 11.835 C 7.366 11.751 8.591 11.298 9.816 10.479 C 10.323 10.142 10.808 9.753 11.273 9.311 C 11.105 10.153 10.905 10.868 10.673 11.457 C 8.402 12.487 6.762 13.37 5.752 14.107 C 4.321 15.137 3.554 16.241 3.449 17.419 C 3.259 19.459 4.29 20.479 6.541 20.479 C 8.055 20.479 9.517 19.554 10.926 17.703 C 12.125 16.126 13.166 14.022 14.049 11.394 C 15.578 10.635 16.87 9.892 17.928 9.164 C 17.894 9.409 18.319 7.308 18.24 7.628 Z M 7.393 16.095 C 7.056 16.095 6.898 15.947 6.919 15.653 C 6.961 15.106 7.908 14.38 9.759 13.476 C 8.791 15.221 8.002 16.095 7.393 16.095 Z"}));var d=window.lodash,p=o.n(d);const f=(e,t,o)=>{let r=!0;if(t&&t.id&&"value"in t){let n=t.value;["toggle","checkbox"].includes(o)&&(n=!0===n||"yes"===n||1===n),n=p().isArray(n)?n:[n],r=void 0!==e[t.id]&&n.includes(e[t.id])}return r},g=(e,t)=>{const{controlType:o}=e;let r=!0;if(e.deps)if(p().isArray(e.deps))for(let n in e.deps){const a=e.deps[n];if(r=f(t,a,o),!r)break}else r=f(t,e.deps,o);return r},b=(e,t)=>{let o="",r=!1;if(void 0!==e.callback&&(jQuery&&e.callback in jQuery.fn?r=jQuery.fn[e.callback]:e.callback in window&&(r=window[e.callback])),"function"==typeof r)o=r(t,e);else{const r=e.attributes?Object.entries(e.attributes).map((([e,o])=>{const r=g(o,t),n=t[e];if(r&&void 0!==n)return e+"="+(o.remove_quotes?n:`"${n}"`)})):[],n=r.length?" "+r.join(" "):"";o=`[${e.shortcode_name}${n}]`}return o};var m=window.wp.components,y=window.wp.blockEditor,_=window.wp.hooks;class v extends n.Component{constructor(){super(...arguments),this.state={html:"",shortcode:"",shortcodeHash:"",ajaxUpdated:!1,ajaxSuccess:!1,ajaxResponse:!1,loading:!1,firstLoading:!0},this.ajaxTimeout=!1}componentDidMount(){this.updateShortcode()}componentDidUpdate(e,t,o){const{shortcode:r,shortcodeHash:n,ajaxSuccess:a,ajaxResponse:l,ajaxUpdated:s}=this.state;(0,d.isEqual)(e,this.props)||this.updateShortcode(),this.props.blockArgs.do_shortcode&&s&&(a&&(0,_.doAction)("yith_plugin_fw_gutenberg_success_do_shortcode",r,n,l),(0,_.doAction)("yith_plugin_fw_gutenberg_after_do_shortcode",r,n,l),this.setState({ajaxUpdated:!1}))}updateShortcode(){const{attributes:e,blockArgs:t}=this.props;this.setState({loading:!0,ajaxSuccess:!1,ajaxResponse:!1});const o=b(t,e),r=l()(o);t.do_shortcode?(this.ajaxTimeout&&clearTimeout(this.ajaxTimeout),(0,_.doAction)("yith_plugin_fw_gutenberg_before_do_shortcode",o,r),this.ajaxTimeout=setTimeout((()=>{((e,t=yithGutenberg.ajaxurl)=>(t=(0,c.addQueryArgs)(t,e),fetch(t).then(i).then(u)))({action:"yith_plugin_fw_gutenberg_do_shortcode",shortcode:o}).then((e=>{this.setState({loading:!1,firstLoading:!1,html:e.html,shortcode:o,shortcodeHash:r,ajaxSuccess:!0,ajaxUpdated:!0,ajaxResponse:e})})).catch((e=>{console.log({error:e})}))}),300)):this.setState({loading:!1,firstLoading:!1,html:o,shortcode:o,shortcodeHash:r})}render(){const{html:e,loading:t,firstLoading:o,shortcode:n,shortcodeHash:a}=this.state,{blockArgs:l}=this.props,{do_shortcode:s,title:c,empty_message:i}=l,u="block-editor-yith-plugin-fw-shortcode-block";let d=[u],p=s?"html":"shortcode",f=e,g="";o&&t?p="first-loading":s&&!e&&(p="empty-html",f=n,!t&&i&&(g=i));const b=["first-loading","empty-html","shortcode"].includes(p),y=!["first-loading","empty-html"].includes(p),_=!!g;return d.push(`${u}--${p}`),d.push(_?`${u}--has-message`:`${u}--no-message`),d.push(`yith_block_${a}`),(0,r.createElement)(r.Fragment,null,(0,r.createElement)("div",{className:d.join(" ")},t?(0,r.createElement)("div",{className:`${u}__spinner-wrap`},(0,r.createElement)(m.Spinner,null)):"",b&&(0,r.createElement)("div",{className:`${u}__title components-placeholder__label`},h,c),_&&(0,r.createElement)(r.RawHTML,{className:`${u}__message`},g),y&&(0,r.createElement)(r.RawHTML,{className:`${u}__content`},f)))}}var C=window.wp.compose;function w({className:e,label:t,onChange:o,value:n,help:a,disableAlpha:l}){const s=`inspector-yith-color-picker-control-${(0,C.useInstanceId)(w)}`;return(0,r.createElement)(m.BaseControl,{id:s,label:t,className:`block-editor-yith-color-control ${e}`,help:a},(0,r.createElement)(m.ColorPicker,{color:n,disableAlpha:l,onChangeComplete:o}))}function k({label:e,colorValue:t}){return(0,r.createElement)(r.Fragment,null,e,!!t&&(0,r.createElement)(m.ColorIndicator,{colorValue:t}))}function x({className:e,label:t,onChange:o,value:n,help:a,palette:l,clearable:s}){l=l||(0,y.useSetting)("color.palette");const c=`inspector-yith-color-palette-control-${(0,C.useInstanceId)(x)}`;return(0,r.createElement)(m.BaseControl,{id:c,className:`block-editor-yith-color-palette-control ${e}`,help:a},(0,r.createElement)("fieldset",null,(0,r.createElement)("legend",null,(0,r.createElement)("div",{className:"block-editor-yith-color-palette-control__color-indicator"},(0,r.createElement)(m.BaseControl.VisualLabel,null,(0,r.createElement)(k,{colorValue:n,label:t})))),(0,r.createElement)(m.ColorPalette,{value:n,onChange:o,colors:l,clearable:s})))}const j=(e,t)=>function({attributes:o,className:n,setAttributes:a}){const l=(e,t,o)=>{["colorpicker","color"].includes(o)&&(e=e.color.getAlpha()<1?e.color.toRgbString():e.color.toHexString());let r={};r[t]=e,a(r)};return(0,r.createElement)(r.Fragment,null,!!t.attributes&&(0,r.createElement)(y.InspectorControls,null,(0,r.createElement)(m.PanelBody,null,Object.entries(t.attributes).map((([t,n])=>{const a=((t,n)=>{const{controlType:a}=n,s=o[t],c=((e,t)=>{let o="";return e.helps&&e.helps.checked&&e.helps.unchecked?o=t?e.helps.checked:e.helps.unchecked:e.help&&(o=e.help),o})(n,s);let i=`${e}__${t}-field-wrapper`;const u=g(n,o);n.wrapper_class&&(i+=" "+n.wrapper_class);let h=!1;if(u)switch(a){case"select":h=(0,r.createElement)(m.SelectControl,{className:i,key:t,value:s,label:n.label,options:n.options,help:c,multiple:!!n.multiple,onChange:e=>{l(e,t,a)}});break;case"text":h=(0,r.createElement)(m.TextControl,{className:i,key:t,value:s,label:n.label,help:c,onChange:e=>{l(e,t,a)}});break;case"textarea":h=(0,r.createElement)(m.TextareaControl,{className:i,key:t,value:s,label:n.label,help:c,onChange:e=>{l(e,t,a)}});break;case"toggle":h=(0,r.createElement)(m.ToggleControl,{className:i,key:t,label:n.label,help:c,checked:s,onChange:e=>{l(e,t,a)}});break;case"checkbox":h=(0,r.createElement)(m.CheckboxControl,{className:i,key:t,label:n.label,help:c,checked:s,onChange:e=>{l(e,t,a)}});break;case"number":case"range":h=(0,r.createElement)(m.RangeControl,{className:i,key:t,value:s,label:n.label,help:c,min:n.min,max:n.max,onChange:e=>{l(e,t,a)}});break;case"color":case"colorpicker":h=(0,r.createElement)(w,{className:i,key:t,label:n.label,help:c,value:s,disableAlpha:n.disableAlpha,onChange:e=>{l(e,t,a)}});break;case"color-palette":h=(0,r.createElement)(x,{className:i,key:t,label:n.label,help:c,value:s,clearable:n.clearable||!1,onChange:e=>{l(e,t,a)}});break;case"radio":h=(0,r.createElement)(m.RadioControl,{key:t,label:n.label,options:n.options,selected:s,help:c,onChange:e=>{l(e,t,a)}});break;default:h=!1}return h})(t,n);if(a)return a})))),(0,r.createElement)(v,{attributes:o,blockArgs:t}))},E=[{key:"yith_plugin_fw_gutenberg_before_do_shortcode",delay:0},{key:"yith_plugin_fw_gutenberg_success_do_shortcode",delay:200},{key:"yith_plugin_fw_gutenberg_after_do_shortcode",delay:200}];for(const e of E)(0,_.addAction)(e.key,"yith-plugin-fw/jquery-events",((...t)=>{"jQuery"in window&&(e.delay?setTimeout((()=>{jQuery(document).trigger(e.key,Object.values(t))}),e.delay):jQuery(document).trigger(e.key,Object.values(t)))}));for(const[e,t]of Object.entries(yithGutenbergBlocks))(0,s.registerBlockType)("yith/"+e,{title:t.title,description:t.description,category:t.category,attributes:t.attributes,icon:void 0!==t.icon?t.icon:h,keywords:t.keywords,edit:j(e,t),save:({attributes:e})=>b(t,e),deprecated:[{attributes:t.attributes,save:({attributes:e})=>{const o=b(t,e),n='<span class="yith_block_'+l()(o)+'">'+o+"</span>";return(0,r.createElement)(r.RawHTML,null,n)}}]})},487:function(e){var t={utf8:{stringToBytes:function(e){return t.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(t.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],o=0;o<e.length;o++)t.push(255&e.charCodeAt(o));return t},bytesToString:function(e){for(var t=[],o=0;o<e.length;o++)t.push(String.fromCharCode(e[o]));return t.join("")}}};e.exports=t},12:function(e){var t,o;t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o={rotl:function(e,t){return e<<t|e>>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(e){if(e.constructor==Number)return 16711935&o.rotl(e,8)|4278255360&o.rotl(e,24);for(var t=0;t<e.length;t++)e[t]=o.endian(e[t]);return e},randomBytes:function(e){for(var t=[];e>0;e--)t.push(Math.floor(256*Math.random()));return t},bytesToWords:function(e){for(var t=[],o=0,r=0;o<e.length;o++,r+=8)t[r>>>5]|=e[o]<<24-r%32;return t},wordsToBytes:function(e){for(var t=[],o=0;o<32*e.length;o+=8)t.push(e[o>>>5]>>>24-o%32&255);return t},bytesToHex:function(e){for(var t=[],o=0;o<e.length;o++)t.push((e[o]>>>4).toString(16)),t.push((15&e[o]).toString(16));return t.join("")},hexToBytes:function(e){for(var t=[],o=0;o<e.length;o+=2)t.push(parseInt(e.substr(o,2),16));return t},bytesToBase64:function(e){for(var o=[],r=0;r<e.length;r+=3)for(var n=e[r]<<16|e[r+1]<<8|e[r+2],a=0;a<4;a++)8*r+6*a<=8*e.length?o.push(t.charAt(n>>>6*(3-a)&63)):o.push("=");return o.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var o=[],r=0,n=0;r<e.length;n=++r%4)0!=n&&o.push((t.indexOf(e.charAt(r-1))&Math.pow(2,-2*n+8)-1)<<2*n|t.indexOf(e.charAt(r))>>>6-2*n);return o}},e.exports=o},738:function(e){function t(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}e.exports=function(e){return null!=e&&(t(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&t(e.slice(0,0))}(e)||!!e._isBuffer)}},568:function(e,t,o){var r,n,a,l,s;r=o(12),n=o(487).utf8,a=o(738),l=o(487).bin,(s=function(e,t){e.constructor==String?e=t&&"binary"===t.encoding?l.stringToBytes(e):n.stringToBytes(e):a(e)?e=Array.prototype.slice.call(e,0):Array.isArray(e)||e.constructor===Uint8Array||(e=e.toString());for(var o=r.bytesToWords(e),c=8*e.length,i=1732584193,u=-271733879,h=-1732584194,d=271733878,p=0;p<o.length;p++)o[p]=16711935&(o[p]<<8|o[p]>>>24)|4278255360&(o[p]<<24|o[p]>>>8);o[c>>>5]|=128<<c%32,o[14+(c+64>>>9<<4)]=c;var f=s._ff,g=s._gg,b=s._hh,m=s._ii;for(p=0;p<o.length;p+=16){var y=i,_=u,v=h,C=d;i=f(i,u,h,d,o[p+0],7,-680876936),d=f(d,i,u,h,o[p+1],12,-389564586),h=f(h,d,i,u,o[p+2],17,606105819),u=f(u,h,d,i,o[p+3],22,-1044525330),i=f(i,u,h,d,o[p+4],7,-176418897),d=f(d,i,u,h,o[p+5],12,1200080426),h=f(h,d,i,u,o[p+6],17,-1473231341),u=f(u,h,d,i,o[p+7],22,-45705983),i=f(i,u,h,d,o[p+8],7,1770035416),d=f(d,i,u,h,o[p+9],12,-1958414417),h=f(h,d,i,u,o[p+10],17,-42063),u=f(u,h,d,i,o[p+11],22,-1990404162),i=f(i,u,h,d,o[p+12],7,1804603682),d=f(d,i,u,h,o[p+13],12,-40341101),h=f(h,d,i,u,o[p+14],17,-1502002290),i=g(i,u=f(u,h,d,i,o[p+15],22,1236535329),h,d,o[p+1],5,-165796510),d=g(d,i,u,h,o[p+6],9,-1069501632),h=g(h,d,i,u,o[p+11],14,643717713),u=g(u,h,d,i,o[p+0],20,-373897302),i=g(i,u,h,d,o[p+5],5,-701558691),d=g(d,i,u,h,o[p+10],9,38016083),h=g(h,d,i,u,o[p+15],14,-660478335),u=g(u,h,d,i,o[p+4],20,-405537848),i=g(i,u,h,d,o[p+9],5,568446438),d=g(d,i,u,h,o[p+14],9,-1019803690),h=g(h,d,i,u,o[p+3],14,-187363961),u=g(u,h,d,i,o[p+8],20,1163531501),i=g(i,u,h,d,o[p+13],5,-1444681467),d=g(d,i,u,h,o[p+2],9,-51403784),h=g(h,d,i,u,o[p+7],14,1735328473),i=b(i,u=g(u,h,d,i,o[p+12],20,-1926607734),h,d,o[p+5],4,-378558),d=b(d,i,u,h,o[p+8],11,-2022574463),h=b(h,d,i,u,o[p+11],16,1839030562),u=b(u,h,d,i,o[p+14],23,-35309556),i=b(i,u,h,d,o[p+1],4,-1530992060),d=b(d,i,u,h,o[p+4],11,1272893353),h=b(h,d,i,u,o[p+7],16,-155497632),u=b(u,h,d,i,o[p+10],23,-1094730640),i=b(i,u,h,d,o[p+13],4,681279174),d=b(d,i,u,h,o[p+0],11,-358537222),h=b(h,d,i,u,o[p+3],16,-722521979),u=b(u,h,d,i,o[p+6],23,76029189),i=b(i,u,h,d,o[p+9],4,-640364487),d=b(d,i,u,h,o[p+12],11,-421815835),h=b(h,d,i,u,o[p+15],16,530742520),i=m(i,u=b(u,h,d,i,o[p+2],23,-995338651),h,d,o[p+0],6,-198630844),d=m(d,i,u,h,o[p+7],10,1126891415),h=m(h,d,i,u,o[p+14],15,-1416354905),u=m(u,h,d,i,o[p+5],21,-57434055),i=m(i,u,h,d,o[p+12],6,1700485571),d=m(d,i,u,h,o[p+3],10,-1894986606),h=m(h,d,i,u,o[p+10],15,-1051523),u=m(u,h,d,i,o[p+1],21,-2054922799),i=m(i,u,h,d,o[p+8],6,1873313359),d=m(d,i,u,h,o[p+15],10,-30611744),h=m(h,d,i,u,o[p+6],15,-1560198380),u=m(u,h,d,i,o[p+13],21,1309151649),i=m(i,u,h,d,o[p+4],6,-145523070),d=m(d,i,u,h,o[p+11],10,-1120210379),h=m(h,d,i,u,o[p+2],15,718787259),u=m(u,h,d,i,o[p+9],21,-343485551),i=i+y>>>0,u=u+_>>>0,h=h+v>>>0,d=d+C>>>0}return r.endian([i,u,h,d])})._ff=function(e,t,o,r,n,a,l){var s=e+(t&o|~t&r)+(n>>>0)+l;return(s<<a|s>>>32-a)+t},s._gg=function(e,t,o,r,n,a,l){var s=e+(t&r|o&~r)+(n>>>0)+l;return(s<<a|s>>>32-a)+t},s._hh=function(e,t,o,r,n,a,l){var s=e+(t^o^r)+(n>>>0)+l;return(s<<a|s>>>32-a)+t},s._ii=function(e,t,o,r,n,a,l){var s=e+(o^(t|~r))+(n>>>0)+l;return(s<<a|s>>>32-a)+t},s._blocksize=16,s._digestsize=16,e.exports=function(e,t){if(null==e)throw new Error("Illegal argument "+e);var o=r.wordsToBytes(s(e,t));return t&&t.asBytes?o:t&&t.asString?l.bytesToString(o):r.bytesToHex(o)}}},o={};function r(e){var n=o[e];if(void 0!==n)return n.exports;var a=o[e]={exports:{}};return t[e](a,a.exports,r),a.exports}r.m=t,e=[],r.O=function(t,o,n,a){if(!o){var l=1/0;for(u=0;u<e.length;u++){o=e[u][0],n=e[u][1],a=e[u][2];for(var s=!0,c=0;c<o.length;c++)(!1&a||l>=a)&&Object.keys(r.O).every((function(e){return r.O[e](o[c])}))?o.splice(c--,1):(s=!1,a<l&&(l=a));if(s){e.splice(u--,1);var i=n();void 0!==i&&(t=i)}}return t}a=a||0;for(var u=e.length;u>0&&e[u-1][2]>a;u--)e[u]=e[u-1];e[u]=[o,n,a]},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,{a:t}),t},r.d=function(e,t){for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){var e={826:0,46:0};r.O.j=function(t){return 0===e[t]};var t=function(t,o){var n,a,l=o[0],s=o[1],c=o[2],i=0;if(l.some((function(t){return 0!==e[t]}))){for(n in s)r.o(s,n)&&(r.m[n]=s[n]);if(c)var u=c(r)}for(t&&t(o);i<l.length;i++)a=l[i],r.o(e,a)&&e[a]&&e[a][0](),e[l[i]]=0;return r.O(u)},o=self.webpackChunkyith_plugin_framewowrk=self.webpackChunkyith_plugin_framewowrk||[];o.forEach(t.bind(null,0)),o.push=t.bind(null,o.push.bind(o))}();var n=r.O(void 0,[46],(function(){return r(783)}));n=r.O(n)}();
1
+ !function(){var e,t={783:function(e,t,o){"use strict";var r=window.wp.element,n=window.React,a=o(568),l=o.n(a),s=window.wp.blocks,c=window.wp.url;function i(e){if(e.status>=200&&e.status<300)return e;throw e}function u(e){return e.json?e.json():e.text()}const h=(0,r.createElement)("svg",{viewBox:"0 0 22 22",xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",role:"img","aria-hidden":"true",focusable:"false"},(0,r.createElement)("path",{width:"22",height:"22",d:"M 18.24 7.628 C 17.291 8.284 16.076 8.971 14.587 9.688 C 15.344 7.186 15.765 4.851 15.849 2.684 C 15.912 0.939 15.133 0.045 13.514 0.003 C 11.558 -0.06 10.275 1.033 9.665 3.284 C 10.007 3.137 10.359 3.063 10.723 3.063 C 11.021 3.063 11.267 3.184 11.459 3.426 C 11.651 3.668 11.736 3.947 11.715 4.262 C 11.695 5.082 11.276 5.961 10.46 6.896 C 9.644 7.833 8.918 8.3 8.282 8.3 C 7.837 8.3 7.625 7.922 7.646 7.165 C 7.667 6.765 7.804 5.955 8.056 4.735 C 8.287 3.579 8.403 2.801 8.403 2.401 C 8.403 1.707 8.224 1.144 7.867 0.713 C 7.509 0.282 6.994 0.098 6.321 0.161 C 5.858 0.203 5.175 0.624 4.27 1.422 C 3.596 2.035 2.923 2.644 2.25 3.254 L 2.976 4.106 C 3.564 3.664 3.922 3.443 4.048 3.443 C 4.448 3.443 4.637 3.717 4.617 4.263 C 4.617 4.306 4.427 4.968 4.049 6.251 C 3.671 7.534 3.471 8.491 3.449 9.122 C 3.407 9.985 3.565 10.647 3.924 11.109 C 4.367 11.677 5.106 11.919 6.142 11.835 C 7.366 11.751 8.591 11.298 9.816 10.479 C 10.323 10.142 10.808 9.753 11.273 9.311 C 11.105 10.153 10.905 10.868 10.673 11.457 C 8.402 12.487 6.762 13.37 5.752 14.107 C 4.321 15.137 3.554 16.241 3.449 17.419 C 3.259 19.459 4.29 20.479 6.541 20.479 C 8.055 20.479 9.517 19.554 10.926 17.703 C 12.125 16.126 13.166 14.022 14.049 11.394 C 15.578 10.635 16.87 9.892 17.928 9.164 C 17.894 9.409 18.319 7.308 18.24 7.628 Z M 7.393 16.095 C 7.056 16.095 6.898 15.947 6.919 15.653 C 6.961 15.106 7.908 14.38 9.759 13.476 C 8.791 15.221 8.002 16.095 7.393 16.095 Z"}));var d=window.lodash,p=o.n(d);const f=(e,t,o)=>{let r=!0;if(t&&t.id&&"value"in t){let n=t.value;["toggle","checkbox"].includes(o)&&(n=!0===n||"yes"===n||1===n),n=p().isArray(n)?n:[n],r=void 0!==e[t.id]&&n.includes(e[t.id])}return r},g=(e,t)=>{const{controlType:o}=e;let r=!0;if(e.deps)if(p().isArray(e.deps))for(let n in e.deps){const a=e.deps[n];if(r=f(t,a,o),!r)break}else r=f(t,e.deps,o);return r},b=(e,t)=>{let o="",r=!1;if(void 0!==e.callback&&(jQuery&&e.callback in jQuery.fn?r=jQuery.fn[e.callback]:e.callback in window&&(r=window[e.callback])),"function"==typeof r)o=r(t,e);else{const r=e.attributes?Object.entries(e.attributes).map((e=>{let[o,r]=e;const n=g(r,t),a=t[o];if(n&&void 0!==a)return o+"="+(r.remove_quotes?a:`"${a}"`)})):[],n=r.length?" "+r.join(" "):"";o=`[${e.shortcode_name}${n}]`}return o};var m=window.wp.components,y=window.wp.blockEditor,_=window.wp.hooks;class v extends n.Component{constructor(){super(...arguments),this.state={html:"",shortcode:"",shortcodeHash:"",ajaxUpdated:!1,ajaxSuccess:!1,ajaxResponse:!1,loading:!1,firstLoading:!0},this.ajaxTimeout=!1}componentDidMount(){this.updateShortcode()}componentDidUpdate(e,t,o){const{shortcode:r,shortcodeHash:n,ajaxSuccess:a,ajaxResponse:l,ajaxUpdated:s}=this.state;(0,d.isEqual)(e,this.props)||this.updateShortcode(),this.props.blockArgs.do_shortcode&&s&&(a&&(0,_.doAction)("yith_plugin_fw_gutenberg_success_do_shortcode",r,n,l),(0,_.doAction)("yith_plugin_fw_gutenberg_after_do_shortcode",r,n,l),this.setState({ajaxUpdated:!1}))}updateShortcode(){const{attributes:e,blockArgs:t}=this.props;this.setState({loading:!0,ajaxSuccess:!1,ajaxResponse:!1});const o=b(t,e),r=l()(o);t.do_shortcode?(this.ajaxTimeout&&clearTimeout(this.ajaxTimeout),(0,_.doAction)("yith_plugin_fw_gutenberg_before_do_shortcode",o,r),this.ajaxTimeout=setTimeout((()=>{(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:yithGutenberg.ajaxurl;return t=(0,c.addQueryArgs)(t,e),fetch(t).then(i).then(u)})({action:"yith_plugin_fw_gutenberg_do_shortcode",shortcode:o}).then((e=>{this.setState({loading:!1,firstLoading:!1,html:e.html,shortcode:o,shortcodeHash:r,ajaxSuccess:!0,ajaxUpdated:!0,ajaxResponse:e})})).catch((e=>{console.log({error:e})}))}),300)):this.setState({loading:!1,firstLoading:!1,html:o,shortcode:o,shortcodeHash:r})}render(){const{html:e,loading:t,firstLoading:o,shortcode:n,shortcodeHash:a}=this.state,{blockArgs:l}=this.props,{do_shortcode:s,title:c,empty_message:i}=l,u="block-editor-yith-plugin-fw-shortcode-block";let d=[u],p=s?"html":"shortcode",f=e,g="";o&&t?p="first-loading":s&&!e&&(p="empty-html",f=n,!t&&i&&(g=i));const b=["first-loading","empty-html","shortcode"].includes(p),y=!["first-loading","empty-html"].includes(p),_=!!g;return d.push(`${u}--${p}`),d.push(_?`${u}--has-message`:`${u}--no-message`),d.push(`yith_block_${a}`),(0,r.createElement)(r.Fragment,null,(0,r.createElement)("div",{className:d.join(" ")},t?(0,r.createElement)("div",{className:`${u}__spinner-wrap`},(0,r.createElement)(m.Spinner,null)):"",b&&(0,r.createElement)("div",{className:`${u}__title components-placeholder__label`},h,c),_&&(0,r.createElement)(r.RawHTML,{className:`${u}__message`},g),y&&(0,r.createElement)(r.RawHTML,{className:`${u}__content`},f)))}}var C=window.wp.compose;function w(e){let{className:t,label:o,onChange:n,value:a,help:l,disableAlpha:s}=e;const c=`inspector-yith-color-picker-control-${(0,C.useInstanceId)(w)}`;return(0,r.createElement)(m.BaseControl,{id:c,label:o,className:`block-editor-yith-color-control ${t}`,help:l},(0,r.createElement)(m.ColorPicker,{color:a,disableAlpha:s,onChangeComplete:n}))}function k(e){let{label:t,colorValue:o}=e;return(0,r.createElement)(r.Fragment,null,t,!!o&&(0,r.createElement)(m.ColorIndicator,{colorValue:o}))}function x(e){let{className:t,label:o,onChange:n,value:a,help:l,palette:s,clearable:c}=e;s=s||(0,y.useSetting)("color.palette");const i=`inspector-yith-color-palette-control-${(0,C.useInstanceId)(x)}`;return(0,r.createElement)(m.BaseControl,{id:i,className:`block-editor-yith-color-palette-control ${t}`,help:l},(0,r.createElement)("fieldset",null,(0,r.createElement)("legend",null,(0,r.createElement)("div",{className:"block-editor-yith-color-palette-control__color-indicator"},(0,r.createElement)(m.BaseControl.VisualLabel,null,(0,r.createElement)(k,{colorValue:a,label:o})))),(0,r.createElement)(m.ColorPalette,{value:a,onChange:n,colors:s,clearable:c})))}const j=(e,t)=>function(o){let{attributes:n,className:a,setAttributes:l}=o;const s=(e,t,o)=>{["colorpicker","color"].includes(o)&&(e=e.color.getAlpha()<1?e.color.toRgbString():e.color.toHexString());let r={};r[t]=e,l(r)};return(0,r.createElement)(r.Fragment,null,!!t.attributes&&(0,r.createElement)(y.InspectorControls,null,(0,r.createElement)(m.PanelBody,null,Object.entries(t.attributes).map((t=>{let[o,a]=t;const l=((t,o)=>{const{controlType:a}=o,l=n[t],c=((e,t)=>{let o="";return e.helps&&e.helps.checked&&e.helps.unchecked?o=t?e.helps.checked:e.helps.unchecked:e.help&&(o=e.help),o})(o,l);let i=`${e}__${t}-field-wrapper`;const u=g(o,n);o.wrapper_class&&(i+=" "+o.wrapper_class);let h=!1;if(u)switch(a){case"select":h=(0,r.createElement)(m.SelectControl,{className:i,key:t,value:l,label:o.label,options:o.options,help:c,multiple:!!o.multiple,onChange:e=>{s(e,t,a)}});break;case"text":h=(0,r.createElement)(m.TextControl,{className:i,key:t,value:l,label:o.label,help:c,onChange:e=>{s(e,t,a)}});break;case"textarea":h=(0,r.createElement)(m.TextareaControl,{className:i,key:t,value:l,label:o.label,help:c,onChange:e=>{s(e,t,a)}});break;case"toggle":h=(0,r.createElement)(m.ToggleControl,{className:i,key:t,label:o.label,help:c,checked:l,onChange:e=>{s(e,t,a)}});break;case"checkbox":h=(0,r.createElement)(m.CheckboxControl,{className:i,key:t,label:o.label,help:c,checked:l,onChange:e=>{s(e,t,a)}});break;case"number":case"range":h=(0,r.createElement)(m.RangeControl,{className:i,key:t,value:l,label:o.label,help:c,min:o.min,max:o.max,onChange:e=>{s(e,t,a)}});break;case"color":case"colorpicker":h=(0,r.createElement)(w,{className:i,key:t,label:o.label,help:c,value:l,disableAlpha:o.disableAlpha,onChange:e=>{s(e,t,a)}});break;case"color-palette":h=(0,r.createElement)(x,{className:i,key:t,label:o.label,help:c,value:l,clearable:o.clearable||!1,onChange:e=>{s(e,t,a)}});break;case"radio":h=(0,r.createElement)(m.RadioControl,{key:t,label:o.label,options:o.options,selected:l,help:c,onChange:e=>{s(e,t,a)}});break;default:h=!1}return h})(o,a);if(l)return l})))),(0,r.createElement)(v,{attributes:n,blockArgs:t}))},E=[{key:"yith_plugin_fw_gutenberg_before_do_shortcode",delay:0},{key:"yith_plugin_fw_gutenberg_success_do_shortcode",delay:200},{key:"yith_plugin_fw_gutenberg_after_do_shortcode",delay:200}];for(const e of E)(0,_.addAction)(e.key,"yith-plugin-fw/jquery-events",(function(){for(var t=arguments.length,o=new Array(t),r=0;r<t;r++)o[r]=arguments[r];"jQuery"in window&&(e.delay?setTimeout((()=>{jQuery(document).trigger(e.key,Object.values(o))}),e.delay):jQuery(document).trigger(e.key,Object.values(o)))}));for(const[e,t]of Object.entries(yithGutenbergBlocks))(0,s.registerBlockType)("yith/"+e,{title:t.title,description:t.description,category:t.category,attributes:t.attributes,icon:void 0!==t.icon?t.icon:h,keywords:t.keywords,edit:j(e,t),save:e=>{let{attributes:o}=e;return b(t,o)},deprecated:[{attributes:t.attributes,save:e=>{let{attributes:o}=e;const n=b(t,o),a='<span class="yith_block_'+l()(n)+'">'+n+"</span>";return(0,r.createElement)(r.RawHTML,null,a)}}]})},487:function(e){var t={utf8:{stringToBytes:function(e){return t.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(t.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],o=0;o<e.length;o++)t.push(255&e.charCodeAt(o));return t},bytesToString:function(e){for(var t=[],o=0;o<e.length;o++)t.push(String.fromCharCode(e[o]));return t.join("")}}};e.exports=t},12:function(e){var t,o;t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o={rotl:function(e,t){return e<<t|e>>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(e){if(e.constructor==Number)return 16711935&o.rotl(e,8)|4278255360&o.rotl(e,24);for(var t=0;t<e.length;t++)e[t]=o.endian(e[t]);return e},randomBytes:function(e){for(var t=[];e>0;e--)t.push(Math.floor(256*Math.random()));return t},bytesToWords:function(e){for(var t=[],o=0,r=0;o<e.length;o++,r+=8)t[r>>>5]|=e[o]<<24-r%32;return t},wordsToBytes:function(e){for(var t=[],o=0;o<32*e.length;o+=8)t.push(e[o>>>5]>>>24-o%32&255);return t},bytesToHex:function(e){for(var t=[],o=0;o<e.length;o++)t.push((e[o]>>>4).toString(16)),t.push((15&e[o]).toString(16));return t.join("")},hexToBytes:function(e){for(var t=[],o=0;o<e.length;o+=2)t.push(parseInt(e.substr(o,2),16));return t},bytesToBase64:function(e){for(var o=[],r=0;r<e.length;r+=3)for(var n=e[r]<<16|e[r+1]<<8|e[r+2],a=0;a<4;a++)8*r+6*a<=8*e.length?o.push(t.charAt(n>>>6*(3-a)&63)):o.push("=");return o.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var o=[],r=0,n=0;r<e.length;n=++r%4)0!=n&&o.push((t.indexOf(e.charAt(r-1))&Math.pow(2,-2*n+8)-1)<<2*n|t.indexOf(e.charAt(r))>>>6-2*n);return o}},e.exports=o},738:function(e){function t(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}e.exports=function(e){return null!=e&&(t(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&t(e.slice(0,0))}(e)||!!e._isBuffer)}},568:function(e,t,o){var r,n,a,l,s;r=o(12),n=o(487).utf8,a=o(738),l=o(487).bin,(s=function(e,t){e.constructor==String?e=t&&"binary"===t.encoding?l.stringToBytes(e):n.stringToBytes(e):a(e)?e=Array.prototype.slice.call(e,0):Array.isArray(e)||e.constructor===Uint8Array||(e=e.toString());for(var o=r.bytesToWords(e),c=8*e.length,i=1732584193,u=-271733879,h=-1732584194,d=271733878,p=0;p<o.length;p++)o[p]=16711935&(o[p]<<8|o[p]>>>24)|4278255360&(o[p]<<24|o[p]>>>8);o[c>>>5]|=128<<c%32,o[14+(c+64>>>9<<4)]=c;var f=s._ff,g=s._gg,b=s._hh,m=s._ii;for(p=0;p<o.length;p+=16){var y=i,_=u,v=h,C=d;i=f(i,u,h,d,o[p+0],7,-680876936),d=f(d,i,u,h,o[p+1],12,-389564586),h=f(h,d,i,u,o[p+2],17,606105819),u=f(u,h,d,i,o[p+3],22,-1044525330),i=f(i,u,h,d,o[p+4],7,-176418897),d=f(d,i,u,h,o[p+5],12,1200080426),h=f(h,d,i,u,o[p+6],17,-1473231341),u=f(u,h,d,i,o[p+7],22,-45705983),i=f(i,u,h,d,o[p+8],7,1770035416),d=f(d,i,u,h,o[p+9],12,-1958414417),h=f(h,d,i,u,o[p+10],17,-42063),u=f(u,h,d,i,o[p+11],22,-1990404162),i=f(i,u,h,d,o[p+12],7,1804603682),d=f(d,i,u,h,o[p+13],12,-40341101),h=f(h,d,i,u,o[p+14],17,-1502002290),i=g(i,u=f(u,h,d,i,o[p+15],22,1236535329),h,d,o[p+1],5,-165796510),d=g(d,i,u,h,o[p+6],9,-1069501632),h=g(h,d,i,u,o[p+11],14,643717713),u=g(u,h,d,i,o[p+0],20,-373897302),i=g(i,u,h,d,o[p+5],5,-701558691),d=g(d,i,u,h,o[p+10],9,38016083),h=g(h,d,i,u,o[p+15],14,-660478335),u=g(u,h,d,i,o[p+4],20,-405537848),i=g(i,u,h,d,o[p+9],5,568446438),d=g(d,i,u,h,o[p+14],9,-1019803690),h=g(h,d,i,u,o[p+3],14,-187363961),u=g(u,h,d,i,o[p+8],20,1163531501),i=g(i,u,h,d,o[p+13],5,-1444681467),d=g(d,i,u,h,o[p+2],9,-51403784),h=g(h,d,i,u,o[p+7],14,1735328473),i=b(i,u=g(u,h,d,i,o[p+12],20,-1926607734),h,d,o[p+5],4,-378558),d=b(d,i,u,h,o[p+8],11,-2022574463),h=b(h,d,i,u,o[p+11],16,1839030562),u=b(u,h,d,i,o[p+14],23,-35309556),i=b(i,u,h,d,o[p+1],4,-1530992060),d=b(d,i,u,h,o[p+4],11,1272893353),h=b(h,d,i,u,o[p+7],16,-155497632),u=b(u,h,d,i,o[p+10],23,-1094730640),i=b(i,u,h,d,o[p+13],4,681279174),d=b(d,i,u,h,o[p+0],11,-358537222),h=b(h,d,i,u,o[p+3],16,-722521979),u=b(u,h,d,i,o[p+6],23,76029189),i=b(i,u,h,d,o[p+9],4,-640364487),d=b(d,i,u,h,o[p+12],11,-421815835),h=b(h,d,i,u,o[p+15],16,530742520),i=m(i,u=b(u,h,d,i,o[p+2],23,-995338651),h,d,o[p+0],6,-198630844),d=m(d,i,u,h,o[p+7],10,1126891415),h=m(h,d,i,u,o[p+14],15,-1416354905),u=m(u,h,d,i,o[p+5],21,-57434055),i=m(i,u,h,d,o[p+12],6,1700485571),d=m(d,i,u,h,o[p+3],10,-1894986606),h=m(h,d,i,u,o[p+10],15,-1051523),u=m(u,h,d,i,o[p+1],21,-2054922799),i=m(i,u,h,d,o[p+8],6,1873313359),d=m(d,i,u,h,o[p+15],10,-30611744),h=m(h,d,i,u,o[p+6],15,-1560198380),u=m(u,h,d,i,o[p+13],21,1309151649),i=m(i,u,h,d,o[p+4],6,-145523070),d=m(d,i,u,h,o[p+11],10,-1120210379),h=m(h,d,i,u,o[p+2],15,718787259),u=m(u,h,d,i,o[p+9],21,-343485551),i=i+y>>>0,u=u+_>>>0,h=h+v>>>0,d=d+C>>>0}return r.endian([i,u,h,d])})._ff=function(e,t,o,r,n,a,l){var s=e+(t&o|~t&r)+(n>>>0)+l;return(s<<a|s>>>32-a)+t},s._gg=function(e,t,o,r,n,a,l){var s=e+(t&r|o&~r)+(n>>>0)+l;return(s<<a|s>>>32-a)+t},s._hh=function(e,t,o,r,n,a,l){var s=e+(t^o^r)+(n>>>0)+l;return(s<<a|s>>>32-a)+t},s._ii=function(e,t,o,r,n,a,l){var s=e+(o^(t|~r))+(n>>>0)+l;return(s<<a|s>>>32-a)+t},s._blocksize=16,s._digestsize=16,e.exports=function(e,t){if(null==e)throw new Error("Illegal argument "+e);var o=r.wordsToBytes(s(e,t));return t&&t.asBytes?o:t&&t.asString?l.bytesToString(o):r.bytesToHex(o)}}},o={};function r(e){var n=o[e];if(void 0!==n)return n.exports;var a=o[e]={exports:{}};return t[e](a,a.exports,r),a.exports}r.m=t,e=[],r.O=function(t,o,n,a){if(!o){var l=1/0;for(u=0;u<e.length;u++){o=e[u][0],n=e[u][1],a=e[u][2];for(var s=!0,c=0;c<o.length;c++)(!1&a||l>=a)&&Object.keys(r.O).every((function(e){return r.O[e](o[c])}))?o.splice(c--,1):(s=!1,a<l&&(l=a));if(s){e.splice(u--,1);var i=n();void 0!==i&&(t=i)}}return t}a=a||0;for(var u=e.length;u>0&&e[u-1][2]>a;u--)e[u]=e[u-1];e[u]=[o,n,a]},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,{a:t}),t},r.d=function(e,t){for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){var e={826:0,46:0};r.O.j=function(t){return 0===e[t]};var t=function(t,o){var n,a,l=o[0],s=o[1],c=o[2],i=0;if(l.some((function(t){return 0!==e[t]}))){for(n in s)r.o(s,n)&&(r.m[n]=s[n]);if(c)var u=c(r)}for(t&&t(o);i<l.length;i++)a=l[i],r.o(e,a)&&e[a]&&e[a][0](),e[l[i]]=0;return r.O(u)},o=self.webpackChunkyith_plugin_framewowrk=self.webpackChunkyith_plugin_framewowrk||[];o.forEach(t.bind(null,0)),o.push=t.bind(null,o.push.bind(o))}();var n=r.O(void 0,[46],(function(){return r(783)}));n=r.O(n)}();
plugin-fw/includes/class-yit-plugin-panel-woocommerce.php CHANGED
@@ -82,6 +82,8 @@ if ( ! class_exists( 'YIT_Plugin_Panel_WooCommerce' ) ) {
82
  $this->links = $this->settings['links'];
83
  }
84
 
 
 
85
  add_action( 'admin_init', array( $this, 'set_default_options' ) );
86
  add_action( 'admin_menu', array( $this, 'add_setting_page' ) );
87
  add_action( 'admin_menu', array( $this, 'add_premium_version_upgrade_to_menu' ), 100 );
@@ -280,7 +282,9 @@ if ( ! class_exists( 'YIT_Plugin_Panel_WooCommerce' ) ) {
280
 
281
  $this->print_tabs_nav();
282
 
283
- if ( $custom_tab_options ) {
 
 
284
  $this->print_custom_tab( $custom_tab_options );
285
  } elseif ( $this->is_help_tab() ) {
286
  $this->print_help_tab();
@@ -658,7 +662,7 @@ if ( ! class_exists( 'YIT_Plugin_Panel_WooCommerce' ) ) {
658
  check_ajax_referer( 'save-toggle-element', 'security' );
659
 
660
  if ( ! current_user_can( $this->settings['capability'] ) ) {
661
- wp_die( - 1 );
662
  }
663
 
664
  $posted = $_POST;
@@ -687,7 +691,7 @@ if ( ! class_exists( 'YIT_Plugin_Panel_WooCommerce' ) ) {
687
  $i = 0;
688
  $new_value = array();
689
  foreach ( $order_elements as $key ) {
690
- $index = apply_filters( 'yith_toggle_elements_index', $i ++, $key );
691
  $new_value[ $index ] = $value[ $key ];
692
  }
693
 
82
  $this->links = $this->settings['links'];
83
  }
84
 
85
+ $this->maybe_init_premium_tab();
86
+
87
  add_action( 'admin_init', array( $this, 'set_default_options' ) );
88
  add_action( 'admin_menu', array( $this, 'add_setting_page' ) );
89
  add_action( 'admin_menu', array( $this, 'add_premium_version_upgrade_to_menu' ), 100 );
282
 
283
  $this->print_tabs_nav();
284
 
285
+ if ( $this->is_premium_tab() && $this->has_premium_tab() ) {
286
+ $this->print_premium_tab();
287
+ } elseif ( $custom_tab_options ) {
288
  $this->print_custom_tab( $custom_tab_options );
289
  } elseif ( $this->is_help_tab() ) {
290
  $this->print_help_tab();
662
  check_ajax_referer( 'save-toggle-element', 'security' );
663
 
664
  if ( ! current_user_can( $this->settings['capability'] ) ) {
665
+ wp_die( -1 );
666
  }
667
 
668
  $posted = $_POST;
691
  $i = 0;
692
  $new_value = array();
693
  foreach ( $order_elements as $key ) {
694
+ $index = apply_filters( 'yith_toggle_elements_index', $i++, $key );
695
  $new_value[ $index ] = $value[ $key ];
696
  }
697
 
plugin-fw/includes/class-yit-plugin-panel.php CHANGED
@@ -103,6 +103,8 @@ if ( ! class_exists( 'YIT_Plugin_Panel' ) ) {
103
  $this->links = $this->settings['links'];
104
  }
105
 
 
 
106
  add_action( 'admin_init', array( $this, 'register_settings' ) );
107
  add_action( 'admin_menu', array( $this, 'add_setting_page' ), 20 );
108
  add_action( 'admin_menu', array( $this, 'add_premium_version_upgrade_to_menu' ), 100 );
@@ -113,7 +115,7 @@ if ( ! class_exists( 'YIT_Plugin_Panel' ) ) {
113
  add_action( 'admin_init', array( $this, 'maybe_redirect_to_proper_wp_page' ) );
114
 
115
  /* Add UTM tracking code on premium tab */
116
- add_filter( 'yith_plugin_fw_premium_landing_uri', array( $this, 'add_utm_data_on_premium_tab' ), 10, 2 );
117
  // Init actions once to prevent multiple initialization.
118
  static::init_actions();
119
  }
@@ -626,8 +628,11 @@ if ( ! class_exists( 'YIT_Plugin_Panel' ) ) {
626
  do_action( 'yith_plugin_fw_before_yith_panel', $this->settings['page'] );
627
 
628
  $this->print_tabs_nav();
 
 
629
 
630
- if ( $custom_tab_options ) {
 
631
  $this->print_custom_tab( $custom_tab_options );
632
 
633
  return;
@@ -802,7 +807,7 @@ if ( ! class_exists( 'YIT_Plugin_Panel' ) ) {
802
  'main_video' => false,
803
  'playlists' => array(),
804
  'hc_url' => 'https://support.yithemes.com/hc/',
805
- 'doc_url' => $this->settings['plugin_slug'] ? 'https://docs.yithemes.com/' . $this->settings['plugin_slug'] . '/' : '',
806
  'submit_ticket_url' => 'https://yithemes.com/my-account/support/submit-a-ticket/',
807
  'show_hc_articles' => true,
808
  'show_submit_ticket' => true,
@@ -810,7 +815,7 @@ if ( ! class_exists( 'YIT_Plugin_Panel' ) ) {
810
  );
811
 
812
  // add campaign parameters to url.
813
- if ( $this->settings['plugin_slug'] ) {
814
  $utm_medium = $this->settings['plugin_slug'];
815
  $utm_source = 'wp-premium-dashboard';
816
  $utm_campaign = 'help-tab';
@@ -832,11 +837,72 @@ if ( ! class_exists( 'YIT_Plugin_Panel' ) ) {
832
  // set template variables.
833
  $current_tab = $this->get_current_tab();
834
  $current_sub_tab = $this->get_current_sub_tab();
835
- $latest_articles = $this->settings['plugin_slug'] ? YIT_Help_Desk::get_latest_articles( $this->settings['plugin_slug'] ) : array();
836
 
837
  include YIT_CORE_PLUGIN_TEMPLATE_PATH . '/panel/help-tab.php';
838
  }
839
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
840
  /**
841
  * Add sections and fields to setting panel.
842
  * Read all options and show sections and fields.
@@ -1381,7 +1447,7 @@ if ( ! class_exists( 'YIT_Plugin_Panel' ) ) {
1381
 
1382
  usort(
1383
  $sorted_plugins,
1384
- function ( $a, $b ) {
1385
  return strcmp( current( $a ), current( $b ) );
1386
  }
1387
  );
@@ -1704,8 +1770,8 @@ if ( ! class_exists( 'YIT_Plugin_Panel' ) ) {
1704
  /**
1705
  * Add UTM data in premium tab
1706
  *
1707
- * @param string $url The url that want to track.
1708
- * @param string $slug Plugin slug.
1709
  *
1710
  * @since 3.8.4
1711
  */
103
  $this->links = $this->settings['links'];
104
  }
105
 
106
+ $this->maybe_init_premium_tab();
107
+
108
  add_action( 'admin_init', array( $this, 'register_settings' ) );
109
  add_action( 'admin_menu', array( $this, 'add_setting_page' ), 20 );
110
  add_action( 'admin_menu', array( $this, 'add_premium_version_upgrade_to_menu' ), 100 );
115
  add_action( 'admin_init', array( $this, 'maybe_redirect_to_proper_wp_page' ) );
116
 
117
  /* Add UTM tracking code on premium tab */
118
+ add_filter( 'yith_plugin_fw_premium_landing_uri', array( $this, 'add_utm_data_on_premium_tab' ), 10, 2 );
119
  // Init actions once to prevent multiple initialization.
120
  static::init_actions();
121
  }
628
  do_action( 'yith_plugin_fw_before_yith_panel', $this->settings['page'] );
629
 
630
  $this->print_tabs_nav();
631
+ if ( $this->is_premium_tab() && $this->has_premium_tab() ) {
632
+ $this->print_premium_tab();
633
 
634
+ return;
635
+ } elseif ( $custom_tab_options ) {
636
  $this->print_custom_tab( $custom_tab_options );
637
 
638
  return;
807
  'main_video' => false,
808
  'playlists' => array(),
809
  'hc_url' => 'https://support.yithemes.com/hc/',
810
+ 'doc_url' => isset( $this->settings['plugin_slug'] ) ? 'https://docs.yithemes.com/' . $this->settings['plugin_slug'] . '/' : '',
811
  'submit_ticket_url' => 'https://yithemes.com/my-account/support/submit-a-ticket/',
812
  'show_hc_articles' => true,
813
  'show_submit_ticket' => true,
815
  );
816
 
817
  // add campaign parameters to url.
818
+ if ( isset( $this->settings['plugin_slug'] ) ) {
819
  $utm_medium = $this->settings['plugin_slug'];
820
  $utm_source = 'wp-premium-dashboard';
821
  $utm_campaign = 'help-tab';
837
  // set template variables.
838
  $current_tab = $this->get_current_tab();
839
  $current_sub_tab = $this->get_current_sub_tab();
840
+ $latest_articles = isset( $this->settings['plugin_slug'] ) ? YIT_Help_Desk::get_latest_articles( $this->settings['plugin_slug'] ) : array();
841
 
842
  include YIT_CORE_PLUGIN_TEMPLATE_PATH . '/panel/help-tab.php';
843
  }
844
 
845
+ /**
846
+ * Add premium tab in admin-tabs if is set.
847
+ *
848
+ * @author Giuseppe Arcifa <giuseppe.arcifa@yithemes.com>
849
+ * @since 3.9.0
850
+ */
851
+ protected function maybe_init_premium_tab() {
852
+ if ( isset( $this->settings['premium_tab'] ) ) {
853
+ $this->settings['admin-tabs']['premium'] = _x( 'Get premium', 'Premium tab name', 'yith-plugin-fw' );
854
+ }
855
+ }
856
+
857
+ /**
858
+ * Checks whether current tab is Premium Tab
859
+ *
860
+ * @return bool
861
+ * @author Giuseppe Arcifa <giuseppe.arcifa@yithemes.com>
862
+ * @since 3.9.0
863
+ */
864
+ protected function is_premium_tab() {
865
+ return 'premium' === $this->get_current_tab();
866
+ }
867
+
868
+ /**
869
+ * Check if panel has premium tab
870
+ * (Check for premium Tab through the premium_tab param fully handled by plugin-fw)
871
+ *
872
+ * @return bool
873
+ * @author Giuseppe Arcifa <giuseppe.arcifa@yithemes.com>
874
+ * @since 3.9.0
875
+ */
876
+ protected function has_premium_tab() {
877
+ return $this->is_free() && ! empty( $this->settings['premium_tab'] );
878
+ }
879
+
880
+ /**
881
+ * Prints Premium Tab
882
+ *
883
+ * @return void
884
+ * @author Giuseppe Arcifa <giuseppe.arcifa@yithemes.com>
885
+ * @since 3.9.0
886
+ */
887
+ protected function print_premium_tab() {
888
+ $options = $this->settings['premium_tab'] ?? array();
889
+
890
+ $defaults = array(
891
+ 'premium_features' => array(),
892
+ 'main_image_url' => '',
893
+ 'show_free_vs_premium_link' => true,
894
+ );
895
+ $options = wp_parse_args( $options, $defaults );
896
+
897
+ $plugin_slug = ! empty( $this->settings['plugin_slug'] ) ? $this->settings['plugin_slug'] : '';
898
+ $premium_url = '';
899
+ if ( $plugin_slug ) {
900
+ $premium_url = ! empty( $options['landing_page_url'] ) ? $options['landing_page_url'] : 'https://yithemes.com/themes/plugins/' . $plugin_slug;
901
+ }
902
+
903
+ include YIT_CORE_PLUGIN_TEMPLATE_PATH . '/panel/premium-tab.php';
904
+ }
905
+
906
  /**
907
  * Add sections and fields to setting panel.
908
  * Read all options and show sections and fields.
1447
 
1448
  usort(
1449
  $sorted_plugins,
1450
+ function( $a, $b ) {
1451
  return strcmp( current( $a ), current( $b ) );
1452
  }
1453
  );
1770
  /**
1771
  * Add UTM data in premium tab
1772
  *
1773
+ * @param string $url The url that want to track.
1774
+ * @param string $slug Plugin slug.
1775
  *
1776
  * @since 3.8.4
1777
  */
plugin-fw/init.php CHANGED
@@ -1,13 +1,13 @@
1
  <?php
2
  /**
3
  * Framework Name: YIT Plugin Framework
4
- * Version: 3.8.6
5
  * Author: YITH
6
  * Text Domain: yith-plugin-fw
7
  * Domain Path: /languages/
8
  *
9
  * @author YITH
10
- * @version 3.8.6
11
  * @package YITH\PluginFramework
12
  */
13
 
1
  <?php
2
  /**
3
  * Framework Name: YIT Plugin Framework
4
+ * Version: 3.9.0
5
  * Author: YITH
6
  * Text Domain: yith-plugin-fw
7
  * Domain Path: /languages/
8
  *
9
  * @author YITH
10
+ * @version 3.9.0
11
  * @package YITH\PluginFramework
12
  */
13
 
plugin-fw/languages/yith-plugin-fw-el.po CHANGED
@@ -4,7 +4,7 @@ msgid ""
4
  msgstr ""
5
  "Project-Id-Version: YITH Framework\n"
6
  "Report-Msgid-Bugs-To: YITH <plugins@yithemes.com>\n"
7
- "POT-Creation-Date: 2021-12-02 07:20:36+00:00\n"
8
  "PO-Revision-Date: 2021-02-11 18:07:46+0000\n"
9
  "Language: el_GR\n"
10
  "MIME-Version: 1.0\n"
@@ -70,7 +70,7 @@ msgstr "Αξία χρώματος"
70
  msgid "There was an error with your request; please try again later."
71
  msgstr ""
72
 
73
- #: includes/class-yit-plugin-panel-woocommerce.php:426
74
  msgid "The changes you have made will be lost if you leave this page."
75
  msgstr ""
76
  "Οι αλλαγές που έχετε δημιουργήσει θα χαθούν αν αφήσετε αυτήν την σελίδα."
@@ -83,17 +83,17 @@ msgstr "Ρυθμίσεις Προσθέτου"
83
  msgid "Settings"
84
  msgstr "Ρυθμίσεις"
85
 
86
- #: includes/class-yit-plugin-panel.php:453
87
- #: includes/class-yit-plugin-panel.php:456
88
  msgid "How to install premium version"
89
  msgstr "Πώς να εγκαταστήσετε την προηγμένη έκδοση"
90
 
91
- #: includes/class-yit-plugin-panel.php:654
92
  #: includes/class-yit-plugin-subpanel.php:132
93
  msgid "Save Changes"
94
  msgstr "Αποθήκευση Αλλαγών"
95
 
96
- #: includes/class-yit-plugin-panel.php:659
97
  #: includes/class-yit-plugin-subpanel.php:136
98
  #: templates/panel/woocommerce/woocommerce-form.php:14
99
  msgid ""
@@ -102,73 +102,73 @@ msgstr ""
102
  "Αν συνεχίσετε με αυτή την ενέργεια θα επαναφέρετε όλες τις επιλογές στη "
103
  "σελίδα."
104
 
105
- #: includes/class-yit-plugin-panel.php:659
106
  #: includes/class-yit-plugin-subpanel.php:136
107
  #: templates/panel/woocommerce/woocommerce-form.php:14
108
  msgid "Are you sure?"
109
  msgstr "Είστε σίγουρος;"
110
 
111
- #: includes/class-yit-plugin-panel.php:663
112
  #: includes/class-yit-plugin-subpanel.php:139
113
  msgid "Reset to default"
114
  msgstr "Επαναφορά σε προεπιλεγμένο"
115
 
116
- #: includes/class-yit-plugin-panel.php:981
117
  msgid ""
118
  "The element you have entered already exists. Please, enter another name."
119
  msgstr "Το στοιχείο που εισάγατε υπάρχει ήδη. Παρακαλώ, εισάγετε άλλο όνομα."
120
 
121
- #: includes/class-yit-plugin-panel.php:982
122
  msgid "Settings saved"
123
  msgstr "Ρυθμίσεις αποθηκεύτηκαν"
124
 
125
- #: includes/class-yit-plugin-panel.php:983
126
  msgid "Settings reset"
127
  msgstr "Επαναφορά ρυθμίσεων"
128
 
129
- #: includes/class-yit-plugin-panel.php:984
130
  msgid "Element deleted correctly."
131
  msgstr "Το στοιχείο διαγράφηκε επιτυχώς."
132
 
133
- #: includes/class-yit-plugin-panel.php:985
134
- #: includes/class-yit-plugin-panel.php:986
135
  msgid "Element updated correctly."
136
  msgstr "Το στοιχείο αναβαθμίστηκε επιτυχώς."
137
 
138
- #: includes/class-yit-plugin-panel.php:987
139
  msgid "Database imported correctly."
140
  msgstr "Επιτυχής εισαγωγή βάσης δεδομένων."
141
 
142
- #: includes/class-yit-plugin-panel.php:988
143
  msgid "An error has occurred during import. Please try again."
144
  msgstr "Παρουσιάστηκε σφάλμα κατά την εισαγωγή. Παρακαλώ προσπαθήστε ξανά."
145
 
146
- #: includes/class-yit-plugin-panel.php:989
147
  msgid "The added file is not valid."
148
  msgstr "Το προστιθέμενο αρχείο δεν είναι έγκυρο."
149
 
150
- #: includes/class-yit-plugin-panel.php:990
151
  msgid "Sorry, import is disabled."
152
  msgstr "Συγνώμη, η εισαγωγή είναι απενεργοποιημένη."
153
 
154
- #: includes/class-yit-plugin-panel.php:991
155
  msgid "Sorting successful."
156
  msgstr "Διαλογή επιτυχής."
157
 
158
- #: includes/class-yit-plugin-panel.php:1459
159
  msgid "We need your support"
160
  msgstr "Χρειαζόμαστε την υποστήριξή σας"
161
 
162
- #: includes/class-yit-plugin-panel.php:1460
163
  msgid "to keep updating and improving the plugin. Please,"
164
  msgstr ""
165
  "για να διατηρήσετε την ενημέρωση και τη βελτίωση του πρόσθετου. Παρακαλώ,"
166
 
167
- #: includes/class-yit-plugin-panel.php:1462
168
  msgid "help us by leaving a good review"
169
  msgstr ""
170
 
171
- #: includes/class-yit-plugin-panel.php:1463
172
  msgid ":) Thanks!"
173
  msgstr ":) Ευχαριστώ!"
174
 
@@ -718,23 +718,28 @@ msgctxt "Delete confirmation action"
718
  msgid "Yes, delete"
719
  msgstr ""
720
 
721
- #: includes/class-yit-plugin-panel.php:490
722
  msgctxt "Help tab name"
723
  msgid "Help"
724
  msgstr ""
725
 
726
  #. translators: 1. Plugin name.
727
- #: includes/class-yit-plugin-panel.php:800
728
  msgctxt "Help tab default title"
729
  msgid "Thank you for purchasing %s!"
730
  msgstr ""
731
 
732
- #: includes/class-yit-plugin-panel.php:801
733
  msgctxt "Help tab default description"
734
  msgid ""
735
  "We want to help you to enjoy a wonderful experience with all our products."
736
  msgstr ""
737
 
 
 
 
 
 
738
  #: includes/class-yith-dashboard.php:96
739
  msgctxt "Plugin FW"
740
  msgid "View Changelog"
@@ -919,6 +924,37 @@ msgctxt "Help tab submit ticket button"
919
  msgid "Submit a ticket"
920
  msgstr ""
921
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
922
  #: yit-functions.php:1925
923
  msgctxt "Post action"
924
  msgid "Preview"
4
  msgstr ""
5
  "Project-Id-Version: YITH Framework\n"
6
  "Report-Msgid-Bugs-To: YITH <plugins@yithemes.com>\n"
7
+ "POT-Creation-Date: 2021-12-13 14:46:02+00:00\n"
8
  "PO-Revision-Date: 2021-02-11 18:07:46+0000\n"
9
  "Language: el_GR\n"
10
  "MIME-Version: 1.0\n"
70
  msgid "There was an error with your request; please try again later."
71
  msgstr ""
72
 
73
+ #: includes/class-yit-plugin-panel-woocommerce.php:430
74
  msgid "The changes you have made will be lost if you leave this page."
75
  msgstr ""
76
  "Οι αλλαγές που έχετε δημιουργήσει θα χαθούν αν αφήσετε αυτήν την σελίδα."
83
  msgid "Settings"
84
  msgstr "Ρυθμίσεις"
85
 
86
+ #: includes/class-yit-plugin-panel.php:455
87
+ #: includes/class-yit-plugin-panel.php:458
88
  msgid "How to install premium version"
89
  msgstr "Πώς να εγκαταστήσετε την προηγμένη έκδοση"
90
 
91
+ #: includes/class-yit-plugin-panel.php:659
92
  #: includes/class-yit-plugin-subpanel.php:132
93
  msgid "Save Changes"
94
  msgstr "Αποθήκευση Αλλαγών"
95
 
96
+ #: includes/class-yit-plugin-panel.php:664
97
  #: includes/class-yit-plugin-subpanel.php:136
98
  #: templates/panel/woocommerce/woocommerce-form.php:14
99
  msgid ""
102
  "Αν συνεχίσετε με αυτή την ενέργεια θα επαναφέρετε όλες τις επιλογές στη "
103
  "σελίδα."
104
 
105
+ #: includes/class-yit-plugin-panel.php:664
106
  #: includes/class-yit-plugin-subpanel.php:136
107
  #: templates/panel/woocommerce/woocommerce-form.php:14
108
  msgid "Are you sure?"
109
  msgstr "Είστε σίγουρος;"
110
 
111
+ #: includes/class-yit-plugin-panel.php:668
112
  #: includes/class-yit-plugin-subpanel.php:139
113
  msgid "Reset to default"
114
  msgstr "Επαναφορά σε προεπιλεγμένο"
115
 
116
+ #: includes/class-yit-plugin-panel.php:1047
117
  msgid ""
118
  "The element you have entered already exists. Please, enter another name."
119
  msgstr "Το στοιχείο που εισάγατε υπάρχει ήδη. Παρακαλώ, εισάγετε άλλο όνομα."
120
 
121
+ #: includes/class-yit-plugin-panel.php:1048
122
  msgid "Settings saved"
123
  msgstr "Ρυθμίσεις αποθηκεύτηκαν"
124
 
125
+ #: includes/class-yit-plugin-panel.php:1049
126
  msgid "Settings reset"
127
  msgstr "Επαναφορά ρυθμίσεων"
128
 
129
+ #: includes/class-yit-plugin-panel.php:1050
130
  msgid "Element deleted correctly."
131
  msgstr "Το στοιχείο διαγράφηκε επιτυχώς."
132
 
133
+ #: includes/class-yit-plugin-panel.php:1051
134
+ #: includes/class-yit-plugin-panel.php:1052
135
  msgid "Element updated correctly."
136
  msgstr "Το στοιχείο αναβαθμίστηκε επιτυχώς."
137
 
138
+ #: includes/class-yit-plugin-panel.php:1053
139
  msgid "Database imported correctly."
140
  msgstr "Επιτυχής εισαγωγή βάσης δεδομένων."
141
 
142
+ #: includes/class-yit-plugin-panel.php:1054
143
  msgid "An error has occurred during import. Please try again."
144
  msgstr "Παρουσιάστηκε σφάλμα κατά την εισαγωγή. Παρακαλώ προσπαθήστε ξανά."
145
 
146
+ #: includes/class-yit-plugin-panel.php:1055
147
  msgid "The added file is not valid."
148
  msgstr "Το προστιθέμενο αρχείο δεν είναι έγκυρο."
149
 
150
+ #: includes/class-yit-plugin-panel.php:1056
151
  msgid "Sorry, import is disabled."
152
  msgstr "Συγνώμη, η εισαγωγή είναι απενεργοποιημένη."
153
 
154
+ #: includes/class-yit-plugin-panel.php:1057
155
  msgid "Sorting successful."
156
  msgstr "Διαλογή επιτυχής."
157
 
158
+ #: includes/class-yit-plugin-panel.php:1525
159
  msgid "We need your support"
160
  msgstr "Χρειαζόμαστε την υποστήριξή σας"
161
 
162
+ #: includes/class-yit-plugin-panel.php:1526
163
  msgid "to keep updating and improving the plugin. Please,"
164
  msgstr ""
165
  "για να διατηρήσετε την ενημέρωση και τη βελτίωση του πρόσθετου. Παρακαλώ,"
166
 
167
+ #: includes/class-yit-plugin-panel.php:1528
168
  msgid "help us by leaving a good review"
169
  msgstr ""
170
 
171
+ #: includes/class-yit-plugin-panel.php:1529
172
  msgid ":) Thanks!"
173
  msgstr ":) Ευχαριστώ!"
174
 
718
  msgid "Yes, delete"
719
  msgstr ""
720
 
721
+ #: includes/class-yit-plugin-panel.php:492
722
  msgctxt "Help tab name"
723
  msgid "Help"
724
  msgstr ""
725
 
726
  #. translators: 1. Plugin name.
727
+ #: includes/class-yit-plugin-panel.php:805
728
  msgctxt "Help tab default title"
729
  msgid "Thank you for purchasing %s!"
730
  msgstr ""
731
 
732
+ #: includes/class-yit-plugin-panel.php:806
733
  msgctxt "Help tab default description"
734
  msgid ""
735
  "We want to help you to enjoy a wonderful experience with all our products."
736
  msgstr ""
737
 
738
+ #: includes/class-yit-plugin-panel.php:853
739
+ msgctxt "Premium tab name"
740
+ msgid "Get premium"
741
+ msgstr ""
742
+
743
  #: includes/class-yith-dashboard.php:96
744
  msgctxt "Plugin FW"
745
  msgid "View Changelog"
924
  msgid "Submit a ticket"
925
  msgstr ""
926
 
927
+ #: templates/panel/premium-tab.php:30
928
+ msgctxt "Premium Tab"
929
+ msgid "Get the premium version to unlock advanced features"
930
+ msgstr ""
931
+
932
+ #: templates/panel/premium-tab.php:34
933
+ msgctxt "Premium Tab"
934
+ msgid "Get premium"
935
+ msgstr ""
936
+
937
+ #: templates/panel/premium-tab.php:39
938
+ msgctxt "Premium Tab"
939
+ msgid "Plugin premium features images"
940
+ msgstr ""
941
+
942
+ #. translators: alt attribute of main image tag.
943
+ #: templates/panel/premium-tab.php:51
944
+ msgctxt "Premium Tab"
945
+ msgid "And so much more!"
946
+ msgstr ""
947
+
948
+ #: templates/panel/premium-tab.php:53
949
+ msgctxt "Premium Tab"
950
+ msgid "Check the free vs premium features >"
951
+ msgstr ""
952
+
953
+ #: templates/panel/premium-tab.php:58
954
+ msgctxt "Premium Tab"
955
+ msgid "Get the premium version"
956
+ msgstr ""
957
+
958
  #: yit-functions.php:1925
959
  msgctxt "Post action"
960
  msgid "Preview"
plugin-fw/languages/yith-plugin-fw-es_ES.mo CHANGED
Binary file
plugin-fw/languages/yith-plugin-fw-es_ES.po CHANGED
@@ -4,8 +4,8 @@ msgid ""
4
  msgstr ""
5
  "Project-Id-Version: YITH Framework\n"
6
  "Report-Msgid-Bugs-To: YITH <plugins@yithemes.com>\n"
7
- "POT-Creation-Date: 2021-12-02 07:20:36+00:00\n"
8
- "PO-Revision-Date: 2021-09-28 13:56:41+0000\n"
9
  "Language: es\n"
10
  "MIME-Version: 1.0\n"
11
  "Content-Type: text/plain; charset=UTF-8\n"
@@ -72,7 +72,7 @@ msgid "There was an error with your request; please try again later."
72
  msgstr ""
73
  "Se ha producido un error en tu solicitud; inténtalo de nuevo más tarde."
74
 
75
- #: includes/class-yit-plugin-panel-woocommerce.php:426
76
  msgid "The changes you have made will be lost if you leave this page."
77
  msgstr "Los cambios que has hecho se perderán si abandonas esta página."
78
 
@@ -84,17 +84,17 @@ msgstr "Ajustes del plugin"
84
  msgid "Settings"
85
  msgstr "Ajustes"
86
 
87
- #: includes/class-yit-plugin-panel.php:453
88
- #: includes/class-yit-plugin-panel.php:456
89
  msgid "How to install premium version"
90
  msgstr "Cómo instalar la versión premium"
91
 
92
- #: includes/class-yit-plugin-panel.php:654
93
  #: includes/class-yit-plugin-subpanel.php:132
94
  msgid "Save Changes"
95
  msgstr "Guardar cambios"
96
 
97
- #: includes/class-yit-plugin-panel.php:659
98
  #: includes/class-yit-plugin-subpanel.php:136
99
  #: templates/panel/woocommerce/woocommerce-form.php:14
100
  msgid ""
@@ -103,74 +103,74 @@ msgstr ""
103
  "Si continúas con esta acción, restablecerás todas las opciones en esta "
104
  "página."
105
 
106
- #: includes/class-yit-plugin-panel.php:659
107
  #: includes/class-yit-plugin-subpanel.php:136
108
  #: templates/panel/woocommerce/woocommerce-form.php:14
109
  msgid "Are you sure?"
110
  msgstr "¿Estás seguro?"
111
 
112
- #: includes/class-yit-plugin-panel.php:663
113
  #: includes/class-yit-plugin-subpanel.php:139
114
  msgid "Reset to default"
115
  msgstr "Restablecer valores predeterminados"
116
 
117
- #: includes/class-yit-plugin-panel.php:981
118
  msgid ""
119
  "The element you have entered already exists. Please, enter another name."
120
  msgstr ""
121
  "El elemento que has introducido ya existe. Por favor, introduce otro nombre."
122
 
123
- #: includes/class-yit-plugin-panel.php:982
124
  msgid "Settings saved"
125
  msgstr "Ajustes guardados"
126
 
127
- #: includes/class-yit-plugin-panel.php:983
128
  msgid "Settings reset"
129
  msgstr "Restablecer ajustes"
130
 
131
- #: includes/class-yit-plugin-panel.php:984
132
  msgid "Element deleted correctly."
133
  msgstr "Elemento eliminado correctamente."
134
 
135
- #: includes/class-yit-plugin-panel.php:985
136
- #: includes/class-yit-plugin-panel.php:986
137
  msgid "Element updated correctly."
138
  msgstr "Elemento actualizado correctamente."
139
 
140
- #: includes/class-yit-plugin-panel.php:987
141
  msgid "Database imported correctly."
142
  msgstr "Base de datos importada correctamente."
143
 
144
- #: includes/class-yit-plugin-panel.php:988
145
  msgid "An error has occurred during import. Please try again."
146
  msgstr ""
147
  "Ha ocurrido un error durante la importación. Por favor, inténtalo de nuevo."
148
 
149
- #: includes/class-yit-plugin-panel.php:989
150
  msgid "The added file is not valid."
151
  msgstr "El archivo añadido no es válido."
152
 
153
- #: includes/class-yit-plugin-panel.php:990
154
  msgid "Sorry, import is disabled."
155
  msgstr "Lo siento, la importación está desactivada."
156
 
157
- #: includes/class-yit-plugin-panel.php:991
158
  msgid "Sorting successful."
159
  msgstr "Clasificación realizada con éxito"
160
 
161
- #: includes/class-yit-plugin-panel.php:1459
162
  msgid "We need your support"
163
  msgstr "Necesitamos tu apoyo"
164
 
165
- #: includes/class-yit-plugin-panel.php:1460
166
  msgid "to keep updating and improving the plugin. Please,"
167
  msgstr "para que podamos seguir actualizando y mejorando el plugin. Por favor,"
168
 
169
- #: includes/class-yit-plugin-panel.php:1462
170
  msgid "help us by leaving a good review"
171
  msgstr "ayúdanos dejando una buena valoración"
172
 
173
- #: includes/class-yit-plugin-panel.php:1463
174
  msgid ":) Thanks!"
175
  msgstr ":) ¡Gracias!"
176
 
@@ -726,18 +726,18 @@ msgctxt "Delete confirmation action"
726
  msgid "Yes, delete"
727
  msgstr "Si, borrar"
728
 
729
- #: includes/class-yit-plugin-panel.php:490
730
  msgctxt "Help tab name"
731
  msgid "Help"
732
  msgstr "Ayuda"
733
 
734
  #. translators: 1. Plugin name.
735
- #: includes/class-yit-plugin-panel.php:800
736
  msgctxt "Help tab default title"
737
  msgid "Thank you for purchasing %s!"
738
  msgstr "¡Gracias por comprar %s!"
739
 
740
- #: includes/class-yit-plugin-panel.php:801
741
  msgctxt "Help tab default description"
742
  msgid ""
743
  "We want to help you to enjoy a wonderful experience with all our products."
@@ -745,6 +745,11 @@ msgstr ""
745
  "Queremos ayudarte a disfrutar de una experiencia maravillosa con todos "
746
  "nuestros productos."
747
 
 
 
 
 
 
748
  #: includes/class-yith-dashboard.php:96
749
  msgctxt "Plugin FW"
750
  msgid "View Changelog"
@@ -931,6 +936,37 @@ msgctxt "Help tab submit ticket button"
931
  msgid "Submit a ticket"
932
  msgstr "Enviar ticket"
933
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
934
  #: yit-functions.php:1925
935
  msgctxt "Post action"
936
  msgid "Preview"
4
  msgstr ""
5
  "Project-Id-Version: YITH Framework\n"
6
  "Report-Msgid-Bugs-To: YITH <plugins@yithemes.com>\n"
7
+ "POT-Creation-Date: 2021-12-13 14:46:02+00:00\n"
8
+ "PO-Revision-Date: 2021-12-13 13:19:03+0000\n"
9
  "Language: es\n"
10
  "MIME-Version: 1.0\n"
11
  "Content-Type: text/plain; charset=UTF-8\n"
72
  msgstr ""
73
  "Se ha producido un error en tu solicitud; inténtalo de nuevo más tarde."
74
 
75
+ #: includes/class-yit-plugin-panel-woocommerce.php:430
76
  msgid "The changes you have made will be lost if you leave this page."
77
  msgstr "Los cambios que has hecho se perderán si abandonas esta página."
78
 
84
  msgid "Settings"
85
  msgstr "Ajustes"
86
 
87
+ #: includes/class-yit-plugin-panel.php:455
88
+ #: includes/class-yit-plugin-panel.php:458
89
  msgid "How to install premium version"
90
  msgstr "Cómo instalar la versión premium"
91
 
92
+ #: includes/class-yit-plugin-panel.php:659
93
  #: includes/class-yit-plugin-subpanel.php:132
94
  msgid "Save Changes"
95
  msgstr "Guardar cambios"
96
 
97
+ #: includes/class-yit-plugin-panel.php:664
98
  #: includes/class-yit-plugin-subpanel.php:136
99
  #: templates/panel/woocommerce/woocommerce-form.php:14
100
  msgid ""
103
  "Si continúas con esta acción, restablecerás todas las opciones en esta "
104
  "página."
105
 
106
+ #: includes/class-yit-plugin-panel.php:664
107
  #: includes/class-yit-plugin-subpanel.php:136
108
  #: templates/panel/woocommerce/woocommerce-form.php:14
109
  msgid "Are you sure?"
110
  msgstr "¿Estás seguro?"
111
 
112
+ #: includes/class-yit-plugin-panel.php:668
113
  #: includes/class-yit-plugin-subpanel.php:139
114
  msgid "Reset to default"
115
  msgstr "Restablecer valores predeterminados"
116
 
117
+ #: includes/class-yit-plugin-panel.php:1047
118
  msgid ""
119
  "The element you have entered already exists. Please, enter another name."
120
  msgstr ""
121
  "El elemento que has introducido ya existe. Por favor, introduce otro nombre."
122
 
123
+ #: includes/class-yit-plugin-panel.php:1048
124
  msgid "Settings saved"
125
  msgstr "Ajustes guardados"
126
 
127
+ #: includes/class-yit-plugin-panel.php:1049
128
  msgid "Settings reset"
129
  msgstr "Restablecer ajustes"
130
 
131
+ #: includes/class-yit-plugin-panel.php:1050
132
  msgid "Element deleted correctly."
133
  msgstr "Elemento eliminado correctamente."
134
 
135
+ #: includes/class-yit-plugin-panel.php:1051
136
+ #: includes/class-yit-plugin-panel.php:1052
137
  msgid "Element updated correctly."
138
  msgstr "Elemento actualizado correctamente."
139
 
140
+ #: includes/class-yit-plugin-panel.php:1053
141
  msgid "Database imported correctly."
142
  msgstr "Base de datos importada correctamente."
143
 
144
+ #: includes/class-yit-plugin-panel.php:1054
145
  msgid "An error has occurred during import. Please try again."
146
  msgstr ""
147
  "Ha ocurrido un error durante la importación. Por favor, inténtalo de nuevo."
148
 
149
+ #: includes/class-yit-plugin-panel.php:1055
150
  msgid "The added file is not valid."
151
  msgstr "El archivo añadido no es válido."
152
 
153
+ #: includes/class-yit-plugin-panel.php:1056
154
  msgid "Sorry, import is disabled."
155
  msgstr "Lo siento, la importación está desactivada."
156
 
157
+ #: includes/class-yit-plugin-panel.php:1057
158
  msgid "Sorting successful."
159
  msgstr "Clasificación realizada con éxito"
160
 
161
+ #: includes/class-yit-plugin-panel.php:1525
162
  msgid "We need your support"
163
  msgstr "Necesitamos tu apoyo"
164
 
165
+ #: includes/class-yit-plugin-panel.php:1526
166
  msgid "to keep updating and improving the plugin. Please,"
167
  msgstr "para que podamos seguir actualizando y mejorando el plugin. Por favor,"
168
 
169
+ #: includes/class-yit-plugin-panel.php:1528
170
  msgid "help us by leaving a good review"
171
  msgstr "ayúdanos dejando una buena valoración"
172
 
173
+ #: includes/class-yit-plugin-panel.php:1529
174
  msgid ":) Thanks!"
175
  msgstr ":) ¡Gracias!"
176
 
726
  msgid "Yes, delete"
727
  msgstr "Si, borrar"
728
 
729
+ #: includes/class-yit-plugin-panel.php:492
730
  msgctxt "Help tab name"
731
  msgid "Help"
732
  msgstr "Ayuda"
733
 
734
  #. translators: 1. Plugin name.
735
+ #: includes/class-yit-plugin-panel.php:805
736
  msgctxt "Help tab default title"
737
  msgid "Thank you for purchasing %s!"
738
  msgstr "¡Gracias por comprar %s!"
739
 
740
+ #: includes/class-yit-plugin-panel.php:806
741
  msgctxt "Help tab default description"
742
  msgid ""
743
  "We want to help you to enjoy a wonderful experience with all our products."
745
  "Queremos ayudarte a disfrutar de una experiencia maravillosa con todos "
746
  "nuestros productos."
747
 
748
+ #: includes/class-yit-plugin-panel.php:853
749
+ msgctxt "Premium tab name"
750
+ msgid "Get premium"
751
+ msgstr "Obtén premium"
752
+
753
  #: includes/class-yith-dashboard.php:96
754
  msgctxt "Plugin FW"
755
  msgid "View Changelog"
936
  msgid "Submit a ticket"
937
  msgstr "Enviar ticket"
938
 
939
+ #: templates/panel/premium-tab.php:30
940
+ msgctxt "Premium Tab"
941
+ msgid "Get the premium version to unlock advanced features"
942
+ msgstr "Obtén la versión premium para desbloquear características avanzadas"
943
+
944
+ #: templates/panel/premium-tab.php:34
945
+ msgctxt "Premium Tab"
946
+ msgid "Get premium"
947
+ msgstr "Obtén la versión Premium"
948
+
949
+ #: templates/panel/premium-tab.php:39
950
+ msgctxt "Premium Tab"
951
+ msgid "Plugin premium features images"
952
+ msgstr "Imágenes de la versión premium"
953
+
954
+ #. translators: alt attribute of main image tag.
955
+ #: templates/panel/premium-tab.php:51
956
+ msgctxt "Premium Tab"
957
+ msgid "And so much more!"
958
+ msgstr "¡Y mucho más!"
959
+
960
+ #: templates/panel/premium-tab.php:53
961
+ msgctxt "Premium Tab"
962
+ msgid "Check the free vs premium features >"
963
+ msgstr "Comprueba las características gratuitas frente a las premium >"
964
+
965
+ #: templates/panel/premium-tab.php:58
966
+ msgctxt "Premium Tab"
967
+ msgid "Get the premium version"
968
+ msgstr "Obtén la versión Premium"
969
+
970
  #: yit-functions.php:1925
971
  msgctxt "Post action"
972
  msgid "Preview"
plugin-fw/languages/yith-plugin-fw-it_IT.mo CHANGED
Binary file
plugin-fw/languages/yith-plugin-fw-it_IT.po CHANGED
@@ -4,8 +4,8 @@ msgid ""
4
  msgstr ""
5
  "Project-Id-Version: YITH Framework\n"
6
  "Report-Msgid-Bugs-To: YITH <plugins@yithemes.com>\n"
7
- "POT-Creation-Date: 2021-12-02 07:20:36+00:00\n"
8
- "PO-Revision-Date: 2021-10-27 15:32:46+0000\n"
9
  "Language: it\n"
10
  "MIME-Version: 1.0\n"
11
  "Content-Type: text/plain; charset=UTF-8\n"
@@ -72,7 +72,7 @@ msgstr "Valore del colore"
72
  msgid "There was an error with your request; please try again later."
73
  msgstr "Si è verificato un errore con la tua richiesta. Riprova più tardi."
74
 
75
- #: includes/class-yit-plugin-panel-woocommerce.php:426
76
  msgid "The changes you have made will be lost if you leave this page."
77
  msgstr "Perderai tutti i cambiamenti effettuati se lasci questa pagina."
78
 
@@ -84,17 +84,17 @@ msgstr "Impostazioni plugin"
84
  msgid "Settings"
85
  msgstr "Impostazioni"
86
 
87
- #: includes/class-yit-plugin-panel.php:453
88
- #: includes/class-yit-plugin-panel.php:456
89
  msgid "How to install premium version"
90
  msgstr "Come installare la versione premium"
91
 
92
- #: includes/class-yit-plugin-panel.php:654
93
  #: includes/class-yit-plugin-subpanel.php:132
94
  msgid "Save Changes"
95
  msgstr "Salva modifiche"
96
 
97
- #: includes/class-yit-plugin-panel.php:659
98
  #: includes/class-yit-plugin-subpanel.php:136
99
  #: templates/panel/woocommerce/woocommerce-form.php:14
100
  msgid ""
@@ -103,72 +103,72 @@ msgstr ""
103
  "Se prosegui con questa azione, tutte le opzioni di questa pagina saranno "
104
  "reimpostate."
105
 
106
- #: includes/class-yit-plugin-panel.php:659
107
  #: includes/class-yit-plugin-subpanel.php:136
108
  #: templates/panel/woocommerce/woocommerce-form.php:14
109
  msgid "Are you sure?"
110
  msgstr "Sei sicuro?"
111
 
112
- #: includes/class-yit-plugin-panel.php:663
113
  #: includes/class-yit-plugin-subpanel.php:139
114
  msgid "Reset to default"
115
  msgstr "Ripristina configurazione predefinita"
116
 
117
- #: includes/class-yit-plugin-panel.php:981
118
  msgid ""
119
  "The element you have entered already exists. Please, enter another name."
120
  msgstr "L'elemento inserito esiste già. Per favore, inserisci un altro nome."
121
 
122
- #: includes/class-yit-plugin-panel.php:982
123
  msgid "Settings saved"
124
  msgstr "Impostazioni salvate"
125
 
126
- #: includes/class-yit-plugin-panel.php:983
127
  msgid "Settings reset"
128
  msgstr "Impostazioni azzerate"
129
 
130
- #: includes/class-yit-plugin-panel.php:984
131
  msgid "Element deleted correctly."
132
  msgstr "Elemento rimosso correttamente."
133
 
134
- #: includes/class-yit-plugin-panel.php:985
135
- #: includes/class-yit-plugin-panel.php:986
136
  msgid "Element updated correctly."
137
  msgstr "Elemento aggiornato correttamente."
138
 
139
- #: includes/class-yit-plugin-panel.php:987
140
  msgid "Database imported correctly."
141
  msgstr "Database importato correttamente."
142
 
143
- #: includes/class-yit-plugin-panel.php:988
144
  msgid "An error has occurred during import. Please try again."
145
  msgstr "Si è verificato un errore durante l'importazione. Prova di nuovo."
146
 
147
- #: includes/class-yit-plugin-panel.php:989
148
  msgid "The added file is not valid."
149
  msgstr "Il file aggiunto non è valido."
150
 
151
- #: includes/class-yit-plugin-panel.php:990
152
  msgid "Sorry, import is disabled."
153
  msgstr "Ci dispiace, l'importazione è disabilitata."
154
 
155
- #: includes/class-yit-plugin-panel.php:991
156
  msgid "Sorting successful."
157
  msgstr "Ordinamento effettuato con successo."
158
 
159
- #: includes/class-yit-plugin-panel.php:1459
160
  msgid "We need your support"
161
  msgstr "Abbiamo bisogno del tuo sostegno"
162
 
163
- #: includes/class-yit-plugin-panel.php:1460
164
  msgid "to keep updating and improving the plugin. Please,"
165
  msgstr "per poter continuare ad aggiornare e migliorare il plugin."
166
 
167
- #: includes/class-yit-plugin-panel.php:1462
168
  msgid "help us by leaving a good review"
169
  msgstr "Puoi darci una mano lasciando una recensione positiva"
170
 
171
- #: includes/class-yit-plugin-panel.php:1463
172
  msgid ":) Thanks!"
173
  msgstr ":) Grazie!"
174
 
@@ -726,18 +726,18 @@ msgctxt "Delete confirmation action"
726
  msgid "Yes, delete"
727
  msgstr "Sì, elimina"
728
 
729
- #: includes/class-yit-plugin-panel.php:490
730
  msgctxt "Help tab name"
731
  msgid "Help"
732
  msgstr "Help"
733
 
734
  #. translators: 1. Plugin name.
735
- #: includes/class-yit-plugin-panel.php:800
736
  msgctxt "Help tab default title"
737
  msgid "Thank you for purchasing %s!"
738
  msgstr "Grazie per aver acquistato %s!"
739
 
740
- #: includes/class-yit-plugin-panel.php:801
741
  msgctxt "Help tab default description"
742
  msgid ""
743
  "We want to help you to enjoy a wonderful experience with all our products."
@@ -745,6 +745,11 @@ msgstr ""
745
  "Vogliamo aiutarti ad avere un'esperienza fantastica con tutti i nostri "
746
  "prodotti."
747
 
 
 
 
 
 
748
  #: includes/class-yith-dashboard.php:96
749
  msgctxt "Plugin FW"
750
  msgid "View Changelog"
@@ -933,6 +938,37 @@ msgctxt "Help tab submit ticket button"
933
  msgid "Submit a ticket"
934
  msgstr "Invia un ticket"
935
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
936
  #: yit-functions.php:1925
937
  msgctxt "Post action"
938
  msgid "Preview"
4
  msgstr ""
5
  "Project-Id-Version: YITH Framework\n"
6
  "Report-Msgid-Bugs-To: YITH <plugins@yithemes.com>\n"
7
+ "POT-Creation-Date: 2021-12-13 14:46:02+00:00\n"
8
+ "PO-Revision-Date: 2021-12-13 12:05:30+0000\n"
9
  "Language: it\n"
10
  "MIME-Version: 1.0\n"
11
  "Content-Type: text/plain; charset=UTF-8\n"
72
  msgid "There was an error with your request; please try again later."
73
  msgstr "Si è verificato un errore con la tua richiesta. Riprova più tardi."
74
 
75
+ #: includes/class-yit-plugin-panel-woocommerce.php:430
76
  msgid "The changes you have made will be lost if you leave this page."
77
  msgstr "Perderai tutti i cambiamenti effettuati se lasci questa pagina."
78
 
84
  msgid "Settings"
85
  msgstr "Impostazioni"
86
 
87
+ #: includes/class-yit-plugin-panel.php:455
88
+ #: includes/class-yit-plugin-panel.php:458
89
  msgid "How to install premium version"
90
  msgstr "Come installare la versione premium"
91
 
92
+ #: includes/class-yit-plugin-panel.php:659
93
  #: includes/class-yit-plugin-subpanel.php:132
94
  msgid "Save Changes"
95
  msgstr "Salva modifiche"
96
 
97
+ #: includes/class-yit-plugin-panel.php:664
98
  #: includes/class-yit-plugin-subpanel.php:136
99
  #: templates/panel/woocommerce/woocommerce-form.php:14
100
  msgid ""
103
  "Se prosegui con questa azione, tutte le opzioni di questa pagina saranno "
104
  "reimpostate."
105
 
106
+ #: includes/class-yit-plugin-panel.php:664
107
  #: includes/class-yit-plugin-subpanel.php:136
108
  #: templates/panel/woocommerce/woocommerce-form.php:14
109
  msgid "Are you sure?"
110
  msgstr "Sei sicuro?"
111
 
112
+ #: includes/class-yit-plugin-panel.php:668
113
  #: includes/class-yit-plugin-subpanel.php:139
114
  msgid "Reset to default"
115
  msgstr "Ripristina configurazione predefinita"
116
 
117
+ #: includes/class-yit-plugin-panel.php:1047
118
  msgid ""
119
  "The element you have entered already exists. Please, enter another name."
120
  msgstr "L'elemento inserito esiste già. Per favore, inserisci un altro nome."
121
 
122
+ #: includes/class-yit-plugin-panel.php:1048
123
  msgid "Settings saved"
124
  msgstr "Impostazioni salvate"
125
 
126
+ #: includes/class-yit-plugin-panel.php:1049
127
  msgid "Settings reset"
128
  msgstr "Impostazioni azzerate"
129
 
130
+ #: includes/class-yit-plugin-panel.php:1050
131
  msgid "Element deleted correctly."
132
  msgstr "Elemento rimosso correttamente."
133
 
134
+ #: includes/class-yit-plugin-panel.php:1051
135
+ #: includes/class-yit-plugin-panel.php:1052
136
  msgid "Element updated correctly."
137
  msgstr "Elemento aggiornato correttamente."
138
 
139
+ #: includes/class-yit-plugin-panel.php:1053
140
  msgid "Database imported correctly."
141
  msgstr "Database importato correttamente."
142
 
143
+ #: includes/class-yit-plugin-panel.php:1054
144
  msgid "An error has occurred during import. Please try again."
145
  msgstr "Si è verificato un errore durante l'importazione. Prova di nuovo."
146
 
147
+ #: includes/class-yit-plugin-panel.php:1055
148
  msgid "The added file is not valid."
149
  msgstr "Il file aggiunto non è valido."
150
 
151
+ #: includes/class-yit-plugin-panel.php:1056
152
  msgid "Sorry, import is disabled."
153
  msgstr "Ci dispiace, l'importazione è disabilitata."
154
 
155
+ #: includes/class-yit-plugin-panel.php:1057
156
  msgid "Sorting successful."
157
  msgstr "Ordinamento effettuato con successo."
158
 
159
+ #: includes/class-yit-plugin-panel.php:1525
160
  msgid "We need your support"
161
  msgstr "Abbiamo bisogno del tuo sostegno"
162
 
163
+ #: includes/class-yit-plugin-panel.php:1526
164
  msgid "to keep updating and improving the plugin. Please,"
165
  msgstr "per poter continuare ad aggiornare e migliorare il plugin."
166
 
167
+ #: includes/class-yit-plugin-panel.php:1528
168
  msgid "help us by leaving a good review"
169
  msgstr "Puoi darci una mano lasciando una recensione positiva"
170
 
171
+ #: includes/class-yit-plugin-panel.php:1529
172
  msgid ":) Thanks!"
173
  msgstr ":) Grazie!"
174
 
726
  msgid "Yes, delete"
727
  msgstr "Sì, elimina"
728
 
729
+ #: includes/class-yit-plugin-panel.php:492
730
  msgctxt "Help tab name"
731
  msgid "Help"
732
  msgstr "Help"
733
 
734
  #. translators: 1. Plugin name.
735
+ #: includes/class-yit-plugin-panel.php:805
736
  msgctxt "Help tab default title"
737
  msgid "Thank you for purchasing %s!"
738
  msgstr "Grazie per aver acquistato %s!"
739
 
740
+ #: includes/class-yit-plugin-panel.php:806
741
  msgctxt "Help tab default description"
742
  msgid ""
743
  "We want to help you to enjoy a wonderful experience with all our products."
745
  "Vogliamo aiutarti ad avere un'esperienza fantastica con tutti i nostri "
746
  "prodotti."
747
 
748
+ #: includes/class-yit-plugin-panel.php:853
749
+ msgctxt "Premium tab name"
750
+ msgid "Get premium"
751
+ msgstr "Diventa premium"
752
+
753
  #: includes/class-yith-dashboard.php:96
754
  msgctxt "Plugin FW"
755
  msgid "View Changelog"
938
  msgid "Submit a ticket"
939
  msgstr "Invia un ticket"
940
 
941
+ #: templates/panel/premium-tab.php:30
942
+ msgctxt "Premium Tab"
943
+ msgid "Get the premium version to unlock advanced features"
944
+ msgstr "Ottieni la versione premium per sbloccare le funzionalità avanzate"
945
+
946
+ #: templates/panel/premium-tab.php:34
947
+ msgctxt "Premium Tab"
948
+ msgid "Get premium"
949
+ msgstr "Diventa premium"
950
+
951
+ #: templates/panel/premium-tab.php:39
952
+ msgctxt "Premium Tab"
953
+ msgid "Plugin premium features images"
954
+ msgstr "Immagini funzionalità premium"
955
+
956
+ #. translators: alt attribute of main image tag.
957
+ #: templates/panel/premium-tab.php:51
958
+ msgctxt "Premium Tab"
959
+ msgid "And so much more!"
960
+ msgstr "E molto altro!"
961
+
962
+ #: templates/panel/premium-tab.php:53
963
+ msgctxt "Premium Tab"
964
+ msgid "Check the free vs premium features >"
965
+ msgstr "Confronta le funzionalità gratuite e premium >"
966
+
967
+ #: templates/panel/premium-tab.php:58
968
+ msgctxt "Premium Tab"
969
+ msgid "Get the premium version"
970
+ msgstr "Ottieni la versione premium"
971
+
972
  #: yit-functions.php:1925
973
  msgctxt "Post action"
974
  msgid "Preview"
plugin-fw/languages/yith-plugin-fw-nl_NL.mo CHANGED
Binary file
plugin-fw/languages/yith-plugin-fw-nl_NL.po CHANGED
@@ -4,8 +4,8 @@ msgid ""
4
  msgstr ""
5
  "Project-Id-Version: YITH Framework\n"
6
  "Report-Msgid-Bugs-To: YITH <plugins@yithemes.com>\n"
7
- "POT-Creation-Date: 2021-12-02 07:20:36+00:00\n"
8
- "PO-Revision-Date: 2021-09-29 11:02:22+0000\n"
9
  "Language: nl\n"
10
  "MIME-Version: 1.0\n"
11
  "Content-Type: text/plain; charset=UTF-8\n"
@@ -75,7 +75,7 @@ msgid "There was an error with your request; please try again later."
75
  msgstr ""
76
  "Er is een fout opgetreden met je verzoek, probeer het later opnieuw a.u.b."
77
 
78
- #: includes/class-yit-plugin-panel-woocommerce.php:426
79
  msgid "The changes you have made will be lost if you leave this page."
80
  msgstr "Als je deze pagina verlaat zullen alle wijzigingen verloren gaan."
81
 
@@ -87,17 +87,17 @@ msgstr "Plugin instellingen"
87
  msgid "Settings"
88
  msgstr "Instellingen"
89
 
90
- #: includes/class-yit-plugin-panel.php:453
91
- #: includes/class-yit-plugin-panel.php:456
92
  msgid "How to install premium version"
93
  msgstr "Hoe installeer ik de premium versie"
94
 
95
- #: includes/class-yit-plugin-panel.php:654
96
  #: includes/class-yit-plugin-subpanel.php:132
97
  msgid "Save Changes"
98
  msgstr "Wijzigingen opslaan"
99
 
100
- #: includes/class-yit-plugin-panel.php:659
101
  #: includes/class-yit-plugin-subpanel.php:136
102
  #: templates/panel/woocommerce/woocommerce-form.php:14
103
  msgid ""
@@ -105,72 +105,72 @@ msgid ""
105
  msgstr ""
106
  "Als je doorgaat met deze actie, zal je alle opties op deze pagina resetten."
107
 
108
- #: includes/class-yit-plugin-panel.php:659
109
  #: includes/class-yit-plugin-subpanel.php:136
110
  #: templates/panel/woocommerce/woocommerce-form.php:14
111
  msgid "Are you sure?"
112
  msgstr "Weet je het zeker?"
113
 
114
- #: includes/class-yit-plugin-panel.php:663
115
  #: includes/class-yit-plugin-subpanel.php:139
116
  msgid "Reset to default"
117
  msgstr "Resetten naar standaard"
118
 
119
- #: includes/class-yit-plugin-panel.php:981
120
  msgid ""
121
  "The element you have entered already exists. Please, enter another name."
122
  msgstr "Het element dat je hebt ingevoerd bestaat al. Voer een andere naam in."
123
 
124
- #: includes/class-yit-plugin-panel.php:982
125
  msgid "Settings saved"
126
  msgstr "Instellingen opgeslagen"
127
 
128
- #: includes/class-yit-plugin-panel.php:983
129
  msgid "Settings reset"
130
  msgstr "Instellingen resetten"
131
 
132
- #: includes/class-yit-plugin-panel.php:984
133
  msgid "Element deleted correctly."
134
  msgstr "Element juist verwijderd."
135
 
136
- #: includes/class-yit-plugin-panel.php:985
137
- #: includes/class-yit-plugin-panel.php:986
138
  msgid "Element updated correctly."
139
  msgstr "Element juist geüpdatet."
140
 
141
- #: includes/class-yit-plugin-panel.php:987
142
  msgid "Database imported correctly."
143
  msgstr "Database juist geïmporteerd."
144
 
145
- #: includes/class-yit-plugin-panel.php:988
146
  msgid "An error has occurred during import. Please try again."
147
  msgstr "Er is een fout opgetreden tijdens importeren. Probeer opnieuw."
148
 
149
- #: includes/class-yit-plugin-panel.php:989
150
  msgid "The added file is not valid."
151
  msgstr "Het toegevoegde bestand is niet geldig."
152
 
153
- #: includes/class-yit-plugin-panel.php:990
154
  msgid "Sorry, import is disabled."
155
  msgstr "Sorry, importeren is uitgeschakeld."
156
 
157
- #: includes/class-yit-plugin-panel.php:991
158
  msgid "Sorting successful."
159
  msgstr "Succesvol gesorteerd."
160
 
161
- #: includes/class-yit-plugin-panel.php:1459
162
  msgid "We need your support"
163
  msgstr "We hebben je hulp nodig"
164
 
165
- #: includes/class-yit-plugin-panel.php:1460
166
  msgid "to keep updating and improving the plugin. Please,"
167
  msgstr "om de plugin te blijven bijwerken en verbeteren. A.u.b.,"
168
 
169
- #: includes/class-yit-plugin-panel.php:1462
170
  msgid "help us by leaving a good review"
171
  msgstr "help ons door een goede beoordeling achter te laten"
172
 
173
- #: includes/class-yit-plugin-panel.php:1463
174
  msgid ":) Thanks!"
175
  msgstr ":) Bedankt!"
176
 
@@ -726,18 +726,18 @@ msgctxt "Delete confirmation action"
726
  msgid "Yes, delete"
727
  msgstr "Ja, verwijderen"
728
 
729
- #: includes/class-yit-plugin-panel.php:490
730
  msgctxt "Help tab name"
731
  msgid "Help"
732
  msgstr "Help"
733
 
734
  #. translators: 1. Plugin name.
735
- #: includes/class-yit-plugin-panel.php:800
736
  msgctxt "Help tab default title"
737
  msgid "Thank you for purchasing %s!"
738
  msgstr "Bedankt voor het kopen van %s!"
739
 
740
- #: includes/class-yit-plugin-panel.php:801
741
  msgctxt "Help tab default description"
742
  msgid ""
743
  "We want to help you to enjoy a wonderful experience with all our products."
@@ -745,6 +745,11 @@ msgstr ""
745
  "We willen je helpen om te genieten van de geweldige ervaringen met al onze "
746
  "producten."
747
 
 
 
 
 
 
748
  #: includes/class-yith-dashboard.php:96
749
  msgctxt "Plugin FW"
750
  msgid "View Changelog"
@@ -932,6 +937,37 @@ msgctxt "Help tab submit ticket button"
932
  msgid "Submit a ticket"
933
  msgstr "Verstuur een ticket"
934
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
935
  #: yit-functions.php:1925
936
  msgctxt "Post action"
937
  msgid "Preview"
4
  msgstr ""
5
  "Project-Id-Version: YITH Framework\n"
6
  "Report-Msgid-Bugs-To: YITH <plugins@yithemes.com>\n"
7
+ "POT-Creation-Date: 2021-12-13 14:46:02+00:00\n"
8
+ "PO-Revision-Date: 2021-12-13 12:45:02+0000\n"
9
  "Language: nl\n"
10
  "MIME-Version: 1.0\n"
11
  "Content-Type: text/plain; charset=UTF-8\n"
75
  msgstr ""
76
  "Er is een fout opgetreden met je verzoek, probeer het later opnieuw a.u.b."
77
 
78
+ #: includes/class-yit-plugin-panel-woocommerce.php:430
79
  msgid "The changes you have made will be lost if you leave this page."
80
  msgstr "Als je deze pagina verlaat zullen alle wijzigingen verloren gaan."
81
 
87
  msgid "Settings"
88
  msgstr "Instellingen"
89
 
90
+ #: includes/class-yit-plugin-panel.php:455
91
+ #: includes/class-yit-plugin-panel.php:458
92
  msgid "How to install premium version"
93
  msgstr "Hoe installeer ik de premium versie"
94
 
95
+ #: includes/class-yit-plugin-panel.php:659
96
  #: includes/class-yit-plugin-subpanel.php:132
97
  msgid "Save Changes"
98
  msgstr "Wijzigingen opslaan"
99
 
100
+ #: includes/class-yit-plugin-panel.php:664
101
  #: includes/class-yit-plugin-subpanel.php:136
102
  #: templates/panel/woocommerce/woocommerce-form.php:14
103
  msgid ""
105
  msgstr ""
106
  "Als je doorgaat met deze actie, zal je alle opties op deze pagina resetten."
107
 
108
+ #: includes/class-yit-plugin-panel.php:664
109
  #: includes/class-yit-plugin-subpanel.php:136
110
  #: templates/panel/woocommerce/woocommerce-form.php:14
111
  msgid "Are you sure?"
112
  msgstr "Weet je het zeker?"
113
 
114
+ #: includes/class-yit-plugin-panel.php:668
115
  #: includes/class-yit-plugin-subpanel.php:139
116
  msgid "Reset to default"
117
  msgstr "Resetten naar standaard"
118
 
119
+ #: includes/class-yit-plugin-panel.php:1047
120
  msgid ""
121
  "The element you have entered already exists. Please, enter another name."
122
  msgstr "Het element dat je hebt ingevoerd bestaat al. Voer een andere naam in."
123
 
124
+ #: includes/class-yit-plugin-panel.php:1048
125
  msgid "Settings saved"
126
  msgstr "Instellingen opgeslagen"
127
 
128
+ #: includes/class-yit-plugin-panel.php:1049
129
  msgid "Settings reset"
130
  msgstr "Instellingen resetten"
131
 
132
+ #: includes/class-yit-plugin-panel.php:1050
133
  msgid "Element deleted correctly."
134
  msgstr "Element juist verwijderd."
135
 
136
+ #: includes/class-yit-plugin-panel.php:1051
137
+ #: includes/class-yit-plugin-panel.php:1052
138
  msgid "Element updated correctly."
139
  msgstr "Element juist geüpdatet."
140
 
141
+ #: includes/class-yit-plugin-panel.php:1053
142
  msgid "Database imported correctly."
143
  msgstr "Database juist geïmporteerd."
144
 
145
+ #: includes/class-yit-plugin-panel.php:1054
146
  msgid "An error has occurred during import. Please try again."
147
  msgstr "Er is een fout opgetreden tijdens importeren. Probeer opnieuw."
148
 
149
+ #: includes/class-yit-plugin-panel.php:1055
150
  msgid "The added file is not valid."
151
  msgstr "Het toegevoegde bestand is niet geldig."
152
 
153
+ #: includes/class-yit-plugin-panel.php:1056
154
  msgid "Sorry, import is disabled."
155
  msgstr "Sorry, importeren is uitgeschakeld."
156
 
157
+ #: includes/class-yit-plugin-panel.php:1057
158
  msgid "Sorting successful."
159
  msgstr "Succesvol gesorteerd."
160
 
161
+ #: includes/class-yit-plugin-panel.php:1525
162
  msgid "We need your support"
163
  msgstr "We hebben je hulp nodig"
164
 
165
+ #: includes/class-yit-plugin-panel.php:1526
166
  msgid "to keep updating and improving the plugin. Please,"
167
  msgstr "om de plugin te blijven bijwerken en verbeteren. A.u.b.,"
168
 
169
+ #: includes/class-yit-plugin-panel.php:1528
170
  msgid "help us by leaving a good review"
171
  msgstr "help ons door een goede beoordeling achter te laten"
172
 
173
+ #: includes/class-yit-plugin-panel.php:1529
174
  msgid ":) Thanks!"
175
  msgstr ":) Bedankt!"
176
 
726
  msgid "Yes, delete"
727
  msgstr "Ja, verwijderen"
728
 
729
+ #: includes/class-yit-plugin-panel.php:492
730
  msgctxt "Help tab name"
731
  msgid "Help"
732
  msgstr "Help"
733
 
734
  #. translators: 1. Plugin name.
735
+ #: includes/class-yit-plugin-panel.php:805
736
  msgctxt "Help tab default title"
737
  msgid "Thank you for purchasing %s!"
738
  msgstr "Bedankt voor het kopen van %s!"
739
 
740
+ #: includes/class-yit-plugin-panel.php:806
741
  msgctxt "Help tab default description"
742
  msgid ""
743
  "We want to help you to enjoy a wonderful experience with all our products."
745
  "We willen je helpen om te genieten van de geweldige ervaringen met al onze "
746
  "producten."
747
 
748
+ #: includes/class-yit-plugin-panel.php:853
749
+ msgctxt "Premium tab name"
750
+ msgid "Get premium"
751
+ msgstr "Neem premium"
752
+
753
  #: includes/class-yith-dashboard.php:96
754
  msgctxt "Plugin FW"
755
  msgid "View Changelog"
937
  msgid "Submit a ticket"
938
  msgstr "Verstuur een ticket"
939
 
940
+ #: templates/panel/premium-tab.php:30
941
+ msgctxt "Premium Tab"
942
+ msgid "Get the premium version to unlock advanced features"
943
+ msgstr "Neem de premium versie om geavanceerde opties te deblokkeren"
944
+
945
+ #: templates/panel/premium-tab.php:34
946
+ msgctxt "Premium Tab"
947
+ msgid "Get premium"
948
+ msgstr "Neem premium"
949
+
950
+ #: templates/panel/premium-tab.php:39
951
+ msgctxt "Premium Tab"
952
+ msgid "Plugin premium features images"
953
+ msgstr "Plugin premium opties afbeeldingen"
954
+
955
+ #. translators: alt attribute of main image tag.
956
+ #: templates/panel/premium-tab.php:51
957
+ msgctxt "Premium Tab"
958
+ msgid "And so much more!"
959
+ msgstr "En zo veel meer!"
960
+
961
+ #: templates/panel/premium-tab.php:53
962
+ msgctxt "Premium Tab"
963
+ msgid "Check the free vs premium features >"
964
+ msgstr "Bekijk de gratis vs premium opties >"
965
+
966
+ #: templates/panel/premium-tab.php:58
967
+ msgctxt "Premium Tab"
968
+ msgid "Get the premium version"
969
+ msgstr "Krijg de premium versie"
970
+
971
  #: yit-functions.php:1925
972
  msgctxt "Post action"
973
  msgid "Preview"
plugin-fw/languages/yith-plugin-fw.pot CHANGED
@@ -4,7 +4,7 @@ msgid ""
4
  msgstr ""
5
  "Project-Id-Version: \n"
6
  "Report-Msgid-Bugs-To: YITH <plugins@yithemes.com>\n"
7
- "POT-Creation-Date: 2021-12-02 07:20:36+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
@@ -80,7 +80,7 @@ msgstr ""
80
  msgid "There was an error with your request; please try again later."
81
  msgstr ""
82
 
83
- #: includes/class-yit-plugin-panel-woocommerce.php:426
84
  msgid "The changes you have made will be lost if you leave this page."
85
  msgstr ""
86
 
@@ -92,87 +92,87 @@ msgstr ""
92
  msgid "Settings"
93
  msgstr ""
94
 
95
- #: includes/class-yit-plugin-panel.php:453
96
- #: includes/class-yit-plugin-panel.php:456
97
  msgid "How to install premium version"
98
  msgstr ""
99
 
100
- #: includes/class-yit-plugin-panel.php:654
101
  #: includes/class-yit-plugin-subpanel.php:132
102
  msgid "Save Changes"
103
  msgstr ""
104
 
105
- #: includes/class-yit-plugin-panel.php:659
106
  #: includes/class-yit-plugin-subpanel.php:136
107
  #: templates/panel/woocommerce/woocommerce-form.php:14
108
  msgid "If you continue with this action, you will reset all options in this page."
109
  msgstr ""
110
 
111
- #: includes/class-yit-plugin-panel.php:659
112
  #: includes/class-yit-plugin-subpanel.php:136
113
  #: templates/panel/woocommerce/woocommerce-form.php:14
114
  msgid "Are you sure?"
115
  msgstr ""
116
 
117
- #: includes/class-yit-plugin-panel.php:663
118
  #: includes/class-yit-plugin-subpanel.php:139
119
  msgid "Reset to default"
120
  msgstr ""
121
 
122
- #: includes/class-yit-plugin-panel.php:981
123
  msgid "The element you have entered already exists. Please, enter another name."
124
  msgstr ""
125
 
126
- #: includes/class-yit-plugin-panel.php:982
127
  msgid "Settings saved"
128
  msgstr ""
129
 
130
- #: includes/class-yit-plugin-panel.php:983
131
  msgid "Settings reset"
132
  msgstr ""
133
 
134
- #: includes/class-yit-plugin-panel.php:984
135
  msgid "Element deleted correctly."
136
  msgstr ""
137
 
138
- #: includes/class-yit-plugin-panel.php:985
139
- #: includes/class-yit-plugin-panel.php:986
140
  msgid "Element updated correctly."
141
  msgstr ""
142
 
143
- #: includes/class-yit-plugin-panel.php:987
144
  msgid "Database imported correctly."
145
  msgstr ""
146
 
147
- #: includes/class-yit-plugin-panel.php:988
148
  msgid "An error has occurred during import. Please try again."
149
  msgstr ""
150
 
151
- #: includes/class-yit-plugin-panel.php:989
152
  msgid "The added file is not valid."
153
  msgstr ""
154
 
155
- #: includes/class-yit-plugin-panel.php:990
156
  msgid "Sorry, import is disabled."
157
  msgstr ""
158
 
159
- #: includes/class-yit-plugin-panel.php:991
160
  msgid "Sorting successful."
161
  msgstr ""
162
 
163
- #: includes/class-yit-plugin-panel.php:1459
164
  msgid "We need your support"
165
  msgstr ""
166
 
167
- #: includes/class-yit-plugin-panel.php:1460
168
  msgid "to keep updating and improving the plugin. Please,"
169
  msgstr ""
170
 
171
- #: includes/class-yit-plugin-panel.php:1462
172
  msgid "help us by leaving a good review"
173
  msgstr ""
174
 
175
- #: includes/class-yit-plugin-panel.php:1463
176
  msgid ":) Thanks!"
177
  msgstr ""
178
 
@@ -703,22 +703,27 @@ msgctxt "Delete confirmation action"
703
  msgid "Yes, delete"
704
  msgstr ""
705
 
706
- #: includes/class-yit-plugin-panel.php:490
707
  msgctxt "Help tab name"
708
  msgid "Help"
709
  msgstr ""
710
 
711
- #: includes/class-yit-plugin-panel.php:800
712
  #. translators: 1. Plugin name.
713
  msgctxt "Help tab default title"
714
  msgid "Thank you for purchasing %s!"
715
  msgstr ""
716
 
717
- #: includes/class-yit-plugin-panel.php:801
718
  msgctxt "Help tab default description"
719
  msgid "We want to help you to enjoy a wonderful experience with all our products."
720
  msgstr ""
721
 
 
 
 
 
 
722
  #: includes/class-yith-dashboard.php:96
723
  msgctxt "Plugin FW"
724
  msgid "View Changelog"
@@ -896,6 +901,37 @@ msgctxt "Help tab submit ticket button"
896
  msgid "Submit a ticket"
897
  msgstr ""
898
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
899
  #: yit-functions.php:1925
900
  msgctxt "Post action"
901
  msgid "Preview"
4
  msgstr ""
5
  "Project-Id-Version: \n"
6
  "Report-Msgid-Bugs-To: YITH <plugins@yithemes.com>\n"
7
+ "POT-Creation-Date: 2021-12-13 14:46:02+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
80
  msgid "There was an error with your request; please try again later."
81
  msgstr ""
82
 
83
+ #: includes/class-yit-plugin-panel-woocommerce.php:430
84
  msgid "The changes you have made will be lost if you leave this page."
85
  msgstr ""
86
 
92
  msgid "Settings"
93
  msgstr ""
94
 
95
+ #: includes/class-yit-plugin-panel.php:455
96
+ #: includes/class-yit-plugin-panel.php:458
97
  msgid "How to install premium version"
98
  msgstr ""
99
 
100
+ #: includes/class-yit-plugin-panel.php:659
101
  #: includes/class-yit-plugin-subpanel.php:132
102
  msgid "Save Changes"
103
  msgstr ""
104
 
105
+ #: includes/class-yit-plugin-panel.php:664
106
  #: includes/class-yit-plugin-subpanel.php:136
107
  #: templates/panel/woocommerce/woocommerce-form.php:14
108
  msgid "If you continue with this action, you will reset all options in this page."
109
  msgstr ""
110
 
111
+ #: includes/class-yit-plugin-panel.php:664
112
  #: includes/class-yit-plugin-subpanel.php:136
113
  #: templates/panel/woocommerce/woocommerce-form.php:14
114
  msgid "Are you sure?"
115
  msgstr ""
116
 
117
+ #: includes/class-yit-plugin-panel.php:668
118
  #: includes/class-yit-plugin-subpanel.php:139
119
  msgid "Reset to default"
120
  msgstr ""
121
 
122
+ #: includes/class-yit-plugin-panel.php:1047
123
  msgid "The element you have entered already exists. Please, enter another name."
124
  msgstr ""
125
 
126
+ #: includes/class-yit-plugin-panel.php:1048
127
  msgid "Settings saved"
128
  msgstr ""
129
 
130
+ #: includes/class-yit-plugin-panel.php:1049
131
  msgid "Settings reset"
132
  msgstr ""
133
 
134
+ #: includes/class-yit-plugin-panel.php:1050
135
  msgid "Element deleted correctly."
136
  msgstr ""
137
 
138
+ #: includes/class-yit-plugin-panel.php:1051
139
+ #: includes/class-yit-plugin-panel.php:1052
140
  msgid "Element updated correctly."
141
  msgstr ""
142
 
143
+ #: includes/class-yit-plugin-panel.php:1053
144
  msgid "Database imported correctly."
145
  msgstr ""
146
 
147
+ #: includes/class-yit-plugin-panel.php:1054
148
  msgid "An error has occurred during import. Please try again."
149
  msgstr ""
150
 
151
+ #: includes/class-yit-plugin-panel.php:1055
152
  msgid "The added file is not valid."
153
  msgstr ""
154
 
155
+ #: includes/class-yit-plugin-panel.php:1056
156
  msgid "Sorry, import is disabled."
157
  msgstr ""
158
 
159
+ #: includes/class-yit-plugin-panel.php:1057
160
  msgid "Sorting successful."
161
  msgstr ""
162
 
163
+ #: includes/class-yit-plugin-panel.php:1525
164
  msgid "We need your support"
165
  msgstr ""
166
 
167
+ #: includes/class-yit-plugin-panel.php:1526
168
  msgid "to keep updating and improving the plugin. Please,"
169
  msgstr ""
170
 
171
+ #: includes/class-yit-plugin-panel.php:1528
172
  msgid "help us by leaving a good review"
173
  msgstr ""
174
 
175
+ #: includes/class-yit-plugin-panel.php:1529
176
  msgid ":) Thanks!"
177
  msgstr ""
178
 
703
  msgid "Yes, delete"
704
  msgstr ""
705
 
706
+ #: includes/class-yit-plugin-panel.php:492
707
  msgctxt "Help tab name"
708
  msgid "Help"
709
  msgstr ""
710
 
711
+ #: includes/class-yit-plugin-panel.php:805
712
  #. translators: 1. Plugin name.
713
  msgctxt "Help tab default title"
714
  msgid "Thank you for purchasing %s!"
715
  msgstr ""
716
 
717
+ #: includes/class-yit-plugin-panel.php:806
718
  msgctxt "Help tab default description"
719
  msgid "We want to help you to enjoy a wonderful experience with all our products."
720
  msgstr ""
721
 
722
+ #: includes/class-yit-plugin-panel.php:853
723
+ msgctxt "Premium tab name"
724
+ msgid "Get premium"
725
+ msgstr ""
726
+
727
  #: includes/class-yith-dashboard.php:96
728
  msgctxt "Plugin FW"
729
  msgid "View Changelog"
901
  msgid "Submit a ticket"
902
  msgstr ""
903
 
904
+ #: templates/panel/premium-tab.php:30
905
+ msgctxt "Premium Tab"
906
+ msgid "Get the premium version to unlock advanced features"
907
+ msgstr ""
908
+
909
+ #: templates/panel/premium-tab.php:34
910
+ msgctxt "Premium Tab"
911
+ msgid "Get premium"
912
+ msgstr ""
913
+
914
+ #: templates/panel/premium-tab.php:39
915
+ msgctxt "Premium Tab"
916
+ msgid "Plugin premium features images"
917
+ msgstr ""
918
+
919
+ #: templates/panel/premium-tab.php:51
920
+ #. translators: alt attribute of main image tag.
921
+ msgctxt "Premium Tab"
922
+ msgid "And so much more!"
923
+ msgstr ""
924
+
925
+ #: templates/panel/premium-tab.php:53
926
+ msgctxt "Premium Tab"
927
+ msgid "Check the free vs premium features >"
928
+ msgstr ""
929
+
930
+ #: templates/panel/premium-tab.php:58
931
+ msgctxt "Premium Tab"
932
+ msgid "Get the premium version"
933
+ msgstr ""
934
+
935
  #: yit-functions.php:1925
936
  msgctxt "Post action"
937
  msgid "Preview"
plugin-fw/phpcs.xml CHANGED
@@ -24,6 +24,9 @@
24
  <!-- Check up to 8 files simultaneously. -->
25
  <arg name="parallel" value="8"/>
26
 
 
 
 
27
  <!-- Configs -->
28
  <config name="minimum_supported_wp_version" value="5.2"/>
29
  <!-- Check for cross-version support for PHP 5.6 and higher. -->
24
  <!-- Check up to 8 files simultaneously. -->
25
  <arg name="parallel" value="8"/>
26
 
27
+ <!-- Only scan PHP files. -->
28
+ <arg name="extensions" value="php"/>
29
+
30
  <!-- Configs -->
31
  <config name="minimum_supported_wp_version" value="5.2"/>
32
  <!-- Check for cross-version support for PHP 5.6 and higher. -->
plugin-fw/templates/fields/list-table.php CHANGED
@@ -11,11 +11,11 @@ defined( 'ABSPATH' ) || exit; // Exit if accessed directly.
11
  list ( $field_id, $class, $the_title, $the_post_type, $args, $add_new_button, $add_new_url, $list_table_class, $list_table_class_dir, $search_form, $desc ) = yith_plugin_fw_extract( $field, 'id', 'class', 'title', 'post_type', 'args', 'add_new_button', 'add_new_url', 'list_table_class', 'list_table_class_dir', 'search_form', 'desc' );
12
 
13
  $show_button = false;
14
- if ( isset( $add_new_button ) && isset( $the_post_type ) ) {
15
  $show_button = true;
16
  $admin_url = admin_url( 'post-new.php' );
17
  $params['post_type'] = $the_post_type;
18
- $add_new_url = apply_filters( 'yith_plugin_fw_add_new_post_url', esc_url( add_query_arg( $params, $admin_url ) ), $params, isset( $args ) ? $args : false );
19
  }
20
 
21
  if ( isset( $list_table_class, $list_table_class_dir ) && ! class_exists( $list_table_class ) && file_exists( $list_table_class_dir ) ) {
11
  list ( $field_id, $class, $the_title, $the_post_type, $args, $add_new_button, $add_new_url, $list_table_class, $list_table_class_dir, $search_form, $desc ) = yith_plugin_fw_extract( $field, 'id', 'class', 'title', 'post_type', 'args', 'add_new_button', 'add_new_url', 'list_table_class', 'list_table_class_dir', 'search_form', 'desc' );
12
 
13
  $show_button = false;
14
+ if ( isset( $add_new_button ) && ( isset( $the_post_type ) || ( isset( $add_new_url ) ) ) ) {
15
  $show_button = true;
16
  $admin_url = admin_url( 'post-new.php' );
17
  $params['post_type'] = $the_post_type;
18
+ $add_new_url = $add_new_url ? $add_new_url : apply_filters( 'yith_plugin_fw_add_new_post_url', esc_url( add_query_arg( $params, $admin_url ) ), $params, isset( $args ) ? $args : false );
19
  }
20
 
21
  if ( isset( $list_table_class, $list_table_class_dir ) && ! class_exists( $list_table_class ) && file_exists( $list_table_class_dir ) ) {
plugin-fw/templates/panel/premium-tab.php ADDED
@@ -0,0 +1,63 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * The Template for displaying the Premium tab.
4
+ *
5
+ * @var array $options The premium tab options array.
6
+ * @var string $premium_url The premium landing page URL.
7
+ * @var string $plugin_slug The plugin slug.
8
+ *
9
+ * @package YITH\PluginFramework\Templates
10
+ * @author Giuseppe Arcifa <giuseppe.arcifa@yithemes.com>
11
+ * @since 3.9.0
12
+ */
13
+
14
+ defined( 'ABSPATH' ) || exit; // Exit if accessed directly.
15
+
16
+ list( $premium_features, $main_image_url, $show_free_vs_premium ) = yith_plugin_fw_extract( $options, 'premium_features', 'main_image_url', 'show_free_vs_premium_link' );
17
+
18
+ $get_premium_url = yith_plugin_fw_add_utm_data( $premium_url, $plugin_slug, 'button-upgrade', 'wp-free-dashboard' );
19
+
20
+ if ( $show_free_vs_premium ) {
21
+ $free_vs_premium_url = yith_plugin_fw_add_utm_data( $premium_url, $plugin_slug, 'button-compare', 'wp-free-dashboard' );
22
+ }
23
+
24
+ ?>
25
+
26
+ <div id="yith_plugin_fw_panel_premium_tab" class="yith-plugin-fw-panel-premium-tab-container">
27
+ <div class="yith-plugin-fw-panel-premium-tab">
28
+ <div class="yith-plugin-fw-panel-premium-tab__header">
29
+ <span class="yith-plugin-fw-panel-premium-tab__header-title">
30
+ <?php echo esc_html_x( 'Get the premium version to unlock advanced features', 'Premium Tab', 'yith-plugin-fw' ); ?>
31
+ </span>
32
+ <span class="yith-plugin-fw-panel-premium-tab__header-cta-arrow"></span>
33
+ <a href="<?php echo esc_url( $get_premium_url ); ?>" target="_blank" class="yith-plugin-fw-panel-premium-tab__header-cta yith-plugin-fw-panel-premium-tab__cta-button">
34
+ <?php echo esc_html_x( 'Get premium', 'Premium Tab', 'yith-plugin-fw' ); ?>
35
+ </a>
36
+ </div>
37
+ <div class="yith-plugin-fw-panel-premium-tab__content">
38
+ <?php if ( $main_image_url ) : ?>
39
+ <img class="yith-plugin-fw-panel-premium-tab__main-image" src="<?php echo esc_attr( $main_image_url ); ?>" alt="<?php esc_html_x( 'Plugin premium features images', 'Premium Tab', 'yith-plugin-fw' ); // translators: alt attribute of main image tag. ?>">
40
+ <?php endif; ?>
41
+ <div class="yith-plugin-fw-panel-premium-tab__features">
42
+ <?php foreach ( $premium_features as $premium_feature ) : ?>
43
+ <div class="yith-plugin-fw-panel-premium-tab__feature">
44
+ <span class="yith-plugin-fw-panel-premium-tab__feature-content">
45
+ <?php echo wp_kses_post( $premium_feature ); ?>
46
+ </span>
47
+ </div>
48
+ <?php endforeach; ?>
49
+ <?php if ( $show_free_vs_premium ) : ?>
50
+ <span class="yith-plugin-fw-panel-premium-tab__free-vs-premium">
51
+ <?php echo esc_html_x( 'And so much more!', 'Premium Tab', 'yith-plugin-fw' ); ?>
52
+ <a href="<?php echo esc_url( $free_vs_premium_url . '#tab-free_vs_premium_tab' ); ?>" target="_blank">
53
+ <?php echo esc_html_x( 'Check the free vs premium features >', 'Premium Tab', 'yith-plugin-fw' ); ?>
54
+ </a>
55
+ </span>
56
+ <?php endif; ?>
57
+ <a href="<?php echo esc_url( $get_premium_url ); ?>" target="_blank" class="yith-plugin-fw-panel-premium-tab__content-cta yith-plugin-fw-panel-premium-tab__cta-button">
58
+ <?php echo esc_html_x( 'Get the premium version', 'Premium Tab', 'yith-plugin-fw' ); ?>
59
+ </a>
60
+ </div>
61
+ </div>
62
+ </div>
63
+ </div>