YITH WooCommerce Ajax Search - Version 1.2

Version Description

  • Updated: Plugin Core Framework
Download this release

Release Info

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

Code changes from version 1.1.3 to 1.2

Files changed (163) hide show
  1. README.txt +4 -5
  2. assets/images/01.jpg +0 -0
  3. assets/images/02.jpg +0 -0
  4. assets/images/03.jpg +0 -0
  5. assets/images/number-five.png +0 -0
  6. assets/images/number-fourth.png +0 -0
  7. assets/images/number-one.png +0 -0
  8. assets/images/number-seven.png +0 -0
  9. assets/images/number-six.png +0 -0
  10. assets/images/number-three.png +0 -0
  11. assets/images/number-two.png +0 -0
  12. assets/images/upgrade.png +0 -0
  13. assets/js/frontend.min.js +2 -31
  14. class.yith-wcas-admin.php +146 -367
  15. class.yith-wcas-frontend.php +1 -1
  16. class.yith-wcas.php +85 -68
  17. functions.yith-wcas.php +1 -1
  18. init.php +78 -15
  19. languages/default.po +967 -60
  20. languages/yit-it_IT.mo +0 -0
  21. languages/yit-it_IT.po +1014 -79
  22. languages/yit.pot +969 -60
  23. plugin-fw/assets/css/chosen/chosen.css +435 -0
  24. plugin-fw/assets/css/codemirror/codemirror.css +260 -0
  25. plugin-fw/assets/css/metaboxes.css +598 -0
  26. plugin-fw/assets/css/overcast/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  27. plugin-fw/assets/css/overcast/images/ui-bg_flat_0_eeeeee_40x100.png +0 -0
  28. plugin-fw/assets/css/overcast/images/ui-bg_flat_55_c0402a_40x100.png +0 -0
  29. plugin-fw/assets/css/overcast/images/ui-bg_flat_55_eeeeee_40x100.png +0 -0
  30. plugin-fw/assets/css/overcast/images/ui-bg_glass_100_f8f8f8_1x400.png +0 -0
  31. plugin-fw/assets/css/overcast/images/ui-bg_glass_35_dddddd_1x400.png +0 -0
  32. plugin-fw/assets/css/overcast/images/ui-bg_glass_60_eeeeee_1x400.png +0 -0
  33. plugin-fw/assets/css/overcast/images/ui-bg_inset-hard_75_999999_1x100.png +0 -0
  34. plugin-fw/assets/css/overcast/images/ui-bg_inset-soft_50_c9c9c9_1x100.png +0 -0
  35. plugin-fw/assets/css/overcast/images/ui-icons_3383bb_256x240.png +0 -0
  36. plugin-fw/assets/css/overcast/images/ui-icons_454545_256x240.png +0 -0
  37. plugin-fw/assets/css/overcast/images/ui-icons_70b2e1_256x240.png +0 -0
  38. plugin-fw/assets/css/overcast/images/ui-icons_999999_256x240.png +0 -0
  39. plugin-fw/assets/css/overcast/images/ui-icons_fbc856_256x240.png +0 -0
  40. plugin-fw/assets/css/overcast/jquery-ui-1.8.9.custom.css +322 -0
  41. plugin-fw/assets/css/yit-plugin-panel.css +599 -0
  42. plugin-fw/assets/css/yit-upgrader.css +14 -0
  43. plugin-fw/assets/images/chosen/chosen-sprite.png +0 -0
  44. plugin-fw/assets/images/chosen/chosen-sprite@2x.png +0 -0
  45. plugin-fw/assets/images/double-sidebar.png +0 -0
  46. plugin-fw/assets/images/licence-error.png +0 -0
  47. plugin-fw/assets/images/no-sidebar.png +0 -0
  48. plugin-fw/assets/images/off.png +0 -0
  49. plugin-fw/assets/images/on.png +0 -0
  50. plugin-fw/assets/images/select.png +0 -0
  51. plugin-fw/assets/images/sidebar-left.png +0 -0
  52. plugin-fw/assets/images/sidebar-right.png +0 -0
  53. plugin-fw/assets/images/sleep.png +0 -0
  54. plugin-fw/assets/images/slider/grey.gif +0 -0
  55. plugin-fw/assets/images/slider/handle.png +0 -0
  56. plugin-fw/assets/images/slider/orange.gif +0 -0
  57. plugin-fw/assets/images/slider/tooltip.png +0 -0
  58. plugin-fw/assets/images/spinner.png +0 -0
  59. plugin-fw/assets/images/ui-icons_222222_256x240.png +0 -0
  60. plugin-fw/assets/images/ui-icons_2e83ff_256x240.png +0 -0
  61. plugin-fw/assets/images/ui-icons_454545_256x240.png +0 -0
  62. plugin-fw/assets/images/ui-icons_888888_256x240.png +0 -0
  63. plugin-fw/assets/images/x.png +0 -0
  64. plugin-fw/assets/images/yithemes-icon.png +0 -0
  65. plugin-fw/assets/js/chosen/chosen.jquery.js +1211 -0
  66. plugin-fw/assets/js/codemirror/codemirror.js +5799 -0
  67. plugin-fw/assets/js/codemirror/javascript.js +630 -0
  68. plugin-fw/assets/js/metabox.js +350 -0
  69. plugin-fw/assets/js/metabox.min.js +11 -0
  70. plugin-fw/assets/js/multisite-updater.js +216 -0
  71. plugin-fw/assets/js/multisite-updater.min.js +4 -0
  72. plugin-fw/assets/js/panel.spinner.js +139 -0
  73. plugin-fw/assets/js/panel.spinner.min.js +3 -0
  74. plugin-fw/assets/js/yit-cpt-unlimited.js +79 -0
  75. plugin-fw/assets/js/yit-cpt-unlimited.min.js +2 -0
  76. plugin-fw/assets/js/yit-cptu-sortable-posts.js +32 -0
  77. plugin-fw/assets/js/yit-plugin-panel.js +286 -0
  78. plugin-fw/assets/js/yit-plugin-panel.min.js +9 -0
  79. plugin-fw/assets/js/yit-wp-pointer.js +84 -0
  80. plugin-fw/assets/js/yit-wp-pointer.min.js +3 -0
  81. plugin-fw/lib/yit-cpt-unlimited.php +1775 -0
  82. plugin-fw/lib/yit-metabox.php +537 -0
  83. plugin-fw/lib/yit-plugin-common.php +1034 -0
  84. plugin-fw/lib/yit-plugin-gradients.php +536 -0
  85. plugin-fw/lib/yit-plugin-panel-wc.php +344 -0
  86. plugin-fw/lib/yit-plugin-panel.php +710 -0
  87. plugin-fw/lib/yit-plugin-subpanel.php +160 -0
  88. plugin-fw/lib/yit-pointers.php +390 -0
  89. plugin-fw/lib/yit-upgrade.php +539 -0
  90. plugin-fw/lib/yit-video.php +184 -0
  91. plugin-fw/licence/assets/css/yit-licence.css +337 -0
  92. plugin-fw/licence/assets/images/licence-error.png +0 -0
  93. plugin-fw/licence/assets/js/yit-licence.js +139 -0
  94. plugin-fw/licence/assets/js/yit-licence.min.js +4 -0
  95. plugin-fw/licence/lib/yit-licence.php +543 -0
  96. plugin-fw/licence/lib/yit-plugin-licence.php +156 -0
  97. plugin-fw/licence/lib/yit-theme-licence.php +155 -0
  98. plugin-fw/licence/templates/panel/activation/activation-panel.php +152 -0
  99. plugin-fw/templates/metaboxes/tab.php +64 -0
  100. plugin-fw/templates/metaboxes/types/ajax-products.php +64 -0
  101. plugin-fw/templates/metaboxes/types/categories.php +88 -0
  102. plugin-fw/templates/metaboxes/types/checkbox.php +23 -0
  103. plugin-fw/templates/metaboxes/types/chosen.php +32 -0
  104. plugin-fw/templates/metaboxes/types/colorpicker.php +22 -0
  105. plugin-fw/templates/metaboxes/types/contactform.php +553 -0
  106. plugin-fw/templates/metaboxes/types/customtabs.php +152 -0
  107. plugin-fw/templates/metaboxes/types/datepicker.php +21 -0
  108. plugin-fw/templates/metaboxes/types/hidden.php +18 -0
  109. plugin-fw/templates/metaboxes/types/icon-list.php +135 -0
  110. plugin-fw/templates/metaboxes/types/image-gallery.php +43 -0
  111. plugin-fw/templates/metaboxes/types/images.php +85 -0
  112. plugin-fw/templates/metaboxes/types/number.php +37 -0
  113. plugin-fw/templates/metaboxes/types/onoff.php +43 -0
  114. plugin-fw/templates/metaboxes/types/responsivesliders.php +31 -0
  115. plugin-fw/templates/metaboxes/types/select-icon.php +72 -0
  116. plugin-fw/templates/metaboxes/types/select-mailchimp.php +32 -0
  117. plugin-fw/templates/metaboxes/types/select.php +32 -0
  118. plugin-fw/templates/metaboxes/types/sep.php +18 -0
  119. plugin-fw/templates/metaboxes/types/sidebar-layout.php +61 -0
  120. plugin-fw/templates/metaboxes/types/sidebarlist.php +29 -0
  121. plugin-fw/templates/metaboxes/types/sidebars.php +124 -0
  122. plugin-fw/templates/metaboxes/types/simple-text.php +20 -0
  123. plugin-fw/templates/metaboxes/types/slider.php +35 -0
  124. plugin-fw/templates/metaboxes/types/text-array.php +30 -0
  125. plugin-fw/templates/metaboxes/types/text.php +24 -0
  126. plugin-fw/templates/metaboxes/types/textarea-editor.php +42 -0
  127. plugin-fw/templates/metaboxes/types/textarea.php +25 -0
  128. plugin-fw/templates/metaboxes/types/title.php +18 -0
  129. plugin-fw/templates/metaboxes/types/typography.php +255 -0
  130. plugin-fw/templates/metaboxes/types/upload.php +24 -0
  131. plugin-fw/templates/panel/types/chosen.php +36 -0
  132. plugin-fw/templates/panel/types/connected-list.php +27 -0
  133. plugin-fw/templates/panel/types/layout-panel.php +0 -0
  134. plugin-fw/templates/panel/types/on-off.php +34 -0
  135. plugin-fw/templates/panel/types/select-mailchimp.php +36 -0
  136. plugin-fw/templates/panel/types/select.php +41 -0
  137. plugin-fw/templates/panel/types/slider.php +40 -0
  138. plugin-fw/templates/panel/types/text-button.php +36 -0
  139. plugin-fw/templates/panel/types/text.php +35 -0
  140. plugin-fw/templates/panel/types/textarea-codemirror.php +40 -0
  141. plugin-fw/templates/panel/types/textarea.php +35 -0
  142. plugin-fw/templates/panel/types/upload.php +45 -0
  143. plugin-fw/templates/panel/woocommerce/woocommerce-boxinfo.php +36 -0
  144. plugin-fw/templates/panel/woocommerce/woocommerce-form.php +12 -0
  145. plugin-fw/templates/panel/woocommerce/woocommerce-panel.php +12 -0
  146. plugin-fw/templates/panel/woocommerce/woocommerce-upload.php +52 -0
  147. plugin-fw/templates/panel/woocommerce/woocommerce-videobox.php +83 -0
  148. plugin-fw/yit-deactive-plugin.php +35 -0
  149. plugin-fw/yit-functions.php +815 -0
  150. plugin-fw/yit-plugin-registration-hook.php +23 -0
  151. plugin-fw/yit-plugin.php +46 -0
  152. plugin-options/premium-options.php +23 -0
  153. plugin-options/settings-options.php +100 -0
  154. templates/admin/premium.php +311 -0
  155. templates/yith-woocommerce-ajax-search.php +1 -2
  156. uninstall.php +1 -1
  157. widgets/class.yith-wcas-ajax-search.php +1 -1
  158. yit-common/assets/css/yith-panel.css +0 -78
  159. yit-common/assets/js/google_fonts.json +0 -1
  160. yit-common/assets/js/yith-panel.js +0 -302
  161. yit-common/google_fonts.php +0 -68
  162. yit-common/yit-functions.php +0 -233
  163. yit-common/yith-panel.php +0 -514
