YITH WooCommerce Ajax Search - Version 1.5.4

Version Description

  • Released: Nov 06, 2017 = Update: Plugin Core
Download this release

Release Info

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

Code changes from version 1.5.3 to 1.5.4

Files changed (221) hide show
  1. README.txt +4 -2
  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 +0 -0
  25. class.yith-wcas-frontend.php +0 -0
  26. class.yith-wcas.php +0 -0
  27. functions.yith-wcas.php +0 -0
  28. init.php +2 -2
  29. languages/yith-woocommerce-ajax-search-it_IT.mo +0 -0
  30. languages/yith-woocommerce-ajax-search-it_IT.po +0 -0
  31. languages/yith-woocommerce-ajax-search-pt_PT.mo +0 -0
  32. languages/yith-woocommerce-ajax-search-pt_PT.po +0 -0
  33. languages/yith-woocommerce-ajax-search.pot +0 -0
  34. plugin-fw/assets/css/chosen/chosen.css +0 -0
  35. plugin-fw/assets/css/codemirror/codemirror.css +0 -0
  36. plugin-fw/assets/css/colorbox.css +0 -0
  37. plugin-fw/assets/css/metaboxes.css +0 -0
  38. plugin-fw/assets/css/overcast/images/jquery_ui/ui-bg_diagonals-thick_18_b81900_40x40.png +0 -0
  39. plugin-fw/assets/css/overcast/images/jquery_ui/ui-bg_flat_10_000000_40x100.png +0 -0
  40. plugin-fw/assets/css/overcast/images/jquery_ui/ui-bg_glass_100_f6f6f6_1x400.png +0 -0
  41. plugin-fw/assets/css/overcast/images/jquery_ui/ui-bg_glass_100_fdf5ce_1x400.png +0 -0
  42. plugin-fw/assets/css/overcast/images/jquery_ui/ui-bg_glass_65_ffffff_1x400.png +0 -0
  43. plugin-fw/assets/css/overcast/images/jquery_ui/ui-bg_gloss-wave_35_f6a828_500x100.png +0 -0
  44. plugin-fw/assets/css/overcast/images/jquery_ui/ui-bg_highlight-soft_100_eeeeee_1x100.png +0 -0
  45. plugin-fw/assets/css/overcast/images/jquery_ui/ui-bg_highlight-soft_75_ffe45c_1x100.png +0 -0
  46. plugin-fw/assets/css/overcast/images/jquery_ui/ui-icons_222222_256x240.png +0 -0
  47. plugin-fw/assets/css/overcast/images/jquery_ui/ui-icons_228ef1_256x240.png +0 -0
  48. plugin-fw/assets/css/overcast/images/jquery_ui/ui-icons_ef8c08_256x240.png +0 -0
  49. plugin-fw/assets/css/overcast/images/jquery_ui/ui-icons_ffd27a_256x240.png +0 -0
  50. plugin-fw/assets/css/overcast/images/jquery_ui/ui-icons_ffffff_256x240.png +0 -0
  51. plugin-fw/assets/css/overcast/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  52. plugin-fw/assets/css/overcast/images/ui-bg_flat_0_eeeeee_40x100.png +0 -0
  53. plugin-fw/assets/css/overcast/images/ui-bg_flat_55_c0402a_40x100.png +0 -0
  54. plugin-fw/assets/css/overcast/images/ui-bg_flat_55_eeeeee_40x100.png +0 -0
  55. plugin-fw/assets/css/overcast/images/ui-bg_glass_100_f8f8f8_1x400.png +0 -0
  56. plugin-fw/assets/css/overcast/images/ui-bg_glass_35_dddddd_1x400.png +0 -0
  57. plugin-fw/assets/css/overcast/images/ui-bg_glass_60_eeeeee_1x400.png +0 -0
  58. plugin-fw/assets/css/overcast/images/ui-bg_inset-hard_75_999999_1x100.png +0 -0
  59. plugin-fw/assets/css/overcast/images/ui-bg_inset-soft_50_c9c9c9_1x100.png +0 -0
  60. plugin-fw/assets/css/overcast/images/ui-icons_3383bb_256x240.png +0 -0
  61. plugin-fw/assets/css/overcast/images/ui-icons_454545_256x240.png +0 -0
  62. plugin-fw/assets/css/overcast/images/ui-icons_70b2e1_256x240.png +0 -0
  63. plugin-fw/assets/css/overcast/images/ui-icons_999999_256x240.png +0 -0
  64. plugin-fw/assets/css/overcast/images/ui-icons_fbc856_256x240.png +0 -0
  65. plugin-fw/assets/css/overcast/jquery-ui-custom/jquery-ui-1.8.9.custom.css +0 -0
  66. plugin-fw/assets/css/yit-plugin-panel-sidebar.css +0 -388
  67. plugin-fw/assets/css/yit-plugin-panel.css +1 -9
  68. plugin-fw/assets/css/yit-upgrade-to-pro.css +0 -0
  69. plugin-fw/assets/css/yit-upgrader.css +0 -0
  70. plugin-fw/assets/images/chosen/chosen-sprite.png +0 -0
  71. plugin-fw/assets/images/chosen/chosen-sprite@2x.png +0 -0
  72. plugin-fw/assets/images/colorbox/border1.png +0 -0
  73. plugin-fw/assets/images/colorbox/border2.png +0 -0
  74. plugin-fw/assets/images/colorbox/loading.gif +0 -0
  75. plugin-fw/assets/images/double-sidebar.png +0 -0
  76. plugin-fw/assets/images/licence-error.png +0 -0
  77. plugin-fw/assets/images/no-sidebar.png +0 -0
  78. plugin-fw/assets/images/off.png +0 -0
  79. plugin-fw/assets/images/on.png +0 -0
  80. plugin-fw/assets/images/select.png +0 -0
  81. plugin-fw/assets/images/sidebar-left.png +0 -0
  82. plugin-fw/assets/images/sidebar-right.png +0 -0
  83. plugin-fw/assets/images/sleep.png +0 -0
  84. plugin-fw/assets/images/slider/grey.gif +0 -0
  85. plugin-fw/assets/images/slider/handle.png +0 -0
  86. plugin-fw/assets/images/slider/orange.gif +0 -0
  87. plugin-fw/assets/images/slider/tooltip.png +0 -0
  88. plugin-fw/assets/images/spinner.png +0 -0
  89. plugin-fw/assets/images/ui-icons_222222_256x240.png +0 -0
  90. plugin-fw/assets/images/ui-icons_2e83ff_256x240.png +0 -0
  91. plugin-fw/assets/images/ui-icons_454545_256x240.png +0 -0
  92. plugin-fw/assets/images/ui-icons_888888_256x240.png +0 -0
  93. plugin-fw/assets/images/widgets/box-icon.png +0 -0
  94. plugin-fw/assets/images/widgets/box-white-icon.png +0 -0
  95. plugin-fw/assets/images/widgets/despacho.png +0 -0
  96. plugin-fw/assets/images/widgets/info-icon.png +0 -0
  97. plugin-fw/assets/images/widgets/link-bg.png +0 -0
  98. plugin-fw/assets/images/widgets/link-bg2.png +0 -0
  99. plugin-fw/assets/images/widgets/link-icon.png +0 -0
  100. plugin-fw/assets/images/widgets/membership-bg.png +0 -0
  101. plugin-fw/assets/images/x.png +0 -0
  102. plugin-fw/assets/images/yithemes-icon.png +0 -0
  103. plugin-fw/assets/js/chosen/ajax-chosen.jquery.js +0 -0
  104. plugin-fw/assets/js/chosen/ajax-chosen.jquery.min.js +0 -0
  105. plugin-fw/assets/js/chosen/chosen.jquery.js +0 -0
  106. plugin-fw/assets/js/codemirror/codemirror.js +0 -0
  107. plugin-fw/assets/js/codemirror/javascript.js +0 -0
  108. plugin-fw/assets/js/how-to.js +0 -0
  109. plugin-fw/assets/js/jquery.colorbox.js +0 -0
  110. plugin-fw/assets/js/metabox.js +0 -0
  111. plugin-fw/assets/js/metabox.min.js +0 -0
  112. plugin-fw/assets/js/multisite-updater.js +0 -0
  113. plugin-fw/assets/js/multisite-updater.min.js +0 -0
  114. plugin-fw/assets/js/panel.spinner.js +0 -0
  115. plugin-fw/assets/js/panel.spinner.min.js +0 -0
  116. plugin-fw/assets/js/yit-cpt-unlimited.js +0 -0
  117. plugin-fw/assets/js/yit-cpt-unlimited.min.js +0 -0
  118. plugin-fw/assets/js/yit-cptu-sortable-posts.js +0 -0
  119. plugin-fw/assets/js/yit-plugin-panel-sidebar.js +0 -56
  120. plugin-fw/assets/js/yit-plugin-panel-sidebar.min.js +0 -1
  121. plugin-fw/assets/js/yit-plugin-panel.js +0 -0
  122. plugin-fw/assets/js/yit-plugin-panel.min.js +0 -0
  123. plugin-fw/assets/js/yit-wp-pointer.js +0 -0
  124. plugin-fw/assets/js/yit-wp-pointer.min.js +0 -0
  125. plugin-fw/init.php +1 -1
  126. plugin-fw/languages/yith-plugin-fw-es_ES.mo +0 -0
  127. plugin-fw/languages/yith-plugin-fw-es_ES.po +0 -0
  128. plugin-fw/languages/yith-plugin-fw-it_IT.mo +0 -0
  129. plugin-fw/languages/yith-plugin-fw-it_IT.po +0 -0
  130. plugin-fw/languages/yith-plugin-fw.pot +62 -85
  131. plugin-fw/lib/yit-ajax.php +1 -12
  132. plugin-fw/lib/yit-cpt-unlimited.php +0 -0
  133. plugin-fw/lib/yit-metabox.php +0 -0
  134. plugin-fw/lib/yit-plugin-common.php +0 -0
  135. plugin-fw/lib/yit-plugin-gradients.php +0 -0
  136. plugin-fw/lib/yit-plugin-panel-sidebar.php +0 -430
  137. plugin-fw/lib/yit-plugin-panel-wc.php +3 -5
  138. plugin-fw/lib/yit-plugin-panel.php +7 -73
  139. plugin-fw/lib/yit-plugin-subpanel.php +0 -0
  140. plugin-fw/lib/yit-pointers.php +0 -0
  141. plugin-fw/lib/yit-upgrade.php +0 -0
  142. plugin-fw/lib/yit-video.php +0 -0
  143. plugin-fw/licence/assets/css/yit-licence.css +0 -0
  144. plugin-fw/licence/assets/images/licence-error.png +0 -0
  145. plugin-fw/licence/assets/js/yit-licence.js +0 -0
  146. plugin-fw/licence/assets/js/yit-licence.min.js +0 -0
  147. plugin-fw/licence/lib/yit-licence.php +0 -0
  148. plugin-fw/licence/lib/yit-plugin-licence.php +0 -0
  149. plugin-fw/licence/lib/yit-theme-licence.php +0 -0
  150. plugin-fw/licence/templates/panel/activation/activation-panel.php +0 -0
  151. plugin-fw/templates/metaboxes/tab.php +0 -0
  152. plugin-fw/templates/metaboxes/types/ajax-products.php +0 -0
  153. plugin-fw/templates/metaboxes/types/categories.php +0 -0
  154. plugin-fw/templates/metaboxes/types/checkbox.php +0 -0
  155. plugin-fw/templates/metaboxes/types/chosen.php +0 -0
  156. plugin-fw/templates/metaboxes/types/colorpicker.php +0 -0
  157. plugin-fw/templates/metaboxes/types/contactform.php +0 -0
  158. plugin-fw/templates/metaboxes/types/customtabs.php +0 -0
  159. plugin-fw/templates/metaboxes/types/datepicker.php +0 -0
  160. plugin-fw/templates/metaboxes/types/hidden.php +0 -0
  161. plugin-fw/templates/metaboxes/types/icon-list.php +0 -0
  162. plugin-fw/templates/metaboxes/types/image-gallery.php +0 -0
  163. plugin-fw/templates/metaboxes/types/images.php +0 -0
  164. plugin-fw/templates/metaboxes/types/number.php +0 -0
  165. plugin-fw/templates/metaboxes/types/onoff.php +0 -0
  166. plugin-fw/templates/metaboxes/types/preview.php +0 -0
  167. plugin-fw/templates/metaboxes/types/responsivesliders.php +0 -0
  168. plugin-fw/templates/metaboxes/types/select-icon.php +0 -0
  169. plugin-fw/templates/metaboxes/types/select-mailchimp.php +0 -0
  170. plugin-fw/templates/metaboxes/types/select.php +0 -0
  171. plugin-fw/templates/metaboxes/types/sep.php +0 -0
  172. plugin-fw/templates/metaboxes/types/sidebar-layout.php +0 -0
  173. plugin-fw/templates/metaboxes/types/sidebarlist.php +0 -0
  174. plugin-fw/templates/metaboxes/types/sidebars.php +0 -0
  175. plugin-fw/templates/metaboxes/types/simple-text.php +0 -0
  176. plugin-fw/templates/metaboxes/types/slider.php +0 -0
  177. plugin-fw/templates/metaboxes/types/text-array.php +0 -0
  178. plugin-fw/templates/metaboxes/types/text.php +0 -0
  179. plugin-fw/templates/metaboxes/types/textarea-editor.php +0 -0
  180. plugin-fw/templates/metaboxes/types/textarea.php +0 -0
  181. plugin-fw/templates/metaboxes/types/title.php +0 -0
  182. plugin-fw/templates/metaboxes/types/typography.php +0 -0
  183. plugin-fw/templates/metaboxes/types/upload.php +0 -0
  184. plugin-fw/templates/panel/infobox.php +0 -0
  185. plugin-fw/templates/panel/sidebar/sidebar.php +0 -20
  186. plugin-fw/templates/panel/sidebar/widget.php +0 -53
  187. plugin-fw/templates/panel/sidebar/widgets/badges/badge.php +0 -11
  188. plugin-fw/templates/panel/sidebar/widgets/widget-despacho.php +0 -19
  189. plugin-fw/templates/panel/sidebar/widgets/widget-links.php +0 -34
  190. plugin-fw/templates/panel/sidebar/widgets/widget-membership.php +0 -29
  191. plugin-fw/templates/panel/sidebar/widgets/widgets.php +0 -42
  192. plugin-fw/templates/panel/types/chosen.php +0 -0
  193. plugin-fw/templates/panel/types/colorpicker.php +0 -0
  194. plugin-fw/templates/panel/types/connected-list.php +0 -0
  195. plugin-fw/templates/panel/types/layout-panel.php +0 -0
  196. plugin-fw/templates/panel/types/number.php +0 -0
  197. plugin-fw/templates/panel/types/on-off.php +0 -0
  198. plugin-fw/templates/panel/types/select-mailchimp.php +0 -0
  199. plugin-fw/templates/panel/types/select.php +0 -0
  200. plugin-fw/templates/panel/types/slider.php +0 -0
  201. plugin-fw/templates/panel/types/text-button.php +0 -0
  202. plugin-fw/templates/panel/types/text.php +0 -0
  203. plugin-fw/templates/panel/types/textarea-codemirror.php +0 -0
  204. plugin-fw/templates/panel/types/textarea.php +0 -0
  205. plugin-fw/templates/panel/types/upload.php +0 -0
  206. plugin-fw/templates/panel/videobox.php +0 -0
  207. plugin-fw/templates/panel/woocommerce/woocommerce-form.php +1 -9
  208. plugin-fw/templates/panel/woocommerce/woocommerce-panel.php +0 -0
  209. plugin-fw/templates/panel/woocommerce/woocommerce-upload.php +0 -0
  210. plugin-fw/yit-deactive-plugin.php +0 -0
  211. plugin-fw/yit-functions.php +0 -0
  212. plugin-fw/yit-plugin-registration-hook.php +0 -6
  213. plugin-fw/yit-plugin.php +0 -1
  214. plugin-fw/yit-woocommerce-compatibility.php +41 -1
  215. plugin-options/premium-options.php +0 -0
  216. plugin-options/settings-options.php +0 -0
  217. templates/admin/premium.php +0 -0
  218. templates/yith-woocommerce-ajax-search.php +0 -0
  219. uninstall.php +0 -0
  220. widgets/class.yith-wcas-ajax-search.php +0 -0
  221. wpml-config.xml +0 -0
