%PDF- %PDF-
Direktori : /home/opti/public_html/stlc/wp-content/plugins/insur-addon/includes/Widgets/ |
Current File : /home/opti/public_html/stlc/wp-content/plugins/insur-addon/includes/Widgets/FooterGallery.php |
<?php namespace Layerdrops\Insur\Widgets; class FooterGallery extends \Elementor\Widget_Base { public function get_name() { return 'insur-footer-gallery'; } public function get_title() { return __('Footer Gallery', 'insur-addon'); } public function get_icon() { return 'eicon-cogs'; } public function get_categories() { return ['insur-category']; } protected function _register_controls() { $this->start_controls_section( 'layout_section', [ 'label' => __('Layout', 'insur-addon'), 'tab' => \Elementor\Controls_Manager::TAB_CONTENT, ] ); $this->add_control( 'layout_type', [ 'label' => __('Select Layout', 'insur-addon'), 'type' => \Elementor\Controls_Manager::SELECT2, 'default' => 'layout_one', 'options' => [ 'layout_one' => __('Layout One', 'insur-addon'), ] ] ); $this->end_controls_section(); $this->start_controls_section( 'content_section', [ 'label' => __('Content', 'insur-addon'), 'tab' => \Elementor\Controls_Manager::TAB_CONTENT, ] ); $this->add_control( 'title', [ 'label' => __('Add Title', 'insur-addon'), 'type' => \Elementor\Controls_Manager::TEXT, 'default' => __('Gallery', 'insur-addon'), 'label_block' => true ] ); $gallery_images = new \Elementor\Repeater(); $gallery_images->add_control( 'image', [ 'label' => __('Add Image', 'insur-addon'), 'type' => \Elementor\Controls_Manager::MEDIA, ] ); $gallery_images->add_control( 'url', [ 'label' => __('Url', 'insur-addon'), 'type' => \Elementor\Controls_Manager::URL, 'placeholder' => __('#', 'insur-addon'), 'show_external' => true, 'default' => [ 'url' => '#', 'is_external' => true, 'nofollow' => true, ], 'show_label' => false, ] ); $this->add_control( 'gallery_images', [ 'label' => __('Gallery Items', 'insur-addon'), 'type' => \Elementor\Controls_Manager::REPEATER, 'prevent_empty' => false, 'condition' => [ 'layout_type' => ['layout_one', 'layout_two'] ], 'fields' => $gallery_images->get_controls(), ] ); $this->end_controls_section(); //style $this->start_controls_section( 'style_option', [ 'label' => esc_html__('Style Options', 'insur-addon'), 'tab' => \Elementor\Controls_Manager::TAB_STYLE, ] ); //Widget title typography $this->add_group_control( \Elementor\Group_Control_Typography::get_type(), [ 'name' => 'widget_title_typography', 'label' => esc_html__('Widget Title Typography', 'insur-addon'), 'selector' => '{{WRAPPER}} .footer-widget__title', ] ); $this->add_control( 'widget_title__color', [ 'label' => __('Widget Title Color', 'insur-addon'), 'type' => \Elementor\Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .footer-widget__title' => 'color: {{VALUE}}', ], ] ); $this->end_controls_section(); insur_get_elementor_carousel_options($this, ['layout_two']); } protected function render() { $settings = $this->get_settings_for_display(); include insur_get_template('footer-gallery-one.php'); } }