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-tabs.php +10 -8 1.3.6 → 1.5.9 View file →
@@ -29,8 +29,9 @@
29 29 \Elementor\Controls_Manager::add_tab(
30 30 'tab_conf',
31 31 esc_html__('Settings', 'wpdirectorykit')
32 32 );
33 +
33 34
34 35 \Elementor\Controls_Manager::add_tab(
35 36 'tab_layout',
36 37 esc_html__('Layout', 'wpdirectorykit')
@@ -70,9 +71,9 @@
70 71 *
71 72 * @return string Widget title.
72 73 */
73 74 public function get_title() {
74 - return esc_html__('Wdk Tabs', 'wpdirectorykit');
75 + return esc_html__('Wdk Switcher', 'wpdirectorykit');
75 76 }
76 77
77 78 /**
78 79 * Retrieve the widget icon.
@@ -125,9 +126,9 @@
125 126 if(Plugin::$instance->editor->is_edit_mode()) {
126 127 $this->data['is_edit_mode'] = true;
127 128 }
128 129
129 - echo $this->view('wdk-tabs', $this->data);
130 + $this->view('wdk-tabs', $this->data, true);
130 131 }
131 132
132 133
133 134 private function generate_controls_conf() {
@@ -143,8 +144,9 @@
143 144 'important_note',
144 145 [
145 146 'label' => '',
146 147 'type' => \Elementor\Controls_Manager::RAW_HTML,
148 + /* translators: 1: URL. */
147 149 'raw' => wdk_sprintf(__( '<a href="%1$s" target="_blank">Have a question how to configure? Check our Guide</a>', 'wpdirectorykit' ), '//wpdirectorykit.com/wp/wpdirectorykit-elementor-element-wdk-tabs'),
148 150 'content_classes' => 'wdk_elementor_hint',
149 151 ]
150 152 );
@@ -214,15 +216,15 @@
214 216 'fields' => $repeater->get_controls(),
215 217 'label' => __( 'Field id', 'wpdirectorykit' ),
216 218 'default' => [
217 219 [
218 - 'tab_name' => esc_html__('Tab 1', 'elementinvader-addons-for-elementor'),
220 + 'tab_name' => esc_html__('Tab 1', 'wpdirectorykit'),
219 221 'tab_target' => 'tab_1',
220 222 'tab_css_class' => '',
221 223 'tab_icon' => 'fas fa-list',
222 224 ],
223 225 [
224 - 'tab_name' => esc_html__('Tab 1', 'elementinvader-addons-for-elementor'),
226 + 'tab_name' => esc_html__('Tab 1', 'wpdirectorykit'),
225 227 'tab_target' => 'tab_1',
226 228 'tab_css_class' => '',
227 229 'tab_icon' => 'fas fa-list',
228 230 ],
@@ -268,12 +270,12 @@
268 270 if(!empty($item['selector_hide'])) {
269 271 $this->add_responsive_control(
270 272 $item['key'].'_hide',
271 273 [
272 - 'label' => esc_html__( 'Hide Element', 'wdk-svg-map' ),
274 + 'label' => esc_html__( 'Hide Element', 'wpdirectorykit' ),
273 275 'type' => Controls_Manager::SWITCHER,
274 - 'none' => esc_html__( 'Hide', 'wdk-svg-map' ),
275 - 'block' => esc_html__( 'Show', 'wdk-svg-map' ),
276 + 'none' => esc_html__( 'Hide', 'wpdirectorykit' ),
277 + 'block' => esc_html__( 'Show', 'wpdirectorykit' ),
276 278 'return_value' => 'none',
277 279 'default' => ($item['key'] == 'field_button_reset' ) ? 'none':'',
278 280 'selectors' => [
279 281 $item['selector_hide'] => 'display: {{VALUE}};',
@@ -289,9 +291,9 @@
289 291 if(!empty($item['selector_hover']))
290 292 $selectors['hover'] = $item['selector_hover'];
291 293
292 294 if(!empty($item['selector_focus']))
293 - $selectors['focus'] = $item['selector_hover'];
295 + $selectors['focus'] = $item['selector_focus'];
294 296
295 297 $this->generate_renders_tabs($selectors, $item['key'].'_dynamic', $item['options']);
296 298
297 299 $this->end_controls_section();