README.txt CHANGED
@@ -3,8 +3,8 @@
3
  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: 4.7.5
7
- Stable tag: 1.5.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -138,6 +138,8 @@ If you have created your own language pack for YITH WooCommerce Ajax Search, or
138
  2. YITH WooCommerce Ajax Search in operation displaying WooCommerce search results
139
 
140
  == Changelog ==
 
 
141
 
142
  = 1.5.3 - Released: May 25, 2017 =
143
  Fix: Plugin Core integration
3
  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: 4.8.3
7
+ Stable tag: 1.5.4
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
138
  2. YITH WooCommerce Ajax Search in operation displaying WooCommerce search results
139
 
140
  == Changelog ==
141
+ = 1.5.4 - Released: Nov 06, 2017 =
142
+ Update: Plugin Core
143
 
144
  = 1.5.3 - Released: May 25, 2017 =
145
  Fix: Plugin Core integration
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 CHANGED
File without changes
class.yith-wcas-frontend.php CHANGED
File without changes
class.yith-wcas.php CHANGED
File without changes
functions.yith-wcas.php CHANGED
File without changes
init.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: YITH WooCommerce Ajax Search
4
  * Plugin URI: http://yithemes.com/
5
  * Description: YITH WooCommerce Ajax Search allows your users to search products in real time.
6
- * Version: 1.5.3
7
  * Author: YITHEMES
8
  * Author URI: http://yithemes.com/
9
  * Text Domain: yith-woocommerce-ajax-search
@@ -65,7 +65,7 @@ register_activation_hook( __FILE__, 'yith_plugin_registration_hook' );
65
  if ( defined( 'YITH_WCAS_VERSION' ) ){
66
  return;
67
  }else{
68
- define( 'YITH_WCAS_VERSION', '1.5.3' );
69
  }
70
 
71
  if ( ! defined( 'YITH_WCAS_FREE_INIT' ) ) {
3
  * Plugin Name: YITH WooCommerce Ajax Search
4
  * Plugin URI: http://yithemes.com/
5
  * Description: YITH WooCommerce Ajax Search allows your users to search products in real time.
6
+ * Version: 1.5.4
7
  * Author: YITHEMES
8
  * Author URI: http://yithemes.com/
9
  * Text Domain: yith-woocommerce-ajax-search
65
  if ( defined( 'YITH_WCAS_VERSION' ) ){
66
  return;
67
  }else{
68
+ define( 'YITH_WCAS_VERSION', '1.5.4' );
69
  }
70
 
71
  if ( ! defined( 'YITH_WCAS_FREE_INIT' ) ) {
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/assets/css/chosen/chosen.css 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/overcast/images/jquery_ui/ui-bg_diagonals-thick_18_b81900_40x40.png CHANGED
File without changes
plugin-fw/assets/css/overcast/images/jquery_ui/ui-bg_flat_10_000000_40x100.png CHANGED
File without changes
plugin-fw/assets/css/overcast/images/jquery_ui/ui-bg_glass_100_f6f6f6_1x400.png CHANGED
File without changes
plugin-fw/assets/css/overcast/images/jquery_ui/ui-bg_glass_100_fdf5ce_1x400.png CHANGED
File without changes
plugin-fw/assets/css/overcast/images/jquery_ui/ui-bg_glass_65_ffffff_1x400.png CHANGED
File without changes
plugin-fw/assets/css/overcast/images/jquery_ui/ui-bg_gloss-wave_35_f6a828_500x100.png CHANGED
File without changes
plugin-fw/assets/css/overcast/images/jquery_ui/ui-bg_highlight-soft_100_eeeeee_1x100.png CHANGED
File without changes
plugin-fw/assets/css/overcast/images/jquery_ui/ui-bg_highlight-soft_75_ffe45c_1x100.png CHANGED
File without changes
plugin-fw/assets/css/overcast/images/jquery_ui/ui-icons_222222_256x240.png CHANGED
File without changes
plugin-fw/assets/css/overcast/images/jquery_ui/ui-icons_228ef1_256x240.png CHANGED
File without changes
plugin-fw/assets/css/overcast/images/jquery_ui/ui-icons_ef8c08_256x240.png CHANGED
File without changes
plugin-fw/assets/css/overcast/images/jquery_ui/ui-icons_ffd27a_256x240.png CHANGED
File without changes
plugin-fw/assets/css/overcast/images/jquery_ui/ui-icons_ffffff_256x240.png CHANGED
File without changes
plugin-fw/assets/css/overcast/images/ui-bg_flat_0_aaaaaa_40x100.png CHANGED
File without changes
plugin-fw/assets/css/overcast/images/ui-bg_flat_0_eeeeee_40x100.png CHANGED
File without changes
plugin-fw/assets/css/overcast/images/ui-bg_flat_55_c0402a_40x100.png CHANGED
File without changes
plugin-fw/assets/css/overcast/images/ui-bg_flat_55_eeeeee_40x100.png CHANGED
File without changes
plugin-fw/assets/css/overcast/images/ui-bg_glass_100_f8f8f8_1x400.png CHANGED
File without changes
plugin-fw/assets/css/overcast/images/ui-bg_glass_35_dddddd_1x400.png CHANGED
File without changes
plugin-fw/assets/css/overcast/images/ui-bg_glass_60_eeeeee_1x400.png CHANGED
File without changes
plugin-fw/assets/css/overcast/images/ui-bg_inset-hard_75_999999_1x100.png CHANGED
File without changes
plugin-fw/assets/css/overcast/images/ui-bg_inset-soft_50_c9c9c9_1x100.png CHANGED
File without changes
plugin-fw/assets/css/overcast/images/ui-icons_3383bb_256x240.png CHANGED
File without changes
plugin-fw/assets/css/overcast/images/ui-icons_454545_256x240.png CHANGED
File without changes
plugin-fw/assets/css/overcast/images/ui-icons_70b2e1_256x240.png CHANGED
File without changes
plugin-fw/assets/css/overcast/images/ui-icons_999999_256x240.png CHANGED
File without changes
plugin-fw/assets/css/overcast/images/ui-icons_fbc856_256x240.png CHANGED
File without changes
plugin-fw/assets/css/overcast/jquery-ui-custom/jquery-ui-1.8.9.custom.css CHANGED
File without changes
plugin-fw/assets/css/yit-plugin-panel-sidebar.css DELETED
@@ -1,388 +0,0 @@
1
- /*
2
- * This file belongs to the YIT Plugin Framework.
3
- *
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
-
10
- /* === Panel Sidebar === */
11
- #yit-panel-sidebar {
12
- width : 275px;
13
- float : right;
14
- margin : 10px 0 0 10px;
15
- }
16
-
17
- #yit-panel-sidebar.yith-panel-sidebar-hidden {
18
- position : absolute;
19
- top : 0;
20
- right : 0;
21
- }
22
-
23
- #yit-panel-sidebar.yith-panel-sidebar-hidden #yit-panel-sidebar-widgets-container {
24
- display : none;
25
- }
26
-
27
- .yit-panel-sidebar-widget-wrapper {
28
- position : relative;
29
- margin : 10px 0 30px 0;
30
- }
31
-
32
- .yit-panel-sidebar-widget-container {
33
- border-radius : 5px;
34
- border : 1px solid #ddd;
35
- background : #fff;
36
- box-shadow : 0 2px 1px -1px #ccc;
37
- overflow : hidden;
38
- }
39
-
40
- .yit-panel-sidebar-widget-container a {
41
- text-decoration : none;
42
- }
43
-
44
- .yit-panel-sidebar-widget-container img.yit-panel-sidebar-widget-image {
45
- width : 100%;
46
- position : relative;
47
- bottom : -5px;
48
- }
49
-
50
- .yit-panel-sidebar-widget-title {
51
- padding : 12px 10px;
52
- background : #f4f4f4;
53
- font-size : 10px;
54
- text-transform : uppercase;
55
- font-weight : 700;
56
- }
57
-
58
- .yit-panel-sidebar-widget-title.dashicons {
59
- width : auto !important;
60
- height : auto !important;
61
- display : block;
62
- font-family : "Open Sans", sans-serif;
63
- text-align : left;
64
- }
65
-
66
- .yit-panel-sidebar-widget-title.dashicons::before {
67
- font-family : "Dashicons";
68
- font-size : 18px;
69
- display : inline-block;
70
- vertical-align : middle;
71
- margin-right : 10px;
72
- font-weight : normal;
73
- }
74
-
75
- .yit-panel-sidebar-widget-title.orange {
76
- background : #ff643e;
77
- color : #fff;
78
- }
79
-
80
- .yit-panel-sidebar-widget-title.green {
81
- background : #a3c401;
82
- color : #fff;
83
- }
84
-
85
- .yit-panel-sidebar-widget-title.red {
86
- background : #e4313c;
87
- color : #fff;
88
- }
89
-
90
- .yit-panel-sidebar-widget-title.yellow {
91
- background : #ffc400;
92
- color : #333;
93
- }
94
-
95
- .yit-panel-sidebar-widget-title.center {
96
- text-align : center;
97
- }
98
-
99
- .yit-panel-sidebar-widget-title.right {
100
- text-align : right;
101
- }
102
-
103
- .yit-panel-sidebar-widget-content {
104
- padding : 15px;
105
- }
106
-
107
- .yit-panel-sidebar-widget-content p {
108
- font-size : 11px;
109
- line-height : 18px;
110
- margin : 0;
111
- text-align : justify;
112
- }
113
-
114
- .yit-panel-sidebar-widget-badge.gift-tape {
115
- color : #000;
116
- font-family : "Open Sans", sans-serif;
117
- box-sizing : border-box;
118
- position : absolute;
119
- background-color : transparent;
120
- width : 70px;
121
- height : 70px;
122
- overflow : hidden;
123
- top : 0;
124
- right : 0;
125
- }
126
-
127
- .yit-panel-sidebar-widget-badge.gift-tape div.yit-panel-sidebar-widget-badge-text {
128
- background : #ffd600;
129
- background : -webkit-linear-gradient(left, #fe8502, #ffe400); /* For Safari 5.1 to 6.0 */
130
- background : -o-linear-gradient(right, #fe8502, #ffe400); /* For Opera 11.1 to 12.0 */
131
- background : -moz-linear-gradient(right, #fe8502, #ffe400); /* For Firefox 3.6 to 15 */
132
- background : linear-gradient(to right, #fe8502, #ffe400); /* Standard syntax */
133
- font-size : 10px;
134
- font-weight : bold;
135
- line-height : 24px;
136
- position : absolute;
137
- text-align : center;
138
- z-index : 100;
139
- -webkit-transform : rotate(45deg);
140
- -ms-transform : rotate(45deg);
141
- transform : rotate(45deg);
142
- top : 15px;
143
- left : -6px;
144
- width : 100px;
145
- text-shadow : 1px 1px 1px #fff;
146
- }
147
-
148
- img.yit-panel-sidebar-widget-despacho-image {
149
- background : #ffffff;
150
- background : -webkit-linear-gradient(#ffffff, #a5b7c5); /* For Safari 5.1 to 6.0 */
151
- background : -o-linear-gradient(#ffffff, #a5b7c5); /* For Opera 11.1 to 12.0 */
152
- background : -moz-linear-gradient(#ffffff, #a5b7c5); /* For Firefox 3.6 to 15 */
153
- background : linear-gradient(#ffffff, #a5b7c5); /* Standard syntax */
154
- }
155
-
156
- /* ==== Buttons ==== */
157
- #yit-panel-sidebar .button {
158
- color : #ffffff;
159
- border : none;
160
- background : #666666;
161
- -webkit-box-shadow : none;
162
- box-shadow : none;
163
- vertical-align : middle;
164
- text-transform : uppercase;
165
- font-size : 11px;
166
- font-weight : 700;
167
- height : 32px;
168
- line-height : 32px;
169
- padding : 0 18px 1px;
170
- }
171
-
172
- #yit-panel-sidebar .button.orange {
173
- background : #ff6340;
174
- }
175
-
176
- #yit-panel-sidebar .button.green {
177
- background : #a3c401;
178
- }
179
-
180
- #yit-panel-sidebar .button.red {
181
- background : #e4313c;
182
- }
183
-
184
- #yit-panel-sidebar .button.yellow {
185
- background : #ffc400;
186
- }
187
-
188
- /* === Title Icons === */
189
- #yit-panel-sidebar .yit-panel-sidebar-widget-icon:before {
190
- content : " ";
191
- width : 16px;
192
- height : 16px;
193
- display : inline-block;
194
- vertical-align : middle;
195
- margin-right : 10px;
196
- }
197
-
198
- #yit-panel-sidebar .yit-panel-sidebar-widget-icon.link-icon:before {
199
- background : transparent url('../images/widgets/link-icon.png') no-repeat;
200
- background-size : contain;
201
- }
202
-
203
- #yit-panel-sidebar .yit-panel-sidebar-widget-icon.info-icon:before {
204
- background : transparent url('../images/widgets/info-icon.png') no-repeat;
205
- background-size : contain;
206
- }
207
-
208
- #yit-panel-sidebar .yit-panel-sidebar-widget-icon.box-icon:before {
209
- background : transparent url('../images/widgets/box-icon.png') no-repeat;
210
- background-size : contain;
211
- }
212
-
213
- #yit-panel-sidebar .yit-panel-sidebar-widget-icon.box-white-icon:before {
214
- background : transparent url('../images/widgets/box-white-icon.png') no-repeat;
215
- background-size : contain;
216
- }
217
-
218
- /* ==== Membership Widget ==== */
219
- #yit-panel-sidebar-membership-widget {
220
-
221
- }
222
-
223
- #yit-panel-sidebar-membership-widget .yit-panel-sidebar-widget-title {
224
- text-align : center;
225
- }
226
-
227
- #yit-panel-sidebar-membership-widget .yit-panel-sidebar-widget-content {
228
- background : transparent url('../images/widgets/membership-bg.png') no-repeat;
229
- background-position : 105% 160%;
230
- background-size : 50%;
231
- }
232
-
233
- #yit-panel-sidebar-membership-widget .membership-row {
234
- margin-bottom: 20px;
235
- clear : both;
236
- overflow: hidden;
237
- }
238
-
239
- #yit-panel-sidebar-membership-widget .membership-total-price {
240
- font-size : 25px;
241
- font-weight : 700;
242
- display : block;
243
- width : 50%;
244
- box-sizing : border-box;
245
- float : left;
246
- line-height : 37px;
247
-
248
- }
249
-
250
- #yit-panel-sidebar-membership-widget .membership-offer-text {
251
- display : block;
252
- font-size : 10px;
253
- text-transform : uppercase;
254
- width : 50%;
255
- line-height : 14px;
256
- box-sizing : border-box;
257
- float : left;
258
- }
259
-
260
- #yit-panel-sidebar-membership-widget .membership-offer-text2 {
261
- display : block;
262
- font-size : 10px;
263
- text-transform : uppercase;
264
- text-align : right;
265
- vertical-align : middle;
266
- float : left;
267
- }
268
-
269
- #yit-panel-sidebar-membership-widget .membership-offer-sale-text {
270
- display : block;
271
- font-size : 22px;
272
- color : #ff6340;
273
- text-transform : uppercase;
274
- text-align : left;
275
- vertical-align : middle;
276
- margin-left : 6px;
277
- font-weight : 600;
278
- float : left;
279
- }
280
-
281
- #yit-panel-sidebar-membership-widget .membership-buttons {
282
- text-align : center;
283
- margin-bottom : 10px;
284
- }
285
-
286
- /* ==== Important Links Widget ==== */
287
- #yit-panel-sidebar-links-widget .yit-panel-sidebar-widget-content {
288
- background : transparent url('../images/widgets/link-bg.png') no-repeat;
289
- background-position : 110% 120%;
290
- background-size : 50%;
291
- }
292
-
293
- ul.yit-panel-sidebar-links-list {
294
- margin : 0;
295
- }
296
-
297
- ul.yit-panel-sidebar-links-list li {
298
- margin : 0 0 10px 0;
299
- }
300
-
301
- ul.yit-panel-sidebar-links-list li:before {
302
- content : " ";
303
- width : 15px;
304
- height : 13px;
305
- display : inline-block;
306
- background : transparent url('../images/ui-icons_454545_256x240.png') no-repeat -64px -144px;
307
- margin-right : 7px;
308
- }
309
-
310
- /* === Sidebar Actions ===*/
311
- #yit-panel-sidebar-actions {
312
- text-align : right;
313
- }
314
-
315
- .yit-panel-sidebar-action-title {
316
- margin-right : 5px;
317
- text-transform : uppercase;
318
- font-size : 11px;
319
- }
320
-
321
- #yit-panel-sidebar-action-hide {
322
- text-align : right;
323
- cursor : pointer;
324
- }
325
-
326
- .yit-panel-sidebar-action-hide-icon {
327
- color : #f4f4f4;
328
- background : #565656;
329
- border-radius : 50%;
330
- }
331
-
332
- #yit-panel-sidebar-action-hide:hover .yit-panel-sidebar-action-title {
333
- color : #000;
334
- }
335
-
336
- #yit-panel-sidebar-action-hide:hover .yit-panel-sidebar-action-hide-icon {
337
- background : #000;
338
- }
339
-
340
- .hide-on-click .yit-panel-sidebar-action-hide-icon:before {
341
- content : "\f139" !important;
342
- }
343
-
344
- /* === Responsive === */
345
-
346
- @media (min-width : 767px) {
347
- #wpbody-content #yit-panel-sidebar {
348
- margin-right : 15px;
349
- }
350
- }
351
-
352
- @media (max-width : 767px) {
353
- #yit-panel-sidebar {
354
- width : 275px;
355
- margin : 20px auto 0 auto;
356
- float : none;
357
- display : block;
358
- }
359
-
360
- #yit-panel-sidebar.yith-panel-sidebar-hidden {
361
- position : static;
362
- }
363
-
364
- #yit-panel-sidebar-actions {
365
- text-align : center;
366
- }
367
-
368
- #yit-panel-sidebar-action-hide {
369
- text-align : center;
370
- }
371
- }
372
-
373
- @media (max-width : 480px) {
374
-
375
- }
376
-
377
- @media (min-width : 768px) and (max-width : 992px) {
378
- }
379
-
380
- @media (min-width : 980px) and (max-width : 1199px) {
381
- }
382
-
383
- @media (min-width : 1200px) {
384
-
385
- }
386
-
387
- @media only screen and (-webkit-min-device-pixel-ratio : 1.5), only screen and (-o-min-device-pixel-ratio : 3/2), only screen and (min--moz-device-pixel-ratio : 1.5), only screen and (min-device-pixel-ratio : 1.5) {
388
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
plugin-fw/assets/css/yit-plugin-panel.css CHANGED
@@ -675,11 +675,6 @@
675
  position:relative;
676
  }
