register_contents(); } protected function register_contents(): void { $this->start_controls_section( 'section_content', [ 'label' => esc_html__( 'Images', 'addonskit-for-elementor' ), ] ); $this->add_control( 'important_note', [ 'type' => Controls_Manager::RAW_HTML, 'raw' => '
'. esc_html__( 'This widget will show the listing Images on a slider.', 'addonskit-for-elementor' ) . '
', ] ); $this->end_controls_section(); } public function render(): void { if ( Helper::is_edit() ) { $this->get_script_depends(); } $listing = Directorist_Single_Listing::instance( get_the_ID() ); CoreHelper::get_template( 'single/slider', ['data' => $listing->get_slider_data()] ); } }