README.txt CHANGED
@@ -1,7 +1,7 @@
1
=== YITH WooCommerce Ajax Search ===
2
3
Contributors: yithemes
4
- Tags: ajax, search, woocommerce, products, themes, yit, e-commerce, shop
5
Requires at least: 3.5.1
6
Tested up to: 4.1
7
Stable tag: 1.2
@@ -36,8 +36,7 @@ Full documentation is available [here](http://yithemes.com/docs-plugins/yith_woo
36
Once you have installed the plugin, you just need to activate the plugin in order to enable it.
37
38
= Configuration =
39
-
40
- YITH WooCommerce Ajax Search will add a new tab called "Ajax Search" below the Woocommerce -> Settings menu. Here you are able to configure all the plugin settings.
41
42
= Developer =
43
@@ -45,7 +44,6 @@ Are you a developer? Want to customize the templates or the style of the plugin?
45
46
= Support =
47
48
- Hi there, we have good news here: all our plugins are released for free. Wow!
49
Already knew it, right?! Great, but maybe you do not know that: if you're looking for how to install the plugins or how to use them within your Wordpress installations, which is the right way to ask support?
50
That's the way:
51
@@ -74,11 +72,12 @@ In WooCommerce->Settings->Ajax Search page, you can choose the minumum size of t
74
== Changelog ==
75
76
= 1.2 =
77
* Updated: Plugin Core Framework
78
79
= 1.1.3 =
80
81
- Fixed: Javascript code in external file
82
83
= 1.1.2 =
84
1
=== YITH WooCommerce Ajax Search ===
2
3
Contributors: yithemes
4
+ Tags: ajax, search, woocommerce, products, themes, yit, e-commerce, shop, yith, ajax search, instant search, premium, yithemes
5
Requires at least: 3.5.1
6
Tested up to: 4.1
7
Stable tag: 1.2
36
Once you have installed the plugin, you just need to activate the plugin in order to enable it.
37
38
= Configuration =
39
+ YITH WooCommerce Ajax Search will add a new submenu called "Cart Messages" under "YIT Plugins" menu. Here you are able to configure all the plugin settings.
40
41
= Developer =
42
44
45
= Support =
46
47
Already knew it, right?! Great, but maybe you do not know that: if you're looking for how to install the plugins or how to use them within your Wordpress installations, which is the right way to ask support?
48
That's the way:
49
72
== Changelog ==
73
74
= 1.2 =
75
+
76
* Updated: Plugin Core Framework
77
78
= 1.1.3 =
79
80
+ * Fixed: Javascript code in external file
81
82
= 1.1.2 =
83
assets/images/01.jpg ADDED
Binary file
assets/images/02.jpg ADDED
Binary file
assets/images/03.jpg ADDED
Binary file
assets/images/number-five.png ADDED
Binary file
assets/images/number-fourth.png ADDED
Binary file
assets/images/number-one.png ADDED
Binary file
assets/images/number-seven.png ADDED
Binary file
assets/images/number-six.png ADDED
Binary file
assets/images/number-three.png ADDED
Binary file
assets/images/number-two.png ADDED
Binary file
assets/images/upgrade.png ADDED
Binary file
assets/js/frontend.min.js CHANGED
@@ -1,31 +1,2 @@
1
- /**
2
- * frontend.js
3
- *
4
- * @author Your Inspiration Themes
5
- * @package YITH WooCommerce Ajax Search
6
- * @version 1.1.1
7
- */
8
- jQuery(document).ready(function($){
9
- "use strict";
10
-
11
- var el = $('#yith-s'),
12
- loader_icon = el.data('loader-icon') == '' ? woocommerce_params.ajax_loader_url : el.data('loader-icon'),
13
- min_chars = el.data('min-chars');
14
-
15
- el.autocomplete({
16
- minChars: min_chars,
17
- appendTo: '.yith-ajaxsearchform-container',
18
- serviceUrl: woocommerce_params.ajax_url + '?action=yith_ajax_search_products',
19
- onSearchStart: function(){
20
- $(this).css('background', 'url(' + loader_icon + ') no-repeat right center');
21
- },
22
- onSearchComplete: function(){
23
- $(this).css('background', 'transparent');
24
- },
25
- onSelect: function (suggestion) {
26
- if( suggestion.id != -1 ) {
27
- window.location.href = suggestion.url;
28
- }
29
- }
30
- });
31
- });
1
+ jQuery(document).ready(function(b){var a=b("#yith-s"),c=""==a.data("loader-icon")?woocommerce_params.ajax_loader_url:a.data("loader-icon"),d=a.data("min-chars");a.autocomplete({minChars:d,appendTo:".yith-ajaxsearchform-container",serviceUrl:woocommerce_params.ajax_url+"?action=yith_ajax_search_products",onSearchStart:function(){b(this).css("background","url("+c+") no-repeat right center")},onSearchComplete:function(){b(this).css("background","transparent")},onSelect:function(a){-1!=a.id&&(window.location.href=
2
+ a.url)}})});
class.yith-wcas-admin.php CHANGED
@@ -2,7 +2,7 @@
2
/**
3
* Admin class
4
*
5
- * @author Your Inspiration Themes
6
* @package YITH WooCommerce Ajax Search
7
* @version 1.1.1
8
*/
@@ -11,7 +11,7 @@ if ( !defined( 'YITH_WCAS' ) ) { exit; } // Exit if accessed directly
11
12
if( !class_exists( 'YITH_WCAS_Admin' ) ) {
13
/**
14
- * Admin class.
15
* The class manage all the admin behaviors.
16
*
17
* @since 1.0.0
@@ -19,7 +19,7 @@ if( !class_exists( 'YITH_WCAS_Admin' ) ) {
19
class YITH_WCAS_Admin {
20
/**
21
* Plugin options
22
- *
23
* @var array
24
* @access public
25
* @since 1.0.0
@@ -34,6 +34,26 @@ if( !class_exists( 'YITH_WCAS_Admin' ) ) {
34
*/
35
public $version;
36
37
/**
38
* Various links
39
*
@@ -41,416 +61,175 @@ if( !class_exists( 'YITH_WCAS_Admin' ) ) {
41
* @access public
42
* @since 1.0.0
43
*/
44
- public $banner_url = 'http://cdn.yithemes.com/plugins/yith_magnifier.php?url';
45
- public $banner_img = 'http://cdn.yithemes.com/plugins/yith_magnifier.php';
46
- public $doc_url = 'http://yithemes.com/docs-plugins/yith_ajax_search/';
47
-
48
/**
49
* Constructor
50
- *
51
* @access public
52
* @since 1.0.0
53
*/
54
public function __construct( $version ) {
55
56
- $this->options = $this->_initOptions();
57
$this->version = $version;
58
59
- //Actions
60
- add_action( 'init', array( $this, 'init' ) );
61
- add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_styles_scripts' ) );
62
- add_filter( 'plugin_action_links_' . plugin_basename( dirname(__FILE__) . '/init.php' ), array( $this, 'action_links' ) );
63
-
64
-
65
- add_action( 'woocommerce_settings_tabs_yith_wcas', array( $this, 'print_plugin_options' ) );
66
- add_action( 'woocommerce_update_options_yith_wcas', array( $this, 'update_options' ) );
67
-
68
-
69
- add_action( 'woocommerce_admin_field_banner', array( $this, 'admin_fields_banner' ) );
70
71
72
- if ( !has_action('woocommerce_admin_field_slider')) add_action( 'woocommerce_admin_field_slider', array( $this, 'admin_fields_slider' ) );
73
- if ( !has_action('woocommerce_admin_field_picker')) add_action( 'woocommerce_admin_field_picker', array( $this, 'admin_fields_picker' ) );
74
- add_action( 'woocommerce_update_option_slider', array( $this, 'admin_update_option' ) );
75
- add_action( 'woocommerce_update_option_picker', array( $this, 'admin_update_option' ) );
76
77
-
78
- //Filters
79
- add_filter( 'woocommerce_settings_tabs_array', array( $this, 'add_tab_woocommerce' ), 30 );
80
- //add_filter( 'woocommerce_catalog_settings', array( $this, 'add_catalog_image_size' ) );
81
-
82
- //Apply filters
83
- $this->banner_url = apply_filters('yith_wcas_banner_url', $this->banner_url);
84
85
// YITH WCAS Loaded
86
do_action( 'yith_wcas_loaded' );
87
- }
88
-
89
-
90
- /**
91
- * Init method:
92
- * - default options
93
- *
94
- * @access public
95
- * @since 1.0.0
96
- */
97
- public function init() {
98
- $this->_default_options();
99
- }
100
-
101
-
102
/**
103
- * Update plugin options.
104
- *
105
- * @return void
106
- * @since 1.0.0
107
*/
108
- public function update_options() {
109
- foreach( $this->options as $option ) {
110
- woocommerce_update_options( $option );
111
- }
112
}
113
-
114
-
115
- /**
116
- * Add Magnifier's tab to Woocommerce -> Settings page
117
- *
118
- * @access public
119
- * @param array $tabs
120
- *
121
- * @return array
122
- */
123
- public function add_tab_woocommerce($tabs) {
124
- $tabs['yith_wcas'] = __('Ajax Search', 'yit');
125
-
126
- return $tabs;
127
- }
128
-
129
-
130
- /**
131
- * Add Zoom Image size to Woocommerce -> Catalog
132
- *
133
- * @access public
134
- * @param array $settings
135
- *
136
- * @return array
137
-
138
- public function add_catalog_image_size( $settings ) {
139
- $tmp = $settings[ count($settings)-1 ];
140
- unset( $settings[ count($settings)-1 ] );
141
-
142
- $settings[] = array(
143
- 'name' => __( 'Catalog Zoom Images', 'yit' ),
144
- 'desc' => __('The size of images used within the magnifier box', 'yit'),
145
- 'id' => 'woocommerce_magnifier_image',
146
- 'css' => '',
147
- 'type' => 'image_width',
148
- 'default' => array(
149
- 'width' => 600,
150
- 'height' => 600,
151
- 'crop' => true
152
- ),
153
- 'std' => array(
154
- 'width' => 600,
155
- 'height' => 600,
156
- 'crop' => true
157
- ),
158
- 'desc_tip' => true
159
- );
160
- $settings[] = $tmp;
161
- return $settings;
162
- }
163
- */
164
-
165
/**
166
- * Print all plugin options.
167
- *
168
- * @return void
169
- * @since 1.0.0
170
*/
171
- public function print_plugin_options() {
172
- $links = apply_filters( 'yith_wcas_tab_links', array(
173
- '<a href="#yith_wcas_general">' . __( 'General Settings', 'yit' ) . '</a>',
174
- //'<a href="#yith_wcas_magnifier">' . __( 'Magnifier', 'yit' ) . '</a>',
175
- //'<a href="#yith_wcas_slider">' . __( 'Slider', 'yit' ) . '</a>'
176
- ) );
177
-
178
- $this->_printBanner();
179
- ?>
180
-
181
- <div class="subsubsub_section">
182
- <ul class="subsubsub">
183
- <li>
184
- <?php echo implode( ' | </li><li>', $links ) ?>
185
- </li>
186
- </ul>
187
- <br class="clear" />
188
-
189
- <?php
190
- $option_theme = apply_filters('yith_wcas_options_theme_plugin', $this->options );
191
- foreach( $option_theme as $id => $tab ) : ?>
192
- <!-- tab #<?php echo $id ?> -->
193
- <div class="section" id="yith_wcas_<?php echo $id ?>">
194
- <?php woocommerce_admin_fields( $option_theme[$id] ) ?>
195
- </div>
196
- <?php endforeach ?>
197
- </div>
198
- <?php
199
- }
200
-
201
202
- /**
203
- * Initialize the options
204
- *
205
- * @access protected
206
- * @return array
207
- * @since 1.0.0
208
- */
209
- protected function _initOptions() {
210
- $options = array(
211
- 'general' => array(
212
- array(
213
- 'name' => __( 'General Settings', 'yit' ),
214
- 'type' => 'title',
215
- 'desc' => '',
216
- 'id' => 'yith_wcas_general'
217
- ),
218
-
219
- array(
220
- 'name' => __( 'Search input label', 'yit' ),
221
- 'desc' => __( 'Label for Search input field.', 'yit' ),
222
- 'id' => 'yith_wcas_search_input_label',
223
- 'std' => __( 'Search for products', 'yit' ),
224
- 'default' => __( 'Search for products', 'yit' ),
225
- 'desc_tip' => true,
226
- 'type' => 'text',
227
- ),
228
-
229
- array(
230
- 'name' => __( 'Search submit label', 'yit' ),
231
- 'desc' => __( 'Label for Search submit field.', 'yit' ),
232
- 'id' => 'yith_wcas_search_submit_label',
233
- 'std' => __( 'Search', 'yit' ),
234
- 'default' => __( 'Search', 'yit' ),
235
- 'desc_tip' => true,
236
- 'type' => 'text',
237
- ),
238
-
239
- array(
240
- 'name' => __( 'Minimum number of characters', 'yit' ),
241
- 'desc' => __( 'Minimum number of characters required to trigger autosuggest.', 'yit' ),
242
- 'id' => 'yith_wcas_min_chars',
243
- 'std' => '3',
244
- 'default' => '3',
245
- 'css' => 'width:50px;',
246
- 'desc_tip' => true,
247
- 'type' => 'number',
248
- 'custom_attributes' => array(
249
- 'min' => 1,
250
- 'max' => 10,
251
- 'step' => 1
252
- )
253
- ),
254
-
255
- array(
256
- 'name' => __( 'Maximum number of results', 'yit' ),
257
- 'desc' => __( 'Maximum number of results showed within the autosuggest box.', 'yit' ),
258
- 'id' => 'yith_wcas_posts_per_page',
259
- 'std' => '3',
260
- 'default' => '3',
261
- 'css' => 'width:50px;',
262
- 'desc_tip' => true,
263
- 'type' => 'number',
264
- 'custom_attributes' => array(
265
- 'min' => 1,
266
- 'max' => 15,
267
- 'step' => 1
268
- )
269
- ),
270
-
271
- array( 'type' => 'sectionend', 'id' => 'yith_wcas_general_end' )
272
- ),
273
- );
274
-
275
- return apply_filters('yith_wcas_tab_options', $options);
276
- }
277
278
279
- /**
280
- * Default options
281
- *
282
- * Sets up the default options used on the settings page
283
- *
284
- * @access protected
285
- * @return void
286
- * @since 1.0.0
287
- */
288
- protected function _default_options() {
289
- foreach ($this->options as $section) {
290
- foreach ( $section as $value ) {
291
- if ( isset( $value['std'] ) && isset( $value['id'] ) ) {
292
- if ( $value['type'] == 'image_width' ) {
293
- add_option($value['id'].'_width', $value['std']);
294
- add_option($value['id'].'_height', $value['std']);
295
- } else {
296
- add_option($value['id'], $value['std']);
297
- }
298
- }
299
- }
300
- }
301
- }
302
-
303
304
- /**
305
- * Create new Woocommerce admin field: slider
306
- *
307
- * @access public
308
- * @param array $value
309
- * @return void
310
- * @since 1.0.0
311
- */
312
- public function admin_fields_slider( $value ) {
313
- $slider_value = ( get_option( $value['id'] ) !== false && get_option( $value['id'] ) !== null ) ?
314
- esc_attr( stripslashes( get_option($value['id'] ) ) ) :
315
- esc_attr( $value['std'] );
316
-
317
- ?><tr valign="top">
318
- <th scope="row" class="titledesc">
319
- <label for="<?php echo esc_attr( $value['id'] ); ?>"><?php echo $value['name']; ?></label>
320
- </th>
321
- <td class="forminp">
322
- <div id="<?php echo esc_attr( $value['id'] ); ?>_slider" class="yith_woocommerce_slider" style="width: 300px; float: left;"></div>
323
- <div id="<?php echo esc_attr( $value['id'] ); ?>_value" class="yith_woocommerce_slider_value ui-state-default ui-corner-all"><?php echo $slider_value ?></div>
324
- <input name="<?php echo esc_attr( $value['id'] ); ?>" id="<?php echo esc_attr( $value['id'] ); ?>" type="hidden" value="<?php echo $slider_value ?>" /> <?php echo $value['desc']; ?></td>
325
- </tr>
326
-
327
-
328
-
329
- <script>
330
- jQuery(document).ready(function($){
331
- $('#<?php echo esc_attr( $value['id'] ); ?>_slider').slider({
332
- min: <?php echo $value['min'] ?>,
333
- max: <?php echo $value['max'] ?>,
334
- step: <?php echo $value['step'] ?>,
335
- value: <?php echo $slider_value ?>,
336
- slide: function( event, ui ) {
337
- $( "#<?php echo esc_attr( $value['id'] ); ?>" ).val( ui.value );
338
- $( "#<?php echo esc_attr( $value['id'] ); ?>_value" ).text( ui.value );
339
- }
340
- });
341
- });
342
- </script>
343
-
344
- <?php
345
- }
346
347
348
- /**
349
- * Create new Woocommerce admin field: picker
350
- *
351
- * @access public
352
- * @param array $value
353
- * @return void
354
- * @since 1.0.0
355
- */
356
- public function admin_fields_picker( $value ) {
357
- $picker_value = ( get_option( $value['id'] ) !== false && get_option( $value['id'] ) !== null ) ?
358
- esc_attr( stripslashes( get_option($value['id'] ) ) ) :
359
- esc_attr( $value['std'] );
360
-
361
- ?><tr valign="top">
362
- <th scope="row" class="titledesc">
363
- <label for="<?php echo esc_attr( $value['id'] ); ?>"><?php echo $value['name']; ?></label>
364
- </th>
365
- <td class="forminp">
366
- <div class="color_box"><strong><?php echo $value['name']; ?></strong>
367
- <input name="<?php echo esc_attr( $value['id'] ) ?>" id="<?php echo esc_attr( $value['id'] ) ?>" type="text" value="<?php echo $picker_value ?>" class="colorpick" /> <div id="colorPickerDiv_<?php echo esc_attr( $value['id'] ) ?>" class="colorpickdiv"></div>
368
- </div> <?php echo $value['desc']; ?></td>
369
- </tr>
370
- <?php
371
- }
372
373
/**
374
- * Save the admin field: slider
375
*
376
- * @access public
377
- * @param mixed $value
378
* @return void
379
- * @since 1.0.0
380
*/
381
- public function admin_update_option($value) {
382
-
383
- global $woocommerce;
384
-
385
- if ( version_compare( preg_replace( '/-beta-([0-9]+)/', '', $woocommerce->version ), '2.1', '<' ) ) {
386
- $wc_clean = 'woocommerce_clean';
387
}
388
- else {
389
- $wc_clean = 'wc_clean';
390
- }
391
392
- update_option( $value['id'], $wc_clean($_POST[$value['id']]) );
393
}
394
395
- /**
396
- * Enqueue admin styles and scripts
397
- *
398
- * @access public
399
- * @return void
400
- * @since 1.0.0
401
- */
402
- public function enqueue_styles_scripts() {
403
- wp_enqueue_script( 'jquery-ui' );
404
- wp_enqueue_script( 'jquery-ui-core' );
405
- wp_enqueue_script( 'jquery-ui-mouse' );
406
- wp_enqueue_script( 'jquery-ui-slider' );
407
-
408
- wp_enqueue_style( 'yith_wcas_admin', YITH_WCAS_URL . 'assets/css/admin.css' );
409
- }
410
-
411
-
412
/**
413
- * Print the banner
414
*
415
- * @access protected
416
- * @return void
417
- * @since 1.0.0
418
*/
419
- protected function _printBanner() {
420
- ?>
421
- <div class="yith_banner">
422
- <a href="<?php echo $this->banner_url ?>" target="_blank">
423
- <img src="<?php echo $this->banner_img ?>" alt="" />
424
- </a>
425
- </div>
426
- <?php
427
- }
428
429
430
- /**
431
- * action_links function.
432
- *
433
- * @access public
434
- * @param mixed $links
435
- * @return void
436
- */
437
- public function action_links( $links ) {
438
439
- global $woocommerce;
440
441
- if ( version_compare( preg_replace( '/-beta-([0-9]+)/', '', $woocommerce->version ), '2.1', '<' ) ) {
442
- $wc_clean = 'woocommerce_settings';
443
- }
444
- else {
445
- $wc_clean = 'wc-settings';
446
}
447
448
- $plugin_links = array(
449
- '<a href="' . admin_url( 'admin.php?page=' . $wc_clean . '&tab=yith_wcas' ) . '">' . __( 'Settings', 'yit' ) . '</a>',
450
- '<a href="' . $this->doc_url . '">' . __( 'Docs', 'yit' ) . '</a>',
451
);
452
453
- return array_merge( $plugin_links, $links );
454
}
455
}
456
}
2
/**
3
* Admin class
4
*
5
+ * @author Yithemes
6
* @package YITH WooCommerce Ajax Search
7
* @version 1.1.1
8
*/
11
12
if( !class_exists( 'YITH_WCAS_Admin' ) ) {
13
/**
14
+ * Admin class.
15
* The class manage all the admin behaviors.
16
*
17
* @since 1.0.0
19
class YITH_WCAS_Admin {
20
/**
21
* Plugin options
22
+ *
23
* @var array
24
* @access public
25
* @since 1.0.0
34
*/
35
public $version;
36
37
+ /**
38
+ * @var $_panel Panel Object
39
+ */
40
+ protected $_panel;
41
+
42
+ /**
43
+ * @var $_premium string Premium tab template file name
44
+ */
45
+ protected $_premium = 'premium.php';
46
+
47
+ /**
48
+ * @var string Premium version landing link
49
+ */
50
+ protected $_premium_landing = 'http://yithemes.com/themes/plugins/yith-woocommerce-ajax-search/';
51
+
52
+ /**
53
+ * @var string Ajax Search panel page
54
+ */
55
+ protected $_panel_page = 'yith_wcas_panel';
56
+
57
/**
58
* Various links
59
*
61
* @access public
62
* @since 1.0.0
63
*/
64
+ public $doc_url = 'http://yithemes.com/docs-plugins/yith_woocommerce_ajax_search/';
65
+
66
/**
67
* Constructor
68
+ *
69
* @access public
70
* @since 1.0.0
71
*/
72
public function __construct( $version ) {
73
74
$this->version = $version;
75
76
+ add_action( 'admin_menu', array( $this, 'register_panel' ), 5) ;
77
78
+ //Add action links
79
+ add_filter( 'plugin_action_links_' . plugin_basename( YITH_WCAS_DIR . '/' . basename( YITH_WCAS_FILE ) ), array( $this, 'action_links') );
80
+ add_filter( 'plugin_row_meta', array( $this, 'plugin_row_meta' ), 10, 4 );
81
82
+ add_action( 'yith_ajax_search_premium', array( $this, 'premium_tab' ) );
83
84
+ add_action( 'admin_init', array( $this, 'register_pointer' ) );
85
86
// YITH WCAS Loaded
87
do_action( 'yith_wcas_loaded' );
88
+ }
89
+
90
+
91
/**
92
+ * Action Links
93
+ *
94
+ * add the action links to plugin admin page
95
+ *
96
+ * @param $links | links plugin array
97
+ *
98
+ * @return mixed Array
99
+ * @since 1.0
100
+ * @author Andrea Grillo <andrea.grillo@yithemes.com>
101
+ * @return mixed
102
+ * @use plugin_action_links_{$plugin_file_name}
103
*/
104
+ public function action_links( $links ) {
105
+
106
+ $links[] = '<a href="' . admin_url( "admin.php?page={$this->_panel_page}" ) . '">' . __( 'Settings', 'yit' ) . '</a>';
107
+ $links[] = '<a href="' . $this->_premium_landing . '" target="_blank">' . __( 'Premium Version', 'yit' ) . '</a>';
108
+
109
+ return $links;
110
}
111
+
112
/**
113
+ * Add a panel under YITH Plugins tab
114
+ *
115
+ * @return void
116
+ * @since 1.0
117
+ * @author Andrea Grillo <andrea.grillo@yithemes.com>
118
+ * @use /Yit_Plugin_Panel class
119
+ * @see plugin-fw/lib/yit-plugin-panel.php
120
*/
121
+ public function register_panel() {
122
123
+ if ( ! empty( $this->_panel ) ) {
124
+ return;
125
+ }
126
127
+ $admin_tabs = array(
128
+ 'settings' => __( 'Settings', 'yit' ),
129
+ 'premium' => __( 'Premium Version', 'yit' ),
130
+ );
131
132
+ $args = array(
133
+ 'create_menu_page' => true,
134
+ 'parent_slug' => '',
135
+ 'page_title' => __( 'Ajax Search', 'yit' ),
136
+ 'menu_title' => __( 'Ajax Search', 'yit' ),
137
+ 'capability' => 'manage_options',
138
+ 'parent' => '',
139
+ 'parent_page' => 'yit_plugin_panel',
140
+ 'page' => $this->_panel_page,
141
+ 'admin-tabs' => $admin_tabs,
142
+ 'options-path' => YITH_WCAS_DIR . '/plugin-options'
143
+ );
144
145
146
+ /* === Fixed: not updated theme === */
147
+ if( ! class_exists( 'YIT_Plugin_Panel_WooCommerce' ) ) {
148
+ require_once( 'plugin-fw/lib/yit-plugin-panel-wc.php' );
149
+ }
150
151
+ $this->_panel = new YIT_Plugin_Panel_WooCommerce( $args );
152
+ }
153
154
/**
155
+ * Premium Tab Template
156
*
157
+ * Load the premium tab template on admin page
158
+ *
159
+ * @return void
160
+ * @since 1.0
161
+ * @author Andrea Grillo <andrea.grillo@yithemes.com>
162
* @return void
163
*/
164
+ public function premium_tab() {
165
+ $premium_tab_template =YITH_WCAS_TEMPLATE_PATH . '/admin/' . $this->_premium;
166
+ if( file_exists( $premium_tab_template ) ) {
167
+ include_once($premium_tab_template);
168
}
169
170
}
171
172
/**
173
+ * plugin_row_meta
174
*
175
+ * add the action links to plugin admin page
176
+ *
177
+ * @param $plugin_meta
178
+ * @param $plugin_file
179
+ * @param $plugin_data
180
+ * @param $status
181
+ *
182
+ * @return Array
183
+ * @since 1.0
184
+ * @author Andrea Grillo <andrea.grillo@yithemes.com>
185
+ * @use plugin_row_meta
186
*/
187
+ public function plugin_row_meta( $plugin_meta, $plugin_file, $plugin_data, $status ) {
188
189
+ if ( defined( 'YITH_WCAS_FREE_INIT' ) && YITH_WCAS_FREE_INIT == $plugin_file ) {
190
+ $plugin_meta[] = '<a href="' . $this->doc_url . '" target="_blank">' . __( 'Plugin Documentation', 'yit' ) . '</a>';
191
+ }
192
+ return $plugin_meta;
193
+ }
194
195
196
+ public function register_pointer(){
197
198
+ if( ! class_exists( 'YIT_Pointers' ) ){
199
+ include_once( 'plugin-fw/lib/yit-pointers.php' );
200
}
201
202
+ $args[] = array(
203
+ 'screen_id' => 'plugins',
204
+ 'pointer_id' => 'yith_wcas_panel',
205
+ 'target' => '#toplevel_page_yit_plugin_panel',
206
+ 'content' => sprintf( '<h3> %s </h3> <p> %s </p>',
207
+ __( 'YITH WooCommerce Ajax Search', 'yit' ),
208
+ __( 'In the YIT Plugin tab you can find the YITH WooCommerce Ajax Search options.
209
+ With this menu, you can access to all the settings of our plugins that you have activated.
210
+ YITH WooCommerce Ajax Search is available in an outstanding PREMIUM version with many new options, <a href="'.$this->_premium_landing.'">discover it now</a>', 'yit' )
211
+ ),
212
+ 'position' => array( 'edge' => 'left', 'align' => 'center' ),
213
+ 'init' => YITH_WCAS_FREE_INIT
214
);
215
216
+ $args[] = array(
217
+ 'screen_id' => 'update',
218
+ 'pointer_id' => 'yith_wcas_panel',
219
+ 'target' => '#toplevel_page_yit_plugin_panel',
220
+ 'content' => sprintf( '<h3> %s </h3> <p> %s </p>',
221
+ __( 'YITH WooCommerce Ajax Search Updated', 'yit' ),
222
+ __( 'From now on, you can find all the options of YITH WooCommerce Ajax Search Updated under YIT Plugin -> Ajax Search instead of WooCommerce -> Settings -> Ajax Search, as in the previous version.
223
+ When one of our plugins updates, a new voice will be added to this menu.
224
+ YITH WooCommerce Ajax Search renovates with new available options, discover the <a href="'.$this->_premium_landing.'">PREMIUM version</a>.
225
+ ', 'yit' )
226
+ ),
227
+ 'position' => array( 'edge' => 'left', 'align' => 'center' ),
228
+ 'init' => YITH_WCAS_FREE_INIT
229
+ );
230
+
231
+ YIT_Pointers()->register( $args );
232
}
233
+
234
}
235
}
class.yith-wcas-frontend.php CHANGED
@@ -2,7 +2,7 @@
2
/**
3
* Frontend class
4
*
5
- * @author Your Inspiration Themes
6
* @package YITH WooCommerce Ajax Search
7
* @version 1.1.1
8
*/
2
/**
3
* Frontend class
4
*
5
+ * @author Yithemes
6
* @package YITH WooCommerce Ajax Search
7
* @version 1.1.1
8
*/
class.yith-wcas.php CHANGED
@@ -2,16 +2,18 @@
2
/**
3
* Main class
4
*
5
- * @author Your Inspiration Themes
6
* @package YITH WooCommerce Ajax Search
7
* @version 1.1.1
8
*/
9
10
- if ( !defined( 'YITH_WCAS' ) ) { exit; } // Exit if accessed directly
11
12
- if( !class_exists( 'YITH_WCAS' ) ) {
13
/**
14
- * WooCommerce Magnifier
15
*
16
* @since 1.0.0
17
*/
@@ -22,8 +24,8 @@ if( !class_exists( 'YITH_WCAS' ) ) {
22
* @var string
23
* @since 1.0.0
24
*/
25
- public $version = '1.1.3';
26
-
27
/**
28
* Plugin object
29
*
@@ -32,55 +34,69 @@ if( !class_exists( 'YITH_WCAS' ) ) {
32
*/
33
public $obj = null;
34
35
- /**
36
- * Constructor
37
- *
38
- * @return mixed|YITH_WCAS_Admin|YITH_WCAS_Frontend
39
- * @since 1.0.0
40
- */
41
- public function __construct() {
42
-
43
- // actions
44
- add_action( 'init', array( $this, 'init' ) );
45
add_action( 'widgets_init', array( $this, 'registerWidgets' ) );
46
- add_action( 'wp_ajax_yith_ajax_search_products', array( $this, 'ajax_search_products') );
47
- add_action( 'wp_ajax_nopriv_yith_ajax_search_products', array( $this, 'ajax_search_products') );
48
49
//register shortcode
50
- add_shortcode( 'yith_woocommerce_ajax_search', array( $this, 'add_woo_ajax_search_shortcode') );
51
-
52
- if( is_admin() ) {
53
- $this->obj = new YITH_WCAS_Admin( $this->version );
54
- } else {
55
- $this->obj = new YITH_WCAS_Frontend( $this->version );
56
- }
57
-
58
- return $this->obj;
59
- }
60
-
61
-
62
- /**
63
- * Init method:
64
- * - default options
65
- *
66
- * @access public
67
- * @since 1.0.0
68
- */
69
- public function init() {}
70
71
/**
72
* Load template for [yith_woocommerce_ajax_search] shortcode
73
*
74
* @access public
75
* @param $args array
76
* @return void
77
- * @since 1.0.0
78
*/
79
public function add_woo_ajax_search_shortcode( $args = array() ) {
80
- $args = shortcode_atts( array(), $args );
81
-
82
- $wc_get_template = function_exists('wc_get_template') ? 'wc_get_template' : 'woocommerce_get_template';
83
-
84
$wc_get_template( 'yith-woocommerce-ajax-search.php', $args, '', YITH_WCAS_DIR . 'templates/' );
85
}
86
@@ -88,7 +104,7 @@ if( !class_exists( 'YITH_WCAS' ) ) {
88
* Load and register widgets
89
*
90
* @access public
91
- * @since 1.0.0
92
*/
93
public function registerWidgets() {
94
register_widget( 'YITH_WCAS_Ajax_Search_Widget' );
@@ -96,46 +112,46 @@ if( !class_exists( 'YITH_WCAS' ) ) {
96
97
98
/**
99
- * Perform jax search products
100
*/
101
public function ajax_search_products() {
102
global $woocommerce;
103
104
- $search_keyword = esc_attr($_REQUEST['query']);
105
106
$ordering_args = $woocommerce->query->get_catalog_ordering_args( 'title', 'asc' );
107
- $suggestions = array();
108
109
$args = array(
110
- 's' => apply_filters('yith_wcas_ajax_search_products_search_query', $search_keyword),
111
- 'post_type' => 'product',
112
- 'post_status' => 'publish',
113
- 'ignore_sticky_posts' => 1,
114
- 'orderby' => $ordering_args['orderby'],
115
- 'order' => $ordering_args['order'],
116
- 'posts_per_page' => apply_filters('yith_wcas_ajax_search_products_posts_per_page', get_option('yith_wcas_posts_per_page')),
117
- 'meta_query' => array(
118
array(
119
- 'key' => '_visibility',
120
- 'value' => array('catalog', 'visible'),
121
- 'compare' => 'IN'
122
)
123
)
124
);
125
126
- if( isset( $_REQUEST['product_cat']) ){
127
$args['tax_query'] = array(
128
'relation' => 'AND',
129
array(
130
'taxonomy' => 'product_cat',
131
- 'field' => 'slug',
132
- 'terms' => $_REQUEST['product_cat']
133
- ));
134
}
135
136
$products = get_posts( $args );
137
138
- if ( ! empty( $products ) ) {
139
foreach ( $products as $post ) {
140
$product = wc_get_product( $post );
141
@@ -145,11 +161,12 @@ if( !class_exists( 'YITH_WCAS' ) ) {
145
'url' => $product->get_permalink()
146
), $product );
147
}
148
- } else {
149
$suggestions[] = array(
150
- 'id' => -1,
151
- 'value' => __('No results', 'yit'),
152
- 'url' => '',
153
);
154
}
155
wp_reset_postdata();
@@ -163,5 +180,5 @@ if( !class_exists( 'YITH_WCAS' ) ) {
163
echo json_encode( $suggestions );
164
die();
165
}
166
- }
167
}
2
/**
3
* Main class
4
*
5
+ * @author Yithemes
6
* @package YITH WooCommerce Ajax Search
7
* @version 1.1.1
8
*/
9
10
+ if ( !defined( 'YITH_WCAS' ) ) {
11
+ exit;
12
+ } // Exit if accessed directly
13
14
+ if ( !class_exists( 'YITH_WCAS' ) ) {
15
/**
16
+ * YITH WooCommerce Ajax Search
17
*
18
* @since 1.0.0
19
*/
24
* @var string
25
* @since 1.0.0
26
*/
27
+ public $version = YITH_WCAS_VERSION;
28
+
29
/**
30
* Plugin object
31
*
34
*/
35
public $obj = null;
36
37
+ /**
38
+ * Constructor
39
+ *
40
+ * @return mixed|YITH_WCAS_Admin|YITH_WCAS_Frontend
41
+ * @since 1.0.0
42
+ */
43
+ public function __construct() {
44
+
45
+ // Load Plugin Framework
46
+ add_action( 'after_setup_theme', array( $this, 'plugin_fw_loader' ), 1 );
47
+
48
+ // actions
49
add_action( 'widgets_init', array( $this, 'registerWidgets' ) );
50
+ add_action( 'wp_ajax_yith_ajax_search_products', array( $this, 'ajax_search_products' ) );
51
+ add_action( 'wp_ajax_nopriv_yith_ajax_search_products', array( $this, 'ajax_search_products' ) );
52
+
53
54
//register shortcode
55
+ add_shortcode( 'yith_woocommerce_ajax_search', array( $this, 'add_woo_ajax_search_shortcode' ) );
56
+
57
+ if ( is_admin() ) {
58
+ $this->obj = new YITH_WCAS_Admin( $this->version );
59
+ }
60
+ else {
61
+ $this->obj = new YITH_WCAS_Frontend( $this->version );
62
+ }
63
+
64
+ return $this->obj;
65
+ }
66
+
67
+
68
+ /**
69
+ * Load Plugin Framework
70
+ *
71
+ * @since 1.0
72
+ * @access public
73
+ * @return void
74
+ * @author Andrea Grillo <andrea.grillo@yithemes.com>
75
+ */
76
+ public function plugin_fw_loader() {
77
+
78
+ if ( !defined( 'YIT' ) || !defined( 'YIT_CORE_PLUGIN' ) ) {
79
+
80
+ require_once( 'plugin-fw/yit-plugin.php' );
81
+ }
82
+
83
+ }
84
+
85
+
86
87
/**
88
* Load template for [yith_woocommerce_ajax_search] shortcode
89
*
90
* @access public
91
+ *
92
* @param $args array
93
+ *
94
* @return void
95
+ * @since 1.0.0
96
*/
97
public function add_woo_ajax_search_shortcode( $args = array() ) {
98
+ $args = shortcode_atts( array(), $args );
99
+ $wc_get_template = function_exists( 'wc_get_template' ) ? 'wc_get_template' : 'woocommerce_get_template';
100
$wc_get_template( 'yith-woocommerce-ajax-search.php', $args, '', YITH_WCAS_DIR . 'templates/' );
101
}
102
104
* Load and register widgets
105
*
106
* @access public
107
+ * @since 1.0.0
108
*/
109
public function registerWidgets() {
110
register_widget( 'YITH_WCAS_Ajax_Search_Widget' );
112
113
114
/**
115
+ * Perform ajax search products
116
*/
117
public function ajax_search_products() {
118
global $woocommerce;
119
120
+ $search_keyword = esc_attr( $_REQUEST['query'] );
121
122
$ordering_args = $woocommerce->query->get_catalog_ordering_args( 'title', 'asc' );
123
+ $suggestions = array();
124
125
$args = array(
126
+ 's' => apply_filters( 'yith_wcas_ajax_search_products_search_query', $search_keyword ),
127
+ 'post_type' => 'product',
128
+ 'post_status' => 'publish',
129
+ 'ignore_sticky_posts' => 1,
130
+ 'orderby' => $ordering_args['orderby'],
131
+ 'order' => $ordering_args['order'],
132
+ 'posts_per_page' => apply_filters( 'yith_wcas_ajax_search_products_posts_per_page', get_option( 'yith_wcas_posts_per_page' ) ),
133
+ 'meta_query' => array(
134
array(
135
+ 'key' => '_visibility',
136
+ 'value' => array( 'search', 'visible' ),
137
+ 'compare' => 'IN'
138
)
139
)
140
);
141
142
+ if ( isset( $_REQUEST['product_cat'] ) ) {
143
$args['tax_query'] = array(
144
'relation' => 'AND',
145
array(
146
'taxonomy' => 'product_cat',
147
+ 'field' => 'slug',
148
+ 'terms' => $_REQUEST['product_cat']
149
+ ) );
150
}
151
152
$products = get_posts( $args );
153
154
+ if ( !empty( $products ) ) {
155
foreach ( $products as $post ) {
156
$product = wc_get_product( $post );
157
161
'url' => $product->get_permalink()
162
), $product );
163
}
164
+ }
165
+ else {
166
$suggestions[] = array(
167
+ 'id' => - 1,
168
+ 'value' => __( 'No results', 'yit' ),
169
+ 'url' => '',
170
);
171
}
172
wp_reset_postdata();
180
echo json_encode( $suggestions );
181
die();
182
}
183
+ }
184
}
functions.yith-wcas.php CHANGED
@@ -2,7 +2,7 @@
2
/**
3
* Functions
4
*
5
- * @author Your Inspiration Themes
6
* @package YITH WooCommerce Ajax Search
7
* @version 1.1.1
8
*/
2
/**
3
* Functions
4
*
5
+ * @author Yithemes
6
* @package YITH WooCommerce Ajax Search
7
* @version 1.1.1
8
*/
init.php CHANGED
@@ -3,13 +3,13 @@
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.1.3
7
- * Author: Your Inspiration Themes
8
* Author URI: http://yithemes.com/
9
* Text Domain: yit
10
* Domain Path: /languages/
11
- *
12
- * @author Your Inspiration Themes
13
* @package YITH WooCommerce Ajax Search
14
* @version 1.1.1
15
*/
@@ -30,22 +30,85 @@
30
*/
31
if ( !defined( 'ABSPATH' ) ) { exit; } // Exit if accessed directly
32
33
- function yith_ajax_search_constructor() {
34
- global $woocommerce;
35
- if ( ! isset( $woocommerce ) ) return;
36
-
37
- /**
38
- * Required functions
39
- */
40
- if( !defined('YITH_FUNCTIONS') ) {
41
- require_once( 'yit-common/yit-functions.php' );
42
}
43
44
- load_plugin_textdomain( 'yit', false, dirname( plugin_basename( __FILE__ ) ). '/languages/' );
45
46
define( 'YITH_WCAS', true );
47
define( 'YITH_WCAS_URL', plugin_dir_url( __FILE__ ) );
48
- define( 'YITH_WCAS_DIR', plugin_dir_path( __FILE__ ) );
49
50
// Load required classes and functions
51
require_once('functions.yith-wcas.php');
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.2
7
+ * Author: Yithemes
8
* Author URI: http://yithemes.com/
9
* Text Domain: yit
10
* Domain Path: /languages/
11
+ *
12
+ * @author Yithemes
13
* @package YITH WooCommerce Ajax Search
14
* @version 1.1.1
15
*/
30
*/
31
if ( !defined( 'ABSPATH' ) ) { exit; } // Exit if accessed directly
32
33
+
34
+ if ( !function_exists( 'WC' ) ) {
35
+ function yith_wcas_install_woocommerce_admin_notice() {
36
+ ?>
37
+ <div class="error">
38
+ <p><?php _e( 'YITH WooCommerce Ajax Search is enabled but not effective. It requires Woocommerce in order to work.', 'yit' ); ?></p>
39
+ </div>
40
+ <?php
41
}
42
43
+ add_action( 'admin_notices', 'yith_wcas_install_woocommerce_admin_notice' );
44
+ return;
45
+ }
46
+
47
+ if ( defined( 'YITH_WCAS_PREMIUM' ) ) {
48
+ function yith_wcas_install_free_admin_notice() {
49
+ ?>
50
+ <div class="error">
51
+ <p><?php _e( 'You can\'t activate the free version of YITH WooCommerce Ajax Search while you are using the premium one.', 'yit' ); ?></p>
52
+ </div>
53
+ <?php
54
+ }
55
+
56
+ add_action( 'admin_notices', 'yith_wcas_install_free_admin_notice' );
57
+
58
+ deactivate_plugins( plugin_basename( __FILE__ ) );
59
+ return;
60
+ }
61
+
62
+ if ( !function_exists( 'yith_plugin_registration_hook' ) ) {
63
+ require_once 'plugin-fw/yit-plugin-registration-hook.php';
64
+ }
65
+
66
+ register_activation_hook( __FILE__, 'yith_plugin_registration_hook' );
67
+
68
+
69
+
70
+ if ( defined( 'YITH_WCAS_VERSION' ) ){
71
+ return;
72
+ }else{
73
+ define( 'YITH_WCAS_VERSION', '1.2' );
74
+ }
75
+
76
+ if ( ! defined( 'YITH_WCAS_FREE_INIT' ) ) {
77
+ define( 'YITH_WCAS_FREE_INIT', plugin_basename( __FILE__ ) );
78
+ }
79
80
+ if ( ! defined( 'YITH_WCAS' ) ) {
81
define( 'YITH_WCAS', true );
82
+ }
83
+
84
+ if ( ! defined( 'YITH_WCAS_FILE' ) ) {
85
+ define( 'YITH_WCAS_FILE', __FILE__ );
86
+ }
87
+
88
+ if ( ! defined( 'YITH_WCAS_URL' ) ) {
89
define( 'YITH_WCAS_URL', plugin_dir_url( __FILE__ ) );
90
+ }
91
+
92
+ if ( ! defined( 'YITH_WCAS_DIR' ) ) {
93
+ define( 'YITH_WCAS_DIR', plugin_dir_path( __FILE__ ) );
94
+ }
95
+
96
+ if ( ! defined( 'YITH_WCAS_TEMPLATE_PATH' ) ) {
97
+ define( 'YITH_WCAS_TEMPLATE_PATH', YITH_WCAS_DIR . 'templates' );
98
+ }
99
+
100
+ if ( ! defined( 'YITH_WCAS_ASSETS_URL' ) ) {
101
+ define( 'YITH_WCAS_ASSETS_URL', YITH_WCAS_URL . 'assets' );
102
+ }
103
+
104
+ if ( ! defined( 'YITH_WCAS_ASSETS_IMAGES_URL' ) ) {
105
+ define( 'YITH_WCAS_ASSETS_IMAGES_URL', YITH_WCAS_ASSETS_URL . '/images/' );
106
+ }
107
+
108
+
109
+ function yith_ajax_search_constructor() {
110
+
111
+ load_plugin_textdomain( 'yit', false, dirname( plugin_basename( __FILE__ ) ). '/languages/' );
112
113
// Load required classes and functions
114
require_once('functions.yith-wcas.php');
languages/default.po CHANGED
@@ -1,150 +1,1057 @@
1
msgid ""
2
msgstr ""
3
- "Project-Id-Version: YITH WooCommerce Ajax Search\n"
4
- "POT-Creation-Date: 2013-07-29 18:57+0100\n"
5
- "PO-Revision-Date: 2013-07-29 18:57+0100\n"
6
"Last-Translator: \n"
7
- "Language-Team: Your Inspiration Themes <plugins@yithemes.com>\n"
8
"MIME-Version: 1.0\n"
9
"Content-Type: text/plain; charset=UTF-8\n"
10
"Content-Transfer-Encoding: 8bit\n"
11
"X-Generator: Poedit 1.5.5\n"
12
"X-Poedit-KeywordsList: __;_e;_x\n"
13
"X-Poedit-Basepath: ./\n"
14
"X-Poedit-SearchPath-0: ..\n"
15
16
- #: ../class.yith-wcas-admin.php:124
17
msgid "Ajax Search"
18
msgstr ""
19
20
- #: ../class.yith-wcas-admin.php:173 ../class.yith-wcas-admin.php:213
21
- msgid "General Settings"
22
msgstr ""
23
24
- #: ../class.yith-wcas-admin.php:220
25
- msgid "Search input label"
26
msgstr ""
27
28
#: ../class.yith-wcas-admin.php:221
29
- msgid "Label for Search input field."
30
msgstr ""
31
32
- #: ../class.yith-wcas-admin.php:223 ../class.yith-wcas-admin.php:224
33
- msgid "Search for products"
34
msgstr ""
35
36
- #: ../class.yith-wcas-admin.php:230
37
- msgid "Search submit label"
38
msgstr ""
39
40
- #: ../class.yith-wcas-admin.php:231
41
- msgid "Label for Search submit field."
42
msgstr ""
43
44
- #: ../class.yith-wcas-admin.php:233 ../class.yith-wcas-admin.php:234
45
- msgid "Search"
46
msgstr ""
47
48
- #: ../class.yith-wcas-admin.php:240
49
- msgid "Minimum number of characters"
50
msgstr ""
51
52
- #: ../class.yith-wcas-admin.php:241
53
- msgid "Minimum number of characters required to trigger autosuggest."
54
msgstr ""
55
56
- #: ../class.yith-wcas-admin.php:256
57
- msgid "Maximum number of results"
58
msgstr ""
59
60
- #: ../class.yith-wcas-admin.php:257
61
- msgid "Maximum number of results showed within the autosuggest box."
62
msgstr ""
63
64
- #: ../class.yith-wcas-admin.php:430
65
- msgid "Settings"
66
msgstr ""
67
68
- #: ../class.yith-wcas-admin.php:431
69
- msgid "Docs"
70
msgstr ""
71
72
- #: ../class.yith-wcas.php:137
73
- msgid "No results"
74
msgstr ""
75
76
- #: ../templates/yith-woocommerce-ajax-search.php:20
77
- msgid "Search for:"
78
msgstr ""
79
80
- #: ../widgets/class.yith-wcas-ajax-search.php:29
81
- msgid "An Ajax Search box for products only."
82
msgstr ""
83
84
- #: ../widgets/class.yith-wcas-ajax-search.php:31
85
- msgid "YITH WooCommerce Ajax Product Search"
86
msgstr ""
87
88
- #: ../widgets/class.yith-wcas-ajax-search.php:90
89
- msgid "Title:"
90
msgstr ""
91
92
- #: ../yit-common/yith-panel.php:396
93
- msgid "Select a date"
94
msgstr ""
95
96
- #: ../yit-common/yith-panel.php:397
97
- msgid "Hours"
98
msgstr ""
99
100
- #: ../yit-common/yith-panel.php:398 ../yit-common/yith-panel.php:399
101
- msgid "Minutes"
102
msgstr ""
103
104
- #: ../yit-common/yith-panel.php:407
105
msgid "Upload"
106
msgstr ""
107
108
- #: ../yit-common/yith-panel.php:434
109
msgid "px"
110
msgstr ""
111
112
- #: ../yit-common/yith-panel.php:435
113
msgid "em"
114
msgstr ""
115
116
- #: ../yit-common/yith-panel.php:436
117
msgid "pt"
118
msgstr ""
119
120
- #: ../yit-common/yith-panel.php:437
121
msgid "rem"
122
msgstr ""
123
124
- #: ../yit-common/yith-panel.php:447
125
- msgid "Select a font family"
126
msgstr ""
127
128
- #: ../yit-common/yith-panel.php:455
129
msgid "Regular"
130
msgstr ""
131
132
- #: ../yit-common/yith-panel.php:456
133
msgid "Bold"
134
msgstr ""
135
136
- #: ../yit-common/yith-panel.php:457
137
msgid "Extra bold"
138
msgstr ""
139
140
- #: ../yit-common/yith-panel.php:458
141
msgid "Italic"
142
msgstr ""
143
144
- #: ../yit-common/yith-panel.php:459
145
msgid "Italic bold"
146
msgstr ""
147
148
- #: ../yit-common/yith-panel.php:471
149
- msgid "Click to preview"
150
msgstr ""
1
msgid ""
2
msgstr ""
3
+ "Project-Id-Version: YITH WooCommerce Ajax Search Free\n"
4
+ "POT-Creation-Date: 2015-01-29 15:45+0100\n"
5
+ "PO-Revision-Date: 2015-01-29 15:45+0100\n"
6
"Last-Translator: \n"
7
+ "Language-Team: Yithemes <plugins@yithemes.com>\n"
8
+ "Language: en\n"
9
"MIME-Version: 1.0\n"
10
"Content-Type: text/plain; charset=UTF-8\n"
11
"Content-Transfer-Encoding: 8bit\n"
12
"X-Generator: Poedit 1.5.5\n"
13
"X-Poedit-KeywordsList: __;_e;_x\n"
14
"X-Poedit-Basepath: ./\n"
15
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
16
"X-Poedit-SearchPath-0: ..\n"
17
18
+ #: ../class.yith-wcas-admin.php:106 ../class.yith-wcas-admin.php:128
19
+ #: ../plugin-fw/lib/yit-cpt-unlimited.php:1048
20
+ #: ../plugin-fw/lib/yit-cpt-unlimited.php:1196
21
+ #: ../plugin-fw/lib/yit-cpt-unlimited.php:1202
22
+ #: ../plugin-fw/lib/yit-plugin-panel.php:62
23
+ msgid "Settings"
24
+ msgstr ""
25
+
26
+ #: ../class.yith-wcas-admin.php:107 ../class.yith-wcas-admin.php:129
27
+ msgid "Premium Version"
28
+ msgstr ""
29
+
30
+ #: ../class.yith-wcas-admin.php:135 ../class.yith-wcas-admin.php:136
31
msgid "Ajax Search"
32
msgstr ""
33
34
+ #: ../class.yith-wcas-admin.php:190
35
+ msgid "Plugin Documentation"
36
msgstr ""
37
38
+ #: ../class.yith-wcas-admin.php:207 ../plugin-options/settings-options.php:24
39
+ msgid "YITH WooCommerce Ajax Search"
40
+ msgstr ""
41
+
42
+ #: ../class.yith-wcas-admin.php:208
43
+ msgid ""
44
+ "In the YIT Plugin tab you can find the YITH WooCommerce Ajax Search "
45
+ "options.\n"
46
+ "With this menu, you can access to all the settings of our plugins that you "
47
+ "have activated.\n"
48
+ "YITH WooCommerce Ajax Search is available in an outstanding PREMIUM version "
49
+ "with many new options, <a href=\""
50
msgstr ""
51
52
#: ../class.yith-wcas-admin.php:221
53
+ msgid "YITH WooCommerce Ajax Search Updated"
54
msgstr ""
55
56
+ #: ../class.yith-wcas-admin.php:222
57
+ msgid ""
58
+ "From now on, you can find all the options of YITH WooCommerce Ajax Search "
59
+ "Updated under YIT Plugin -> Ajax Search instead of WooCommerce -> Settings -"
60
+ "> Ajax Search, as in the previous version.\n"
61
+ "When one of our plugins updates, a new voice will be added to this menu.\n"
62
+ "YITH WooCommerce Ajax Search renovates with new available options, discover "
63
+ "the <a href=\""
64
msgstr ""
65
66
+ #: ../class.yith-wcas.php:168
67
+ msgid "No results"
68
msgstr ""
69
70
+ #: ../init.php:38
71
+ msgid ""
72
+ "YITH WooCommerce Ajax Search is enabled but not effective. It requires "
73
+ "Woocommerce in order to work."
74
msgstr ""
75
76
+ #: ../init.php:51
77
+ msgid ""
78
+ "You can't activate the free version of YITH WooCommerce Ajax Search while "
79
+ "you are using the premium one."
80
msgstr ""
81
82
+ #: ../plugin-fw/lib/yit-cpt-unlimited.php:460
83
+ #: ../plugin-fw/lib/yit-cpt-unlimited.php:574
84
+ #: ../plugin-fw/lib/yit-cpt-unlimited.php:719
85
+ #: ../plugin-fw/lib/yit-cpt-unlimited.php:1632
86
+ #, php-format
87
+ msgid "Add %s"
88
msgstr ""
89
90
+ #: ../plugin-fw/lib/yit-cpt-unlimited.php:461
91
+ #: ../plugin-fw/lib/yit-cpt-unlimited.php:575
92
+ #, php-format
93
+ msgid "Add New %s"
94
msgstr ""
95
96
+ #: ../plugin-fw/lib/yit-cpt-unlimited.php:462
97
+ #: ../plugin-fw/lib/yit-cpt-unlimited.php:576
98
+ #: ../plugin-fw/lib/yit-cpt-unlimited.php:1267
99
+ #: ../plugin-fw/lib/yit-cpt-unlimited.php:1304
100
+ #, php-format
101
+ msgid "Edit %s"
102
msgstr ""
103
104
+ #: ../plugin-fw/lib/yit-cpt-unlimited.php:463
105
+ #: ../plugin-fw/lib/yit-cpt-unlimited.php:577
106
+ #, php-format
107
+ msgid "New %s"
108
msgstr ""
109
110
+ #: ../plugin-fw/lib/yit-cpt-unlimited.php:464
111
+ #: ../plugin-fw/lib/yit-cpt-unlimited.php:578
112
+ #, php-format
113
+ msgid "All %s"
114
msgstr ""
115
116
+ #: ../plugin-fw/lib/yit-cpt-unlimited.php:465
117
+ #: ../plugin-fw/lib/yit-cpt-unlimited.php:579
118
+ #: ../plugin-fw/lib/yit-cpt-unlimited.php:1251
119
+ #: ../plugin-fw/lib/yit-cpt-unlimited.php:1305
120
+ #, php-format
121
+ msgid "View %s"
122
msgstr ""
123
124
+ #: ../plugin-fw/lib/yit-cpt-unlimited.php:466
125
+ #: ../plugin-fw/lib/yit-cpt-unlimited.php:580
126
+ #, php-format
127
+ msgid "Search %s"
128
msgstr ""
129
130
+ #: ../plugin-fw/lib/yit-cpt-unlimited.php:467
131
+ #: ../plugin-fw/lib/yit-cpt-unlimited.php:581
132
+ #, php-format
133
+ msgid "No %s found"
134
msgstr ""
135
136
+ #: ../plugin-fw/lib/yit-cpt-unlimited.php:468
137
+ #: ../plugin-fw/lib/yit-cpt-unlimited.php:582
138
+ #, php-format
139
+ msgid "No %s found in Trash"
140
msgstr ""
141
142
+ #: ../plugin-fw/lib/yit-cpt-unlimited.php:625
143
+ #, php-format
144
+ msgid "%s Categories"
145
msgstr ""
146
147
+ #: ../plugin-fw/lib/yit-cpt-unlimited.php:626
148
+ #: ../plugin-fw/lib/yit-cpt-unlimited.php:635
149
+ msgid "Category"
150
+ msgstr ""
151
+
152
+ #: ../plugin-fw/lib/yit-cpt-unlimited.php:627
153
+ msgid "Search Categories"
154
+ msgstr ""
155
+
156
+ #: ../plugin-fw/lib/yit-cpt-unlimited.php:628
157
+ msgid "All Categories"
158
+ msgstr ""
159
+
160
+ #: ../plugin-fw/lib/yit-cpt-unlimited.php:629
161
+ msgid "Parent Category"
162
+ msgstr ""
163
+
164
+ #: ../plugin-fw/lib/yit-cpt-unlimited.php:630
165
+ msgid "Parent Category:"
166
+ msgstr ""
167
+
168
+ #: ../plugin-fw/lib/yit-cpt-unlimited.php:631
169
+ msgid "Edit Category"
170
+ msgstr ""
171
+
172
+ #: ../plugin-fw/lib/yit-cpt-unlimited.php:632
173
+ msgid "Update Category"
174
+ msgstr ""
175
+
176
+ #: ../plugin-fw/lib/yit-cpt-unlimited.php:633
177
+ msgid "Add New Category"
178
+ msgstr ""
179
+
180
+ #: ../plugin-fw/lib/yit-cpt-unlimited.php:634
181
+ msgid "New Category Name"
182
+ msgstr ""
183
+
184
+ #: ../plugin-fw/lib/yit-cpt-unlimited.php:724
185
+ msgid "Categories"
186
+ msgstr ""
187
+
188
+ #: ../plugin-fw/lib/yit-cpt-unlimited.php:1042
189
+ #, php-format
190
+ msgid "%s Settings"
191
+ msgstr ""
192
+
193
+ #: ../plugin-fw/lib/yit-cpt-unlimited.php:1051
194
+ msgid "Type"
195
+ msgstr ""
196
+
197
+ #: ../plugin-fw/lib/yit-cpt-unlimited.php:1052
198
+ msgid "The layout for this "
199
+ msgstr ""
200
+
201
+ #: ../plugin-fw/lib/yit-cpt-unlimited.php:1058
202
+ msgid "Rewrite"
203
+ msgstr ""
204
+
205
+ #: ../plugin-fw/lib/yit-cpt-unlimited.php:1059
206
+ msgid "The word used for the URL of each project (the slug of post if empty)"
207
+ msgstr ""
208
+
209
+ #: ../plugin-fw/lib/yit-cpt-unlimited.php:1064
210
+ msgid "Label Singular"
211
+ msgstr ""
212
+
213
+ #: ../plugin-fw/lib/yit-cpt-unlimited.php:1065
214
+ msgid ""
215
+ "Set the label in singular to use for each label (the title of portfolio if "
216
+ "empty)"
217
+ msgstr ""
218
+
219
+ #: ../plugin-fw/lib/yit-cpt-unlimited.php:1070
220
+ msgid "Label Plural"
221
+ msgstr ""
222
+
223
+ #: ../plugin-fw/lib/yit-cpt-unlimited.php:1071
224
+ msgid ""
225
+ "Set the label in plural to use for each label (the title of portfolio if "
226
+ "empty)"
227
+ msgstr ""
228
+
229
+ #: ../plugin-fw/lib/yit-cpt-unlimited.php:1076
230
+ msgid "Taxonomy"
231
+ msgstr ""
232
+
233
+ #: ../plugin-fw/lib/yit-cpt-unlimited.php:1077
234
+ msgid ""
235
+ "If you want to use a category section for the portfolio, set the name of "
236
+ "taxonomy. Name should be in slug form (must not contain capital letters or "
237
+ "spaces) and not more than 32 characters long (database structure "
238
+ "restriction)."
239
+ msgstr ""
240
+
241
+ #: ../plugin-fw/lib/yit-cpt-unlimited.php:1082
242
+ msgid "Taxonomy Rewrite"
243
+ msgstr ""
244
+
245
+ #: ../plugin-fw/lib/yit-cpt-unlimited.php:1083
246
+ msgid "Set the word to use in the URL for each category page."
247
+ msgstr ""
248
+
249
+ #: ../plugin-fw/lib/yit-cpt-unlimited.php:1088
250
+ msgid "Single layout"
251
+ msgstr ""
252
+
253
+ #: ../plugin-fw/lib/yit-cpt-unlimited.php:1089
254
+ msgid "The layout for single page of this portfolio"
255
+ msgstr ""
256
+
257
+ #: ../plugin-fw/lib/yit-cpt-unlimited.php:1130
258
+ msgid "layout settings"
259
+ msgstr ""
260
+
261
+ #: ../plugin-fw/lib/yit-cpt-unlimited.php:1222
262
+ #: ../plugin-fw/lib/yit-cpt-unlimited.php:1235
263
+ msgid "Quick links"
264
+ msgstr ""
265
+
266
+ #: ../plugin-fw/lib/yit-cpt-unlimited.php:1475
267
+ #, php-format
268
+ msgid "Show the frontend of the %s"
269
+ msgstr ""
270
+
271
+ #: ../plugin-fw/lib/yit-cpt-unlimited.php:1482
272
+ #: ../plugin-fw/templates/metaboxes/types/customtabs.php:46
273
+ #: ../plugin-fw/templates/metaboxes/types/customtabs.php:90
274
+ msgid "Name"
275
+ msgstr ""
276
+
277
+ #: ../plugin-fw/lib/yit-cpt-unlimited.php:1631
278
+ #, php-format
279
+ msgid "Add %s by images"
280
+ msgstr ""
281
+
282
+ #: ../plugin-fw/lib/yit-cpt-unlimited.php:1633
283
+ msgid "Add with multiupload"
284
+ msgstr ""
285
+
286
+ #: ../plugin-fw/lib/yit-plugin-panel-wc.php:302
287
+ msgid "The changes you made will be lost if you navigate away from this page."
288
+ msgstr ""
289
+
290
+ #: ../plugin-fw/lib/yit-plugin-panel.php:61
291
+ msgid "Plugin Settings"
292
+ msgstr ""
293
+
294
+ #: ../plugin-fw/lib/yit-plugin-panel.php:92
295
+ #: ../plugin-fw/lib/yit-plugin-subpanel.php:101
296
+ msgid "YIT Plugins"
297
+ msgstr ""
298
+
299
+ #: ../plugin-fw/lib/yit-plugin-panel.php:269
300
+ #: ../plugin-fw/lib/yit-plugin-subpanel.php:142
301
+ #: ../plugin-fw/templates/panel/woocommerce/woocommerce-form.php:5
302
+ msgid "Save Changes"
303
+ msgstr ""
304
+
305
+ #: ../plugin-fw/lib/yit-plugin-panel.php:272
306
+ #: ../plugin-fw/lib/yit-plugin-subpanel.php:145
307
+ #: ../plugin-fw/templates/panel/woocommerce/woocommerce-form.php:8
308
+ msgid ""
309
+ "If you continue with this action, you will reset all options are in this "
310
+ "page."
311
+ msgstr ""
312
+
313
+ #: ../plugin-fw/lib/yit-plugin-panel.php:274
314
+ #: ../plugin-fw/lib/yit-plugin-subpanel.php:147
315
+ #: ../plugin-fw/templates/panel/woocommerce/woocommerce-form.php:10
316
+ msgid "Reset Defaults"
317
+ msgstr ""
318
+
319
+ #: ../plugin-fw/lib/yit-plugin-panel.php:274
320
+ #: ../plugin-fw/lib/yit-plugin-subpanel.php:147
321
+ #: ../plugin-fw/templates/panel/woocommerce/woocommerce-form.php:10
322
+ msgid "Are you sure of it?"
323
+ msgstr ""
324
+
325
+ #: ../plugin-fw/lib/yit-plugin-panel.php:408
326
+ msgid ""
327
+ "The element you have written is already exists. Please, add another name."
328
+ msgstr ""
329
+
330
+ #: ../plugin-fw/lib/yit-plugin-panel.php:409
331
+ msgid "Settings saved"
332
+ msgstr ""
333
+
334
+ #: ../plugin-fw/lib/yit-plugin-panel.php:410
335
+ msgid "Settings reset"
336
+ msgstr ""
337
+
338
+ #: ../plugin-fw/lib/yit-plugin-panel.php:411
339
+ msgid "Element deleted correctly."
340
+ msgstr ""
341
+
342
+ #: ../plugin-fw/lib/yit-plugin-panel.php:412
343
+ #: ../plugin-fw/lib/yit-plugin-panel.php:413
344
+ msgid "Element updated correctly."
345
+ msgstr ""
346
+
347
+ #: ../plugin-fw/lib/yit-plugin-panel.php:414
348
+ msgid "Database imported correctly."
349
+ msgstr ""
350
+
351
+ #: ../plugin-fw/lib/yit-plugin-panel.php:415
352
+ msgid "An error encoured during during import. Please try again."
353
+ msgstr ""
354
+
355
+ #: ../plugin-fw/lib/yit-plugin-panel.php:416
356
+ msgid "The file you have insert doesn't valid."
357
+ msgstr ""
358
+
359
+ #: ../plugin-fw/lib/yit-plugin-panel.php:417
360
+ msgid "I'm sorry, the import featured is disabled."
361
+ msgstr ""
362
+
363
+ #: ../plugin-fw/lib/yit-plugin-panel.php:418
364
+ msgid "Sorting done correctly."
365
+ msgstr ""
366
+
367
+ #: ../plugin-fw/lib/yit-pointers.php:70
368
+ msgid "Plugins Activated"
369
+ msgstr ""
370
+
371
+ #: ../plugin-fw/lib/yit-pointers.php:71
372
+ msgid ""
373
+ "From now on, you can find all the options of your plugins under the YIT "
374
+ "Plugin menu voice.\n"
375
+ " For every installation of our new "
376
+ "plugins, a new voice will be added to access to the customization settings."
377
+ msgstr ""
378
+
379
+ #: ../plugin-fw/lib/yit-pointers.php:73 ../plugin-fw/lib/yit-pointers.php:89
380
+ msgid "Discover all our plugins available on:"
381
+ msgstr ""
382
+
383
+ #: ../plugin-fw/lib/yit-pointers.php:74 ../plugin-fw/lib/yit-pointers.php:90
384
+ msgid "and"
385
+ msgstr ""
386
+
387
+ #: ../plugin-fw/lib/yit-pointers.php:84
388
+ msgid "Plugins Upgraded"
389
+ msgstr ""
390
+
391
+ #: ../plugin-fw/lib/yit-pointers.php:85
392
+ msgid ""
393
+ "From now on, you can find all the options of your plugins under the YIT "
394
+ "Plugin menu voice.\n"
395
+ " When one of our plugins updates, a new "
396
+ "voice will be added to this menu.\n"
397
+ " For example, after the update, the "
398
+ "options from the plugins (YITH WooCommerce Wishlist, YITH WooCommerce Ajax "
399
+ "Search, etc.)\n"
400
+ " will be removed from the previous "
401
+ "location and moved under the YIT Plugin tab."
402
+ msgstr ""
403
+
404
+ #: ../plugin-fw/lib/yit-upgrade.php:120
405
+ msgid "There is a new version of %plugin_name% available."
406
+ msgstr ""
407
+
408
+ #: ../plugin-fw/lib/yit-upgrade.php:121
409
+ msgid "View version %latest% details."
410
+ msgstr ""
411
+
412
+ #: ../plugin-fw/lib/yit-upgrade.php:122
413
+ msgid "Automatic update is unavailable for this plugin,"
414
+ msgstr ""
415
+
416
+ #: ../plugin-fw/lib/yit-upgrade.php:123
417
+ msgid ""
418
+ "please <a href=\"%activate_link%\"> activate </a> your copy of %plugin_name%."
419
+ msgstr ""
420
+
421
+ #: ../plugin-fw/lib/yit-upgrade.php:124
422
+ msgid "Update now."
423
+ msgstr ""
424
+
425
+ #: ../plugin-fw/lib/yit-upgrade.php:220
426
+ msgid "Yithemes Repository"
427
+ msgstr ""
428
+
429
+ #: ../plugin-fw/lib/yit-upgrade.php:254
430
+ msgid "Invalid URL Provided."
431
+ msgstr ""
432
+
433
+ #: ../plugin-fw/lib/yit-upgrade.php:267
434
+ msgid "Could not create Temporary file."
435
+ msgstr ""
436
+
437
+ #: ../plugin-fw/lib/yit-upgrade.php:408
438
+ #, php-format
439
+ msgid ""
440
+ "There is a new version of %1$s available. <a href=\"%2$s\" class=\"thickbox "
441
+ "yit-changelog-button\" title=\"%3$s\">View version %4$s details</a>."
442
+ msgstr ""
443
+
444
+ #: ../plugin-fw/lib/yit-upgrade.php:410
445
+ #, php-format
446
+ msgid ""
447
+ "There is a new version of %1$s available. <a href=\"%2$s\" class=\"thickbox "
448
+ "yit-changelog-button\" title=\"%3$s\">View version %4$s details</a>. <em>You "
449
+ "have to activate the plugin on a single site of the network to benefit from "
450
+ "the automatic updates.</em>"
451
+ msgstr ""
452
+
453
+ #: ../plugin-fw/lib/yit-upgrade.php:412
454
+ #, php-format
455
+ msgid ""
456
+ "There is a new version of %1$s available. <a href=\"%2$s\" class=\"thickbox "
457
+ "yit-changelog-button\" title=\"%3$s\">View version %4$s details</a>. "
458
+ "<em>Automatic update is unavailable for this plugin, please <a href=\"%5$s\" "
459
+ "title=\"Licence activation\">activate</a> your copy of %6s.</em>"
460
+ msgstr ""
461
+
462
+ #: ../plugin-fw/lib/yit-upgrade.php:414
463
+ #, php-format
464
+ msgid ""
465
+ "There is a new version of %1$s available. <a href=\"%2$s\" class=\"thickbox "
466
+ "yit-changelog-button\" title=\"%3$s\">View version %4$s details</a> or <a "
467
+ "href=\"%5$s\">update now</a>."
468
+ msgstr ""
469
+
470
+ #: ../plugin-fw/lib/yit-upgrade.php:487
471
+ msgid "You can't update plugins for this site."
472
+ msgstr ""
473
+
474
+ #: ../plugin-fw/lib/yit-upgrade.php:491
475
+ msgid "You do not have sufficient permissions to update plugins for this site."
476
+ msgstr ""
477
+
478
+ #: ../plugin-fw/lib/yit-upgrade.php:498
479
+ msgid "Update Plugin"
480
+ msgstr ""
481
+
482
+ #: ../plugin-fw/licence/lib/yit-licence.php:154
483
+ #, php-format
484
+ msgid "%field% field can not be empty"
485
+ msgstr ""
486
+
487
+ #: ../plugin-fw/licence/lib/yit-licence.php:155
488
+ msgid "%field_1% and %field_2% fields can not be empty"
489
+ msgstr ""
490
+
491
+ #: ../plugin-fw/licence/lib/yit-licence.php:156
492
+ msgid "Unable to contact the remote server, please try again later. Thanks!"
493
+ msgstr ""
494
+
495
+ #: ../plugin-fw/licence/lib/yit-licence.php:538
496
+ msgid "Invalid Request"
497
+ msgstr ""
498
+
499
+ #: ../plugin-fw/licence/lib/yit-licence.php:539
500
+ msgid "Invalid licence key"
501
+ msgstr ""
502
+
503
+ #: ../plugin-fw/licence/lib/yit-licence.php:540
504
+ msgid "Software has been deactive"
505
+ msgstr ""
506
+
507
+ #: ../plugin-fw/licence/lib/yit-licence.php:541
508
+ msgid "Exceeded maximum number of activations"
509
+ msgstr ""
510
+
511
+ #: ../plugin-fw/licence/lib/yit-licence.php:542
512
+ msgid "Invalid instance ID"
513
msgstr ""
514
515
+ #: ../plugin-fw/licence/lib/yit-licence.php:543
516
+ msgid "Invalid security key"
517
+ msgstr ""
518
+
519
+ #: ../plugin-fw/licence/lib/yit-licence.php:544
520
+ msgid "Licence key has expired"
521
+ msgstr ""
522
+
523
+ #: ../plugin-fw/licence/lib/yit-licence.php:545
524
+ msgid "Licence key has be banned"
525
+ msgstr ""
526
+
527
+ #: ../plugin-fw/licence/lib/yit-plugin-licence.php:63
528
+ #: ../plugin-fw/licence/lib/yit-plugin-licence.php:64
529
+ #: ../plugin-fw/licence/lib/yit-theme-licence.php:63
530
+ #: ../plugin-fw/licence/lib/yit-theme-licence.php:64
531
+ #: ../plugin-fw/licence/lib/yit-theme-licence.php:106
532
+ #: ../plugin-fw/licence/lib/yit-theme-licence.php:107
533
+ msgid "Licence Activation"
534
+ msgstr ""
535
+
536
+ #: ../plugin-fw/licence/lib/yit-theme-licence.php:114
537
+ #: ../plugin-fw/licence/lib/yit-theme-licence.php:115
538
+ #, php-format
539
+ msgid "%s"
540
+ msgstr ""
541
+
542
+ #: ../plugin-fw/licence/templates/panel/activation/activation-panel.php:25
543
+ msgid "Yithemes Licence Activation"
544
+ msgstr ""