677
  .yit-admin-panel-content-wrap {
678
- width : calc(100% - 300px);
679
- display : inline-block;
680
- }
681
-
682
- .yit-admin-panel-content-wrap.yit-admin-panel-content-wrap-full {
683
  width : 100%;
684
  display : block;
685
  }
@@ -687,10 +682,7 @@
687
  /* === Responsive === */
688
 
689
  @media (max-width : 767px) {
690
- .yit-admin-panel-content-wrap {
691
- width : 100%;
692
- display : block;
693
- }
694
  }
695
 
696
  @media (max-width : 480px) {
675
  position:relative;
676
  }
677
  .yit-admin-panel-content-wrap {
 
 
 
 
 
678
  width : 100%;
679
  display : block;
680
  }
682
  /* === Responsive === */
683
 
684
  @media (max-width : 767px) {
685
+
 
 
 
686
  }
687
 
688
  @media (max-width : 480px) {
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/images/chosen/chosen-sprite.png CHANGED
File without changes
plugin-fw/assets/images/chosen/chosen-sprite@2x.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/off.png CHANGED
File without changes
plugin-fw/assets/images/on.png CHANGED
File without changes
plugin-fw/assets/images/select.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/slider/grey.gif CHANGED
File without changes
plugin-fw/assets/images/slider/handle.png CHANGED
File without changes
plugin-fw/assets/images/slider/orange.gif CHANGED
File without changes
plugin-fw/assets/images/slider/tooltip.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/widgets/box-icon.png DELETED
Binary file
plugin-fw/assets/images/widgets/box-white-icon.png DELETED
Binary file
plugin-fw/assets/images/widgets/despacho.png DELETED
Binary file
plugin-fw/assets/images/widgets/info-icon.png DELETED
Binary file
plugin-fw/assets/images/widgets/link-bg.png DELETED
Binary file
plugin-fw/assets/images/widgets/link-bg2.png DELETED
Binary file
plugin-fw/assets/images/widgets/link-icon.png DELETED
Binary file
plugin-fw/assets/images/widgets/membership-bg.png DELETED
Binary file
plugin-fw/assets/images/x.png CHANGED
File without changes
plugin-fw/assets/images/yithemes-icon.png CHANGED
File without changes
plugin-fw/assets/js/chosen/ajax-chosen.jquery.js CHANGED
File without changes
plugin-fw/assets/js/chosen/ajax-chosen.jquery.min.js CHANGED
File without changes
plugin-fw/assets/js/chosen/chosen.jquery.js 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/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/panel.spinner.js CHANGED
File without changes
plugin-fw/assets/js/panel.spinner.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-cptu-sortable-posts.js CHANGED
File without changes
plugin-fw/assets/js/yit-plugin-panel-sidebar.js DELETED
@@ -1,56 +0,0 @@
1
- /**
2
- * This file belongs to the YIT Plugin Framework.
3
- *
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
-
10
-
11
- (function ( $ ) {
12
- var hide_sidebar_btn = $( '#yit-panel-sidebar-action-hide' ),
13
- hide_sidebar_text = hide_sidebar_btn.find( '.yit-panel-sidebar-action-title' ),
14
- sidebar = $( '#yit-panel-sidebar' ),
15
- panel_wrapper = $( '.' + sidebar_labels.wrapper_class ),
16
- ajax_hide_option_save_call,
17
- ajax_hide_option_save = function ( option ) {
18
- if ( ajax_hide_option_save_call ) {
19
- ajax_hide_option_save_call.abort();
20
- }
21
-
22
- var post_data = {
23
- option: option,
24
- action: 'yith_plugin_panel_sidebar_set_collapse_option'
25
- };
26
-
27
- ajax_hide_option_save_call = $.ajax( {
28
- type: "POST",
29
- data: post_data,
30
- url: ajaxurl
31
- } );
32
- },
33
- hide_sidebar = function () {
34
- hide_sidebar_btn.removeClass( 'hide-on-click' );
35
- hide_sidebar_text.html( sidebar_labels.show_sidebar );
36
- sidebar.addClass( 'yith-panel-sidebar-hidden' );
37
- panel_wrapper.addClass( 'yit-admin-panel-content-wrap-full' );
38
- ajax_hide_option_save( 'yes' );
39
- },
40
- show_sidebar = function () {
41
- hide_sidebar_btn.addClass( 'hide-on-click' );
42
- hide_sidebar_text.html( sidebar_labels.hide_sidebar );
43
- sidebar.removeClass( 'yith-panel-sidebar-hidden' );
44
- panel_wrapper.removeClass( 'yit-admin-panel-content-wrap-full' );
45
- ajax_hide_option_save( 'no' );
46
- };
47
-
48
- hide_sidebar_btn.on( 'click', function () {
49
- if ( $( this ).is( '.hide-on-click' ) ) {
50
- hide_sidebar();
51
- } else {
52
- show_sidebar();
53
- }
54
- } );
55
-
56
- })( jQuery );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
plugin-fw/assets/js/yit-plugin-panel-sidebar.min.js DELETED
@@ -1 +0,0 @@
1
- !function(a){var i,e=a("#yit-panel-sidebar-action-hide"),n=e.find(".yit-panel-sidebar-action-title"),l=a("#yit-panel-sidebar"),s=a("."+sidebar_labels.wrapper_class),t=function(e){i&&i.abort();var n={option:e,action:"yith_plugin_panel_sidebar_set_collapse_option"};i=a.ajax({type:"POST",data:n,url:ajaxurl})},d=function(){e.removeClass("hide-on-click"),n.html(sidebar_labels.show_sidebar),l.addClass("yith-panel-sidebar-hidden"),s.addClass("yit-admin-panel-content-wrap-full"),t("yes")},o=function(){e.addClass("hide-on-click"),n.html(sidebar_labels.hide_sidebar),l.removeClass("yith-panel-sidebar-hidden"),s.removeClass("yit-admin-panel-content-wrap-full"),t("no")};e.on("click",function(){a(this).is(".hide-on-click")?d():o()})}(jQuery);
 
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/init.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /**
3
  * Framework Name: YIT Plugin Framework
4
- * Version: 2.9.65
5
  * Author: Yithemes
6
  * Text Domain: yith-plugin-fw
7
  * Domain Path: /languages/
1
  <?php
2
  /**
3
  * Framework Name: YIT Plugin Framework
4
+ * Version: 2.9.69
5
  * Author: Yithemes
6
  * Text Domain: yith-plugin-fw
7
  * Domain Path: /languages/
plugin-fw/languages/yith-plugin-fw-es_ES.mo CHANGED
File without changes
plugin-fw/languages/yith-plugin-fw-es_ES.po CHANGED
File without changes
plugin-fw/languages/yith-plugin-fw-it_IT.mo CHANGED
File without changes
plugin-fw/languages/yith-plugin-fw-it_IT.po CHANGED
File without changes
plugin-fw/languages/yith-plugin-fw.pot CHANGED
@@ -5,7 +5,7 @@ msgid ""
5
  msgstr ""
6
  "Project-Id-Version: YITH Plugin Starter 1.0.0 Plugin FW\n"
7
  "Report-Msgid-Bugs-To: Your Inspiration Themes <plugins@yithemes.com>\n"
8
- "POT-Creation-Date: 2016-07-06 15:16+0200\n"
9
  "PO-Revision-Date: 2015-05-05 10:38+0100\n"
10
  "Last-Translator: \n"
11
  "Language-Team: Your Inspiration Themes <info@yithemes.com>\n"
@@ -13,7 +13,7 @@ msgstr ""
13
  "MIME-Version: 1.0\n"
14
  "Content-Type: text/plain; charset=utf-8\n"
15
  "Content-Transfer-Encoding: 8bit\n"
16
- "X-Generator: Poedit 1.8.8\n"
17
  "X-Poedit-KeywordsList: __;_e;_x:1,2c;_ex:1,2c;_n:1,2;_nx:1,2,4c;_n_noop:1,2;"
18
  "_nx_noop:1,2,3c;esc_attr__;esc_html__;esc_attr_e;esc_html_e;esc_attr_x:1,2c;"
19
  "esc_html_x:1,2c\n"
@@ -128,7 +128,7 @@ msgid "%s Settings"
128
  msgstr ""
129
 
130
  #: lib/yit-cpt-unlimited.php:1048 lib/yit-cpt-unlimited.php:1196
131
- #: lib/yit-cpt-unlimited.php:1202 lib/yit-plugin-panel.php:74
132
  msgid "Settings"
133
  msgstr ""
134
 
@@ -220,81 +220,73 @@ msgstr ""
220
  msgid "Upload multiple files"
221
  msgstr ""
222
 
223
- #: lib/yit-plugin-panel-sidebar.php:421 templates/panel/sidebar/sidebar.php:3
224
- msgid "Hide sidebar"
225
- msgstr ""
226
-
227
- #: lib/yit-plugin-panel-sidebar.php:422 templates/panel/sidebar/sidebar.php:3
228
- msgid "Show sidebar"
229
- msgstr ""
230
-
231
- #: lib/yit-plugin-panel-wc.php:374
232
  msgid "The changes you have made will be lost if you leave this page."
233
  msgstr ""
234
 
235
- #: lib/yit-plugin-panel.php:73
236
  msgid "Plugin Settings"
237
  msgstr ""
238
 
239
- #: lib/yit-plugin-panel.php:297 lib/yit-plugin-panel.php:300
240
  msgid "How to install premium version"
241
  msgstr ""
242
 
243
- #: lib/yit-plugin-panel.php:352 lib/yit-plugin-subpanel.php:146
244
  #: templates/panel/woocommerce/woocommerce-form.php:11
245
  msgid "Save Changes"
246
  msgstr ""
247
 
248
- #: lib/yit-plugin-panel.php:355 templates/panel/woocommerce/woocommerce-form.php:14
249
  msgid "If you continue with this action, you will reset all options in this page."
250
  msgstr ""
251
 
252
- #: lib/yit-plugin-panel.php:357 lib/yit-plugin-subpanel.php:151
253
  msgid "Reset to default"
254
  msgstr ""
255
 
256
- #: lib/yit-plugin-panel.php:357 lib/yit-plugin-subpanel.php:151
257
  #: templates/panel/woocommerce/woocommerce-form.php:18
258
  msgid "Are you sure?"
259
  msgstr ""
260
 
261
- #: lib/yit-plugin-panel.php:553
262
  msgid "The element you have entered already exists. Please, enter another name."
263
  msgstr ""
264
 
265
- #: lib/yit-plugin-panel.php:554
266
  msgid "Settings saved"
267
  msgstr ""
268
 
269
- #: lib/yit-plugin-panel.php:555
270
  msgid "Settings reset"
271
  msgstr ""
272
 
273
- #: lib/yit-plugin-panel.php:556
274
  msgid "Element deleted correctly."
275
  msgstr ""
276
 
277
- #: lib/yit-plugin-panel.php:557 lib/yit-plugin-panel.php:558
278
  msgid "Element updated correctly."
279
  msgstr ""
280
 
281
- #: lib/yit-plugin-panel.php:559
282
  msgid "Database imported correctly."
283
  msgstr ""
284
 
285
- #: lib/yit-plugin-panel.php:560
286
  msgid "An error has occurred during import. Please try again."
287
  msgstr ""
288
 
289
- #: lib/yit-plugin-panel.php:561
290
  msgid "The added file is not valid."
291
  msgstr ""
292
 
293
- #: lib/yit-plugin-panel.php:562
294
  msgid "Sorry, import is disabled."
295
  msgstr ""
296
 
297
- #: lib/yit-plugin-panel.php:563
298
  msgid "Sorting successful."
299
  msgstr ""
300
 
@@ -309,9 +301,9 @@ msgstr ""
309
 
310
  #: lib/yit-pointers.php:71
311
  msgid ""
312
- "From now on, you can find all plugin options in YIT Plugin menu.\n"
313
- " For each plugin installed, customization "
314
- "settings will be available as a new entry in YIT Plugin menu."
315
  msgstr ""
316
 
317
  #: lib/yit-pointers.php:73 lib/yit-pointers.php:89
@@ -328,13 +320,13 @@ msgstr ""
328
 
329
  #: lib/yit-pointers.php:85
330
  msgid ""
331
- "From now on, you can find all options of your plugins in YIT Plugin menu.\n"
332
- " Any time one of our plugins is updated, a new "
333
  "entry will be added to this menu.\n"
334
  " For example, after the update, plugin options "
335
  "(such as for YITH WooCommerce Wishlist, YITH WooCommerce Ajax Search, etc.)\n"
336
- " will be moved from previous location to YIT "
337
- "Plugin tab."
338
  msgstr ""
339
 
340
  #: lib/yit-upgrade.php:135
@@ -369,67 +361,68 @@ msgstr ""
369
  msgid "Could not create Temporary file."
370
  msgstr ""
371
 
372
- #: lib/yit-upgrade.php:439
373
  #, php-format
374
  msgid ""
375
  "There is a new version of %1$s available. <a href=\"%2$s\" class=\"thickbox yit-"
376
- "changelog-button\" title=\"%3$s\">View version %4$s details</a>."
 
377
  msgstr ""
378
 
379
- #: lib/yit-upgrade.php:441
380
  #, php-format
381
  msgid ""
382
  "There is a new version of %1$s available. <a href=\"%2$s\" class=\"thickbox yit-"
383
- "changelog-button\" title=\"%3$s\">View version %4$s details</a>. <em>You have to "
384
- "activate the plugin on a single site of the network to benefit from automatic "
385
- "updates.</em>"
386
  msgstr ""
387
 
388
- #: lib/yit-upgrade.php:443
389
  #, php-format
390
  msgid ""
391
  "There is a new version of %1$s available. <a href=\"%2$s\" class=\"thickbox yit-"
392
- "changelog-button\" title=\"%3$s\">View version %4$s details</a>. <em>Automatic "
393
- "update is unavailable for this plugin, please <a href=\"%5$s\" title=\"License "
394
- "activation\">activate</a> your copy of %6s.</em>"
395
  msgstr ""
396
 
397
- #: lib/yit-upgrade.php:445
398
  #, php-format
399
  msgid ""
400
  "There is a new version of %1$s available. <a href=\"%2$s\" class=\"thickbox yit-"
401
- "changelog-button\" title=\"%3$s\">View version %4$s details</a> or <a href=\"%5$s"
402
- "\">update now</a>."
403
  msgstr ""
404
 
405
- #: lib/yit-upgrade.php:517
406
  msgid "You can't update the plugins for this site."
407
  msgstr ""
408
 
409
- #: lib/yit-upgrade.php:521
410
  msgid "You do not have sufficient permissions to update the plugins for this site."
411
  msgstr ""
412
 
413
- #: lib/yit-upgrade.php:528
414
  msgid "Update Plugin"
415
  msgstr ""
416
 
417
- #: licence/lib/yit-licence.php:182
418
  #, php-format
419
  msgctxt "%s = field name"
420
  msgid "%s field cannot be empty"
421
  msgstr ""
422
 
423
- #: licence/lib/yit-licence.php:183
424
  #, php-format
425
  msgid "%s and %s fields cannot be empty"
426
  msgstr ""
427
 
428
- #: licence/lib/yit-licence.php:184
429
  msgid "Unable to contact the remote server, please try again later. Thanks!"
430
  msgstr ""
431
 
432
- #: licence/lib/yit-licence.php:185
433
  #: licence/templates/panel/activation/activation-panel.php:88
434
  #: licence/templates/panel/activation/activation-panel.php:166
435
  #: licence/templates/panel/activation/activation-panel.php:197
@@ -438,62 +431,62 @@ msgstr ""
438
  msgid "Email"
439
  msgstr ""
440
 
441
- #: licence/lib/yit-licence.php:186
442
  #: licence/templates/panel/activation/activation-panel.php:89
443
  #: licence/templates/panel/activation/activation-panel.php:167
444
  #: licence/templates/panel/activation/activation-panel.php:198
445
  msgid "License Key"
446
  msgstr ""
447
 
448
- #: licence/lib/yit-licence.php:187
449
  msgid "Are you sure you want to deactivate the license for current site?"
450
  msgstr ""
451
 
452
- #: licence/lib/yit-licence.php:667
453
  msgid "Invalid Request"
454
  msgstr ""
455
 
456
- #: licence/lib/yit-licence.php:668
457
  msgid "Invalid license key"
458
  msgstr ""
459
 
460
- #: licence/lib/yit-licence.php:669
461
  msgid "Software has been deactivated"
462
  msgstr ""
463
 
464
- #: licence/lib/yit-licence.php:670
465
  msgid "Maximum number of activations exceeded"
466
  msgstr ""
467
 
468
- #: licence/lib/yit-licence.php:671
469
  msgid "Invalid instance ID"
470
  msgstr ""
471
 
472
- #: licence/lib/yit-licence.php:672
473
  msgid "Invalid security key"
474
  msgstr ""
475
 
476
- #: licence/lib/yit-licence.php:673
477
  msgid "License key has expired"
478
  msgstr ""
479
 
480
- #: licence/lib/yit-licence.php:674
481
  msgid "License key has been banned"
482
  msgstr ""
483
 
484
- #: licence/lib/yit-licence.php:675
485
  msgid "Current product is not included in your YITH Club Subscription key"
486
  msgstr ""
487
 
488
- #: licence/lib/yit-licence.php:676
489
  msgid "Great"
490
  msgstr ""
491
 
492
- #: licence/lib/yit-licence.php:676
493
  msgid "License successfully activated"
494
  msgstr ""
495
 
496
- #: licence/lib/yit-licence.php:677
497
  msgid "License key deactivated for website"
498
  msgstr ""
499
 
@@ -969,22 +962,6 @@ msgstr ""
969
  msgid "Italic bold"
970
  msgstr ""
971
 
972
- #: templates/panel/sidebar/widgets/widgets.php:17
973
- msgid "Join the club"
974
- msgstr ""
975
-
976
- #: templates/panel/sidebar/widgets/widgets.php:24
977
- msgid "Despacho Theme - 100% FREE"
978
- msgstr ""
979
-
980
- #: templates/panel/sidebar/widgets/widgets.php:28
981
- msgid "FREE!"
982
- msgstr ""
983
-
984
- #: templates/panel/sidebar/widgets/widgets.php:34
985
- msgid "Important Links"
986
- msgstr ""
987
-
988
  #: templates/panel/types/upload.php:32
989
  msgid "Reset"
990
  msgstr ""
5
  msgstr ""
6
  "Project-Id-Version: YITH Plugin Starter 1.0.0 Plugin FW\n"
7
  "Report-Msgid-Bugs-To: Your Inspiration Themes <plugins@yithemes.com>\n"
8
+ "POT-Creation-Date: 2017-09-27 13:39+0200\n"
9
  "PO-Revision-Date: 2015-05-05 10:38+0100\n"
10
  "Last-Translator: \n"
11
  "Language-Team: Your Inspiration Themes <info@yithemes.com>\n"
13
  "MIME-Version: 1.0\n"
14
  "Content-Type: text/plain; charset=utf-8\n"
15
  "Content-Transfer-Encoding: 8bit\n"
16
+ "X-Generator: Poedit 1.8.9\n"
17
  "X-Poedit-KeywordsList: __;_e;_x:1,2c;_ex:1,2c;_n:1,2;_nx:1,2,4c;_n_noop:1,2;"
18
  "_nx_noop:1,2,3c;esc_attr__;esc_html__;esc_attr_e;esc_html_e;esc_attr_x:1,2c;"
19
  "esc_html_x:1,2c\n"
128
  msgstr ""
129
 
130
  #: lib/yit-cpt-unlimited.php:1048 lib/yit-cpt-unlimited.php:1196
131
+ #: lib/yit-cpt-unlimited.php:1202 lib/yit-plugin-panel.php:69
132
  msgid "Settings"
133
  msgstr ""
134
 
220
  msgid "Upload multiple files"
221
  msgstr ""
222
 
223
+ #: lib/yit-plugin-panel-wc.php:372
 
 
 
 
 
 
 
 
224
  msgid "The changes you have made will be lost if you leave this page."
225
  msgstr ""
226
 
227
+ #: lib/yit-plugin-panel.php:68
228
  msgid "Plugin Settings"
229
  msgstr ""
230
 
231
+ #: lib/yit-plugin-panel.php:291 lib/yit-plugin-panel.php:294
232
  msgid "How to install premium version"
233
  msgstr ""
234
 
235
+ #: lib/yit-plugin-panel.php:345 lib/yit-plugin-subpanel.php:146
236
  #: templates/panel/woocommerce/woocommerce-form.php:11
237
  msgid "Save Changes"
238
  msgstr ""
239
 
240
+ #: lib/yit-plugin-panel.php:348 templates/panel/woocommerce/woocommerce-form.php:14
241
  msgid "If you continue with this action, you will reset all options in this page."
242
  msgstr ""
243
 
244
+ #: lib/yit-plugin-panel.php:350 lib/yit-plugin-subpanel.php:151
245
  msgid "Reset to default"
246
  msgstr ""
247
 
248
+ #: lib/yit-plugin-panel.php:350 lib/yit-plugin-subpanel.php:151
249
  #: templates/panel/woocommerce/woocommerce-form.php:18
250
  msgid "Are you sure?"
251
  msgstr ""
252
 
253
+ #: lib/yit-plugin-panel.php:487
254
  msgid "The element you have entered already exists. Please, enter another name."
255
  msgstr ""
256
 
257
+ #: lib/yit-plugin-panel.php:488
258
  msgid "Settings saved"
259
  msgstr ""
260
 
261
+ #: lib/yit-plugin-panel.php:489
262
  msgid "Settings reset"
263
  msgstr ""
264
 
265
+ #: lib/yit-plugin-panel.php:490
266
  msgid "Element deleted correctly."
267
  msgstr ""
268
 
269
+ #: lib/yit-plugin-panel.php:491 lib/yit-plugin-panel.php:492
270
  msgid "Element updated correctly."
271
  msgstr ""
272
 
273
+ #: lib/yit-plugin-panel.php:493
274
  msgid "Database imported correctly."
275
  msgstr ""
276
 
277
+ #: lib/yit-plugin-panel.php:494
278
  msgid "An error has occurred during import. Please try again."
279
  msgstr ""
280
 
281
+ #: lib/yit-plugin-panel.php:495
282
  msgid "The added file is not valid."
283
  msgstr ""
284
 
285
+ #: lib/yit-plugin-panel.php:496
286
  msgid "Sorry, import is disabled."
287
  msgstr ""
288
 
289
+ #: lib/yit-plugin-panel.php:497
290
  msgid "Sorting successful."
291
  msgstr ""
292
 
301
 
302
  #: lib/yit-pointers.php:71
303
  msgid ""
304
+ "From now on, you can find all plugin options in YITH Plugins menu.\n"
305
+ " Plugin customization settings will be "
306
+ "available as a new entry in YITH Plugins menu."
307
  msgstr ""
308
 
309
  #: lib/yit-pointers.php:73 lib/yit-pointers.php:89
320
 
321
  #: lib/yit-pointers.php:85
322
  msgid ""
323
+ "From now on, you can find the option panel of YITH plugins in YITH Plugins menu.\n"
324
+ " Every time one of our plugins is added, a new "
325
  "entry will be added to this menu.\n"
326
  " For example, after the update, plugin options "
327
  "(such as for YITH WooCommerce Wishlist, YITH WooCommerce Ajax Search, etc.)\n"
328
+ " will be moved from previous location to YITH "
329
+ "Plugins tab."
330
  msgstr ""
331
 
332
  #: lib/yit-upgrade.php:135
361
  msgid "Could not create Temporary file."
362
  msgstr ""
363
 
364
+ #: lib/yit-upgrade.php:446
365
  #, php-format
366
  msgid ""
367
  "There is a new version of %1$s available. <a href=\"%2$s\" class=\"thickbox yit-"
368
+ "changelog-button open-plugin-details-modal\" title=\"%3$s\">View version %4$s "
369
+ "details</a>."
370
  msgstr ""
371
 
372
+ #: lib/yit-upgrade.php:448
373
  #, php-format
374
  msgid ""
375
  "There is a new version of %1$s available. <a href=\"%2$s\" class=\"thickbox yit-"
376
+ "changelog-button open-plugin-details-modal\" title=\"%3$s\">View version %4$s "
377
+ "details</a>. <em>You have to activate the plugin on a single site of the network "
378
+ "to benefit from automatic updates.</em>"
379
  msgstr ""
380
 
381
+ #: lib/yit-upgrade.php:450
382
  #, php-format
383
  msgid ""
384
  "There is a new version of %1$s available. <a href=\"%2$s\" class=\"thickbox yit-"
385
+ "changelog-button open-plugin-details-modal\" title=\"%3$s\">View version %4$s "
386
+ "details</a>. <em>Automatic update is unavailable for this plugin, please <a href="
387
+ "\"%5$s\" title=\"License activation\">activate</a> your copy of %6s.</em>"
388
  msgstr ""
389
 
390
+ #: lib/yit-upgrade.php:452
391
  #, php-format
392
  msgid ""
393
  "There is a new version of %1$s available. <a href=\"%2$s\" class=\"thickbox yit-"
394
+ "changelog-button open-plugin-details-modal\" title=\"%3$s\">View version %4$s "
395
+ "details</a> or <a href=\"%5$s\">update now</a>."
396
  msgstr ""
397
 
398
+ #: lib/yit-upgrade.php:526
399
  msgid "You can't update the plugins for this site."
400
  msgstr ""
401
 
402
+ #: lib/yit-upgrade.php:530
403
  msgid "You do not have sufficient permissions to update the plugins for this site."
404
  msgstr ""
405
 
406
+ #: lib/yit-upgrade.php:537
407
  msgid "Update Plugin"
408
  msgstr ""
409
 
410
+ #: licence/lib/yit-licence.php:183
411
  #, php-format
412
  msgctxt "%s = field name"
413
  msgid "%s field cannot be empty"
414
  msgstr ""
415
 
416
+ #: licence/lib/yit-licence.php:184
417
  #, php-format
418
  msgid "%s and %s fields cannot be empty"
419
  msgstr ""
420
 
421
+ #: licence/lib/yit-licence.php:185
422
  msgid "Unable to contact the remote server, please try again later. Thanks!"
423
  msgstr ""
424
 
425
+ #: licence/lib/yit-licence.php:186
426
  #: licence/templates/panel/activation/activation-panel.php:88
427
  #: licence/templates/panel/activation/activation-panel.php:166
428
  #: licence/templates/panel/activation/activation-panel.php:197
431
  msgid "Email"
432
  msgstr ""
433
 
434
+ #: licence/lib/yit-licence.php:187
435
  #: licence/templates/panel/activation/activation-panel.php:89
436
  #: licence/templates/panel/activation/activation-panel.php:167
437
  #: licence/templates/panel/activation/activation-panel.php:198
438
  msgid "License Key"
439
  msgstr ""
440
 
441
+ #: licence/lib/yit-licence.php:188
442
  msgid "Are you sure you want to deactivate the license for current site?"
443
  msgstr ""
444
 
445
+ #: licence/lib/yit-licence.php:668
446
  msgid "Invalid Request"
447
  msgstr ""
448
 
449
+ #: licence/lib/yit-licence.php:669
450
  msgid "Invalid license key"
451
  msgstr ""
452
 
453
+ #: licence/lib/yit-licence.php:670
454
  msgid "Software has been deactivated"
455
  msgstr ""
456
 
457
+ #: licence/lib/yit-licence.php:671
458
  msgid "Maximum number of activations exceeded"
459
  msgstr ""
460
 
461
+ #: licence/lib/yit-licence.php:672
462
  msgid "Invalid instance ID"
463
  msgstr ""
464
 
465
+ #: licence/lib/yit-licence.php:673
466
  msgid "Invalid security key"
467
  msgstr ""
468
 
469
+ #: licence/lib/yit-licence.php:674
470
  msgid "License key has expired"
471
  msgstr ""
472
 
473
+ #: licence/lib/yit-licence.php:675
474
  msgid "License key has been banned"
475
  msgstr ""
476
 
477
+ #: licence/lib/yit-licence.php:676
478
  msgid "Current product is not included in your YITH Club Subscription key"
479
  msgstr ""
480
 
481
+ #: licence/lib/yit-licence.php:677
482
  msgid "Great"
483
  msgstr ""
484
 
485
+ #: licence/lib/yit-licence.php:677
486
  msgid "License successfully activated"
487
  msgstr ""
488
 
489
+ #: licence/lib/yit-licence.php:678
490
  msgid "License key deactivated for website"
491
  msgstr ""
492
 
962
  msgid "Italic bold"
963
  msgstr ""
964
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
965
  #: templates/panel/types/upload.php:32
966
  msgid "Reset"
967
  msgstr ""
plugin-fw/lib/yit-ajax.php CHANGED
@@ -40,7 +40,7 @@ if ( !class_exists( 'YIT_Ajax' ) ) {
40
  * @author Leanza Francesco <leanzafrancesco@gmail.com>
41
  */
42
  private function __construct() {
43
- add_action( 'wp_ajax_yith_plugin_panel_sidebar_set_collapse_option', array( $this, 'set_ajax_sidebar_collapse_option' ) );
44
  }
45
 
46
  /**
@@ -59,17 +59,6 @@ if ( !class_exists( 'YIT_Ajax' ) ) {
59
 
60
  return self::$_instance;
61
  }
62
-
63
- /**
64
- * Set Sidebar collapse option [AJAX]
65
- */
66
- public function set_ajax_sidebar_collapse_option() {
67
- if ( isset( $_REQUEST[ 'option' ] ) ) {
68
- $option = $_REQUEST[ 'option' ];
69
- update_option( YIT_Plugin_Panel_Sidebar::$collapse_option, $option );
70
- }
71
- die();
72
- }
73
  }
