Version Description
- Compatibility settings: Fallback option for old IE (<=8) browsers
- Compatibility settings: Option to disable loading google fonts
- Assets are now loaded protocolless
- :before and :after elements within the form are now forced to invisible (compatibility)
- String translation function now supports qTranslatex
Download this release
Release Info
Developer | wpdreams |
Plugin | Ajax Search Lite |
Version | 4.7.8 |
Comparing to | |
See all releases |
Code changes from version 4.7.7 to 4.7.8
- ajax-search-lite.php +4 -3
- backend/compatibility.php +13 -1
- backend/settings/default_options.php +2 -0
- backend/settings/types.inc.php +10 -10
- css/style.basic.css +7 -0
- includes/classes/actions/class-asl-stylesheets.php +2 -2
- includes/classes/core/class-asl-init.php +18 -11
- includes/classes/filters/class-asl-formoverride.php +7 -0
- includes/classes/shortcodes/class-asl-search.php +13 -0
- includes/functions/functions.php +3 -0
- readme.txt +8 -1
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.7.
|
7 |
Author: Ernest Marcinko
|
8 |
Author URI: http://wp-dreams.com
|
9 |
Text Domain: ajax-search-lite
|
@@ -21,8 +21,9 @@ define('ASL_CLASSES_PATH', plugin_dir_path(__FILE__)."/includes/classes/");
|
|
21 |
define('ASL_FUNCTIONS_PATH', plugin_dir_path(__FILE__)."/includes/functions/");
|
22 |
define('ASL_DIR', 'ajax-search-lite');
|
23 |
define('ASL_URL', plugin_dir_url(__FILE__));
|
24 |
-
define('
|
25 |
-
define('
|
|
|
26 |
define('ASL_DEBUG', 0);
|
27 |
define('ASL_DEMO', get_option('wd_asl_demo', 0) );
|
28 |
|
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.7.8
|
7 |
Author: Ernest Marcinko
|
8 |
Author URI: http://wp-dreams.com
|
9 |
Text Domain: ajax-search-lite
|
21 |
define('ASL_FUNCTIONS_PATH', plugin_dir_path(__FILE__)."/includes/functions/");
|
22 |
define('ASL_DIR', 'ajax-search-lite');
|
23 |
define('ASL_URL', plugin_dir_url(__FILE__));
|
24 |
+
define('ASL_URL_NP', str_replace(array("http://", "https://"), "//", plugin_dir_url(__FILE__)));
|
25 |
+
define('ASL_CURRENT_VERSION', 4717);
|
26 |
+
define('ASL_CURR_VER_STRING', "4.7.8");
|
27 |
define('ASL_DEBUG', 0);
|
28 |
define('ASL_DEMO', get_option('wd_asl_demo', 0) );
|
29 |
|
backend/compatibility.php
CHANGED
@@ -62,6 +62,12 @@ if (ASL_DEMO) $_POST = null;
|
|
62 |
); ?>
|
63 |
<p class='descMsg'>Will try to re-initialize the plugin in case an AJAX page loader is used, like Polylang language switcher etc..</p>
|
64 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
65 |
<div class="item">
|
66 |
<?php
|
67 |
$o = new wpdreamsCustomSelect("load_mcustom_js", "Load the scrollbar script?", array(
|
@@ -80,7 +86,11 @@ if (ASL_DEMO) $_POST = null;
|
|
80 |
</ul>
|
81 |
</p>
|
82 |
</div>
|
83 |
-
|
|
|
|
|
|
|
|
|
84 |
</fieldset>
|
85 |
<fieldset>
|
86 |
<legend>Query Compatibility</legend>
|
@@ -140,6 +150,8 @@ if (ASL_DEMO) $_POST = null;
|
|
140 |
"js_init" => $_POST['js_init'],
|
141 |
"load_mcustom_js" => $_POST['load_mcustom_js'],
|
142 |
"detect_ajax" => $_POST['detect_ajax'],
|
|
|
|
|
143 |
// Query options
|
144 |
'use_acf_getfield' => $_POST['use_acf_getfield'],
|
145 |
"db_force_case" => $_POST['db_force_case'],
|
62 |
); ?>
|
63 |
<p class='descMsg'>Will try to re-initialize the plugin in case an AJAX page loader is used, like Polylang language switcher etc..</p>
|
64 |
</div>
|
65 |
+
<div class="item">
|
66 |
+
<?php $o = new wpdreamsYesNo("load_google_fonts", "Load the <strong>google fonts</strong> used in the search options?",
|
67 |
+
$com_options['load_google_fonts']
|
68 |
+
); ?>
|
69 |
+
<p class='descMsg'>When <strong>turned off</strong>, the google fonts <strong>will not be loaded</strong> via this plugin at all.<br>Useful if you already have them loaded, to avoid mutliple loading times.</p>
|
70 |
+
</div>
|
71 |
<div class="item">
|
72 |
<?php
|
73 |
$o = new wpdreamsCustomSelect("load_mcustom_js", "Load the scrollbar script?", array(
|
86 |
</ul>
|
87 |
</p>
|
88 |
</div>
|
89 |
+
<div class="item">
|
90 |
+
<?php $o = new wpdreamsYesNo("old_browser_compatibility", "Display the default search box on old browsers? (IE<=8)",
|
91 |
+
$com_options['old_browser_compatibility']
|
92 |
+
); ?>
|
93 |
+
</div>
|
94 |
</fieldset>
|
95 |
<fieldset>
|
96 |
<legend>Query Compatibility</legend>
|
150 |
"js_init" => $_POST['js_init'],
|
151 |
"load_mcustom_js" => $_POST['load_mcustom_js'],
|
152 |
"detect_ajax" => $_POST['detect_ajax'],
|
153 |
+
'load_google_fonts' => $_POST['load_google_fonts'],
|
154 |
+
'old_browser_compatibility' => $_POST['old_browser_compatibility'],
|
155 |
// Query options
|
156 |
'use_acf_getfield' => $_POST['use_acf_getfield'],
|
157 |
"db_force_case" => $_POST['db_force_case'],
|
backend/settings/default_options.php
CHANGED
@@ -28,6 +28,8 @@ function asl_do_init_options() {
|
|
28 |
'js_init' => "dynamic",
|
29 |
'load_mcustom_js' => 'yes',
|
30 |
"detect_ajax" => 0,
|
|
|
|
|
31 |
// DB
|
32 |
'use_acf_getfield' => 0,
|
33 |
'db_force_case' => 'none',
|
28 |
'js_init' => "dynamic",
|
29 |
'load_mcustom_js' => 'yes',
|
30 |
"detect_ajax" => 0,
|
31 |
+
'load_google_fonts' => 1,
|
32 |
+
'old_browser_compatibility' => 1,
|
33 |
// DB
|
34 |
'use_acf_getfield' => 0,
|
35 |
'db_force_case' => 'none',
|
backend/settings/types.inc.php
CHANGED
@@ -51,29 +51,29 @@ if (!function_exists("admin_scriptsV04")) {
|
|
51 |
wp_enqueue_script('jquery-ui-draggable', false, array('jquery-ui-core'), false, true);
|
52 |
wp_enqueue_script('jquery-ui-datepicker', false, array('jquery-ui-core'), false, true);
|
53 |
|
54 |
-
wp_register_script('wpdreams-types',
|
55 |
'jquery'
|
56 |
), ASL_CURR_VER_STRING, true);
|
57 |
wp_enqueue_script('wpdreams-types');
|
58 |
|
59 |
-
wp_register_script('wpdreams-tabs',
|
60 |
'jquery'
|
61 |
), ASL_CURR_VER_STRING, true);
|
62 |
wp_enqueue_script('wpdreams-tabs');
|
63 |
|
64 |
-
wp_register_script('wpdreams-upload',
|
65 |
'jquery',
|
66 |
'media-upload',
|
67 |
'thickbox'
|
68 |
), ASL_CURR_VER_STRING, true);
|
69 |
wp_enqueue_script('wpdreams-upload');
|
70 |
|
71 |
-
wp_register_script('wpdreams-misc',
|
72 |
'jquery'
|
73 |
), ASL_CURR_VER_STRING, true);
|
74 |
wp_enqueue_script('wpdreams-misc');
|
75 |
|
76 |
-
wp_register_script('wpdreams-spectrum',
|
77 |
'jquery'
|
78 |
), ASL_CURR_VER_STRING, true);
|
79 |
wp_enqueue_script('wpdreams-spectrum');
|
@@ -85,18 +85,18 @@ if (!function_exists("admin_scriptsV04")) {
|
|
85 |
|
86 |
if (!function_exists("admin_stylesV04")) {
|
87 |
function admin_stylesV04() {
|
88 |
-
wp_register_style('wpdreams-style',
|
89 |
wp_enqueue_style('wpdreams-style');
|
90 |
wp_enqueue_style('thickbox');
|
91 |
wp_register_style('wpdreams-jqueryui', 'https://code.jquery.com/ui/1.9.1/themes/base/jquery-ui.css');
|
92 |
wp_enqueue_style('wpdreams-jqueryui');
|
93 |
-
wp_register_style('wpdreams-tabs',
|
94 |
wp_enqueue_style('wpdreams-tabs');
|
95 |
-
wp_register_style('wpdreams-accordion',
|
96 |
wp_enqueue_style('wpdreams-accordion');
|
97 |
-
wp_register_style('wpdreams-spectrum',
|
98 |
wp_enqueue_style('wpdreams-spectrum');
|
99 |
-
wp_register_style('wpdreams-animations',
|
100 |
wp_enqueue_style('wpdreams-animations');
|
101 |
}
|
102 |
}
|
51 |
wp_enqueue_script('jquery-ui-draggable', false, array('jquery-ui-core'), false, true);
|
52 |
wp_enqueue_script('jquery-ui-datepicker', false, array('jquery-ui-core'), false, true);
|
53 |
|
54 |
+
wp_register_script('wpdreams-types', ASL_URL_NP . 'backend/settings/assets/types.js', array(
|
55 |
'jquery'
|
56 |
), ASL_CURR_VER_STRING, true);
|
57 |
wp_enqueue_script('wpdreams-types');
|
58 |
|
59 |
+
wp_register_script('wpdreams-tabs', ASL_URL_NP . 'backend/settings/assets/tabs.js', array(
|
60 |
'jquery'
|
61 |
), ASL_CURR_VER_STRING, true);
|
62 |
wp_enqueue_script('wpdreams-tabs');
|
63 |
|
64 |
+
wp_register_script('wpdreams-upload', ASL_URL_NP . 'backend/settings/assets/upload.js', array(
|
65 |
'jquery',
|
66 |
'media-upload',
|
67 |
'thickbox'
|
68 |
), ASL_CURR_VER_STRING, true);
|
69 |
wp_enqueue_script('wpdreams-upload');
|
70 |
|
71 |
+
wp_register_script('wpdreams-misc', ASL_URL_NP . 'backend/settings/assets/misc.js', array(
|
72 |
'jquery'
|
73 |
), ASL_CURR_VER_STRING, true);
|
74 |
wp_enqueue_script('wpdreams-misc');
|
75 |
|
76 |
+
wp_register_script('wpdreams-spectrum', ASL_URL_NP . 'backend/settings/assets/js/spectrum/spectrum.js', array(
|
77 |
'jquery'
|
78 |
), ASL_CURR_VER_STRING, true);
|
79 |
wp_enqueue_script('wpdreams-spectrum');
|
85 |
|
86 |
if (!function_exists("admin_stylesV04")) {
|
87 |
function admin_stylesV04() {
|
88 |
+
wp_register_style('wpdreams-style', ASL_URL_NP . 'backend/settings/assets/style.css', array('wpdreams-tabs'), ASL_CURR_VER_STRING);
|
89 |
wp_enqueue_style('wpdreams-style');
|
90 |
wp_enqueue_style('thickbox');
|
91 |
wp_register_style('wpdreams-jqueryui', 'https://code.jquery.com/ui/1.9.1/themes/base/jquery-ui.css');
|
92 |
wp_enqueue_style('wpdreams-jqueryui');
|
93 |
+
wp_register_style('wpdreams-tabs', ASL_URL_NP . 'backend/settings/assets/tabs.css');
|
94 |
wp_enqueue_style('wpdreams-tabs');
|
95 |
+
wp_register_style('wpdreams-accordion', ASL_URL_NP . 'backend/settings/assets/accordion.css');
|
96 |
wp_enqueue_style('wpdreams-accordion');
|
97 |
+
wp_register_style('wpdreams-spectrum', ASL_URL_NP . 'backend/settings/assets/js/spectrum/spectrum.css');
|
98 |
wp_enqueue_style('wpdreams-spectrum');
|
99 |
+
wp_register_style('wpdreams-animations', ASL_URL_NP . 'backend/settings/assets/animations.css');
|
100 |
wp_enqueue_style('wpdreams-animations');
|
101 |
}
|
102 |
}
|
css/style.basic.css
CHANGED
@@ -146,6 +146,13 @@ div[id*='ajaxsearchlite'] .probox .proinput {
|
|
146 |
-webkit-order: 5;
|
147 |
}
|
148 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
149 |
div[id*='ajaxsearchlite'] .probox .proinput input {
|
150 |
height: 28px;
|
151 |
border: 0px;
|
146 |
-webkit-order: 5;
|
147 |
}
|
148 |
|
149 |
+
div[id*='ajaxsearchlite'] .probox .proinput input:before,
|
150 |
+
div[id*='ajaxsearchlite'] .probox .proinput input:after,
|
151 |
+
div[id*='ajaxsearchlite'] .probox .proinput form:before,
|
152 |
+
div[id*='ajaxsearchlite'] .probox .proinput form:after {
|
153 |
+
display: none;
|
154 |
+
}
|
155 |
+
|
156 |
div[id*='ajaxsearchlite'] .probox .proinput input {
|
157 |
height: 28px;
|
158 |
border: 0px;
|
includes/classes/actions/class-asl-stylesheets.php
CHANGED
@@ -39,9 +39,9 @@ if (!class_exists("WD_ASL_StyleSheets_Action")) {
|
|
39 |
if ( !is_admin() ) {
|
40 |
$inst = wd_asl()->instances->get(0);
|
41 |
$asl_options = $inst['data'];
|
42 |
-
wp_register_style('wpdreams-asl-basic',
|
43 |
wp_enqueue_style('wpdreams-asl-basic');
|
44 |
-
wp_enqueue_style('wpdreams-ajaxsearchlite',
|
45 |
}
|
46 |
|
47 |
self::$inline_css = "
|
39 |
if ( !is_admin() ) {
|
40 |
$inst = wd_asl()->instances->get(0);
|
41 |
$asl_options = $inst['data'];
|
42 |
+
wp_register_style('wpdreams-asl-basic', ASL_URL_NP.'css/style.basic.css', array(), ASL_CURR_VER_STRING);
|
43 |
wp_enqueue_style('wpdreams-asl-basic');
|
44 |
+
wp_enqueue_style('wpdreams-ajaxsearchlite', ASL_URL_NP.'css/style-'.$asl_options['theme'].'.css', array(), ASL_CURR_VER_STRING);
|
45 |
}
|
46 |
|
47 |
self::$inline_css = "
|
includes/classes/core/class-asl-init.php
CHANGED
@@ -92,10 +92,11 @@ class WD_ASL_Init {
|
|
92 |
* Extra styles if needed..
|
93 |
*/
|
94 |
public function styles() {
|
95 |
-
// Fallback on IE<=8
|
96 |
if(isset($_SERVER['HTTP_USER_AGENT']) && preg_match('/(?i)msie [6-8]/',$_SERVER['HTTP_USER_AGENT']) ) {
|
97 |
-
|
98 |
-
|
|
|
|
|
99 |
}
|
100 |
}
|
101 |
|
@@ -104,6 +105,13 @@ class WD_ASL_Init {
|
|
104 |
*/
|
105 |
public function scripts() {
|
106 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
107 |
// ------------ Dequeue some scripts causing issues on the back-end --------------
|
108 |
wp_dequeue_script( 'otw-admin-colorpicker' );
|
109 |
wp_dequeue_script( 'otw-admin-select2' );
|
@@ -112,7 +120,6 @@ class WD_ASL_Init {
|
|
112 |
wp_dequeue_script( 'otw-admin-functions');
|
113 |
wp_dequeue_script( 'otw-admin-variables');
|
114 |
|
115 |
-
$com_opt = wd_asl()->o['asl_compatibility'];
|
116 |
$performance_options = wd_asl()->o['asl_performance'];
|
117 |
|
118 |
$prereq = 'jquery';
|
@@ -124,24 +131,24 @@ class WD_ASL_Init {
|
|
124 |
if ($js_source == 'nomin' || $js_source == 'nomin-scoped') {
|
125 |
if ($js_source == "nomin-scoped") {
|
126 |
$prereq = "wpdreams-asljquery";
|
127 |
-
wp_register_script('wpdreams-asljquery',
|
128 |
wp_enqueue_script('wpdreams-asljquery');
|
129 |
}
|
130 |
-
wp_register_script('wpdreams-gestures',
|
131 |
wp_enqueue_script('wpdreams-gestures');
|
132 |
-
wp_register_script('wpdreams-highlight',
|
133 |
wp_enqueue_script('wpdreams-highlight');
|
134 |
if ($load_mcustom) {
|
135 |
-
wp_register_script('wpdreams-scroll',
|
136 |
wp_enqueue_script('wpdreams-scroll');
|
137 |
}
|
138 |
-
wp_register_script('wpdreams-ajaxsearchlite',
|
139 |
wp_enqueue_script('wpdreams-ajaxsearchlite');
|
140 |
-
wp_register_script('wpdreams-asl-wrapper',
|
141 |
wp_enqueue_script('wpdreams-asl-wrapper');
|
142 |
} else {
|
143 |
wp_enqueue_script('jquery');
|
144 |
-
wp_register_script('wpdreams-ajaxsearchlite',
|
145 |
wp_enqueue_script('wpdreams-ajaxsearchlite');
|
146 |
}
|
147 |
|
92 |
* Extra styles if needed..
|
93 |
*/
|
94 |
public function styles() {
|
|
|
95 |
if(isset($_SERVER['HTTP_USER_AGENT']) && preg_match('/(?i)msie [6-8]/',$_SERVER['HTTP_USER_AGENT']) ) {
|
96 |
+
$comp_options = wd_asl()->o['asl_compatibility'];
|
97 |
+
if ( $comp_options['old_browser_compatibility'] == 1 ) {
|
98 |
+
return;
|
99 |
+
}
|
100 |
}
|
101 |
}
|
102 |
|
105 |
*/
|
106 |
public function scripts() {
|
107 |
|
108 |
+
$com_opt = wd_asl()->o['asl_compatibility'];
|
109 |
+
if(isset($_SERVER['HTTP_USER_AGENT']) && preg_match('/(?i)msie [6-8]/',$_SERVER['HTTP_USER_AGENT']) ) {
|
110 |
+
if ( $com_opt['old_browser_compatibility'] == 1 ) {
|
111 |
+
return;
|
112 |
+
}
|
113 |
+
}
|
114 |
+
|
115 |
// ------------ Dequeue some scripts causing issues on the back-end --------------
|
116 |
wp_dequeue_script( 'otw-admin-colorpicker' );
|
117 |
wp_dequeue_script( 'otw-admin-select2' );
|
120 |
wp_dequeue_script( 'otw-admin-functions');
|
121 |
wp_dequeue_script( 'otw-admin-variables');
|
122 |
|
|
|
123 |
$performance_options = wd_asl()->o['asl_performance'];
|
124 |
|
125 |
$prereq = 'jquery';
|
131 |
if ($js_source == 'nomin' || $js_source == 'nomin-scoped') {
|
132 |
if ($js_source == "nomin-scoped") {
|
133 |
$prereq = "wpdreams-asljquery";
|
134 |
+
wp_register_script('wpdreams-asljquery', ASL_URL_NP . 'js/' . $js_source . '/asljquery.js', array(), ASL_CURR_VER_STRING, $load_in_footer);
|
135 |
wp_enqueue_script('wpdreams-asljquery');
|
136 |
}
|
137 |
+
wp_register_script('wpdreams-gestures', ASL_URL_NP . 'js/' . $js_source . '/jquery.gestures.js', array($prereq), ASL_CURR_VER_STRING, $load_in_footer);
|
138 |
wp_enqueue_script('wpdreams-gestures');
|
139 |
+
wp_register_script('wpdreams-highlight', ASL_URL_NP . 'js/' . $js_source . '/jquery.highlight.js', array($prereq), ASL_CURR_VER_STRING, $load_in_footer);
|
140 |
wp_enqueue_script('wpdreams-highlight');
|
141 |
if ($load_mcustom) {
|
142 |
+
wp_register_script('wpdreams-scroll', ASL_URL_NP . 'js/' . $js_source . '/jquery.mCustomScrollbar.js', array($prereq), ASL_CURR_VER_STRING, $load_in_footer);
|
143 |
wp_enqueue_script('wpdreams-scroll');
|
144 |
}
|
145 |
+
wp_register_script('wpdreams-ajaxsearchlite', ASL_URL_NP . 'js/' . $js_source . '/jquery.ajaxsearchlite.js', array($prereq), ASL_CURR_VER_STRING, $load_in_footer);
|
146 |
wp_enqueue_script('wpdreams-ajaxsearchlite');
|
147 |
+
wp_register_script('wpdreams-asl-wrapper', ASL_URL_NP . 'js/' . $js_source . '/asl_wrapper.js', array($prereq, "wpdreams-ajaxsearchlite"), ASL_CURR_VER_STRING, $load_in_footer);
|
148 |
wp_enqueue_script('wpdreams-asl-wrapper');
|
149 |
} else {
|
150 |
wp_enqueue_script('jquery');
|
151 |
+
wp_register_script('wpdreams-ajaxsearchlite', ASL_URL_NP . "js/" . $js_source . "/jquery.ajaxsearchlite.min.js", array(), ASL_CURR_VER_STRING, $load_in_footer);
|
152 |
wp_enqueue_script('wpdreams-ajaxsearchlite');
|
153 |
}
|
154 |
|
includes/classes/filters/class-asl-formoverride.php
CHANGED
@@ -16,6 +16,13 @@ if (!class_exists("WD_ASL_FormOverride_Filter")) {
|
|
16 |
class WD_ASL_FormOverride_Filter extends WD_ASL_Filter_Abstract {
|
17 |
|
18 |
public function handle( $form = "" ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
$inst = wd_asl()->instances->get(0);
|
20 |
|
21 |
if ( $inst['data']['override_search_form'] )
|
16 |
class WD_ASL_FormOverride_Filter extends WD_ASL_Filter_Abstract {
|
17 |
|
18 |
public function handle( $form = "" ) {
|
19 |
+
if(isset($_SERVER['HTTP_USER_AGENT']) && preg_match('/(?i)msie [6-8]/',$_SERVER['HTTP_USER_AGENT']) ) {
|
20 |
+
$comp_options = wd_asl()->o['asl_compatibility'];
|
21 |
+
if ( $comp_options['old_browser_compatibility'] == 1 ) {
|
22 |
+
return $form;
|
23 |
+
}
|
24 |
+
}
|
25 |
+
|
26 |
$inst = wd_asl()->instances->get(0);
|
27 |
|
28 |
if ( $inst['data']['override_search_form'] )
|
includes/classes/shortcodes/class-asl-search.php
CHANGED
@@ -50,6 +50,14 @@ if (!class_exists("WD_ASL_Search_Shortcode")) {
|
|
50 |
'id' => 'something'
|
51 |
), $atts));
|
52 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
53 |
$inst = wd_asl()->instances->get(0);
|
54 |
$style = $inst['data'];
|
55 |
|
@@ -80,6 +88,11 @@ if (!class_exists("WD_ASL_Search_Shortcode")) {
|
|
80 |
* Instead adding the links directly to the header is the best way to go.
|
81 |
*/
|
82 |
public function fonts() {
|
|
|
|
|
|
|
|
|
|
|
83 |
$imports = array(
|
84 |
'https://fonts.googleapis.com/css?family=Open+Sans'
|
85 |
);
|
50 |
'id' => 'something'
|
51 |
), $atts));
|
52 |
|
53 |
+
if(isset($_SERVER['HTTP_USER_AGENT']) && preg_match('/(?i)msie [6-8]/',$_SERVER['HTTP_USER_AGENT']) ) {
|
54 |
+
$com_opt = wd_asl()->o['asl_compatibility'];
|
55 |
+
if ( $com_opt['old_browser_compatibility'] == 1 ) {
|
56 |
+
get_search_form(true);
|
57 |
+
return;
|
58 |
+
}
|
59 |
+
}
|
60 |
+
|
61 |
$inst = wd_asl()->instances->get(0);
|
62 |
$style = $inst['data'];
|
63 |
|
88 |
* Instead adding the links directly to the header is the best way to go.
|
89 |
*/
|
90 |
public function fonts() {
|
91 |
+
// If custom font loading is disabled, exit
|
92 |
+
$comp_options = wd_asl()->o['asl_compatibility'];
|
93 |
+
if ( $comp_options['load_google_fonts'] != 1 )
|
94 |
+
return false;
|
95 |
+
|
96 |
$imports = array(
|
97 |
'https://fonts.googleapis.com/css?family=Open+Sans'
|
98 |
);
|
includes/functions/functions.php
CHANGED
@@ -400,6 +400,9 @@ if (!function_exists('asl_icl_t')) {
|
|
400 |
pll_register_string($name, $value, 'ajax-search-lite');
|
401 |
return stripslashes( pll__($value) );
|
402 |
}
|
|
|
|
|
|
|
403 |
return stripslashes( $value );
|
404 |
}
|
405 |
}
|
400 |
pll_register_string($name, $value, 'ajax-search-lite');
|
401 |
return stripslashes( pll__($value) );
|
402 |
}
|
403 |
+
if (function_exists('qtranxf_useCurrentLanguageIfNotFoundUseDefaultLanguage')) {
|
404 |
+
return stripslashes( qtranxf_useCurrentLanguageIfNotFoundUseDefaultLanguage( $value ) );
|
405 |
+
}
|
406 |
return stripslashes( $value );
|
407 |
}
|
408 |
}
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ 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: 4.8
|
7 |
-
Stable tag: 4.7.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -106,6 +106,13 @@ and will let you know what to do.
|
|
106 |
|
107 |
== Changelog ==
|
108 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
109 |
= 4.7.7 =
|
110 |
* Checkbox labels are now clickable
|
111 |
* Input focus and results opening now works if there is no search phrase entered
|
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: 4.8
|
7 |
+
Stable tag: 4.7.8
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
106 |
|
107 |
== Changelog ==
|
108 |
|
109 |
+
= 4.7.8 =
|
110 |
+
* Compatibility settings: Fallback option for old IE (<=8) browsers
|
111 |
+
* Compatibility settings: Option to disable loading google fonts
|
112 |
+
* Assets are now loaded protocolless
|
113 |
+
* :before and :after elements within the form are now forced to invisible (compatibility)
|
114 |
+
* String translation function now supports qTranslatex
|
115 |
+
|
116 |
= 4.7.7 =
|
117 |
* Checkbox labels are now clickable
|
118 |
* Input focus and results opening now works if there is no search phrase entered
|