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-button-login.php +37 -3 1.1.0 → 1.5.9 View file →
@@ -29,8 +29,9 @@
29 29
30 30 public function __construct($data = array(), $args = null) {
31 31
32 32 \Elementor\Controls_Manager::add_tab(
33 +
33 34 'tab_conf',
34 35 esc_html__('Settings', 'wpdirectorykit')
35 36 );
36 37
@@ -145,9 +146,9 @@
145 146 $this->data['is_edit_mode']= true;
146 147 } else {
147 148 }
148 149
149 - echo $this->view('wdk-button-login', $this->data);
150 + $this->view('wdk-button-login', $this->data, true);
150 151 }
151 152
152 153
153 154 private function generate_controls_conf() {
@@ -350,8 +351,36 @@
350 351 'default' => 'left',
351 352 ]
352 353 );
353 354
355 + /* chat button */
356 + $this->add_responsive_control(
357 + 'link_chat_header',
358 + [
359 + 'label' => esc_html__('Chat Button', 'wpdirectorykit'),
360 + 'type' => Controls_Manager::HEADING,
361 + 'separator' => 'before',
362 + ]
363 + );
364 +
365 + $this->add_control(
366 + 'important_note',
367 + [
368 + 'label' => '',
369 + 'type' => \Elementor\Controls_Manager::RAW_HTML,
370 + /* translators: 1: URL. */
371 + 'raw' => wdk_sprintf(__( 'Only for addon <a href="%1$s" target="_blank"> Live Messages Chat </a>', 'wpdirectorykit' ), '//wpdirectorykit.com/plugins/wp-directory-messages-chat.html'),
372 + 'content_classes' => 'wdk_elementor_hint',
373 + ]
374 + );
375 +
376 +
377 + $selectors = array(
378 + 'normal' => '{{WRAPPER}} .wdk-button-login .dash-span .count_messages',
379 + 'hover'=>'{{WRAPPER}} .wdk-button-login .dash-span .count_messages%1$s'
380 + );
381 + $this->generate_renders_tabs($selectors, 'link_chat_dynamic', ['margin','typo','color','background','border','border_radius','padding','shadow','transition', 'height', 'width','background_group']);
382 +
354 383 $this->end_controls_section();
355 384
356 385 }
357 386
@@ -371,9 +400,9 @@
371 400 $items = [
372 401 [
373 402 'key'=>'btn',
374 403 'label'=> esc_html__('Button', 'wpdirectorykit'),
375 - 'options'=>'full',
404 + 'options'=>['margin','typo','color','background','border','border_radius','padding','shadow','transition'],
376 405 ]
377 406 ];
378 407
379 408 foreach ($items as $item) {
@@ -386,8 +415,13 @@
386 415 ]
387 416 );
388 417
389 418 $selectors = array(
419 + 'normal' => '{{WRAPPER}} .wdk-element',
420 + );
421 + $this->generate_renders_tabs($selectors, $item['key'].'_box_dynamic', ['align']);
422 +
423 + $selectors = array(
390 424 'normal' => '{{WRAPPER}} .wdk-element .wdk-element-button',
391 425 'hover'=>'{{WRAPPER}} .wdk-element .wdk-element-button%1$s'
392 426 );
393 427 $this->generate_renders_tabs($selectors, $item['key'].'_dynamic', $item['options']);
@@ -531,9 +565,9 @@
531 565 $items = [
532 566 [
533 567 'key'=>'icon_logout',
534 568 'label'=> esc_html__('Icon', 'wpdirectorykit'),
535 - 'options'=>'full',
569 + 'options'=>['margin','font-size','color','background','border','border_radius','padding'],
536 570 ]
537 571 ];
538 572
539 573 foreach ($items as $item) {