74
  }
75
 
40
  * @author Leanza Francesco <leanzafrancesco@gmail.com>
41
  */
42
  private function __construct() {
43
+
44
  }
45
 
46
  /**
59
 
60
  return self::$_instance;
61
  }
 
 
 
 
 
 
 
 
 
 
 
62
  }
63
  }
64
 
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-panel-sidebar.php DELETED
@@ -1,430 +0,0 @@
1
- <?php
2
- /**
3
- * This file belongs to the YIT Plugin Framework.
4
- *
5
- * This source file is subject to the GNU GENERAL PUBLIC LICENSE (GPL 3.0)
6
- * that is bundled with this package in the file LICENSE.txt.
7
- * It is also available through the world-wide-web at this URL:
8
- * http://www.gnu.org/licenses/gpl-3.0.txt
9
- */
10
-
11
- if ( !defined( 'ABSPATH' ) ) {
12
- exit;
13
- } // Exit if accessed directly
14
-
15
- if ( !class_exists( 'YIT_Plugin_Panel_Sidebar' ) ) {
16
- /**
17
- * YIT Plugin Panel Sidebar
18
- *
19
- * @class YIT_Plugin_Panel_Sidebar
20
- * @package Yithemes
21
- * @since 1.0
22
- * @author Leanza Francesco <leanzafrancesco@gmail.com>
23
- */
24
- class YIT_Plugin_Panel_Sidebar {
25
- /**
26
- * @var string version of class
27
- */
28
- public $version = '1.0.1';
29
-
30
-
31
- /**
32
- * @var array array of widgets
33
- */
34
- public $widgets = array();
35
-
36
- /**
37
- * @type string
38
- */
39
- protected $_remote_widget_xml = 'http://bit.ly/1UJ83xN';
40
-
41
- /**
42
- * default priority for Remote Widgets
43
- *
44
- * @type int
45
- */
46
- public $default_remote_widget_priority = 40;
47
-
48
- /**
49
- * parent panel
50
- *
51
- * @var YIT_Plugin_Panel
52
- */
53
- public $panel;
54
-
55
- private $_is_collapsed;
56
-
57
- /**
58
- * @type string
59
- */
60
- public static $transient_remote_widgets = 'yit_panel_sidebar_remote_widgets';
61
-
62
- /**
63
- * @type string
64
- */
65
- public static $transient_updated_remote_widgets = 'yit_panel_sidebar_remote_widgets_update';
66
-
67
- /**
68
- * @type string
69
- */
70
- public static $collapse_option = 'yith_plugin_panel_sidebar_collapse';
71
-
72
- /**
73
- * Constructor
74
- *
75
- * @param YIT_Plugin_Panel $panel the parent panel
76
- *
77
- * @since 1.0
78
- * @author Leanza Francesco <leanzafrancesco@gmail.com>
79
- */
80
- private function __construct( $panel ) {
81
- $this->panel = $panel;
82
-
83
- /* load and sort default widgets and remote widgets */
84
- $this->load_widgets();
85
-
86
- add_action( 'admin_enqueue_scripts', array( $this, 'admin_enqueue_scripts' ) );
87
- add_filter( 'yit_admin_panel_content_class', array( $this, 'filter_admin_panel_content_class' ) );
88
- }
89
-
90
- /**
91
- * get instance
92
- *
93
- * @static
94
- * @return YIT_Plugin_Panel_Sidebar
95
- *
96
- * @since 1.0
97
- * @author Leanza Francesco <leanzafrancesco@gmail.com>
98
- */
99
- public static function instance( $panel ) {
100
- return new self( $panel );
101
- }
102
-
103
- /**
104
- * return true if is collapsed by option
105
- *
106
- * @return bool
107
- */
108
- public function is_collapsed() {
109
- if ( !isset( $this->_is_collapsed ) ) {
110
- $this->_is_collapsed = get_option( self::$collapse_option, 'no' ) === 'yes';
111
- }
112
-
113
- return $this->_is_collapsed;
114
- }
115
-
116
- /**
117
- * if is collapsed add a class to panel wrapper
118
- *
119
- * @param $class
120
- *
121
- * @return string
122
- */
123
- public function filter_admin_panel_content_class( $class ) {
124
- if ( $this->is_collapsed() ) {
125
- $class .= ' yit-admin-panel-content-wrap-full';
126
- }
127
-
128
- return $class;
129
- }
130
-
131
- /**
132
- * Add one or more widgets to $this->widgets
133
- *
134
- * @param array $widgets
135
- */
136
- public function add_widgets( $widgets ) {
137
- $this->widgets = array_merge( $this->widgets, $widgets );
138
- }
139
-
140
- /**
141
- * delete transients
142
- */
143
- public static function delete_transients() {
144
- delete_transient( self::$transient_remote_widgets );
145
- delete_transient( self::$transient_updated_remote_widgets );
146
- }
147
-
148
- /**
149
- * filter and sort widgets
150
- */
151
- private function _filter_and_sort_widgets() {
152
- /* filter widgets */
153
- $page_name = isset( $this->panel->settings[ 'page' ] ) ? $this->panel->settings[ 'page' ] : '';
154
- $this->widgets = apply_filters( 'yit_plugin_panel_sidebar_widgets', $this->widgets, $page_name );
155
-
156
- /*sort widgets*/
157
- uasort( $this->widgets, array( $this, 'sort_widgets' ) );
158
- }
159
-
160
- /**
161
- * get Remote Widget by XML from YIThemes
162
- *
163
- * @return array
164
- *
165
- * @since 1.0
166
- * @author Leanza Francesco <leanzafrancesco@gmail.com>
167
- */
168
- public function get_remote_widgets() {
169
- $load_remote_widgets = apply_filters( 'yit_panel_sidebar_load_remote_widgets', true );
170
- if ( !$load_remote_widgets )
171
- return array();
172
-
173
- $remote_widgets = get_transient( self::$transient_remote_widgets );
174
- $updated = get_transient( self::$transient_updated_remote_widgets );
175
- $is_debug = defined( 'YIT_FW_REMOTE_WIDGETS_DEBUG' ) && YIT_FW_REMOTE_WIDGETS_DEBUG;
176
-
177
- if ( $is_debug || $updated === false || $remote_widgets === false ) {
178
- $remote_widgets = array();
179
- } else {
180
- return $remote_widgets;
181
- }
182
-
183
- $expiration = 1 * DAY_IN_SECONDS;
184
- $updated_expiration = DAY_IN_SECONDS; // update frequency
185
-
186
- $remote_xml = wp_remote_get( $this->_remote_widget_xml );
187
- if ( !is_wp_error( $remote_xml ) && isset( $remote_xml[ 'response' ][ 'code' ] ) && '200' == $remote_xml[ 'response' ][ 'code' ] && class_exists( 'SimpleXmlElement' ) ) {
188
- try {
189
- // suppress all XML errors when loading the document
190
- libxml_use_internal_errors( true );
191
-
192
- $xml_data = new SimpleXmlElement( $remote_xml[ 'body' ] );
193
- $xml_remote_widgets = isset( $xml_data->widget ) ? $xml_data->widget : array();
194
-
195
- $enabled_args = array(
196
- 'title',
197
- 'icon',
198
- 'content',
199
- 'class',
200
- 'title_class',
201
- 'badge',
202
- 'badge_text',
203
- 'image',
204
- 'image_class',
205
- 'priority',
206
- 'starting',
207
- 'expiration',
208
- );
209
-
210
- $last_remote_priority = $this->default_remote_widget_priority;
211
-
212
- foreach ( $xml_remote_widgets as $xml_widget ) {
213
- if ( !isset( $xml_widget->id ) )
214
- continue;
215
-
216
- $widget_id = (string) $xml_widget->id;
217
- $widget_array = array();
218
- foreach ( $enabled_args as $key ) {
219
- if ( isset( $xml_widget->$key ) ) {
220
- $widget_array[ $key ] = (string) $xml_widget->$key;
221
- } else {
222
- if ( $key == 'priority' ) {
223
- $widget_array[ $key ] = $last_remote_priority;
224
- $last_remote_priority += 10;
225
- }
226
- }
227
- }
228
- $remote_widgets[ $widget_id ] = $widget_array;
229
- }
230
-
231
- $xml_expiration = isset( $xml_data->expiration ) ? (string) $xml_data->expiration : '';
232
- if ( !empty( $xml_expiration ) ) {
233
- $expiration = strtotime( $xml_expiration ) - strtotime( 'now' );
234
- // if the XML is expired removes widgets
235
- if ( $expiration < 1 )
236
- $remote_widgets = array();
237
-
238
- $is_urgent = isset( $xml_data->urgent ) ? !!$xml_data->urgent : false;
239
- $is_urgent = true;
240
- if ( !$is_urgent ) {
241
- $four_days_random = mt_rand( 0, 4 * DAY_IN_SECONDS );
242
- $expiration += $four_days_random;
243
- } else {
244
- /**
245
- * - - - - - U R G E N T - - - - -
246
- * it will be updated the exact day, BUT in different time! :)
247
- * [to prevent too many request at the same time]
248
- */
249
- $one_day_random = mt_rand( 0, DAY_IN_SECONDS );
250
- $expiration += $one_day_random;
251
- }
252
- }
253
-
254
- $four_days_random = mt_rand( 0, 4 * DAY_IN_SECONDS );
255
-
256
- /* to prevent multiple request if it's expired */
257
- if ( $expiration < 1 ) {
258
- $expiration = 1 * DAY_IN_SECONDS + $four_days_random;
259
- }
260
- } catch ( Exception $e ) {
261
-
262
- }
263
-
264
- //$updated_expiration = 30 * DAY_IN_SECONDS + $four_days_random;
265
- }
266
-
267
- set_transient( self::$transient_remote_widgets, $remote_widgets, $expiration );
268
- set_transient( self::$transient_updated_remote_widgets, true, $updated_expiration );
269
-
270
- return $remote_widgets;
271
- }
272
-
273
- /**
274
- * load and sort default widgets and remote widgets
275
- *
276
- * @since 1.0
277
- * @author Leanza Francesco <leanzafrancesco@gmail.com>
278
- */
279
- public function load_widgets() {
280
- /* get static widgets */
281
- $this->widgets = include( YIT_CORE_PLUGIN_TEMPLATE_PATH . '/panel/sidebar/widgets/widgets.php' );
282
-
283
- /* get remote widgets */
284
- $remote_widgets = $this->get_remote_widgets();
285
- $this->add_widgets( $remote_widgets );
286
- }
287
-
288
- /**
289
- * Print the panel sidebar
290
- *
291
- * @return void
292
- *
293
- * @since 1.0
294
- * @author Leanza Francesco <leanzafrancesco@gmail.com>
295
- */
296
- public function print_panel_sidebar() {
297
- do_action( 'yit_panel_before_sidebar' );
298
-
299
- include( YIT_CORE_PLUGIN_TEMPLATE_PATH . '/panel/sidebar/sidebar.php' );
300
-
301
- do_action( 'yit_panel_after_sidebar' );
302
- }
303
-
304
- /**
305
- * Print the panel sidebar widgets
306
- *
307
- * @return void
308
- *
309
- * @since 1.0
310
- * @author Leanza Francesco <leanzafrancesco@gmail.com>
311
- */
312
- public function print_panel_sidebar_widgets() {
313
- $basename = YIT_CORE_PLUGIN_PATH;
314
- $path = '/panel/sidebar/widget.php';
315
-
316
- $default_args = array(
317
- 'id' => '',
318
- 'title' => '',
319
- 'icon' => '',
320
- 'content' => '',
321
- 'class' => '',
322
- 'title_class' => '',
323
- 'template' => '',
324
- 'badge' => '',
325
- 'badge_text' => '',
326
- 'image' => '',
327
- 'image_class' => '',
328
- 'args' => array(),
329
- 'hide_if_empty_args' => '',
330
- 'priority' => 10,
331
- 'starting' => '',
332
- 'expiration' => '',
333
- );
334
-
335
- $this->_filter_and_sort_widgets();
336
-
337
- foreach ( $this->widgets as $widget_id => $widget ) {
338
- $args = array_merge( $widget, array( 'id' => $widget_id ) );
339
- $args = wp_parse_args( $args, $default_args );
340
-
341
- $is_started = empty( $args[ 'starting' ] ) || strtotime( $args[ 'starting' ] . ' midnight' ) <= strtotime( 'midnight' );
342
- $is_expired = !empty( $args[ 'expiration' ] ) && strtotime( $args[ 'expiration' ] . ' midnight' ) < strtotime( 'midnight' );
343
-
344
- if ( $is_expired || !$is_started )
345
- continue;
346
-
347
- if ( !empty( $args[ 'hide_if_empty_args' ] ) ) {
348
- $hide_if_empty_args = $args[ 'hide_if_empty_args' ];
349
- $continue = false;
350
- foreach ( $hide_if_empty_args as $hide_if_empty_arg ) {
351
- if ( empty( $args[ 'args' ][ $hide_if_empty_arg ] ) ) {
352
- $continue = true;
353
- break;
354
- }
355
- }
356
- if ( $continue )
357
- continue;
358
- }
359
-
360
- do_action( 'yit_panel_sidebar_before_widget', $widget_id, $widget );
361
-
362
- yit_plugin_get_template( $basename, $path, $args );
363
-
364
- do_action( 'yit_panel_sidebar_after_widget', $widget_id, $widget );
365
- }
366
- }
367
-
368
- /**
369
- * set transient for first activation
370
- * to prevent too many calls to YIThemes
371
- */
372
- public static function set_transient_for_first_activation() {
373
- $remote_widgets = get_transient( self::$transient_remote_widgets );
374
- $updated = get_transient( self::$transient_updated_remote_widgets );
375
-
376
- $first_activation = $updated === false && $remote_widgets === false;
377
- if ( $first_activation ) {
378
- $seven_days_random = mt_rand( 0, 7 * DAY_IN_SECONDS );
379
- $expiration = 1 * DAY_IN_SECONDS + $seven_days_random;
380
-
381
- set_transient( self::$transient_remote_widgets, array(), $expiration );
382
- set_transient( self::$transient_updated_remote_widgets, true, $expiration );
383
- }
384
- }
385
-
386
- /**
387
- * Sort widgets by priority
388
- *
389
- * @param $a
390
- * @param $b
391
- *
392
- * @return bool
393
- *
394
- * @since 1.0
395
- * @author Leanza Francesco <leanzafrancesco@gmail.com>
396
- */
397
- public function sort_widgets( $a, $b ) {
398
- $priority_a = isset( $a[ 'priority' ] ) ? intval( $a[ 'priority' ] ) : $this->default_remote_widget_priority;
399
- $priority_b = isset( $b[ 'priority' ] ) ? intval( $b[ 'priority' ] ) : $this->default_remote_widget_priority;
400
- if ( $priority_a == $priority_b ) {
401
- return 0;
402
- } elseif ( $priority_a > $priority_b ) {
403
- return 1;
404
- } else {
405
- return -1;
406
- }
407
- }
408
-
409
- /**
410
- * Add Admin WC Style and Scripts
411
- *
412
- * @return void
413
- *
414
- * @since 1.0
415
- * @author Leanza Francesco <leanzafrancesco@gmail.com
416
- */
417
- public function admin_enqueue_scripts() {
418
- $min = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
419
-
420
- wp_enqueue_style( 'opensans-font', '//fonts.googleapis.com/css?family=Open+Sans:400,500,600,700,800,100,200,300,900' );
421
- wp_enqueue_style( 'yit-plugin-sidebar-style', YIT_CORE_PLUGIN_URL . '/assets/css/yit-plugin-panel-sidebar.css', $this->version );
422
- wp_enqueue_script( 'yit-plugin-sidebar-js', YIT_CORE_PLUGIN_URL . '/assets/js/yit-plugin-panel-sidebar' . $min . '.js', array( 'jquery' ), $this->version, true );
423
- wp_localize_script( 'yit-plugin-sidebar-js', 'sidebar_labels', array(
424
- 'hide_sidebar' => __( 'Hide sidebar', 'yith-plugin-fw' ),
425
- 'show_sidebar' => __( 'Show sidebar', 'yith-plugin-fw' ),
426
- 'wrapper_class' => 'yit-admin-panel-content-wrap',
427
- ) );
428
- }
429
- }
430
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
plugin-fw/lib/yit-plugin-panel-wc.php CHANGED
@@ -64,6 +64,8 @@ if ( ! class_exists( 'YIT_Plugin_Panel_WooCommerce' ) ) {
64
  'image_width'
65
  );
66
 
 
 
67
  if ( ! empty( $args ) ) {
68
  $this->settings = $args;
69
  $this->_tabs_path_files = $this->get_tabs_path_files();
@@ -92,9 +94,6 @@ if ( ! class_exists( 'YIT_Plugin_Panel_WooCommerce' ) ) {
92
  /* WooCommerce 2.4 Support */
93
  add_filter( 'admin_body_class', array( $this, 'admin_body_class' ) );
94
  }
95
-
96
- /* add YIT Plugin sidebar */
97
- $this->sidebar = YIT_Plugin_Panel_Sidebar::instance( $this );
98
  }
99
 
100
 
@@ -249,10 +248,9 @@ if ( ! class_exists( 'YIT_Plugin_Panel_WooCommerce' ) ) {
249
  $yit_options = $this->get_main_array_options();
250
  $current_tab = $this->get_current_tab();
251
  $custom_tab_action = $this->is_custom_tab( $yit_options, $current_tab );
252
- $hide_sidebar = $this->hide_sidebar( $yit_options, $current_tab );
253
 
254
  if ( $custom_tab_action ) {
255
- $this->print_custom_tab( $custom_tab_action, $hide_sidebar );
256
  return;
257
  }
258
  else {
64
  'image_width'
65
  );
66
 
67
+ $args = apply_filters( 'yit_plugin_fw_wc_panel_option_args', $args );
68
+
69
  if ( ! empty( $args ) ) {
70
  $this->settings = $args;
71
  $this->_tabs_path_files = $this->get_tabs_path_files();
94
  /* WooCommerce 2.4 Support */
95
  add_filter( 'admin_body_class', array( $this, 'admin_body_class' ) );
96
  }
 
 
 
97
  }
98
 
99
 
248
  $yit_options = $this->get_main_array_options();
249
  $current_tab = $this->get_current_tab();
250
  $custom_tab_action = $this->is_custom_tab( $yit_options, $current_tab );
 
251
 
252
  if ( $custom_tab_action ) {
253
+ $this->print_custom_tab( $custom_tab_action);
254
  return;
255
  }
256
  else {
plugin-fw/lib/yit-plugin-panel.php CHANGED
@@ -46,11 +46,6 @@ if ( ! class_exists( 'YIT_Plugin_Panel' ) ) {
46
  */
47
  private $_main_array_options = array();
48
 
49
- /**
50
- * @var YIT_Plugin_Panel_Sidebar
51
- */
52
- public $sidebar;
53
-
54
  /**
55
  * @var array
56
  */
@@ -77,7 +72,9 @@ if ( ! class_exists( 'YIT_Plugin_Panel' ) ) {
77
  'position' => null
78
  );
79
 
80
- $this->settings = wp_parse_args( $args, $default_args );
 
 
81
  $this->_tabs_path_files = $this->get_tabs_path_files();
82
 
83
  if ( isset( $this->settings['create_menu_page'] ) && $this->settings['create_menu_page'] ) {
@@ -95,9 +92,6 @@ if ( ! class_exists( 'YIT_Plugin_Panel' ) ) {
95
  add_action( 'admin_init', array( $this, 'add_fields' ) );
96
  }
97
 
98
- /* add YIT Plugin sidebar */
99
- $this->sidebar = YIT_Plugin_Panel_Sidebar::instance( $this );
100
-
101
  add_action( 'admin_enqueue_scripts', array( $this, 'admin_enqueue_scripts' ) );
102
  }
103
 
@@ -329,15 +323,14 @@ if ( ! class_exists( 'YIT_Plugin_Panel' ) ) {
329
  </h2>
330
  <?php
331
  $custom_tab_action = $this->is_custom_tab( $yit_options, $current_tab );
332
- $hide_sidebar = $this->hide_sidebar();
333
  if ( $custom_tab_action ) {
334
- $this->print_custom_tab( $custom_tab_action, $hide_sidebar );
335
  return;
336
  }
337
  ?>
338
  <?php $this->print_video_box(); ?>
339
  <?php
340
- $panel_content_class = !$hide_sidebar ? apply_filters( 'yit_admin_panel_content_class', 'yit-admin-panel-content-wrap' ) : 'yit-admin-panel-content-wrap-no-sidebar';
341
  ?>
342
  <div id="wrap" class="plugin-option yit-admin-panel-container">
343
  <?php $this->message(); ?>
@@ -359,13 +352,6 @@ if ( ! class_exists( 'YIT_Plugin_Panel' ) ) {
359
  <p>&nbsp;</p>
360
  <?php endif ?>
361
  </div>
362
- <?php
363
- /**
364
- * Add panel Sidebar
365
- */
366
- if ( !$hide_sidebar )
367
- $this->print_panel_sidebar();
368
- ?>
369
  </div>
370
  <?php
371
  }
@@ -382,71 +368,19 @@ if ( ! class_exists( 'YIT_Plugin_Panel' ) ) {
382
  return false;
383
  }
384
 
385
- /**
386
- * Print the panel sidebar
387
- *
388
- * @return void
389
- * @since 1.0
390
- * @author Leanza Francesco <leanzafrancesco@gmail.com>
391
- */
392
- public function print_panel_sidebar() {
393
- $this->sidebar->print_panel_sidebar();
394
- }
395
-
396
- /**
397
- * @param $options
398
- * @param $current_tab
399
- *
400
- * @return bool
401
- *
402
- * @author Leanza Francesco <leanzafrancesco@gmail.com>
403
- */
404
- public function hide_sidebar( $options = '', $current_tab = '' ) {
405
- if ( $options === '' )
406
- $options = $this->get_main_array_options();
407
- if ( $current_tab === '' )
408
- $current_tab = $this->get_current_tab();
409
-
410
- $hide = false;
411
-
412
- foreach ( $options[ $current_tab ] as $section => $option ) {
413
- if ( isset( $option[ 'hide_sidebar' ] ) ) {
414
- $hide = !!$option[ 'hide_sidebar' ];
415
- }
416
- break;
417
- }
418
-
419
- $page = isset( $this->settings[ 'page' ] ) ? $this->settings[ 'page' ] : '';
420
-
421
- return apply_filters( 'yit_panel_hide_sidebar', $hide, $page );
422
- }
423
-
424
  /**
425
  * Fire the action to print the custom tab
426
  *
427
  *
428
  * @param string $action Action to fire
429
- * @param bool $hide_sidebar
430
  *
431
  * @return void
432
  * @since 1.0
433
  * @author Andrea Grillo <andrea.grillo@yithemes.com>
434
  * @author Leanza Francesco <leanzafrancesco@gmail.com>
435
  */
436
- public function print_custom_tab( $action, $hide_sidebar = false ) {
437
- if ( !$hide_sidebar ) {
438
- $panel_content_class = apply_filters( 'yit_admin_panel_content_class', 'yit-admin-panel-content-wrap' ) ;
439
- echo "<div class='yit-admin-panel-container'>";
440
- echo "<div class='$panel_content_class'>";
441
-
442
- do_action( $action );
443
-
444
- echo "</div>";
445
- $this->print_panel_sidebar();
446
- echo "</div>";
447
- } else {
448
- do_action( $action );
449
- }
450
  }
451
 
452
  /**
46
  */
47
  private $_main_array_options = array();
48
 
 
 
 
 
 
49
  /**
50
  * @var array
51
  */
72
  'position' => null
73
  );
74
 
75
+ $args = apply_filters( 'yit_plugin_fw_panel_option_args', wp_parse_args( $args, $default_args ) );
76
+
77
+ $this->settings = $args;
78
  $this->_tabs_path_files = $this->get_tabs_path_files();
79
 
80
  if ( isset( $this->settings['create_menu_page'] ) && $this->settings['create_menu_page'] ) {
92
  add_action( 'admin_init', array( $this, 'add_fields' ) );
93
  }
94
 
 
 
 
95
  add_action( 'admin_enqueue_scripts', array( $this, 'admin_enqueue_scripts' ) );
96
  }
97
 
323
  </h2>
324
  <?php
325
  $custom_tab_action = $this->is_custom_tab( $yit_options, $current_tab );
 
326
  if ( $custom_tab_action ) {
327
+ $this->print_custom_tab( $custom_tab_action );
328
  return;
329
  }
330
  ?>
331
  <?php $this->print_video_box(); ?>
332
  <?php
333
+ $panel_content_class = apply_filters( 'yit_admin_panel_content_class', 'yit-admin-panel-content-wrap' );
334
  ?>
335
  <div id="wrap" class="plugin-option yit-admin-panel-container">
336
  <?php $this->message(); ?>
352
  <p>&nbsp;</p>
353
  <?php endif ?>
354
  </div>
 
 
 
 
 
 
 
355
  </div>
356
  <?php
357
  }
368
  return false;
369
  }
