Your IP : 216.73.216.0


Current Path : /home/goldnueh/netsetsolution.com/wp-content/plugins/zeinet-addon/includes/Widgets/
Upload File :
Current File : /home/goldnueh/netsetsolution.com/wp-content/plugins/zeinet-addon/includes/Widgets/FooterAbout.php

<?php

namespace Layerdrops\Zeinet\Widgets;


class FooterAbout extends \Elementor\Widget_Base
{
    public function get_name()
    {
        return 'footer-about';
    }

    public function get_title()
    {
        return __('Footer About', 'zeinet-addon');
    }

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

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

    protected function register_controls()
    {

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

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

        $this->end_controls_section();

        $this->start_controls_section(
            'content_section',
            [
                'label' => __('Content', 'zeinet-addon'),
                'tab' => \Elementor\Controls_Manager::TAB_CONTENT,
                'condition' => [
                    'layout_type' => 'layout_one'
                ]
            ]
        );

        $this->add_control(
            'paragraph',
            [
                'label' => __('Paragraph Text', 'zeinet-addon'),
                'type' => \Elementor\Controls_Manager::TEXTAREA,
                'placeholder' => __('Add Paragraph Text', 'zeinet-addon'),
                'default' => __('Default Paragraph Text', 'zeinet-addon')
            ]
        );

        $layout_three_social_icons = new \Elementor\Repeater();

        $layout_three_social_icons->add_control(
            'social_icon',
            [
                'label' => __('Select Icon', 'zeinet-addon'),
                'type' => \Elementor\Controls_Manager::ICONS,
                'default' => [
                    'value' => 'fab fa-facebook-f',
                    'library' => 'brands',
                ],
            ]
        );

        $layout_three_social_icons->add_control(
            'social_url',
            [
                'label' => __('Add Url', 'zeinet-addon'),
                'type' => \Elementor\Controls_Manager::URL,
                'placeholder' => __('#', 'zeinet-addon'),
                'show_external' => false,
                'default' => [
                    'url' => '#',
                    'is_external' => false,
                    'nofollow' => true,
                ],
                'show_label' => false,
            ]
        );

        $this->add_control(
            'social_icons',
            [
                'label' => __('Social NetWork', 'zeinet-addon'),
                'type' => \Elementor\Controls_Manager::REPEATER,
                'fields' => $layout_three_social_icons->get_controls(),
                'prevent_empty' => false,
                'default' => [
                    [
                        'social_url' => [
                            'url' => '#',
                            'is_external' => false,
                            'nofollow' => true,
                        ],
                    ],
                ],
            ]
        );

        $this->end_controls_section();

        $this->start_controls_section(
            'layout_two_content_section',
            [
                'label' => __('Content', 'zeinet-addon'),
                'tab' => \Elementor\Controls_Manager::TAB_CONTENT,
                'condition' => [
                    'layout_type' => 'layout_two'
                ]
            ]
        );

        $this->add_control(
            'layout_two_widget_title',
            [
                'label' => __('Widget Title', 'zeinet-addon'),
                'type' => \Elementor\Controls_Manager::TEXTAREA,
                'placeholder' => __('Add Widget Title', 'zeinet-addon'),
                'default' => __('Default Title', 'zeinet-addon')
            ]
        );

        $this->add_control(
            'layout_two_about_text',
            [
                'label' => __('About Text', 'zeinet-addon'),
                'type' => \Elementor\Controls_Manager::TEXTAREA,
                'placeholder' => __('Add About Text', 'zeinet-addon'),
                'default' => __('Default Text', 'zeinet-addon')
            ]
        );

        $this->end_controls_section();

        $this->start_controls_section(
            'layout_three_content_section',
            [
                'label' => __('Content', 'zeinet-addon'),
                'tab' => \Elementor\Controls_Manager::TAB_CONTENT,
                'condition' => [
                    'layout_type' => 'layout_three'
                ]
            ]
        );

        $this->add_control(
            'layout_three_light_logo',
            [
                'label' => __('Light Logo', 'zeinet-addon'),
                'type' => \Elementor\Controls_Manager::MEDIA,
                'default' => [
                    'url' => \Elementor\Utils::get_placeholder_image_src(),
                ],
            ]
        );

        $this->add_control(
            'layout_three_logo_dimension',
            [
                'label' => __('Logo Dimension', 'zeinet-addon'),
                'type' => \Elementor\Controls_Manager::IMAGE_DIMENSIONS,
                'description' => __('Set Custom Logo Size.', 'zeinet-addon'),
                'default' => [
                    'width' => '151',
                    'height' => '52',
                ],
            ]
        );

        $this->add_control(
            'layout_three_summary_text',
            [
                'label' => __('Summary Text', 'zeinet-addon'),
                'type' => \Elementor\Controls_Manager::TEXTAREA,
                'placeholder' => __('Add Summary Text', 'zeinet-addon'),
                'default' => __('Default Text', 'zeinet-addon')
            ]
        );

        $layout_three_social_icons = new \Elementor\Repeater();

        $layout_three_social_icons->add_control(
            'social_icon',
            [
                'label' => __('Select Icon', 'zeinet-addon'),
                'type' => \Elementor\Controls_Manager::ICONS,
                'default' => [
                    'value' => 'fab fa-facebook-f',
                    'library' => 'brands',
                ],
            ]
        );

        $layout_three_social_icons->add_control(
            'social_url',
            [
                'label' => __('Add Url', 'zeinet-addon'),
                'type' => \Elementor\Controls_Manager::URL,
                'placeholder' => __('#', 'zeinet-addon'),
                'show_external' => false,
                'default' => [
                    'url' => '#',
                    'is_external' => false,
                    'nofollow' => true,
                ],
                'show_label' => false,
            ]
        );

        $this->add_control(
            'layout_three_social_icons',
            [
                'label' => __('Social NetWork', 'zeinet-addon'),
                'type' => \Elementor\Controls_Manager::REPEATER,
                'fields' => $layout_three_social_icons->get_controls(),
                'prevent_empty' => false,
                'default' => [
                    [
                        'social_url' => [
                            'url' => '#',
                            'is_external' => false,
                            'nofollow' => true,
                        ],
                    ],
                ],
            ]
        );

        $this->end_controls_section();

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

        zeinet_typo_and_color_options($this, 'Paragraph Text', '{{WRAPPER}} .footer-widget__about-text', ['layout_one']);

        zeinet_typo_and_color_options($this, 'Title', '{{WRAPPER}} .footer-widget__title', ['layout_two']);
        zeinet_typo_and_color_options($this, 'About Text', '{{WRAPPER}} .footer-widget__meet-us-text,{{WRAPPER}} .site-footer-two__about__text', ['layout_two', 'layout_three']);

        $this->end_controls_section();
    }

    protected function render()
    {
        $settings = $this->get_settings_for_display();
        include zeinet_get_template('footer-about-one.php');
        include zeinet_get_template('footer-about-two.php');
        include zeinet_get_template('footer-about-three.php');
    }
}