YITH WooCommerce Ajax Search - Version 1.7.7

Version Description

  • Released on 23 April 2020 =
  • New: Support for WooCommerce 4.1
  • Update: Plugin framework
Download this release

Release Info

Developer yithemes
Plugin Icon 128x128 YITH WooCommerce Ajax Search
Version 1.7.7
Comparing to
See all releases

Code changes from version 1.7.6 to 1.7.7

Files changed (163) hide show
  1. README.txt +5 -1
  2. assets/css/admin.css +0 -0
  3. assets/css/yith_wcas_ajax_search.css +0 -0
  4. assets/images/01.jpg +0 -0
  5. assets/images/02.png +0 -0
  6. assets/images/03.jpg +0 -0
  7. assets/images/ajax-loader.gif +0 -0
  8. assets/images/ajax-search-premium.jpg +0 -0
  9. assets/images/number-eight.png +0 -0
  10. assets/images/number-five.png +0 -0
  11. assets/images/number-fourth.png +0 -0
  12. assets/images/number-one.png +0 -0
  13. assets/images/number-seven.png +0 -0
  14. assets/images/number-six.png +0 -0
  15. assets/images/number-three.png +0 -0
  16. assets/images/number-two.png +0 -0
  17. assets/images/upgrade.png +0 -0
  18. assets/js/devbridge-jquery-autocomplete.js +0 -0
  19. assets/js/devbridge-jquery-autocomplete.min.js +0 -0
  20. assets/js/frontend.js +0 -0
  21. assets/js/frontend.min.js +0 -0
  22. assets/js/yith-autocomplete.js +0 -0
  23. assets/js/yith-autocomplete.min.js +0 -0
  24. class.yith-wcas-admin.php → includes/class.yith-wcas-admin.php +0 -0
  25. class.yith-wcas-frontend.php → includes/class.yith-wcas-frontend.php +0 -0
  26. class.yith-wcas.php → includes/class.yith-wcas.php +0 -0
  27. {compatibility → includes/compatibility}/elementor/class.yith-wcas-elementor.php +0 -0
  28. {compatibility → includes/compatibility}/elementor/class.yith-wcas-search-form-elementor.php +0 -0
  29. functions.yith-wcas.php → includes/functions.yith-wcas.php +0 -0
  30. {widgets → includes/widgets}/class.yith-wcas-ajax-search.php +0 -0
  31. init.php +8 -8
  32. languages/yith-woocommerce-ajax-search-it_IT.mo +0 -0
  33. languages/yith-woocommerce-ajax-search-it_IT.po +0 -0
  34. languages/yith-woocommerce-ajax-search-pt_PT.mo +0 -0
  35. languages/yith-woocommerce-ajax-search-pt_PT.po +0 -0
  36. languages/yith-woocommerce-ajax-search.pot +0 -0
  37. plugin-fw/.jshintrc +0 -0
  38. plugin-fw/Gruntfile.js +0 -0
  39. plugin-fw/assets/css/codemirror/codemirror.css +0 -0
  40. plugin-fw/assets/css/colorbox.css +0 -0
  41. plugin-fw/assets/css/metaboxes.css +0 -0
  42. plugin-fw/assets/css/yit-plugin-panel.css +7 -2
  43. plugin-fw/assets/css/yit-upgrade-to-pro.css +0 -0
  44. plugin-fw/assets/css/yit-upgrader.css +0 -0
  45. plugin-fw/assets/css/yith-fields.css +260 -133
  46. plugin-fw/assets/fonts/yith-icon.eot +0 -0
  47. plugin-fw/assets/fonts/yith-icon.svg +0 -0
  48. plugin-fw/assets/fonts/yith-icon.ttf +0 -0
  49. plugin-fw/assets/fonts/yith-icon.woff +0 -0
  50. plugin-fw/assets/images/arrow_down.svg +0 -0
  51. plugin-fw/assets/images/banner-premium.png +0 -0
  52. plugin-fw/assets/images/colorbox/border1.png +0 -0
  53. plugin-fw/assets/images/colorbox/border2.png +0 -0
  54. plugin-fw/assets/images/colorbox/loading.gif +0 -0
  55. plugin-fw/assets/images/double-sidebar.png +0 -0
  56. plugin-fw/assets/images/licence-error.png +0 -0
  57. plugin-fw/assets/images/no-sidebar.png +0 -0
  58. plugin-fw/assets/images/sidebar-left.png +0 -0
  59. plugin-fw/assets/images/sidebar-right.png +0 -0
  60. plugin-fw/assets/images/sleep.png +0 -0
  61. plugin-fw/assets/images/spinner.png +0 -0
  62. plugin-fw/assets/images/ui-icons_222222_256x240.png +0 -0
  63. plugin-fw/assets/images/ui-icons_2e83ff_256x240.png +0 -0
  64. plugin-fw/assets/images/ui-icons_454545_256x240.png +0 -0
  65. plugin-fw/assets/images/ui-icons_888888_256x240.png +0 -0
  66. plugin-fw/assets/images/x.png +0 -0
  67. plugin-fw/assets/images/yith-icon.svg +0 -0
  68. plugin-fw/assets/images/yithemes-icon.png +0 -0
  69. plugin-fw/assets/js/codemirror/codemirror.js +0 -0
  70. plugin-fw/assets/js/codemirror/javascript.js +0 -0
  71. plugin-fw/assets/js/how-to.js +0 -0
  72. plugin-fw/assets/js/javascript-md5/md5.min.js +0 -0
  73. plugin-fw/assets/js/jquery.colorbox.js +0 -0
  74. plugin-fw/assets/js/metabox.js +0 -0
  75. plugin-fw/assets/js/metabox.min.js +0 -0
  76. plugin-fw/assets/js/multisite-updater.js +0 -0
  77. plugin-fw/assets/js/multisite-updater.min.js +0 -0
  78. plugin-fw/assets/js/wp-pages.js +0 -0
  79. plugin-fw/assets/js/wp-pages.min.js +0 -0
  80. plugin-fw/assets/js/yit-cpt-unlimited.js +0 -0
  81. plugin-fw/assets/js/yit-cpt-unlimited.min.js +0 -0
  82. plugin-fw/assets/js/yit-plugin-panel.js +0 -0
  83. plugin-fw/assets/js/yit-plugin-panel.min.js +0 -0
  84. plugin-fw/assets/js/yit-wp-pointer.js +0 -0
  85. plugin-fw/assets/js/yit-wp-pointer.min.js +0 -0
  86. plugin-fw/assets/js/yith-colorpicker.min.js +0 -0
  87. plugin-fw/assets/js/yith-dashboard.js +0 -0
  88. plugin-fw/assets/js/yith-dashboard.min.js +0 -0
  89. plugin-fw/assets/js/yith-fields.js +794 -728
  90. plugin-fw/assets/js/yith-fields.min.js +1 -1
  91. plugin-fw/assets/js/yith-gutenberg.js +0 -0
  92. plugin-fw/assets/js/yith-gutenberg.min.js +0 -0
  93. plugin-fw/assets/js/yith-system-info.js +0 -0
  94. plugin-fw/assets/js/yith-system-info.min.js +0 -0
  95. plugin-fw/assets/js/yith-update-plugins.js +0 -0
  96. plugin-fw/assets/js/yith-update-plugins.min.js +0 -0
  97. plugin-fw/init.php +2 -2
  98. plugin-fw/languages/yith-plugin-fw-el.mo +0 -0
  99. plugin-fw/languages/yith-plugin-fw-el.po +36 -28
  100. plugin-fw/languages/yith-plugin-fw-es_ES.mo +0 -0
  101. plugin-fw/languages/yith-plugin-fw-es_ES.po +36 -28
  102. plugin-fw/languages/yith-plugin-fw-it_IT.mo +0 -0
  103. plugin-fw/languages/yith-plugin-fw-it_IT.po +35 -27
  104. plugin-fw/languages/yith-plugin-fw-nl_NL.mo +0 -0
  105. plugin-fw/languages/yith-plugin-fw-nl_NL.po +36 -28
  106. plugin-fw/languages/yith-plugin-fw.pot +24 -24
  107. plugin-fw/lib/promo/black.jpg +0 -0
  108. plugin-fw/lib/promo/cyber.jpg +0 -0
  109. plugin-fw/lib/promo/halloween.jpg +0 -0
  110. plugin-fw/lib/promo/yith-promo.php +0 -0
  111. plugin-fw/lib/promo/yith-promo.xml +0 -0
  112. plugin-fw/lib/yit-ajax.php +0 -0
  113. plugin-fw/lib/yit-cpt-unlimited.php +0 -0
  114. plugin-fw/lib/yit-metabox.php +0 -0
  115. plugin-fw/lib/yit-plugin-common.php +0 -0
  116. plugin-fw/lib/yit-plugin-gradients.php +0 -0
  117. plugin-fw/lib/yit-plugin-licence.php +0 -0
  118. plugin-fw/lib/yit-plugin-panel-wc.php +1 -1
  119. plugin-fw/lib/yit-plugin-panel.php +51 -14
  120. plugin-fw/lib/yit-plugin-subpanel.php +0 -0
  121. plugin-fw/lib/yit-pointers.php +0 -0
  122. plugin-fw/lib/yit-theme-licence.php +0 -0
  123. plugin-fw/lib/yit-upgrade.php +0 -0
  124. plugin-fw/lib/yit-video.php +0 -0
  125. plugin-fw/lib/yith-dashboard.php +0 -0
  126. plugin-fw/lib/yith-gutenberg.php +0 -0
  127. plugin-fw/lib/yith-system-status.php +1 -1
  128. plugin-fw/package.json +1 -1
  129. plugin-fw/templates/fields/ajax-customers.php +0 -0
  130. plugin-fw/templates/fields/checkbox-array.php +0 -0
  131. plugin-fw/templates/fields/country-select.php +0 -0
  132. plugin-fw/templates/fields/custom.php +0 -0
  133. plugin-fw/templates/fields/date-format.php +0 -0
  134. plugin-fw/templates/fields/dimensions.php +123 -0
  135. plugin-fw/templates/fields/list-table.php +0 -0
  136. plugin-fw/templates/fields/multi-colorpicker.php +0 -0
  137. plugin-fw/templates/fields/multi-select.php +0 -0
  138. plugin-fw/templates/fields/onoff.php +3 -3
  139. plugin-fw/templates/fields/password.php +0 -0
  140. plugin-fw/templates/fields/select-images.php +5 -4
  141. plugin-fw/templates/fields/toggle-element-fixed.php +0 -0
  142. plugin-fw/templates/fields/toggle-element.php +0 -0
  143. plugin-fw/templates/fields/upload.php +1 -1
  144. plugin-fw/templates/metaboxes/tab.php +0 -0
  145. plugin-fw/templates/metaboxes/types/icon-list.php +0 -0
  146. plugin-fw/templates/panel/infobox.php +0 -0
  147. plugin-fw/templates/panel/sub-tabs-nav.php +0 -0
  148. plugin-fw/templates/panel/woocommerce/woocommerce-form.php +0 -0
  149. plugin-fw/templates/panel/woocommerce/woocommerce-panel.php +0 -0
  150. plugin-fw/templates/panel/woocommerce/woocommerce-upload.php +0 -0
  151. plugin-fw/templates/sysinfo/system-information-panel.php +0 -0
  152. plugin-fw/yit-deactive-plugin.php +0 -0
  153. plugin-fw/yit-functions.php +39 -0
  154. plugin-fw/yit-plugin-registration-hook.php +0 -0
  155. plugin-fw/yit-plugin.php +0 -0
  156. plugin-fw/yit-woocommerce-compatibility.php +0 -0
  157. plugin-options/gutenberg/blocks.php +0 -0
  158. plugin-options/premium-options.php +0 -0
  159. plugin-options/settings-options.php +0 -0
  160. templates/admin/premium.php +0 -0
  161. templates/yith-woocommerce-ajax-search.php +0 -0
  162. uninstall.php +0 -0
  163. wpml-config.xml +0 -0
README.txt CHANGED
@@ -4,7 +4,7 @@ Contributors: yithemes
4
  Tags: woocommerce search by sku, woocommerce search results, woocommerce search shortcode, woocommerce search page, woocommerce search form, woocommerce search filter, woocommerce search products, woocommerce search content, woocommerce search autocomplete, woocommerce advanced search, woocommerce search category, woocommerce search product attributes, woocommerce search by tag, woocommerce search by brand, woocommerce predictive, woocommerce live search, woocommerce single product search, woocommerce site search, woocommerce search tex, tajax, search, woocommerce, products, themes, yit, e-commerce, shop, yith, ajax search, instant search, premium, yithemes, autocomplete, autosuggest, better search, category search, custom search, highlight terms, Live Search, Predictive Search, product search, relevant search, search highlight, search product, suggest, typeahead, WooCommerce Plugin, woocommerce product search, woocommerce search, wordpress ecommerce
5
  Requires at least: 4.0.0
6
  Tested up to: 5.4
7
- Stable tag: 1.7.6
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -139,6 +139,10 @@ If you have created your own language pack for YITH WooCommerce Ajax Search, or
139
 
140
  == Changelog ==
141
 
 
 
 
 
142
  = 1.7.6 - Released on 20 March 2020 =
143
  * New: Support for Elementor
144
  * Update: Plugin framework
4
  Tags: woocommerce search by sku, woocommerce search results, woocommerce search shortcode, woocommerce search page, woocommerce search form, woocommerce search filter, woocommerce search products, woocommerce search content, woocommerce search autocomplete, woocommerce advanced search, woocommerce search category, woocommerce search product attributes, woocommerce search by tag, woocommerce search by brand, woocommerce predictive, woocommerce live search, woocommerce single product search, woocommerce site search, woocommerce search tex, tajax, search, woocommerce, products, themes, yit, e-commerce, shop, yith, ajax search, instant search, premium, yithemes, autocomplete, autosuggest, better search, category search, custom search, highlight terms, Live Search, Predictive Search, product search, relevant search, search highlight, search product, suggest, typeahead, WooCommerce Plugin, woocommerce product search, woocommerce search, wordpress ecommerce
5
  Requires at least: 4.0.0
6
  Tested up to: 5.4
7
+ Stable tag: 1.7.7
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
139
 
140
  == Changelog ==
141
 
142
+ = 1.7.7 - Released on 23 April 2020 =
143
+ * New: Support for WooCommerce 4.1
144
+ * Update: Plugin framework
145
+
146
  = 1.7.6 - Released on 20 March 2020 =
147
  * New: Support for Elementor
148
  * Update: Plugin framework
assets/css/admin.css CHANGED
File without changes
assets/css/yith_wcas_ajax_search.css CHANGED
File without changes
assets/images/01.jpg CHANGED
File without changes
assets/images/02.png CHANGED
File without changes
assets/images/03.jpg CHANGED
File without changes
assets/images/ajax-loader.gif CHANGED
File without changes
assets/images/ajax-search-premium.jpg CHANGED
File without changes
assets/images/number-eight.png CHANGED
File without changes
assets/images/number-five.png CHANGED
File without changes
assets/images/number-fourth.png CHANGED
File without changes
assets/images/number-one.png CHANGED
File without changes
assets/images/number-seven.png CHANGED
File without changes
assets/images/number-six.png CHANGED
File without changes
assets/images/number-three.png CHANGED
File without changes
assets/images/number-two.png CHANGED
File without changes
assets/images/upgrade.png CHANGED
File without changes
assets/js/devbridge-jquery-autocomplete.js CHANGED
File without changes
assets/js/devbridge-jquery-autocomplete.min.js CHANGED
File without changes
assets/js/frontend.js CHANGED
File without changes
assets/js/frontend.min.js CHANGED
File without changes
assets/js/yith-autocomplete.js CHANGED
File without changes
assets/js/yith-autocomplete.min.js CHANGED
File without changes
class.yith-wcas-admin.php → includes/class.yith-wcas-admin.php RENAMED
File without changes
class.yith-wcas-frontend.php → includes/class.yith-wcas-frontend.php RENAMED
File without changes
class.yith-wcas.php → includes/class.yith-wcas.php RENAMED
File without changes
{compatibility → includes/compatibility}/elementor/class.yith-wcas-elementor.php RENAMED
File without changes
{compatibility → includes/compatibility}/elementor/class.yith-wcas-search-form-elementor.php RENAMED
File without changes
functions.yith-wcas.php → includes/functions.yith-wcas.php RENAMED
File without changes
{widgets → includes/widgets}/class.yith-wcas-ajax-search.php RENAMED
File without changes
init.php CHANGED
@@ -3,13 +3,13 @@
3
  * Plugin Name: YITH WooCommerce Ajax Search
4
  * Plugin URI: https://yithemes.com/themes/plugins/yith-woocommerce-ajax-search/
5
  * Description: <code><strong>YITH WooCommerce Ajax Search</strong></code> is the plugin that allows you to search for a specific product by inserting a few characters. Thanks to <strong>Ajax Search</strong>, users can quickly find the contents they are interested in without wasting time among site pages. <a href="https://yithemes.com/" target="_blank">Get more plugins for your e-commerce shop on <strong>YITH</strong></a>.
6
- * Version: 1.7.6
7
  * Author: YITH
8
  * Author URI: https://yithemes.com/
9
  * Text Domain: yith-woocommerce-ajax-search
10
  * Domain Path: /languages/
11
  * WC requires at least: 3.0.0
12
- * WC tested up to: 4.0.0
13
  */
14
 
15
  /*
@@ -71,7 +71,7 @@ register_activation_hook( __FILE__, 'yith_plugin_registration_hook' );
71
  if ( defined( 'YITH_WCAS_VERSION' ) ) {
72
  return;
73
  } else {
74
- define( 'YITH_WCAS_VERSION', '1.7.6' );
75
  }
76
 
77
  if ( ! defined( 'YITH_WCAS_FREE_INIT' ) ) {
@@ -130,11 +130,11 @@ function yith_ajax_search_constructor() {
130
  load_plugin_textdomain( 'yith-woocommerce-ajax-search', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
131
 
132
  // Load required classes and functions.
133
- require_once 'functions.yith-wcas.php';
134
- require_once 'class.yith-wcas-admin.php';
135
- require_once 'class.yith-wcas-frontend.php';
136
- require_once 'widgets/class.yith-wcas-ajax-search.php';
137
- require_once 'class.yith-wcas.php';
138
 
139
  // Let's start the game!
140
  global $yith_wcas;
3
  * Plugin Name: YITH WooCommerce Ajax Search
4
  * Plugin URI: https://yithemes.com/themes/plugins/yith-woocommerce-ajax-search/
5
  * Description: <code><strong>YITH WooCommerce Ajax Search</strong></code> is the plugin that allows you to search for a specific product by inserting a few characters. Thanks to <strong>Ajax Search</strong>, users can quickly find the contents they are interested in without wasting time among site pages. <a href="https://yithemes.com/" target="_blank">Get more plugins for your e-commerce shop on <strong>YITH</strong></a>.
6
+ * Version: 1.7.7
7
  * Author: YITH
8
  * Author URI: https://yithemes.com/
9
  * Text Domain: yith-woocommerce-ajax-search
10
  * Domain Path: /languages/
11
  * WC requires at least: 3.0.0
12
+ * WC tested up to: 4.1.0
13
  */
14
 
15
  /*
71
  if ( defined( 'YITH_WCAS_VERSION' ) ) {
72
  return;
73
  } else {
74
+ define( 'YITH_WCAS_VERSION', '1.7.7' );
75
  }
76
 
77
  if ( ! defined( 'YITH_WCAS_FREE_INIT' ) ) {
130
  load_plugin_textdomain( 'yith-woocommerce-ajax-search', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
131
 
132
  // Load required classes and functions.
133
+ require_once YITH_WCAS_DIR .'includes/functions.yith-wcas.php';
134
+ require_once YITH_WCAS_DIR .'includes/class.yith-wcas-admin.php';
135
+ require_once YITH_WCAS_DIR .'includes/class.yith-wcas-frontend.php';
136
+ require_once YITH_WCAS_DIR .'includes/widgets/class.yith-wcas-ajax-search.php';
137
+ require_once YITH_WCAS_DIR .'includes/class.yith-wcas.php';
138
 
139
  // Let's start the game!
140
  global $yith_wcas;
languages/yith-woocommerce-ajax-search-it_IT.mo CHANGED
File without changes
languages/yith-woocommerce-ajax-search-it_IT.po CHANGED
File without changes
languages/yith-woocommerce-ajax-search-pt_PT.mo CHANGED
File without changes
languages/yith-woocommerce-ajax-search-pt_PT.po CHANGED
File without changes
languages/yith-woocommerce-ajax-search.pot CHANGED
File without changes
plugin-fw/.jshintrc CHANGED
File without changes
plugin-fw/Gruntfile.js CHANGED
File without changes
plugin-fw/assets/css/codemirror/codemirror.css CHANGED
File without changes
plugin-fw/assets/css/colorbox.css CHANGED
File without changes
plugin-fw/assets/css/metaboxes.css CHANGED
File without changes
plugin-fw/assets/css/yit-plugin-panel.css CHANGED
@@ -46,7 +46,12 @@
46
  margin-right : 15px;
47
  }
48
 
49
- .yith-plugin-fw-panel-custom-tab-container > h2 {
 
 
 
 
 
50
  border : none;
51
  padding : 15px 0;
52
  }
@@ -124,7 +129,7 @@
124
  cursor : pointer;
125
  background-color : #375f6b;
126
  color : #fff;
127
- margin-left: 10px !important;
128
  }
129
 
130
  .yith-plugin-fw-wp-page-wrapper .wrap a.page-title-action:hover {
46
  margin-right : 15px;
47
  }
48
 
49
+ .yith-plugin-ui .yith-plugin-fw-panel-custom-tab-container{
50
+ border: 1px solid #ddd;
51
+ border-top : 0;
52
+ }
53
+
54
+ .yith-plugin-ui .yith-plugin-fw-panel-custom-tab-container > h2 {
55
  border : none;
56
  padding : 15px 0;
57
  }
129
  cursor : pointer;
130
  background-color : #375f6b;
131
  color : #fff;
132
+ margin-left : 10px !important;
133
  }
134
 
135
  .yith-plugin-fw-wp-page-wrapper .wrap a.page-title-action:hover {
plugin-fw/assets/css/yit-upgrade-to-pro.css CHANGED
File without changes
plugin-fw/assets/css/yit-upgrader.css CHANGED
File without changes
plugin-fw/assets/css/yith-fields.css CHANGED
@@ -28,8 +28,8 @@
28
  }
29
 
30
  .yith-plugin-fw-title-field-wrapper h3.title {
31
- width : 100%;
32
- padding: 0 !important;
33
  }
34
 
35
  .the-metabox .yith-plugin-fw-title-field-wrapper h3.title {
@@ -37,15 +37,16 @@
37
  }
38
 
39
  .yith-plugin-fw span.color-alpha {
40
- height: 100%!important;
41
- width: 100% !important;
42
- border: 1px solid #d9d9d9;
43
- margin: -1px;
44
  }
45
 
46
- .yith-plugin-fw .wp-color-result-text{
47
- height: 100%;
48
  }
 
49
  .yith-plugin-fw input[type=email],
50
  .yith-plugin-fw input[type=number],
51
  .yith-plugin-fw input[type=text]:not(.select2-search__field),
@@ -55,11 +56,11 @@
55
  .yith-plugin-ui input[type=password],
56
  .woocommerce .yith-plugin-fw table.form-table input[type=text]:not(.select2-search__field),
57
  .woocommerce .yith-plugin-fw table.form-table select {
58
- width : 400px;
59
- max-width : 100%;
60
- height : 30px;
61
- padding : 5px;
62
- line-height: 1;
63
  }
64
 
65
  .woocommerce .yith-plugin-fw table.form-table input[type=text].wp-color-picker,
@@ -72,8 +73,8 @@
72
  padding : 3px 5px;
73
  }
74
 
75
- .wp-core-ui .yith-plugin-fw-colorpicker-field-wrapper button{
76
- border-color: #7e8993;
77
  }
78
 
79
  .woocommerce .yith-plugin-fw table.form-table input[type=text].colorpick,
@@ -442,12 +443,12 @@ ul.yit-icons-manager-list li.active {
442
  WordPress 5.3 with old panel fixes
443
  ****************/
444
  .yith-plugin-fw-field-wrapper .select2-container .select2-selection--single {
445
- height: auto;
446
- line-height: 1;
447
  }
448
 
449
- .yith-plugin-fw-field-wrapper .select2-container .select2-selection--single .select2-selection__arrow{
450
- height: 100%;
451
  }
452
 
453
  /****************
@@ -480,157 +481,192 @@ YITH UI
480
  }
481
 
482
  .yith-icon-paypal-svgrepo-com:before {
483
- content: "\e91b";
484
  }
 
485
  .yith-icon-check-circle:before {
486
- content: "\e921";
487
- color: #757575;
488
  }
 
489
  .yith-icon-info-squared:before {
490
- content: "\e922";
491
- color: #757575;
492
  }
 
493
  .yith-icon-warning-triangle:before {
494
- content: "\e923";
495
- color: #757575;
496
  }
 
497
  .yith-icon-bank:before {
498
- content: "\e91c";
499
  }
 
500
  .yith-icon-accounting:before {
501
- content: "\e91d";
502
  }
 
503
  .yith-icon-bank-check:before {
504
- content: "\e91e";
505
  }
 
506
  .yith-icon-cash:before {
507
- content: "\e91f";
508
  }
 
509
  .yith-icon-credit-card:before {
510
- content: "\e920";
511
  }
 
512
  .yith-icon-calendar_add:before {
513
- content: "\e913";
514
- color: #757575;
515
  }
 
516
  .yith-icon-calendar_money:before {
517
- content: "\e914";
518
- color: #757575;
519
  }
 
520
  .yith-icon-calendar2:before {
521
- content: "\e915";
522
- color: #757575;
523
  }
 
524
  .yith-icon-people:before {
525
- content: "\e916";
526
- color: #757575;
527
  }
 
528
  .yith-icon-shield_money:before {
529
- content: "\e917";
530
- color: #757575;
531
  }
 
532
  .yith-icon-time_check:before {
533
- content: "\e918";
534
- color: #757575;
535
  }
 
536
  .yith-icon-world_settings:before {
537
- content: "\e919";
538
- color: #757575;
539
  }
 
540
  .yith-icon-arrow_eye_closed:before {
541
- content: "\e912";
542
- color: #757575;
543
  }
 
544
  .yith-icon-arrow_eye:before {
545
- content: "\e911";
546
- color: #757575;
547
  }
 
548
  .yith-icon-reset:before {
549
- content: "\e910";
550
- color: #757575;
551
  }
 
552
  .yith-icon-drag:before {
553
- content: "\e90f";
554
- color: #757575;
555
  }
 
556
  .yith-icon-trash:before {
557
- content: "\e90d";
558
- color: #757575;
559
  }
 
560
  .yith-icon-info:before {
561
- content: "\e90e";
562
- color: #757575;
563
  }
 
564
  .yith-icon-arrow_down:before {
565
- content: "\e900";
566
- color: #757575;
567
  }
 
568
  .yith-icon-arrow_left:before {
569
- content: "\e901";
570
- color: #757575;
571
  }
 
572
  .yith-icon-arrow_right:before {
573
- content: "\e902";
574
- color: #757575;
575
  }
 
576
  .yith-icon-arrow_up:before {
577
- content: "\e903";
578
- color: #757575;
579
  }
 
580
  .yith-icon-calendar:before {
581
- content: "\e904";
582
- color: #757575;
583
  }
 
584
  .yith-icon-check:before {
585
- content: "\e905";
586
- color: #757575;
587
  }
 
588
  .yith-icon-close:before {
589
- content: "\e906";
590
- color: #757575;
591
  }
 
592
  .yith-icon-edit:before {
593
- content: "\e907";
594
- color: #757575;
595
  }
 
596
  .yith-icon-magnifier:before {
597
- content: "\e908";
598
- color: #757575;
599
  }
 
600
  .yith-icon-pencil:before {
601
- content: "\e909";
602
- color: #757575;
603
  }
 
604
  .yith-icon-plus:before {
605
- content: "\e90a";
606
- color: #757575;
607
  }
 
608
  .yith-icon-update:before {
609
- content: "\e90b";
610
- color: #757575;
611
  }
 
612
  .yith-icon-upload:before {
613
- content: "\e90c";
614
- color: #757575;
615
  }
 
616
  .yith-icon-reply:before {
617
- content: "\e91a";
618
  }
619
 
620
  .yith-plugin-fw-banner {
621
- width : 100%;
622
- height: 45px;
623
- background : url('../images/banner-premium.png');
624
- display: flex;
625
- align-items: center;
626
- padding-right: -23px;
627
  }
628
 
629
  .yith-plugin-fw-banner h1 {
630
  text-transform : uppercase;
631
  color : #0c5777;
632
  font-size : 15px;
633
- padding: 0 0 0 110px;
634
  font-weight : 700;
635
  text-align : left;
636
  display : inline-block;
@@ -653,19 +689,20 @@ YITH UI
653
  box-shadow : none;
654
  }
655
 
656
- .yith-plugin-fw-rate{
657
- margin: 20px 0;
658
  }
659
 
660
- .yith-plugin-fw-rate .dashicons-star-filled{
661
- font-size: 12px;
662
- margin: 4px -4px;
663
- color: #0c5777;
664
  }
665
 
666
- .yith-plugin-fw-rate a{
667
- text-decoration: none;
668
  }
 
669
  .yith-plugin-ui a {
670
  outline : none;
671
  box-shadow : none;
@@ -784,9 +821,11 @@ YITH UI
784
  .yith-plugin-ui #plugin-fw-wc table.form-table th, #yith-plugin-fw-panel table.form-table th.titledesc, .yith-plugin-ui #plugin-fw-wc table.form-table td, #yith-plugin-fw-panel table.form-table td.forminp {
785
  padding : 30px 20px;
786
  }
 
787
  .yith-plugin-ui #plugin-fw-wc table.form-table tr.toggle-element-fixed td, #yith-plugin-fw-panel table.form-table tr.toggle-element-fixed td.forminp {
788
- padding: 0 20px 30px;
789
  }
 
790
  .yith-plugin-ui #plugin-fw-wc h2 + div {
791
  background : #fff;
792
  border-left : 1px solid #d9d9d9;
@@ -863,11 +902,11 @@ YITH UI
863
  .yith-plugin-ui input[type=text]:not(.select2-search__field).wp-color-picker,
864
  .yith-plugin-ui table.form-table input[type=text].wp-color-picker,
865
  .woocommerce.yith-plugin-fw-panel .yith-plugin-ui table.form-table input[type=text].wp-color-picker {
866
- border: 0;
867
- height: 30px;
868
- max-width: 121px;
869
- font-size: 11px;
870
- padding: 0;
871
  }
872
 
873
  .yith-plugin-ui .search-box input[name="s"] {
@@ -1125,14 +1164,14 @@ YITH UI
1125
  .yith-plugin-ui .select2-container.select2-container--focus .select2-selection--single,
1126
  .yith-plugin-ui .select2-container.select2-container--focus .select2-selection--multiple,
1127
  .yith-plugin-ui .select2-container.select2-container--open .select2-selection--single,
1128
- .yith-plugin-ui .select2-container.select2-container--open .select2-selection--multiple{
1129
- margin : 0;
1130
- border : 0;
1131
  box-shadow : none;
1132
  }
1133
 
1134
- .yith-plugin-ui .select2-container .select2-selection--single .select2-selection__arrow{
1135
- background: none;
1136
  }
1137
 
1138
  /* old panel*/