370
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
371
  /**
372
  * Fire the action to print the custom tab
373
  *
374
  *
375
  * @param string $action Action to fire
 
376
  *
377
  * @return void
378
  * @since 1.0
379
  * @author Andrea Grillo <andrea.grillo@yithemes.com>
380
  * @author Leanza Francesco <leanzafrancesco@gmail.com>
381
  */
382
+ public function print_custom_tab( $action) {
383
+ do_action( $action );
 
 
 
 
 
 
 
 
 
 
 
 
384
  }
385
 
386
  /**
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-upgrade.php CHANGED
File without changes
plugin-fw/lib/yit-video.php CHANGED
File without changes
plugin-fw/licence/assets/css/yit-licence.css CHANGED
File without changes
plugin-fw/licence/assets/images/licence-error.png CHANGED
File without changes
plugin-fw/licence/assets/js/yit-licence.js CHANGED
File without changes
plugin-fw/licence/assets/js/yit-licence.min.js CHANGED
File without changes
plugin-fw/licence/lib/yit-licence.php CHANGED
File without changes
plugin-fw/licence/lib/yit-plugin-licence.php CHANGED
File without changes
plugin-fw/licence/lib/yit-theme-licence.php CHANGED
File without changes
plugin-fw/licence/templates/panel/activation/activation-panel.php CHANGED
File without changes
plugin-fw/templates/metaboxes/tab.php CHANGED
File without changes
plugin-fw/templates/metaboxes/types/ajax-products.php CHANGED
File without changes
plugin-fw/templates/metaboxes/types/categories.php CHANGED
File without changes
plugin-fw/templates/metaboxes/types/checkbox.php CHANGED
File without changes
plugin-fw/templates/metaboxes/types/chosen.php CHANGED
File without changes
plugin-fw/templates/metaboxes/types/colorpicker.php CHANGED
File without changes
plugin-fw/templates/metaboxes/types/contactform.php CHANGED
File without changes
plugin-fw/templates/metaboxes/types/customtabs.php CHANGED
File without changes
plugin-fw/templates/metaboxes/types/datepicker.php CHANGED
File without changes
plugin-fw/templates/metaboxes/types/hidden.php CHANGED
File without changes
plugin-fw/templates/metaboxes/types/icon-list.php CHANGED
File without changes
plugin-fw/templates/metaboxes/types/image-gallery.php CHANGED
File without changes
plugin-fw/templates/metaboxes/types/images.php CHANGED
File without changes
plugin-fw/templates/metaboxes/types/number.php CHANGED
File without changes
plugin-fw/templates/metaboxes/types/onoff.php CHANGED
File without changes
plugin-fw/templates/metaboxes/types/preview.php CHANGED
File without changes
plugin-fw/templates/metaboxes/types/responsivesliders.php CHANGED
File without changes
plugin-fw/templates/metaboxes/types/select-icon.php CHANGED
File without changes
plugin-fw/templates/metaboxes/types/select-mailchimp.php CHANGED
File without changes
plugin-fw/templates/metaboxes/types/select.php CHANGED
File without changes
plugin-fw/templates/metaboxes/types/sep.php CHANGED
File without changes
plugin-fw/templates/metaboxes/types/sidebar-layout.php CHANGED
File without changes
plugin-fw/templates/metaboxes/types/sidebarlist.php CHANGED
File without changes
plugin-fw/templates/metaboxes/types/sidebars.php CHANGED
File without changes
plugin-fw/templates/metaboxes/types/simple-text.php CHANGED
File without changes
plugin-fw/templates/metaboxes/types/slider.php CHANGED
File without changes
plugin-fw/templates/metaboxes/types/text-array.php CHANGED
File without changes
plugin-fw/templates/metaboxes/types/text.php CHANGED
File without changes
plugin-fw/templates/metaboxes/types/textarea-editor.php CHANGED
File without changes
plugin-fw/templates/metaboxes/types/textarea.php CHANGED
File without changes
plugin-fw/templates/metaboxes/types/title.php CHANGED
File without changes
plugin-fw/templates/metaboxes/types/typography.php CHANGED
File without changes
plugin-fw/templates/metaboxes/types/upload.php CHANGED
File without changes
plugin-fw/templates/panel/infobox.php CHANGED
File without changes
plugin-fw/templates/panel/sidebar/sidebar.php DELETED
@@ -1,20 +0,0 @@
1
- <?php
2
- $sidebar_action_hide_class = $this->is_collapsed() ? '' : 'hide-on-click';
3
- $sidebar_action_hide_title = $this->is_collapsed() ? __( 'Show sidebar', 'yith-plugin-fw' ) : __( 'Hide sidebar', 'yith-plugin-fw' );
4
- $sidebar_class = $this->is_collapsed() ? 'yith-panel-sidebar-hidden' : '';
5
- ?>
6
-
7
-
8
- <div id="yit-panel-sidebar" class="<?php echo $sidebar_class; ?>">
9
- <div id="yit-panel-sidebar-actions">
10
- <div id="yit-panel-sidebar-action-hide" class="<?php echo $sidebar_action_hide_class; ?>">
11
- <span class="yit-panel-sidebar-action-title"><?php echo $sidebar_action_hide_title; ?></span>
12
- <span class="yit-panel-sidebar-action-hide-icon dashicons dashicons-arrow-left"></span>
13
- </div>
14
- </div>
15
- <div id="yit-panel-sidebar-widgets-container">
16
- <?php
17
- $this->print_panel_sidebar_widgets();
18
- ?>
19
- </div>
20
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
plugin-fw/templates/panel/sidebar/widget.php DELETED
@@ -1,53 +0,0 @@
1
- <?php
2
- /**
3
- * @var string $id
4
- * @var string $title
5
- * @var string $content
6
- * @var string $class
7
- * @var string $title_class
8
- * @var string $template
9
- * @var string $badge
10
- * @var string $badge_text
11
- * @var string $image
12
- * @var array $args
13
- * @var string $icon
14
- *
15
- */
16
-
17
- if ( !empty( $template ) ) {
18
- ob_start();
19
- $basename = YIT_CORE_PLUGIN_PATH;
20
- $path = '/panel/sidebar/widgets/widget-' . $template . '.php';
21
- yit_plugin_get_template( $basename, $path, $args );
22
- $content = ob_get_clean();
23
- }
24
-
25
- if ( !empty( $icon ) ) {
26
- $title_class .= ' yit-panel-sidebar-widget-icon ' . $icon . '-icon';
27
- }
28
-
29
- ?>
30
-
31
- <div id="yit-panel-sidebar-<?php echo $id ?>-widget" class="yit-panel-sidebar-widget-wrapper <?php echo $class; ?>">
32
- <div class="yit-panel-sidebar-widget-container">
33
- <?php if ( !empty( $title ) ): ?>
34
- <div class="yit-panel-sidebar-widget-title <?php echo $title_class; ?>">
35
- <?php echo $title; ?>
36
- </div>
37
- <?php endif; ?>
38
- <div class="yit-panel-sidebar-widget-content"><?php echo $content; ?></div>
39
- <?php
40
- if ( !empty( $image ) ) {
41
- $path = YIT_CORE_PLUGIN_URL . '/assets/images/widgets/' . $image;
42
- echo "<img class='yit-panel-sidebar-widget-image $image_class' src='{$path}' alt='' width='100%'/>";
43
- }
44
- ?>
45
- </div>
46
- <?php
47
- if ( !empty( $badge ) ) {
48
- $basename = YIT_CORE_PLUGIN_PATH;
49
- $path = '/panel/sidebar/widgets/badges/badge.php';
50
- yit_plugin_get_template( $basename, $path, array( 'text' => $badge_text, 'type' => $badge ) );
51
- }
52
- ?>
53
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
plugin-fw/templates/panel/sidebar/widgets/badges/badge.php DELETED
@@ -1,11 +0,0 @@
1
- <?php
2
- /**
3
- * @var string $type
4
- */
5
- ?>
6
-
7
- <div class="yit-panel-sidebar-widget-badge <?php echo $type; ?>">
8
- <div class="yit-panel-sidebar-widget-badge-s1"></div>
9
- <div class="yit-panel-sidebar-widget-badge-s2"></div>
10
- <div class="yit-panel-sidebar-widget-badge-text"><?php echo $text ?></div>
11
- </div>
 
 
 
 
 
 
 
 
 
 
 
