<?php
/**
 * Elementor Footer Widget.
 *
 * Elementor widget that inserts an embbedable content into the page, from any given URL.
 *
 * @since 1.0.5
 */
class Elementor_Footer_Widget extends \Elementor\Widget_Base {

	/**
	 * Get widget name.
	 *
	 * Retrieve Footer widget name.
	 *
	 * @since 1.0.5
	 * @access public
	 *
	 * @return string Widget name.
	 */
	public function get_name() {
		return 'footer';
	}

	/**
	 * Get widget title.
	 *
	 * Retrieve Footer widget title.
	 *
	 * @since 1.0.5
	 * @access public
	 *
	 * @return string Widget title.
	 */
	public function get_title() {
		return __( 'Footer Addons', 'endless-addons' );
	}

	/**
	 * Get widget icon.
	 *
	 * Retrieve Footer widget icon.
	 *
	 * @since 1.0.5
	 * @access public
	 *
	 * @return string Widget icon.
	 */
	public function get_icon() {
		return 'fa fa-border-none';
	}

	/**
	 * Get widget categories.
	 *
	 * Retrieve the list of categories the Footer widget belongs to.
	 *
	 * @since 1.0.5
	 * @access public
	 *
	 * @return array Widget categories.
	 */
	public function get_categories() {
		return [ 'endless-elements' ];
	}

