start_controls_section( 'insta_gallery', [ 'label' => esc_html__( 'Insta Gallery', 'thinkai' ), ] ); //Gallery Image $repeater = new Repeater(); $repeater->add_control( 'gallery_image', [ 'label' => esc_html__( 'Choose Gallery Image', 'thinkai' ), 'type' => Controls_Manager::MEDIA, 'default' => [ 'url' => Utils::get_placeholder_image_src(), ], ] ); $this->add_control( 'gallery', [ 'label' => __('Add Gallery Images', 'thinkai'), 'type' => Controls_Manager::REPEATER, 'fields' => $repeater->get_controls(), ] ); $this->end_controls_section(); } /** * Render button 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(); $allowed_tags = wp_kses_allowed_html('post'); ?>
$items){ ?>
<?php bloginfo( 'name' ); ?>