PluginProbe
WP Directory Kit / 1.5.9
WP Directory Kit v1.5.9
1.5.9 1.5.7 1.5.6 1.5.5 1.5.4 1.5.3 trunk 1.1.0 1.1.6 1.1.8 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.3.8 All 37 releases
← All changes | elementor-elements/classes/wdk-last-search.php +10 -6 1.3.2 → 1.5.9 View file →
@@ -144,9 +144,13 @@
144 144
145 145 $this->data['id_element'] = $this->get_id();
146 146 $this->data['settings'] = $this->get_settings();
147 147
148 - $this->data['last_search'] = wmvc_show_data('text_default_search', $this->data['settings'], esc_html__('Last Search', 'wpdirectorykit'));
148 + $this->data['last_search'] = wmvc_show_data('text_default_search', $this->data['settings']);
149 + if(empty($this->data['last_search'])) {
150 + $this->data['last_search'] = esc_html__('Last Search', 'wpdirectorykit');
151 + }
152 +
149 153 $this->data['last_search_url'] = wmvc_show_data('url_link_default_onempty', $this->data['settings'],'#');
150 154
151 155 if(isset($_COOKIE['wdk_last_search'])) {
152 156 $this->data['last_search_url'] = wdk_url_suffix(get_permalink(get_option('wdk_results_page')), $_COOKIE['wdk_last_search']);
@@ -152,9 +156,9 @@
152 156 $this->data['last_search_url'] = wdk_url_suffix(get_permalink(get_option('wdk_results_page')), $_COOKIE['wdk_last_search']);
153 157
154 158 $custom_parameters = array();
155 159 $qr_string = trim($_COOKIE['wdk_last_search']);
156 - $qr_string = 'search_location%5B%5D=221&search_location55=1&search_category%5B%5D=0&search_category=2&wmvc_view_type=grid&order_by=post_id%20DESC';
160 +
157 161 parse_str($qr_string, $custom_parameters);
158 162
159 163 if(isset($custom_parameters['search_location'])) {
160 164 if(is_array($custom_parameters['search_location'])) {
@@ -175,9 +179,9 @@
175 179 return false;
176 180 }
177 181 }
178 182
179 - echo $this->view('wdk-last-search', $this->data);
183 + $this->view('wdk-last-search', $this->data, true);
180 184 }
181 185
182 186
183 187 private function generate_controls_conf() {
@@ -265,12 +269,12 @@
265 269 if(!empty($item['selector_hide'])) {
266 270 $this->add_responsive_control(
267 271 $item['key'].'_hide',
268 272 [
269 - 'label' => esc_html__( 'Hide Element', 'wdk-svg-map' ),
273 + 'label' => esc_html__( 'Hide Element', 'wpdirectorykit' ),
270 274 'type' => Controls_Manager::SWITCHER,
271 - 'none' => esc_html__( 'Hide', 'wdk-svg-map' ),
272 - 'block' => esc_html__( 'Show', 'wdk-svg-map' ),
275 + 'none' => esc_html__( 'Hide', 'wpdirectorykit' ),
276 + 'block' => esc_html__( 'Show', 'wpdirectorykit' ),
273 277 'return_value' => 'none',
274 278 'default' => ($item['key'] == 'field_button_reset' ) ? 'none':'',
275 279 'selectors' => [
276 280 $item['selector_hide'] => 'display: {{VALUE}};',