plugin-fw/templates/panel/sidebar/widgets/widget-despacho.php DELETED
@@ -1,19 +0,0 @@
1
- <?php
2
- /**
3
- * This file belongs to the YIT Plugin Framework.
4
- *
5
- * This source file is subject to the GNU GENERAL PUBLIC LICENSE (GPL 3.0)
6
- * that is bundled with this package in the file LICENSE.txt.
7
- * It is also available through the world-wide-web at this URL:
8
- * http://www.gnu.org/licenses/gpl-3.0.txt
9
- */
10
-
11
- if ( ! defined( 'ABSPATH' ) ) {
12
- exit;
13
- } // Exit if accessed directly
14
- ?>
15
- <p>We are happy to present Despacho, our new cutting edge WordPress theme for e-commerce sites.
16
- Conceived to include all the best and hi-quality features for shops,
17
- this powerful theme offers a wide range of options to
18
- <strong>easily customize and shape the appearande of your site. <a href="//despacho.yithemes.com" target="_blank">Discover More ></a></strong>
19
- </p>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
plugin-fw/templates/panel/sidebar/widgets/widget-links.php DELETED
@@ -1,34 +0,0 @@
1
- <?php
2
- /**
3
- * This file belongs to the YIT Plugin Framework.
4
- *
5
- * This source file is subject to the GNU GENERAL PUBLIC LICENSE (GPL 3.0)
6
- * that is bundled with this package in the file LICENSE.txt.
7
- * It is also available through the world-wide-web at this URL:
8
- * http://www.gnu.org/licenses/gpl-3.0.txt
9
- */
10
-
11
- if ( !defined( 'ABSPATH' ) ) {
12
- exit;
13
- } // Exit if accessed directly
14
-
15
- /**
16
- * @var array $links
17
- */
18
- $links = !empty( $links ) ? $links : array();
19
-
20
- $link_default_args = array(
21
- 'url' => '',
22
- 'title' => '',
23
- 'target' => '_blank'
24
- );
25
- ?>
26
-
27
- <ul class="yit-panel-sidebar-links-list">
28
- <?php foreach ( $links as $link ) {
29
- $link = wp_parse_args( $link, $link_default_args );
30
- $link = (object)$link;
31
- echo "<li><a href='$link->url' target='$link->target'>$link->title</a></li>";
32
- }
33
- ?>
34
- </ul>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
plugin-fw/templates/panel/sidebar/widgets/widget-membership.php DELETED
@@ -1,29 +0,0 @@
1
- <?php
2
- /**
3
- * This file belongs to the YIT Plugin Framework.
4
- *
5
- * This source file is subject to the GNU GENERAL PUBLIC LICENSE (GPL 3.0)
6
- * that is bundled with this package in the file LICENSE.txt.
7
- * It is also available through the world-wide-web at this URL:
8
- * http://www.gnu.org/licenses/gpl-3.0.txt
9
- */
10
-
11
- if ( !defined( 'ABSPATH' ) ) {
12
- exit;
13
- } // Exit if accessed directly
14
- ?>
15
-
16
- <div class="membership-wrapper">
17
- <div class="membership-row">
18
- <div class="membership-total-price">$10.000+</div>
19
- <div class="membership-offer-text">worth of themes<br/>and plugins<br/>for WooCommerce</div>
20
- </div>
21
- <div class="membership-row">
22
- <div class="membership-offer-text2">on a</div>
23
- <div class="membership-offer-sale-text">95% OFF DISCOUNT</div>
24
- </div>
25
- <div class="membership-buttons">
26
- <a class="button green" href="//yithemes.com/themes/membership/annual-yithemes-club-subscription/"
27
- target="_blank">Discover More!</a>
28
- </div>
29
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
plugin-fw/templates/panel/sidebar/widgets/widgets.php DELETED
@@ -1,42 +0,0 @@
1
- <?php
2
- /**
3
- * This file belongs to the YIT Plugin Framework.
4
- *
5
- * This source file is subject to the GNU GENERAL PUBLIC LICENSE (GPL 3.0)
6
- * that is bundled with this package in the file LICENSE.txt.
7
- * It is also available through the world-wide-web at this URL:
8
- * http://www.gnu.org/licenses/gpl-3.0.txt
9
- */
10
-
11
- /**
12
- * @var YIT_Plugin_Panel_Sidebar $this
13
- */
14
-
15
- $widgets = array(
16
- 'membership' => array(
17
- 'title' => __( 'Join the club', 'yit' ),
18
- 'title_class' => 'orange',
19
- 'icon' => 'box-white',
20
- 'template' => 'membership',
21
- 'priority' => 10,
22
- ),
23
- 'despacho' => array(
24
- 'title' => __( 'Despacho Theme - 100% FREE', 'yit' ),
25
- 'icon' => 'info',
26
- 'template' => 'despacho',
27
- 'badge' => 'gift-tape',
28
- 'badge_text' => __( 'FREE!', 'yit' ),
29
- 'image' => 'despacho.png',
30
- 'image_class' => 'yit-panel-sidebar-widget-despacho-image',
31
- 'priority' => 20,
32
- ),
33
- 'links' => array(
34
- 'title' => __( 'Important Links', 'yit' ),
35
- 'icon' => 'link',
36
- 'template' => 'links',
37
- 'args' => array( 'links' => $this->panel->links ),
38
- 'hide_if_empty_args' => array( 'links' ),
39
- 'priority' => 30,
40
- ),
41
- );
42
- return apply_filters( 'yit_panel_widgets_array', $widgets );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
plugin-fw/templates/panel/types/chosen.php CHANGED
File without changes
plugin-fw/templates/panel/types/colorpicker.php CHANGED
File without changes
plugin-fw/templates/panel/types/connected-list.php CHANGED
File without changes
plugin-fw/templates/panel/types/layout-panel.php CHANGED
File without changes
plugin-fw/templates/panel/types/number.php CHANGED
File without changes
plugin-fw/templates/panel/types/on-off.php CHANGED
File without changes
plugin-fw/templates/panel/types/select-mailchimp.php CHANGED
File without changes
plugin-fw/templates/panel/types/select.php CHANGED
File without changes
plugin-fw/templates/panel/types/slider.php CHANGED
File without changes
plugin-fw/templates/panel/types/text-button.php CHANGED
File without changes
plugin-fw/templates/panel/types/text.php CHANGED
File without changes
plugin-fw/templates/panel/types/textarea-codemirror.php CHANGED
File without changes
plugin-fw/templates/panel/types/textarea.php CHANGED
File without changes
plugin-fw/templates/panel/types/upload.php CHANGED
File without changes
plugin-fw/templates/panel/videobox.php CHANGED
File without changes
plugin-fw/templates/panel/woocommerce/woocommerce-form.php CHANGED
@@ -1,6 +1,5 @@
1
  <?php
