start_controls_section( 'section_content', [ 'label' => __( 'Content', 'image-panorama' ), ] ); $this->add_control( 'panorama_img_1', [ 'label' => __( 'Choose Image', 'image-panorama' ), 'type' => \Elementor\Controls_Manager::MEDIA, 'default' => [ 'url' => \Elementor\Utils::get_placeholder_image_src(), ] ] ); $this->add_control( 'panorama_img_2', [ 'label' => __( 'Choose Image', 'image-panorama' ), 'type' => \Elementor\Controls_Manager::MEDIA, 'default' => [ 'url' => \Elementor\Utils::get_placeholder_image_src(), ] ] ); $this->end_controls_section(); } /** * Render the widget output on the frontend. * * Written in PHP and used to generate the final HTML. * * @since 1.0.0 * * @access protected */ protected function render() { $settings = $this->get_settings_for_display(); static $i = 0; echo'
'; echo' '; $i++; } /** * Render the widget output in the editor. * * Written as a Backbone JavaScript template and used to generate the live preview. * * @since 1.0.0 * * @access protected */ protected function _content_template() { ?>