register_contents(); $this->register_styles(); } protected function register_contents(): void { $this->start_controls_section( 'section_content', [ 'label' => esc_html__( 'Listing - Action', 'addonskit-for-elementor' ), ] ); $this->add_control( "widget_name", [ 'label' => esc_html__( 'Select Action', 'addonskit-for-elementor' ), 'type' => Controls_Manager::SELECT2, 'options' => DirectoristHelper::get_header_quick_action_fields( 'quick-widgets-placeholder' ), 'multiple' => true, 'default' => ['bookmark', 'share', 'report'], ] ); $this->add_responsive_control( 'action_type_align', [ 'label' => esc_html__( 'Alignment', 'addonskit-for-elementor' ), 'type' => Controls_Manager::CHOOSE, 'options' => [ 'left' => [ 'title' => esc_html__( 'Left', 'addonskit-for-elementor' ), 'icon' => 'eicon-text-align-left', ], 'center' => [ 'title' => esc_html__( 'Center', 'addonskit-for-elementor' ), 'icon' => 'eicon-text-align-center', ], 'right' => [ 'title' => esc_html__( 'Right', 'addonskit-for-elementor' ), 'icon' => 'eicon-text-align-right', ], ], 'default' => '', 'selectors' => [ '{{WRAPPER}} .directorist-justify-content-between' => 'justify-content: {{VALUE}};', ], ] ); $this->end_controls_section(); } protected function register_styles(): void { $this->register_button2_style( __( 'Style', 'addonskit-for-elementor' ), 'action_style', '.directorist-single-listing-quick-action .directorist-btn-light' ); } public function render(): void { $settings = $this->get_settings(); echo '