Current File : /home/kelaby89/diamondtiptiling.com/wp-content/plugins/floens-addon/includes/Widgets/Gallery.php
<?php

namespace Layerdrops\Floens\Widgets;


class Gallery extends \Elementor\Widget_Base
{
    public function get_name()
    {
        return 'floens-gallery';
    }

    public function get_title()
    {
        return __('Gallery', 'floens-addon');
    }

    public function get_icon()
    {
        return 'eicon-cogs';
    }

    public function get_categories()
    {
        return ['floens-category'];
    }

    protected function register_controls()
    {

        $this->start_controls_section(
            'layout_section',
            [
                'label' => __('Layout', 'floens-addon'),
                'tab' => \Elementor\Controls_Manager::TAB_CONTENT,
            ]
        );

        $this->add_control(
            'layout_type',
            [
                'label' => __('Select Layout', 'floens-addon'),
                'type' => \Elementor\Controls_Manager::SELECT2,
                'default' => 'layout_one',
                'options' => [
                    'layout_one' => __('Layout One', 'floens-addon'),
                    'layout_two' => __('Layout Two', 'floens-addon'),
                    'layout_three' => __('Layout Three', 'floens-addon'),
                    'layout_four' => __('Layout Four', 'floens-addon'),
                    'layout_five' => __('Layout Five', 'floens-addon'),
                    'layout_six' => __('Layout Six', 'floens-addon'),
                ]
            ]
        );

        $this->end_controls_section();

        include floens_get_elementor_option('gallery-one-option.php');
        include floens_get_elementor_option('gallery-two-option.php');
        include floens_get_elementor_option('gallery-three-option.php');
        include floens_get_elementor_option('gallery-four-option.php');
        include floens_get_elementor_option('gallery-five-option.php');

        //General style
        $this->start_controls_section(
            'general_style',
            [
                'label' => esc_html__('Content Style', 'floens-addon'),
                'tab' => \Elementor\Controls_Manager::TAB_STYLE,
            ]
        );

        floens_elementor_general_style_options($this, 'Gallery Title', '{{WRAPPER}} .gallery-two__info__title', ['layout_five']);

        $this->end_controls_section();

        floens_get_elementor_carousel_options($this, ['layout_two', 'layout_six']);
    }

    protected function render()
    {
        $settings = $this->get_settings_for_display();
        include floens_get_template('gallery-one.php');
        include floens_get_template('gallery-two.php');
        include floens_get_template('gallery-three.php');
        include floens_get_template('gallery-four.php');
        include floens_get_template('gallery-five.php');
        include floens_get_template('gallery-six.php');
    }
}
Hello World !