start_controls_section( 'mobile_screen_options', [ 'label' => esc_html__( 'Restly Mobile Gallery', 'restlycore' ), 'tab' => Controls_Manager::TAB_CONTENT, ] ); $this->add_control( 'gallery', [ 'label' => esc_html__( 'Add Images', 'restlycore' ), 'type' => \Elementor\Controls_Manager::GALLERY, 'show_label' => false, 'default' => [], ] ); $this->add_control( 'note', [ 'label' => __( 'Additional Options', 'restlycore' ), 'type' => \Elementor\Controls_Manager::HEADING, 'separator' => 'before', ] ); $this->add_control( 'display', [ 'label' => esc_html__( 'Display Item', 'restlycore' ), 'type' => \Elementor\Controls_Manager::NUMBER, 'min' => 1, 'max' => 10, 'step' => 1, 'default' => 5, ] ); $this->add_control( 'loop', [ 'label' => esc_html__( 'Loop', 'restlycore' ), 'type' => \Elementor\Controls_Manager::SWITCHER, 'label_on' => esc_html__( 'Show', 'restlycore' ), 'label_off' => esc_html__( 'Hide', 'restlycore' ), 'return_value' => 'yes', 'default' => 'yes', ] ); $this->add_control( 'aloop', [ 'label' => esc_html__( 'Auto Play', 'restlycore' ), 'type' => \Elementor\Controls_Manager::SWITCHER, 'label_on' => esc_html__( 'Show', 'restlycore' ), 'label_off' => esc_html__( 'Hide', 'restlycore' ), 'return_value' => 'yes', 'default' => 'yes', ] ); $this->add_control( 'speed', [ 'label' => esc_html__( 'Speed', 'restlycore' ), 'type' => \Elementor\Controls_Manager::NUMBER, 'min' => 100, 'max' => 10000, 'step' => 50, 'default' => 1000, ] ); $this->add_control( 'aspeed', [ 'label' => esc_html__( 'Auto Speed', 'restlycore' ), 'type' => \Elementor\Controls_Manager::NUMBER, 'min' => 100, 'max' => 2000, 'step' => 100, 'default' => 5000, ] ); $this->add_control( 'dot', [ 'label' => esc_html__( 'Dot', 'restlycore' ), 'type' => \Elementor\Controls_Manager::SWITCHER, 'label_on' => esc_html__( 'Show', 'restlycore' ), 'label_off' => esc_html__( 'Hide', 'restlycore' ), 'return_value' => 'yes', 'default' => 'yes', ] ); $this->end_controls_section(); } //Render protected function render() { $settings = $this->get_settings_for_display(); $unique = rand(1241, 3256); ob_start(); ?>
widgets_manager->register( new restly_mobileScreen_Widget );