@@ -1602,8 +1641,8 @@ div#ui-datepicker-div.yith-plugin-fw-datepicker-div {
1602
 
1603
  .yith-plugin-ui .yith-plugin-fw-field-wrapper .wp-picker-input-wrap,
1604
  .yith-plugin-ui .yith-plugin-fw-field-wrapper .wp-picker-input-wrap > * {
1605
- display: inline-block !important;
1606
- vertical-align: middle;
1607
  }
1608
 
1609
  .yith-plugin-ui .yith-plugin-fw-field-wrapper .wp-picker-active .iris-picker,
@@ -1660,7 +1699,7 @@ div#ui-datepicker-div.yith-plugin-fw-datepicker-div {
1660
  }
1661
 
1662
  .yith-plugin-ui .wp-picker-default-custom:before {
1663
- content: "\e91a";
1664
  text-indent : 0;
1665
  font-family : 'yith-icon';
1666
  font-size : 20px;
@@ -1755,7 +1794,7 @@ div#ui-datepicker-div.yith-plugin-fw-datepicker-div {
1755
  cursor : grab;
1756
  }
1757
 
1758
- .yith-plugin-ui .yith-plugin-fw-slider-container .ui-slider-horizontal .ui-slider-handle:active:after{
1759
  cursor : grabbing;
1760
  }
1761
 
@@ -1787,9 +1826,11 @@ div#ui-datepicker-div.yith-plugin-fw-datepicker-div {
1787
  cursor : pointer;
1788
  transition : all ease 0.5s;
1789
  }
 
1790
  .yith-plugin-ui .yith-toggle-row.fixed {
1791
- margin: 0;
1792
  }
 
1793
  .yith-plugin-ui .yith-toggle-row.highlight {
1794
  transition : all ease 0.5s;
1795
  /*box-shadow: 0 0 7px rgb(81, 117, 129);*/
@@ -2098,29 +2139,113 @@ div#ui-datepicker-div.yith-plugin-fw-datepicker-div {
2098
 
2099
  /** MULTI SELECT **/
2100
  .yith-plugin-ui .yith-plugin-fw-multi-select .yith-single-select {
2101
- display: inline-block;
2102
- width: 30%;
2103
- margin-right: 3%;
2104
- max-width: 400px;
2105
  }
 
2106
  .yith-plugin-ui .yith-plugin-fw-multi-select .yith-single-select label {
2107
- display: block;
2108
- font-size: 11px;
2109
- font-weight: 600;
2110
- margin: 0 0 10px 0;
2111
  }
 
2112
  .yith-plugin-ui .yith-plugin-fw-multi-select .yith-single-select select,
2113
  .yith-plugin-ui .yith-plugin-fw-multi-select .yith-single-select span.select2 {
2114
- width: 100% !important;
2115
- min-width: auto !important;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2116
  }
2117
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2118
  /** OVERRIDE WOOCOMMERCE CLASSES FOR 5.3 */
2119
- .branch-5-3 .yith-plugin-fw .select2-container .select2-selection--single .select2-selection__arrow{
2120
- background:none;
2121
  }
2122
- .branch-5-3 .yith-plugin-fw .select2-container.select2-container--focus .select2-selection--single, .branch-5-3 .yith-plugin-fw .select2-container.select2-container--open .select2-selection--multiple, .branch-5-3 .yith-plugin-fw .select2-container.select2-container--open .select2-selection--single{
2123
- box-shadow: none;
 
2124
  }
2125
 
2126
  @media screen and (max-width : 1440px) {
@@ -2161,10 +2286,12 @@ div#ui-datepicker-div.yith-plugin-fw-datepicker-div {
2161
  .yith-plugin-fw-banner h1 {
2162
  line-height : 1.2em;
2163
  }
2164
- .yith-plugin-fw-banner h1{
2165
- font-size: 12px;
2166
- padding-right: 10px;
 
2167
  }
 
2168
  .yith-plugin-ui .yith-add-box,
2169
  .yith-plugin-ui .yith-toggle-row {
2170
  width : 100%;
@@ -2177,7 +2304,7 @@ div#ui-datepicker-div.yith-plugin-fw-datepicker-div {
2177
  }
2178
 
2179
  .yith-plugin-ui .wp-picker-container .wp-color-result.button {
2180
- padding: 0;
2181
  }
2182
 
2183
  }
28
  }
29
 
30
  .yith-plugin-fw-title-field-wrapper h3.title {
31
+ width : 100%;
32
+ padding : 0 !important;
33
  }
34
 
35
  .the-metabox .yith-plugin-fw-title-field-wrapper h3.title {
37
  }
38
 
39
  .yith-plugin-fw span.color-alpha {
40
+ height : 100% !important;
41
+ width : 100% !important;
42
+ border : 1px solid #d9d9d9;
43
+ margin : -1px;
44
  }
45
 
46
+ .yith-plugin-fw .wp-color-result-text {
47
+ height : 100%;
48
  }
49
+
50
  .yith-plugin-fw input[type=email],
51
  .yith-plugin-fw input[type=number],
52
  .yith-plugin-fw input[type=text]:not(.select2-search__field),
56
  .yith-plugin-ui input[type=password],
57
  .woocommerce .yith-plugin-fw table.form-table input[type=text]:not(.select2-search__field),
58
  .woocommerce .yith-plugin-fw table.form-table select {
59
+ width : 400px;
60
+ max-width : 100%;
61
+ height : 30px;
62
+ padding : 5px;
63
+ line-height : 1;
64
  }
65
 
66
  .woocommerce .yith-plugin-fw table.form-table input[type=text].wp-color-picker,
73
  padding : 3px 5px;
74
  }
75
 
76
+ .wp-core-ui .yith-plugin-fw-colorpicker-field-wrapper button {
77
+ border-color : #7e8993;
78
  }
79
 
80
  .woocommerce .yith-plugin-fw table.form-table input[type=text].colorpick,
443
  WordPress 5.3 with old panel fixes
444
  ****************/
445
  .yith-plugin-fw-field-wrapper .select2-container .select2-selection--single {
446
+ height : auto;
447
+ line-height : 1;
448
  }
449
 
450
+ .yith-plugin-fw-field-wrapper .select2-container .select2-selection--single .select2-selection__arrow {
451
+ height : 100%;
452
  }
453
 
454
  /****************
481
  }
482
 
483
  .yith-icon-paypal-svgrepo-com:before {
484
+ content : "\e91b";
485
  }
486
+
487
  .yith-icon-check-circle:before {
488
+ content : "\e921";
489
+ color : #757575;
490
  }
491
+
492
  .yith-icon-info-squared:before {
493
+ content : "\e922";
494
+ color : #757575;
495
  }
496
+
497
  .yith-icon-warning-triangle:before {
498
+ content : "\e923";
499
+ color : #757575;
500
  }
501
+
502
  .yith-icon-bank:before {
503
+ content : "\e91c";
504
  }
505
+
506
  .yith-icon-accounting:before {
507
+ content : "\e91d";
508
  }
509
+
510
  .yith-icon-bank-check:before {
511
+ content : "\e91e";
512
  }
513
+
514
  .yith-icon-cash:before {
515
+ content : "\e91f";
516
  }
517
+
518
  .yith-icon-credit-card:before {
519
+ content : "\e920";
520
  }
521
+
522
  .yith-icon-calendar_add:before {
523
+ content : "\e913";
524
+ color : #757575;
525
  }
526
+
527
  .yith-icon-calendar_money:before {
528
+ content : "\e914";
529
+ color : #757575;
530
  }
531
+
532
  .yith-icon-calendar2:before {
533
+ content : "\e915";
534
+ color : #757575;
535
  }
536
+
537
  .yith-icon-people:before {
538
+ content : "\e916";
539
+ color : #757575;
540
  }
541
+
542
  .yith-icon-shield_money:before {
543
+ content : "\e917";
544
+ color : #757575;
545
  }
546
+
547
  .yith-icon-time_check:before {
548
+ content : "\e918";
549
+ color : #757575;
550
  }
551
+
552
  .yith-icon-world_settings:before {
553
+ content : "\e919";
554
+ color : #757575;
555
  }
556
+
557
  .yith-icon-arrow_eye_closed:before {
558
+ content : "\e912";
559
+ color : #757575;
560
  }
561
+
562
  .yith-icon-arrow_eye:before {
563
+ content : "\e911";
564
+ color : #757575;
565
  }
566
+
567
  .yith-icon-reset:before {
568
+ content : "\e910";
569
+ color : #757575;
570
  }
571
+
572
  .yith-icon-drag:before {
573
+ content : "\e90f";
574
+ color : #757575;
575
  }
576
+
577
  .yith-icon-trash:before {
578
+ content : "\e90d";
579
+ color : #757575;
580
  }
581
+
582
  .yith-icon-info:before {
583
+ content : "\e90e";
584
+ color : #757575;
585
  }
586
+
587
  .yith-icon-arrow_down:before {
588
+ content : "\e900";
589
+ color : #757575;
590
  }
591
+
592
  .yith-icon-arrow_left:before {
593
+ content : "\e901";
594
+ color : #757575;
595
  }
596
+
597
  .yith-icon-arrow_right:before {
598
+ content : "\e902";
599
+ color : #757575;
600
  }
601
+
602
  .yith-icon-arrow_up:before {
603
+ content : "\e903";
604
+ color : #757575;
605
  }
606
+
607
  .yith-icon-calendar:before {
608
+ content : "\e904";
609
+ color : #757575;
610
  }
611
+
612
  .yith-icon-check:before {
613
+ content : "\e905";
614
+ color : #757575;
615
  }
616
+
617
  .yith-icon-close:before {
618
+ content : "\e906";
619
+ color : #757575;
620
  }
621
+
622
  .yith-icon-edit:before {
623
+ content : "\e907";
624
+ color : #757575;
625
  }
626
+
627
  .yith-icon-magnifier:before {
628
+ content : "\e908";
629
+ color : #757575;
630
  }
631
+
632
  .yith-icon-pencil:before {
633
+ content : "\e909";
634
+ color : #757575;
635
  }
636
+
637
  .yith-icon-plus:before {
638
+ content : "\e90a";
639
+ color : #757575;
640
  }
641
+
642
  .yith-icon-update:before {
643
+ content : "\e90b";
644
+ color : #757575;
645
  }
646
+
647
  .yith-icon-upload:before {
648
+ content : "\e90c";
649
+ color : #757575;
650
  }
651
+
652
  .yith-icon-reply:before {
653
+ content : "\e91a";
654
  }
655
 
656
  .yith-plugin-fw-banner {
657
+ width : 100%;
658
+ height : 45px;
659
+ background : url('../images/banner-premium.png');
660
+ display : flex;
661
+ align-items : center;
662
+ padding-right : -23px;
663
  }
664
 
665
  .yith-plugin-fw-banner h1 {
666
  text-transform : uppercase;
667
  color : #0c5777;
668
  font-size : 15px;
669
+ padding : 0 0 0 110px;
670
  font-weight : 700;
671
  text-align : left;
672
  display : inline-block;
689
  box-shadow : none;
690
  }
691
 
692
+ .yith-plugin-fw-rate {
693
+ margin : 20px 0;
694
  }
695
 
696
+ .yith-plugin-fw-rate .dashicons-star-filled {
697
+ font-size : 12px;
698
+ margin : 4px -4px;
699
+ color : #0c5777;
700
  }
701
 
702
+ .yith-plugin-fw-rate a {
703
+ text-decoration : none;
704
  }
705
+
706
  .yith-plugin-ui a {
707
  outline : none;
708
  box-shadow : none;
821
  .yith-plugin-ui #plugin-fw-wc table.form-table th, #yith-plugin-fw-panel table.form-table th.titledesc, .yith-plugin-ui #plugin-fw-wc table.form-table td, #yith-plugin-fw-panel table.form-table td.forminp {
822
  padding : 30px 20px;
823
  }
824
+
825
  .yith-plugin-ui #plugin-fw-wc table.form-table tr.toggle-element-fixed td, #yith-plugin-fw-panel table.form-table tr.toggle-element-fixed td.forminp {
826
+ padding : 0 20px 30px;
827
  }
828
+
829
  .yith-plugin-ui #plugin-fw-wc h2 + div {
830
  background : #fff;
831
  border-left : 1px solid #d9d9d9;
902
  .yith-plugin-ui input[type=text]:not(.select2-search__field).wp-color-picker,
903
  .yith-plugin-ui table.form-table input[type=text].wp-color-picker,
904
  .woocommerce.yith-plugin-fw-panel .yith-plugin-ui table.form-table input[type=text].wp-color-picker {
905
+ border : 0;
906
+ height : 30px;
907
+ max-width : 121px;
908
+ font-size : 11px;
909
+ padding : 0;
910
  }
911
 
912
  .yith-plugin-ui .search-box input[name="s"] {
1164
  .yith-plugin-ui .select2-container.select2-container--focus .select2-selection--single,
1165
  .yith-plugin-ui .select2-container.select2-container--focus .select2-selection--multiple,
1166
  .yith-plugin-ui .select2-container.select2-container--open .select2-selection--single,
1167
+ .yith-plugin-ui .select2-container.select2-container--open .select2-selection--multiple {
1168
+ margin : 0;
1169
+ border : 0;
1170
  box-shadow : none;
1171
  }
1172
 
1173
+ .yith-plugin-ui .select2-container .select2-selection--single .select2-selection__arrow {
1174
+ background : none;
1175
  }
1176
 
1177
  /* old panel*/
1641
 
1642
  .yith-plugin-ui .yith-plugin-fw-field-wrapper .wp-picker-input-wrap,
1643
  .yith-plugin-ui .yith-plugin-fw-field-wrapper .wp-picker-input-wrap > * {
1644
+ display : inline-block !important;
1645
+ vertical-align : middle;
1646
  }
1647
 
1648
  .yith-plugin-ui .yith-plugin-fw-field-wrapper .wp-picker-active .iris-picker,
1699
  }
1700
 
1701
  .yith-plugin-ui .wp-picker-default-custom:before {
1702
+ content : "\e91a";
1703
  text-indent : 0;
1704
  font-family : 'yith-icon';
1705
  font-size : 20px;
1794
  cursor : grab;
1795
  }
1796
 
1797
+ .yith-plugin-ui .yith-plugin-fw-slider-container .ui-slider-horizontal .ui-slider-handle:active:after {
1798
  cursor : grabbing;
1799
  }
1800
 
1826
  cursor : pointer;
1827
  transition : all ease 0.5s;
1828
  }
1829
+
1830
  .yith-plugin-ui .yith-toggle-row.fixed {
1831
+ margin : 0;
1832
  }
