Version Description
- wp_get_attachment_image_url instead of the wp_get_attachment_url is used for custom field images so the size argument is applied to them
- Fixed the issues with the new widgets screen, the styling should now correctly appear
- Polylang issue fixes - now the results page should respect when the polylang compatibility is turned off
- Keyword suggestions now working correctly
- Polylang - better compatibility when the site language is selected
- Fixed an issue with the script registration process
Download this release
Release Info
Developer | wpdreams |
Plugin | Ajax Search Lite |
Version | 4.9.4 |
Comparing to | |
See all releases |
Code changes from version 4.9.3 to 4.9.4
- ajax-search-lite.php +3 -3
- backend/settings/class/wd_cf_search_callback.class.php +1 -1
- backend/settings/default_options.php +1 -1
- img/close/close1.svg +10 -19
- includes/classes/actions/class-asl-stylesheets.php +210 -210
- includes/classes/ajax/class-asl-search.php +1 -1
- includes/classes/core/class-asl-filters.php +1 -7
- includes/classes/core/class-asl-init.php +1 -0
- includes/classes/etc/class-asl_helpers.php +12 -8
- includes/classes/filters/class-asl-etc_fixes.php +0 -19
- includes/classes/search/class-asl-query.php +1 -1
- includes/classes/search/class-asl-search-cpt.php +20 -7
- includes/classes/shortcodes/class-asl-search.php +17 -7
- includes/views/asl.shortcode.php +3 -3
- languages/ajax-search-lite-en_EN.mo +0 -0
- languages/ajax-search-lite-en_EN.po +2 -2
- languages/ajax-search-lite-en_EN.pot +2 -2
- readme.txt +10 -2
ajax-search-lite.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Ajax Search Lite
|
4 |
Plugin URI: http://wp-dreams.com
|
5 |
Description: The lite version of the most powerful ajax powered search engine for WordPress.
|
6 |
-
Version: 4.9.
|
7 |
Author: Ernest Marcinko
|
8 |
Author URI: http://wp-dreams.com
|
9 |
Text Domain: ajax-search-lite
|
@@ -26,8 +26,8 @@ define(
|
|
26 |
str_replace('http://', 'https://', plugin_dir_url(__FILE__)) : plugin_dir_url(__FILE__)
|
27 |
);
|
28 |
define('ASL_URL_NP', str_replace(array("http://", "https://"), "//", plugin_dir_url(__FILE__)));
|
29 |
-
define('ASL_CURRENT_VERSION',
|
30 |
-
define('ASL_CURR_VER_STRING', "4.9.
|
31 |
define('ASL_DEBUG', 0);
|
32 |
define('ASL_DEMO', get_option('wd_asl_demo', 0) );
|
33 |
|
3 |
Plugin Name: Ajax Search Lite
|
4 |
Plugin URI: http://wp-dreams.com
|
5 |
Description: The lite version of the most powerful ajax powered search engine for WordPress.
|
6 |
+
Version: 4.9.4
|
7 |
Author: Ernest Marcinko
|
8 |
Author URI: http://wp-dreams.com
|
9 |
Text Domain: ajax-search-lite
|
26 |
str_replace('http://', 'https://', plugin_dir_url(__FILE__)) : plugin_dir_url(__FILE__)
|
27 |
);
|
28 |
define('ASL_URL_NP', str_replace(array("http://", "https://"), "//", plugin_dir_url(__FILE__)));
|
29 |
+
define('ASL_CURRENT_VERSION', 4749);
|
30 |
+
define('ASL_CURR_VER_STRING', "4.9.4");
|
31 |
define('ASL_DEBUG', 0);
|
32 |
define('ASL_DEMO', get_option('wd_asl_demo', 0) );
|
33 |
|
backend/settings/class/wd_cf_search_callback.class.php
CHANGED
@@ -16,7 +16,7 @@ if (!class_exists("wd_CFSearchCallBack")) {
|
|
16 |
'callback' => '', // javacsript function name in the windows scope | if empty, shows results
|
17 |
'placeholder' => 'Search custom fields..',
|
18 |
'search_values' => 0,
|
19 |
-
'limit' =>
|
20 |
'delimiter' => '!!!CFRES!!!',
|
21 |
'controls_position' => 'right',
|
22 |
'class' => ''
|
16 |
'callback' => '', // javacsript function name in the windows scope | if empty, shows results
|
17 |
'placeholder' => 'Search custom fields..',
|
18 |
'search_values' => 0,
|
19 |
+
'limit' => 100,
|
20 |
'delimiter' => '!!!CFRES!!!',
|
21 |
'controls_position' => 'right',
|
22 |
'class' => ''
|
backend/settings/default_options.php
CHANGED
@@ -76,7 +76,7 @@ function asl_do_init_options() {
|
|
76 |
"detect_ajax" => 0,
|
77 |
"js_retain_popstate" => 0,
|
78 |
'load_google_fonts' => 1,
|
79 |
-
'old_browser_compatibility' =>
|
80 |
// DB
|
81 |
'query_soft_check' => 0,
|
82 |
'use_acf_getfield' => 0,
|
76 |
"detect_ajax" => 0,
|
77 |
"js_retain_popstate" => 0,
|
78 |
'load_google_fonts' => 1,
|
79 |
+
'old_browser_compatibility' => 0,
|
80 |
// DB
|
81 |
'query_soft_check' => 0,
|
82 |
'use_acf_getfield' => 0,
|
img/close/close1.svg
CHANGED
@@ -1,19 +1,10 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
width="512px" height="512px" viewBox="0 0 512 512" enable-background="new 0 0 512 512" xml:space="preserve">
|
13 |
-
|
14 |
-
<polygon points="438.393,374.595 319.757,255.977 438.378,137.348 374.595,73.607 255.995,192.225 137.375,73.622
|
15 |
-
|
16 |
-
73.607,137.352 192.246,255.983 73.622,374.625 137.352,438.393 256.002,319.734 374.652,438.378 "/>
|
17 |
-
|
18 |
-
</svg>
|
19 |
-
|
1 |
+
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
2 |
+
|
3 |
+
width="22" height="22" viewBox="0 0 512 512" enable-background="new 0 0 512 512" xml:space="preserve">
|
4 |
+
|
5 |
+
<polygon points="438.393,374.595 319.757,255.977 438.378,137.348 374.595,73.607 255.995,192.225 137.375,73.622
|
6 |
+
|
7 |
+
73.607,137.352 192.246,255.983 73.622,374.625 137.352,438.393 256.002,319.734 374.652,438.378 "/>
|
8 |
+
|
9 |
+
</svg>
|
10 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
includes/classes/actions/class-asl-stylesheets.php
CHANGED
@@ -26,11 +26,7 @@ if (!class_exists("WD_ASL_StyleSheets_Action")) {
|
|
26 |
* This function is bound as the handler
|
27 |
*/
|
28 |
public function handle() {
|
29 |
-
|
30 |
-
$screen = get_current_screen();
|
31 |
-
if (isset($screen) && isset($screen->id) && $screen->id == 'widgets')
|
32 |
-
return;
|
33 |
-
}
|
34 |
|
35 |
$exit1 = apply_filters('asl_load_css_js', false);
|
36 |
$exit2 = apply_filters('asl_load_css', false);
|
@@ -41,221 +37,223 @@ if (!class_exists("WD_ASL_StyleSheets_Action")) {
|
|
41 |
|
42 |
|
43 |
// Don't print if on the back-end
|
44 |
-
if ( !is_admin() ) {
|
45 |
$inst = wd_asl()->instances->get(0);
|
46 |
$asl_options = $inst['data'];
|
47 |
wp_register_style('wpdreams-asl-basic', ASL_URL.'css/style.basic.css', array(), ASL_CURR_VER_STRING);
|
48 |
wp_enqueue_style('wpdreams-asl-basic');
|
49 |
wp_enqueue_style('wpdreams-ajaxsearchlite', ASL_URL.'css/style-'.$asl_options['theme'].'.css', array(), ASL_CURR_VER_STRING);
|
50 |
-
}
|
51 |
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
-
|
237 |
|
238 |
-
|
239 |
-
|
240 |
-
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
|
248 |
-
|
249 |
-
|
250 |
-
|
251 |
-
|
252 |
-
|
253 |
-
|
254 |
-
|
255 |
|
256 |
-
|
257 |
-
|
|
|
258 |
}
|
|
|
|
|
259 |
}
|
260 |
|
261 |
/**
|
@@ -264,7 +262,7 @@ if (!class_exists("WD_ASL_StyleSheets_Action")) {
|
|
264 |
public function inlineCSS() {
|
265 |
if (self::$inline_css != "") {
|
266 |
?>
|
267 |
-
<style
|
268 |
<?php echo self::$inline_css; ?>
|
269 |
</style>
|
270 |
<?php
|
@@ -277,11 +275,13 @@ if (!class_exists("WD_ASL_StyleSheets_Action")) {
|
|
277 |
* and this header script is executed once again. However that also means that the ASL variable is
|
278 |
* resetted (due to the localization script) and that the page content is changed, so ajax search pro
|
279 |
* is not initialized.
|
|
|
280 |
*/
|
281 |
?>
|
282 |
-
|
283 |
-
if ( typeof _ASL !== "undefined" && _ASL !== null && typeof _ASL.initialize !== "undefined" )
|
284 |
-
|
|
|
285 |
</script>
|
286 |
<?php
|
287 |
}
|
26 |
* This function is bound as the handler
|
27 |
*/
|
28 |
public function handle() {
|
29 |
+
global $pagenow;
|
|
|
|
|
|
|
|
|
30 |
|
31 |
$exit1 = apply_filters('asl_load_css_js', false);
|
32 |
$exit2 = apply_filters('asl_load_css', false);
|
37 |
|
38 |
|
39 |
// Don't print if on the back-end
|
40 |
+
if ( !is_admin() || $pagenow === 'widgets.php' ) {
|
41 |
$inst = wd_asl()->instances->get(0);
|
42 |
$asl_options = $inst['data'];
|
43 |
wp_register_style('wpdreams-asl-basic', ASL_URL.'css/style.basic.css', array(), ASL_CURR_VER_STRING);
|
44 |
wp_enqueue_style('wpdreams-asl-basic');
|
45 |
wp_enqueue_style('wpdreams-ajaxsearchlite', ASL_URL.'css/style-'.$asl_options['theme'].'.css', array(), ASL_CURR_VER_STRING);
|
|
|
46 |
|
47 |
+
self::$inline_css = "
|
48 |
+
@font-face {
|
49 |
+
font-family: 'aslsicons2';
|
50 |
+
src: url('".str_replace('http:',"",plugins_url())."/ajax-search-lite/css/fonts/icons2.eot');
|
51 |
+
src: url('".str_replace('http:',"",plugins_url())."/ajax-search-lite/css/fonts/icons2.eot?#iefix') format('embedded-opentype'),
|
52 |
+
url('".str_replace('http:',"",plugins_url())."/ajax-search-lite/css/fonts/icons2.woff2') format('woff2'),
|
53 |
+
url('".str_replace('http:',"",plugins_url())."/ajax-search-lite/css/fonts/icons2.woff') format('woff'),
|
54 |
+
url('".str_replace('http:',"",plugins_url())."/ajax-search-lite/css/fonts/icons2.ttf') format('truetype'),
|
55 |
+
url('".str_replace('http:',"",plugins_url())."/ajax-search-lite/css/fonts/icons2.svg#icons') format('svg');
|
56 |
+
font-weight: normal;
|
57 |
+
font-style: normal;
|
58 |
+
}
|
59 |
+
div[id*='ajaxsearchlitesettings'].searchsettings .asl_option_inner label {
|
60 |
+
font-size: 0px !important;
|
61 |
+
color: rgba(0, 0, 0, 0);
|
62 |
+
}
|
63 |
+
div[id*='ajaxsearchlitesettings'].searchsettings .asl_option_inner label:after {
|
64 |
+
font-size: 11px !important;
|
65 |
+
position: absolute;
|
66 |
+
top: 0;
|
67 |
+
left: 0;
|
68 |
+
z-index: 1;
|
69 |
+
}
|
70 |
+
div[id*='ajaxsearchlite'].wpdreams_asl_container {
|
71 |
+
width: ".$asl_options['box_width'].";
|
72 |
+
margin: ".wpdreams_four_to_string($asl_options['box_margin']).";
|
73 |
+
}
|
74 |
+
div[id*='ajaxsearchliteres'].wpdreams_asl_results div.resdrg span.highlighted {
|
75 |
+
font-weight: bold;
|
76 |
+
color: ".$asl_options['highlight_color'].";
|
77 |
+
background-color: ".$asl_options['highlight_bg_color'].";
|
78 |
+
}
|
79 |
+
div[id*='ajaxsearchliteres'].wpdreams_asl_results .results div.asl_image {
|
80 |
+
width: ". $asl_options['image_width'] . "px;
|
81 |
+
height: " . $asl_options['image_height'] . "px;
|
82 |
+
background-size: ".$asl_options['image_display_mode'].";
|
83 |
+
background-repeat: no-repeat;
|
84 |
+
}
|
85 |
+
div.asl_r .results {
|
86 |
+
max-height: ". $asl_options['v_res_max_height'] .";
|
87 |
+
}
|
88 |
+
";
|
89 |
+
if ( trim($asl_options['box_font']) != '' && $asl_options['box_font'] != 'Open Sans' ) {
|
90 |
+
$ffamily = wpd_font('font-family:'.$asl_options['box_font'])." !important;";
|
91 |
+
self::$inline_css .= "
|
92 |
+
.asl_w, .asl_w * {".$ffamily."}
|
93 |
+
.asl_m input[type=search]::placeholder{".$ffamily."}
|
94 |
+
.asl_m input[type=search]::-webkit-input-placeholder{".$ffamily."}
|
95 |
+
.asl_m input[type=search]::-moz-placeholder{".$ffamily."}
|
96 |
+
.asl_m input[type=search]:-ms-input-placeholder{".$ffamily."}
|
97 |
+
";
|
98 |
+
}
|
99 |
+
if ( $asl_options['override_bg'] == 1 ) {
|
100 |
+
self::$inline_css .= "
|
101 |
+
.asl_m, .asl_m .probox {
|
102 |
+
background-color: ".$asl_options['override_bg_color']." !important;
|
103 |
+
background-image: none !important;
|
104 |
+
-webkit-background-image: none !important;
|
105 |
+
-ms-background-image: none !important;
|
106 |
+
}
|
107 |
+
";
|
108 |
+
}
|
109 |
+
if ( $asl_options['override_icon'] == 1 ) {
|
110 |
+
self::$inline_css .= "
|
111 |
+
.asl_m .probox svg {
|
112 |
+
fill: ".$asl_options['override_icon_color']." !important;
|
113 |
+
}
|
114 |
+
.asl_m .probox .innericon {
|
115 |
+
background-color: ".$asl_options['override_icon_bg_color']." !important;
|
116 |
+
background-image: none !important;
|
117 |
+
-webkit-background-image: none !important;
|
118 |
+
-ms-background-image: none !important;
|
119 |
+
}
|
120 |
+
";
|
121 |
+
}
|
122 |
+
if ( $asl_options['override_border'] == 1 ) {
|
123 |
+
self::$inline_css .= "
|
124 |
+
div.asl_m.asl_w {
|
125 |
+
".str_replace(';', ' !important;', $asl_options['override_border_style'])."
|
126 |
+
box-shadow: none !important;
|
127 |
+
}
|
128 |
+
div.asl_m.asl_w .probox {border: none !important;}
|
129 |
+
";
|
130 |
+
}
|
131 |
|
132 |
+
if ( $asl_options['results_bg_override'] == 1 ) {
|
133 |
+
self::$inline_css .= "
|
134 |
+
.asl_r.asl_w {
|
135 |
+
background-color: ".$asl_options['results_bg_override_color']." !important;
|
136 |
+
background-image: none !important;
|
137 |
+
-webkit-background-image: none !important;
|
138 |
+
-ms-background-image: none !important;
|
139 |
+
}
|
140 |
+
";
|
141 |
+
}
|
142 |
+
if ( $asl_options['results_item_bg_override'] == 1 ) {
|
143 |
+
self::$inline_css .= "
|
144 |
+
.asl_r.asl_w .item {
|
145 |
+
background-color: ".$asl_options['results_item_bg_override_color']." !important;
|
146 |
+
background-image: none !important;
|
147 |
+
-webkit-background-image: none !important;
|
148 |
+
-ms-background-image: none !important;
|
149 |
+
}
|
150 |
+
";
|
151 |
+
}
|
152 |
+
if ( $asl_options['results_override_border'] == 1 ) {
|
153 |
+
self::$inline_css .= "
|
154 |
+
div.asl_r.asl_w {
|
155 |
+
".str_replace(';', ' !important;', $asl_options['results_override_border_style'])."
|
156 |
+
box-shadow: none !important;
|
157 |
+
}
|
158 |
+
";
|
159 |
+
}
|
160 |
|
161 |
+
if ( $asl_options['settings_bg_override'] == 1 ) {
|
162 |
+
self::$inline_css .= "
|
163 |
+
.asl_s.asl_w {
|
164 |
+
background-color: ".$asl_options['settings_bg_override_color']." !important;
|
165 |
+
background-image: none !important;
|
166 |
+
-webkit-background-image: none !important;
|
167 |
+
-ms-background-image: none !important;
|
168 |
+
}
|
169 |
+
";
|
170 |
+
}
|
171 |
+
if ( $asl_options['settings_override_border'] == 1 ) {
|
172 |
+
self::$inline_css .= "
|
173 |
+
div.asl_s.asl_w {
|
174 |
+
".str_replace(';', ' !important;', $asl_options['settings_override_border_style'])."
|
175 |
+
box-shadow: none !important;
|
176 |
+
}
|
177 |
+
";
|
178 |
+
}
|
179 |
|
180 |
+
if ( intval($asl_options['v_res_column_count']) > 1 ) {
|
181 |
+
// Columns specific
|
182 |
+
self::$inline_css .= "
|
183 |
+
div.asl_r.asl_w.vertical .resdrg {
|
184 |
+
display: flex;
|
185 |
+
flex-wrap: wrap;
|
186 |
+
}
|
187 |
+
div.asl_r.asl_w.vertical .results .item {
|
188 |
+
min-width: ". $asl_options['v_res_column_min_width'] . ";
|
189 |
+
width: " . floor( 100 / intval($asl_options['v_res_column_count']) - 1 ) . "%;
|
190 |
+
flex-grow: 1;
|
191 |
+
box-sizing: border-box;
|
192 |
+
border-radius: 0;
|
193 |
+
}
|
194 |
+
@media only screen and (min-width: 641px) and (max-width: 1024px) {
|
195 |
+
div.asl_r.asl_w.vertical .results .item {
|
196 |
+
min-width: ". $asl_options['v_res_column_min_width_tablet'] . ";
|
197 |
+
}
|
198 |
+
}
|
199 |
+
@media only screen and (max-width: 640px) {
|
200 |
+
div.asl_r.asl_w.vertical .results .item {
|
201 |
+
min-width: ". $asl_options['v_res_column_min_width_phone'] . ";
|
202 |
+
}
|
203 |
+
}
|
204 |
+
";
|
205 |
+
} else {
|
206 |
+
// Spacer, if there are no columns
|
207 |
+
self::$inline_css .= "
|
208 |
+
div.asl_r.asl_w.vertical .results .item::after {
|
209 |
+
display: block;
|
210 |
+
position: absolute;
|
211 |
+
bottom: 0;
|
212 |
+
content: '';
|
213 |
+
height: 1px;
|
214 |
+
width: 100%;
|
215 |
+
background: #D8D8D8;
|
216 |
+
}
|
217 |
+
div.asl_r.asl_w.vertical .results .item.asl_last_item::after {
|
218 |
+
display: none;
|
219 |
+
}
|
220 |
+
";
|
221 |
+
}
|
222 |
|
223 |
+
if ( !empty($asl_options['box_width_tablet']) && $asl_options['box_width'] != $asl_options['box_width_tablet'] ) {
|
224 |
+
self::$inline_css .= "
|
225 |
+
@media only screen and (min-width: 641px) and (max-width: 1024px) {
|
226 |
+
div.asl_w.asl_m {
|
227 |
+
width: ".$asl_options['box_width_tablet']." !important;
|
228 |
+
}
|
229 |
+
}
|
230 |
+
";
|
231 |
+
}
|
232 |
|
233 |
+
if ( !empty($asl_options['box_width_tablet']) && $asl_options['box_width'] != $asl_options['box_width_phone'] ) {
|
234 |
+
self::$inline_css .= "
|
235 |
+
@media only screen and (max-width: 640px) {
|
236 |
+
div.asl_w.asl_m {
|
237 |
+
width: ".$asl_options['box_width_phone']." !important;
|
238 |
+
}
|
239 |
+
}
|
240 |
+
";
|
241 |
+
}
|
242 |
|
243 |
+
if ( $asl_options['single_highlight'] == 1 ) {
|
244 |
+
self::$inline_css .= "body span.asl_single_highlighted {
|
245 |
+
display: inline !important;
|
246 |
+
color: ".$asl_options['single_highlightcolor']." !important;
|
247 |
+
background-color: ".$asl_options['single_highlightbgcolor']." !important;
|
248 |
+
}";
|
249 |
+
}
|
250 |
|
251 |
+
if ( $asl_options['custom_css'] != '' && base64_decode($asl_options['custom_css'], true) == true ) {
|
252 |
+
self::$inline_css .= ' ' . stripcslashes( base64_decode($asl_options['custom_css']) );
|
253 |
+
}
|
254 |
}
|
255 |
+
|
256 |
+
return true;
|
257 |
}
|
258 |
|
259 |
/**
|
262 |
public function inlineCSS() {
|
263 |
if (self::$inline_css != "") {
|
264 |
?>
|
265 |
+
<style>
|
266 |
<?php echo self::$inline_css; ?>
|
267 |
</style>
|
268 |
<?php
|
275 |
* and this header script is executed once again. However that also means that the ASL variable is
|
276 |
* resetted (due to the localization script) and that the page content is changed, so ajax search pro
|
277 |
* is not initialized.
|
278 |
+
*
|
279 |
*/
|
280 |
?>
|
281 |
+
<script type="text/javascript">
|
282 |
+
if ( typeof _ASL !== "undefined" && _ASL !== null && typeof _ASL.initialize !== "undefined" ) {
|
283 |
+
_ASL.initialize();
|
284 |
+
}
|
285 |
</script>
|
286 |
<?php
|
287 |
}
|
includes/classes/ajax/class-asl-search.php
CHANGED
@@ -42,7 +42,7 @@ if (!class_exists("WD_ASL_Search_Handler")) {
|
|
42 |
), $id, $options);
|
43 |
$results = $asl_query->posts;
|
44 |
|
45 |
-
if (count($results) <= 0 && isset($sd['
|
46 |
$results = $asl_query->kwSuggestions();
|
47 |
} else if (count($results) > 0) {
|
48 |
$results = apply_filters('asl_only_non_keyword_results', $results, $id, $s, $asl_query->getArgs());
|
42 |
), $id, $options);
|
43 |
$results = $asl_query->posts;
|
44 |
|
45 |
+
if (count($results) <= 0 && isset($sd['kw_suggestions']) && $sd['kw_suggestions']) {
|
46 |
$results = $asl_query->kwSuggestions();
|
47 |
} else if (count($results) > 0) {
|
48 |
$results = apply_filters('asl_only_non_keyword_results', $results, $id, $s, $asl_query->getArgs());
|
includes/classes/core/class-asl-filters.php
CHANGED
@@ -77,13 +77,7 @@ if ( !class_exists("WD_ASL_Filters") ) {
|
|
77 |
"handler" => array("EtcFixes", "fixOxygenEditorJS"),
|
78 |
"priority" => 999,
|
79 |
"args" => 1
|
80 |
-
)
|
81 |
-
array(
|
82 |
-
"filter" => "rocket_exclude_defer_js",
|
83 |
-
"handler" => array("EtcFixes", "wp_rocket_exclude_defer_js"),
|
84 |
-
"priority" => 999,
|
85 |
-
"args" => 1
|
86 |
-
)
|
87 |
);
|
88 |
|
89 |
/**
|
77 |
"handler" => array("EtcFixes", "fixOxygenEditorJS"),
|
78 |
"priority" => 999,
|
79 |
"args" => 1
|
80 |
+
)
|
|
|
|
|
|
|
|
|
|
|
|
|
81 |
);
|
82 |
|
83 |
/**
|
includes/classes/core/class-asl-init.php
CHANGED
@@ -303,6 +303,7 @@ class WD_ASL_Init {
|
|
303 |
}
|
304 |
|
305 |
ASL_Helpers::addInlineScript( 'wpdreams-ajaxsearchlite', 'ASL', array(
|
|
|
306 |
'ajaxurl' => $ajax_url,
|
307 |
'backend_ajaxurl' => admin_url( 'admin-ajax.php'),
|
308 |
'js_scope' => $scope,
|
303 |
}
|
304 |
|
305 |
ASL_Helpers::addInlineScript( 'wpdreams-ajaxsearchlite', 'ASL', array(
|
306 |
+
'wp_rocket_exception' => 'DOMContentLoaded', // WP Rocket hack to prevent the wrapping of the inline script: https://docs.wp-rocket.me/article/1265-load-javascript-deferred
|
307 |
'ajaxurl' => $ajax_url,
|
308 |
'backend_ajaxurl' => admin_url( 'admin-ajax.php'),
|
309 |
'js_scope' => $scope,
|
includes/classes/etc/class-asl_helpers.php
CHANGED
@@ -18,17 +18,22 @@ if (!class_exists("ASL_Helpers")) {
|
|
18 |
public static function addInlineScript($handle, $object_name, $data, $position = 'before', $safe_mode = false) {
|
19 |
// Taken from WP_Srcripts -> localize
|
20 |
foreach ( (array) $data as $key => $value ) {
|
21 |
-
if (
|
22 |
-
|
23 |
}
|
24 |
-
$data[ $key ] = html_entity_decode( (string) $value, ENT_QUOTES, 'UTF-8' );
|
25 |
}
|
26 |
if ( $safe_mode ) {
|
27 |
// If the inline script was merged or moved by a minify, the object may already exist, so keep the properties
|
28 |
$script = "window.$object_name = typeof window.$object_name !== 'undefined' ? window.$object_name : {};";
|
29 |
foreach ( (array) $data as $key => $value ) {
|
30 |
-
if ( is_numeric($value)
|
31 |
$script .= " window.$object_name.$key = $value;";
|
|
|
|
|
|
|
|
|
|
|
|
|
32 |
} else {
|
33 |
$script .= " window.$object_name.$key = " . wp_json_encode($value) . ";";
|
34 |
}
|
@@ -601,10 +606,9 @@ if (!class_exists("ASL_Helpers")) {
|
|
601 |
'posts_limit' => $sd['maxresults']
|
602 |
));
|
603 |
$args["_qtranslate_lang"] = isset($o['qtranslate_lang'])?$o['qtranslate_lang']:"";
|
604 |
-
if (
|
605 |
-
$args["_polylang_lang"] =
|
606 |
-
|
607 |
-
$args["_polylang_lang"] = $sd['polylang_compatibility'] == 1 && isset($o['polylang_lang']) ? $o['polylang_lang'] : "";
|
608 |
}
|
609 |
$args["_exact_matches"] = isset($o['asl_gen']) && is_array($o['asl_gen']) && in_array('exact', $o['asl_gen']) ? 1 : 0;
|
610 |
$args["_exact_match_location"] = $sd['exact_match_location'];
|
18 |
public static function addInlineScript($handle, $object_name, $data, $position = 'before', $safe_mode = false) {
|
19 |
// Taken from WP_Srcripts -> localize
|
20 |
foreach ( (array) $data as $key => $value ) {
|
21 |
+
if ( is_string($value) ) {
|
22 |
+
$data[$key] = html_entity_decode((string)$value, ENT_QUOTES, 'UTF-8');
|
23 |
}
|
|
|
24 |
}
|
25 |
if ( $safe_mode ) {
|
26 |
// If the inline script was merged or moved by a minify, the object may already exist, so keep the properties
|
27 |
$script = "window.$object_name = typeof window.$object_name !== 'undefined' ? window.$object_name : {};";
|
28 |
foreach ( (array) $data as $key => $value ) {
|
29 |
+
if ( is_numeric($value) ) {
|
30 |
$script .= " window.$object_name.$key = $value;";
|
31 |
+
} else if ( is_bool($value) ) {
|
32 |
+
if ( $value ) {
|
33 |
+
$script .= " window.$object_name.$key = true;";
|
34 |
+
} else {
|
35 |
+
$script .= " window.$object_name.$key = false;";
|
36 |
+
}
|
37 |
} else {
|
38 |
$script .= " window.$object_name.$key = " . wp_json_encode($value) . ";";
|
39 |
}
|
606 |
'posts_limit' => $sd['maxresults']
|
607 |
));
|
608 |
$args["_qtranslate_lang"] = isset($o['qtranslate_lang'])?$o['qtranslate_lang']:"";
|
609 |
+
if ( $sd['polylang_compatibility'] == 1 ) {
|
610 |
+
$args["_polylang_lang"] = isset($o['polylang_lang']) ? $o['polylang_lang'] :
|
611 |
+
(function_exists('pll_current_language') ? pll_current_language() : '');
|
|
|
612 |
}
|
613 |
$args["_exact_matches"] = isset($o['asl_gen']) && is_array($o['asl_gen']) && in_array('exact', $o['asl_gen']) ? 1 : 0;
|
614 |
$args["_exact_match_location"] = $sd['exact_match_location'];
|
includes/classes/filters/class-asl-etc_fixes.php
CHANGED
@@ -44,25 +44,6 @@ if (!class_exists("WD_ASL_EtcFixes_Filter")) {
|
|
44 |
return false;
|
45 |
}
|
46 |
|
47 |
-
|
48 |
-
/**
|
49 |
-
* Exclude all plugin frontend scripts from WP Rocket defer cache to prevent scope issues
|
50 |
-
*
|
51 |
-
* @param $exclude_defer_js
|
52 |
-
* @return array
|
53 |
-
*/
|
54 |
-
function wp_rocket_exclude_defer_js($exclude_defer_js ) {
|
55 |
-
if ( is_array($exclude_defer_js) ) {
|
56 |
-
$exclude = array(
|
57 |
-
'/ajax-search-lite/js/',
|
58 |
-
'/ajax-search-lite/js/*'
|
59 |
-
);
|
60 |
-
return array_merge($exclude_defer_js, $exclude);
|
61 |
-
} else {
|
62 |
-
return $exclude_defer_js;
|
63 |
-
}
|
64 |
-
}
|
65 |
-
|
66 |
// ------------------------------------------------------------
|
67 |
// ---------------- SINGLETON SPECIFIC --------------------
|
68 |
// ------------------------------------------------------------
|
44 |
return false;
|
45 |
}
|
46 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
47 |
// ------------------------------------------------------------
|
48 |
// ---------------- SINGLETON SPECIFIC --------------------
|
49 |
// ------------------------------------------------------------
|
includes/classes/search/class-asl-query.php
CHANGED
@@ -547,7 +547,7 @@ if (!class_exists('ASL_Query')) {
|
|
547 |
'overrideUrl' => ''
|
548 |
));
|
549 |
|
550 |
-
$keywords = $t->getKeywords( trim($this->args['
|
551 |
|
552 |
if ($keywords != false) {
|
553 |
$results['keywords'] = $keywords;
|
547 |
'overrideUrl' => ''
|
548 |
));
|
549 |
|
550 |
+
$keywords = $t->getKeywords( trim($this->args['s']) );
|
551 |
|
552 |
if ($keywords != false) {
|
553 |
$results['keywords'] = $keywords;
|
includes/classes/search/class-asl-search-cpt.php
CHANGED
@@ -254,12 +254,25 @@ if ( ! class_exists( 'ASL_Search_CPT' ) ) {
|
|
254 |
} else {
|
255 |
$poly_field = "$wpdb->posts.ID";
|
256 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
257 |
$polylang_query = " AND (
|
258 |
-
|
259 |
-
|
260 |
-
|
261 |
-
|
262 |
-
|
|
|
|
|
263 |
}
|
264 |
}
|
265 |
/*---------------------------------------------------------------*/
|
@@ -1715,6 +1728,7 @@ if ( ! class_exists( 'ASL_Search_CPT' ) ) {
|
|
1715 |
return "";
|
1716 |
$sd = $args['_sd'];
|
1717 |
$image_settings = $args['_sd']['image_options'];
|
|
|
1718 |
|
1719 |
if ( ! isset( $post->id ) ) {
|
1720 |
return "";
|
@@ -1723,7 +1737,6 @@ if ( ! class_exists( 'ASL_Search_CPT' ) ) {
|
|
1723 |
for ( $i = 1; $i < 6; $i ++ ) {
|
1724 |
switch ( $image_settings[ 'image_source' . $i ] ) {
|
1725 |
case "featured":
|
1726 |
-
$size = $image_settings['image_source_featured'] == "original" ? 'full' : $image_settings['image_source_featured'];
|
1727 |
if ( $post->post_type == 'attachment' ) {
|
1728 |
$imx = wp_get_attachment_image_src($post->id, $size, false);
|
1729 |
} else {
|
@@ -1783,7 +1796,7 @@ if ( ! class_exists( 'ASL_Search_CPT' ) ) {
|
|
1783 |
$val = get_post_meta( $post->id, $image_settings['image_custom_field'], true );
|
1784 |
if ( $val != null && $val != "" ) {
|
1785 |
if ( is_numeric($val) ) {
|
1786 |
-
$im =
|
1787 |
} else {
|
1788 |
$im = $val;
|
1789 |
}
|
254 |
} else {
|
255 |
$poly_field = "$wpdb->posts.ID";
|
256 |
}
|
257 |
+
$polylang_empty_query = '';
|
258 |
+
if ( $args['_polylang_lang'] == pll_default_language() ) {
|
259 |
+
$polylang_empty_query = "
|
260 |
+
NOT EXISTS (
|
261 |
+
SELECT *
|
262 |
+
FROM $wpdb->term_relationships as xt
|
263 |
+
INNER JOIN $wpdb->term_taxonomy as tt ON ( xt.term_taxonomy_id = tt.term_taxonomy_id AND tt.taxonomy = 'language')
|
264 |
+
WHERE
|
265 |
+
xt.object_id = $wpdb->posts.ID
|
266 |
+
) OR ";
|
267 |
+
}
|
268 |
$polylang_query = " AND (
|
269 |
+
$polylang_empty_query
|
270 |
+
$poly_field IN ( SELECT DISTINCT(tr.object_id)
|
271 |
+
FROM $wpdb->term_relationships AS tr
|
272 |
+
LEFT JOIN $wpdb->term_taxonomy as tt ON (tr.term_taxonomy_id = tt.term_taxonomy_id AND tt.taxonomy = 'language')
|
273 |
+
WHERE tt.term_id = $languages[0]
|
274 |
+
)
|
275 |
+
)";
|
276 |
}
|
277 |
}
|
278 |
/*---------------------------------------------------------------*/
|
1728 |
return "";
|
1729 |
$sd = $args['_sd'];
|
1730 |
$image_settings = $args['_sd']['image_options'];
|
1731 |
+
$size = $image_settings['image_source_featured'] == "original" ? 'full' : $image_settings['image_source_featured'];
|
1732 |
|
1733 |
if ( ! isset( $post->id ) ) {
|
1734 |
return "";
|
1737 |
for ( $i = 1; $i < 6; $i ++ ) {
|
1738 |
switch ( $image_settings[ 'image_source' . $i ] ) {
|
1739 |
case "featured":
|
|
|
1740 |
if ( $post->post_type == 'attachment' ) {
|
1741 |
$imx = wp_get_attachment_image_src($post->id, $size, false);
|
1742 |
} else {
|
1796 |
$val = get_post_meta( $post->id, $image_settings['image_custom_field'], true );
|
1797 |
if ( $val != null && $val != "" ) {
|
1798 |
if ( is_numeric($val) ) {
|
1799 |
+
$im = wp_get_attachment_image_url( $val, $size );
|
1800 |
} else {
|
1801 |
$im = $val;
|
1802 |
}
|
includes/classes/shortcodes/class-asl-search.php
CHANGED
@@ -94,17 +94,27 @@ if (!class_exists("WD_ASL_Search_Shortcode")) {
|
|
94 |
return false;
|
95 |
|
96 |
$imports = array(
|
97 |
-
'
|
98 |
);
|
99 |
|
100 |
$imports = apply_filters('asl_custom_fonts', $imports);
|
101 |
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
108 |
}
|
109 |
|
110 |
// ------------------------------------------------------------
|
94 |
return false;
|
95 |
|
96 |
$imports = array(
|
97 |
+
'//fonts.googleapis.com/css?family=Open+Sans'
|
98 |
);
|
99 |
|
100 |
$imports = apply_filters('asl_custom_fonts', $imports);
|
101 |
|
102 |
+
$fonts = array();
|
103 |
+
foreach ($imports as $import) {
|
104 |
+
$import = trim(str_replace(array("@import url(", ");", "https:", "http:"), "", $import));
|
105 |
+
$import = trim(str_replace("//fonts.googleapis.com/css?family=", "", $import));
|
106 |
+
if ( $import != '' ) {
|
107 |
+
$fonts[] = $import;
|
108 |
+
}
|
109 |
+
}
|
110 |
+
|
111 |
+
if ( count($fonts) > 0 ) {
|
112 |
+
?>
|
113 |
+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
114 |
+
<link rel="preload" as="style" href="//fonts.googleapis.com/css?family=<?php echo implode('|', $fonts); ?>&display=swap" />
|
115 |
+
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=<?php echo implode('|', $fonts); ?>&display=swap" media="all" />
|
116 |
+
<?php
|
117 |
+
}
|
118 |
}
|
119 |
|
120 |
// ------------------------------------------------------------
|
includes/views/asl.shortcode.php
CHANGED
@@ -13,7 +13,7 @@
|
|
13 |
<div class='promagnifier'>
|
14 |
<?php do_action('asl_layout_in_magnifier', $id); ?>
|
15 |
<div class='innericon'>
|
16 |
-
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="
|
17 |
<path d="M460.355,421.59L353.844,315.078c20.041-27.553,31.885-61.437,31.885-98.037
|
18 |
C385.729,124.934,310.793,50,218.686,50C126.58,50,51.645,124.934,51.645,217.041c0,92.106,74.936,167.041,167.041,167.041
|
19 |
c34.912,0,67.352-10.773,94.184-29.158L419.945,462L460.355,421.59z M100.631,217.041c0-65.096,52.959-118.056,118.055-118.056
|
@@ -30,7 +30,7 @@
|
|
30 |
<div class='prosettings' <?php echo($settingsHidden ? "style='display:none;'" : ""); ?> data-opened=0>
|
31 |
<?php do_action('asl_layout_in_settings', $id); ?>
|
32 |
<div class='innericon'>
|
33 |
-
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="
|
34 |
<polygon transform = "rotate(90 256 256)" points="142.332,104.886 197.48,50 402.5,256 197.48,462 142.332,407.113 292.727,256 "/>
|
35 |
</svg>
|
36 |
</div>
|
@@ -63,7 +63,7 @@
|
|
63 |
<div class='proclose'>
|
64 |
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px"
|
65 |
y="0px"
|
66 |
-
width="
|
67 |
xml:space="preserve">
|
68 |
<polygon points="438.393,374.595 319.757,255.977 438.378,137.348 374.595,73.607 255.995,192.225 137.375,73.622 73.607,137.352 192.246,255.983 73.622,374.625 137.352,438.393 256.002,319.734 374.652,438.378 "/>
|
69 |
</svg>
|
13 |
<div class='promagnifier'>
|
14 |
<?php do_action('asl_layout_in_magnifier', $id); ?>
|
15 |
<div class='innericon'>
|
16 |
+
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="22" height="22" viewBox="0 0 512 512" enable-background="new 0 0 512 512" xml:space="preserve">
|
17 |
<path d="M460.355,421.59L353.844,315.078c20.041-27.553,31.885-61.437,31.885-98.037
|
18 |
C385.729,124.934,310.793,50,218.686,50C126.58,50,51.645,124.934,51.645,217.041c0,92.106,74.936,167.041,167.041,167.041
|
19 |
c34.912,0,67.352-10.773,94.184-29.158L419.945,462L460.355,421.59z M100.631,217.041c0-65.096,52.959-118.056,118.055-118.056
|
30 |
<div class='prosettings' <?php echo($settingsHidden ? "style='display:none;'" : ""); ?> data-opened=0>
|
31 |
<?php do_action('asl_layout_in_settings', $id); ?>
|
32 |
<div class='innericon'>
|
33 |
+
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="22" height="22" viewBox="0 0 512 512" enable-background="new 0 0 512 512" xml:space="preserve">
|
34 |
<polygon transform = "rotate(90 256 256)" points="142.332,104.886 197.48,50 402.5,256 197.48,462 142.332,407.113 292.727,256 "/>
|
35 |
</svg>
|
36 |
</div>
|
63 |
<div class='proclose'>
|
64 |
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px"
|
65 |
y="0px"
|
66 |
+
width="12" height="12" viewBox="0 0 512 512" enable-background="new 0 0 512 512"
|
67 |
xml:space="preserve">
|
68 |
<polygon points="438.393,374.595 319.757,255.977 438.378,137.348 374.595,73.607 255.995,192.225 137.375,73.622 73.607,137.352 192.246,255.983 73.622,374.625 137.352,438.393 256.002,319.734 374.652,438.378 "/>
|
69 |
</svg>
|
languages/ajax-search-lite-en_EN.mo
CHANGED
Binary file
|
languages/ajax-search-lite-en_EN.po
CHANGED
@@ -5,7 +5,7 @@ msgid ""
|
|
5 |
msgstr ""
|
6 |
"Project-Id-Version: Ajax Search Lite Pot v1.0.0\n"
|
7 |
"Report-Msgid-Bugs-To: Translator Name <translations@example.com>\n"
|
8 |
-
"POT-Creation-Date: 2021-
|
9 |
"PO-Revision-Date: \n"
|
10 |
"Last-Translator: \n"
|
11 |
"Language-Team: Your Team <translations@example.com>\n"
|
@@ -20,7 +20,7 @@ msgstr ""
|
|
20 |
"esc_attr_e;esc_attr_x:1,2c;esc_attr__;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;"
|
21 |
"_x:1,2c;_n:1,2;_n_noop:1,2;__ngettext:1,2;__ngettext_noop:1,2;_c,_nc:4c,1,2\n"
|
22 |
"X-Poedit-Basepath: ..\n"
|
23 |
-
"X-Generator: Poedit
|
24 |
"X-Poedit-SearchPath-0: .\n"
|
25 |
"X-Poedit-SearchPathExcluded-0: css\n"
|
26 |
"X-Poedit-SearchPathExcluded-1: js\n"
|
5 |
msgstr ""
|
6 |
"Project-Id-Version: Ajax Search Lite Pot v1.0.0\n"
|
7 |
"Report-Msgid-Bugs-To: Translator Name <translations@example.com>\n"
|
8 |
+
"POT-Creation-Date: 2021-09-16 13:56+0200\n"
|
9 |
"PO-Revision-Date: \n"
|
10 |
"Last-Translator: \n"
|
11 |
"Language-Team: Your Team <translations@example.com>\n"
|
20 |
"esc_attr_e;esc_attr_x:1,2c;esc_attr__;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;"
|
21 |
"_x:1,2c;_n:1,2;_n_noop:1,2;__ngettext:1,2;__ngettext_noop:1,2;_c,_nc:4c,1,2\n"
|
22 |
"X-Poedit-Basepath: ..\n"
|
23 |
+
"X-Generator: Poedit 3.0\n"
|
24 |
"X-Poedit-SearchPath-0: .\n"
|
25 |
"X-Poedit-SearchPathExcluded-0: css\n"
|
26 |
"X-Poedit-SearchPathExcluded-1: js\n"
|
languages/ajax-search-lite-en_EN.pot
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
msgid ""
|
6 |
msgstr ""
|
7 |
"Project-Id-Version: Ajax Search Lite Pot v1.0.0\n"
|
8 |
-
"POT-Creation-Date: 2021-
|
9 |
"PO-Revision-Date: \n"
|
10 |
"Last-Translator: Your Name <you@example.com>\n"
|
11 |
"Language-Team: Your Team <translations@example.com>\n"
|
@@ -21,7 +21,7 @@ msgstr ""
|
|
21 |
"_x:1,2c;_n:1,2;_n_noop:1,2;__ngettext:1,2;__ngettext_noop:1,2;_c,_nc:4c,1,2\n"
|
22 |
"X-Poedit-Basepath: ..\n"
|
23 |
"Language: en_US\n"
|
24 |
-
"X-Generator: Poedit
|
25 |
"X-Poedit-SearchPath-0: .\n"
|
26 |
"X-Poedit-SearchPathExcluded-0: css\n"
|
27 |
"X-Poedit-SearchPathExcluded-1: js\n"
|
5 |
msgid ""
|
6 |
msgstr ""
|
7 |
"Project-Id-Version: Ajax Search Lite Pot v1.0.0\n"
|
8 |
+
"POT-Creation-Date: 2021-09-16 13:56+0200\n"
|
9 |
"PO-Revision-Date: \n"
|
10 |
"Last-Translator: Your Name <you@example.com>\n"
|
11 |
"Language-Team: Your Team <translations@example.com>\n"
|
21 |
"_x:1,2c;_n:1,2;_n_noop:1,2;__ngettext:1,2;__ngettext_noop:1,2;_c,_nc:4c,1,2\n"
|
22 |
"X-Poedit-Basepath: ..\n"
|
23 |
"Language: en_US\n"
|
24 |
+
"X-Generator: Poedit 3.0\n"
|
25 |
"X-Poedit-SearchPath-0: .\n"
|
26 |
"X-Poedit-SearchPathExcluded-0: css\n"
|
27 |
"X-Poedit-SearchPathExcluded-1: js\n"
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: wpdreams
|
|
3 |
Donate link: http://wp-dreams.com
|
4 |
Tags: search, better wordpress search, search plugin, relevance search, widget, Post, ajax search, search filter, wp ajax search, custom fields search, better search, ajax search plugin, wp search, wp search plugin, filter, relevant search plugin, wordpress search, Live Search, shortcode, google, autocomplete, suggest, woocommerce, woocommerce search, product, product search, custom search, ajax, suggest, autosuggest, search autocomplete, live, plugin, sidebar, product tag search, products, woocommerce tag search, WooCommerce Plugin, shop, search by sku, relevant search, highlight, term, image, custom search, ecommerce, Predictive Search, search product, shop, typehead, suggest, instant-search
|
5 |
Requires at least: 3.5
|
6 |
-
Tested up to: 5.
|
7 |
-
Stable tag: 4.9.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -105,6 +105,14 @@ and will let you know what to do.
|
|
105 |
2. Administrator area - nice and smooth
|
106 |
|
107 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
108 |
= 4.9.3 =
|
109 |
* Fixed: image parser now works correctly, when the result descriptions are turned off
|
110 |
* Improved: the plugin script now tries to detect possible loading conflicts or timing issues and tries to resolve them
|
3 |
Donate link: http://wp-dreams.com
|
4 |
Tags: search, better wordpress search, search plugin, relevance search, widget, Post, ajax search, search filter, wp ajax search, custom fields search, better search, ajax search plugin, wp search, wp search plugin, filter, relevant search plugin, wordpress search, Live Search, shortcode, google, autocomplete, suggest, woocommerce, woocommerce search, product, product search, custom search, ajax, suggest, autosuggest, search autocomplete, live, plugin, sidebar, product tag search, products, woocommerce tag search, WooCommerce Plugin, shop, search by sku, relevant search, highlight, term, image, custom search, ecommerce, Predictive Search, search product, shop, typehead, suggest, instant-search
|
5 |
Requires at least: 3.5
|
6 |
+
Tested up to: 5.8
|
7 |
+
Stable tag: 4.9.4
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
105 |
2. Administrator area - nice and smooth
|
106 |
|
107 |
== Changelog ==
|
108 |
+
= 4.9.4 =
|
109 |
+
* wp_get_attachment_image_url instead of the wp_get_attachment_url is used for custom field images so the size argument is applied to them
|
110 |
+
* Fixed the issues with the new widgets screen, the styling should now correctly appear
|
111 |
+
* Polylang issue fixes - now the results page should respect when the polylang compatibility is turned off
|
112 |
+
* Keyword suggestions now working correctly
|
113 |
+
* Polylang - better compatibility when the site language is selected
|
114 |
+
* Fixed an issue with the script registration process
|
115 |
+
|
116 |
= 4.9.3 =
|
117 |
* Fixed: image parser now works correctly, when the result descriptions are turned off
|
118 |
* Improved: the plugin script now tries to detect possible loading conflicts or timing issues and tries to resolve them
|