2
- $hide_sidebar = $this->hide_sidebar();
3
- $panel_content_class = !$hide_sidebar ? apply_filters( 'yit_admin_panel_content_class', 'yit-admin-panel-content-wrap' ) : 'yit-admin-panel-content-wrap-no-sidebar';
4
  ?>
5
 
6
  <div id="<?php echo $this->settings[ 'page' ] ?>_<?php echo $this->get_current_tab() ?>" class="yit-admin-panel-container">
@@ -19,12 +18,5 @@ $panel_content_class = !$hide_sidebar ? apply_filters( 'yit_admin_panel_content_
19
  onclick="return confirm('<?php echo $warning . '\n' . __( 'Are you sure?', 'yith-plugin-fw' ) ?>');"/>
20
  </form>
21
  </div>
22
- <?php
23
- /**
24
- * Add panel Sidebar
25
- */
26
- if ( !$hide_sidebar )
27
- $this->print_panel_sidebar();
28
- ?>
29
  <?php do_action( 'yit_framework_after_print_wc_panel_content', $current_tab ); ?>
30
  </div>
1
  <?php
2
+ $panel_content_class = apply_filters( 'yit_admin_panel_content_class', 'yit-admin-panel-content-wrap' );
 
3
  ?>
4
 
5
  <div id="<?php echo $this->settings[ 'page' ] ?>_<?php echo $this->get_current_tab() ?>" class="yit-admin-panel-container">
18
  onclick="return confirm('<?php echo $warning . '\n' . __( 'Are you sure?', 'yith-plugin-fw' ) ?>');"/>
19
  </form>
20
  </div>
 
 
 
 
 
 
 
21
  <?php do_action( 'yit_framework_after_print_wc_panel_content', $current_tab ); ?>
22
  </div>
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/yit-deactive-plugin.php CHANGED
File without changes
plugin-fw/yit-functions.php CHANGED
File without changes
plugin-fw/yit-plugin-registration-hook.php CHANGED
@@ -19,11 +19,5 @@ if( ! function_exists( 'yith_plugin_registration_hook' ) ){
19
  $option = get_option( 'yit_recently_activated', array() );
20
  $option[] = $hook;
21
  update_option( 'yit_recently_activated', $option );
22
-
23
- /* set remote widget transient for first activation */
24
- if ( !class_exists( 'YIT_Plugin_Panel_Sidebar' ) ) {
25
- require_once 'lib/yit-plugin-panel-sidebar.php';
26
- }
27
- YIT_Plugin_Panel_Sidebar::set_transient_for_first_activation();
28
  }
29
  }
