register_contents(); } protected function register_contents(): void { $this->start_controls_section( 'section_content', [ 'label' => esc_html__( 'Map', 'addonskit-for-elementor' ), ] ); $this->add_control( 'important_note', [ 'type' => Controls_Manager::RAW_HTML, 'raw' => '
'. esc_html__( 'This widget will show the listing address on a map.', 'addonskit-for-elementor' ) . '
', ] ); $this->end_controls_section(); } public function render(): void { if ( Helper::is_edit() ) { $this->get_script_depends(); } DirectoristHelper::get_single_listing_fields('map'); } }