| @@ -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() { |
| @@ -365,8 +366,9 @@ | ||
| 365 | 366 | 'important_note', |
| 366 | 367 | [ |
| 367 | 368 | 'label' => '', |
| 368 | 369 | 'type' => \Elementor\Controls_Manager::RAW_HTML, |
| 370 | + /* translators: 1: URL. */ | |
| 369 | 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'), |
| 370 | 372 | 'content_classes' => 'wdk_elementor_hint', |
| 371 | 373 | ] |
| 372 | 374 | ); |
| @@ -398,9 +400,9 @@ | ||
| 398 | 400 | $items = [ |
| 399 | 401 | [ |
| 400 | 402 | 'key'=>'btn', |
| 401 | 403 | 'label'=> esc_html__('Button', 'wpdirectorykit'), |
| 402 | - 'options'=>'full', | |
| 404 | + 'options'=>['margin','typo','color','background','border','border_radius','padding','shadow','transition'], | |
| 403 | 405 | ] |
| 404 | 406 | ]; |
| 405 | 407 | |
| 406 | 408 | foreach ($items as $item) { |
| @@ -411,8 +413,13 @@ | ||
| 411 | 413 | 'type' => Controls_Manager::HEADING, |
| 412 | 414 | 'separator' => 'before', |
| 413 | 415 | ] |
| 414 | 416 | ); |
| 417 | + | |
| 418 | + $selectors = array( | |
| 419 | + 'normal' => '{{WRAPPER}} .wdk-element', | |
| 420 | + ); | |
| 421 | + $this->generate_renders_tabs($selectors, $item['key'].'_box_dynamic', ['align']); | |
| 415 | 422 | |
| 416 | 423 | $selectors = array( |
| 417 | 424 | 'normal' => '{{WRAPPER}} .wdk-element .wdk-element-button', |
| 418 | 425 | 'hover'=>'{{WRAPPER}} .wdk-element .wdk-element-button%1$s' |