19
  $option = get_option( 'yit_recently_activated', array() );
20
  $option[] = $hook;
21
  update_option( 'yit_recently_activated', $option );
 
 
 
 
 
 
22
  }
23
  }
plugin-fw/yit-plugin.php CHANGED
@@ -25,7 +25,6 @@ include_once( 'lib/yit-metabox.php' );
25
  include_once( 'lib/yit-plugin-panel.php' );
26
  include_once( 'lib/yit-plugin-panel-wc.php' );
27
  include_once( 'lib/yit-ajax.php' );
28
- include_once( 'lib/yit-plugin-panel-sidebar.php' );
29
  include_once( 'lib/yit-plugin-subpanel.php' );
30
  include_once( 'lib/yit-plugin-common.php' );
31
  include_once( 'lib/yit-plugin-gradients.php');
25
  include_once( 'lib/yit-plugin-panel.php' );
26
  include_once( 'lib/yit-plugin-panel-wc.php' );
27
  include_once( 'lib/yit-ajax.php' );
 
28
  include_once( 'lib/yit-plugin-subpanel.php' );
29
  include_once( 'lib/yit-plugin-common.php' );
30
  include_once( 'lib/yit-plugin-gradients.php');
plugin-fw/yit-woocommerce-compatibility.php CHANGED
@@ -570,6 +570,44 @@ if ( !function_exists( 'yit_get_refund_amount' ) ) {
570
  }
571
  }
572
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
573
  if ( !function_exists( 'yit_add_select2_fields' ) ) {
574
  /**
575
  * Add select 2
@@ -664,7 +702,9 @@ if ( !function_exists( 'yit_product_visibility_meta' ) ) {
664
  if ( version_compare( WC()->version, '2.7.0', '<' ) ) {
665
  $args[ 'meta_query' ] = isset( $args[ 'meta_query' ] ) ? $args[ 'meta_query' ] : array();
666
  $args[ 'meta_query' ][] = WC()->query->visibility_meta_query();
667
- } else {
 
 
668
  $product_visibility_term_ids = wc_get_product_visibility_term_ids();
669
  $args[ 'tax_query' ] = isset( $args[ 'tax_query' ] ) ? $args[ 'tax_query' ] : array();
670
  $args[ 'tax_query' ][] = array(
570
  }
571
  }
572
 
573
+ if ( !function_exists( 'yit_set_refund_amount' ) ){
574
+ /**
575
+ * @param $refund \WC_Order_Refund
576
+ * @param $amount float
577
+ *
578
+ * @return float
579
+ */
580
+ function yit_set_refund_amount( $refund, $amount ){
581
+ $is_wc_data = $refund instanceof WC_Data;
582
+
583
+ if( $is_wc_data ){
584
+ $refund->set_amount( $amount );
585
+ }
586
+ else{
587
+ $refund->refund_amount = $amount;
588
+ }
589
+ }
590
+ }
591
+
592
+ if ( !function_exists( 'yit_get_refund_reason' ) ){
593
+ /**
594
+ * @param $refund \WC_Order_Refund
595
+ * @param $amount float
596
+ *
597
+ * @return float
598
+ */
599
+ function yit_get_refund_reason( $refund ){
600
+ $is_wc_data = $refund instanceof WC_Data;
601
+
602
+ if( $is_wc_data ){
603
+ return $refund->get_reason();
604
+ }
605
+ else{
606
+ return $refund->get_refund_reason();
607
+ }
608
+ }
609
+ }
610
+
611
  if ( !function_exists( 'yit_add_select2_fields' ) ) {
612
  /**
613
  * Add select 2
702
  if ( version_compare( WC()->version, '2.7.0', '<' ) ) {
703
  $args[ 'meta_query' ] = isset( $args[ 'meta_query' ] ) ? $args[ 'meta_query' ] : array();
704
  $args[ 'meta_query' ][] = WC()->query->visibility_meta_query();
705
+ }
706
+
707
+ elseif( taxonomy_exists( 'product_visibility' ) ) {
708
  $product_visibility_term_ids = wc_get_product_visibility_term_ids();
709
  $args[ 'tax_query' ] = isset( $args[ 'tax_query' ] ) ? $args[ 'tax_query' ] : array();
710
  $args[ 'tax_query' ][] = array(
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
widgets/class.yith-wcas-ajax-search.php CHANGED
File without changes
wpml-config.xml CHANGED
File without changes