Version Description
- Add - Support for Maya shop theme
- Add - Support for Generatepress theme
- Update - Plurals support
Download this release
Release Info
Developer | Mihail Barinov |
Plugin | Advanced Woo Search |
Version | 1.83 |
Comparing to | |
See all releases |
Code changes from version 1.82 to 1.83
- advanced-woo-search.php +2 -2
- includes/class-aws-integrations.php +52 -0
- includes/class-aws-plurals.php +0 -2
- readme.txt +6 -1
advanced-woo-search.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
/*
|
4 |
Plugin Name: Advanced Woo Search
|
5 |
Description: Advance ajax WooCommerce product search.
|
6 |
-
Version: 1.
|
7 |
Author: ILLID
|
8 |
Author URI: https://advanced-woo-search.com/
|
9 |
Text Domain: advanced-woo-search
|
@@ -16,7 +16,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
16 |
exit;
|
17 |
}
|
18 |
|
19 |
-
define( 'AWS_VERSION', '1.
|
20 |
|
21 |
|
22 |
define( 'AWS_DIR', dirname( __FILE__ ) );
|
3 |
/*
|
4 |
Plugin Name: Advanced Woo Search
|
5 |
Description: Advance ajax WooCommerce product search.
|
6 |
+
Version: 1.83
|
7 |
Author: ILLID
|
8 |
Author URI: https://advanced-woo-search.com/
|
9 |
Text Domain: advanced-woo-search
|
16 |
exit;
|
17 |
}
|
18 |
|
19 |
+
define( 'AWS_VERSION', '1.83' );
|
20 |
|
21 |
|
22 |
define( 'AWS_DIR', dirname( __FILE__ ) );
|
includes/class-aws-integrations.php
CHANGED
@@ -66,6 +66,11 @@ if ( ! class_exists( 'AWS_Integrations' ) ) :
|
|
66 |
add_filter( 'aws_search_pre_filter_products', array( $this, 'wc_marketplace_products_filter' ), 10, 2 );
|
67 |
}
|
68 |
|
|
|
|
|
|
|
|
|
|
|
69 |
// Porto theme
|
70 |
add_filter( 'porto_search_form_content', array( $this, 'porto_search_form_content_filter' ) );
|
71 |
|
@@ -76,6 +81,7 @@ if ( ! class_exists( 'AWS_Integrations' ) ) :
|
|
76 |
if ( AWS()->get_settings( 'seamless' ) === 'true' ) {
|
77 |
add_filter( 'et_html_main_header', array( $this, 'et_html_main_header' ) );
|
78 |
add_filter( 'et_html_slide_header', array( $this, 'et_html_main_header' ) );
|
|
|
79 |
}
|
80 |
|
81 |
// Wholesale plugin hide certain products
|
@@ -317,6 +323,40 @@ if ( ! class_exists( 'AWS_Integrations' ) ) :
|
|
317 |
|
318 |
}
|
319 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
320 |
/*
|
321 |
* Porto theme seamless integration
|
322 |
*/
|
@@ -412,6 +452,18 @@ if ( ! class_exists( 'AWS_Integrations' ) ) :
|
|
412 |
return $html;
|
413 |
}
|
414 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
415 |
/*
|
416 |
* Wholesale plugin hide products
|
417 |
*/
|
66 |
add_filter( 'aws_search_pre_filter_products', array( $this, 'wc_marketplace_products_filter' ), 10, 2 );
|
67 |
}
|
68 |
|
69 |
+
// Maya shop theme
|
70 |
+
if ( defined( 'YIW_THEME_PATH' ) ) {
|
71 |
+
add_action( 'wp_head', array( $this, 'myashop_head_action' ) );
|
72 |
+
}
|
73 |
+
|
74 |
// Porto theme
|
75 |
add_filter( 'porto_search_form_content', array( $this, 'porto_search_form_content_filter' ) );
|
76 |
|
81 |
if ( AWS()->get_settings( 'seamless' ) === 'true' ) {
|
82 |
add_filter( 'et_html_main_header', array( $this, 'et_html_main_header' ) );
|
83 |
add_filter( 'et_html_slide_header', array( $this, 'et_html_main_header' ) );
|
84 |
+
add_filter( 'generate_navigation_search_output', array( $this, 'generate_navigation_search_output' ) );
|
85 |
}
|
86 |
|
87 |
// Wholesale plugin hide certain products
|
323 |
|
324 |
}
|
325 |
|
326 |
+
/*
|
327 |
+
* Maya shop theme support
|
328 |
+
*/
|
329 |
+
public function myashop_head_action() { ?>
|
330 |
+
|
331 |
+
<style>
|
332 |
+
#header .aws-container {
|
333 |
+
margin: 0;
|
334 |
+
position: absolute;
|
335 |
+
right: 0;
|
336 |
+
bottom: 85px;
|
337 |
+
}
|
338 |
+
|
339 |
+
@media only screen and (max-width: 960px) {
|
340 |
+
#header .aws-container {
|
341 |
+
bottom: 118px !important;
|
342 |
+
right: 10px !important;
|
343 |
+
}
|
344 |
+
}
|
345 |
+
|
346 |
+
@media only screen and (max-width: 600px) {
|
347 |
+
#header .aws-container {
|
348 |
+
position: relative !important;
|
349 |
+
bottom: auto !important;
|
350 |
+
right: auto !important;
|
351 |
+
display: inline-block !important;
|
352 |
+
margin-top: 20px !important;
|
353 |
+
margin-bottom: 20px !important;
|
354 |
+
}
|
355 |
+
}
|
356 |
+
</style>
|
357 |
+
|
358 |
+
<?php }
|
359 |
+
|
360 |
/*
|
361 |
* Porto theme seamless integration
|
362 |
*/
|
452 |
return $html;
|
453 |
}
|
454 |
|
455 |
+
/*
|
456 |
+
* Generatepress theme support
|
457 |
+
*/
|
458 |
+
public function generate_navigation_search_output( $html ) {
|
459 |
+
if ( function_exists( 'aws_get_search_form' ) ) {
|
460 |
+
$html = '<style>.navigation-search .aws-container .aws-search-form{height: 60px;} .navigation-search .aws-container{margin-right: 60px;} .navigation-search .aws-container .search-field{border:none;} </style>';
|
461 |
+
$html .= '<div class="navigation-search">' . aws_get_search_form( false ) . '</div>';
|
462 |
+
$html = str_replace( 'aws-search-field', 'aws-search-field search-field', $html );
|
463 |
+
}
|
464 |
+
return $html;
|
465 |
+
}
|
466 |
+
|
467 |
/*
|
468 |
* Wholesale plugin hide products
|
469 |
*/
|
includes/class-aws-plurals.php
CHANGED
@@ -39,8 +39,6 @@ if ( ! class_exists( 'AWS_Plurals' ) ) :
|
|
39 |
'/(tive)s$/i' => '\1',
|
40 |
'/(hive)s$/i' => '\1',
|
41 |
'/(drive)s$/i' => '\1',
|
42 |
-
'/([le])ves$/i' => '\1f',
|
43 |
-
'/([^rfoa])ves$/i' => '\1fe',
|
44 |
'/(^analy)ses$/i' => '\1sis',
|
45 |
'/(analy|diagno|^ba|(p)arenthe|(p)rogno|(s)ynop|(t)he)ses$/i' => '\1\2sis',
|
46 |
'/([ti])a$/i' => '\1um',
|
39 |
'/(tive)s$/i' => '\1',
|
40 |
'/(hive)s$/i' => '\1',
|
41 |
'/(drive)s$/i' => '\1',
|
|
|
|
|
42 |
'/(^analy)ses$/i' => '\1sis',
|
43 |
'/(analy|diagno|^ba|(p)arenthe|(p)rogno|(s)ynop|(t)he)ses$/i' => '\1\2sis',
|
44 |
'/([ti])a$/i' => '\1um',
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
|
|
4 |
Tags: widget, plugin, woocommerce, search, product search, woocommerce search, ajax search, live search, custom search, ajax, shortcode, better search, relevance search, relevant search, search by sku, search plugin, shop, store, wordpress search, wp ajax search, wp search, wp search plugin, sidebar, ecommerce, merketing, products, category search, instant-search, search highlight, woocommerce advanced search, woocommerce live search, WooCommerce Plugin, woocommerce product search
|
5 |
Requires at least: 4.0
|
6 |
Tested up to: 5.2
|
7 |
-
Stable tag: 1.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -104,6 +104,11 @@ Yep. This plugin is always compatible with the latest version of Woocommerce?
|
|
104 |
|
105 |
== Changelog ==
|
106 |
|
|
|
|
|
|
|
|
|
|
|
107 |
= 1.82 =
|
108 |
* Fix - Bug with WooCommerce attributes filter widget. Now its display proper number of attributes on search page
|
109 |
* Fix - Filter by attributes on search results page. Now search results works proper with multiple attributes filters
|
4 |
Tags: widget, plugin, woocommerce, search, product search, woocommerce search, ajax search, live search, custom search, ajax, shortcode, better search, relevance search, relevant search, search by sku, search plugin, shop, store, wordpress search, wp ajax search, wp search, wp search plugin, sidebar, ecommerce, merketing, products, category search, instant-search, search highlight, woocommerce advanced search, woocommerce live search, WooCommerce Plugin, woocommerce product search
|
5 |
Requires at least: 4.0
|
6 |
Tested up to: 5.2
|
7 |
+
Stable tag: 1.83
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
104 |
|
105 |
== Changelog ==
|
106 |
|
107 |
+
= 1.83 =
|
108 |
+
* Add - Support for Maya shop theme
|
109 |
+
* Add - Support for Generatepress theme
|
110 |
+
* Update - Plurals support
|
111 |
+
|
112 |
= 1.82 =
|
113 |
* Fix - Bug with WooCommerce attributes filter widget. Now its display proper number of attributes on search page
|
114 |
* Fix - Filter by attributes on search results page. Now search results works proper with multiple attributes filters
|