1833
+
1834
  .yith-plugin-ui .yith-toggle-row.highlight {
1835
  transition : all ease 0.5s;
1836
  /*box-shadow: 0 0 7px rgb(81, 117, 129);*/
2139
 
2140
  /** MULTI SELECT **/
2141
  .yith-plugin-ui .yith-plugin-fw-multi-select .yith-single-select {
2142
+ display : inline-block;
2143
+ width : 30%;
2144
+ margin-right : 3%;
2145
+ max-width : 400px;
2146
  }
2147
+
2148
  .yith-plugin-ui .yith-plugin-fw-multi-select .yith-single-select label {
2149
+ display : block;
2150
+ font-size : 11px;
2151
+ font-weight : 600;
2152
+ margin : 0 0 10px 0;
2153
  }
2154
+
2155
  .yith-plugin-ui .yith-plugin-fw-multi-select .yith-single-select select,
2156
  .yith-plugin-ui .yith-plugin-fw-multi-select .yith-single-select span.select2 {
2157
+ width : 100% !important;
2158
+ min-width : auto !important;
2159
+ }
2160
+
2161
+ /**
2162
+ * Dimensions
2163
+ */
2164
+
2165
+ .yith-plugin-fw-dimensions {
2166
+ max-width : 400px;
2167
+ }
2168
+
2169
+ .yith-plugin-fw-dimensions__units {
2170
+ text-align : right;
2171
+ text-transform : uppercase;
2172
+ }
2173
+
2174
+ .yith-plugin-fw-dimensions__unit {
2175
+ display : inline-block;
2176
+ padding : 5px 3px;
2177
+ cursor : pointer;
2178
+ font-weight : 700;
2179
+ }
2180
+
2181
+ .yith-plugin-fw-dimensions__unit--selected {
2182
+ text-decoration : underline;
2183
+ color : #007694;
2184
+ }
2185
+
2186
+ .yith-plugin-fw-dimensions__dimensions {
2187
+ display : flex;
2188
+ margin-top : 3px;
2189
+ }
2190
+
2191
+ .yith-plugin-fw-dimensions__dimension {
2192
+ text-align : center;
2193
+ }
2194
+
2195
+ .yith-plugin-fw-dimensions__dimension > input[type=number].yith-plugin-fw-dimensions__dimension__number {
2196
+ width : 100% !important;
2197
+ min-width : 0 !important;
2198
+ border-radius : 0 !important;
2199
+ border : 1px solid #d8d8d8 !important;
2200
+ border-left : none !important;
2201
+ height : 38px !important;
2202
+ text-align : center;
2203
+ }
2204
+
2205
+ .yith-plugin-fw-dimensions__dimension:first-child > input[type=number].yith-plugin-fw-dimensions__dimension__number {
2206
+ border-left : 1px solid #d8d8d8 !important;
2207
+ border-radius : 6px 0 0 6px !important;
2208
+ }
2209
+
2210
+ .yith-plugin-fw-dimensions__dimension:last-child > input[type=number].yith-plugin-fw-dimensions__dimension__number {
2211
+ border-radius : 0 6px 6px 0 !important;
2212
+ }
2213
+
2214
+ .yith-plugin-fw-dimensions__dimension__label {
2215
+ text-transform : uppercase;
2216
+ font-weight : 700;
2217
+ color : #91959b;
2218
+ font-size : .8em;
2219
+ }
2220
+
2221
+ .yith-plugin-fw-dimensions__linked {
2222
+ cursor : pointer;
2223
  }
2224
 
2225
+ .yith-plugin-fw-dimensions__linked span {
2226
+ border : 1px solid #d8d8d8;
2227
+ border-left : none;
2228
+ height : 38px;
2229
+ border-radius : 0 6px 6px 0;
2230
+ box-sizing : border-box;
2231
+ padding : 8px 10px;
2232
+ width : 100%;
2233
+ }
2234
+
2235
+ .yith-plugin-fw-dimensions--linked-active .yith-plugin-fw-dimensions__linked span {
2236
+ color : #fff;
2237
+ background : #007694;
2238
+ border-color : #007694;
2239
+ }
2240
+
2241
+
2242
  /** OVERRIDE WOOCOMMERCE CLASSES FOR 5.3 */
2243
+ .branch-5-3 .yith-plugin-fw .select2-container .select2-selection--single .select2-selection__arrow {
2244
+ background : none;
2245
  }
2246
+
2247
+ .branch-5-3 .yith-plugin-fw .select2-container.select2-container--focus .select2-selection--single, .branch-5-3 .yith-plugin-fw .select2-container.select2-container--open .select2-selection--multiple, .branch-5-3 .yith-plugin-fw .select2-container.select2-container--open .select2-selection--single {
2248
+ box-shadow : none;
2249
  }
2250
 
2251
  @media screen and (max-width : 1440px) {
2286
  .yith-plugin-fw-banner h1 {
2287
  line-height : 1.2em;
2288
  }
2289
+
2290
+ .yith-plugin-fw-banner h1 {
2291
+ font-size : 12px;
2292
+ padding-right : 10px;
2293
  }
2294
+
2295
  .yith-plugin-ui .yith-add-box,
2296
  .yith-plugin-ui .yith-toggle-row {
2297
  width : 100%;
2304
  }
2305
 
2306
  .yith-plugin-ui .wp-picker-container .wp-color-result.button {
2307
+ padding : 0;
2308
  }
2309
 
2310
  }
plugin-fw/assets/fonts/yith-icon.eot CHANGED
File without changes
plugin-fw/assets/fonts/yith-icon.svg CHANGED
File without changes
plugin-fw/assets/fonts/yith-icon.ttf CHANGED
File without changes
plugin-fw/assets/fonts/yith-icon.woff CHANGED
File without changes
plugin-fw/assets/images/arrow_down.svg CHANGED
File without changes
plugin-fw/assets/images/banner-premium.png CHANGED
File without changes
plugin-fw/assets/images/colorbox/border1.png CHANGED
File without changes
plugin-fw/assets/images/colorbox/border2.png CHANGED
File without changes
plugin-fw/assets/images/colorbox/loading.gif CHANGED
File without changes
plugin-fw/assets/images/double-sidebar.png CHANGED
File without changes
plugin-fw/assets/images/licence-error.png CHANGED
File without changes
plugin-fw/assets/images/no-sidebar.png CHANGED
File without changes
plugin-fw/assets/images/sidebar-left.png CHANGED
File without changes
plugin-fw/assets/images/sidebar-right.png CHANGED
File without changes
plugin-fw/assets/images/sleep.png CHANGED
File without changes
plugin-fw/assets/images/spinner.png CHANGED
File without changes
plugin-fw/assets/images/ui-icons_222222_256x240.png CHANGED
File without changes
plugin-fw/assets/images/ui-icons_2e83ff_256x240.png CHANGED
File without changes
plugin-fw/assets/images/ui-icons_454545_256x240.png CHANGED
File without changes
plugin-fw/assets/images/ui-icons_888888_256x240.png CHANGED
File without changes
plugin-fw/assets/images/x.png CHANGED
File without changes
plugin-fw/assets/images/yith-icon.svg CHANGED
File without changes
plugin-fw/assets/images/yithemes-icon.png CHANGED
File without changes
plugin-fw/assets/js/codemirror/codemirror.js CHANGED
File without changes
plugin-fw/assets/js/codemirror/javascript.js CHANGED
File without changes
plugin-fw/assets/js/how-to.js CHANGED
File without changes
plugin-fw/assets/js/javascript-md5/md5.min.js CHANGED
File without changes
plugin-fw/assets/js/jquery.colorbox.js CHANGED
File without changes
plugin-fw/assets/js/metabox.js CHANGED
File without changes
plugin-fw/assets/js/metabox.min.js CHANGED
File without changes
plugin-fw/assets/js/multisite-updater.js CHANGED
File without changes
plugin-fw/assets/js/multisite-updater.min.js CHANGED
File without changes
plugin-fw/assets/js/wp-pages.js CHANGED
File without changes
plugin-fw/assets/js/wp-pages.min.js CHANGED
File without changes
plugin-fw/assets/js/yit-cpt-unlimited.js CHANGED
File without changes
plugin-fw/assets/js/yit-cpt-unlimited.min.js CHANGED
File without changes
plugin-fw/assets/js/yit-plugin-panel.js CHANGED
File without changes
plugin-fw/assets/js/yit-plugin-panel.min.js CHANGED
File without changes
plugin-fw/assets/js/yit-wp-pointer.js CHANGED
File without changes
plugin-fw/assets/js/yit-wp-pointer.min.js CHANGED
File without changes
plugin-fw/assets/js/yith-colorpicker.min.js CHANGED
File without changes
plugin-fw/assets/js/yith-dashboard.js CHANGED
File without changes
plugin-fw/assets/js/yith-dashboard.min.js CHANGED
File without changes
plugin-fw/assets/js/yith-fields.js CHANGED
@@ -1,732 +1,798 @@
1
  ( function ( $ ) {
2
 
3
- /* global yith_framework_fw_fields*/
4
-
5
- var yith_fields_init = function () {
6
- var $datepicker = $( '.yith-plugin-fw-datepicker' ),
7
- $colorpicker = $( '.yith-plugin-fw-colorpicker' ),
8
- $upload = {
9
- imgPreviewHandler : '.yith-plugin-fw-upload-img-preview',
10
- uploadButtonHandler: '.yith-plugin-fw-upload-button',
11
- imgUrlHandler : '.yith-plugin-fw-upload-img-url',
12
- resetButtonHandler : '.yith-plugin-fw-upload-button-reset',
13
- imgUrl : $( '.yith-plugin-fw-upload-img-url' )
14
- },
15
- $wpAddMedia = $( '.add_media' ),
16
- $imageGallery = {
17
- sliderWrapper: $( '.yith-plugin-fw .image-gallery ul.slides-wrapper' ),
18
- buttonHandler: '.yith-plugin-fw .image-gallery-button'
19
- },
20
- $sidebars = $( '.yith-plugin-fw-sidebar-layout' ),
21
- $slider = $( '.yith-plugin-fw .yith-plugin-fw-slider-container .ui-slider-horizontal' ),
22
- $codemirror = $( '.codemirror' ),
23
- $icons = $( '.yit-icons-manager-wrapper' ),
24
- $checkgroup = $( ".yith-plugin-ui td.forminp-checkbox" );
25
-
26
- /* Datepicker */
27
- $datepicker.each( function () {
28
- var args = $( this ).data();
29
-
30
- // set animation to false to prevent style 'glitches' when removing class on closing
31
- args.showAnim = false;
32
- args.beforeShow = function ( input, instance ) {
33
- instance.dpDiv.addClass( 'yith-plugin-fw-datepicker-div' );
34
- };
35
- args.onClose = function ( selectedDate, instance ) {
36
- instance.dpDiv.removeClass( 'yith-plugin-fw-datepicker-div' );
37
- };
38
-
39
- $( this ).datepicker( args );
40
- } );
41
-
42
- /* Colorpicker */
43
- $colorpicker.wpColorPicker( {
44
- palettes: false,
45
- width : 200,
46
- mode : 'hsl',
47
- clear : function () {
48
- var input = $( this );
49
- input.val( input.data( 'default-color' ) );
50
- input.change();
51
- }
52
- } );
53
-
54
-
55
- $colorpicker.each( function () {
56
- var select_label = $( this ).data( 'variations-label' ),
57
- wrap_main1 = $( this ).closest( '.yith-plugin-fw-colorpicker-field-wrapper' ),
58
- wrap_main2 = $( this ).closest( '.yith-single-colorpicker' ),
59
- wrap1 = wrap_main1.find( '.wp-picker-input-wrap' ),
60
- wrap2 = wrap_main2.find( '.wp-picker-input-wrap' );
61
-
62
- wrap1.length && wrap_main1.find( 'a.wp-color-result' ).attr( 'title', select_label );
63
- wrap_main2.length && wrap_main2.find( 'a.wp-color-result' ).attr( 'title', select_label );
64
-
65
- if ( !wrap1.find( '.wp-picker-clear-custom' ).length ) {
66
- var button = $( '<span/>' ).attr( {
67
- class: "wp-picker-default-custom"
68
- } );
69
- wrap1.find( '.wp-picker-default' ).wrap( button );
70
- }
71
-
72
- if ( !wrap2.find( '.wp-picker-clear-custom' ).length ) {
73
- var button = $( '<span/>' ).attr( {
74
- class: "wp-picker-default-custom"
75
- } );
76
- wrap2.find( '.wp-picker-default' ).wrap( button );
77
- }
78
- } );
79
-
80
-
81
- /* Upload */
82
- if ( typeof wp !== 'undefined' && typeof wp.media !== 'undefined' ) {
83
- var _custom_media = true;
84
- // preview
85
- $upload.imgUrl.change( function () {
86
- var url = $( this ).val(),
87
- re = new RegExp( "(http|ftp|https)://[a-zA-Z0-9@?^=%&amp;:/~+#-_.]*.(gif|jpg|jpeg|png|ico)" ),
88
- preview = $( this ).parent().find( $upload.imgPreviewHandler ).first();
89
-
90
- if ( preview.length < 1 ) {
91
- preview = $( this ).parent().parent().find( $upload.imgPreviewHandler ).first();
92
- }
93
-
94
- if ( re.test( url ) ) {
95
- preview.html( '<img src="' + url + '" style="max-width:100px; max-height:100px;" />' );
96
- } else {
97
- preview.html( '' );
98
- }
99
- } ).trigger( 'change' );
100
-
101
- $( document ).on( 'click', $upload.uploadButtonHandler, function ( e ) {
102
- e.preventDefault();
103
-
104
- var t = $( this ),
105
- custom_uploader,
106
- id = t.attr( 'id' ).replace( /-button$/, '' );
107
-
108
- //If the uploader object has already been created, reopen the dialog
109
- if ( custom_uploader ) {
110
- custom_uploader.open();
111
- return;
112
- }
113
-
114
- var custom_uploader_states = [
115
- // Main states.
116
- new wp.media.controller.Library( {
117
- library : wp.media.query(),
118
- multiple : false,
119
- title : 'Choose Image',
120
- priority : 20,
121
- filterable: 'uploaded'
122
- } )
123
- ];
124
-
125
- // Create the media frame.
126
- custom_uploader = wp.media.frames.downloadable_file = wp.media( {
127
- // Set the title of the modal.
128
- title : 'Choose Image',
129
- library : {
130
- type: ''
131
- },
132
- button : {
133
- text: 'Choose Image'
134
- },
135
- multiple: false,
136
- states : custom_uploader_states
137
- } );
138
-
139
- //When a file is selected, grab the URL and set it as the text field's value
140
- custom_uploader.on( 'select', function () {
141
- var attachment = custom_uploader.state().get( 'selection' ).first().toJSON();
142
-
143
- $( "#" + id ).val( attachment.url );
144
- // Save the id of the selected element to an element which name is the same with a suffix "-yith-attachment-id"
145
- if ( $( "#" + id + "-yith-attachment-id" ) ) {
146
- $( "#" + id + "-yith-attachment-id" ).val( attachment.id );
147
- }
148
- $upload.imgUrl.trigger( 'change' );
149
- } );
150
-
151
- //Open the uploader dialog
152
- custom_uploader.open();
153
- } );
154
-
155
- $( document ).on( 'click', $upload.resetButtonHandler, function ( e ) {
156
- var t = $( this ),
157
- id = t.attr( 'id' ),
158
- input_id = t.attr( 'id' ).replace( /-button-reset$/, '' ),
159
- default_value = $( '#' + id ).data( 'default' );
160
-
161
- $( "#" + input_id ).val( default_value );
162
- $upload.imgUrl.trigger( 'change' );
163
- } );
164
- }
165
-
166
- $wpAddMedia.on( 'click', function () {
167
- _custom_media = false;
168
- } );
169
-
170
- /* Image Gallery */
171
- if ( typeof wp !== 'undefined' && typeof wp.media !== 'undefined' ) {
172
- $( document ).on( 'click', $imageGallery.buttonHandler, function ( e ) {
173
- var $t = $( this ),
174
- $container = $t.closest( '.image-gallery' ),
175
- $image_gallery_ids = $container.find( '.image_gallery_ids' ),
176
- attachment_ids = $image_gallery_ids.val(),
177
- $gallery_images_wrapper = $container.find( 'ul.slides-wrapper' );
178
-
179
- // Create the media frame.
180
- var image_gallery_frame = wp.media.frames.image_gallery = wp.media( {
181
- // Set the title of the modal.
182
- title : $t.data( 'choose' ),
183
- button: {
184
- text: $t.data( 'update' )
185
- },
186
- states: [
187
- new wp.media.controller.Library( {
188
- title : $t.data( 'choose' ),
189
- filterable: 'all',
190
- multiple : true
191
- } )
192
- ]
193
- } );
194
-
195
- // When an image is selected, run a callback.
196
- image_gallery_frame.on( 'select', function () {
197
- var selection = image_gallery_frame.state().get( 'selection' );
198
- selection.map( function ( attachment ) {
199
- attachment = attachment.toJSON();
200
-
201
- if ( attachment.id ) {
202
- attachment_ids = attachment_ids ? attachment_ids + "," + attachment.id : attachment.id;
203
- $gallery_images_wrapper.append( '<li class="image" data-attachment_id="' + attachment.id + '"><img src="' + attachment.sizes.thumbnail.url + '"/><ul class="actions"><li><a href="#" class="delete" title="' + $t.data( 'delete' ) + '">x</a></li></ul></li>' );
204
- }
205
- } );
206
-
207
- $image_gallery_ids.val( attachment_ids );
208
- } );
209
-
210
- image_gallery_frame.open();
211
-
212
- } );
213
-
214
- // Image ordering
215
- $imageGallery.sliderWrapper.each( function () {
216
- var $t = $( this );
217
- $t.sortable( {
218
- items : 'li.image',
219
- cursor : 'move',
220
- scrollSensitivity : 40,
221
- forcePlaceholderSize: true,
222
- forceHelperSize : false,
223
- helper : 'clone',
224
- opacity : 0.65,
225
- start : function ( event, ui ) {
226
- ui.item.css( 'background-color', '#f6f6f6' );
227
- },
228
- stop : function ( event, ui ) {
229
- ui.item.removeAttr( 'style' );
230
- },
231
- update : function ( event, ui ) {
232
- var attachment_ids = '';
233
-
234
- $t.find( 'li.image' ).css( 'cursor', 'default' ).each( function () {
235
- var attachment_id = $( this ).attr( 'data-attachment_id' );
236
- attachment_ids = attachment_ids + attachment_id + ',';
237
- } );
238
-
239
- $t.closest( '.image-gallery' ).find( '.image_gallery_ids' ).val( attachment_ids );
240
- }
241
- } );
242
- } );
243
-
244
- // Remove images
245
- $imageGallery.sliderWrapper.on( 'click', 'a.delete', function () {
246
- var $wrapper = $( this ).closest( '.image-gallery' ),
247
- $gallery = $( this ).closest( '.image-gallery ul.slides-wrapper' ),
248
- $image_gallery_ids = $wrapper.find( '.image_gallery_ids' ),
249
- attachment_ids = '';
250
-
251
- $( this ).closest( 'li.image' ).remove();
252
-
253
- $gallery.find( 'li.image' ).css( 'cursor', 'default' ).each( function () {
254
- var attachment_id = $( this ).attr( 'data-attachment_id' );
255
- attachment_ids = attachment_ids + attachment_id + ',';
256
- } );
257
-
258
- $image_gallery_ids.val( attachment_ids );
259
- } );
260
- }
261
-
262
-
263
- /* Sidebars */
264
- $sidebars.each( function () {
265
- var $images = $( this ).find( 'img' );
266
- $images.on( 'click', function () {
267
- var $container = $( this ).closest( '.yith-plugin-fw-sidebar-layout' ),
268
- $left = $container.find( '.yith-plugin-fw-sidebar-layout-sidebar-left-container' ),
269
- $right = $container.find( '.yith-plugin-fw-sidebar-layout-sidebar-right-container' ),
270
- type = $( this ).data( 'type' );
271
-
272
- $( this ).parent().children( ':radio' ).attr( 'checked', false );
273
- $( this ).prev( ':radio' ).attr( 'checked', true );
274
-
275
- if ( typeof type != 'undefined' ) {
276
- switch ( type ) {
277
- case 'left':
278
- $left.show();
279
- $right.hide();
280
- break;
281
- case 'right':
282
- $right.show();
283
- $left.hide();
284
- break;
285
- case 'double':
286
- $left.show();
287
- $right.show();
288
- break;
289
- default:
290
- $left.hide();
291
- $right.hide();
292
- break;
293
- }
294
- }
295
- } );
296
- } );
297
-
298
- /* Slider */
299
- $slider.each( function () {
300
- var val = $( this ).data( 'val' ),
301
- minValue = $( this ).data( 'min' ),
302
- maxValue = $( this ).data( 'max' ),
303
- step = $( this ).data( 'step' ),
304
- labels = $( this ).data( 'labels' );
305
-
306
- $( this ).slider( {
307
- value: val,
308
- min : minValue,
309
- max : maxValue,
310
- range: 'min',
311
- step : step,
312
-
313
- create: function () {
314
- $( this ).find( '.ui-slider-handle' ).text( $( this ).slider( "value" ) );
315
- },
316
-
317
-
318
- slide: function ( event, ui ) {
319
- $( this ).find( 'input' ).val( ui.value );
320
- $( this ).find( '.ui-slider-handle' ).text( ui.value );
321
- $( this ).siblings( '.feedback' ).find( 'strong' ).text( ui.value + labels );
322
- }
323
- } );
324
- } );
325
-
326
- /* codemirror */
327
- $codemirror.each( function ( i, v ) {
328
- var editor = CodeMirror.fromTextArea( v, {
329
- lineNumbers : 1,
330
- mode : 'javascript',
331
- showCursorWhenSelecting: true
332
- } );
333
-
334
- $( v ).data( 'codemirrorInstance', editor );
335
- } );
336
-
337
- /* Select All - Deselect All */
338
- $( document ).on( 'click', '.yith-plugin-fw-select-all', function () {
339
- var $targetSelect = $( '#' + $( this ).data( 'select-id' ) );
340
- $targetSelect.find( 'option' ).prop( 'selected', true ).trigger( 'change' );
341
- } );
342
-
343
- $( document ).on( 'click', '.yith-plugin-fw-deselect-all', function () {
344
- var $targetSelect = $( '#' + $( this ).data( 'select-id' ) );
345
- $targetSelect.find( 'option' ).prop( 'selected', false ).trigger( 'change' );
346
- } );
347
-
348
-
349
- $icons.each( function () {
350
- var $container = $( this ),
351
- $preview = $container.find( '.yit-icons-manager-icon-preview' ).first(),
352
- $text = $container.find( '.yit-icons-manager-icon-text' );
353
-
354
- $container.on( 'click', '.yit-icons-manager-list li', function ( event ) {
355
- var $target = $( event.target ).closest( 'li' ),
356
- font = $target.data( 'font' ),
357
- icon = $target.data( 'icon' ),
358
- key = $target.data( 'key' ),
359
- name = $target.data( 'name' );
360
-
361
- $preview.attr( 'data-font', font );
362
- $preview.attr( 'data-icon', icon );
363
- $preview.attr( 'data-key', key );
364
- $preview.attr( 'data-name', name );
365
-
366
- $text.val( font + ':' + name );
367
-
368
- $container.find( '.yit-icons-manager-list li' ).removeClass( 'active' );
369
- $target.addClass( 'active' );
370
- } );
371
-
372
- $container.on( 'click', '.yit-icons-manager-action-set-default', function () {
373
- $container.find( '.yit-icons-manager-list li.default' ).trigger( 'click' );
374
- } );
375
- } );
376
-
377
- /** Select Images */
378
- $( document ).on( 'click', '.yith-plugin-fw-select-images__item', function () {
379
- var item = $( this ),
380
- key = item.data( 'key' ),
381
- wrapper = item.closest( '.yith-plugin-fw-select-images__wrapper' ),
382
- items = wrapper.find( '.yith-plugin-fw-select-images__item' ),
383
- select = wrapper.find( 'select' ).first();
384
-
385
- if ( select.length ) {
386
- select.val( key );
387
- items.removeClass( 'yith-plugin-fw-select-images__item--selected' );
388
- item.addClass( 'yith-plugin-fw-select-images__item--selected' );
389
- }
390
- } );
391
-
392
- $( document.body ).trigger( 'wc-enhanced-select-init' );
393
-
394
- $( document ).find( '.ui-sortable .yith-toggle-elements' ).sortable(
395
- {
396
- cursor : 'move',
397
- axis : 'y',
398
- scrollSensitivity : 40,
399
- forcePlaceholderSize: true,
400
- helper : 'clone',
401
-
402
- stop: function ( event, ui ) {
403
- var keys = jQuery( '.ui-sortable-handle' ),
404
- i = 0,
405
- array_keys = new Array();
406
- for ( i = 0; i < keys.length; i++ ) {
407
- array_keys[ i ] = $( keys[ i ] ).data( 'item_key' );
408
- }
409
- if ( array_keys.length > 0 ) {
410
- var toggle = $( this ).closest( '.toggle-element' );
411
- toggle.saveToggleElement( null, array_keys );
412
- }
413
- }
414
- }
415
- );
416
-
417
- $( document.body ).trigger( 'yith-framework-enhanced-select-init' );
418
- };
419
-
420
- $( document ).on( 'yith_fields_init', yith_fields_init ).trigger( 'yith_fields_init' );
421
-
422
- /* on-off */
423
- $( document ).on( 'click', '.yith-plugin-fw-onoff-container span', function () {
424
- var input = $( this ).prev( 'input' ),
425
- checked = input.prop( 'checked' );
426
-
427
- if ( checked ) {
428
- input.prop( 'checked', false ).attr( 'value', 'no' ).removeClass( 'onoffchecked' );
429
- } else {
430
- input.prop( 'checked', true ).attr( 'value', 'yes' ).addClass( 'onoffchecked' );
431
- }
432
-
433
- input.change();
434
- } );
435
-
436
-
437
- /** Toggle **/
438
-
439
-
440
-
441
- //TOGGLE ELEMENT
442
- $.fn.saveToggleElement = function ( spinner, array_keys ) {
443
- var toggle = $( this ),
444
- action = 'yith_plugin_fw_save_toggle_element',
445
- formdata = toggle.serializeToggleElement(),
446
- wrapper = toggle.find( '.yith-toggle_wrapper' ),
447
- id = wrapper.attr( 'id' ),
448
- current_tab = $.urlParam( 'tab' );
449
-
450
- formdata.append( 'security', wrapper.data( 'nonce' ) );
451
-
452
- if ( typeof array_keys != 'undefined' && array_keys.length > 0 ) {
453
- formdata.append( 'yith_toggle_elements_order_keys', array_keys );
454
- }
455
-
456
- if ( toggle.closest( '.metaboxes-tab.yith-plugin-ui' ).length ) {
457
- action = 'yith_plugin_fw_save_toggle_element_metabox';
458
- post_id = $( this ).closest( 'form#post' ).find( '#post_ID' ).val();
459
- yit_metaboxes_nonce = $( this ).closest( 'form#post' ).find( '#yit_metaboxes_nonce' ).val();
460
- metabox_tab = $( this ).closest( '.tabs-panel' ).attr( 'id' );
461
- url = yith_framework_fw_fields.ajax_url +
462
- '?action=' + action +
463
- "&post_ID=" + post_id +
464
- '&yit_metaboxes_nonce=' + yit_metaboxes_nonce +
465
- "&toggle_id=" + id +
466
- "&metabox_tab=" + metabox_tab;
467
- } else {
468
- url = yith_framework_fw_fields.admin_url + '?action=' + action + '&tab=' + current_tab + "&toggle_id=" + id;
469
- }
470
-
471
- $.ajax( {
472
- type : "POST",
473
- url : url,
474
- data : formdata,
475
- contentType: false,
476
- processData: false,
477
- success : function ( result ) {
478
- if ( spinner ) {
479
- spinner.removeClass( 'show' );
480
- }
481
-
482
- $( document ).trigger( 'yith_save_toggle_element_done', [result, toggle] );
483
- }
484
- } );
485
- };
486
-
487
- $.fn.serializeToggleElement = function () {
488
- var obj = $( this );
489
- /* ADD FILE TO PARAM AJAX */
490
- var formData = new FormData();
491
- var params = $( obj ).find( ":input" ).serializeArray();
492
-
493
- $.each( params, function ( i, val ) {
494
- el_name = val.name;
495
- formData.append( val.name, val.value );
496
- } );
497
-
498
- return formData;
499
- };
500
-
501
- $.fn.formatToggleTitle = function () {
502
- var toggle_el = $( this ),
503
- fields = toggle_el.find( ':input' ),
504
- title = toggle_el.find( 'span.title' ).data( 'title_format' ),
505
- subtitle = toggle_el.find( '.subtitle' ).data( 'subtitle_format' ),
506
- regExp = new RegExp( "[^%%]+(?=[%%])", 'g' );
507
-
508
- if ( typeof title != 'undefined' ) {
509
- var res = title.match( regExp );
510
- }
511
-
512
- if ( typeof subtitle != 'undefined' ) {
513
- var ressub = subtitle.match( regExp );
514
- }
515
-
516
- $.each( fields, function ( i, field ) {
517
- if ( typeof $( field ).attr( 'id' ) != 'undefined' ) {
518
- $field_id = $( field ).attr( 'id' );
519
- $field_array = $field_id.split( '_' );
520
- $field_array.pop();
521
- $field_id = $field_array.join( '_' );
522
- $field_val = $( field ).val();
523
-
524
- if ( res != null && typeof res != 'undefined' && res.indexOf( $field_id ) !== -1 ) {
525
- title = title.replace( '%%' + $field_id + '%%', $field_val );
526
- }
527
- if ( ressub != null && typeof ressub != 'undefined' && ressub.indexOf( $field_id ) !== -1 ) {
528
- subtitle = subtitle.replace( '%%' + $field_id + '%%', $field_val );
529
- }
530
- }
531
- } );
532
-
533
- if ( '' !== title ) {
534
- toggle_el.find( 'span.title' ).html( title );
535
- }
536
-
537
- if ( '' !== subtitle ) {
538
- toggle_el.find( '.subtitle' ).html( subtitle );
539
- }
540
-
541
- $( document ).trigger( 'yith-toggle-element-item-title', [toggle_el] );
542
- };
543
-
544
- $.urlParam = function ( name ) {
545
- var results = new RegExp( '[\?&]' + name + '=([^&#]*)' )
546
- .exec( window.location.search );
547
-
548
- return ( results !== null ) ? results[ 1 ] || 0 : false;
549
- };
550
-
551
- $( document ).on( 'click', '.yith-toggle-title', function ( event ) {
552
- var _toggle = $( event.target ),
553
- _section = _toggle.closest( '.yith-toggle-row' ),
554
- _content = _section.find( '.yith-toggle-content' );
555
-
556
- if ( _toggle.hasClass( 'yith-plugin-fw-onoff' ) || _toggle.hasClass( 'yith-icon-drag' ) ) {
557
- return false;
558
- }
559
-
560
- if ( _section.is( '.yith-toggle-row-opened' ) ) {
561
- _content.slideUp( 400 );
562
- } else {
563
- _content.slideDown( 400 );
564
- }
565
- _section.toggleClass( 'yith-toggle-row-opened' );
566
- } );
567
-
568
- /**Add new box toggle**/
569
- $( document ).on( 'click', '.yith-add-box-button', function ( event ) {
570
- event.preventDefault();
571
- var $this = $( this ),
572
- target_id = $this.data( 'box_id' ),
573
- closed_label = $this.data( 'closed_label' ),
574
- label = $this.data( 'opened_label' ),
575
- id = $this.closest( '.yith-toggle_wrapper' ).attr( 'id' );
576
- template = wp.template( 'yith-toggle-element-add-box-content-' + id );
577
-
578
- if ( '' !== target_id ) {
579
- $( '#' + target_id ).html( template( { index: 'box_id' } ) ).slideToggle();
580
- if ( closed_label !== '' ) {
581
- if ( $this.html() === closed_label ) {
582
- $this.html( label ).removeClass( 'closed' );
583
- } else {
584
- $this.html( closed_label ).addClass( 'closed' );
585
- }
586
- }
587
-
588
- $( document ).trigger( 'yith_fields_init' );
589
- $( document ).trigger( 'yith-add-box-button-toggle', [$this] );
590
- }
591
- } );
592
-
593
- $( document ).on( 'click', '.yith-add-box-buttons .yith-save-button', function ( event ) {
594
-
595
- event.preventDefault();
596
- var add_box = $( this ).parents( '.yith-add-box' ),
597
- id = $( this ).closest( '.yith-toggle_wrapper' ).attr( 'id' ),
598
- spinner = add_box.find( '.spinner' ),
599
- toggle_element = $( this ).parents( '.toggle-element' ),
600
- fields = add_box.find( ':input' ),
601
- counter = toggle_element.find( '.yith-toggle-row' ).length,
602
- hidden_obj = $( '<input type="hidden">' );
603
-
604
- hidden_obj.val( counter );
605
-
606
- $( document ).trigger( 'yith-toggle-change-counter', [hidden_obj, add_box] );
607
-
608
- counter = hidden_obj.val();
609
- var template = wp.template( 'yith-toggle-element-item-' + id ),
610
- toggle_el = $( template( { index: counter } ) );
611
-
612
- spinner.addClass( 'show' );
613
-
614
- $.each( fields, function ( i, field ) {
615
- if ( typeof $( field ).attr( 'id' ) != 'undefined' ) {
616
-
617
- $field_id = $( field ).attr( 'id' );
618
- $field_val = $( field ).val();
619
-
620
- if ( 'radio' == $( field ).attr( 'type' ) ) {
621
- $field_id = $field_id.replace( 'new_', '' );
622
- $field_id = $field_id.replace( '-' + $field_val, '' );
623
- $field_id = $field_id + '_dataindex-' + $field_val;
624
- } else {
625
- $field_id = $field_id.replace( 'new_', '' ) + '_' + counter;
626
- }
627
-
628
- if ( $( field ).is( ':checked' ) ) {
629
- $( toggle_el ).find( '#' + $field_id ).prop( 'checked', true );
630
- }
631
-
632
- if ( $( field ).hasClass( 'yith-post-search' ) || $( field ).hasClass( 'yith-term-search' ) ) {
633
- $( toggle_el ).find( '#' + $field_id ).html( $( '#' + $( field ).attr( 'id' ) ).html() );
634
- }
635
-
636
- $( toggle_el ).find( '#' + $field_id ).val( $field_val );
637
-
638
- }
639
-
640
- } );
641
-
642
- $( toggle_el ).formatToggleTitle();
643
- var form_is_valid = $( '<input type="hidden">' ).val( 'yes' );
644
- $( document ).trigger( 'yith-toggle-element-item-before-add', [add_box, toggle_el, form_is_valid] );
645
-
646
- var delayInMilliseconds = 1000; //1 second
647
- setTimeout( function () {
648
- if ( form_is_valid.val() === 'yes' ) {
649
- $( toggle_element ).find( '.yith-toggle-elements' ).append( toggle_el );
650
- $( add_box ).find( '.yith-plugin-fw-datepicker' ).datepicker( 'destroy' );
651
- $( add_box ).html( '' );
652
- $( add_box ).prev( '.yith-add-box-button' ).trigger( 'click' );
653
- toggle_element.saveToggleElement();
654
-
655
- var delayInMilliseconds = 2000; //1 second
656
- setTimeout( function () {
657
- $( toggle_element ).find( '.highlight' ).removeClass( 'highlight' );
658
- }, delayInMilliseconds );
659
-
660
-
661
- $( document ).trigger( 'yith_fields_init' );
662
- }
663
- }, delayInMilliseconds );
664
-
665
-
666
- } );
667
-
668
- $( document ).on( 'click', '.yith-toggle-row .yith-save-button', function ( event ) {
669
- event.preventDefault();
670
- var toggle = $( this ).closest( '.toggle-element' ),
671
- toggle_row = $( this ).closest( '.yith-toggle-row' ),
672
- spinner = toggle_row.find( '.spinner' );
673
- toggle_row.formatToggleTitle();
674
-
675
- var form_is_valid = $( '<input type="hidden">' ).val( 'yes' );
676
- $( document ).trigger( 'yith-toggle-element-item-before-update', [toggle, toggle_row, form_is_valid] );
677
- if ( form_is_valid.val() === 'yes' ) {
678
- spinner.addClass( 'show' );
679
- toggle.saveToggleElement( spinner );
680
- }
681
- } );
682
-
683
- //register remove the dome and save the toggle
684
- $( document ).on( 'click', '.yith-toggle-row .yith-delete-button', function ( event ) {
685
- event.preventDefault();
686
- var toggle = $( this ).closest( '.toggle-element' ),
687
- toggle_row = $( this ).closest( '.yith-toggle-row' );
688
- toggle_row.remove();
689
- toggle.saveToggleElement();
690
- } );
691
-
692
- //register onoff status
693
- $( document ).on( 'click', '.yith-toggle-onoff', function ( event ) {
694
- event.preventDefault();
695
- var toggle = $( this ).closest( '.toggle-element' );
696
- toggle.saveToggleElement();
697
- } );
698
-
699
- // Radio
700
- $( document ).on( 'click', '.yith-plugin-fw-radio input[type=radio]', function () {
701
- $( this ).closest( '.yith-plugin-fw-radio' ).val( $( this ).val() ).trigger( 'change' );
702
- } );
703
-
704
- $( document ).on( 'click', '.yith-password-eye', function () {
705
- var $this = $( this ),
706
- inp = $( this ).closest( '.yith-password-wrapper' ).find( 'input' );
707
- if ( inp.attr( 'type' ) === "password" ) {
708
- inp.attr( 'type', 'text' );
709
- $this.addClass( 'yith-password-eye-closed' );
710
- } else {
711
- inp.attr( 'type', 'password' );
712
- $this.removeClass( 'yith-password-eye-closed' );
713
- }
714
- } );
715
-
716
- $( document.body ).on( 'yith-plugin-fw-init-radio', function () {
717
- $( '.yith-plugin-fw-radio:not(.yith-plugin-fw-radio--initialized)' ).each( function () {
718
- $( this ).val( $( this ).attr( 'value' ) );
719
- $( this ).addClass( 'yith-plugin-fw-radio--initialized' );
720
- } );
721
- } ).trigger( 'yith-plugin-fw-init-radio' );
722
-
723
- /**
724
- * Select2 - add class to stylize it with the new plugin-fw style
725
- */
726
- $( document ).on( 'select2:open', function ( e ) {
727
- if ( $( e.target ).closest( '.yith-plugin-ui' ).length ) {
728
- $( '.select2-results' ).closest( '.select2-container' ).addClass( 'yith-plugin-fw-select2-container' );
729
- }
730
- } );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
731
 
732
  } )( jQuery );
1
  ( function ( $ ) {
2
 
3
+ /* global yith_framework_fw_fields*/
4
+
5
+ var yith_fields_init = function () {
6
+ var $datepicker = $( '.yith-plugin-fw-datepicker' ),
7
+ $colorpicker = $( '.yith-plugin-fw-colorpicker' ),
8
+ $upload = {
9
+ imgPreviewHandler : '.yith-plugin-fw-upload-img-preview',
10
+ uploadButtonHandler: '.yith-plugin-fw-upload-button',
11
+ imgUrlHandler : '.yith-plugin-fw-upload-img-url',
12
+ resetButtonHandler : '.yith-plugin-fw-upload-button-reset',
13
+ imgUrl : $( '.yith-plugin-fw-upload-img-url' )
14
+ },
15
+ $wpAddMedia = $( '.add_media' ),
16
+ $imageGallery = {
17
+ sliderWrapper: $( '.yith-plugin-fw .image-gallery ul.slides-wrapper' ),
18
+ buttonHandler: '.yith-plugin-fw .image-gallery-button'
19
+ },
20
+ $sidebars = $( '.yith-plugin-fw-sidebar-layout' ),
21
+ $slider = $( '.yith-plugin-fw .yith-plugin-fw-slider-container .ui-slider-horizontal' ),
22
+ $codemirror = $( '.codemirror' ),
23
+ $icons = $( '.yit-icons-manager-wrapper' ),
24
+ $checkgroup = $( ".yith-plugin-ui td.forminp-checkbox" );
25
+
26
+ /* Datepicker */
27
+ $datepicker.each( function () {
28
+ var args = $( this ).data();
29
+
30
+ // set animation to false to prevent style 'glitches' when removing class on closing
31
+ args.showAnim = false;
32
+ args.beforeShow = function ( input, instance ) {
33
+ instance.dpDiv.addClass( 'yith-plugin-fw-datepicker-div' );
34
+ };
35
+ args.onClose = function ( selectedDate, instance ) {
36
+ instance.dpDiv.removeClass( 'yith-plugin-fw-datepicker-div' );
37
+ };
38
+
39
+ $( this ).datepicker( args );
40
+ } );
41
+
42
+ /* Colorpicker */
43
+ $colorpicker.wpColorPicker( {
44
+ palettes: false,
45
+ width : 200,
46
+ mode : 'hsl',
47
+ clear : function () {
48
+ var input = $( this );
49
+ input.val( input.data( 'default-color' ) );
50
+ input.change();
51
+ }
52
+ } );
53
+
54
+
55
+ $colorpicker.each( function () {
56
+ var select_label = $( this ).data( 'variations-label' ),
57
+ wrap_main1 = $( this ).closest( '.yith-plugin-fw-colorpicker-field-wrapper' ),
58
+ wrap_main2 = $( this ).closest( '.yith-single-colorpicker' ),
59
+ wrap1 = wrap_main1.find( '.wp-picker-input-wrap' ),
60
+ wrap2 = wrap_main2.find( '.wp-picker-input-wrap' );
61
+
62
+ wrap1.length && wrap_main1.find( 'a.wp-color-result' ).attr( 'title', select_label );
63
+ wrap_main2.length && wrap_main2.find( 'a.wp-color-result' ).attr( 'title', select_label );
64
+
65
+ if ( !wrap1.find( '.wp-picker-clear-custom' ).length ) {
66
+ var button = $( '<span/>' ).attr( {
67
+ class: "wp-picker-default-custom"
68
+ } );
69
+ wrap1.find( '.wp-picker-default' ).wrap( button );
70
+ }
71
+
72
+ if ( !wrap2.find( '.wp-picker-clear-custom' ).length ) {
73
+ var button = $( '<span/>' ).attr( {
74
+ class: "wp-picker-default-custom"
75
+ } );
76
+ wrap2.find( '.wp-picker-default' ).wrap( button );
77
+ }
78
+ } );
79
+
80
+
81
+ /* Upload */
82
+ if ( typeof wp !== 'undefined' && typeof wp.media !== 'undefined' ) {
83
+ var _custom_media = true;
84
+ // preview
85
+ $upload.imgUrl.change( function () {
86
+ var url = $( this ).val(),
87
+ re = new RegExp( "(http|ftp|https)://[a-zA-Z0-9@?^=%&amp;:/~+#-_.]*.(gif|jpg|jpeg|png|ico|svg)" ),
88
+ preview = $( this ).parent().find( $upload.imgPreviewHandler ).first();
89
+
90
+ if ( preview.length < 1 ) {
91
+ preview = $( this ).parent().parent().find( $upload.imgPreviewHandler ).first();
92
+ }
93
+
94
+ if ( re.test( url ) ) {
95
+ preview.html( '<img src="' + url + '" style="max-width:100px; max-height:100px;" />' );
96
+ } else {
97
+ preview.html( '' );
98
+ }
99
+ } ).trigger( 'change' );
100
+
101
+ $( document ).on( 'click', $upload.uploadButtonHandler, function ( e ) {
102
+ e.preventDefault();
103
+
104
+ var t = $( this ),
105
+ custom_uploader,
106
+ id = t.attr( 'id' ).replace( /-button$/, '' );
107
+
108
+ //If the uploader object has already been created, reopen the dialog
109
+ if ( custom_uploader ) {
110
+ custom_uploader.open();
111
+ return;
112
+ }
113
+
114
+ var custom_uploader_states = [
115
+ // Main states.
116
+ new wp.media.controller.Library( {
117
+ library : wp.media.query(),
118
+ multiple : false,
119
+ title : 'Choose Image',
120
+ priority : 20,
121
+ filterable: 'uploaded'
122
+ } )
123
+ ];
124
+
125
+ // Create the media frame.
126
+ custom_uploader = wp.media.frames.downloadable_file = wp.media( {
127
+ // Set the title of the modal.
128
+ title : 'Choose Image',
129
+ library : {
130
+ type: ''
131
+ },
132
+ button : {
133
+ text: 'Choose Image'
134
+ },
135
+ multiple: false,
136
+ states : custom_uploader_states
137
+ } );
138
+
139
+ //When a file is selected, grab the URL and set it as the text field's value
140
+ custom_uploader.on( 'select', function () {
141
+ var attachment = custom_uploader.state().get( 'selection' ).first().toJSON();
142
+
143
+ $( "#" + id ).val( attachment.url );
144
+ // Save the id of the selected element to an element which name is the same with a suffix "-yith-attachment-id"
145
+ if ( $( "#" + id + "-yith-attachment-id" ) ) {
146
+ $( "#" + id + "-yith-attachment-id" ).val( attachment.id );
147
+ }
148
+ $upload.imgUrl.trigger( 'change' );
149
+ } );
150
+
151
+ //Open the uploader dialog
152
+ custom_uploader.open();
153
+ } );
154
+
155
+ $( document ).on( 'click', $upload.resetButtonHandler, function ( e ) {
156
+ var t = $( this ),
157
+ id = t.attr( 'id' ),
158
+ input_id = t.attr( 'id' ).replace( /-button-reset$/, '' ),
159
+ default_value = $( '#' + id ).data( 'default' );
160
+
161
+ $( "#" + input_id ).val( default_value );
162
+ $upload.imgUrl.trigger( 'change' );
163
+ } );
164
+ }
165
+
166
+ $wpAddMedia.on( 'click', function () {
167
+ _custom_media = false;
168
+ } );
169
+
170
+ /* Image Gallery */
171
+ if ( typeof wp !== 'undefined' && typeof wp.media !== 'undefined' ) {
172
+ $( document ).on( 'click', $imageGallery.buttonHandler, function ( e ) {
173
+ var $t = $( this ),
174
+ $container = $t.closest( '.image-gallery' ),
175
+ $image_gallery_ids = $container.find( '.image_gallery_ids' ),
176
+ attachment_ids = $image_gallery_ids.val(),
177
+ $gallery_images_wrapper = $container.find( 'ul.slides-wrapper' );
178
+
179
+ // Create the media frame.
180
+ var image_gallery_frame = wp.media.frames.image_gallery = wp.media( {
181
+ // Set the title of the modal.
182
+ title : $t.data( 'choose' ),
183
+ button: {
184
+ text: $t.data( 'update' )
185
+ },
186
+ states: [
187
+ new wp.media.controller.Library( {
188
+ title : $t.data( 'choose' ),
189
+ filterable: 'all',
190
+ multiple : true
191
+ } )
192
+ ]
193
+ } );
194
+
195
+ // When an image is selected, run a callback.
196
+ image_gallery_frame.on( 'select', function () {
197
+ var selection = image_gallery_frame.state().get( 'selection' );
198
+ selection.map( function ( attachment ) {
199
+ attachment = attachment.toJSON();
200
+
201
+ if ( attachment.id ) {
202
+ attachment_ids = attachment_ids ? attachment_ids + "," + attachment.id : attachment.id;
203
+ $gallery_images_wrapper.append( '<li class="image" data-attachment_id="' + attachment.id + '"><img src="' + attachment.sizes.thumbnail.url + '"/><ul class="actions"><li><a href="#" class="delete" title="' + $t.data( 'delete' ) + '">x</a></li></ul></li>' );
204
+ }
205
+ } );
206
+
207
+ $image_gallery_ids.val( attachment_ids );
208
+ } );
209
+
210
+ image_gallery_frame.open();
211
+
212
+ } );
213
+
214
+ // Image ordering
215
+ $imageGallery.sliderWrapper.each( function () {
216
+ var $t = $( this );
217
+ $t.sortable( {
218
+ items : 'li.image',
219
+ cursor : 'move',
220
+ scrollSensitivity : 40,
221
+ forcePlaceholderSize: true,
222
+ forceHelperSize : false,
223
+ helper : 'clone',
224
+ opacity : 0.65,
225
+ start : function ( event, ui ) {
226
+ ui.item.css( 'background-color', '#f6f6f6' );
227
+ },
228
+ stop : function ( event, ui ) {
229
+ ui.item.removeAttr( 'style' );
230
+ },
231
+ update : function ( event, ui ) {
232
+ var attachment_ids = '';
233
+
234
+ $t.find( 'li.image' ).css( 'cursor', 'default' ).each( function () {
235
+ var attachment_id = $( this ).attr( 'data-attachment_id' );
236
+ attachment_ids = attachment_ids + attachment_id + ',';
237
+ } );
238
+
239
+ $t.closest( '.image-gallery' ).find( '.image_gallery_ids' ).val( attachment_ids );
240
+ }
241
+ } );
242
+ } );
243
+
244
+ // Remove images
245
+ $imageGallery.sliderWrapper.on( 'click', 'a.delete', function () {
246
+ var $wrapper = $( this ).closest( '.image-gallery' ),
247
+ $gallery = $( this ).closest( '.image-gallery ul.slides-wrapper' ),
248
+ $image_gallery_ids = $wrapper.find( '.image_gallery_ids' ),
249
+ attachment_ids = '';
250
+
251
+ $( this ).closest( 'li.image' ).remove();
252
+
253
+ $gallery.find( 'li.image' ).css( 'cursor', 'default' ).each( function () {
254
+ var attachment_id = $( this ).attr( 'data-attachment_id' );
255
+ attachment_ids = attachment_ids + attachment_id + ',';
256
+ } );
257
+
258
+ $image_gallery_ids.val( attachment_ids );
259
+ } );
260
+ }
261
+
262
+
263
+ /* Sidebars */
264
+ $sidebars.each( function () {
265
+ var $images = $( this ).find( 'img' );
266
+ $images.on( 'click', function () {
267
+ var $container = $( this ).closest( '.yith-plugin-fw-sidebar-layout' ),
268
+ $left = $container.find( '.yith-plugin-fw-sidebar-layout-sidebar-left-container' ),
269
+ $right = $container.find( '.yith-plugin-fw-sidebar-layout-sidebar-right-container' ),
270
+ type = $( this ).data( 'type' );
271
+
272
+ $( this ).parent().children( ':radio' ).attr( 'checked', false );
273
+ $( this ).prev( ':radio' ).attr( 'checked', true );
274
+
275
+ if ( typeof type != 'undefined' ) {
276
+ switch ( type ) {
277
+ case 'left':
278
+ $left.show();
279
+ $right.hide();
280
+ break;
281
+ case 'right':
282
+ $right.show();
283
+ $left.hide();
284
+ break;
285
+ case 'double':
286
+ $left.show();
287
+ $right.show();
288
+ break;
289
+ default:
290
+ $left.hide();
291
+ $right.hide();
292
+ break;
293
+ }
294
+ }
295
+ } );
296
+ } );
297
+
298
+ /* Slider */
299
+ $slider.each( function () {
300
+ var val = $( this ).data( 'val' ),
301
+ minValue = $( this ).data( 'min' ),
302
+ maxValue = $( this ).data( 'max' ),
303
+ step = $( this ).data( 'step' ),
304
+ labels = $( this ).data( 'labels' );
305
+
306
+ $( this ).slider( {
307
+ value: val,
308
+ min : minValue,
309
+ max : maxValue,
310
+ range: 'min',
311
+ step : step,
312
+
313
+ create: function () {
314
+ $( this ).find( '.ui-slider-handle' ).text( $( this ).slider( "value" ) );
315
+ },
316
+
317
+
318
+ slide: function ( event, ui ) {
319
+ $( this ).find( 'input' ).val( ui.value );
320
+ $( this ).find( '.ui-slider-handle' ).text( ui.value );
321
+ $( this ).siblings( '.feedback' ).find( 'strong' ).text( ui.value + labels );
322
+ }
323
+ } );
324
+ } );
325
+
326
+ /* codemirror */
327
+ $codemirror.each( function ( i, v ) {
328
+ var editor = CodeMirror.fromTextArea( v, {
329
+ lineNumbers : 1,
330
+ mode : 'javascript',
331
+ showCursorWhenSelecting: true
332
+ } );
333
+
334
+ $( v ).data( 'codemirrorInstance', editor );
335
+ } );
336
+
337
+ /* Select All - Deselect All */
338
+ $( document ).on( 'click', '.yith-plugin-fw-select-all', function () {
339
+ var $targetSelect = $( '#' + $( this ).data( 'select-id' ) );
340
+ $targetSelect.find( 'option' ).prop( 'selected', true ).trigger( 'change' );
341
+ } );
342
+
343
+ $( document ).on( 'click', '.yith-plugin-fw-deselect-all', function () {
344
+ var $targetSelect = $( '#' + $( this ).data( 'select-id' ) );
345
+ $targetSelect.find( 'option' ).prop( 'selected', false ).trigger( 'change' );
346
+ } );
347
+
348
+
349
+ $icons.each( function () {
350
+ var $container = $( this ),
351
+ $preview = $container.find( '.yit-icons-manager-icon-preview' ).first(),
352
+ $text = $container.find( '.yit-icons-manager-icon-text' );
353
+
354
+ $container.on( 'click', '.yit-icons-manager-list li', function ( event ) {
355
+ var $target = $( event.target ).closest( 'li' ),
356
+ font = $target.data( 'font' ),
357
+ icon = $target.data( 'icon' ),
358
+ key = $target.data( 'key' ),
359
+ name = $target.data( 'name' );
360
+
361
+ $preview.attr( 'data-font', font );
362
+ $preview.attr( 'data-icon', icon );
363
+ $preview.attr( 'data-key', key );
364
+ $preview.attr( 'data-name', name );
365
+
366
+ $text.val( font + ':' + name );
367
+
368
+ $container.find( '.yit-icons-manager-list li' ).removeClass( 'active' );
369
+ $target.addClass( 'active' );
370
+ } );
371
+
372
+ $container.on( 'click', '.yit-icons-manager-action-set-default', function () {
373
+ $container.find( '.yit-icons-manager-list li.default' ).trigger( 'click' );
374
+ } );
375
+ } );
376
+
377
+ /** Select Images */
378
+ $( document ).on( 'click', '.yith-plugin-fw-select-images__item', function () {
379
+ var item = $( this ),
380
+ key = item.data( 'key' ),
381
+ wrapper = item.closest( '.yith-plugin-fw-select-images__wrapper' ),
382
+ items = wrapper.find( '.yith-plugin-fw-select-images__item' ),
383
+ select = wrapper.find( 'select' ).first();
384
+
385
+ if ( select.length ) {
386
+ select.val( key );
387
+ items.removeClass( 'yith-plugin-fw-select-images__item--selected' );
388
+ item.addClass( 'yith-plugin-fw-select-images__item--selected' );
389
+ }
390
+ } );
391
+
392
+ $( document.body ).trigger( 'wc-enhanced-select-init' );
393
+
394
+ $( document ).find( '.ui-sortable .yith-toggle-elements' ).sortable(
395
+ {
396
+ cursor : 'move',
397
+ axis : 'y',
398
+ scrollSensitivity : 40,
399
+ forcePlaceholderSize: true,
400
+ helper : 'clone',
401
+
402
+ stop: function ( event, ui ) {
403
+ var keys = jQuery( '.ui-sortable-handle' ),
404
+ i = 0,
405
+ array_keys = new Array();
406
+ for ( i = 0; i < keys.length; i++ ) {
407
+ array_keys[ i ] = $( keys[ i ] ).data( 'item_key' );
408
+ }
409
+ if ( array_keys.length > 0 ) {
410
+ var toggle = $( this ).closest( '.toggle-element' );
411
+ toggle.saveToggleElement( null, array_keys );
412
+ }
413
+ }
414
+ }
415
+ );
416
+
417
+ $( document.body ).trigger( 'yith-framework-enhanced-select-init' );
418
+ };
419
+
420
+ $( document ).on( 'yith_fields_init', yith_fields_init ).trigger( 'yith_fields_init' );
421
+
422
+ /* on-off */
423
+ $( document ).on( 'click', '.yith-plugin-fw-onoff-container span', function () {
424
+ var input = $( this ).prev( 'input' ),
425
+ checked = input.prop( 'checked' );
426
+
427
+ if ( checked ) {
428
+ input.prop( 'checked', false ).attr( 'value', 'no' ).removeClass( 'onoffchecked' );
429
+ } else {
430
+ input.prop( 'checked', true ).attr( 'value', 'yes' ).addClass( 'onoffchecked' );
431
+ }
432
+
433
+ input.change();
434
+ } );
435
+
436
+
437
+ /** Toggle **/
438
+
439
+
440
+
441
+ //TOGGLE ELEMENT
442
+ $.fn.saveToggleElement = function ( spinner, array_keys ) {
443
+ var toggle = $( this ),
444
+ action = 'yith_plugin_fw_save_toggle_element',
445
+ formdata = toggle.serializeToggleElement(),
446
+ wrapper = toggle.find( '.yith-toggle_wrapper' ),
447
+ id = wrapper.attr( 'id' ),
448
+ current_tab = $.urlParam( 'tab' );
449
+
450
+ formdata.append( 'security', wrapper.data( 'nonce' ) );
451
+
452
+ if ( typeof array_keys != 'undefined' && array_keys.length > 0 ) {
453
+ formdata.append( 'yith_toggle_elements_order_keys', array_keys );
454
+ }
455
+
456
+ if ( toggle.closest( '.metaboxes-tab.yith-plugin-ui' ).length ) {
457
+ action = 'yith_plugin_fw_save_toggle_element_metabox';
458
+ post_id = $( this ).closest( 'form#post' ).find( '#post_ID' ).val();
459
+ yit_metaboxes_nonce = $( this ).closest( 'form#post' ).find( '#yit_metaboxes_nonce' ).val();
460
+ metabox_tab = $( this ).closest( '.tabs-panel' ).attr( 'id' );
461
+ url = yith_framework_fw_fields.ajax_url +
462
+ '?action=' + action +
463
+ "&post_ID=" + post_id +
464
+ '&yit_metaboxes_nonce=' + yit_metaboxes_nonce +
465
+ "&toggle_id=" + id +
466
+ "&metabox_tab=" + metabox_tab;
467
+ } else {
468
+ url = yith_framework_fw_fields.admin_url + '?action=' + action + '&tab=' + current_tab + "&toggle_id=" + id;
469
+ }
470
+
471
+ $.ajax( {
472
+ type : "POST",
473
+ url : url,
474
+ data : formdata,
475
+ contentType: false,
476
+ processData: false,
477
+ success : function ( result ) {
478
+ if ( spinner ) {
479
+ spinner.removeClass( 'show' );
480
+ }
481
+
482
+ $( document ).trigger( 'yith_save_toggle_element_done', [result, toggle] );
483
+ }
484
+ } );
485
+ };
486
+
487
+ $.fn.serializeToggleElement = function () {
488
+ var obj = $( this );
489
+ /* ADD FILE TO PARAM AJAX */
490
+ var formData = new FormData();
491
+ var params = $( obj ).find( ":input" ).serializeArray();
492
+
493
+ $.each( params, function ( i, val ) {
494
+ el_name = val.name;
495
+ formData.append( val.name, val.value );
496
+ } );
497
+
498
+ return formData;
499
+ };
500
+
501
+ $.fn.formatToggleTitle = function () {
502
+ var toggle_el = $( this ),
503
+ fields = toggle_el.find( ':input' ),
504
+ title = toggle_el.find( 'span.title' ).data( 'title_format' ),
505
+ subtitle = toggle_el.find( '.subtitle' ).data( 'subtitle_format' ),
506
+ regExp = new RegExp( "[^%%]+(?=[%%])", 'g' );
507
+
508
+ if ( typeof title != 'undefined' ) {
509
+ var res = title.match( regExp );
510
+ }
511
+
512
+ if ( typeof subtitle != 'undefined' ) {
513
+ var ressub = subtitle.match( regExp );
514
+ }
515
+
516
+ $.each( fields, function ( i, field ) {
517
+ if ( typeof $( field ).attr( 'id' ) != 'undefined' ) {
518
+ $field_id = $( field ).attr( 'id' );
519
+ $field_array = $field_id.split( '_' );
520
+ $field_array.pop();
521
+ $field_id = $field_array.join( '_' );
522
+ $field_val = $( field ).val();
523
+
524
+ if ( res != null && typeof res != 'undefined' && res.indexOf( $field_id ) !== -1 ) {
525
+ title = title.replace( '%%' + $field_id + '%%', $field_val );
526
+ }
527
+ if ( ressub != null && typeof ressub != 'undefined' && ressub.indexOf( $field_id ) !== -1 ) {
528
+ subtitle = subtitle.replace( '%%' + $field_id + '%%', $field_val );
529
+ }
530
+ }
531
+ } );
532
+
533
+ if ( '' !== title ) {
534
+ toggle_el.find( 'span.title' ).html( title );
535
+ }
536
+
537
+ if ( '' !== subtitle ) {
538
+ toggle_el.find( '.subtitle' ).html( subtitle );
539
+ }
540
+
541
+ $( document ).trigger( 'yith-toggle-element-item-title', [toggle_el] );
542
+ };
543
+
544
+ $.urlParam = function ( name ) {
545
+ var results = new RegExp( '[\?&]' + name + '=([^&#]*)' )
546
+ .exec( window.location.search );
547
+
548
+ return ( results !== null ) ? results[ 1 ] || 0 : false;
549
+ };
550
+
551
+ $( document ).on( 'click', '.yith-toggle-title', function ( event ) {
552
+ var _toggle = $( event.target ),
553
+ _section = _toggle.closest( '.yith-toggle-row' ),
554
+ _content = _section.find( '.yith-toggle-content' );
555
+
556
+ if ( _toggle.hasClass( 'yith-plugin-fw-onoff' ) || _toggle.hasClass( 'yith-icon-drag' ) ) {
557
+ return false;
558
+ }
559
+
560
+ if ( _section.is( '.yith-toggle-row-opened' ) ) {
561
+ _content.slideUp( 400 );
562
+ } else {
563
+ _content.slideDown( 400 );
564
+ }
565
+ _section.toggleClass( 'yith-toggle-row-opened' );
566
+ } );
567
+
568
+ /**Add new box toggle**/
569
+ $( document ).on( 'click', '.yith-add-box-button', function ( event ) {
570
+ event.preventDefault();
571
+ var $this = $( this ),
572
+ target_id = $this.data( 'box_id' ),
573
+ closed_label = $this.data( 'closed_label' ),
574
+ label = $this.data( 'opened_label' ),
575
+ id = $this.closest( '.yith-toggle_wrapper' ).attr( 'id' );
576
+ template = wp.template( 'yith-toggle-element-add-box-content-' + id );
577
+
578
+ if ( '' !== target_id ) {
579
+ $( '#' + target_id ).html( template( { index: 'box_id' } ) ).slideToggle();
580
+ if ( closed_label !== '' ) {
581
+ if ( $this.html() === closed_label ) {
582
+ $this.html( label ).removeClass( 'closed' );
583
+ } else {
584
+ $this.html( closed_label ).addClass( 'closed' );
585
+ }
586
+ }
587
+
588
+ $( document ).trigger( 'yith_fields_init' );
589
+ $( document ).trigger( 'yith-add-box-button-toggle', [$this] );
590
+ }
591
+ } );
592
+
593
+ $( document ).on( 'click', '.yith-add-box-buttons .yith-save-button', function ( event ) {
594
+
595
+ event.preventDefault();
596
+ var add_box = $( this ).parents( '.yith-add-box' ),
597
+ id = $( this ).closest( '.yith-toggle_wrapper' ).attr( 'id' ),
598
+ spinner = add_box.find( '.spinner' ),
599
+ toggle_element = $( this ).parents( '.toggle-element' ),
600
+ fields = add_box.find( ':input' ),
601
+ counter = toggle_element.find( '.yith-toggle-row' ).length,
602
+ hidden_obj = $( '<input type="hidden">' );
603
+
604
+ hidden_obj.val( counter );
605
+
606
+ $( document ).trigger( 'yith-toggle-change-counter', [hidden_obj, add_box] );
607
+
608
+ counter = hidden_obj.val();
609
+ var template = wp.template( 'yith-toggle-element-item-' + id ),
610
+ toggle_el = $( template( { index: counter } ) );
611
+
612
+ spinner.addClass( 'show' );
613
+
614
+ $.each( fields, function ( i, field ) {
615
+ if ( typeof $( field ).attr( 'id' ) != 'undefined' ) {
616
+
617
+ $field_id = $( field ).attr( 'id' );
618
+ $field_val = $( field ).val();
619
+
620
+ if ( 'radio' == $( field ).attr( 'type' ) ) {
621
+ $field_id = $field_id.replace( 'new_', '' );
622
+ $field_id = $field_id.replace( '-' + $field_val, '' );
623
+ $field_id = $field_id + '_dataindex-' + $field_val;
624
+ } else {
625
+ $field_id = $field_id.replace( 'new_', '' ) + '_' + counter;
626
+ }
627
+
628
+ if ( $( field ).is( ':checked' ) ) {
629
+ $( toggle_el ).find( '#' + $field_id ).prop( 'checked', true );
630
+ }
631
+
632
+ if ( $( field ).hasClass( 'yith-post-search' ) || $( field ).hasClass( 'yith-term-search' ) ) {
633
+ $( toggle_el ).find( '#' + $field_id ).html( $( '#' + $( field ).attr( 'id' ) ).html() );
634
+ }
635
+
636
+ $( toggle_el ).find( '#' + $field_id ).val( $field_val );
637
+
638
+ }
639
+
640
+ } );
641
+
642
+ $( toggle_el ).formatToggleTitle();
643
+ var form_is_valid = $( '<input type="hidden">' ).val( 'yes' );
644
+ $( document ).trigger( 'yith-toggle-element-item-before-add', [add_box, toggle_el, form_is_valid] );
645
+
646
+ var delayInMilliseconds = 1000; //1 second
647
+ setTimeout( function () {
648
+ if ( form_is_valid.val() === 'yes' ) {
649
+ $( toggle_element ).find( '.yith-toggle-elements' ).append( toggle_el );
650
+ $( add_box ).find( '.yith-plugin-fw-datepicker' ).datepicker( 'destroy' );
651
+ $( add_box ).html( '' );
652
+ $( add_box ).prev( '.yith-add-box-button' ).trigger( 'click' );
653
+ toggle_element.saveToggleElement();
654
+
655
+ var delayInMilliseconds = 2000; //1 second
656
+ setTimeout( function () {
657
+ $( toggle_element ).find( '.highlight' ).removeClass( 'highlight' );
658
+ }, delayInMilliseconds );
659
+
660
+
661
+ $( document ).trigger( 'yith_fields_init' );
662
+ }
663
+ }, delayInMilliseconds );
664
+
665
+
666
+ } );
667
+
668
+ $( document ).on( 'click', '.yith-toggle-row .yith-save-button', function ( event ) {
669
+ event.preventDefault();
670
+ var toggle = $( this ).closest( '.toggle-element' ),
671
+ toggle_row = $( this ).closest( '.yith-toggle-row' ),
672
+ spinner = toggle_row.find( '.spinner' );
673
+ toggle_row.formatToggleTitle();
674
+
675
+ var form_is_valid = $( '<input type="hidden">' ).val( 'yes' );
676
+ $( document ).trigger( 'yith-toggle-element-item-before-update', [toggle, toggle_row, form_is_valid] );
677
+ if ( form_is_valid.val() === 'yes' ) {
678
+ spinner.addClass( 'show' );
679
+ toggle.saveToggleElement( spinner );
680
+ }
681
+ } );
682
+
683
+ //register remove the dome and save the toggle
684
+ $( document ).on( 'click', '.yith-toggle-row .yith-delete-button', function ( event ) {
685
+ event.preventDefault();
686
+ var toggle = $( this ).closest( '.toggle-element' ),
687
+ toggle_row = $( this ).closest( '.yith-toggle-row' );
688
+ toggle_row.remove();
689
+ toggle.saveToggleElement();
690
+ } );
691
+
692
+ //register onoff status
693
+ $( document ).on( 'click', '.yith-toggle-onoff', function ( event ) {
694
+ event.preventDefault();
695
+ var toggle = $( this ).closest( '.toggle-element' );
696
+ toggle.saveToggleElement();
697
+ } );
698
+
699
+ // Radio
700
+ $( document ).on( 'click', '.yith-plugin-fw-radio input[type=radio]', function () {
701
+ $( this ).closest( '.yith-plugin-fw-radio' ).val( $( this ).val() ).trigger( 'change' );
702
+ } );
703
+
704
+ $( document ).on( 'click', '.yith-password-eye', function () {
705
+ var $this = $( this ),
706
+ inp = $( this ).closest( '.yith-password-wrapper' ).find( 'input' );
707
+ if ( inp.attr( 'type' ) === "password" ) {
708
+ inp.attr( 'type', 'text' );
709
+ $this.addClass( 'yith-password-eye-closed' );
710
+ } else {
711
+ inp.attr( 'type', 'password' );
712
+ $this.removeClass( 'yith-password-eye-closed' );
713
+ }
714
+ } );
715
+
716
+ $( document.body ).on( 'yith-plugin-fw-init-radio', function () {
717
+ $( '.yith-plugin-fw-radio:not(.yith-plugin-fw-radio--initialized)' ).each( function () {
718
+ $( this ).val( $( this ).attr( 'value' ) );
719
+ $( this ).addClass( 'yith-plugin-fw-radio--initialized' );
720
+ } );
721
+ } ).trigger( 'yith-plugin-fw-init-radio' );
722
+
723
+ /**
724
+ * Select2 - add class to stylize it with the new plugin-fw style
725
+ */
726
+ $( document ).on( 'select2:open', function ( e ) {
727
+ if ( $( e.target ).closest( '.yith-plugin-ui' ).length ) {
728
+ $( '.select2-results' ).closest( '.select2-container' ).addClass( 'yith-plugin-fw-select2-container' );
729
+ }
730
+ } );
731
+
732
+ /**
733
+ * Dimensions
734
+ */
735
+ var fw_dimensions = {
736
+ selectors : {
737
+ wrapper : '.yith-plugin-fw-dimensions',
738
+ units : {
739
+ wrapper : '.yith-plugin-fw-dimensions__units',
740
+ single : '.yith-plugin-fw-dimensions__unit',
741
+ value : '.yith-plugin-fw-dimensions__unit__value',
742
+ selectedClass: 'yith-plugin-fw-dimensions__unit--selected'
743
+ },
744
+ linked : {
745
+ button : '.yith-plugin-fw-dimensions__linked',
746
+ value : '.yith-plugin-fw-dimensions__linked__value',
747
+ wrapperActiveClass: 'yith-plugin-fw-dimensions--linked-active'
748
+ },
749
+ dimensions: {
750
+ number: '.yith-plugin-fw-dimensions__dimension__number'
751
+ }
752
+ },
753
+ init : function () {
754
+ var self = fw_dimensions;
755
+ $( document ).on( 'click', self.selectors.units.single, self.unitChange );
756
+ $( document ).on( 'click', self.selectors.linked.button, self.linkedChange );
757
+ $( document ).on( 'change keyup', self.selectors.dimensions.number, self.numberChange );
758
+ },
759
+ unitChange : function ( e ) {
760
+ var unit = $( this ).closest( fw_dimensions.selectors.units.single ),
761
+ wrapper = unit.closest( fw_dimensions.selectors.units.wrapper ),
762
+ units = wrapper.find( fw_dimensions.selectors.units.single ),
763
+ valueField = wrapper.find( fw_dimensions.selectors.units.value ).first(),
764
+ value = unit.data( 'value' );
765
+
766
+ units.removeClass( fw_dimensions.selectors.units.selectedClass );
767
+ unit.addClass( fw_dimensions.selectors.units.selectedClass );
768
+ valueField.val( value );
769
+ },
770
+ linkedChange: function () {
771
+ var button = $( this ).closest( fw_dimensions.selectors.linked.button ),
772
+ mainWrapper = button.closest( fw_dimensions.selectors.wrapper ),
773
+ valueField = button.find( fw_dimensions.selectors.linked.value ),
774
+ value = valueField.val();
775
+
776
+ if ( 'yes' === value ) {
777
+ mainWrapper.removeClass( fw_dimensions.selectors.linked.wrapperActiveClass );
778
+ valueField.val( 'no' );
779
+ } else {
780
+ mainWrapper.addClass( fw_dimensions.selectors.linked.wrapperActiveClass );
781
+ valueField.val( 'yes' );
782
+
783
+ mainWrapper.find( fw_dimensions.selectors.dimensions.number ).first().trigger( 'change' );
784
+ }
785
+ },
786
+ numberChange: function ( e ) {
787
+ var number = $( this ).closest( fw_dimensions.selectors.dimensions.number ),
788
+ mainWrapper = number.closest( fw_dimensions.selectors.wrapper );
789
+ if ( mainWrapper.hasClass( fw_dimensions.selectors.linked.wrapperActiveClass ) ) {
790
+ var numbers = mainWrapper.find( fw_dimensions.selectors.dimensions.number );
791
+
792
+ numbers.val( number.val() );
793
+ }
794
+ }
795
+ };
796
+ fw_dimensions.init();
797
 
798
  } )( jQuery );
plugin-fw/assets/js/yith-fields.min.js CHANGED
@@ -1 +1 @@
1
- !function(e){e(document).on("yith_fields_init",function(){var t=e(".yith-plugin-fw-datepicker"),i=e(".yith-plugin-fw-colorpicker"),a={imgPreviewHandler:".yith-plugin-fw-upload-img-preview",uploadButtonHandler:".yith-plugin-fw-upload-button",imgUrlHandler:".yith-plugin-fw-upload-img-url",resetButtonHandler:".yith-plugin-fw-upload-button-reset",imgUrl:e(".yith-plugin-fw-upload-img-url")},l=e(".add_media"),n={sliderWrapper:e(".yith-plugin-fw .image-gallery ul.slides-wrapper"),buttonHandler:".yith-plugin-fw .image-gallery-button"},o=e(".yith-plugin-fw-sidebar-layout"),r=e(".yith-plugin-fw .yith-plugin-fw-slider-container .ui-slider-horizontal"),d=e(".codemirror"),s=e(".yit-icons-manager-wrapper");e(".yith-plugin-ui td.forminp-checkbox");t.each(function(){var t=e(this).data();t.showAnim=!1,t.beforeShow=function(e,t){t.dpDiv.addClass("yith-plugin-fw-datepicker-div")},t.onClose=function(e,t){t.dpDiv.removeClass("yith-plugin-fw-datepicker-div")},e(this).datepicker(t)}),i.wpColorPicker({palettes:!1,width:200,mode:"hsl",clear:function(){var t=e(this);t.val(t.data("default-color")),t.change()}}),i.each(function(){var t=e(this).data("variations-label"),i=e(this).closest(".yith-plugin-fw-colorpicker-field-wrapper"),a=e(this).closest(".yith-single-colorpicker"),l=i.find(".wp-picker-input-wrap"),n=a.find(".wp-picker-input-wrap");if(l.length&&i.find("a.wp-color-result").attr("title",t),a.length&&a.find("a.wp-color-result").attr("title",t),!l.find(".wp-picker-clear-custom").length){var o=e("<span/>").attr({"class":"wp-picker-default-custom"});l.find(".wp-picker-default").wrap(o)}n.find(".wp-picker-clear-custom").length||(o=e("<span/>").attr({"class":"wp-picker-default-custom"}),n.find(".wp-picker-default").wrap(o))}),"undefined"!=typeof wp&&"undefined"!=typeof wp.media&&(a.imgUrl.change(function(){var t=e(this).val(),i=new RegExp("(http|ftp|https)://[a-zA-Z0-9@?^=%&amp;:/~+#-_.]*.(gif|jpg|jpeg|png|ico)"),l=e(this).parent().find(a.imgPreviewHandler).first();l.length<1&&(l=e(this).parent().parent().find(a.imgPreviewHandler).first()),i.test(t)?l.html('<img src="'+t+'" style="max-width:100px; max-height:100px;" />'):l.html("")}).trigger("change"),e(document).on("click",a.uploadButtonHandler,function(t){t.preventDefault();var i,l=e(this).attr("id").replace(/-button$/,"");if(i)i.open();else{var n=[new wp.media.controller.Library({library:wp.media.query(),multiple:!1,title:"Choose Image",priority:20,filterable:"uploaded"})];(i=wp.media.frames.downloadable_file=wp.media({title:"Choose Image",library:{type:""},button:{text:"Choose Image"},multiple:!1,states:n})).on("select",function(){var t=i.state().get("selection").first().toJSON();e("#"+l).val(t.url),e("#"+l+"-yith-attachment-id")&&e("#"+l+"-yith-attachment-id").val(t.id),a.imgUrl.trigger("change")}),i.open()}}),e(document).on("click",a.resetButtonHandler,function(t){var i=e(this),l=i.attr("id"),n=i.attr("id").replace(/-button-reset$/,""),o=e("#"+l).data("default");e("#"+n).val(o),a.imgUrl.trigger("change")}));l.on("click",function(){}),"undefined"!=typeof wp&&"undefined"!=typeof wp.media&&(e(document).on("click",n.buttonHandler,function(t){var i=e(this),a=i.closest(".image-gallery"),l=a.find(".image_gallery_ids"),n=l.val(),o=a.find("ul.slides-wrapper"),r=wp.media.frames.image_gallery=wp.media({title:i.data("choose"),button:{text:i.data("update")},states:[new wp.media.controller.Library({title:i.data("choose"),filterable:"all",multiple:!0})]});r.on("select",function(){r.state().get("selection").map(function(e){(e=e.toJSON()).id&&(n=n?n+","+e.id:e.id,o.append('<li class="image" data-attachment_id="'+e.id+'"><img src="'+e.sizes.thumbnail.url+'"/><ul class="actions"><li><a href="#" class="delete" title="'+i.data("delete")+'">x</a></li></ul></li>'))}),l.val(n)}),r.open()}),n.sliderWrapper.each(function(){var t=e(this);t.sortable({items:"li.image",cursor:"move",scrollSensitivity:40,forcePlaceholderSize:!0,forceHelperSize:!1,helper:"clone",opacity:.65,start:function(e,t){t.item.css("background-color","#f6f6f6")},stop:function(e,t){t.item.removeAttr("style")},update:function(i,a){var l="";t.find("li.image").css("cursor","default").each(function(){var t=e(this).attr("data-attachment_id");l=l+t+","}),t.closest(".image-gallery").find(".image_gallery_ids").val(l)}})}),n.sliderWrapper.on("click","a.delete",function(){var t=e(this).closest(".image-gallery"),i=e(this).closest(".image-gallery ul.slides-wrapper"),a=t.find(".image_gallery_ids"),l="";e(this).closest("li.image").remove(),i.find("li.image").css("cursor","default").each(function(){var t=e(this).attr("data-attachment_id");l=l+t+","}),a.val(l)})),o.each(function(){e(this).find("img").on("click",function(){var t=e(this).closest(".yith-plugin-fw-sidebar-layout"),i=t.find(".yith-plugin-fw-sidebar-layout-sidebar-left-container"),a=t.find(".yith-plugin-fw-sidebar-layout-sidebar-right-container"),l=e(this).data("type");if(e(this).parent().children(":radio").attr("checked",!1),e(this).prev(":radio").attr("checked",!0),void 0!==l)switch(l){case"left":i.show(),a.hide();break;case"right":a.show(),i.hide();break;case"double":i.show(),a.show();break;default:i.hide(),a.hide()}})}),r.each(function(){var t=e(this).data("val"),i=e(this).data("min"),a=e(this).data("max"),l=e(this).data("step"),n=e(this).data("labels");e(this).slider({value:t,min:i,max:a,range:"min",step:l,create:function(){e(this).find(".ui-slider-handle").text(e(this).slider("value"))},slide:function(t,i){e(this).find("input").val(i.value),e(this).find(".ui-slider-handle").text(i.value),e(this).siblings(".feedback").find("strong").text(i.value+n)}})}),d.each(function(t,i){var a=CodeMirror.fromTextArea(i,{lineNumbers:1,mode:"javascript",showCursorWhenSelecting:!0});e(i).data("codemirrorInstance",a)}),e(document).on("click",".yith-plugin-fw-select-all",function(){e("#"+e(this).data("select-id")).find("option").prop("selected",!0).trigger("change")}),e(document).on("click",".yith-plugin-fw-deselect-all",function(){e("#"+e(this).data("select-id")).find("option").prop("selected",!1).trigger("change")}),s.each(function(){var t=e(this),i=t.find(".yit-icons-manager-icon-preview").first(),a=t.find(".yit-icons-manager-icon-text");t.on("click",".yit-icons-manager-list li",function(l){var n=e(l.target).closest("li"),o=n.data("font"),r=n.data("icon"),d=n.data("key"),s=n.data("name");i.attr("data-font",o),i.attr("data-icon",r),i.attr("data-key",d),i.attr("data-name",s),a.val(o+":"+s),t.find(".yit-icons-manager-list li").removeClass("active"),n.addClass("active")}),t.on("click",".yit-icons-manager-action-set-default",function(){t.find(".yit-icons-manager-list li.default").trigger("click")})}),e(document).on("click",".yith-plugin-fw-select-images__item",function(){var t=e(this),i=t.data("key"),a=t.closest(".yith-plugin-fw-select-images__wrapper"),l=a.find(".yith-plugin-fw-select-images__item"),n=a.find("select").first();n.length&&(n.val(i),l.removeClass("yith-plugin-fw-select-images__item--selected"),t.addClass("yith-plugin-fw-select-images__item--selected"))}),e(document.body).trigger("wc-enhanced-select-init"),e(document).find(".ui-sortable .yith-toggle-elements").sortable({cursor:"move",axis:"y",scrollSensitivity:40,forcePlaceholderSize:!0,helper:"clone",stop:function(t,i){var a=jQuery(".ui-sortable-handle"),l=0,n=new Array;for(l=0;l<a.length;l++)n[l]=e(a[l]).data("item_key");n.length>0&&e(this).closest(".toggle-element").saveToggleElement(null,n)}}),e(document.body).trigger("yith-framework-enhanced-select-init")}).trigger("yith_fields_init"),e(document).on("click",".yith-plugin-fw-onoff-container span",function(){var t=e(this).prev("input");t.prop("checked")?t.prop("checked",!1).attr("value","no").removeClass("onoffchecked"):t.prop("checked",!0).attr("value","yes").addClass("onoffchecked"),t.change()}),e.fn.saveToggleElement=function(t,i){var a=e(this),l="yith_plugin_fw_save_toggle_element",n=a.serializeToggleElement(),o=a.find(".yith-toggle_wrapper"),r=o.attr("id"),d=e.urlParam("tab");n.append("security",o.data("nonce")),void 0!==i&&i.length>0&&n.append("yith_toggle_elements_order_keys",i),a.closest(".metaboxes-tab.yith-plugin-ui").length?(l="yith_plugin_fw_save_toggle_element_metabox",post_id=e(this).closest("form#post").find("#post_ID").val(),yit_metaboxes_nonce=e(this).closest("form#post").find("#yit_metaboxes_nonce").val(),metabox_tab=e(this).closest(".tabs-panel").attr("id"),url=yith_framework_fw_fields.ajax_url+"?action="+l+"&post_ID="+post_id+"&yit_metaboxes_nonce="+yit_metaboxes_nonce+"&toggle_id="+r+"&metabox_tab="+metabox_tab):url=yith_framework_fw_fields.admin_url+"?action="+l+"&tab="+d+"&toggle_id="+r,e.ajax({type:"POST",url:url,data:n,contentType:!1,processData:!1,success:function(i){t&&t.removeClass("show"),e(document).trigger("yith_save_toggle_element_done",[i,a])}})},e.fn.serializeToggleElement=function(){var t=e(this),i=new FormData,a=e(t).find(":input").serializeArray();return e.each(a,function(e,t){el_name=t.name,i.append(t.name,t.value)}),i},e.fn.formatToggleTitle=function(){var t=e(this),i=t.find(":input"),a=t.find("span.title").data("title_format"),l=t.find(".subtitle").data("subtitle_format"),n=new RegExp("[^%%]+(?=[%%])","g");if(void 0!==a)var o=a.match(n);if(void 0!==l)var r=l.match(n);e.each(i,function(t,i){void 0!==e(i).attr("id")&&($field_id=e(i).attr("id"),$field_array=$field_id.split("_"),$field_array.pop(),$field_id=$field_array.join("_"),$field_val=e(i).val(),null!=o&&void 0!==o&&-1!==o.indexOf($field_id)&&(a=a.replace("%%"+$field_id+"%%",$field_val)),null!=r&&void 0!==r&&-1!==r.indexOf($field_id)&&(l=l.replace("%%"+$field_id+"%%",$field_val)))}),""!==a&&t.find("span.title").html(a),""!==l&&t.find(".subtitle").html(l),e(document).trigger("yith-toggle-element-item-title",[t])},e.urlParam=function(e){var t=new RegExp("[?&]"+e+"=([^&#]*)").exec(window.location.search);return null!==t&&(t[1]||0)},e(document).on("click",".yith-toggle-title",function(t){var i=e(t.target),a=i.closest(".yith-toggle-row"),l=a.find(".yith-toggle-content");if(i.hasClass("yith-plugin-fw-onoff")||i.hasClass("yith-icon-drag"))return!1;a.is(".yith-toggle-row-opened")?l.slideUp(400):l.slideDown(400),a.toggleClass("yith-toggle-row-opened")}),e(document).on("click",".yith-add-box-button",function(t){t.preventDefault();var i=e(this),a=i.data("box_id"),l=i.data("closed_label"),n=i.data("opened_label"),o=i.closest(".yith-toggle_wrapper").attr("id");template=wp.template("yith-toggle-element-add-box-content-"+o),""!==a&&(e("#"+a).html(template({index:"box_id"})).slideToggle(),""!==l&&(i.html()===l?i.html(n).removeClass("closed"):i.html(l).addClass("closed")),e(document).trigger("yith_fields_init"),e(document).trigger("yith-add-box-button-toggle",[i]))}),e(document).on("click",".yith-add-box-buttons .yith-save-button",function(t){t.preventDefault();var i=e(this).parents(".yith-add-box"),a=e(this).closest(".yith-toggle_wrapper").attr("id"),l=i.find(".spinner"),n=e(this).parents(".toggle-element"),o=i.find(":input"),r=n.find(".yith-toggle-row").length,d=e('<input type="hidden">');d.val(r),e(document).trigger("yith-toggle-change-counter",[d,i]),r=d.val();var s=wp.template("yith-toggle-element-item-"+a),c=e(s({index:r}));l.addClass("show"),e.each(o,function(t,i){void 0!==e(i).attr("id")&&($field_id=e(i).attr("id"),$field_val=e(i).val(),"radio"==e(i).attr("type")?($field_id=$field_id.replace("new_",""),$field_id=$field_id.replace("-"+$field_val,""),$field_id=$field_id+"_dataindex-"+$field_val):$field_id=$field_id.replace("new_","")+"_"+r,e(i).is(":checked")&&e(c).find("#"+$field_id).prop("checked",!0),(e(i).hasClass("yith-post-search")||e(i).hasClass("yith-term-search"))&&e(c).find("#"+$field_id).html(e("#"+e(i).attr("id")).html()),e(c).find("#"+$field_id).val($field_val))}),e(c).formatToggleTitle();var g=e('<input type="hidden">').val("yes");e(document).trigger("yith-toggle-element-item-before-add",[i,c,g]);setTimeout(function(){if("yes"===g.val()){e(n).find(".yith-toggle-elements").append(c),e(i).find(".yith-plugin-fw-datepicker").datepicker("destroy"),e(i).html(""),e(i).prev(".yith-add-box-button").trigger("click"),n.saveToggleElement();setTimeout(function(){e(n).find(".highlight").removeClass("highlight")},2e3),e(document).trigger("yith_fields_init")}},1e3)}),e(document).on("click",".yith-toggle-row .yith-save-button",function(t){t.preventDefault();var i=e(this).closest(".toggle-element"),a=e(this).closest(".yith-toggle-row"),l=a.find(".spinner");a.formatToggleTitle();var n=e('<input type="hidden">').val("yes");e(document).trigger("yith-toggle-element-item-before-update",[i,a,n]),"yes"===n.val()&&(l.addClass("show"),i.saveToggleElement(l))}),e(document).on("click",".yith-toggle-row .yith-delete-button",function(t){t.preventDefault();var i=e(this).closest(".toggle-element");e(this).closest(".yith-toggle-row").remove(),i.saveToggleElement()}),e(document).on("click",".yith-toggle-onoff",function(t){t.preventDefault(),e(this).closest(".toggle-element").saveToggleElement()}),e(document).on("click",".yith-plugin-fw-radio input[type=radio]",function(){e(this).closest(".yith-plugin-fw-radio").val(e(this).val()).trigger("change")}),e(document).on("click",".yith-password-eye",function(){var t=e(this),i=e(this).closest(".yith-password-wrapper").find("input");"password"===i.attr("type")?(i.attr("type","text"),t.addClass("yith-password-eye-closed")):(i.attr("type","password"),t.removeClass("yith-password-eye-closed"))}),e(document.body).on("yith-plugin-fw-init-radio",function(){e(".yith-plugin-fw-radio:not(.yith-plugin-fw-radio--initialized)").each(function(){e(this).val(e(this).attr("value")),e(this).addClass("yith-plugin-fw-radio--initialized")})}).trigger("yith-plugin-fw-init-radio"),e(document).on("select2:open",function(t){e(t.target).closest(".yith-plugin-ui").length&&e(".select2-results").closest(".select2-container").addClass("yith-plugin-fw-select2-container")})}(jQuery);
1
+ !function(e){e(document).on("yith_fields_init",function(){var t=e(".yith-plugin-fw-datepicker"),i=e(".yith-plugin-fw-colorpicker"),a={imgPreviewHandler:".yith-plugin-fw-upload-img-preview",uploadButtonHandler:".yith-plugin-fw-upload-button",imgUrlHandler:".yith-plugin-fw-upload-img-url",resetButtonHandler:".yith-plugin-fw-upload-button-reset",imgUrl:e(".yith-plugin-fw-upload-img-url")},l=e(".add_media"),n={sliderWrapper:e(".yith-plugin-fw .image-gallery ul.slides-wrapper"),buttonHandler:".yith-plugin-fw .image-gallery-button"},o=e(".yith-plugin-fw-sidebar-layout"),r=e(".yith-plugin-fw .yith-plugin-fw-slider-container .ui-slider-horizontal"),d=e(".codemirror"),s=e(".yit-icons-manager-wrapper");e(".yith-plugin-ui td.forminp-checkbox");t.each(function(){var t=e(this).data();t.showAnim=!1,t.beforeShow=function(e,t){t.dpDiv.addClass("yith-plugin-fw-datepicker-div")},t.onClose=function(e,t){t.dpDiv.removeClass("yith-plugin-fw-datepicker-div")},e(this).datepicker(t)}),i.wpColorPicker({palettes:!1,width:200,mode:"hsl",clear:function(){var t=e(this);t.val(t.data("default-color")),t.change()}}),i.each(function(){var t=e(this).data("variations-label"),i=e(this).closest(".yith-plugin-fw-colorpicker-field-wrapper"),a=e(this).closest(".yith-single-colorpicker"),l=i.find(".wp-picker-input-wrap"),n=a.find(".wp-picker-input-wrap");if(l.length&&i.find("a.wp-color-result").attr("title",t),a.length&&a.find("a.wp-color-result").attr("title",t),!l.find(".wp-picker-clear-custom").length){var o=e("<span/>").attr({"class":"wp-picker-default-custom"});l.find(".wp-picker-default").wrap(o)}n.find(".wp-picker-clear-custom").length||(o=e("<span/>").attr({"class":"wp-picker-default-custom"}),n.find(".wp-picker-default").wrap(o))}),"undefined"!=typeof wp&&"undefined"!=typeof wp.media&&(a.imgUrl.change(function(){var t=e(this).val(),i=new RegExp("(http|ftp|https)://[a-zA-Z0-9@?^=%&amp;:/~+#-_.]*.(gif|jpg|jpeg|png|ico|svg)"),l=e(this).parent().find(a.imgPreviewHandler).first();l.length<1&&(l=e(this).parent().parent().find(a.imgPreviewHandler).first()),i.test(t)?l.html('<img src="'+t+'" style="max-width:100px; max-height:100px;" />'):l.html("")}).trigger("change"),e(document).on("click",a.uploadButtonHandler,function(t){t.preventDefault();var i,l=e(this).attr("id").replace(/-button$/,"");if(i)i.open();else{var n=[new wp.media.controller.Library({library:wp.media.query(),multiple:!1,title:"Choose Image",priority:20,filterable:"uploaded"})];(i=wp.media.frames.downloadable_file=wp.media({title:"Choose Image",library:{type:""},button:{text:"Choose Image"},multiple:!1,states:n})).on("select",function(){var t=i.state().get("selection").first().toJSON();e("#"+l).val(t.url),e("#"+l+"-yith-attachment-id")&&e("#"+l+"-yith-attachment-id").val(t.id),a.imgUrl.trigger("change")}),i.open()}}),e(document).on("click",a.resetButtonHandler,function(t){var i=e(this),l=i.attr("id"),n=i.attr("id").replace(/-button-reset$/,""),o=e("#"+l).data("default");e("#"+n).val(o),a.imgUrl.trigger("change")}));l.on("click",function(){}),"undefined"!=typeof wp&&"undefined"!=typeof wp.media&&(e(document).on("click",n.buttonHandler,function(t){var i=e(this),a=i.closest(".image-gallery"),l=a.find(".image_gallery_ids"),n=l.val(),o=a.find("ul.slides-wrapper"),r=wp.media.frames.image_gallery=wp.media({title:i.data("choose"),button:{text:i.data("update")},states:[new wp.media.controller.Library({title:i.data("choose"),filterable:"all",multiple:!0})]});r.on("select",function(){r.state().get("selection").map(function(e){(e=e.toJSON()).id&&(n=n?n+","+e.id:e.id,o.append('<li class="image" data-attachment_id="'+e.id+'"><img src="'+e.sizes.thumbnail.url+'"/><ul class="actions"><li><a href="#" class="delete" title="'+i.data("delete")+'">x</a></li></ul></li>'))}),l.val(n)}),r.open()}),n.sliderWrapper.each(function(){var t=e(this);t.sortable({items:"li.image",cursor:"move",scrollSensitivity:40,forcePlaceholderSize:!0,forceHelperSize:!1,helper:"clone",opacity:.65,start:function(e,t){t.item.css("background-color","#f6f6f6")},stop:function(e,t){t.item.removeAttr("style")},update:function(i,a){var l="";t.find("li.image").css("cursor","default").each(function(){var t=e(this).attr("data-attachment_id");l=l+t+","}),t.closest(".image-gallery").find(".image_gallery_ids").val(l)}})}),n.sliderWrapper.on("click","a.delete",function(){var t=e(this).closest(".image-gallery"),i=e(this).closest(".image-gallery ul.slides-wrapper"),a=t.find(".image_gallery_ids"),l="";e(this).closest("li.image").remove(),i.find("li.image").css("cursor","default").each(function(){var t=e(this).attr("data-attachment_id");l=l+t+","}),a.val(l)})),o.each(function(){e(this).find("img").on("click",function(){var t=e(this).closest(".yith-plugin-fw-sidebar-layout"),i=t.find(".yith-plugin-fw-sidebar-layout-sidebar-left-container"),a=t.find(".yith-plugin-fw-sidebar-layout-sidebar-right-container"),l=e(this).data("type");if(e(this).parent().children(":radio").attr("checked",!1),e(this).prev(":radio").attr("checked",!0),void 0!==l)switch(l){case"left":i.show(),a.hide();break;case"right":a.show(),i.hide();break;case"double":i.show(),a.show();break;default:i.hide(),a.hide()}})}),r.each(function(){var t=e(this).data("val"),i=e(this).data("min"),a=e(this).data("max"),l=e(this).data("step"),n=e(this).data("labels");e(this).slider({value:t,min:i,max:a,range:"min",step:l,create:function(){e(this).find(".ui-slider-handle").text(e(this).slider("value"))},slide:function(t,i){e(this).find("input").val(i.value),e(this).find(".ui-slider-handle").text(i.value),e(this).siblings(".feedback").find("strong").text(i.value+n)}})}),d.each(function(t,i){var a=CodeMirror.fromTextArea(i,{lineNumbers:1,mode:"javascript",showCursorWhenSelecting:!0});e(i).data("codemirrorInstance",a)}),e(document).on("click",".yith-plugin-fw-select-all",function(){e("#"+e(this).data("select-id")).find("option").prop("selected",!0).trigger("change")}),e(document).on("click",".yith-plugin-fw-deselect-all",function(){e("#"+e(this).data("select-id")).find("option").prop("selected",!1).trigger("change")}),s.each(function(){var t=e(this),i=t.find(".yit-icons-manager-icon-preview").first(),a=t.find(".yit-icons-manager-icon-text");t.on("click",".yit-icons-manager-list li",function(l){var n=e(l.target).closest("li"),o=n.data("font"),r=n.data("icon"),d=n.data("key"),s=n.data("name");i.attr("data-font",o),i.attr("data-icon",r),i.attr("data-key",d),i.attr("data-name",s),a.val(o+":"+s),t.find(".yit-icons-manager-list li").removeClass("active"),n.addClass("active")}),t.on("click",".yit-icons-manager-action-set-default",function(){t.find(".yit-icons-manager-list li.default").trigger("click")})}),e(document).on("click",".yith-plugin-fw-select-images__item",function(){var t=e(this),i=t.data("key"),a=t.closest(".yith-plugin-fw-select-images__wrapper"),l=a.find(".yith-plugin-fw-select-images__item"),n=a.find("select").first();n.length&&(n.val(i),l.removeClass("yith-plugin-fw-select-images__item--selected"),t.addClass("yith-plugin-fw-select-images__item--selected"))}),e(document.body).trigger("wc-enhanced-select-init"),e(document).find(".ui-sortable .yith-toggle-elements").sortable({cursor:"move",axis:"y",scrollSensitivity:40,forcePlaceholderSize:!0,helper:"clone",stop:function(t,i){var a=jQuery(".ui-sortable-handle"),l=0,n=new Array;for(l=0;l<a.length;l++)n[l]=e(a[l]).data("item_key");n.length>0&&e(this).closest(".toggle-element").saveToggleElement(null,n)}}),e(document.body).trigger("yith-framework-enhanced-select-init")}).trigger("yith_fields_init"),e(document).on("click",".yith-plugin-fw-onoff-container span",function(){var t=e(this).prev("input");t.prop("checked")?t.prop("checked",!1).attr("value","no").removeClass("onoffchecked"):t.prop("checked",!0).attr("value","yes").addClass("onoffchecked"),t.change()}),e.fn.saveToggleElement=function(t,i){var a=e(this),l="yith_plugin_fw_save_toggle_element",n=a.serializeToggleElement(),o=a.find(".yith-toggle_wrapper"),r=o.attr("id"),d=e.urlParam("tab");n.append("security",o.data("nonce")),void 0!==i&&i.length>0&&n.append("yith_toggle_elements_order_keys",i),a.closest(".metaboxes-tab.yith-plugin-ui").length?(l="yith_plugin_fw_save_toggle_element_metabox",post_id=e(this).closest("form#post").find("#post_ID").val(),yit_metaboxes_nonce=e(this).closest("form#post").find("#yit_metaboxes_nonce").val(),metabox_tab=e(this).closest(".tabs-panel").attr("id"),url=yith_framework_fw_fields.ajax_url+"?action="+l+"&post_ID="+post_id+"&yit_metaboxes_nonce="+yit_metaboxes_nonce+"&toggle_id="+r+"&metabox_tab="+metabox_tab):url=yith_framework_fw_fields.admin_url+"?action="+l+"&tab="+d+"&toggle_id="+r,e.ajax({type:"POST",url:url,data:n,contentType:!1,processData:!1,success:function(i){t&&t.removeClass("show"),e(document).trigger("yith_save_toggle_element_done",[i,a])}})},e.fn.serializeToggleElement=function(){var t=e(this),i=new FormData,a=e(t).find(":input").serializeArray();return e.each(a,function(e,t){el_name=t.name,i.append(t.name,t.value)}),i},e.fn.formatToggleTitle=function(){var t=e(this),i=t.find(":input"),a=t.find("span.title").data("title_format"),l=t.find(".subtitle").data("subtitle_format"),n=new RegExp("[^%%]+(?=[%%])","g");if(void 0!==a)var o=a.match(n);if(void 0!==l)var r=l.match(n);e.each(i,function(t,i){void 0!==e(i).attr("id")&&($field_id=e(i).attr("id"),$field_array=$field_id.split("_"),$field_array.pop(),$field_id=$field_array.join("_"),$field_val=e(i).val(),null!=o&&void 0!==o&&-1!==o.indexOf($field_id)&&(a=a.replace("%%"+$field_id+"%%",$field_val)),null!=r&&void 0!==r&&-1!==r.indexOf($field_id)&&(l=l.replace("%%"+$field_id+"%%",$field_val)))}),""!==a&&t.find("span.title").html(a),""!==l&&t.find(".subtitle").html(l),e(document).trigger("yith-toggle-element-item-title",[t])},e.urlParam=function(e){var t=new RegExp("[?&]"+e+"=([^&#]*)").exec(window.location.search);return null!==t&&(t[1]||0)},e(document).on("click",".yith-toggle-title",function(t){var i=e(t.target),a=i.closest(".yith-toggle-row"),l=a.find(".yith-toggle-content");if(i.hasClass("yith-plugin-fw-onoff")||i.hasClass("yith-icon-drag"))return!1;a.is(".yith-toggle-row-opened")?l.slideUp(400):l.slideDown(400),a.toggleClass("yith-toggle-row-opened")}),e(document).on("click",".yith-add-box-button",function(t){t.preventDefault();var i=e(this),a=i.data("box_id"),l=i.data("closed_label"),n=i.data("opened_label"),o=i.closest(".yith-toggle_wrapper").attr("id");template=wp.template("yith-toggle-element-add-box-content-"+o),""!==a&&(e("#"+a).html(template({index:"box_id"})).slideToggle(),""!==l&&(i.html()===l?i.html(n).removeClass("closed"):i.html(l).addClass("closed")),e(document).trigger("yith_fields_init"),e(document).trigger("yith-add-box-button-toggle",[i]))}),e(document).on("click",".yith-add-box-buttons .yith-save-button",function(t){t.preventDefault();var i=e(this).parents(".yith-add-box"),a=e(this).closest(".yith-toggle_wrapper").attr("id"),l=i.find(".spinner"),n=e(this).parents(".toggle-element"),o=i.find(":input"),r=n.find(".yith-toggle-row").length,d=e('<input type="hidden">');d.val(r),e(document).trigger("yith-toggle-change-counter",[d,i]),r=d.val();var s=wp.template("yith-toggle-element-item-"+a),c=e(s({index:r}));l.addClass("show"),e.each(o,function(t,i){void 0!==e(i).attr("id")&&($field_id=e(i).attr("id"),$field_val=e(i).val(),"radio"==e(i).attr("type")?($field_id=$field_id.replace("new_",""),$field_id=$field_id.replace("-"+$field_val,""),$field_id=$field_id+"_dataindex-"+$field_val):$field_id=$field_id.replace("new_","")+"_"+r,e(i).is(":checked")&&e(c).find("#"+$field_id).prop("checked",!0),(e(i).hasClass("yith-post-search")||e(i).hasClass("yith-term-search"))&&e(c).find("#"+$field_id).html(e("#"+e(i).attr("id")).html()),e(c).find("#"+$field_id).val($field_val))}),e(c).formatToggleTitle();var g=e('<input type="hidden">').val("yes");e(document).trigger("yith-toggle-element-item-before-add",[i,c,g]);setTimeout(function(){if("yes"===g.val()){e(n).find(".yith-toggle-elements").append(c),e(i).find(".yith-plugin-fw-datepicker").datepicker("destroy"),e(i).html(""),e(i).prev(".yith-add-box-button").trigger("click"),n.saveToggleElement();setTimeout(function(){e(n).find(".highlight").removeClass("highlight")},2e3),e(document).trigger("yith_fields_init")}},1e3)}),e(document).on("click",".yith-toggle-row .yith-save-button",function(t){t.preventDefault();var i=e(this).closest(".toggle-element"),a=e(this).closest(".yith-toggle-row"),l=a.find(".spinner");a.formatToggleTitle();var n=e('<input type="hidden">').val("yes");e(document).trigger("yith-toggle-element-item-before-update",[i,a,n]),"yes"===n.val()&&(l.addClass("show"),i.saveToggleElement(l))}),e(document).on("click",".yith-toggle-row .yith-delete-button",function(t){t.preventDefault();var i=e(this).closest(".toggle-element");e(this).closest(".yith-toggle-row").remove(),i.saveToggleElement()}),e(document).on("click",".yith-toggle-onoff",function(t){t.preventDefault(),e(this).closest(".toggle-element").saveToggleElement()}),e(document).on("click",".yith-plugin-fw-radio input[type=radio]",function(){e(this).closest(".yith-plugin-fw-radio").val(e(this).val()).trigger("change")}),e(document).on("click",".yith-password-eye",function(){var t=e(this),i=e(this).closest(".yith-password-wrapper").find("input");"password"===i.attr("type")?(i.attr("type","text"),t.addClass("yith-password-eye-closed")):(i.attr("type","password"),t.removeClass("yith-password-eye-closed"))}),e(document.body).on("yith-plugin-fw-init-radio",function(){e(".yith-plugin-fw-radio:not(.yith-plugin-fw-radio--initialized)").each(function(){e(this).val(e(this).attr("value")),e(this).addClass("yith-plugin-fw-radio--initialized")})}).trigger("yith-plugin-fw-init-radio"),e(document).on("select2:open",function(t){e(t.target).closest(".yith-plugin-ui").length&&e(".select2-results").closest(".select2-container").addClass("yith-plugin-fw-select2-container")})}(jQuery);
plugin-fw/assets/js/yith-gutenberg.js CHANGED
File without changes
plugin-fw/assets/js/yith-gutenberg.min.js CHANGED
File without changes
plugin-fw/assets/js/yith-system-info.js CHANGED
File without changes
plugin-fw/assets/js/yith-system-info.min.js CHANGED
File without changes
plugin-fw/assets/js/yith-update-plugins.js CHANGED
File without changes
plugin-fw/assets/js/yith-update-plugins.min.js CHANGED
File without changes
plugin-fw/init.php CHANGED
@@ -1,13 +1,13 @@
1
  <?php
2
  /**
3
  * Framework Name: YIT Plugin Framework
4
- * Version: 3.4.14
5
  * Author: YITH
6
  * Text Domain: yith-plugin-fw
7
  * Domain Path: /languages/
8
  *
9
  * @author Your Inspiration Themes
10
- * @version 3.4.14
11
  */
12
  /**
13
  * This file belongs to the YIT Plugin Framework.
1
  <?php
2
  /**
3
  * Framework Name: YIT Plugin Framework
4
+ * Version: 3.4.18
5
  * Author: YITH
6
  * Text Domain: yith-plugin-fw
7
  * Domain Path: /languages/
8
  *
9
  * @author Your Inspiration Themes
10
+ * @version 3.4.18
11
  */
12
  /**
13
  * This file belongs to the YIT Plugin Framework.
plugin-fw/languages/yith-plugin-fw-el.mo CHANGED
Binary file
plugin-fw/languages/yith-plugin-fw-el.po CHANGED
@@ -4,15 +4,15 @@ msgid ""
4
  msgstr ""
5
  "Project-Id-Version: YITH Plugin Starter 1.0.0 Plugin FW\n"
6
  "Report-Msgid-Bugs-To: YITH <plugins@yithemes.com>\n"
7
- "POT-Creation-Date: 2020-03-11 14:03:11+00:00\n"
8
- "PO-Revision-Date: 2020-03-18 18:44+0000\n"
9
  "Last-Translator: \n"
10
  "Language-Team: Your Inspiration Themes <info@yithemes.com>\n"
11
  "Language: el_GR\n"
12
  "MIME-Version: 1.0\n"
13
  "Content-Type: text/plain; charset=UTF-8\n"
14
  "Content-Transfer-Encoding: 8bit\n"
15
- "X-Generator: Poedit 2.3\n"
16
  "X-Poedit-KeywordsList: __;_e;_x:1,2c;_ex:1,2c;_n:1,2;_nx:1,2,4c;_n_noop:1,2;"
17
  "_nx_noop:1,2,3c;esc_attr__;esc_html__;esc_attr_e;esc_html_e;esc_attr_x:1,2c;"
18
  "esc_html_x:1,2c;_x;_ex\n"
@@ -211,16 +211,16 @@ msgstr ""
211
  msgid "Plugin Settings"
212
  msgstr "Ρυθμίσεις Προσθέτου"
213
 
214
- #: lib/yit-plugin-panel.php:425 lib/yit-plugin-panel.php:428
215
  msgid "How to install premium version"
216
  msgstr "Πώς να εγκαταστήσετε την προηγμένη έκδοση"
217
 
218
- #: lib/yit-plugin-panel.php:572 lib/yit-plugin-subpanel.php:151
219
  #: templates/panel/woocommerce/woocommerce-form.php:14
220
  msgid "Save Changes"
221
  msgstr "Αποθήκευση Αλλαγών"
222
 
223
- #: lib/yit-plugin-panel.php:575 lib/yit-plugin-subpanel.php:154
224
  #: templates/panel/woocommerce/woocommerce-form.php:17
225
  msgid ""
226
  "If you continue with this action, you will reset all options in this page."
@@ -228,70 +228,70 @@ msgstr ""
228
  "Αν συνεχίσετε με αυτή την ενέργεια θα επαναφέρετε όλες τις επιλογές στη "
229
  "σελίδα."
230
 
231
- #: lib/yit-plugin-panel.php:577 lib/yit-plugin-subpanel.php:156
232
  msgid "Reset to default"
233
  msgstr "Επαναφορά σε προεπιλεγμένο"
234
 
235
- #: lib/yit-plugin-panel.php:578 lib/yit-plugin-subpanel.php:157
236
  #: templates/panel/woocommerce/woocommerce-form.php:21
237
  msgid "Are you sure?"
238
  msgstr "Είστε σίγουρος;"
239
 
240
- #: lib/yit-plugin-panel.php:776
241
  msgid ""
242
  "The element you have entered already exists. Please, enter another name."
243
  msgstr "Το στοιχείο που εισάγατε υπάρχει ήδη. Παρακαλώ, εισάγετε άλλο όνομα."
244
 
245
- #: lib/yit-plugin-panel.php:777
246
  msgid "Settings saved"
247
  msgstr "Ρυθμίσεις αποθηκεύτηκαν"
248
 
249
- #: lib/yit-plugin-panel.php:778
250
  msgid "Settings reset"
251
  msgstr "Επαναφορά ρυθμίσεων"
252
 
253
- #: lib/yit-plugin-panel.php:779
254
  msgid "Element deleted correctly."
255
  msgstr "Το στοιχείο διαγράφηκε επιτυχώς."
256
 
257
- #: lib/yit-plugin-panel.php:780 lib/yit-plugin-panel.php:781
258
  msgid "Element updated correctly."
259
  msgstr "Το στοιχείο αναβαθμίστηκε επιτυχώς."
260
 
261
- #: lib/yit-plugin-panel.php:782
262
  msgid "Database imported correctly."
263
  msgstr "Επιτυχής εισαγωγή βάσης δεδομένων."
264
 
265
- #: lib/yit-plugin-panel.php:783
266
  msgid "An error has occurred during import. Please try again."
267
  msgstr "Παρουσιάστηκε σφάλμα κατά την εισαγωγή. Παρακαλώ προσπαθήστε ξανά."
268
 
269
- #: lib/yit-plugin-panel.php:784
270
  msgid "The added file is not valid."
271
  msgstr "Το προστιθέμενο αρχείο δεν είναι έγκυρο."
272
 
273
- #: lib/yit-plugin-panel.php:785
274
  msgid "Sorry, import is disabled."
275
  msgstr "Συγνώμη, η εισαγωγή είναι απενεργοποιημένη."
276
 
277
- #: lib/yit-plugin-panel.php:786
278
  msgid "Sorting successful."
279
  msgstr "Διαλογή επιτυχής."
280
 
281
- #: lib/yit-plugin-panel.php:1234
282
  msgid "We need your support"
283
  msgstr "Χρειαζόμαστε την υποστήριξή σας"
284
 
285
- #: lib/yit-plugin-panel.php:1235
286
  msgid "to keep updating and improving the plugin. Please,"
287
  msgstr ""
288
  "για να διατηρήσετε την ενημέρωση και τη βελτίωση του πρόσθετου. Παρακαλώ,"
289
 
290
- #: lib/yit-plugin-panel.php:1237
291
  msgid "help us by leaving a five-star rating"
292
  msgstr "βοηθήστε μας αφήνοντας μια βαθμολογία πέντε αστέρων"
293
 
294
- #: lib/yit-plugin-panel.php:1238
295
  msgid ":) Thanks!"
296
  msgstr ":) Ευχαριστώ!"
297
 
@@ -756,14 +756,14 @@ msgid "YITH"
756
  msgstr "YITH"
757
 
758
  #: templates/fields/onoff.php:24
759
- msgctxt "ON/OFF button: use MAX 3 characters!"
760
- msgid "ON"
761
- msgstr "ΕΝΕΡΓΟΠΟΙΗΣΗ"
762
 
763
  #: templates/fields/onoff.php:25
764
- msgctxt "ON/OFF button: use MAX 3 characters!"
765
- msgid "OFF"
766
- msgstr "ΑΠΕΝΕΡΓΟΠΟΙΗΣΗ"
767
 
768
  #: yit-plugin.php:83
769
  msgctxt "Plugin Row Meta"
@@ -789,3 +789,11 @@ msgstr "Premium έκδοση"
789
  msgctxt "Action links"
790
  msgid "Settings"
791
  msgstr "Ρυθμίσεις"
 
 
 
 
 
 
 
 
4
  msgstr ""
5
  "Project-Id-Version: YITH Plugin Starter 1.0.0 Plugin FW\n"
6
  "Report-Msgid-Bugs-To: YITH <plugins@yithemes.com>\n"
7
+ "POT-Creation-Date: 2020-04-15 07:12:29+00:00\n"
8
+ "PO-Revision-Date: 2020-04-06 10:45+0200\n"
9
  "Last-Translator: \n"
10
  "Language-Team: Your Inspiration Themes <info@yithemes.com>\n"
11
  "Language: el_GR\n"
12
  "MIME-Version: 1.0\n"
13
  "Content-Type: text/plain; charset=UTF-8\n"
14
  "Content-Transfer-Encoding: 8bit\n"
15
+ "X-Generator: Poedit 2.2.1\n"
16
  "X-Poedit-KeywordsList: __;_e;_x:1,2c;_ex:1,2c;_n:1,2;_nx:1,2,4c;_n_noop:1,2;"
17
  "_nx_noop:1,2,3c;esc_attr__;esc_html__;esc_attr_e;esc_html_e;esc_attr_x:1,2c;"
18
  "esc_html_x:1,2c;_x;_ex\n"
211
  msgid "Plugin Settings"
212
  msgstr "Ρυθμίσεις Προσθέτου"
213
 
214
+ #: lib/yit-plugin-panel.php:455 lib/yit-plugin-panel.php:458
215
  msgid "How to install premium version"
216
  msgstr "Πώς να εγκαταστήσετε την προηγμένη έκδοση"
217
 
218
+ #: lib/yit-plugin-panel.php:603 lib/yit-plugin-subpanel.php:151
219
  #: templates/panel/woocommerce/woocommerce-form.php:14
220
  msgid "Save Changes"
221
  msgstr "Αποθήκευση Αλλαγών"
222
 
223
+ #: lib/yit-plugin-panel.php:606 lib/yit-plugin-subpanel.php:154
224
  #: templates/panel/woocommerce/woocommerce-form.php:17
225
  msgid ""
226
  "If you continue with this action, you will reset all options in this page."
228
  "Αν συνεχίσετε με αυτή την ενέργεια θα επαναφέρετε όλες τις επιλογές στη "
229
  "σελίδα."
230
 
231
+ #: lib/yit-plugin-panel.php:608 lib/yit-plugin-subpanel.php:156
232
  msgid "Reset to default"
233
  msgstr "Επαναφορά σε προεπιλεγμένο"
234
 
235
+ #: lib/yit-plugin-panel.php:609 lib/yit-plugin-subpanel.php:157
236
  #: templates/panel/woocommerce/woocommerce-form.php:21
237
  msgid "Are you sure?"
238
  msgstr "Είστε σίγουρος;"
239
 
240
+ #: lib/yit-plugin-panel.php:807
241
  msgid ""
242
  "The element you have entered already exists. Please, enter another name."
243
  msgstr "Το στοιχείο που εισάγατε υπάρχει ήδη. Παρακαλώ, εισάγετε άλλο όνομα."
244
 
245
+ #: lib/yit-plugin-panel.php:808
246
  msgid "Settings saved"
247
  msgstr "Ρυθμίσεις αποθηκεύτηκαν"
248
 
249
+ #: lib/yit-plugin-panel.php:809
250
  msgid "Settings reset"
251
  msgstr "Επαναφορά ρυθμίσεων"
252
 
253
+ #: lib/yit-plugin-panel.php:810
254
  msgid "Element deleted correctly."
255
  msgstr "Το στοιχείο διαγράφηκε επιτυχώς."
256
 
257
+ #: lib/yit-plugin-panel.php:811 lib/yit-plugin-panel.php:812
258
  msgid "Element updated correctly."
259
  msgstr "Το στοιχείο αναβαθμίστηκε επιτυχώς."
260
 
261
+ #: lib/yit-plugin-panel.php:813
262
  msgid "Database imported correctly."
263
  msgstr "Επιτυχής εισαγωγή βάσης δεδομένων."
264
 
265
+ #: lib/yit-plugin-panel.php:814
266
  msgid "An error has occurred during import. Please try again."
267
  msgstr "Παρουσιάστηκε σφάλμα κατά την εισαγωγή. Παρακαλώ προσπαθήστε ξανά."
268
 
269
+ #: lib/yit-plugin-panel.php:815
270
  msgid "The added file is not valid."
271
  msgstr "Το προστιθέμενο αρχείο δεν είναι έγκυρο."
272
 
273
+ #: lib/yit-plugin-panel.php:816
274
  msgid "Sorry, import is disabled."
275
  msgstr "Συγνώμη, η εισαγωγή είναι απενεργοποιημένη."
276
 
277
+ #: lib/yit-plugin-panel.php:817
278
  msgid "Sorting successful."
279
  msgstr "Διαλογή επιτυχής."
280
 
281
+ #: lib/yit-plugin-panel.php:1265
282
  msgid "We need your support"
283
  msgstr "Χρειαζόμαστε την υποστήριξή σας"
284
 
285
+ #: lib/yit-plugin-panel.php:1266
286
  msgid "to keep updating and improving the plugin. Please,"
287
  msgstr ""
288
  "για να διατηρήσετε την ενημέρωση και τη βελτίωση του πρόσθετου. Παρακαλώ,"
289
 
290
+ #: lib/yit-plugin-panel.php:1268
291
  msgid "help us by leaving a five-star rating"
292
  msgstr "βοηθήστε μας αφήνοντας μια βαθμολογία πέντε αστέρων"
293
 
294
+ #: lib/yit-plugin-panel.php:1269
295
  msgid ":) Thanks!"
296
  msgstr ":) Ευχαριστώ!"
297
 
756
  msgstr "YITH"
757
 
758
  #: templates/fields/onoff.php:24
759
+ msgctxt "YES/NO button: use MAX 3 characters!"
760
+ msgid "YES"
761
+ msgstr "ΝΑΙ"
762
 
763
  #: templates/fields/onoff.php:25
764
+ msgctxt "YES/NO button: use MAX 3 characters!"
765
+ msgid "NO"
766
+ msgstr "ΟΧΙ"
767
 
768
  #: yit-plugin.php:83
769
  msgctxt "Plugin Row Meta"
789
  msgctxt "Action links"
790
  msgid "Settings"
791
  msgstr "Ρυθμίσεις"
792
+
793
+ #~ msgctxt "ON/OFF button: use MAX 3 characters!"
794
+ #~ msgid "ON"
795
+ #~ msgstr "ΕΝΕΡΓΟΠΟΙΗΣΗ"
796
+
797
+ #~ msgctxt "ON/OFF button: use MAX 3 characters!"
798
+ #~ msgid "OFF"
799
+ #~ msgstr "ΑΠΕΝΕΡΓΟΠΟΙΗΣΗ"
plugin-fw/languages/yith-plugin-fw-es_ES.mo CHANGED
Binary file
plugin-fw/languages/yith-plugin-fw-es_ES.po CHANGED
@@ -4,15 +4,15 @@ msgid ""
4
  msgstr ""
5
  "Project-Id-Version: YITH Plugin Starter 1.0.0 Plugin FW\n"
6
  "Report-Msgid-Bugs-To: YITH <plugins@yithemes.com>\n"
7
- "POT-Creation-Date: 2020-03-11 14:03:11+00:00\n"
8
- "PO-Revision-Date: 2020-01-14 10:23+0000\n"
9
  "Last-Translator: \n"
10
  "Language-Team: Your Inspiration Themes <info@yithemes.com>\n"
11
  "Language: es_ES\n"
12
  "MIME-Version: 1.0\n"
13
  "Content-Type: text/plain; charset=UTF-8\n"
14
  "Content-Transfer-Encoding: 8bit\n"
15
- "X-Generator: Poedit 1.8.12\n"
16
  "X-Poedit-KeywordsList: __;_e;_x:1,2c;_ex:1,2c;_n:1,2;_nx:1,2,4c;_n_noop:1,2;"
17
  "_nx_noop:1,2,3c;esc_attr__;esc_html__;esc_attr_e;esc_html_e;esc_attr_x:1,2c;"
18
  "esc_html_x:1,2c\n"
@@ -211,87 +211,87 @@ msgstr "Los cambios que has hecho se perderán si abandonas esta página."
211
  msgid "Plugin Settings"
212
  msgstr "Ajustes del plugin"
213
 
214
- #: lib/yit-plugin-panel.php:425 lib/yit-plugin-panel.php:428
215
  msgid "How to install premium version"
216
  msgstr "Cómo instalar la versión premium"
217
 
218
- #: lib/yit-plugin-panel.php:572 lib/yit-plugin-subpanel.php:151
219
  #: templates/panel/woocommerce/woocommerce-form.php:14
220
  msgid "Save Changes"
221
  msgstr "Guardar cambios"
222
 
223
- #: lib/yit-plugin-panel.php:575 lib/yit-plugin-subpanel.php:154
224
  #: templates/panel/woocommerce/woocommerce-form.php:17
225
  msgid ""
226
  "If you continue with this action, you will reset all options in this page."
227
  msgstr ""
228
  "Si sigues con esta acción, se reiniciarán todas las opciones en esta página."
229
 
230
- #: lib/yit-plugin-panel.php:577 lib/yit-plugin-subpanel.php:156
231
  msgid "Reset to default"
232
  msgstr "Restablecer a predeterminado"
233
 
234
- #: lib/yit-plugin-panel.php:578 lib/yit-plugin-subpanel.php:157
235
  #: templates/panel/woocommerce/woocommerce-form.php:21
236
  msgid "Are you sure?"
237
  msgstr "¿Estás seguro/a?"
238
 
239
- #: lib/yit-plugin-panel.php:776
240
  msgid ""
241
  "The element you have entered already exists. Please, enter another name."
242
  msgstr ""
243
  "El elemento que has introducido ya existe. Por favor, introduce otro nombre."
244
 
245
- #: lib/yit-plugin-panel.php:777
246
  msgid "Settings saved"
247
  msgstr "Ajustes guardados"
248
 
249
- #: lib/yit-plugin-panel.php:778
250
  msgid "Settings reset"
251
  msgstr "Ajustes reiniciados"
252
 
253
- #: lib/yit-plugin-panel.php:779
254
  msgid "Element deleted correctly."
255
  msgstr "Elemento borrado correctamente."
256
 
257
- #: lib/yit-plugin-panel.php:780 lib/yit-plugin-panel.php:781
258
  msgid "Element updated correctly."
259
  msgstr "Elemento actualizado correctamente."
260
 
261
- #: lib/yit-plugin-panel.php:782
262
  msgid "Database imported correctly."
263
  msgstr "Base de datos importada correctamente."
264
 
265
- #: lib/yit-plugin-panel.php:783
266
  msgid "An error has occurred during import. Please try again."
267
  msgstr ""
268
  "Ha ocurrido un error durante la importación. Por favor, inténtalo de nuevo."
269
 
270
- #: lib/yit-plugin-panel.php:784
271
  msgid "The added file is not valid."
272
  msgstr "El archivo añadido no es válido."
273
 
274
- #: lib/yit-plugin-panel.php:785
275
  msgid "Sorry, import is disabled."
276
  msgstr "Lo sentimos, la importación está deshabilitada."
277
 
278
- #: lib/yit-plugin-panel.php:786
279
  msgid "Sorting successful."
280
  msgstr "Clasificación fue realizada con éxito."
281
 
282
- #: lib/yit-plugin-panel.php:1234
283
  msgid "We need your support"
284
  msgstr "Necesitamos tu ayuda"
285
 
286
- #: lib/yit-plugin-panel.php:1235
287
  msgid "to keep updating and improving the plugin. Please,"
288
  msgstr "para seguir actualizando y mejora el plugin. Por favor,"
289
 
290
- #: lib/yit-plugin-panel.php:1237
291
  msgid "help us by leaving a five-star rating"
292
  msgstr "ayúdanos dejando una valoración de 5 estrellas"
293
 
294
- #: lib/yit-plugin-panel.php:1238
295
  msgid ":) Thanks!"
296
  msgstr ":) ¡Gracias!"
297
 
@@ -756,14 +756,14 @@ msgid "YITH"
756
  msgstr "YITH"
757
 
758
  #: templates/fields/onoff.php:24
759
- msgctxt "ON/OFF button: use MAX 3 characters!"
760
- msgid "ON"
761
- msgstr "ON"
762
 
763
  #: templates/fields/onoff.php:25
764
- msgctxt "ON/OFF button: use MAX 3 characters!"
765
- msgid "OFF"
766
- msgstr "OFF"
767
 
768
  #: yit-plugin.php:83
769
  msgctxt "Plugin Row Meta"
@@ -790,6 +790,14 @@ msgctxt "Action links"
790
  msgid "Settings"
791
  msgstr "Ajustes"
792
 
 
 
 
 
 
 
 
 
793
  #~ msgid "An unexpected error occurred, please try again later. Thanks!"
794
  #~ msgstr ""
795
  #~ "Ha ocurrido un error inesperado, por favor, inténtalo de nuevo más tarde. "
4
  msgstr ""
5
  "Project-Id-Version: YITH Plugin Starter 1.0.0 Plugin FW\n"
6
  "Report-Msgid-Bugs-To: YITH <plugins@yithemes.com>\n"
7
+ "POT-Creation-Date: 2020-04-15 07:12:29+00:00\n"
8
+ "PO-Revision-Date: 2020-04-06 10:45+0200\n"
9
  "Last-Translator: \n"
10
  "Language-Team: Your Inspiration Themes <info@yithemes.com>\n"
11
  "Language: es_ES\n"
12
  "MIME-Version: 1.0\n"
13
  "Content-Type: text/plain; charset=UTF-8\n"
14
  "Content-Transfer-Encoding: 8bit\n"
15
+ "X-Generator: Poedit 2.2.1\n"
16
  "X-Poedit-KeywordsList: __;_e;_x:1,2c;_ex:1,2c;_n:1,2;_nx:1,2,4c;_n_noop:1,2;"
17
  "_nx_noop:1,2,3c;esc_attr__;esc_html__;esc_attr_e;esc_html_e;esc_attr_x:1,2c;"
18
  "esc_html_x:1,2c\n"
211
  msgid "Plugin Settings"
212
  msgstr "Ajustes del plugin"
213
 
214
+ #: lib/yit-plugin-panel.php:455 lib/yit-plugin-panel.php:458
215
  msgid "How to install premium version"
216
  msgstr "Cómo instalar la versión premium"
217
 
218
+ #: lib/yit-plugin-panel.php:603 lib/yit-plugin-subpanel.php:151
219
  #: templates/panel/woocommerce/woocommerce-form.php:14
220
  msgid "Save Changes"
221
  msgstr "Guardar cambios"
222
 
223
+ #: lib/yit-plugin-panel.php:606 lib/yit-plugin-subpanel.php:154
224
  #: templates/panel/woocommerce/woocommerce-form.php:17
225
  msgid ""
226
  "If you continue with this action, you will reset all options in this page."
227
  msgstr ""
228
  "Si sigues con esta acción, se reiniciarán todas las opciones en esta página."
229
 
230
+ #: lib/yit-plugin-panel.php:608 lib/yit-plugin-subpanel.php:156
231
  msgid "Reset to default"
232
  msgstr "Restablecer a predeterminado"
233
 
234
+ #: lib/yit-plugin-panel.php:609 lib/yit-plugin-subpanel.php:157
235
  #: templates/panel/woocommerce/woocommerce-form.php:21
236
  msgid "Are you sure?"
237
  msgstr "¿Estás seguro/a?"
238
 
239
+ #: lib/yit-plugin-panel.php:807
240
  msgid ""
241
  "The element you have entered already exists. Please, enter another name."
242
  msgstr ""
243
  "El elemento que has introducido ya existe. Por favor, introduce otro nombre."
244
 
245
+ #: lib/yit-plugin-panel.php:808
246
  msgid "Settings saved"
247
  msgstr "Ajustes guardados"
248
 
249
+ #: lib/yit-plugin-panel.php:809
250
  msgid "Settings reset"
251
  msgstr "Ajustes reiniciados"
252
 
253
+ #: lib/yit-plugin-panel.php:810
254
  msgid "Element deleted correctly."
255
  msgstr "Elemento borrado correctamente."
256
 
257
+ #: lib/yit-plugin-panel.php:811 lib/yit-plugin-panel.php:812
258
  msgid "Element updated correctly."
259
  msgstr "Elemento actualizado correctamente."
260
 
261
+ #: lib/yit-plugin-panel.php:813
262
  msgid "Database imported correctly."
263
  msgstr "Base de datos importada correctamente."
264
 
265
+ #: lib/yit-plugin-panel.php:814
266
  msgid "An error has occurred during import. Please try again."
267
  msgstr ""
268
  "Ha ocurrido un error durante la importación. Por favor, inténtalo de nuevo."
269
 
270
+ #: lib/yit-plugin-panel.php:815
271
  msgid "The added file is not valid."
272
  msgstr "El archivo añadido no es válido."
273
 
274
+ #: lib/yit-plugin-panel.php:816
275
  msgid "Sorry, import is disabled."
276
  msgstr "Lo sentimos, la importación está deshabilitada."
277
 
278
+ #: lib/yit-plugin-panel.php:817
279
  msgid "Sorting successful."
280
  msgstr "Clasificación fue realizada con éxito."
281
 
282
+ #: lib/yit-plugin-panel.php:1265
283
  msgid "We need your support"
284
  msgstr "Necesitamos tu ayuda"
285
 
286
+ #: lib/yit-plugin-panel.php:1266
287
  msgid "to keep updating and improving the plugin. Please,"
288
  msgstr "para seguir actualizando y mejora el plugin. Por favor,"
289
 
290
+ #: lib/yit-plugin-panel.php:1268
291
  msgid "help us by leaving a five-star rating"
292
  msgstr "ayúdanos dejando una valoración de 5 estrellas"
293
 
294
+ #: lib/yit-plugin-panel.php:1269
295
  msgid ":) Thanks!"
296
  msgstr ":) ¡Gracias!"
297
 
756
  msgstr "YITH"
757
 
758
  #: templates/fields/onoff.php:24
759
+ msgctxt "YES/NO button: use MAX 3 characters!"
760
+ msgid "YES"
761
+ msgstr "SI"
762
 
763
  #: templates/fields/onoff.php:25
764
+ msgctxt "YES/NO button: use MAX 3 characters!"
765
+ msgid "NO"
766
+ msgstr "NO"
767
 
768
  #: yit-plugin.php:83
769
  msgctxt "Plugin Row Meta"
790
  msgid "Settings"
791
  msgstr "Ajustes"
792
 
793
+ #~ msgctxt "ON/OFF button: use MAX 3 characters!"
794
+ #~ msgid "ON"
795
+ #~ msgstr "ON"
796
+
797
+ #~ msgctxt "ON/OFF button: use MAX 3 characters!"
798
+ #~ msgid "OFF"
799
+ #~ msgstr "OFF"
800
+
801
  #~ msgid "An unexpected error occurred, please try again later. Thanks!"
802
  #~ msgstr ""
803
  #~ "Ha ocurrido un error inesperado, por favor, inténtalo de nuevo más tarde. "
plugin-fw/languages/yith-plugin-fw-it_IT.mo CHANGED
Binary file
plugin-fw/languages/yith-plugin-fw-it_IT.po CHANGED
@@ -4,15 +4,15 @@ msgid ""
4
  msgstr ""
5
  "Project-Id-Version: YITH Plugin Starter 1.0.0 Plugin FW\n"
6
  "Report-Msgid-Bugs-To: YITH <plugins@yithemes.com>\n"
7
- "POT-Creation-Date: 2020-03-11 14:03:11+00:00\n"
8
- "PO-Revision-Date: 2020-01-10 16:23+0100\n"
9
  "Last-Translator: \n"
10
  "Language-Team: YIThemes <plugins@yithemes.com>\n"
11
  "Language: it_IT\n"
12
  "MIME-Version: 1.0\n"
13
  "Content-Type: text/plain; charset=UTF-8\n"
14
  "Content-Transfer-Encoding: 8bit\n"
15
- "X-Generator: Poedit 2.2.3\n"
16
  "X-Poedit-KeywordsList: __;_e;_x:1,2c;_ex:1,2c;_n:1,2;_nx:1,2,4c;_n_noop:1,2;"
17
  "_nx_noop:1,2,3c;esc_attr__;esc_html__;esc_attr_e;esc_html_e;esc_attr_x:1,2c;"
18
  "esc_html_x:1,2c\n"
@@ -210,16 +210,16 @@ msgstr "Perderai tutti i cambiamenti effettuati se lasci questa pagina."
210
  msgid "Plugin Settings"
211
  msgstr "Impostazioni plugin"
212
 
213
- #: lib/yit-plugin-panel.php:425 lib/yit-plugin-panel.php:428
214
  msgid "How to install premium version"
215
  msgstr "Come installare la versione premium"
216
 
217
- #: lib/yit-plugin-panel.php:572 lib/yit-plugin-subpanel.php:151
218
  #: templates/panel/woocommerce/woocommerce-form.php:14
219
  msgid "Save Changes"
220
  msgstr "Salva modifiche"
221
 
222
- #: lib/yit-plugin-panel.php:575 lib/yit-plugin-subpanel.php:154
223
  #: templates/panel/woocommerce/woocommerce-form.php:17
224
  msgid ""
225
  "If you continue with this action, you will reset all options in this page."
@@ -227,69 +227,69 @@ msgstr ""
227
  "Se prosegui con questa azione, tutte le opzioni di questa pagina saranno "
228
  "reimpostate."
229
 
230
- #: lib/yit-plugin-panel.php:577 lib/yit-plugin-subpanel.php:156
231
  msgid "Reset to default"
232
  msgstr "Ripristina configurazione predefinita"
233
 
234
- #: lib/yit-plugin-panel.php:578 lib/yit-plugin-subpanel.php:157
235
  #: templates/panel/woocommerce/woocommerce-form.php:21
236
  msgid "Are you sure?"
237
  msgstr "Sei sicuro?"
238
 
239
- #: lib/yit-plugin-panel.php:776
240
  msgid ""
241
  "The element you have entered already exists. Please, enter another name."
242
  msgstr "L'elemento inserito esiste già. Per favore, inserisci un altro nome."
243
 
244
- #: lib/yit-plugin-panel.php:777
245
  msgid "Settings saved"
246
  msgstr "Impostazioni salvate"
247
 
248
- #: lib/yit-plugin-panel.php:778
249
  msgid "Settings reset"
250
  msgstr "Impostazioni azzerate"
251
 
252
- #: lib/yit-plugin-panel.php:779
253
  msgid "Element deleted correctly."
254
  msgstr "Elemento rimosso correttamente."
255
 
256
- #: lib/yit-plugin-panel.php:780 lib/yit-plugin-panel.php:781
257
  msgid "Element updated correctly."
258
  msgstr "Elemento aggiornato correttamente."
259
 
260
- #: lib/yit-plugin-panel.php:782
261
  msgid "Database imported correctly."
262
  msgstr "Database importato correttamente."
263
 
264
- #: lib/yit-plugin-panel.php:783
265
  msgid "An error has occurred during import. Please try again."
266
  msgstr "Si è verificato un errore durante l'importazione. Prova di nuovo."
267
 
268
- #: lib/yit-plugin-panel.php:784
269
  msgid "The added file is not valid."
270
  msgstr "Il file aggiunto non è valido."
271
 
272
- #: lib/yit-plugin-panel.php:785
273
  msgid "Sorry, import is disabled."
274
  msgstr "Ci dispiace, l'importazione è disabilitata."
275
 
276
- #: lib/yit-plugin-panel.php:786
277
  msgid "Sorting successful."
278
  msgstr "Ordinamento effettuato con successo."
279
 
280
- #: lib/yit-plugin-panel.php:1234
281
  msgid "We need your support"
282
  msgstr "Abbiamo bisogno del tuo sostegno"
283
 
284
- #: lib/yit-plugin-panel.php:1235
285
  msgid "to keep updating and improving the plugin. Please,"
286
  msgstr "per poter continuare ad aggiornare e migliorare il plugin."
287
 
288
- #: lib/yit-plugin-panel.php:1237
289
  msgid "help us by leaving a five-star rating"
290
  msgstr "Puoi darci una mano lasciando una recensione a 5 stelle"
291
 
292
- #: lib/yit-plugin-panel.php:1238
293
  msgid ":) Thanks!"
294
  msgstr ":) Grazie!"
295
 
@@ -752,13 +752,13 @@ msgid "YITH"
752
  msgstr "YITH"
753
 
754
  #: templates/fields/onoff.php:24
755
- msgctxt "ON/OFF button: use MAX 3 characters!"
756
- msgid "ON"
757
- msgstr ""
758
 
759
  #: templates/fields/onoff.php:25
760
- msgctxt "ON/OFF button: use MAX 3 characters!"
761
- msgid "OFF"
762
  msgstr "NO"
763
 
764
  #: yit-plugin.php:83
@@ -786,6 +786,14 @@ msgctxt "Action links"
786
  msgid "Settings"
787
  msgstr "Impostazioni"
788
 
 
 
 
 
 
 
 
 
789
  #~ msgid "An unexpected error occurred, please try again later. Thanks!"
790
  #~ msgstr "Si è verificato un errore inaspettato, riprova più tardi. Grazie!"
791
 
4
  msgstr ""
5
  "Project-Id-Version: YITH Plugin Starter 1.0.0 Plugin FW\n"
6
  "Report-Msgid-Bugs-To: YITH <plugins@yithemes.com>\n"
7
+ "POT-Creation-Date: 2020-04-15 07:12:29+00:00\n"
8
+ "PO-Revision-Date: 2020-04-06 10:46+0200\n"
9
  "Last-Translator: \n"
10
  "Language-Team: YIThemes <plugins@yithemes.com>\n"
11
  "Language: it_IT\n"
12
  "MIME-Version: 1.0\n"
13
  "Content-Type: text/plain; charset=UTF-8\n"
14
  "Content-Transfer-Encoding: 8bit\n"
15
+ "X-Generator: Poedit 2.2.1\n"
16
  "X-Poedit-KeywordsList: __;_e;_x:1,2c;_ex:1,2c;_n:1,2;_nx:1,2,4c;_n_noop:1,2;"
17
  "_nx_noop:1,2,3c;esc_attr__;esc_html__;esc_attr_e;esc_html_e;esc_attr_x:1,2c;"
18
  "esc_html_x:1,2c\n"
210
  msgid "Plugin Settings"
211
  msgstr "Impostazioni plugin"
212
 
213
+ #: lib/yit-plugin-panel.php:455 lib/yit-plugin-panel.php:458
214
  msgid "How to install premium version"
215
  msgstr "Come installare la versione premium"
216
 
217
+ #: lib/yit-plugin-panel.php:603 lib/yit-plugin-subpanel.php:151
218
  #: templates/panel/woocommerce/woocommerce-form.php:14
219
  msgid "Save Changes"
220
  msgstr "Salva modifiche"
221
 
222
+ #: lib/yit-plugin-panel.php:606 lib/yit-plugin-subpanel.php:154
223
  #: templates/panel/woocommerce/woocommerce-form.php:17
224
  msgid ""
225
  "If you continue with this action, you will reset all options in this page."
227
  "Se prosegui con questa azione, tutte le opzioni di questa pagina saranno "
228
  "reimpostate."
229
 
230
+ #: lib/yit-plugin-panel.php:608 lib/yit-plugin-subpanel.php:156
231
  msgid "Reset to default"
232
  msgstr "Ripristina configurazione predefinita"
233
 
234
+ #: lib/yit-plugin-panel.php:609 lib/yit-plugin-subpanel.php:157
235
  #: templates/panel/woocommerce/woocommerce-form.php:21
236
  msgid "Are you sure?"
237
  msgstr "Sei sicuro?"
238
 
239
+ #: lib/yit-plugin-panel.php:807
240
  msgid ""
241
  "The element you have entered already exists. Please, enter another name."
242
  msgstr "L'elemento inserito esiste già. Per favore, inserisci un altro nome."
243
 
244
+ #: lib/yit-plugin-panel.php:808
245
  msgid "Settings saved"
246
  msgstr "Impostazioni salvate"
247
 
248
+ #: lib/yit-plugin-panel.php:809
249
  msgid "Settings reset"
250
  msgstr "Impostazioni azzerate"
251
 
252
+ #: lib/yit-plugin-panel.php:810
253
  msgid "Element deleted correctly."
254
  msgstr "Elemento rimosso correttamente."
255
 
256
+ #: lib/yit-plugin-panel.php:811 lib/yit-plugin-panel.php:812
257
  msgid "Element updated correctly."
258
  msgstr "Elemento aggiornato correttamente."
259
 
260
+ #: lib/yit-plugin-panel.php:813
261
  msgid "Database imported correctly."
262
  msgstr "Database importato correttamente."
263
 
264
+ #: lib/yit-plugin-panel.php:814
265
  msgid "An error has occurred during import. Please try again."
266
  msgstr "Si è verificato un errore durante l'importazione. Prova di nuovo."
267
 
268
+ #: lib/yit-plugin-panel.php:815
269
  msgid "The added file is not valid."
270
  msgstr "Il file aggiunto non è valido."
271
 
272
+ #: lib/yit-plugin-panel.php:816
273
  msgid "Sorry, import is disabled."
274
  msgstr "Ci dispiace, l'importazione è disabilitata."
275
 
276
+ #: lib/yit-plugin-panel.php:817
277
  msgid "Sorting successful."
278
  msgstr "Ordinamento effettuato con successo."
279
 
280
+ #: lib/yit-plugin-panel.php:1265
281
  msgid "We need your support"
282
  msgstr "Abbiamo bisogno del tuo sostegno"
283
 
284
+ #: lib/yit-plugin-panel.php:1266
285
  msgid "to keep updating and improving the plugin. Please,"
286
  msgstr "per poter continuare ad aggiornare e migliorare il plugin."
287
 
288
+ #: lib/yit-plugin-panel.php:1268
289
  msgid "help us by leaving a five-star rating"
290
  msgstr "Puoi darci una mano lasciando una recensione a 5 stelle"
291
 
292
+ #: lib/yit-plugin-panel.php:1269
293
  msgid ":) Thanks!"
294
  msgstr ":) Grazie!"
295
 
752
  msgstr "YITH"
753
 
754
  #: templates/fields/onoff.php:24
755
+ msgctxt "YES/NO button: use MAX 3 characters!"
756
+ msgid "YES"
757
+ msgstr "SI"
758
 
759
  #: templates/fields/onoff.php:25
760
+ msgctxt "YES/NO button: use MAX 3 characters!"
761
+ msgid "NO"
762
  msgstr "NO"
763
 
764
  #: yit-plugin.php:83
786
  msgid "Settings"
787
  msgstr "Impostazioni"
788
 
789
+ #~ msgctxt "ON/OFF button: use MAX 3 characters!"
790
+ #~ msgid "ON"
791
+ #~ msgstr "SÌ"
792
+
793
+ #~ msgctxt "ON/OFF button: use MAX 3 characters!"
794
+ #~ msgid "OFF"
795
+ #~ msgstr "NO"
796
+
797
  #~ msgid "An unexpected error occurred, please try again later. Thanks!"
798
  #~ msgstr "Si è verificato un errore inaspettato, riprova più tardi. Grazie!"
799
 
plugin-fw/languages/yith-plugin-fw-nl_NL.mo CHANGED
Binary file
plugin-fw/languages/yith-plugin-fw-nl_NL.po CHANGED
@@ -4,15 +4,15 @@ msgid ""
4
  msgstr ""
5
  "Project-Id-Version: YITH Plugin Starter 1.0.0 Plugin FW\n"
6
  "Report-Msgid-Bugs-To: YITH <plugins@yithemes.com>\n"
7
- "POT-Creation-Date: 2020-03-11 14:03:11+00:00\n"
8
- "PO-Revision-Date: 2020-01-14 10:29+0000\n"
9
  "Last-Translator: \n"
10
  "Language-Team: Your Inspiration Themes <info@yithemes.com>\n"
11
  "Language: nl\n"
12
  "MIME-Version: 1.0\n"
13
  "Content-Type: text/plain; charset=UTF-8\n"
14
  "Content-Transfer-Encoding: 8bit\n"
15
- "X-Generator: Poedit 1.8.12\n"
16
  "X-Poedit-KeywordsList: __;_e;_x:1,2c;_ex:1,2c;_n:1,2;_nx:1,2,4c;_n_noop:1,2;"
17
  "_nx_noop:1,2,3c;esc_attr__;esc_html__;esc_attr_e;esc_html_e;esc_attr_x:1,2c;"
18
  "esc_html_x:1,2c;_x;_ex\n"
@@ -214,84 +214,84 @@ msgstr "Als je deze pagina verlaat zullen alle wijzigingen verloren gaan."
214
  msgid "Plugin Settings"
215
  msgstr "Plugin instellingen"
216
 
217
- #: lib/yit-plugin-panel.php:425 lib/yit-plugin-panel.php:428
218
  msgid "How to install premium version"
219
  msgstr "Hoe installeer ik de premium versie"
220
 
221
- #: lib/yit-plugin-panel.php:572 lib/yit-plugin-subpanel.php:151
222
  #: templates/panel/woocommerce/woocommerce-form.php:14
223
  msgid "Save Changes"
224
  msgstr "Wijzigingen opslaan"
225
 
226
- #: lib/yit-plugin-panel.php:575 lib/yit-plugin-subpanel.php:154
227
  #: templates/panel/woocommerce/woocommerce-form.php:17
228
  msgid ""
229
  "If you continue with this action, you will reset all options in this page."
230
  msgstr "Als u deze actie voortzet, zult u alle opties op deze pagina resetten."
231
 
232
- #: lib/yit-plugin-panel.php:577 lib/yit-plugin-subpanel.php:156
233
  msgid "Reset to default"
234
  msgstr "Resetten naar standaard"
235
 
236
- #: lib/yit-plugin-panel.php:578 lib/yit-plugin-subpanel.php:157
237
  #: templates/panel/woocommerce/woocommerce-form.php:21
238
  msgid "Are you sure?"
239
  msgstr "Weet u het zeker?"
240
 
241
- #: lib/yit-plugin-panel.php:776
242
  msgid ""
243
  "The element you have entered already exists. Please, enter another name."
244
  msgstr "Het element dat u hebt ingevoerd bestaat al. Voer een andere naam in."
245
 
246
- #: lib/yit-plugin-panel.php:777
247
  msgid "Settings saved"
248
  msgstr "Instellingen opgeslagen"
249
 
250
- #: lib/yit-plugin-panel.php:778
251
  msgid "Settings reset"
252
  msgstr "Instellingen resetten"
253
 
254
- #: lib/yit-plugin-panel.php:779
255
  msgid "Element deleted correctly."
256
  msgstr "Element succesvol verwijderd."
257
 
258
- #: lib/yit-plugin-panel.php:780 lib/yit-plugin-panel.php:781
259
  msgid "Element updated correctly."
260
  msgstr "Element juist bijgewerkt."
261
 
262
- #: lib/yit-plugin-panel.php:782
263
  msgid "Database imported correctly."
264
  msgstr "Database juist geïmporteerd."
265
 
266
- #: lib/yit-plugin-panel.php:783
267
  msgid "An error has occurred during import. Please try again."
268
  msgstr "Er is een fout opgetreden tijdens importeren. Probeer opnieuw."
269
 
270
- #: lib/yit-plugin-panel.php:784
271
  msgid "The added file is not valid."
272
  msgstr "Het toegevoegde bestand is ongeldig."
273
 
274
- #: lib/yit-plugin-panel.php:785
275
  msgid "Sorry, import is disabled."
276
  msgstr "Sorry, importeren is uitgeschakeld."
277
 
278
- #: lib/yit-plugin-panel.php:786
279
  msgid "Sorting successful."
280
  msgstr "Sorteren succesvol."
281
 
282
- #: lib/yit-plugin-panel.php:1234
283
  msgid "We need your support"
284
  msgstr "We hebben uw hulp nodig"
285
 
286
- #: lib/yit-plugin-panel.php:1235
287
  msgid "to keep updating and improving the plugin. Please,"
288
  msgstr "om de plugin te blijven updaten en verbeteren. A.u.b.,"
289
 
290
- #: lib/yit-plugin-panel.php:1237
291
  msgid "help us by leaving a five-star rating"
292
  msgstr "help ons door een vijf-sterenbeoordeling achter te laten"
293
 
294
- #: lib/yit-plugin-panel.php:1238
295
  msgid ":) Thanks!"
296
  msgstr ":) Bedankt!"
297
 
@@ -754,14 +754,14 @@ msgid "YITH"
754
  msgstr "YITH"
755
 
756
  #: templates/fields/onoff.php:24
757
- msgctxt "ON/OFF button: use MAX 3 characters!"
758
- msgid "ON"
759
- msgstr "AAN"
760
 
761
  #: templates/fields/onoff.php:25
762
- msgctxt "ON/OFF button: use MAX 3 characters!"
763
- msgid "OFF"
764
- msgstr "UIT"
765
 
766
  #: yit-plugin.php:83
767
  msgctxt "Plugin Row Meta"
@@ -788,6 +788,14 @@ msgctxt "Action links"
788
  msgid "Settings"
789
  msgstr "Instellingen"
790
 
 
 
 
 
 
 
 
 
791
  #~ msgid "An unexpected error occurred, please try again later. Thanks!"
792
  #~ msgstr ""
793
  #~ "Een onverwachte fout heeft zich voorgedaan, probeer het later nog eens!"
4
  msgstr ""
5
  "Project-Id-Version: YITH Plugin Starter 1.0.0 Plugin FW\n"
6
  "Report-Msgid-Bugs-To: YITH <plugins@yithemes.com>\n"
7
+ "POT-Creation-Date: 2020-04-15 07:12:29+00:00\n"
8
+ "PO-Revision-Date: 2020-04-06 15:05+0200\n"
9
  "Last-Translator: \n"
10
  "Language-Team: Your Inspiration Themes <info@yithemes.com>\n"
11
  "Language: nl\n"
12
  "MIME-Version: 1.0\n"
13
  "Content-Type: text/plain; charset=UTF-8\n"
14
  "Content-Transfer-Encoding: 8bit\n"
15
+ "X-Generator: Poedit 2.2.1\n"
16
  "X-Poedit-KeywordsList: __;_e;_x:1,2c;_ex:1,2c;_n:1,2;_nx:1,2,4c;_n_noop:1,2;"
17
  "_nx_noop:1,2,3c;esc_attr__;esc_html__;esc_attr_e;esc_html_e;esc_attr_x:1,2c;"
18
  "esc_html_x:1,2c;_x;_ex\n"
214
  msgid "Plugin Settings"
215
  msgstr "Plugin instellingen"
216
 
217
+ #: lib/yit-plugin-panel.php:455 lib/yit-plugin-panel.php:458
218
  msgid "How to install premium version"
219
  msgstr "Hoe installeer ik de premium versie"
220
 
221
+ #: lib/yit-plugin-panel.php:603 lib/yit-plugin-subpanel.php:151
222
  #: templates/panel/woocommerce/woocommerce-form.php:14
223
  msgid "Save Changes"
224
  msgstr "Wijzigingen opslaan"
225
 
226
+ #: lib/yit-plugin-panel.php:606 lib/yit-plugin-subpanel.php:154
227
  #: templates/panel/woocommerce/woocommerce-form.php:17
228
  msgid ""
229
  "If you continue with this action, you will reset all options in this page."
230
  msgstr "Als u deze actie voortzet, zult u alle opties op deze pagina resetten."
231
 
232
+ #: lib/yit-plugin-panel.php:608 lib/yit-plugin-subpanel.php:156
233
  msgid "Reset to default"
234
  msgstr "Resetten naar standaard"
235
 
236
+ #: lib/yit-plugin-panel.php:609 lib/yit-plugin-subpanel.php:157
237
  #: templates/panel/woocommerce/woocommerce-form.php:21
238
  msgid "Are you sure?"
239
  msgstr "Weet u het zeker?"
240
 
241
+ #: lib/yit-plugin-panel.php:807
242
  msgid ""
243
  "The element you have entered already exists. Please, enter another name."
244
  msgstr "Het element dat u hebt ingevoerd bestaat al. Voer een andere naam in."
245
 
246
+ #: lib/yit-plugin-panel.php:808
247
  msgid "Settings saved"
248
  msgstr "Instellingen opgeslagen"
249
 
250
+ #: lib/yit-plugin-panel.php:809
251
  msgid "Settings reset"
252
  msgstr "Instellingen resetten"
253
 
254
+ #: lib/yit-plugin-panel.php:810
255
  msgid "Element deleted correctly."
256
  msgstr "Element succesvol verwijderd."
257
 
258
+ #: lib/yit-plugin-panel.php:811 lib/yit-plugin-panel.php:812
259
  msgid "Element updated correctly."
260
  msgstr "Element juist bijgewerkt."
261
 
262
+ #: lib/yit-plugin-panel.php:813
263
  msgid "Database imported correctly."
264
  msgstr "Database juist geïmporteerd."
265
 
266
+ #: lib/yit-plugin-panel.php:814
267
  msgid "An error has occurred during import. Please try again."
268
  msgstr "Er is een fout opgetreden tijdens importeren. Probeer opnieuw."
269
 
270
+ #: lib/yit-plugin-panel.php:815
271
  msgid "The added file is not valid."
272
  msgstr "Het toegevoegde bestand is ongeldig."
273
 
274
+ #: lib/yit-plugin-panel.php:816
275
  msgid "Sorry, import is disabled."
276
  msgstr "Sorry, importeren is uitgeschakeld."
277
 
278
+ #: lib/yit-plugin-panel.php:817
279
  msgid "Sorting successful."
280
  msgstr "Sorteren succesvol."
281
 
282
+ #: lib/yit-plugin-panel.php:1265
283
  msgid "We need your support"
284
  msgstr "We hebben uw hulp nodig"
285
 
286
+ #: lib/yit-plugin-panel.php:1266
287
  msgid "to keep updating and improving the plugin. Please,"
288
  msgstr "om de plugin te blijven updaten en verbeteren. A.u.b.,"
289
 
290
+ #: lib/yit-plugin-panel.php:1268
291
  msgid "help us by leaving a five-star rating"
292
  msgstr "help ons door een vijf-sterenbeoordeling achter te laten"
293
 
294
+ #: lib/yit-plugin-panel.php:1269
295
  msgid ":) Thanks!"
296
  msgstr ":) Bedankt!"
297
 
754
  msgstr "YITH"
755
 
756
  #: templates/fields/onoff.php:24
757
+ msgctxt "YES/NO button: use MAX 3 characters!"
758
+ msgid "YES"
759
+ msgstr "JA"
760
 
761
  #: templates/fields/onoff.php:25
762
+ msgctxt "YES/NO button: use MAX 3 characters!"
763
+ msgid "NO"
764
+ msgstr "NEE"
765
 
766
  #: yit-plugin.php:83
767
  msgctxt "Plugin Row Meta"
788
  msgid "Settings"
789
  msgstr "Instellingen"
790
 
791
+ #~ msgctxt "ON/OFF button: use MAX 3 characters!"
792
+ #~ msgid "ON"
793
+ #~ msgstr "AAN"
794
+
795
+ #~ msgctxt "ON/OFF button: use MAX 3 characters!"
796
+ #~ msgid "OFF"
797
+ #~ msgstr "UIT"
798
+
799
  #~ msgid "An unexpected error occurred, please try again later. Thanks!"
800
  #~ msgstr ""
801
  #~ "Een onverwachte fout heeft zich voorgedaan, probeer het later nog eens!"
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: 2020-03-11 14:03:11+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
@@ -206,82 +206,82 @@ msgstr ""
206
  msgid "Plugin Settings"
207
  msgstr ""
208
 
209
- #: lib/yit-plugin-panel.php:425 lib/yit-plugin-panel.php:428
210
  msgid "How to install premium version"
211
  msgstr ""
212
 
213
- #: lib/yit-plugin-panel.php:572 lib/yit-plugin-subpanel.php:151
214
  #: templates/panel/woocommerce/woocommerce-form.php:14
215
  msgid "Save Changes"
216
  msgstr ""
217
 
218
- #: lib/yit-plugin-panel.php:575 lib/yit-plugin-subpanel.php:154
219
  #: templates/panel/woocommerce/woocommerce-form.php:17
220
  msgid "If you continue with this action, you will reset all options in this page."
221
  msgstr ""
222
 
223
- #: lib/yit-plugin-panel.php:577 lib/yit-plugin-subpanel.php:156
224
  msgid "Reset to default"
225
  msgstr ""
226
 
227
- #: lib/yit-plugin-panel.php:578 lib/yit-plugin-subpanel.php:157
228
  #: templates/panel/woocommerce/woocommerce-form.php:21
229
  msgid "Are you sure?"
230
  msgstr ""
231
 
232
- #: lib/yit-plugin-panel.php:776
233
  msgid "The element you have entered already exists. Please, enter another name."
234
  msgstr ""
235
 
236
- #: lib/yit-plugin-panel.php:777
237
  msgid "Settings saved"
238
  msgstr ""
239
 
240
- #: lib/yit-plugin-panel.php:778
241
  msgid "Settings reset"
242
  msgstr ""
243
 
244
- #: lib/yit-plugin-panel.php:779
245
  msgid "Element deleted correctly."
246
  msgstr ""
247
 
248
- #: lib/yit-plugin-panel.php:780 lib/yit-plugin-panel.php:781
249
  msgid "Element updated correctly."
250
  msgstr ""
251
 
252
- #: lib/yit-plugin-panel.php:782
253
  msgid "Database imported correctly."
254
  msgstr ""
255
 
256
- #: lib/yit-plugin-panel.php:783
257
  msgid "An error has occurred during import. Please try again."
258
  msgstr ""
259
 
260
- #: lib/yit-plugin-panel.php:784
261
  msgid "The added file is not valid."
262
  msgstr ""
263
 
264
- #: lib/yit-plugin-panel.php:785
265
  msgid "Sorry, import is disabled."
266
  msgstr ""
267
 
268
- #: lib/yit-plugin-panel.php:786
269
  msgid "Sorting successful."
270
  msgstr ""
271
 
272
- #: lib/yit-plugin-panel.php:1234
273
  msgid "We need your support"
274
  msgstr ""
275
 
276
- #: lib/yit-plugin-panel.php:1235
277
  msgid "to keep updating and improving the plugin. Please,"
278
  msgstr ""
279
 
280
- #: lib/yit-plugin-panel.php:1237
281
  msgid "help us by leaving a five-star rating"
282
  msgstr ""
283
 
284
- #: lib/yit-plugin-panel.php:1238
285
  msgid ":) Thanks!"
286
  msgstr ""
287
 
@@ -709,13 +709,13 @@ msgid "YITH"
709
  msgstr ""
710
 
711
  #: templates/fields/onoff.php:24
712
- msgctxt "ON/OFF button: use MAX 3 characters!"
713
- msgid "ON"
714
  msgstr ""
715
 
716
  #: templates/fields/onoff.php:25
717
- msgctxt "ON/OFF button: use MAX 3 characters!"
718
- msgid "OFF"
719
  msgstr ""
720
 
721
  #: yit-plugin.php:83
4
  msgstr ""
5
  "Project-Id-Version: \n"
6
  "Report-Msgid-Bugs-To: YITH <plugins@yithemes.com>\n"
7
+ "POT-Creation-Date: 2020-04-15 07:12:29+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
206
  msgid "Plugin Settings"
207
  msgstr ""
208
 
209
+ #: lib/yit-plugin-panel.php:455 lib/yit-plugin-panel.php:458
210
  msgid "How to install premium version"
211
  msgstr ""
212
 
213
+ #: lib/yit-plugin-panel.php:603 lib/yit-plugin-subpanel.php:151
214
  #: templates/panel/woocommerce/woocommerce-form.php:14
215
  msgid "Save Changes"
216
  msgstr ""
217
 
218
+ #: lib/yit-plugin-panel.php:606 lib/yit-plugin-subpanel.php:154
219
  #: templates/panel/woocommerce/woocommerce-form.php:17
220
  msgid "If you continue with this action, you will reset all options in this page."
221
  msgstr ""
222
 
223
+ #: lib/yit-plugin-panel.php:608 lib/yit-plugin-subpanel.php:156
224
  msgid "Reset to default"
225
  msgstr ""
226
 
227
+ #: lib/yit-plugin-panel.php:609 lib/yit-plugin-subpanel.php:157
228
  #: templates/panel/woocommerce/woocommerce-form.php:21
229
  msgid "Are you sure?"
230
  msgstr ""
231
 
232
+ #: lib/yit-plugin-panel.php:807
233
  msgid "The element you have entered already exists. Please, enter another name."
234
  msgstr ""
235
 
236
+ #: lib/yit-plugin-panel.php:808
237
  msgid "Settings saved"
238
  msgstr ""
239
 
240
+ #: lib/yit-plugin-panel.php:809
241
  msgid "Settings reset"
242
  msgstr ""
243
 
244
+ #: lib/yit-plugin-panel.php:810
245
  msgid "Element deleted correctly."
246
  msgstr ""
247
 
248
+ #: lib/yit-plugin-panel.php:811 lib/yit-plugin-panel.php:812
249
  msgid "Element updated correctly."
250
  msgstr ""
251
 
252
+ #: lib/yit-plugin-panel.php:813
253
  msgid "Database imported correctly."
254
  msgstr ""
255
 
256
+ #: lib/yit-plugin-panel.php:814
257
  msgid "An error has occurred during import. Please try again."
258
  msgstr ""
259
 
260
+ #: lib/yit-plugin-panel.php:815
261
  msgid "The added file is not valid."
262
  msgstr ""
263
 
264
+ #: lib/yit-plugin-panel.php:816
265
  msgid "Sorry, import is disabled."
266
  msgstr ""
267
 
268
+ #: lib/yit-plugin-panel.php:817
269
  msgid "Sorting successful."
270
  msgstr ""
271
 
272
+ #: lib/yit-plugin-panel.php:1265
273
  msgid "We need your support"
274
  msgstr ""
275
 
276
+ #: lib/yit-plugin-panel.php:1266
277
  msgid "to keep updating and improving the plugin. Please,"
278
  msgstr ""
279
 
280
+ #: lib/yit-plugin-panel.php:1268
281
  msgid "help us by leaving a five-star rating"
282
  msgstr ""
283
 
284
+ #: lib/yit-plugin-panel.php:1269
285
  msgid ":) Thanks!"
286
  msgstr ""
287
 
709
  msgstr ""
710
 
711
  #: templates/fields/onoff.php:24
712
+ msgctxt "YES/NO button: use MAX 3 characters!"
713
+ msgid "YES"
714
  msgstr ""
715
 
716
  #: templates/fields/onoff.php:25
717
+ msgctxt "YES/NO button: use MAX 3 characters!"
718
+ msgid "NO"
719
  msgstr ""
720
 
721
  #: yit-plugin.php:83
plugin-fw/lib/promo/black.jpg CHANGED
File without changes
plugin-fw/lib/promo/cyber.jpg CHANGED
File without changes
plugin-fw/lib/promo/halloween.jpg CHANGED
File without changes
plugin-fw/lib/promo/yith-promo.php CHANGED
File without changes
plugin-fw/lib/promo/yith-promo.xml CHANGED
File without changes
plugin-fw/lib/yit-ajax.php CHANGED
File without changes
plugin-fw/lib/yit-cpt-unlimited.php CHANGED
File without changes
plugin-fw/lib/yit-metabox.php CHANGED
File without changes
plugin-fw/lib/yit-plugin-common.php CHANGED
File without changes
plugin-fw/lib/yit-plugin-gradients.php CHANGED
File without changes
plugin-fw/lib/yit-plugin-licence.php CHANGED
File without changes
plugin-fw/lib/yit-plugin-panel-wc.php CHANGED
@@ -96,6 +96,7 @@ if ( !class_exists( 'YIT_Plugin_Panel_WooCommerce' ) ) {
96
  add_action( 'admin_action_yith_plugin_fw_save_toggle_element', array( $this, 'save_toggle_element_options' ) );
97
 
98
  add_action( 'admin_enqueue_scripts', array( $this, 'init_wp_with_tabs' ), 11 );
 
99
 
100
  // init actions once to prevent multiple actions
101
  static::_init_actions();
@@ -136,7 +137,6 @@ if ( !class_exists( 'YIT_Plugin_Panel_WooCommerce' ) ) {
136
  * @author Antonio La Rocca <antonio.larocca@yithemes.com>
137
  */
138
  public function yit_panel() {
139
- $this->maybe_redirect_to_proper_wp_page();
140
  $additional_info = array(
141
  'current_tab' => $this->get_current_tab(),
142
  'current_sub_tab' => $this->get_current_sub_tab(),
96
  add_action( 'admin_action_yith_plugin_fw_save_toggle_element', array( $this, 'save_toggle_element_options' ) );
97
 
98
  add_action( 'admin_enqueue_scripts', array( $this, 'init_wp_with_tabs' ), 11 );
99
+ add_action( 'admin_init', array( $this, 'maybe_redirect_to_proper_wp_page' ) );
100
 
101
  // init actions once to prevent multiple actions
102
  static::_init_actions();
137
  * @author Antonio La Rocca <antonio.larocca@yithemes.com>
138
  */
139
  public function yit_panel() {
 
140
  $additional_info = array(
141
  'current_tab' => $this->get_current_tab(),
142
  'current_sub_tab' => $this->get_current_sub_tab(),
plugin-fw/lib/yit-plugin-panel.php CHANGED
@@ -105,6 +105,7 @@ if ( !class_exists( 'YIT_Plugin_Panel' ) ) {
105
  add_action( 'admin_init', array( $this, 'add_fields' ) );
106
 
107
  add_action( 'admin_enqueue_scripts', array( $this, 'init_wp_with_tabs' ), 11 );
 
108
 
109
  // init actions once to prevent multiple actions
110
  static::_init_actions();
@@ -118,6 +119,36 @@ if ( !class_exists( 'YIT_Plugin_Panel' ) ) {
118
 
119
  }
120
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
121
  /**
122
  * Init actions to show YITH Panel tabs in WP Pages
123
  *
@@ -129,13 +160,12 @@ if ( !class_exists( 'YIT_Plugin_Panel' ) ) {
129
  return;
130
  }
131
 
132
- global $pagenow, $post_type, $taxonomy;
133
  $tabs = false;
134
 
135
- if ( in_array( $pagenow, array( 'post.php', 'post-new.php', 'edit.php' ), true )
136
- && !in_array( $post_type, array( 'product', 'page', 'post' ) ) ) {
137
  $tabs = $this->get_post_type_tabs( $post_type );
138
- } else if ( in_array( $pagenow, array( 'edit-tags.php', 'term.php' ), true ) ) {
139
  $tabs = $this->get_taxonomy_tabs( $taxonomy );
140
  }
141
 
@@ -540,7 +570,6 @@ if ( !class_exists( 'YIT_Plugin_Panel' ) ) {
540
  * @author Emanuela Castorina <emanuela.castorina@yithemes.it>
541
  */
542
  public function yit_panel() {
543
- $this->maybe_redirect_to_proper_wp_page();
544
  $yit_options = $this->get_main_array_options();
545
  $wrap_class = isset( $this->settings[ 'class' ] ) ? $this->settings[ 'class' ] : '';
546
 
@@ -1287,7 +1316,10 @@ if ( !class_exists( 'YIT_Plugin_Panel' ) ) {
1287
  break;
1288
  }
1289
  }
1290
- return $tabs;
 
 
 
1291
  }
1292
 
1293
  public function get_taxonomy_tabs( $taxonomy ) {
@@ -1303,7 +1335,10 @@ if ( !class_exists( 'YIT_Plugin_Panel' ) ) {
1303
  break;
1304
  }
1305
  }
1306
- return $tabs;
 
 
 
1307
  }
1308
 
1309
 
@@ -1315,13 +1350,15 @@ if ( !class_exists( 'YIT_Plugin_Panel' ) ) {
1315
  * @author Leanza Francesco <leanzafrancesco@gmail.com>
1316
  */
1317
  public function maybe_redirect_to_proper_wp_page() {
1318
- if ( !isset( $_REQUEST[ 'yith-plugin-fw-panel-skip-redirect' ] ) ) {
1319
- $url = $this->get_nav_url( $this->settings[ 'page' ], $this->get_current_tab(), $this->get_current_sub_tab() );
1320
- if ( strpos( $url, 'edit.php' ) !== false || strpos( $url, 'edit-tags.php' ) !== false ) {
1321
- wp_safe_redirect( add_query_arg( array( 'yith-plugin-fw-panel-skip-redirect' => 1 ), $url ) );
1322
- exit;
1323
- }
1324
- }
 
 
1325
  }
1326
 
1327
  /**
105
  add_action( 'admin_init', array( $this, 'add_fields' ) );
106
 
107
  add_action( 'admin_enqueue_scripts', array( $this, 'init_wp_with_tabs' ), 11 );
108
+ add_action( 'admin_init', array( $this, 'maybe_redirect_to_proper_wp_page' ) );
109
 
110
  // init actions once to prevent multiple actions
111
  static::_init_actions();
119
 
120
  }
121
 
122
+ /**
123
+ * Is this a custom post type page?
124
+ *
125
+ * @return bool
126
+ * @see YIT_Plugin_Panel::init_wp_with_tabs
127
+ * @since 3.4.17
128
+ */
129
+ protected function is_custom_post_type_page() {
130
+ global $pagenow, $post_type;
131
+ $excluded_post_types = array( 'product', 'page', 'post' );
132
+
133
+ return in_array( $pagenow, array( 'post.php', 'post-new.php', 'edit.php' ), true ) &&
134
+ ! in_array( $post_type, $excluded_post_types, true );
135
+ }
136
+
137
+ /**
138
+ * Is this a custom taxonomy page?
139
+ *
140
+ * @return bool
141
+ * @see YIT_Plugin_Panel::init_wp_with_tabs
142
+ * @since 3.4.17
143
+ */
144
+ protected function is_custom_taxonomy_page() {
145
+ global $pagenow, $taxonomy;
146
+ $excluded_taxonomies = array( 'category', 'post_tag', 'product_cat', 'product_tag' );
147
+
148
+ return in_array( $pagenow, array( 'edit-tags.php', 'term.php' ), true ) &&
149
+ ! in_array( $taxonomy, $excluded_taxonomies, true );
150
+ }
151
+
152
  /**
153
  * Init actions to show YITH Panel tabs in WP Pages
154
  *
160
  return;
161
  }
162
 
163
+ global $post_type, $taxonomy;
164
  $tabs = false;
165
 
166
+ if ( $this->is_custom_post_type_page() ) {
 
167
  $tabs = $this->get_post_type_tabs( $post_type );
168
+ } else if ( $this->is_custom_taxonomy_page() ) {
169
  $tabs = $this->get_taxonomy_tabs( $taxonomy );
170
  }
171
 
570
  * @author Emanuela Castorina <emanuela.castorina@yithemes.it>
571
  */
572
  public function yit_panel() {
 
573
  $yit_options = $this->get_main_array_options();
574
  $wrap_class = isset( $this->settings[ 'class' ] ) ? $this->settings[ 'class' ] : '';
575
 
1316
  break;
1317
  }
1318
  }
1319
+
1320
+ $panel_page = isset( $this->settings['page'] ) ? $this->settings['page'] : 'general';
1321
+
1322
+ return apply_filters( "yith_plugin_fw_panel_{$panel_page}_get_post_type_tabs", $tabs, $post_type );
1323
  }
1324
 
1325
  public function get_taxonomy_tabs( $taxonomy ) {
1335
  break;
1336
  }
1337
  }
1338
+
1339
+ $panel_page = isset( $this->settings['page'] ) ? $this->settings['page'] : 'general';
1340
+
1341
+ return apply_filters( "yith_plugin_fw_panel_{$panel_page}_get_taxonomy_tabs", $tabs, $taxonomy );
1342
  }
1343
 
1344
 
1350
  * @author Leanza Francesco <leanzafrancesco@gmail.com>
1351
  */
1352
  public function maybe_redirect_to_proper_wp_page() {
1353
+ global $pagenow;
1354
+ if ( 'admin.php' === $pagenow && isset( $_GET['page'] ) && $this->settings['page'] === $_GET['page'] &&
1355
+ ! $this->is_custom_taxonomy_page() && ! $this->is_custom_post_type_page() && ! isset( $_REQUEST['yith-plugin-fw-panel-skip-redirect'] ) ) {
1356
+ $url = $this->get_nav_url( $this->settings['page'], $this->get_current_tab(), $this->get_current_sub_tab() );
1357
+ if ( strpos( $url, 'edit.php' ) !== false || strpos( $url, 'edit-tags.php' ) !== false ) {
1358
+ wp_safe_redirect( add_query_arg( array( 'yith-plugin-fw-panel-skip-redirect' => 1 ), $url ) );
1359
+ exit;
1360
+ }
1361
+ }
1362
  }
1363
 
1364
  /**
plugin-fw/lib/yit-plugin-subpanel.php CHANGED
File without changes
plugin-fw/lib/yit-pointers.php CHANGED
File without changes
plugin-fw/lib/yit-theme-licence.php CHANGED
File without changes
plugin-fw/lib/yit-upgrade.php CHANGED
File without changes
plugin-fw/lib/yit-video.php CHANGED
File without changes
plugin-fw/lib/yith-dashboard.php CHANGED
File without changes
plugin-fw/lib/yith-gutenberg.php CHANGED
File without changes
plugin-fw/lib/yith-system-status.php CHANGED
@@ -129,7 +129,7 @@ if ( ! class_exists( 'YITH_System_Status' ) ) {
129
  public function add_submenu_page() {
130
 
131
  $system_info = get_option( 'yith_system_info', array() );
132
- $error_notice = ( $system_info['errors'] === true ? ' <span class="yith-system-info-menu update-plugins">!</span>' : '' );
133
  $settings = array(
134
  'parent_page' => 'yith_plugin_panel',
135
  'page_title' => __( 'System Status', 'yith-plugin-fw' ),
129
  public function add_submenu_page() {
130
 
131
  $system_info = get_option( 'yith_system_info', array() );
132
+ $error_notice = ( isset( $system_info['errors'] ) && $system_info['errors'] === true ? ' <span class="yith-system-info-menu update-plugins">!</span>' : '' );
133
  $settings = array(
134
  'parent_page' => 'yith_plugin_panel',
135
  'page_title' => __( 'System Status', 'yith-plugin-fw' ),
plugin-fw/package.json CHANGED
@@ -1,6 +1,6 @@
1
  {
2
  "name": "yith-plugin-framewowrk",
3
- "version": "3.4.13",
4
  "description": "YITH Plugin Framework",
5
  "main": "Gruntfile.js",
6
  "scripts": {
1
  {
2
  "name": "yith-plugin-framewowrk",
3
+ "version": "3.4.18",
4
  "description": "YITH Plugin Framework",
5
  "main": "Gruntfile.js",
6
  "scripts": {
plugin-fw/templates/fields/ajax-customers.php CHANGED
File without changes
plugin-fw/templates/fields/checkbox-array.php CHANGED
File without changes
plugin-fw/templates/fields/country-select.php CHANGED
File without changes
plugin-fw/templates/fields/custom.php CHANGED
File without changes
plugin-fw/templates/fields/date-format.php CHANGED
File without changes
plugin-fw/templates/fields/dimensions.php ADDED
@@ -0,0 +1,123 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * This file belongs to the YIT Plugin Framework.
4
+ * This source file is subject to the GNU GENERAL PUBLIC LICENSE (GPL 3.0)
5
+ * that is bundled with this package in the file LICENSE.txt.
6
+ * It is also available through the world-wide-web at this URL:
7
+ * http://www.gnu.org/licenses/gpl-3.0.txt
8
+ *
9
+ * @var array $field
10
+ */
11
+
12
+ ! defined( 'ABSPATH' ) && exit; // Exit if accessed directly
13
+
14
+ $default_options = array(
15
+ 'dimensions' => array(
16
+ 'top' => _x( 'Top', 'Position in the "Dimensions" field', 'yith-plugin-fw' ),
17
+ 'right' => _x( 'Right', 'Position in the "Dimensions" field', 'yith-plugin-fw' ),
18
+ 'bottom' => _x( 'Bottom', 'Position in the "Dimensions" field', 'yith-plugin-fw' ),
19
+ 'left' => _x( 'Left', 'Position in the "Dimensions" field', 'yith-plugin-fw' ),
20
+ ),
21
+ 'units' => array(
22
+ 'px' => 'px',
23
+ 'percentage' => '%',
24
+ ),
25
+ 'allow_linked' => true,
26
+ 'min' => false,
27
+ 'max' => false,
28
+ );
29
+
30
+ $field = wp_parse_args( $field, $default_options );
31
+
32
+ /**
33
+ * @var string $id
34
+ * @var string $custom_attributes
35
+ * @var array $dimensions
36
+ * @var array $units
37
+ * @var bool $allow_linked
38
+ * @var bool|int $min
39
+ * @var bool|int $max
40
+ */
41
+ extract( $field );
42
+
43
+ $class = isset( $class ) ? $class : '';
44
+ $class = 'yith-plugin-fw-dimensions ' . $class;
45
+
46
+ $value = ! empty( $value ) ? $value : array();
47
+
48
+ $unit_value = isset( $value['unit'] ) ? $value['unit'] : current( array_keys( $units ) );
49
+ $dimensions_values = isset( $value['dimensions'] ) ? $value['dimensions'] : array();
50
+ $linked = isset( $value['linked'] ) ? $value['linked'] : 'yes';
51
+
52
+ if ( $allow_linked && 'yes' === $linked ) {
53
+ $class .= ' yith-plugin-fw-dimensions--linked-active';
54
+ }
55
+ ?>
56
+ <div id="<?php echo $id ?>" class="<?php echo $class; ?>"
57
+ <?php echo $custom_attributes ?>
58
+ <?php echo isset( $data ) ? yith_plugin_fw_html_data_to_string( $data ) : ''; ?>
59
+ >
60
+ <div class="yith-plugin-fw-dimensions__units">
61
+ <input class='yith-plugin-fw-dimensions__unit__value' type="hidden" name="<?php echo $name ?>[unit]" value="<?php echo isset( $value['unit'] ) ? $value['unit'] : current( array_keys( $units ) ) ?>">
62
+ <?php foreach ( $units as $key => $label ) : ?>
63
+ <?php
64
+ $key = sanitize_title( $key );
65
+ $classes = array(
66
+ 'yith-plugin-fw-dimensions__unit',
67
+ "yith-plugin-fw-dimensions__unit--{$key}-unit",
68
+ );
69
+ if ( $unit_value === $key ) {
70
+ $classes[] = 'yith-plugin-fw-dimensions__unit--selected';
71
+ }
72
+ $classes = implode( ' ', $classes );
73
+ ?>
74
+ <span class="<?php echo $classes; ?>" data-value="<?php echo $key; ?>"><?php echo $label; ?></span>
75
+ <?php endforeach ?>
76
+ </div>
77
+
78
+ <ul class="yith-plugin-fw-dimensions__dimensions">
79
+ <?php foreach ( $dimensions as $key => $dimension ) : ?>
80
+ <?php
81
+ $d_id = "{$id}-dimension-" . sanitize_title( $key );
82
+ $d_name = "{$name}[dimensions][" . sanitize_title( $key ) . "]";
83
+ $d_value = isset( $dimensions_values[ $key ] ) ? $dimensions_values[ $key ] : 0;
84
+ $d_attributes = '';
85
+ $d_label = $dimension;
86
+ $d_min = $min;
87
+ $d_max = $max;
88
+
89
+ if ( is_array( $dimension ) ) {
90
+ $d_label = isset( $dimension['label'] ) ? $dimension['label'] : $key;
91
+ if ( isset( $dimension['custom_attributes'] ) ) {
92
+ $d_attributes .= $dimension['custom_attributes'];
93
+ }
94
+ $d_min = isset( $dimension['min'] ) ? $dimension['min'] : $d_min;
95
+ $d_max = isset( $dimension['max'] ) ? $dimension['max'] : $d_max;
96
+ }
97
+
98
+ if ( $d_max !== false ) {
99
+ $d_attributes = " max='{$d_max}' . $d_attributes";
100
+ }
101
+
102
+ if ( $d_min !== false ) {
103
+ $d_attributes = " min='{$d_min}' " . $d_attributes;
104
+ }
105
+
106
+ ?>
107
+ <li class="yith-plugin-fw-dimensions__dimension yith-plugin-fw-dimensions__dimension--<?php echo sanitize_title( $key ); ?>">
108
+ <input id="<?php echo $d_id; ?>" class="yith-plugin-fw-dimensions__dimension__number"
109
+ type="number" name="<?php echo $d_name; ?>" value="<?php echo $d_value; ?>"
110
+ <?php echo $d_attributes; ?>
111
+ >
112
+ <label for="<?php echo $d_id; ?>" class="yith-plugin-fw-dimensions__dimension__label"><?php echo $d_label; ?></label>
113
+ </li>
114
+ <?php endforeach ?>
115
+
116
+ <?php if ( $allow_linked ): ?>
117
+ <li class="yith-plugin-fw-dimensions__linked" title="<?php _ex( 'Link values together', 'Tooltip in the "Dimensions" field', 'yith-plugin-fw' ); ?>">
118
+ <input class='yith-plugin-fw-dimensions__linked__value' type="hidden" name="<?php echo $name ?>[linked]" value="<?php echo $linked ?>">
119
+ <span class="dashicons dashicons-admin-links"></span>
120
+ </li>
121
+ <?php endif; ?>
122
+ </ul>
123
+ </div>
plugin-fw/templates/fields/list-table.php CHANGED
File without changes
plugin-fw/templates/fields/multi-colorpicker.php CHANGED
File without changes
plugin-fw/templates/fields/multi-select.php CHANGED
File without changes
plugin-fw/templates/fields/onoff.php CHANGED
@@ -21,11 +21,11 @@ extract( $field );
21
  <?php echo $custom_attributes ?>
22
  />
23
  <span class="yith-plugin-fw-onoff"
24
- data-text-on="<?php echo esc_attr_x( 'ON', 'ON/OFF button: use MAX 3 characters!', 'yith-plugin-fw' ); ?>"
25
- data-text-off="<?php echo esc_attr_x( 'OFF', 'ON/OFF button: use MAX 3 characters!', 'yith-plugin-fw' ); ?>"></span>
26
  </div>
27
  <?php
28
  if ( isset( $field[ 'desc-inline' ] ) ) {
29
  echo "<span class='description inline'>" . $field[ 'desc-inline' ] . "</span>";
30
  }
31
- ?>
21
  <?php echo $custom_attributes ?>
22
  />
23
  <span class="yith-plugin-fw-onoff"
24
+ data-text-on="<?php echo esc_attr_x( 'YES', 'YES/NO button: use MAX 3 characters!', 'yith-plugin-fw' ); ?>"
25
+ data-text-off="<?php echo esc_attr_x( 'NO', 'YES/NO button: use MAX 3 characters!', 'yith-plugin-fw' ); ?>"></span>
26
  </div>
27
  <?php
28
  if ( isset( $field[ 'desc-inline' ] ) ) {
29
  echo "<span class='description inline'>" . $field[ 'desc-inline' ] . "</span>";
30
  }
31
+ ?>
plugin-fw/templates/fields/password.php CHANGED
File without changes
plugin-fw/templates/fields/select-images.php CHANGED
@@ -34,17 +34,18 @@ $wrapper_id = $id . '-wrapper';
34
 
35
  <ul class="yith-plugin-fw-select-images__list">
36
  <?php foreach ( $options as $key => $item ) :
37
- $label = !empty( $item[ 'label' ] ) ? $item[ 'label' ] : $key;
38
- $image = !empty( $item[ 'image' ] ) ? $item[ 'image' ] : '';
 
39
  if ( $image ) :
40
  $selected_class = 'yith-plugin-fw-select-images__item--selected';
41
  $current_class = $key === $value ? $selected_class : '';
42
  ?>
43
- <li class="yith-plugin-fw-select-images__item <?php echo $current_class ?>" data-key="<?php echo $key ?>">
44
  <?php if ( $label ) : ?>
45
  <div class="yith-plugin-fw-select-images__item__label"><?php echo $label ?></div>
46
  <?php endif; ?>
47
- <img src="<?php echo $image ?>">
48
  </li>
49
  <?php endif; ?>
50
  <?php endforeach; ?>
34
 
35
  <ul class="yith-plugin-fw-select-images__list">
36
  <?php foreach ( $options as $key => $item ) :
37
+ $label = ! empty( $item['label'] ) ? $item['label'] : $key;
38
+ $image = ! empty( $item['image'] ) ? $item['image'] : '';
39
+ $img_data = ! empty( $item['data'] ) ? yith_plugin_fw_html_data_to_string( $item['data'] ): '';
40
  if ( $image ) :
41
  $selected_class = 'yith-plugin-fw-select-images__item--selected';
42
  $current_class = $key === $value ? $selected_class : '';
43
  ?>
44
+ <li class="yith-plugin-fw-select-images__item <?php echo $current_class ?>" data-key="<?php echo $key ?>" <?php echo $img_data; ?>>
45
  <?php if ( $label ) : ?>
46
  <div class="yith-plugin-fw-select-images__item__label"><?php echo $label ?></div>
47
  <?php endif; ?>
48
+ <img class="yith-plugin-fw-select-images_src" src="<?php echo $image ?>" />
49
  </li>
50
  <?php endif; ?>
51
  <?php endforeach; ?>
plugin-fw/templates/fields/toggle-element-fixed.php CHANGED
File without changes
plugin-fw/templates/fields/toggle-element.php CHANGED
File without changes
plugin-fw/templates/fields/upload.php CHANGED
@@ -18,7 +18,7 @@ extract( $field );
18
  <div class="yith-plugin-fw-upload-img-preview" style="margin-top:10px;">
19
  <?php
20
  $file = $value;
21
- if ( preg_match( '/(jpg|jpeg|png|gif|ico)$/', $file ) ) {
22
  echo "<img src='$file' style='max-width:600px; max-height:300px;' />";
23
  }
24
  ?>
18
  <div class="yith-plugin-fw-upload-img-preview" style="margin-top:10px;">
19
  <?php
20
  $file = $value;
21
+ if ( preg_match( '/(jpg|jpeg|png|gif|ico|svg)$/', $file ) ) {
22
  echo "<img src='$file' style='max-width:600px; max-height:300px;' />";
23
  }
24
  ?>
plugin-fw/templates/metaboxes/tab.php CHANGED
File without changes
plugin-fw/templates/metaboxes/types/icon-list.php CHANGED
File without changes
plugin-fw/templates/panel/infobox.php CHANGED
File without changes
plugin-fw/templates/panel/sub-tabs-nav.php CHANGED
File without changes
plugin-fw/templates/panel/woocommerce/woocommerce-form.php CHANGED
File without changes
plugin-fw/templates/panel/woocommerce/woocommerce-panel.php CHANGED
File without changes
plugin-fw/templates/panel/woocommerce/woocommerce-upload.php CHANGED
File without changes
plugin-fw/templates/sysinfo/system-information-panel.php CHANGED
File without changes
plugin-fw/yit-deactive-plugin.php CHANGED
File without changes
plugin-fw/yit-functions.php CHANGED
@@ -1366,4 +1366,43 @@ if ( !function_exists( 'yith_plugin_fw_add_requirements' ) ) {
1366
 
1367
  }
1368
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1369
  }
