Version Description
- Released on 7 September 2021 =
- New: support for WooCommerce 5.7
- Update: YITH plugin framework
Download this release
Release Info
Developer | yithemes |
Plugin | YITH WooCommerce Ajax Search |
Version | 1.10.0 |
Comparing to | |
See all releases |
Code changes from version 1.9.3 to 1.10.0
- init.php +3 -3
- languages/yith-woocommerce-ajax-search.pot +2 -2
- plugin-fw/init.php +2 -2
- plugin-fw/templates/fields/inline-fields.php +2 -2
- plugin-fw/yit-plugin.php +9 -6
- readme.txt +5 -1
init.php
CHANGED
@@ -3,13 +3,13 @@
|
|
3 |
* Plugin Name: YITH WooCommerce Ajax Search
|
4 |
* Plugin URI: https://yithemes.com/themes/plugins/yith-woocommerce-ajax-search/
|
5 |
* Description: <code><strong>YITH WooCommerce Ajax Search</strong></code> is the plugin that allows you to search for a specific product by inserting a few characters. Thanks to <strong>Ajax Search</strong>, users can quickly find the contents they are interested in without wasting time among site pages. <a href="https://yithemes.com/" target="_blank">Get more plugins for your e-commerce shop on <strong>YITH</strong></a>.
|
6 |
-
* Version: 1.
|
7 |
* Author: YITH
|
8 |
* Author URI: https://yithemes.com/
|
9 |
* Text Domain: yith-woocommerce-ajax-search
|
10 |
* Domain Path: /languages/
|
11 |
* WC requires at least: 5.3
|
12 |
-
* WC tested up to: 5.
|
13 |
*
|
14 |
* @author YITH
|
15 |
* @package YITH WooCommerce Ajax Search
|
@@ -75,7 +75,7 @@ register_activation_hook( __FILE__, 'yith_plugin_registration_hook' );
|
|
75 |
if ( defined( 'YITH_WCAS_VERSION' ) ) {
|
76 |
return;
|
77 |
} else {
|
78 |
-
define( 'YITH_WCAS_VERSION', '1.
|
79 |
}
|
80 |
|
81 |
if ( ! defined( 'YITH_WCAS_FREE_INIT' ) ) {
|
3 |
* Plugin Name: YITH WooCommerce Ajax Search
|
4 |
* Plugin URI: https://yithemes.com/themes/plugins/yith-woocommerce-ajax-search/
|
5 |
* Description: <code><strong>YITH WooCommerce Ajax Search</strong></code> is the plugin that allows you to search for a specific product by inserting a few characters. Thanks to <strong>Ajax Search</strong>, users can quickly find the contents they are interested in without wasting time among site pages. <a href="https://yithemes.com/" target="_blank">Get more plugins for your e-commerce shop on <strong>YITH</strong></a>.
|
6 |
+
* Version: 1.10.0
|
7 |
* Author: YITH
|
8 |
* Author URI: https://yithemes.com/
|
9 |
* Text Domain: yith-woocommerce-ajax-search
|
10 |
* Domain Path: /languages/
|
11 |
* WC requires at least: 5.3
|
12 |
+
* WC tested up to: 5.7
|
13 |
*
|
14 |
* @author YITH
|
15 |
* @package YITH WooCommerce Ajax Search
|
75 |
if ( defined( 'YITH_WCAS_VERSION' ) ) {
|
76 |
return;
|
77 |
} else {
|
78 |
+
define( 'YITH_WCAS_VERSION', '1.10.0' );
|
79 |
}
|
80 |
|
81 |
if ( ! defined( 'YITH_WCAS_FREE_INIT' ) ) {
|
languages/yith-woocommerce-ajax-search.pot
CHANGED
@@ -2,10 +2,10 @@
|
|
2 |
# This file is distributed under the same license as the YITH WooCommerce Ajax Search package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: YITH WooCommerce Ajax Search 1.
|
6 |
"Report-Msgid-Bugs-To: "
|
7 |
"https://wordpress.org/support/plugin/yith-woocommerce-ajax-search\n"
|
8 |
-
"POT-Creation-Date: 2021-
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=utf-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
2 |
# This file is distributed under the same license as the YITH WooCommerce Ajax Search package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: YITH WooCommerce Ajax Search 1.10.0\n"
|
6 |
"Report-Msgid-Bugs-To: "
|
7 |
"https://wordpress.org/support/plugin/yith-woocommerce-ajax-search\n"
|
8 |
+
"POT-Creation-Date: 2021-09-07 13:18:24+00:00\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=utf-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
plugin-fw/init.php
CHANGED
@@ -1,13 +1,13 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* Framework Name: YIT Plugin Framework
|
4 |
-
* Version: 3.7.
|
5 |
* Author: YITH
|
6 |
* Text Domain: yith-plugin-fw
|
7 |
* Domain Path: /languages/
|
8 |
*
|
9 |
* @author YITH
|
10 |
-
* @version 3.7.
|
11 |
* @package YITH\PluginFramework
|
12 |
*/
|
13 |
|
1 |
<?php
|
2 |
/**
|
3 |
* Framework Name: YIT Plugin Framework
|
4 |
+
* Version: 3.7.5
|
5 |
* Author: YITH
|
6 |
* Text Domain: yith-plugin-fw
|
7 |
* Domain Path: /languages/
|
8 |
*
|
9 |
* @author YITH
|
10 |
+
* @version 3.7.5
|
11 |
* @package YITH\PluginFramework
|
12 |
*/
|
13 |
|
plugin-fw/templates/fields/inline-fields.php
CHANGED
@@ -8,7 +8,7 @@
|
|
8 |
|
9 |
defined( 'ABSPATH' ) || exit; // Exit if accessed directly.
|
10 |
|
11 |
-
list ( $field_id, $name, $class, $fields, $value ) = yith_plugin_fw_extract( $field, 'id', 'name', 'class', 'fields', 'value' );
|
12 |
|
13 |
$class = ! ! $class ? $class : '';
|
14 |
$value = maybe_unserialize( $value );
|
@@ -16,7 +16,7 @@ $allowed_types = array( 'select', 'select-buttons', 'number', 'text', 'slider',
|
|
16 |
$default_args = array( 'type' => 'select' );
|
17 |
?>
|
18 |
<?php if ( ! empty( $fields ) && is_array( $fields ) ) : ?>
|
19 |
-
<div id="<?php echo esc_attr( $field_id ); ?>" class="<?php echo esc_attr( $class ); ?> yith-inline-fields"
|
20 |
<?php foreach ( $fields as $key => $inline_field ) : ?>
|
21 |
<?php
|
22 |
if ( ! in_array( $inline_field['type'], $allowed_types, true ) ) {
|
8 |
|
9 |
defined( 'ABSPATH' ) || exit; // Exit if accessed directly.
|
10 |
|
11 |
+
list ( $field_id, $name, $class, $fields, $value, $custom_attributes ) = yith_plugin_fw_extract( $field, 'id', 'name', 'class', 'fields', 'value', 'custom_attributes' );
|
12 |
|
13 |
$class = ! ! $class ? $class : '';
|
14 |
$value = maybe_unserialize( $value );
|
16 |
$default_args = array( 'type' => 'select' );
|
17 |
?>
|
18 |
<?php if ( ! empty( $fields ) && is_array( $fields ) ) : ?>
|
19 |
+
<div id="<?php echo esc_attr( $field_id ); ?>" class="<?php echo esc_attr( $class ); ?> yith-inline-fields" <?php echo $custom_attributes; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>>
|
20 |
<?php foreach ( $fields as $key => $inline_field ) : ?>
|
21 |
<?php
|
22 |
if ( ! in_array( $inline_field['type'], $allowed_types, true ) ) {
|
plugin-fw/yit-plugin.php
CHANGED
@@ -111,9 +111,12 @@ if ( ! function_exists( 'yit_plugin_fw_row_meta' ) ) {
|
|
111 |
$plugin_data,
|
112 |
$status
|
113 |
);
|
114 |
-
$fields
|
115 |
-
$slug
|
116 |
-
$is_premium
|
|
|
|
|
|
|
117 |
|
118 |
if ( ! ! $is_premium ) {
|
119 |
$to_remove = array_search( 'premium_version', $fields, true );
|
@@ -162,18 +165,18 @@ if ( ! function_exists( 'yit_plugin_fw_row_meta' ) ) {
|
|
162 |
}
|
163 |
|
164 |
if ( ! empty( $url ) && ! empty( $label ) ) {
|
165 |
-
$url = yith_plugin_fw_add_utm_data( $url, $slug,
|
166 |
$plugin_meta[] = sprintf( '<a href="%s" target="_blank"><span class="%s"></span>%s</a>', $url, $icon, $label );
|
167 |
}
|
168 |
}
|
169 |
|
170 |
if ( isset( $plugin_meta[1] ) ) {
|
171 |
-
$utm_author_uri = yith_plugin_fw_add_utm_data( $plugin_data['AuthorURI'], $slug,
|
172 |
$plugin_meta[1] = str_replace( $plugin_data['AuthorURI'], $utm_author_uri, $plugin_meta[1] );
|
173 |
}
|
174 |
|
175 |
if ( isset( $plugin_meta[2] ) ) {
|
176 |
-
$utm_plugin_uri = yith_plugin_fw_add_utm_data( $plugin_data['PluginURI'], $slug,
|
177 |
$plugin_meta[2] = str_replace( $plugin_data['PluginURI'], $utm_plugin_uri, $plugin_meta[2] );
|
178 |
}
|
179 |
|
111 |
$plugin_data,
|
112 |
$status
|
113 |
);
|
114 |
+
$fields = isset( $new_row_meta_args['to_show'] ) ? $new_row_meta_args['to_show'] : array();
|
115 |
+
$slug = isset( $new_row_meta_args['slug'] ) ? $new_row_meta_args['slug'] : '';
|
116 |
+
$is_premium = isset( $new_row_meta_args['is_premium'] ) ? $new_row_meta_args['is_premium'] : '';
|
117 |
+
$utm_campaign = 'plugin-version-author-uri';
|
118 |
+
$utm_source = $is_premium ? 'wp-premium-dashboard' : 'wp-free-dashboard';
|
119 |
+
|
120 |
|
121 |
if ( ! ! $is_premium ) {
|
122 |
$to_remove = array_search( 'premium_version', $fields, true );
|
165 |
}
|
166 |
|
167 |
if ( ! empty( $url ) && ! empty( $label ) ) {
|
168 |
+
$url = yith_plugin_fw_add_utm_data( $url, $slug, $utm_campaign, $utm_source );
|
169 |
$plugin_meta[] = sprintf( '<a href="%s" target="_blank"><span class="%s"></span>%s</a>', $url, $icon, $label );
|
170 |
}
|
171 |
}
|
172 |
|
173 |
if ( isset( $plugin_meta[1] ) ) {
|
174 |
+
$utm_author_uri = yith_plugin_fw_add_utm_data( $plugin_data['AuthorURI'], $slug, $utm_campaign, $utm_source );
|
175 |
$plugin_meta[1] = str_replace( $plugin_data['AuthorURI'], $utm_author_uri, $plugin_meta[1] );
|
176 |
}
|
177 |
|
178 |
if ( isset( $plugin_meta[2] ) ) {
|
179 |
+
$utm_plugin_uri = yith_plugin_fw_add_utm_data( $plugin_data['PluginURI'], $slug, $utm_campaign, $utm_source );
|
180 |
$plugin_meta[2] = str_replace( $plugin_data['PluginURI'], $utm_plugin_uri, $plugin_meta[2] );
|
181 |
}
|
182 |
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Contributors: yithemes
|
|
4 |
Tags: woocommerce search by sku, woocommerce search results, woocommerce search shortcode, woocommerce search page, woocommerce search form, woocommerce search filter, woocommerce search products, woocommerce search content, woocommerce search autocomplete, woocommerce advanced search, woocommerce search category, woocommerce search product attributes, woocommerce search by tag, woocommerce search by brand, woocommerce predictive, woocommerce live search, woocommerce single product search, woocommerce site search, woocommerce search tex, tajax, search, woocommerce, products, themes, yit, e-commerce, shop, yith, ajax search, instant search, premium, yithemes, autocomplete, autosuggest, better search, category search, custom search, highlight terms, Live Search, Predictive Search, product search, relevant search, search highlight, search product, suggest, typeahead, WooCommerce Plugin, woocommerce product search, woocommerce search, wordpress ecommerce
|
5 |
Requires at least: 5.6.0
|
6 |
Tested up to: 5.8
|
7 |
-
Stable tag: 1.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -138,6 +138,10 @@ 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 |
= 1.9.3 - Released on 9 August 2021 =
|
142 |
* New: support for WooCommerce 5.6
|
143 |
* Update: YITH plugin framework
|
4 |
Tags: woocommerce search by sku, woocommerce search results, woocommerce search shortcode, woocommerce search page, woocommerce search form, woocommerce search filter, woocommerce search products, woocommerce search content, woocommerce search autocomplete, woocommerce advanced search, woocommerce search category, woocommerce search product attributes, woocommerce search by tag, woocommerce search by brand, woocommerce predictive, woocommerce live search, woocommerce single product search, woocommerce site search, woocommerce search tex, tajax, search, woocommerce, products, themes, yit, e-commerce, shop, yith, ajax search, instant search, premium, yithemes, autocomplete, autosuggest, better search, category search, custom search, highlight terms, Live Search, Predictive Search, product search, relevant search, search highlight, search product, suggest, typeahead, WooCommerce Plugin, woocommerce product search, woocommerce search, wordpress ecommerce
|
5 |
Requires at least: 5.6.0
|
6 |
Tested up to: 5.8
|
7 |
+
Stable tag: 1.10.0
|
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.10.0 - Released on 7 September 2021 =
|
142 |
+
* New: support for WooCommerce 5.7
|
143 |
+
* Update: YITH plugin framework
|
144 |
+
|
145 |
= 1.9.3 - Released on 9 August 2021 =
|
146 |
* New: support for WooCommerce 5.6
|
147 |
* Update: YITH plugin framework
|