	/**
	 * Register Footer widget controls.
	 *
	 * Adds different input fields to allow the user to change and customize the widget settings.
	 *
	 * @since 1.0.5
	 * @access protected
	 */
	protected function register_controls() {

		$this->start_controls_section(
			'default_section',
			[    
				'label' => __( 'Settings', 'endless-addons' ),
				'tab' => \Elementor\Controls_Manager::TAB_CONTENT
			]
		);

		$this->add_control(
			'show_footer',
			[
				'label' => __( 'Show/Hide Footer Section', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::CHOOSE,
				'options' => [
					'show' => [
						'title' => __( 'Show', 'endless-addons' ),
						'icon' => 'fa fa-check'
					],
					'hide' => [
						'title' => __( 'Hide', 'endless-addons' ),
						'icon' => 'fa fa-close'
					]
				],
				'default' => 'show',
				'toggle' => true
			]
		);

		$this->add_control(
			'select_footer_style',
			[
				'label' => __( 'Select Footer Style', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::SELECT,
				'input_type' => 'SELECT',
				'options' => [
					'style-01' => __( 'Style 01', 'endless-addons' ),
					'style-02' => __( 'Style 02', 'endless-addons' ),
					'style-03' => __( 'Style 03', 'endless-addons' ),
					'style-04' => __( 'Style 04', 'endless-addons' ),
					'style-05' => __( 'Style 05', 'endless-addons' ),
					'style-06' => __( 'Style 06', 'endless-addons' ),
					'style-07' => __( 'Style 07', 'endless-addons' )
				],
				'default' => 'style-01'
			]
		);

		$this->end_controls_section();

		$this->start_controls_section(
			'footer_section',
			[
				'label' => __( 'Footer Section', 'endless-addons' ),
				'tab' => \Elementor\Controls_Manager::TAB_CONTENT
			]
		);

		$this->add_control(
			'section_title',
			[
				'label' => __( 'Section Title', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::TEXT,
				'input_type' => 'text',
				'placeholder' => __( 'Title', 'endless-addons' ),
				'default'  => __( 'Design 01', 'endless-addons' )
			]
		);

		$this->add_control(
			'section_desc',
			[
				'label' => __( 'Section Description', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::WYSIWYG,
				'input_type' => 'WYSIWYG',
				'placeholder' => __( 'Description', 'endless-addons' ),
				'default' => __( 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt dolore magna aliqua. Quis ipsum suspendisse ultrices gravida.', 'endless-addons')
			]
		);

		$this->add_group_control(
			\Elementor\Group_Control_Background::get_type(),
			[
				'name' => 'section_background',
				'label' => __( 'Background', 'plugin-domain' ),
				'types' => [ 'classic', 'gradient', 'video' ],
				'selector' => '{{WRAPPER}} .ea-section-footer-area',
			]
		);

		$this->end_controls_section();

		$this->start_controls_section(
			'footer_Images',
			[
				'label' => __( 'Footer Images', 'endless-addons' ),
				'tab' => \Elementor\Controls_Manager::TAB_CONTENT
			]
		);

		$this->add_control(
			'footer_logo_img',
			[
				'label' => __( 'Logo Image', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::MEDIA,
				'show_label' => true,
				'condition' => [
                    'select_footer_style' => array('style-04', 'style-05', 'style-07')
                ]
			]
		);

		$this->add_control(
			'footer_bg_img',
			[
				'label' => __( 'Background Image', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::MEDIA,
				'show_label' => true,
				'condition' => [
                    'select_footer_style' => array('style-01', 'style-02', 'style-03', 'style-05', 'style-06', 'style-07')
                ]
			]
		);

		$this->add_control(
			'footer_shape_img1',
			[
				'label' => __( 'Shape Image 1', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::MEDIA,
				'show_label' => true,
				'condition' => [
                    'select_footer_style' => array('style-02', 'style-04', 'style-05', 'style-06')
                ]
			]
		);

		$this->add_control(
			'footer_shape_img2',
			[
				'label' => __( 'Shape Image 2', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::MEDIA,
				'show_label' => true,
				'condition' => [
                    'select_footer_style' => 'style-04'
                ]
			]
		);

		$this->end_controls_section();

		$this->start_controls_section(
			'footer_about_content',
			[
				'label' => __( 'Footer About Info', 'endless-addons' ),
				'tab' => \Elementor\Controls_Manager::TAB_CONTENT,
				'condition' => [
                    'select_footer_style' => array('style-01', 'style-04')
                ]
			]
		);

		$this->add_control(
			'about_title',
			[
				'label' => __( 'About Title', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::TEXT,
				'input_type' => 'text',
				'placeholder' => __( 'Title', 'endless-addons' ),
				'default'  => __( 'Endless', 'endless-addons' )
			]
		);

		$this->add_control(
			'about_desc',
			[
				'label' => __( 'About Description', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::TEXTAREA,
				'input_type' => 'textarea',
				'placeholder' => __( 'Description', 'endless-addons' ),
				'default' => __( 'Lorem ipsum dolor sit amet, consetet ur sadipscing elitr, sed diam nonumy eirmod tempor', 'endless-addons')
			]
		);

		$this->end_controls_section();

		$this->start_controls_section(
			'footer_instagram',
			[
				'label' => __( 'Footer Instagram', 'endless-addons' ),
				'tab' => \Elementor\Controls_Manager::TAB_CONTENT,
				'condition' => [
                    'select_footer_style' => 'style-04'
                ]
			]
		);

		$this->add_control(
			'footer_instagram_title',
			[
				'label' => __( 'Instagram Title', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::TEXT,
				'input_type' => 'text',
				'placeholder' => __( 'Title', 'endless-addons' ),
				'default'  => __( 'Instagram', 'endless-addons' )
			]
		);

		$repeater = new \Elementor\Repeater();

		$repeater->add_control(
			'footer_instagram_img',
			[
				'label' => __( 'Image', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::MEDIA,
				'show_label' => true
			]
		);

		$repeater->add_control(
			'footer_instagram_img_link',
			[
				'label' => __( 'Link', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::URL,
				'input_type' => 'url',
				'show_label' => true,
				'default' => [
					'url' => '#',
					'is_external' => true,
					'nofollow' => true
				]
			]
		);

		$this->add_control(
			'single_footer_instagram',
			[
				'label' => __( 'Single Instagram', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::REPEATER,
				'fields' => $repeater->get_controls(),
				'default' => [
					[
						'list_title' => __( 'Single Instagram #1', 'endless-addons' ),
						'list_content' => __( 'Single Instagram Content', 'endless-addons' ),
					],
				
				],
			]
		);

		$this->end_controls_section();

		$this->start_controls_section(
			'footer_blog',
			[
				'label' => __( 'Footer Blog', 'endless-addons' ),
				'tab' => \Elementor\Controls_Manager::TAB_CONTENT,
				'condition' => [
                    'select_footer_style' => 'style-04'
                ]
			]
		);

		$this->add_control(
			'footer_blog_title',
			[
				'label' => __( 'Footer Blog Title', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::TEXT,
				'input_type' => 'text',
				'placeholder' => __( 'Title', 'endless-addons' ),
				'default'  => __( 'Recent News', 'endless-addons' )
			]
		);

		$this->add_control(
			'blog_category_select',
			[
				'label' => __( 'Sort By Multiple Category', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::CHOOSE,
				'options' => [
					'yes' => [
						'title' => __( 'Yes', 'endless-addons' ),
						'icon' => 'fa fa-check'
					],
					'no' => [
						'title' => __( 'No', 'endless-addons' ),
						'icon' => 'fa fa-close'
					]
				],
				'default' => 'no',
				'toggle' => true
			]
		);

		$this->add_control(
			'blog_category_multiple',
			[
				'label' => __( 'Write Category Name', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::TEXT,
				'input_type' => 'text',
				'placeholder' => __( 'Cat-1, Cat-2', 'endless-addons' ),
				'description' => esc_html__( 'Enter the category slugs separated by commas (Eg. cat1, cat2)', 'endless-addons' ),
				'condition' => [
                    'blog_category_select' => 'yes'
                ]
			]
		);

		$this->add_control(
			'blog_category_single',
			[
				'label' => __( 'Sort By Category', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::SELECT,
				'input_type' => 'select',
				'options' => endless_addons_get_blog_cat_list(),
				'condition' => [
                    'blog_category_select' => 'no'
                ]
			]
		);

        $this->add_control(
            'ea_blog_order',
            [
                'label' => esc_html__( 'Posts Order By', 'endless-addons' ),
                'type' => \Elementor\Controls_Manager::SELECT,
                'options' => [
                    'DESC'      => esc_html__( 'DESC', 'endless-addons' ),
                    'ASC'       => esc_html__( 'ASC', 'endless-addons' ),
                ],
                'default' => 'DESC',
            ]
        );

        $this->add_control(
            'ea_blog_count',
            [
                'label' => esc_html__( 'Number of Items', 'ndless-addons' ),
                'type' => \Elementor\Controls_Manager::NUMBER,
                'default' => 2,
            ]
        );

		$this->end_controls_section();

		$this->start_controls_section(
			'footer_menu_content',
			[
				'label' => __( 'Footer Menu', 'endless-addons' ),
				'tab' => \Elementor\Controls_Manager::TAB_CONTENT,
			]
		);

		$this->add_control(
			'footer_menu_title_one',
			[
				'label' => __( 'Menu Title One', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::TEXT,
				'input_type' => 'text',
				'placeholder' => __( 'Title', 'endless-addons' ),
				'default'  => __( 'Menu 01', 'endless-addons' ),
				'condition' => [
                    'select_footer_style' => array('style-01', 'style-02', 'style-03', 'style-04', 'style-05', 'style-06')
                ]
			]
		);

        $this->add_control(
            'footer_menu_one', [
                'label' => __( 'Select Menu One', 'endless-addons' ),
                'type' => \Elementor\Controls_Manager::SELECT,
                'options' => endless_addons_get_menu_array()
            ]
        );

        $this->add_control(
			'footer_menu_title_two',
			[
				'label' => __( 'Menu Title Two', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::TEXT,
				'input_type' => 'text',
				'placeholder' => __( 'Title', 'endless-addons' ),
				'default'  => __( 'Menu 02', 'endless-addons' ),
				'condition' => [
                    'select_footer_style' => array('style-01', 'style-02', 'style-03', 'style-05')
                ]
			]
		);

        $this->add_control(
            'footer_menu_two', [
                'label' => __( 'Select Menu Two', 'endless-addons' ),
                'type' => \Elementor\Controls_Manager::SELECT,
                'options' => endless_addons_get_menu_array(),
                'condition' => [
                    'select_footer_style' => array('style-01', 'style-02', 'style-03', 'style-05')
                ]
            ]
        );

        $this->add_control(
			'footer_menu_title_three',
			[
				'label' => __( 'Menu Title Three', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::TEXT,
				'input_type' => 'text',
				'placeholder' => __( 'Title', 'endless-addons' ),
				'default'  => __( 'Menu 03', 'endless-addons' ),
				'condition' => [
                    'select_footer_style' => 'style-03'
                ]
			]
		);

        $this->add_control(
            'footer_menu_three', [
                'label' => __( 'Select Menu Three', 'endless-addons' ),
                'type' => \Elementor\Controls_Manager::SELECT,
                'options' => endless_addons_get_menu_array(),
                'condition' => [
                    'select_footer_style' => 'style-03'
                ]
            ]
        );

        $this->end_controls_section();

		$this->start_controls_section(
			'footer_social_media',
			[
				'label' => __( 'Footer Social Media', 'endless-addons' ),
				'tab' => \Elementor\Controls_Manager::TAB_CONTENT
			]
		);

		$this->add_control(
			'social_media_title',
			[
				'label' => __( 'Social Media Title', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::TEXT,
				'input_type' => 'text',
				'placeholder' => __( 'Title', 'endless-addons' ),
				'default'  => __( 'Follow:', 'endless-addons' )
			]
		);

		$repeater = new \Elementor\Repeater();

		$repeater->add_control(
			'icon_type',
			[
				'label' => __( 'Icon Type', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::SELECT,
				'input_type' => 'SELECT',
				'options' => [
					'general' => __( 'General', 'endless-addons' ),
					'library' => __( 'Library', 'endless-addons' ),
				],
				'default' => 'general'
			]
		);

		$repeater->add_control(
			'social_media_icon1', 
			[
				'label' => __( 'Icon', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::ICON,
				'input_type' => 'icon',
				'default'  => 'bx bxl-facebook',
				'show_label' => true,
				'options' => endless_addons_icons(),
				'condition' => [
                    'icon_type' => 'general'
                ]
			]
		);

		$repeater->add_control(
			'social_media_icon2', 
			[
				'label' => __( 'Icon', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::ICONS,
				'input_type' => 'icon',
				'show_label' => true,
				'options' => endless_addons_icons(),
				'condition' => [
                    'icon_type' => 'library'
                ]
			]
		);

		$repeater->add_control(
			'social_media_link',
			[
				'label' => __( 'Link', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::URL,
				'input_type' => 'url',
				'default' => [
					'url' => '#',
					'is_external' => true,
					'nofollow' => true
				]
			]
		);

		$repeater->add_control(
			'social_media_color',
			[
				'label' => __( 'Color', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::COLOR
			]
		);

		$this->add_control(
			'single_social_media',
			[
				'label' => __( 'Social Media List', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::REPEATER,
				'fields' => $repeater->get_controls(),
				'default' => [
					[
						'list_title' => __( 'Social Media #1', 'endless-addons' ),
						'list_content' => __( 'Social Media Content', 'endless-addons' ),
					],
				
				],
			]
		);

		$this->end_controls_section();

		$this->start_controls_section(
			'footer_contact_info',
			[
				'label' => __( 'Footer Contact Info', 'endless-addons' ),
				'tab' => \Elementor\Controls_Manager::TAB_CONTENT,
				'condition' => [
                    'select_footer_style' => array('style-01', 'style-02', 'style-03', 'style-06')
                ]
			]
		);

		$this->add_control(
			'contact_info_title',
			[
				'label' => __( 'Contact Info Title', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::TEXT,
				'input_type' => 'text',
				'placeholder' => __( 'Title', 'endless-addons' ),
				'default'  => __( 'Quick Contact', 'endless-addons' )
			]
		);

		$repeater = new \Elementor\Repeater();

		$repeater->add_control(
			'single_contact_title',
			[
				'label' => __( 'Contact Title', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::TEXT,
				'input_type' => 'text',
				'placeholder' => __( 'Title', 'endless-addons' ),
				'default'  => __( 'Contact', 'endless-addons' ),
                'description' => __('Used only Style 02, Style 03 & Style 06', 'endless-addons')
			]
		);

		$repeater->add_control(
			'icon_type',
			[
				'label' => __( 'Icon Type', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::SELECT,
				'input_type' => 'SELECT',
				'options' => [
					'general' => __( 'General', 'endless-addons' ),
					'library' => __( 'Library', 'endless-addons' ),
				],
				'default' => 'general',
				'description' => __('Used only Style 02, Style 03 & Style 06', 'endless-addons')
			]
		);

		$repeater->add_control(
			'single_contact_icon1', [
				'label' => __( 'Icon', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::ICON,
				'show_label' => true,
				'options' => endless_addons_icons(),
				'default' => 'bx bx-phone-call',
				'condition' => [
                    'icon_type' => 'general'
                ],
                'description' => __('Used only Style 02, Style 03 & Style 06', 'endless-addons')
			]
		);

		$repeater->add_control(
			'single_contact_icon2', [
				'label' => __( 'Icon', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::ICONS,
				'show_label' => true,
				'options' => endless_addons_icons(),
				'condition' => [
                    'icon_type' => 'library',
                ],
                'description' => __('Used only Style 02, Style 03 & Style 06', 'endless-addons')
			]
		);

		$repeater->add_control(
			'single_contact_text', [
				'label' => __( 'Text', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::TEXT,
				'input_type' => 'text',
				'default'  => __( 'A', 'endless-addons' ),
				'description' => __('Used only Style 01', 'endless-addons')
			]
		);

		$repeater->add_control(
			'single_contact_content', [
				'label' => __( 'Content', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::TEXTAREA,
				'input_type' => 'textarea',
				'placeholder' => __( 'Content', 'endless-addons' ),
				'default'  => __( '32,Walse Street, New York, USA', 'endless-addons' )
			]
		);

		$this->add_control(
			'single_contact_info',
			[
				'label' => __( 'Single Contact Info', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::REPEATER,
				'fields' => $repeater->get_controls(),
				'default' => [
					[
						'list_title' => __( 'Single Contact #1', 'endless-addons' ),
						'list_content' => __( 'Single Contact Content', 'endless-addons' ),
					],
				
				],
			]
		);

		$this->end_controls_section();

		$this->start_controls_section(
			'subscribe_form',
			[
				'label' => __( 'Footer Subscribe Form', 'endless-addons' ),
				'tab' => \Elementor\Controls_Manager::TAB_CONTENT,
				'condition' => [
                    'select_footer_style' => array('style-02', 'style-03')
                ]
			]
		);

		$this->add_control(
			'subscribe_form_title',
			[
				'label' => __( 'Subscribe Form Title', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::TEXT,
				'input_type' => 'text',
				'placeholder' => __( 'Title', 'endless-addons' ),
				'default'  => __( 'Subscribe Newsletter', 'endless-addons' )
			]
		);

		$this->add_control(
			'subscribe_form_desc',
			[
				'label' => __( 'Subscribe Form Description', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::TEXTAREA,
				'input_type' => 'textarea',
				'placeholder' => __( 'Description', 'endless-addons' ),
				'default'  => __( 'Lorem ipsum dolor sit amet, consetet ur sadipscing elitr, sed diam', 'endless-addons' ),
				'condition' => [
                    'select_footer_style' => 'style-03'
                ]
			]
		);

		$this->add_control(
			'subscribe_form_shortcode',
			[
				'label' => __( 'Subscribe Form Shortcode', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::TEXTAREA,
				'input_type' => 'text',
				'placeholder' => __( 'Shortcode', 'endless-addons' )
			]
		);

		$this->end_controls_section();

		$this->start_controls_section(
			'copyright_content',
			[
				'label' => __( 'Footer Copyright Text', 'endless-addons' ),
				'tab' => \Elementor\Controls_Manager::TAB_CONTENT
			]
		);

		$this->add_control(
			'copyright_text',
			[
				'label' => __( 'Copyright Text', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::WYSIWYG,
				'input_type' => 'WYSIWYG',
				'placeholder' => __( 'Description', 'endless-addons' ),
				'default' => __( 'Made By <a href="https://envytheme.com/" target="_blank">EnvyTheme</a>', 'endless-addons')
			]
		);

		$this->end_controls_section();

		$this->start_controls_section(
			'section_style',
			[
				'label' => __( 'Section Style', 'endless-addons' ),
				'tab' => \Elementor\Controls_Manager::TAB_STYLE
			]
		);

		$this->add_control(
			'section_title_color',
			[
				'label' => __( 'Section Title Color', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::COLOR,
				'selectors' => [
                    '{{WRAPPER}} .ea-section-footer-area .section-title h2' => 'color: {{VALUE}}'
                ]
			]
		);

		$this->add_group_control(
            \Elementor\Group_Control_Typography::get_type(),
            [
                'name' => 'section_title_typography',
                'label' => __( 'Section Title Typography', 'endless-addons' ),
                'scheme' => \Elementor\Core\Schemes\Typography::TYPOGRAPHY_1,
                'selector' => '{{WRAPPER}} .ea-section-footer-area .section-title h2'
            ]
        );

        $this->add_control(
			'section_desc_color',
			[
				'label' => __( 'Section Description Color', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::COLOR,
				'selectors' => [
                    '{{WRAPPER}} .ea-section-footer-area .section-title p' => 'color: {{VALUE}}'
                ]
			]
		);

        $this->add_group_control(
            \Elementor\Group_Control_Typography::get_type(),
            [
                'name' => 'section_desc_typography',
                'label' => __( 'Section Description Typography', 'endless-addons' ),
                'scheme' => \Elementor\Core\Schemes\Typography::TYPOGRAPHY_1,
                'selector' => '{{WRAPPER}} .ea-section-footer-area .section-title p'
            ]
        );

		$this->end_controls_section();

		$this->start_controls_section(
			'footer_style',
			[
				'label' => __( 'Footer Style', 'endless-addons' ),
				'tab' => \Elementor\Controls_Manager::TAB_STYLE
			]
		);

		$this->add_control(
			'footer_bg_color',
			[
				'label' => __( 'Footer Background Color', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::COLOR,
				'selectors' => [
                    '{{WRAPPER}} .ea-footer-bg-color' => 'background-color: {{VALUE}}'
                ]
			]
		);

		$this->end_controls_section();

		$this->start_controls_section(
			'_section_overlay_style',
			[
				'label' => __('Background Overlay', 'endless-addons'),
				'tab' => \Elementor\Controls_Manager::TAB_STYLE
			]
		);

		$this->start_controls_tabs('_tabs_overlay_style');

		$this->start_controls_tab(
			'_tab_overlay_normal',
			[
				'label' => __('Normal', 'endless-addons'),
			]
		);

		$this->add_group_control(
			\Elementor\Group_Control_Background::get_type(),
			[
				'name'     => 'hover_overlay_normal',
				'label' => __('Background', 'endless-addons'),
				'show_label' => true,
				'types' => ['classic', 'gradient'],
				'exclude' => [
					'classic' => 'image'
				],
				'selector' => '{{WRAPPER}} .ea-section-footer-area',
			]
		);

		$this->end_controls_tab();

		$this->start_controls_tab(
			'_tab_overlay_hover',
			[
				'label' => __('Hover', 'endless-addons'),
			]
		);


		$this->add_group_control(
			\Elementor\Group_Control_Background::get_type(),
			[
				'name'     => 'hover_overlay_hover',
				'label' => __('Background', 'endless-addons'),
				'show_label' => true,
				'types' => ['classic', 'gradient'],
				'exclude' => [
					'classic' => 'image'
				],
				'selector' => '{{WRAPPER}} .ea-section-footer-area:hover',
			]
		);

		$this->end_controls_tab();

		$this->end_controls_tabs();

		$this->end_controls_section();

	}

	/**
	 * Render Footer widget output on the frontend.
	 *
	 * Written in PHP and used to generate the final HTML.
	 *
	 * @since 1.0.5
	 * @access protected
	 */
	protected function render() {

		$settings = $this->get_settings_for_display();

		if( $settings['blog_category_select'] == 'no' ) :
    		$endless_addons_cat_type = $settings['blog_category_single'];
        elseif( $settings['blog_category_select'] == 'yes' ) :
            $endless_addons_cat_type = $settings['blog_category_multiple'];
        endif; 

        // Post Query
        if( $settings['blog_category_single'] != '' ) {
            $args = array(
                'post_type'     => 'post',
                'posts_per_page'=> $settings['ea_blog_count'],
                'order'         => $settings['ea_blog_order'],
                'tax_query'     => array(
                    array(
                        'taxonomy'      => 'category',
                        'field'         => 'slug',
                        'terms'         => $endless_addons_cat_type,
                        'hide_empty'    => false
                    )
                )
            );
        } 
        elseif( $settings['blog_category_multiple'] != '' ) {
            $args = array(
                'post_type'     => 'post',
                'posts_per_page'=> $settings['ea_blog_count'],
                'order'         => $settings['ea_blog_order'],
                'category_name' => $endless_addons_cat_type
            );
        } 
        else {
            $args = array(
                'post_type'         => 'post',
                'posts_per_page'    => $settings['ea_blog_count'],
                'order'             => $settings['ea_blog_order']
            );
        }

        $post_array = new \WP_Query( $args );

		if( $settings['show_footer'] == 'show' ) :

			if( $settings['select_footer_style'] == 'style-01' ) : ?>
				<!-- Start EA Footer Design One Area -->
		        <section class="ea-section-footer-area ea-footer-style-one pb-100">
		            <div class="container">
		                <div class="section-title">
		                    <h2><?php echo esc_html($settings['section_title']); ?></h2>
		                    <p><?php echo wp_kses_post($settings['section_desc']); ?></p>
		                </div>
		            </div>
		            <div class="ea-bg-color-2c36ff ea-footer-bg-color pt-100 pb-70">
		                <div class="container">
		                    <div class="row justify-content-center">
		                        <div class="col-lg-3 col-sm-6">
		                            <div class="ea-section-single-footer-widget">
		                                <h2><?php echo esc_html($settings['about_title']); ?></h2>
		                                <p><?php echo wp_kses_post($settings['about_desc']); ?></p>
		                                <ul class="ea-social">
		                                    <li>
			                                    <span><?php echo esc_html($settings['social_media_title']); ?></span>
			                                </li>
			                                <?php foreach ( $settings['single_social_media'] as $item ) :
			                            		$target = $item['social_media_link']['is_external'] ? ' target="_blank"' : '';
			                                    $nofollow = $item['social_media_link']['nofollow'] ? ' rel="nofollow"' : ''; ?>
			                            		<li class="ea-list-item">
			                                        <a href="<?php echo esc_url( $item['social_media_link']['url'] ); ?>" <?php echo wp_kses_post( $target ); ?> <?php echo wp_kses_post( $nofollow ); ?>>
			                                            <?php if( $item['icon_type'] == 'general' ) : ?>
						                            	    <i class="<?php echo wp_kses_post( $item['social_media_icon1'] ); ?>" style="color:<?php echo $item['social_media_color']; ?>"></i>
						                            	<?php else: 
						                            		endad_render_icon( $item, 'icon', 'social_media_icon2' ); 
						                            	endif; ?>
			                                        </a>
			                                    </li>
		                            	    <?php endforeach; ?>
		                                </ul>
		                            </div>
		                        </div>
		                        <div class="col-lg-3 col-sm-6">
		                            <div class="ea-section-single-footer-widget">
		                               <h3><?php echo esc_html($settings['footer_menu_title_one']); ?></h3>
		                                <?php $ea_footer_menu_one = ! empty($settings['footer_menu_one']) ? $settings['footer_menu_one'] : '';
		                                $footer_menu_arg_one = [
	                                        'menu'            => $ea_footer_menu_one,
	                                        'container'       => null,
	                                        'menu_class'      => 'ea-inport-link'
	                                    ];
		                                wp_nav_menu( $footer_menu_arg_one ); ?>
		                            </div>
		                        </div>
		                        <div class="col-lg-3 col-sm-6">
		                            <div class="ea-section-single-footer-widget">
		                               <h3><?php echo esc_html($settings['footer_menu_title_two']); ?></h3>
		                               <?php $ea_footer_menu_two = ! empty($settings['footer_menu_two']) ? $settings['footer_menu_two'] : '';
		                                $footer_menu_arg_two = [
	                                        'menu'            => $ea_footer_menu_two,
	                                        'container'       => null,
	                                        'menu_class'      => 'ea-inport-link'
	                                    ];
		                                wp_nav_menu( $footer_menu_arg_two ); ?>
		                            </div>
		                        </div>
		                        <div class="col-lg-3 col-sm-6">
		                            <div class="ea-section-single-footer-widget">
		                               <h3><?php echo esc_html($settings['contact_info_title']); ?></h3>
		                                <ul class="ea-address-link">
		                                    <?php foreach ( $settings['single_contact_info'] as $item ) : ?>
				                                <li>
				                                    <span><?php echo esc_html__($item['single_contact_text']); ?></span>
				                                    <?php echo wp_kses_post($item['single_contact_content']); ?>
				                                </li>
		                                    <?php endforeach; ?>
		                                </ul>
		                            </div>
		                        </div>
		                    </div>
		                </div>
		            </div>
		            <div class="ea-copy-right-area ea-copy-right-bg-color-2c36ff">
		                <div class="container">
		                    <p><?php echo wp_kses_post($settings['copyright_text']); ?></p>
		                </div>
		            </div>
		        </section>
		        <!-- End EA Footer One Area -->
		        <style>
	            	.ea-footer-style-one .ea-bg-color-2c36ff::before {
            		    background-image: url("<?php echo esc_url($settings['footer_bg_img']['url']); ?>");
            	    }
	            </style>
		    <?php elseif( $settings['select_footer_style'] == 'style-02' ) : ?>
		    	<!-- Start EA Footer Design Two Area -->
		        <section class="ea-section-footer-area ea-footer-style-two ea-bg-color-2c36ff ptb-100">
		            <div class="container">
		                <div class="section-title">
		                    <h2><?php echo esc_html($settings['section_title']); ?></h2>
		                    <p><?php echo wp_kses_post($settings['section_desc']); ?></p>
		                </div>
		            </div>
		            <div class="ea-footer-bg-img ea-footer-bg-color pt-100 pb-70">
		                <div class="container">
		                    <div class="row justify-content-center">
		                        <div class="col-lg-3 col-sm-6">
		                            <div class="ea-section-single-footer-widget ea-style-two">
		                                <h2><?php echo esc_html($settings['contact_info_title']); ?></h2>
		                                <ul class="ea-address-link">
		                                    <?php foreach ( $settings['single_contact_info'] as $item ) : ?>
				                                <li>
				                                	<p><?php echo esc_html($item['single_contact_title']); ?></p>
				                                	<span>
					                                	<?php if( $item['icon_type'] == 'general' ) : ?>
					                                	    <i class="<?php echo wp_kses_post( $item['single_contact_icon1'] ); ?>"></i>
					                                	<?php else: 
					                                		endad_render_icon( $item, 'icon', 'single_contact_icon2' ); 
					                                	endif; ?>
				                                    </span>
				                                    <?php echo wp_kses_post($item['single_contact_content']); ?>
				                                </li>
			                                <?php endforeach; ?>
		                                </ul>
		                            </div>
		                        </div>
		                        <div class="col-lg-3 col-sm-6">
		                            <div class="ea-section-single-footer-widget ea-style-two">
		                               <h3><?php echo esc_html($settings['footer_menu_title_one']); ?></h3>
		                                <?php $ea_footer_menu_one = ! empty($settings['footer_menu_one']) ? $settings['footer_menu_one'] : '';
		                                $footer_menu_arg_one = [
	                                        'menu'            => $ea_footer_menu_one,
	                                        'container'       => null,
	                                        'menu_class'      => 'ea-inport-link'
	                                    ];
		                                wp_nav_menu( $footer_menu_arg_one ); ?>
		                            </div>
		                        </div>
		                        <div class="col-lg-3 col-sm-6">
		                            <div class="ea-section-single-footer-widget ea-style-two">
		                               <h3><?php echo esc_html($settings['footer_menu_title_two']); ?></h3>
		                                <?php $ea_footer_menu_two = ! empty($settings['footer_menu_two']) ? $settings['footer_menu_two'] : '';
		                                $footer_menu_arg_two = [
	                                        'menu'            => $ea_footer_menu_two,
	                                        'container'       => null,
	                                        'menu_class'      => 'ea-inport-link'
	                                    ];
		                                wp_nav_menu( $footer_menu_arg_two ); ?>
		                            </div>
		                        </div>
		                        <div class="col-lg-3 col-sm-6">
		                            <div class="ea-section-single-footer-widget ea-style-two">
		                                <h3><?php echo esc_html($settings['subscribe_form_title']); ?></h3>
		                                <div class="ea-footer-newsletter-form">
		                                    <?php echo do_shortcode( $settings['subscribe_form_shortcode'] ); ?>
		                                </div>	
		                                <ul class="ea-social">
		                                    <li>
			                                    <span><?php echo esc_html($settings['social_media_title']); ?></span>
			                                </li>
			                                <?php foreach ( $settings['single_social_media'] as $item ) :
			                            		$target = $item['social_media_link']['is_external'] ? ' target="_blank"' : '';
			                                    $nofollow = $item['social_media_link']['nofollow'] ? ' rel="nofollow"' : ''; ?>
			                            		<li class="ea-list-item">
			                                        <a href="<?php echo esc_url( $item['social_media_link']['url'] ); ?>" <?php echo wp_kses_post( $target ); ?> <?php echo wp_kses_post( $nofollow ); ?>>
			                                            <?php if( $item['icon_type'] == 'general' ) : ?>
						                            	    <i class="<?php echo wp_kses_post( $item['social_media_icon1'] ); ?>" style="background-color:<?php echo $item['social_media_color']; ?>"></i>
						                            	<?php else: 
						                            		endad_render_icon( $item, 'icon', 'social_media_icon2' ); 
						                            	endif; ?>
			                                        </a>
			                                    </li>
		                            	    <?php endforeach; ?>
		                                </ul>
		                            </div>
		                        </div>
		                    </div>
		                </div>
		            </div>
		            <div class="ea-copy-right-area ea-copy-right-bg-color-030f2b">
		                <div class="container">
		                    <p><?php echo wp_kses_post($settings['copyright_text']); ?></p>
		                </div>
		            </div>
		            <?php if( ! $settings['footer_shape_img1']['url'] == '' ) : ?>
			            <div class="ea-footer-bg-shape-3">
			                <img src="<?php echo esc_url( $settings['footer_shape_img1']['url'] ); ?>" alt="Image">
			            </div>
		            <?php endif; ?>
		        </section>
		        <!-- End EA Footer Two Area -->
		        <style>
	            	.ea-footer-style-two .ea-footer-bg-img::before {
	            		    background-image: url("<?php echo esc_url($settings['footer_bg_img']['url']); ?>");
	            	    }
	            </style>
		    <?php elseif( $settings['select_footer_style'] == 'style-03' ) : ?>
		    	<!-- Start EA Footer Design Three Area -->
		        <section class="ea-section-footer-area ea-footer-style-three ptb-100">
		            <div class="container">
		                <div class="section-title">
		                    <h2><?php echo esc_html($settings['section_title']); ?></h2>
		                    <p><?php echo wp_kses_post($settings['section_desc']); ?></p>
		                </div>
		            </div>
		            <div class="ea-bg-color-030f2b ea-footer-bg-color pt-100 pb-70">
		                <div class="container">
		                    <div class="row justify-content-center">
		                        <div class="col extra-width">
		                            <div class="ea-section-single-footer-widget ea-style-three">
		                                <h3><?php echo esc_html($settings['subscribe_form_title']); ?></h3>
		                                <div class="ea-footer-newsletter-form">
		                                    <?php echo do_shortcode( $settings['subscribe_form_shortcode'] ); ?>
		                                </div>
		                                <p><?php echo wp_kses_post($settings['subscribe_form_desc']); ?></p>
		                            </div>
		                        </div>
		                        <div class="col">
		                            <div class="ea-section-single-footer-widget ea-style-three">
		                               <h3><?php echo esc_html($settings['footer_menu_title_one']); ?></h3>
		                                <?php $ea_footer_menu_one = ! empty($settings['footer_menu_one']) ? $settings['footer_menu_one'] : '';
		                                $footer_menu_arg_one = [
	                                        'menu'            => $ea_footer_menu_one,
	                                        'container'       => null,
	                                        'menu_class'      => 'ea-inport-link'
	                                    ];
		                                wp_nav_menu( $footer_menu_arg_one ); ?>
		                            </div>
		                        </div>
		                        <div class="col">
		                            <div class="ea-section-single-footer-widget ea-style-three">
		                               <h3><?php echo esc_html($settings['footer_menu_title_two']); ?></h3>
		                                <?php $ea_footer_menu_two = ! empty($settings['footer_menu_two']) ? $settings['footer_menu_two'] : '';
		                                $footer_menu_arg_two = [
	                                        'menu'            => $ea_footer_menu_two,
	                                        'container'       => null,
	                                        'menu_class'      => 'ea-inport-link'
	                                    ];
		                                wp_nav_menu( $footer_menu_arg_two ); ?>
		                            </div>
		                        </div>
		                        <div class="col">
		                            <div class="ea-section-single-footer-widget ea-style-three">
		                               <h3><?php echo esc_html($settings['footer_menu_title_three']); ?></h3>
		                                <?php $ea_footer_menu_three = ! empty($settings['footer_menu_three']) ? $settings['footer_menu_three'] : '';
		                                $footer_menu_arg_three = [
	                                        'menu'            => $ea_footer_menu_three,
	                                        'container'       => null,
	                                        'menu_class'      => 'ea-inport-link'
	                                    ];
		                                wp_nav_menu( $footer_menu_arg_three ); ?>
		                            </div>
		                        </div>
		                        <div class="col">
		                            <div class="ea-section-single-footer-widget ea-style-three">
		                                <h2><?php echo esc_html($settings['contact_info_title']); ?></h2>
		                                <ul class="ea-address-link">
		                                    <?php foreach ( $settings['single_contact_info'] as $item ) : ?>
				                                <li>
				                                	<p><?php echo esc_html($item['single_contact_title']); ?></p>
				                                	<span>
					                                	<?php if( $item['icon_type'] == 'general' ) : ?>
					                                	    <i class="<?php echo wp_kses_post( $item['single_contact_icon1'] ); ?>"></i>
					                                	<?php else: 
					                                		endad_render_icon( $item, 'icon', 'single_contact_icon2' ); 
					                                	endif; ?>
				                                    </span>
				                                    <?php echo wp_kses_post($item['single_contact_content']); ?>
				                                </li>
			                                <?php endforeach; ?>
		                                </ul>
		                            </div>
		                        </div>
		                    </div>
		                </div>
		            </div>
		            <div class="ea-copy-right-area ea-copy-right-bg-color-4a00d8">
		                <div class="container">
		                    <div class="row">
		                        <div class="col-lg-6">
		                            <p><?php echo wp_kses_post($settings['copyright_text']); ?></p>
		                        </div>
		                        <div class="col-lg-6">
		                            <ul class="ea-social">
		                                <li>
		                                    <span><?php echo esc_html($settings['social_media_title']); ?></span>
		                                </li>
		                                <?php foreach ( $settings['single_social_media'] as $item ) :
		                            		$target = $item['social_media_link']['is_external'] ? ' target="_blank"' : '';
		                                    $nofollow = $item['social_media_link']['nofollow'] ? ' rel="nofollow"' : ''; ?>
		                            		<li class="ea-list-item">
		                                        <a href="<?php echo esc_url( $item['social_media_link']['url'] ); ?>" <?php echo wp_kses_post( $target ); ?> <?php echo wp_kses_post( $nofollow ); ?>>
		                                            <?php if( $item['icon_type'] == 'general' ) : ?>
					                            	    <i class="<?php echo wp_kses_post( $item['social_media_icon1'] ); ?>" style="color:<?php echo $item['social_media_color']; ?>"></i>
					                            	<?php else: 
					                            		endad_render_icon( $item, 'icon', 'social_media_icon2' ); 
					                            	endif; ?>
		                                        </a>
		                                    </li>
	                            	    <?php endforeach; ?>
		                            </ul>
		                        </div>
		                    </div>
		                </div>
		            </div>
		        </section>
		        <!-- End EA Footer Three Area -->
		        <style>
	            	.ea-footer-style-three .ea-bg-color-030f2b::before {
	            		    background-image: url("<?php echo esc_url($settings['footer_bg_img']['url']); ?>");
	            	    }
	            </style>
		    <?php elseif( $settings['select_footer_style'] == 'style-04' ) : ?>
		    	<!-- Start EA Footer Design Four Area -->
		        <section class="ea-section-footer-area ea-footer-style-four ea-bg-color-2c36ff ptb-100">
		            <div class="container">
		                <div class="section-title">
		                    <h2><?php echo esc_html($settings['section_title']); ?></h2>
		                    <p><?php echo wp_kses_post($settings['section_desc']); ?></p>
		                </div>
		            </div>
		            <div class="ea-bg-color-ffffff ea-footer-bg-color pt-100 pb-70">
		                <div class="container">
		                    <div class="row justify-content-center">
		                        <div class="col-lg-3 col-sm-6">
		                            <div class="ea-section-single-footer-widget ea-style-four">
		                                <?php if( ! $settings['footer_logo_img']['url'] == '' ) : ?>
								            <img src="<?php echo esc_url( $settings['footer_logo_img']['url'] ); ?>" class="ea-logo-2" alt="Image">
							            <?php endif; ?>
		                                <h2><?php echo esc_html($settings['about_title']); ?></h2>
		                                <p><?php echo wp_kses_post($settings['about_desc']); ?></p>
		                                <ul class="ea-social">
		                                	<?php if(! $settings['social_media_title'] == '') : ?>
			                                    <li>
				                                    <span><?php echo esc_html($settings['social_media_title']); ?></span>
				                                </li>
			                                <?php endif; ?>
			                                <?php foreach ( $settings['single_social_media'] as $item ) :
			                            		$target = $item['social_media_link']['is_external'] ? ' target="_blank"' : '';
			                                    $nofollow = $item['social_media_link']['nofollow'] ? ' rel="nofollow"' : ''; ?>
			                            		<li class="ea-list-item">
			                                        <a href="<?php echo esc_url( $item['social_media_link']['url'] ); ?>" <?php echo wp_kses_post( $target ); ?> <?php echo wp_kses_post( $nofollow ); ?>>
			                                            <?php if( $item['icon_type'] == 'general' ) : ?>
						                            	    <i class="<?php echo wp_kses_post( $item['social_media_icon1'] ); ?>" style="background-color:<?php echo $item['social_media_color']; ?>"></i>
						                            	<?php else: 
						                            		endad_render_icon( $item, 'icon', 'social_media_icon2' ); 
						                            	endif; ?>
			                                        </a>
			                                    </li>
		                            	    <?php endforeach; ?>
		                                </ul>
		                            </div>
		                        </div>
		                        <div class="col-lg-3 col-sm-6">
		                            <div class="ea-section-single-footer-widget ea-style-four">
		                               <h3><?php echo esc_html($settings['footer_instagram_title']); ?></h3>
		                                <ul class="ea-instagram-link">
		                            	    <?php foreach ( $settings['single_footer_instagram'] as $item ) :
		                            	    	$target1 = $item['footer_instagram_img_link']['is_external'] ? ' target="_blank"' : '';
			                                    $nofollow1 = $item['footer_instagram_img_link']['nofollow'] ? ' rel="nofollow"' : ''; ?>
			                                    <?php if( ! $item['footer_instagram_img']['url'] == '' ) : ?>
				                                    <li>
				                                        <a href="<?php echo esc_url( $item['footer_instagram_img_link']['url'] ); ?>" <?php echo wp_kses_post( $target1 ); ?> <?php echo wp_kses_post( $nofollow1 ); ?>>
				                                            <img src="<?php echo esc_url( $item['footer_instagram_img']['url'] ); ?>" alt="Image">
				                                            <i class="bx bxl-instagram"></i>
				                                        </a>
				                                    </li>
			                                    <?php endif; ?>
		                                    <?php endforeach; ?>
		                                </ul>
		                            </div>
		                        </div>
		                        <div class="col-lg-3 col-sm-6">
		                            <div class="ea-section-single-footer-widget ea-style-four">
		                               <h3><?php echo esc_html($settings['footer_menu_title_one']); ?></h3>
		                                <?php $ea_footer_menu_one = ! empty($settings['footer_menu_one']) ? $settings['footer_menu_one'] : '';
		                                $footer_menu_arg_one = [
	                                        'menu'            => $ea_footer_menu_one,
	                                        'container'       => null,
	                                        'menu_class'      => 'ea-inport-link'
	                                    ];
		                                wp_nav_menu( $footer_menu_arg_one ); ?>
		                            </div>
		                        </div>
		                        <div class="col-lg-3 col-sm-6">
		                            <div class="ea-section-single-footer-widget ea-style-four">
		                               <h3><?php echo esc_html($settings['footer_blog_title']); ?></h3>
		                                <ul class="ea-address-link">
		                                	<?php while( $post_array->have_posts() ) : $post_array->the_post(); ?>
			                                    <li>
			                                        <a href="<?php the_permalink(); ?>">
			                                            <span>
			                                                <?php the_post_thumbnail(); ?>
			                                            </span>
			                                            <?php the_title(); ?> 
			                                        </a>
			                                    </li>
		                                    <?php endwhile; ?>
                                            <?php wp_reset_query(); ?>
		                                </ul>
		                            </div>
		                        </div>
		                    </div>
		                </div>
		                <?php if( ! $settings['footer_shape_img1']['url'] == '' ) : ?>
				            <div class="ea-left-shape">
				                <img src="<?php echo esc_url( $settings['footer_shape_img1']['url'] ); ?>" alt="Image">
				            </div>
			            <?php endif; ?>
			            <?php if( ! $settings['footer_shape_img2']['url'] == '' ) : ?>
				            <div class="ea-right-shape">
				                <img src="<?php echo esc_url( $settings['footer_shape_img2']['url'] ); ?>" alt="Image">
				            </div>
			            <?php endif; ?>
		            </div>
		            <div class="ea-copy-right-area ea-copy-right-bg-color-ffffff">
		                <div class="container">
		                    <p><?php echo wp_kses_post($settings['copyright_text']); ?></p>
		                </div>
		            </div>
		        </section>
		        <!-- End EA Footer Four Area -->
		    <?php elseif( $settings['select_footer_style'] == 'style-05' ) : ?>
		    	<!-- Start EA Footer Design Five Area -->
		        <section class="ea-section-footer-area ea-footer-style-five ea-bg-color-2c36ff mt-100 ptb-100">
		            <div class="container">
		                <div class="section-title">
		                    <h2><?php echo esc_html($settings['section_title']); ?></h2>
		                    <p><?php echo wp_kses_post($settings['section_desc']); ?></p>
		                </div>
		            </div>
		            <div class="ea-footer-bg-img ea-footer-bg-color ea-footer-bg-img-five pt-100 pb-70">
		                <div class="container">
		                    <div class="row justify-content-center align-items-center">
		                        <div class="col-lg-3 col-md-3">
		                            <div class="ea-section-single-footer-widget ea-style-five">
		                                <h3><?php echo esc_html($settings['footer_menu_title_one']); ?></h3>
		                                <?php $ea_footer_menu_one = ! empty($settings['footer_menu_one']) ? $settings['footer_menu_one'] : '';
		                                $footer_menu_arg_one = [
	                                        'menu'            => $ea_footer_menu_one,
	                                        'container'       => null,
	                                        'menu_class'      => 'ea-inport-link'
	                                    ];
		                                wp_nav_menu( $footer_menu_arg_one ); ?>
		                            </div>
		                        </div>
		                        <div class="col-lg-6 col-md-6">
		                            <div class="ea-section-single-footer-widget ea-brand-style ea-style-five">
		                            	<?php if( ! $settings['footer_logo_img']['url'] == '' ) : ?>
								            <img src="<?php echo esc_url( $settings['footer_logo_img']['url'] ); ?>" class="ea-logo-2" alt="Image">
							            <?php endif; ?>
		                                <ul class="ea-social">
		                                    <li>
			                                    <span><?php echo esc_html($settings['social_media_title']); ?></span>
			                                </li>
			                                <?php foreach ( $settings['single_social_media'] as $item ) :
			                            		$target = $item['social_media_link']['is_external'] ? ' target="_blank"' : '';
			                                    $nofollow = $item['social_media_link']['nofollow'] ? ' rel="nofollow"' : ''; ?>
			                            		<li class="ea-list-item">
			                                        <a href="<?php echo esc_url( $item['social_media_link']['url'] ); ?>" <?php echo wp_kses_post( $target ); ?> <?php echo wp_kses_post( $nofollow ); ?>>
			                                            <?php if( $item['icon_type'] == 'general' ) : ?>
						                            	    <i class="<?php echo wp_kses_post( $item['social_media_icon1'] ); ?>" style="color:<?php echo $item['social_media_color']; ?>"></i>
						                            	<?php else: 
						                            		endad_render_icon( $item, 'icon', 'social_media_icon2' ); 
						                            	endif; ?>
			                                        </a>
			                                    </li>
		                            	    <?php endforeach; ?>
		                                </ul>
		                            </div>
		                        </div>
		                        <div class="col-lg-3 col-md-3">
		                            <div class="ea-section-single-footer-widget ea-style-five">
		                                <h3><?php echo esc_html($settings['footer_menu_title_two']); ?></h3>
		                                <?php $ea_footer_menu_two = ! empty($settings['footer_menu_two']) ? $settings['footer_menu_two'] : '';
		                                $footer_menu_arg_two = [
	                                        'menu'            => $ea_footer_menu_two,
	                                        'container'       => null,
	                                        'menu_class'      => 'ea-inport-link float-right'
	                                    ];
		                                wp_nav_menu( $footer_menu_arg_two ); ?>
		                            </div>
		                        </div>
		                        <div class="col-lg-12">
		                            <p class="ea-copy-right"><?php echo wp_kses_post($settings['copyright_text']); ?></p>
		                        </div>
		                    </div>
		                </div>
		            </div>
		            <?php if( ! $settings['footer_shape_img1']['url'] == '' ) : ?>
			            <div class="ea-footer-bg-shape-3">
			                <img src="<?php echo esc_url( $settings['footer_shape_img1']['url'] ); ?>" alt="Image">
			            </div>
		            <?php endif; ?>
		        </section>
		        <!-- End EA Footer Five Area -->
		        <style>
	            	.ea-footer-style-five .ea-footer-bg-img::before {
	            		    background-image: url("<?php echo esc_url($settings['footer_bg_img']['url']); ?>");
	            	    }
	            </style>
		    <?php elseif( $settings['select_footer_style'] == 'style-06' ) : ?>
		    	<!-- Start EA Footer Design Six Area -->
		        <section class="ea-section-footer-area ea-footer-style-six ptb-100">
		            <div class="container">
		                <div class="section-title">
		                    <h2><?php echo esc_html($settings['section_title']); ?></h2>
		                    <p><?php echo wp_kses_post($settings['section_desc']); ?></p>
		                </div>
		            </div>
		            <div class="ea-footer-bg-img ea-footer-bg-color ea-footer-bg-img-six pt-100 pb-70">
		                <div class="container">
		                    <div class="row">
		                        <div class="col-lg-3 col-sm-6">
		                            <div class="ea-section-single-footer-widget ea-style-six">
		                                <h2><?php echo esc_html($settings['contact_info_title']); ?></h2>
		    
		                                <ul class="ea-address-link">
		                                    <?php foreach ( $settings['single_contact_info'] as $item ) : ?>
				                                <li>
				                                	<p><?php echo esc_html($item['single_contact_title']); ?></p>
				                                	<span>
					                                	<?php if( $item['icon_type'] == 'general' ) : ?>
					                                	    <i class="<?php echo wp_kses_post( $item['single_contact_icon1'] ); ?>"></i>
					                                	<?php else: 
					                                		endad_render_icon( $item, 'icon', 'single_contact_icon2' ); 
					                                	endif; ?>
				                                    </span>
				                                    <?php echo wp_kses_post($item['single_contact_content']); ?>
				                                </li>
			                                <?php endforeach; ?>
		                                </ul>
		                            </div>
		                        </div>
		                        <div class="col-lg-3 col-sm-6">
		                            <div class="ea-section-single-footer-widget ea-style-six">
		                                <h3><?php echo esc_html($settings['footer_menu_title_one']); ?></h3>
		                                <?php $ea_footer_menu_one = ! empty($settings['footer_menu_one']) ? $settings['footer_menu_one'] : '';
		                                $footer_menu_arg_one = [
	                                        'menu'            => $ea_footer_menu_one,
	                                        'container'       => null,
	                                        'menu_class'      => 'ea-inport-link'
	                                    ];
		                                wp_nav_menu( $footer_menu_arg_one ); ?>
		                            </div>
		                        </div>
		                    </div>
		                </div>
		            </div>
		            <div class="ea-copy-right-area ea-copy-right-bg-color-4a00d8">
		                <div class="container">
		                    <div class="row">
		                        <div class="col-lg-6">
		                            <p><?php echo wp_kses_post($settings['copyright_text']); ?></p>
		                        </div>
		                        <div class="col-lg-6">
		                            <ul class="ea-social">
		                                <li>
		                                    <span><?php echo esc_html($settings['social_media_title']); ?></span>
		                                </li>
		                                <?php foreach ( $settings['single_social_media'] as $item ) :
		                            		$target = $item['social_media_link']['is_external'] ? ' target="_blank"' : '';
		                                    $nofollow = $item['social_media_link']['nofollow'] ? ' rel="nofollow"' : ''; ?>
		                            		<li class="ea-list-item">
		                                        <a href="<?php echo esc_url( $item['social_media_link']['url'] ); ?>" <?php echo wp_kses_post( $target ); ?> <?php echo wp_kses_post( $nofollow ); ?>>
		                                            <?php if( $item['icon_type'] == 'general' ) : ?>
					                            	    <i class="<?php echo wp_kses_post( $item['social_media_icon1'] ); ?>" style="color:<?php echo $item['social_media_color']; ?>"></i>
					                            	<?php else: 
					                            		endad_render_icon( $item, 'icon', 'social_media_icon2' ); 
					                            	endif; ?>
		                                        </a>
		                                    </li>
	                            	    <?php endforeach; ?>
		                            </ul>
		                        </div>
		                    </div>
		                </div>
		            </div>
		            <?php if( ! $settings['footer_shape_img1']['url'] == '' ) : ?>
			            <div class="ea-footer-bg-shape-3">
			                <img src="<?php echo esc_url( $settings['footer_shape_img1']['url'] ); ?>" alt="Image">
			            </div>
		            <?php endif; ?>
		        </section>
		        <!-- End EA Footer Six Area -->
		        <style>
	            	.ea-footer-style-six .ea-footer-bg-img::before {
	            		    background-image: url("<?php echo esc_url($settings['footer_bg_img']['url']); ?>");
	            	    }
	            </style>
		    <?php elseif( $settings['select_footer_style'] == 'style-07' ) : ?>
		        <!-- Start EA Footer Design Seven Area -->
		        <section class="ea-section-footer-area ea-footer-style-seven bg-shape ea-footer-bg ptb-100">
		            <div class="container">
		                <div class="section-title white-title">
		                    <h2><?php echo esc_html($settings['section_title']); ?></h2>
		                    <p><?php echo wp_kses_post($settings['section_desc']); ?></p>
		                </div>
		            </div>
		            <div class="ea-footer-bg-img ea-footer-bg-color ea-footer-bg-color-111111 pt-100 pb-70">
		                <div class="container">
		                    <?php if( ! $settings['footer_logo_img']['url'] == '' ) : ?>
		                    	<div class="ea-footer-logo-wrap">
					                <img src="<?php echo esc_url( $settings['footer_logo_img']['url'] ); ?>" class="ea-logo-2" alt="Image">
					            </div>
				            <?php endif; ?>	
		                   <div class="ea-footer-imporet-logo-wrap">
		                        <h3><?php echo esc_html($settings['footer_menu_title_one']); ?></h3>
                                <?php $ea_footer_menu_one = ! empty($settings['footer_menu_one']) ? $settings['footer_menu_one'] : '';
                                $footer_menu_arg_one = [
                                    'menu'            => $ea_footer_menu_one,
                                    'container'       => null,
                                    'menu_class'      => 'ea-inport-link'
                                ];
                                wp_nav_menu( $footer_menu_arg_one ); ?>
		                        <ul class="ea-social">
		                            <li>
	                                    <span><?php echo esc_html($settings['social_media_title']); ?></span>
	                                </li>
	                                <?php foreach ( $settings['single_social_media'] as $item ) :
	                            		$target = $item['social_media_link']['is_external'] ? ' target="_blank"' : '';
	                                    $nofollow = $item['social_media_link']['nofollow'] ? ' rel="nofollow"' : ''; ?>
	                            		<li class="ea-list-item">
	                                        <a href="<?php echo esc_url( $item['social_media_link']['url'] ); ?>" <?php echo wp_kses_post( $target ); ?> <?php echo wp_kses_post( $nofollow ); ?>>
	                                            <?php if( $item['icon_type'] == 'general' ) : ?>
				                            	    <i class="<?php echo wp_kses_post( $item['social_media_icon1'] ); ?>" style="color:<?php echo $item['social_media_color']; ?>"></i>
				                            	<?php else: 
				                            		endad_render_icon( $item, 'icon', 'social_media_icon2' ); 
				                            	endif; ?>
	                                        </a>
	                                    </li>
                            	    <?php endforeach; ?>
		                        </ul>
		                   </div>
		                </div>
		            </div>
		            <div class="ea-copy-right-area ea-copy-right-bg-color-ff1717">
		                <div class="container">
		                    <p><?php echo wp_kses_post($settings['copyright_text']); ?></p>
		                </div>
		            </div>
		        </section>
		        <!-- End EA Footer Seven Area -->
		        <style>
	            	.ea-footer-style-seven .ea-footer-bg-img::before {
	            		    background-image: url("<?php echo esc_url($settings['footer_bg_img']['url']); ?>");
	            	    }
	            </style>

            <?php endif; 

        endif;

    }

}