1366
 
1367
  }
1368
  }
1369
+ }
1370
+
1371
+ if ( ! function_exists( 'yith_plugin_fw_parse_dimensions' ) ) {
1372
+ /**
1373
+ * Parse dimensions stored through a "dimensions" field to a key-value array
1374
+ * where the key will be equal to the dimension key
1375
+ * and the value will be equal to the value of the dimension suffixed with the unit
1376
+ *
1377
+ * @param array $values
1378
+ * @return array
1379
+ */
1380
+ function yith_plugin_fw_parse_dimensions( $values ) {
1381
+ $dimensions = array();
1382
+ if ( is_array( $values ) && isset( $values['dimensions'], $values['unit'] ) && is_array( $values['dimensions'] ) ) {
1383
+ $raw_unit = $values['unit'];
1384
+ $unit = 'percentage' === $raw_unit ? '%' : $raw_unit;
1385
+ foreach ( $values['dimensions'] as $key => $value ) {
1386
+ $dimensions[ $key ] = $value . $unit;
1387
+ }
1388
+ }
1389
+
1390
+ return $dimensions;
1391
+ }
1392
+ }
1393
+
1394
+ if ( ! function_exists( 'yith_plugin_fw_get_dimensions_by_option' ) ) {
1395
+ /**
1396
+ * Retrieve a parsed array of dimensions by an option
1397
+ *
1398
+ * @param string $option
1399
+ * @param bool|array $default
1400
+ *
1401
+ * @return array|bool
1402
+ */
1403
+ function yith_plugin_fw_get_dimensions_by_option( $option, $default = false ) {
1404
+ $dimensions = get_option( $option, false );
1405
+
1406
+ return ! ! $dimensions ? yith_plugin_fw_parse_dimensions( $dimensions ) : $default;
1407
+ }
1408
  }
plugin-fw/yit-plugin-registration-hook.php CHANGED
File without changes
plugin-fw/yit-plugin.php CHANGED
File without changes
plugin-fw/yit-woocommerce-compatibility.php CHANGED
File without changes
plugin-options/gutenberg/blocks.php CHANGED
File without changes
plugin-options/premium-options.php CHANGED
File without changes
plugin-options/settings-options.php CHANGED
File without changes
templates/admin/premium.php CHANGED
File without changes
templates/yith-woocommerce-ajax-search.php CHANGED
File without changes
uninstall.php CHANGED
File without changes
wpml-config.xml CHANGED
File without changes