<?php
/**
 * Elementor InfoBox Widget.
 *
 * Elementor widget that inserts an embbedable content into the page, from any given URL.
 *
 * @since 1.0.5
 */

use \Elementor\Plugin;

class Elementor_InfoBox_Widget extends \Elementor\Widget_Base {

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

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

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

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

	/**
	 * Register InfoBox 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_infobox',
			[    
				'label' => __( 'Settings', 'endless-addons' ),
				'tab' => \Elementor\Controls_Manager::TAB_CONTENT
			]
		);

		$this->add_control(
			'show_infobox',
			[
				'label' => __( 'Show/Hide InfoBox 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(
			'infobox_style_select',
			[
				'label' => __( 'Select InfoBox 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' ),
					'style-08' => __( 'Style 08', 'endless-addons' )
				],
				'default' => 'style-01'
			]
		);

		$this->end_controls_section();

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

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

		$this->add_control(
			'infobox_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 ut labore et 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-info-box-area',
			]
		);

		$this->end_controls_section();

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

		$this->add_control(
			'infobox_item_column',
			[
				'label' => __( 'Select InfoBox Column', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::SELECT,
				'input_type' => 'SELECT',
				'options' => [
					'columns-2' => __( '2', 'endless-addons' ),
					'columns-3' => __( '3', 'endless-addons' ),
					'columns-4' => __( '4', 'endless-addons' )
				],
				'default' => 'columns-3',
				'condition' => [
                    'infobox_style_select' => array('style-01', 'style-02', 'style-03', 'style-04', 'style-05', 'style-07', 'style-08'),
                ]
			]
		);

		$this->add_control(
            'infobox_icon_v_alignment',
            [
                'label' => esc_html__('Icon/Image/Number Vertical Alignment', 'endless-addons'),
                'type' => \Elementor\Controls_Manager::CHOOSE,
                'label_block' => true,
                'options' => [
                    'top' => [
                        'title' => __('Top', 'endless-addons'),
                        'icon' => 'eicon-v-align-top',
                    ],
                    'bottom' => [
                        'title' => __('Bottom', 'endless-addons'),
                        'icon' => 'eicon-v-align-bottom',
                    ],
                ],
                'default' => 'top',
                'condition' => [
                    'infobox_style_select' => array('style-01', 'style-02', 'style-04', 'style-05', 'style-06', 'style-07')
                ]
            ]
        );

        $this->add_control(
            'infobox_icon_h_alignment',
            [
                'label' => esc_html__('Icon/Image/Number Horizontal Alignment', 'endless-addons'),
                'type' => \Elementor\Controls_Manager::CHOOSE,
                'label_block' => true,
                'options' => [
                    'left' => [
                        'title' => esc_html__('Left', 'endless-addons'),
                        'icon' => 'fa fa-align-left',
                    ],
                    'center' => [
                        'title' => esc_html__('Center', 'endless-addons'),
                        'icon' => 'fa fa-align-center',
                    ],
                    'right' => [
                        'title' => esc_html__('Right', 'endless-addons'),
                        'icon' => 'fa fa-align-right',
                    ],
                ],
                'condition' => [
                    'infobox_style_select' => array('style-01', 'style-02', 'style-04', 'style-05', 'style-07')
                ]
            ]
        );

        $this->add_control(
            'infobox_content_h_alignment',
            [
                'label' => esc_html__('Content Horizontal Alignment', 'endless-addons'),
                'type' => \Elementor\Controls_Manager::CHOOSE,
                'label_block' => true,
                'options' => [
                    'left' => [
                        'title' => esc_html__('Left', 'endless-addons'),
                        'icon' => 'fa fa-align-left',
                    ],
                    'center' => [
                        'title' => esc_html__('Center', 'endless-addons'),
                        'icon' => 'fa fa-align-center',
                    ],
                    'right' => [
                        'title' => esc_html__('Right', 'endless-addons'),
                        'icon' => 'fa fa-align-right',
                    ],
                ]
            ]
        );

        $this->add_control(
			'button_type',
			[
				'label' => __( 'Button Type', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::SELECT,
				'input_type' => 'SELECT',
				'options' => [
					'link' => __( 'Link', 'endless-addons' ),
					'button' => __( 'Button', 'endless-addons' ),
				],
				'default' => 'link'
			]
		);

		$repeater = new \Elementor\Repeater();

		$repeater->add_control(
            'single_infobox_img_or_icon',
            [
                'label' => esc_html__('Show Icon, Image or Number', 'endless-addons'),
                'type' => \Elementor\Controls_Manager::CHOOSE,
                'label_block' => true,
                'options' => [
                    'none' => [
                        'title' => esc_html__('None', 'endless-addons'),
                        'icon' => 'fa fa-ban',
                    ],
                    'icon' => [
                        'title' => esc_html__('Icon', 'endless-addons'),
                        'icon' => 'fa fa-info-circle',
                    ],
                    'img' => [
                        'title' => esc_html__('Image', 'endless-addons'),
                        'icon' => 'fa fa-picture-o',
                    ],
                    'number' => [
                        'title' => esc_html__('Number', 'endless-addons'),
                        'icon' => 'fa fa-sort-numeric-desc',
                    ],
                ],
                'default' => 'icon'
            ]
        );

		$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',
				'condition' => [
                    'single_infobox_img_or_icon' => 'icon'
                ]
			]
		);

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

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

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

		$repeater->add_control(
			'single_infobox_number', [
				'label' => __( 'Number', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::NUMBER,
                'show_label' => true,
                'default' => '1',
				'condition' => [
                    'single_infobox_img_or_icon' => 'number'
                ]
			]
		);

		$repeater->add_control(
			'single_infobox_shape', [
				'label' => __( 'Shape', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::MEDIA,
				'default' => [
					'url' => plugin_dir_url( dirname( __FILE__ ) ) . '../public/img/shape/shape6.png'
				],
				'show_label' => true
			]
		);

		$repeater->add_control(
			'single_infobox_title', [
				'label' => __( 'Title', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::TEXT,
				'input_type' => 'text',
				'placeholder' => __( 'Title', 'endless-addons' ),
				'default'  => __( 'Industry Expertise', 'endless-addons' )
			]
		);

		$repeater->add_control(
			'ea_title_tag',
			[
				'label' => __( 'Title Tag', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::SELECT,
				'input_type' => 'SELECT',
				'options' => [
					'h1' => __( 'h1', 'endless-addons' ),
					'h2' => __( 'h2', 'endless-addons' ),
					'h3' => __( 'h3', 'endless-addons' ),
					'h4' => __( 'h4', 'endless-addons' ),
					'h5' => __( 'h5', 'endless-addons' ),
					'h6' => __( 'h6', 'endless-addons' )
				],
				'default' => 'h3'
			]
		);

		$repeater->add_control(
            'ea_content_text_type',
            [
                'label' => __('Content Type', 'endless-addons'),
                'type' => \Elementor\Controls_Manager::SELECT,
                'options' => [
                    'content' => __('Content', 'endless-addons'),
                    'template' => __('Saved Templates', 'endless-addons'),
                ],
                'default' => 'content',
            ]
        );

		$repeater->add_control(
			'single_infobox_desc', [
				'label' => __( 'Description', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::WYSIWYG,
				'input_type' => 'WYSIWYG',
				'placeholder' => __( 'Description', 'endless-addons' ),
				'default'  => __( 'Lorem ipsum dolor sit amet, consecter adipiscing elit, sed do eiusmod.', 'endless-addons' ),
				'condition' => [
                    'ea_content_text_type' => 'content'
                ]
			]
		);

		$repeater->add_control(
            'ea_content_templates',
            [
                'label' => __('Choose Template', 'endless-addons'),
                'type' => \Elementor\Controls_Manager::SELECT,
                'options' => ea_get_elementor_templates(),
                'condition' => [
                    'ea_content_text_type' => 'template',
                ],
            ]
        );

        $repeater->add_control(
			'button_show_hide',
			[
				'label' => __( 'Button Show/Hide', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::SELECT,
				'input_type' => 'SELECT',
				'options' => [
					'show' => __( 'Show', 'endless-addons' ),
					'hide' => __( 'Hide', 'endless-addons' ),
				],
				'default' => 'show'
			]
		);

		$repeater->add_control(
			'btn_icon', 
			[
				'label' => __( 'Button Icon', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::ICONS,
				'input_type' => 'icon',
				'show_label' => true
			]
		);

		$repeater->add_control(
			'btn_icon_position',
			[
				'label' => __( 'Button Icon Position', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::SELECT,
				'input_type' => 'SELECT',
				'options' => [
					'before' => __( 'Before Text', 'endless-addons' ),
					'after' => __( 'After Text', 'endless-addons' )
				],
				'default' => 'before'
			]
		);

		$repeater->add_control(
			'single_infobox_btn_text', [
				'label' => __( 'Button Text', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::TEXT,
				'input_type' => 'text',
				'placeholder' => __( 'Button Text', 'endless-addons' ),
				'default'  => __( 'Learn More', 'endless-addons' )
			]
		);

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

		$this->add_control(
			'single_infobox',
			[
				'label' => __( 'Single InfoBox', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::REPEATER,
				'fields' => $repeater->get_controls(),
				'default' => [
					[
						'list_title' => __( 'Single InfoBox #1', 'endless-addons' ),
						'list_content' => __( 'Single InfoBox Content', '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-info-box-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-info-box-area .section-title h2'
            ]
        );

        $this->add_control(
			'section_desc_color',
			[
				'label' => __( 'Section Description Color', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::COLOR,
				'selectors' => [
                    '{{WRAPPER}} .ea-info-box-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-info-box-area .section-title p'
            ]
        );

		$this->end_controls_section();

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

		$this->add_control(
			'infobox_box_color',
			[
				'label' => __( 'InfoBox Box Color', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::COLOR,
				'input_type' => 'color',
				'selectors' => [
                    '{{WRAPPER}} .ea-info-box-area .ea-single-info-box' => 'background-color: {{VALUE}}'
                ]
			]
		);

		$this->add_control(
			'infobox_box_hover_color',
			[
				'label' => __( 'InfoBox Box Hover Color', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::COLOR,
				'input_type' => 'color',
				'selectors' => [
                    '{{WRAPPER}} .ea-info-box-area .ea-single-info-box:hover, .ea-single-info-box.style-four::before, .ea-single-info-box.style-eight::before' => 'background-color: {{VALUE}}'
                ]
			]
		);

		$this->add_control(
			'infobox_cart_height',
			[
				'label' => __( 'Infobox Box Height', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::SLIDER,
				'range' => [
					'px' => [
						'min' => 50,
						'max' => 800
					]
				],
				'selectors' => [
					'{{WRAPPER}} .ea-info-box-area .ea-single-info-box' => 'height: {{SIZE}}{{UNIT}}',
				]
			]
		);

		$this->add_control(
			'infobox_cart_width',
			[
				'label' => __( 'Infobox Box Width', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::SLIDER,
				'range' => [
					'px' => [
						'min' => 50,
						'max' => 500
					]
				],
				'selectors' => [
					'{{WRAPPER}} .ea-info-box-area .ea-single-info-box' => 'width: {{SIZE}}{{UNIT}}',
				]
			]
		);

		$this->add_control(
			'infobox_title_color',
			[
				'label' => __( 'InfoBox Title Color', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::COLOR,
				'input_type' => 'color',
				'selectors' => [
                    '{{WRAPPER}} .ea-single-info-box .ea-title' => 'color: {{VALUE}}'
                ]
			]
		);

        $this->add_group_control(
            \Elementor\Group_Control_Typography::get_type(),
            [
                'name' => 'infobox_title_typography',
                'label' => __( 'Infobox Title Typography', 'endless-addons' ),
                'scheme' => \Elementor\Core\Schemes\Typography::TYPOGRAPHY_1,
                'selector' => '{{WRAPPER}} .ea-single-info-box .ea-title'
            ]
        );

        $this->add_control(
			'infobox_desc_color',
			[
				'label' => __( 'InfoBox Description Color', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::COLOR,
				'input_type' => 'color',
				'selectors' => [
                    '{{WRAPPER}} .ea-single-info-box p' => 'color: {{VALUE}}'
                ]
			]
		);

        $this->add_group_control(
            \Elementor\Group_Control_Typography::get_type(),
            [
                'name' => 'infobox_desc_typography',
                'label' => __( 'Infobox Description Typography', 'endless-addons' ),
                'scheme' => \Elementor\Core\Schemes\Typography::TYPOGRAPHY_1,
                'selector' => '{{WRAPPER}} .ea-single-info-box p'
            ]
        );

		$this->end_controls_section();

		$this->start_controls_section(
			'infobox_icon_img_number_style',
			[
				'label' => __( 'Icon/Image/Number Style', 'endless-addons' ),
				'tab' => \Elementor\Controls_Manager::TAB_STYLE
			]
		);

		$this->add_control(
			'infobox_icon_area_height',
			[
				'label' => __( 'Icon/Image/Number Area Height', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::SLIDER,
				'range' => [
					'px' => [
						'min' => 10,
						'max' => 500
					]
				],
				'selectors' => [
					'{{WRAPPER}} .ea-single-info-box .icon' => 'height: {{SIZE}}{{UNIT}}',
				],
				'condition' => [
                    'infobox_style_select' => array('style-01', 'style-02', 'style-03', 'style-04', 'style-05', 'style-07')
                ]
			]
		);

		$this->add_control(
			'infobox_icon_area_width',
			[
				'label' => __( 'Icon/Image/Number Area Width', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::SLIDER,
				'range' => [
					'px' => [
						'min' => 10,
						'max' => 500
					]
				],
				'selectors' => [
					'{{WRAPPER}} .ea-single-info-box .icon' => 'width: {{SIZE}}{{UNIT}}',
				],
				'condition' => [
                    'infobox_style_select' => array('style-01', 'style-02', 'style-03', 'style-04', 'style-05', 'style-07')
                ]
			]
		);

		$this->add_control(
			'infobox_icon_area_bg_color',
			[
				'label' => __( 'Area Background Color', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::COLOR,
				'input_type' => 'color',
				'selectors' => [
                    '{{WRAPPER}} .ea-single-info-box .icon' => 'background-color: {{VALUE}}'
                ],
                'condition' => [
                    'infobox_style_select' => array('style-01', 'style-02', 'style-03', 'style-04', 'style-05', 'style-07')
                ]
			]
		);

		$this->add_group_control(
            \Elementor\Group_Control_Border::get_type(),
            [
                'name'     => 'infobox_area_border',
                'selector' => '{{WRAPPER}} .ea-single-info-box .icon',
                'condition' => [
                    'infobox_style_select' => array('style-01', 'style-02', 'style-03', 'style-04', 'style-05', 'style-07', 'style-08')
                ]
            ]
        );

		$this->add_control(
            'infobox_icon_area_border_radius',
            [
                'label' => __( 'Border Radius', 'endless-addons' ),
                'type' => \Elementor\Controls_Manager::DIMENSIONS,
                'size_units' => [ 'px', '%' ],
                'separator' => 'after',
                'selectors' => [
                    '{{WRAPPER}} .ea-single-info-box .icon' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
                ],
                'condition' => [
                    'infobox_style_select' => array('style-01', 'style-02', 'style-03', 'style-04', 'style-05', 'style-07')
                ]
            ]
        );

		$this->add_control(
			'infobox_icon_color',
			[
				'label' => __( 'Icon/Number Color', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::COLOR,
				'input_type' => 'color',
				'selectors' => [
                    '{{WRAPPER}} .ea-single-info-box .icon i' => 'color: {{VALUE}}'
                ]
			]
		);

		$this->add_control(
			'infobox_icon_size',
			[
				'label' => __( 'Icon/Image/Number Size', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::SLIDER,
                'range' => [
                    'px' => [
                        'min' => 20,
                        'max' => 200,
                        'step' => 1,
                    ],
                ],
                'selectors' => [
                    '{{WRAPPER}} .ea-single-info-box .icon i' => 'font-size: {{SIZE}}px;',
                    '{{WRAPPER}} .ea-single-info-box .icon img' => 'height: {{SIZE}}px;',
                    '{{WRAPPER}} .ea-single-info-box .icon img' => 'width: {{SIZE}}px;',
                ]
			]
		);

        $this->add_control(
            'infobox_icon_margin',
            [
                'label'         => esc_html__( 'Icon/Image/Number Margin', 'endless-addons' ),
                'type'          => \Elementor\Controls_Manager::DIMENSIONS,
                'size_units'    => [ 'px', '%', 'em' ],
                'selectors'     => [
                    '{{WRAPPER}} .ea-single-info-box .icon' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
                ],
            ]
        );

		$this->end_controls_section();

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

		$this->add_group_control(
            \Elementor\Group_Control_Typography::get_type(),
            [
                'name' => 'infobox_link_typography',
                'label' => __( 'Link/Button Typography', 'endless-addons' ),
                'scheme' => \Elementor\Core\Schemes\Typography::TYPOGRAPHY_1,
                'selector' => '{{WRAPPER}} .ea-single-info-box .link-btn'
            ]
        );

		$this->add_control(
			'infobox_link_color',
			[
				'label' => __( 'Link/Button Color', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::COLOR,
				'input_type' => 'color',
				'selectors' => [
                    '{{WRAPPER}} .ea-single-info-box .link-btn' => 'color: {{VALUE}}'
                ]
			]
		);

		$this->add_control(
			'infobox_link_hover_color',
			[
				'label' => __( 'Link/Button Hover Color', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::COLOR,
				'input_type' => 'color',
				'selectors' => [
                    '{{WRAPPER}} .ea-single-info-box .link-btn:hover' => 'color: {{VALUE}}'
                ]
			]
		);

		$this->add_control(
			'infobox_link_bg_color',
			[
				'label' => __( 'Button Background Color', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::COLOR,
				'input_type' => 'color',
				'selectors' => [
                    '{{WRAPPER}} .ea-single-info-box .infobox-btn .link-btn' => 'background-color: {{VALUE}}'
                ],
                'condition' => [
                    'button_type' => 'button'
                ]
			]
		);

		$this->add_control(
			'infobox_link_bg_hover_color',
			[
				'label' => __( 'Button Background Hover Color', 'endless-addons' ),
				'type' => \Elementor\Controls_Manager::COLOR,
				'input_type' => 'color',
				'selectors' => [
                    '{{WRAPPER}} .ea-single-info-box .infobox-btn .link-btn:hover' => 'background-color: {{VALUE}}'
                ],
                'condition' => [
                    'button_type' => 'button'
                ]
			]
		);

		$this->add_control(
            'btn_icon_spacing',
            [
                'label'     => esc_html__('Link/Button Icon Spacing', 'endless-addons'),
                'type'      => \Elementor\Controls_Manager::SLIDER,
                'range'     => [
                    'px' => [
                        'max' => 60,
                    ],
                ],
                'selectors' => [
                    '{{WRAPPER}} .ea-single-info-box .link-btn .icon-before' => 'margin-right: {{SIZE}}px;',
                    '{{WRAPPER}} .ea-single-info-box .link-btn .icon-after'  => 'margin-left: {{SIZE}}px;'
                ]
            ]
        );

		$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-info-box-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-info-box-area:hover',
			]
		);

		$this->end_controls_tab();

		$this->end_controls_tabs();

		$this->end_controls_section();

	}

	/**
	 * Render InfoBox 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['infobox_icon_h_alignment'] == 'left' ) : 
		    $this->add_render_attribute('infobox_icon_align', 'class', 'infobox-align is-icon-left');
		elseif( $settings['infobox_icon_h_alignment'] == 'center' ) :
            $this->add_render_attribute('infobox_icon_align', 'class', 'infobox-align is-icon-center');
		elseif( $settings['infobox_icon_h_alignment'] == 'right' ) :
            $this->add_render_attribute('infobox_icon_align', 'class', 'infobox-align is-icon-right');
        endif; 

        if( $settings['infobox_content_h_alignment'] == 'left' ) : 
		    $this->add_render_attribute('infobox_content_align', 'class', 'infobox-align is-content-left');
		elseif( $settings['infobox_content_h_alignment'] == 'center' ) :
            $this->add_render_attribute('infobox_content_align', 'class', 'infobox-align is-content-center');
		elseif( $settings['infobox_content_h_alignment'] == 'right' ) :
            $this->add_render_attribute('infobox_content_align', 'class', 'infobox-align is-content-right');
        endif;

        if( $settings['button_type'] == 'link' ) : 
            $this->add_render_attribute('infobox_btn_type', 'class', 'infobox-link');
        elseif( $settings['button_type'] == 'button' ) :
            $this->add_render_attribute('infobox_btn_type', 'class', 'infobox-btn');
        endif; ?>

        <!-- InfoBox Column Style -->
	    <?php if( $settings['infobox_item_column'] == 'columns-2' ) :
			$infobox_column = 'col-lg-6 col-md-6 col-sm-6';
		elseif( $settings['infobox_item_column'] == 'columns-3' ) :
			$infobox_column = 'col-lg-4 col-md-6 col-sm-6';
		elseif( $settings['infobox_item_column'] == 'columns-4' ) :
			$infobox_column = 'col-lg-3 col-md-6 col-sm-6';
		endif; ?>

        <!-- Start InfoBox Area -->
        <?php if( $settings['show_infobox'] == 'show' ) :

	        if( $settings['infobox_style_select'] == 'style-01' ) : ?>
		        <div class="ea-info-box-area pb-70">
		            <div class="container">
		                <div class="section-title">
		                    <h2><?php echo esc_html__($settings['infobox_title']); ?></h2>
		                    <p><?php echo wp_kses_post($settings['infobox_desc']); ?></p>
		                </div>                          
		                <div class="row justify-content-center">
		                	<?php foreach ( $settings['single_infobox'] as $item ) :
		                		$target = $item['single_infobox_btn_link']['is_external'] ? ' target="_blank"' : '';
	                            $nofollow = $item['single_infobox_btn_link']['nofollow'] ? ' rel="nofollow"' : ''; ?>
			                	<div class="infobox-col <?php echo esc_attr( $infobox_column ); ?>">
			                		<div class="ea-single-info-box style-one">
			                			<?php if( $settings['infobox_icon_v_alignment'] == 'top' ) : ?>
			                			<div <?php echo $this->get_render_attribute_string('infobox_icon_align'); ?>>
			                				<?php if( $item['single_infobox_img_or_icon'] == 'icon' ) : 
					                			if(! $item['single_infobox_icon1'] == '' || ! $item['single_infobox_icon2'] == '') : ?>
						                            <div class="icon">
						                                <?php if( $item['icon_type'] == 'general' ) : ?>
					                                	    <i class="<?php echo wp_kses_post( $item['single_infobox_icon1'] ); ?>"></i>
					                                	<?php else: 
					                                		endad_render_icon( $item, 'icon', 'single_infobox_icon2' ); 
					                                	endif; ?>
						                            </div>
					                            <?php endif;
					                        elseif( $item['single_infobox_img_or_icon'] == 'img' ) :
					                        	if(! $item['single_infobox_img']['url'] == '' ) : ?>
					                        		<div class="icon">
					                        			<img src="<?php echo esc_url( $item['single_infobox_img']['url'] ); ?>" alt="Image">
					                        		</div>
					                        	<?php endif;
					                        elseif( $item['single_infobox_img_or_icon'] == 'number' ) : ?>
					                        		<div class="icon">
					                        			<i><?php echo esc_html($item['single_infobox_number']); ?></i>
					                        		</div>
					                        <?php endif; ?>	
				                        </div>
				                        <?php endif; ?>
			                            <div <?php echo $this->get_render_attribute_string('infobox_content_align'); ?>>
				                            <<?php echo esc_attr($item['ea_title_tag']); ?> class="ea-title"><?php echo esc_html($item['single_infobox_title']); ?></<?php echo esc_attr($item['ea_title_tag']); ?>>
				                            <?php if($item['ea_content_text_type'] == 'content') : ?>
					                                <p><?php echo wp_kses_post($item['single_infobox_desc']); ?></p>
				                            <?php elseif($item['ea_content_text_type'] == 'template') : ?>
				                            	<p>
				                            		<?php if (!empty($item['ea_content_templates'])) {
										                echo Plugin::$instance->frontend->get_builder_content($item['ea_content_templates'], true);
										            } ?>
				                            	</p>
				                            <?php endif; ?>
				                            <?php if( ! $item['single_infobox_btn_text'] == '' && $item['button_show_hide'] == 'show' ) : ?>
				                            	<div <?php echo $this->get_render_attribute_string('infobox_btn_type'); ?>>
						                            <a href="<?php echo esc_url($item['single_infobox_btn_link']['url']); ?>" <?php echo wp_kses_post( $target ); ?> <?php echo wp_kses_post( $nofollow ); ?> class="link-btn">
						                            	<?php if( $item['btn_icon_position'] == 'before' ) : ?>
															<span class="icon-before">
																<?php endad_render_icon( $item, 'icon', 'btn_icon' ); ?>
															</span>
														<?php endif; ?>
						                            	<?php echo esc_html__($item['single_infobox_btn_text']); ?>	
						                            	<?php if( $item['btn_icon_position'] == 'after' ) : ?>
															<span class="icon-after">
																<?php endad_render_icon( $item, 'icon', 'btn_icon' ); ?>
															</span>
														<?php endif; ?>
						                            </a>
						                        </div>
				                            <?php endif; ?>
				                        </div>
				                        <?php if( $settings['infobox_icon_v_alignment'] == 'bottom' ) : ?>
				                        <br/>	
			                			<div <?php echo $this->get_render_attribute_string('infobox_icon_align'); ?>>
			                				<?php if( $item['single_infobox_img_or_icon'] == 'icon' ) : 
					                			if(! $item['single_infobox_icon1'] == '' || ! $item['single_infobox_icon2'] == '') : ?>
						                            <div class="icon">
						                                <?php if( $item['icon_type'] == 'general' ) : ?>
					                                	    <i class="<?php echo wp_kses_post( $item['single_infobox_icon1'] ); ?>"></i>
					                                	<?php else: 
					                                		endad_render_icon( $item, 'icon', 'single_infobox_icon2' ); 
					                                	endif; ?>
						                            </div>
					                            <?php endif;
					                        elseif( $item['single_infobox_img_or_icon'] == 'img' ) :
					                        	if(! $item['single_infobox_img']['url'] == '' ) : ?>
					                        		<div class="icon">
					                        			<img src="<?php echo esc_url( $item['single_infobox_img']['url'] ); ?>" alt="Image">
					                        		</div>
					                        	<?php endif;
					                        elseif( $item['single_infobox_img_or_icon'] == 'number' ) : ?>
				                        		<div class="icon">
				                        			<i><?php echo esc_html($item['single_infobox_number']); ?></i>
				                        		</div>
					                        <?php endif; ?>	
				                        </div>
				                        <?php endif; ?>
			                        </div>
			                	</div>
		                    <?php endforeach; ?>
		                </div>
		            </div>
		        </div>
		    <?php elseif( $settings['infobox_style_select'] == 'style-02' ) : ?>
		    	<div class="ea-info-box-area pt-100 pb-70 bg-f7f7ff">
		            <div class="container">
		                <div class="section-title">
		                    <h2><?php echo esc_html__($settings['infobox_title']); ?></h2>
		                    <p><?php echo wp_kses_post($settings['infobox_desc']); ?></p>
		                </div>
		                <div class="row justify-content-center">
		                    <?php foreach ( $settings['single_infobox'] as $item ) :
		                    	$target = $item['single_infobox_btn_link']['is_external'] ? ' target="_blank"' : '';
	                            $nofollow = $item['single_infobox_btn_link']['nofollow'] ? ' rel="nofollow"' : ''; ?>
			                	<div class="infobox-col <?php echo esc_attr( $infobox_column ); ?>">
			                		<div class="ea-single-info-box style-two">
			                            <?php if( $settings['infobox_icon_v_alignment'] == 'top' ) : ?>
			                			<div <?php echo $this->get_render_attribute_string('infobox_icon_align'); ?>>
			                				<?php if( $item['single_infobox_img_or_icon'] == 'icon' ) : 
					                			if(! $item['single_infobox_icon1'] == '' || ! $item['single_infobox_icon2'] == '') : ?>
						                            <div class="icon">
						                                <?php if( $item['icon_type'] == 'general' ) : ?>
					                                	    <i class="<?php echo wp_kses_post( $item['single_infobox_icon1'] ); ?>"></i>
					                                	<?php else: 
					                                		endad_render_icon( $item, 'icon', 'single_infobox_icon2' ); 
					                                	endif; ?>
						                            </div>
					                            <?php endif;
					                        elseif( $item['single_infobox_img_or_icon'] == 'img' ) :
					                        	if(! $item['single_infobox_img']['url'] == '' ) : ?>
					                        		<div class="icon">
					                        			<img src="<?php echo esc_url( $item['single_infobox_img']['url'] ); ?>" alt="Image">
					                        		</div>
					                        	<?php endif;
					                        elseif( $item['single_infobox_img_or_icon'] == 'number' ) : ?>
				                        		<div class="icon">
				                        			<i><?php echo esc_html($item['single_infobox_number']); ?></i>
				                        		</div>
					                        <?php endif; ?>	
				                        </div>
				                        <?php endif; ?>
			                            <div <?php echo $this->get_render_attribute_string('infobox_content_align'); ?>>
				                            <<?php echo esc_attr($item['ea_title_tag']); ?> class="ea-title"><?php echo esc_html($item['single_infobox_title']); ?></<?php echo esc_attr($item['ea_title_tag']); ?>>
				                            <?php if($item['ea_content_text_type'] == 'content') : ?>
					                                <p><?php echo wp_kses_post($item['single_infobox_desc']); ?></p>
				                            <?php elseif($item['ea_content_text_type'] == 'template') : ?>
				                            	<p>
				                            		<?php if (!empty($item['ea_content_templates'])) {
										                echo Plugin::$instance->frontend->get_builder_content($item['ea_content_templates'], true);
										            } ?>
				                            	</p>
				                            <?php endif; ?>
				                            <?php if( ! $item['single_infobox_btn_text'] == '' && $item['button_show_hide'] == 'show' ) : ?>
				                            	<div <?php echo $this->get_render_attribute_string('infobox_btn_type'); ?>>
						                            <a href="<?php echo esc_url($item['single_infobox_btn_link']['url']); ?>" <?php echo wp_kses_post( $target ); ?> <?php echo wp_kses_post( $nofollow ); ?> class="link-btn">
						                            	<?php if( $item['btn_icon_position'] == 'before' ) : ?>
															<span class="icon-before">
																<?php endad_render_icon( $item, 'icon', 'btn_icon' ); ?>
															</span>
														<?php endif; ?>
						                            	<?php echo esc_html__($item['single_infobox_btn_text']); ?>	
						                            	<?php if( $item['btn_icon_position'] == 'after' ) : ?>
															<span class="icon-after">
																<?php endad_render_icon( $item, 'icon', 'btn_icon' ); ?>
															</span>
														<?php endif; ?>
						                            </a>
						                        </div>
				                            <?php endif; ?>
				                        </div>
				                        <?php if( $settings['infobox_icon_v_alignment'] == 'bottom' ) : ?>
				                        <br/> 	
			                			<div <?php echo $this->get_render_attribute_string('infobox_icon_align'); ?>>
			                				<?php if( $item['single_infobox_img_or_icon'] == 'icon' ) : 
					                			if(! $item['single_infobox_icon1'] == '' || ! $item['single_infobox_icon2'] == '') : ?>
						                            <div class="icon">
						                                <?php if( $item['icon_type'] == 'general' ) : ?>
					                                	    <i class="<?php echo wp_kses_post( $item['single_infobox_icon1'] ); ?>"></i>
					                                	<?php else: 
					                                		endad_render_icon( $item, 'icon', 'single_infobox_icon2' ); 
					                                	endif; ?>
						                            </div>
					                            <?php endif;
					                        elseif( $item['single_infobox_img_or_icon'] == 'img' ) :
					                        	if(! $item['single_infobox_img']['url'] == '' ) : ?>
					                        		<div class="icon">
					                        			<img src="<?php echo esc_url( $item['single_infobox_img']['url'] ); ?>" alt="Image">
					                        		</div>
					                        	<?php endif;
					                        elseif( $item['single_infobox_img_or_icon'] == 'number' ) : ?>
				                        		<div class="icon">
				                        			<i><?php echo esc_html($item['single_infobox_number']); ?></i>
				                        		</div>
					                        <?php endif; ?>	
				                        </div>
				                        <?php endif; ?>
			                        </div>
			                	</div>
		                    <?php endforeach; ?>
		                </div>
		            </div>
		        </div>
		    <?php elseif( $settings['infobox_style_select'] == 'style-03' ) : ?>
		    	<div class="ea-info-box-area pt-100 pb-60">
		            <div class="container">
		                <div class="section-title">
		                    <h2><?php echo esc_html__($settings['infobox_title']); ?></h2>
		                    <p><?php echo wp_kses_post($settings['infobox_desc']); ?></p>
		                </div>
		                <div class="row justify-content-center">
		                    <?php foreach ( $settings['single_infobox'] as $item ) : 
		                    	$target = $item['single_infobox_btn_link']['is_external'] ? ' target="_blank"' : '';
	                            $nofollow = $item['single_infobox_btn_link']['nofollow'] ? ' rel="nofollow"' : ''; ?>
			                	<div class="infobox-col <?php echo esc_attr( $infobox_column ); ?>">
			                		<div class="ea-single-info-box style-three">
			                			<?php if( $item['single_infobox_img_or_icon'] == 'icon' ) : 
				                			if(! $item['single_infobox_icon1'] == '' || ! $item['single_infobox_icon2'] == '') : ?>
					                            <div class="icon">
					                                <?php if( $item['icon_type'] == 'general' ) : ?>
				                                	    <i class="<?php echo wp_kses_post( $item['single_infobox_icon1'] ); ?>"></i>
				                                	<?php else: 
				                                		endad_render_icon( $item, 'icon', 'single_infobox_icon2' ); 
				                                	endif; ?>
					                            </div>
				                            <?php endif;
				                        elseif( $item['single_infobox_img_or_icon'] == 'img' ) :
				                        	if(! $item['single_infobox_img']['url'] == '' ) : ?>
				                        		<div class="icon">
				                        			<img src="<?php echo esc_url( $item['single_infobox_img']['url'] ); ?>" alt="Image">
				                        		</div>
				                        	<?php endif;
				                        elseif( $item['single_infobox_img_or_icon'] == 'number' ) : ?>
			                        		<div class="icon">
			                        			<i><?php echo esc_html($item['single_infobox_number']); ?></i>
			                        		</div>
				                        <?php endif; ?>
			                            <div <?php echo $this->get_render_attribute_string('infobox_content_align'); ?>>
				                            <<?php echo esc_attr($item['ea_title_tag']); ?> class="ea-title"><?php echo esc_html($item['single_infobox_title']); ?></<?php echo esc_attr($item['ea_title_tag']); ?>>
				                            <?php if($item['ea_content_text_type'] == 'content') : ?>
					                                <p><?php echo wp_kses_post($item['single_infobox_desc']); ?></p>
				                            <?php elseif($item['ea_content_text_type'] == 'template') : ?>
				                            	<p>
				                            		<?php if (!empty($item['ea_content_templates'])) {
										                echo Plugin::$instance->frontend->get_builder_content($item['ea_content_templates'], true);
										            } ?>
				                            	</p>
				                            <?php endif; ?>
				                            <?php if( ! $item['single_infobox_btn_text'] == '' && $item['button_show_hide'] == 'show' ) : ?>
				                            	<div <?php echo $this->get_render_attribute_string('infobox_btn_type'); ?>>
						                            <a href="<?php echo esc_url($item['single_infobox_btn_link']['url']); ?>" <?php echo wp_kses_post( $target ); ?> <?php echo wp_kses_post( $nofollow ); ?> class="link-btn">
						                            	<?php if( $item['btn_icon_position'] == 'before' ) : ?>
															<span class="icon-before">
																<?php endad_render_icon( $item, 'icon', 'btn_icon' ); ?>
															</span>
														<?php endif; ?>
						                            	<?php echo esc_html__($item['single_infobox_btn_text']); ?>
						                            	<?php if( $item['btn_icon_position'] == 'after' ) : ?>
															<span class="icon-after">
																<?php endad_render_icon( $item, 'icon', 'btn_icon' ); ?>
															</span>
														<?php endif; ?>
						                            </a>
						                        </div>
				                            <?php endif; ?>
				                        </div>
			                        </div>
			                	</div>
		                    <?php endforeach; ?>
		                </div>
		            </div>
		        </div>
		    <?php elseif( $settings['infobox_style_select'] == 'style-04' ) : ?>
		    	<div class="ea-info-box-area bg-100f1f pt-100 pb-70">
		            <div class="container">
		                <div class="section-title">
		                    <h2><?php echo esc_html__($settings['infobox_title']); ?></h2>
		                    <p><?php echo wp_kses_post($settings['infobox_desc']); ?>
		                    </p>
		                </div>
		                <div class="row justify-content-center">
		                	<?php foreach ( $settings['single_infobox'] as $item ) : 
		                		$target = $item['single_infobox_btn_link']['is_external'] ? ' target="_blank"' : '';
	                            $nofollow = $item['single_infobox_btn_link']['nofollow'] ? ' rel="nofollow"' : ''; ?>
			                	<div class="infobox-col <?php echo esc_attr( $infobox_column ); ?>">
			                		<div class="ea-single-info-box style-four">
			                            <?php if( $settings['infobox_icon_v_alignment'] == 'top' ) : ?>
			                			<div <?php echo $this->get_render_attribute_string('infobox_icon_align'); ?>>
			                				<?php if( $item['single_infobox_img_or_icon'] == 'icon' ) : 
					                			if(! $item['single_infobox_icon1'] == '' || ! $item['single_infobox_icon2'] == '') : ?>
						                            <div class="icon">
						                                <?php if( $item['icon_type'] == 'general' ) : ?>
					                                	    <i class="<?php echo wp_kses_post( $item['single_infobox_icon1'] ); ?>"></i>
					                                	<?php else: 
					                                		endad_render_icon( $item, 'icon', 'single_infobox_icon2' ); 
					                                	endif; ?>
						                            </div>
					                            <?php endif;
					                        elseif( $item['single_infobox_img_or_icon'] == 'img' ) :
					                        	if(! $item['single_infobox_img']['url'] == '' ) : ?>
					                        		<div class="icon">
					                        			<img src="<?php echo esc_url( $item['single_infobox_img']['url'] ); ?>" alt="Image">
					                        		</div>
					                        	<?php endif;
					                        elseif( $item['single_infobox_img_or_icon'] == 'number' ) : ?>
				                        		<div class="icon">
				                        			<i><?php echo esc_html($item['single_infobox_number']); ?></i>
				                        		</div>
					                        <?php endif; ?>	
				                        </div>
				                        <?php endif; ?>
			                            <div <?php echo $this->get_render_attribute_string('infobox_content_align'); ?>>
				                            <<?php echo esc_attr($item['ea_title_tag']); ?> class="ea-title"><?php echo esc_html($item['single_infobox_title']); ?></<?php echo esc_attr($item['ea_title_tag']); ?>>
				                            <?php if($item['ea_content_text_type'] == 'content') : ?>
					                                <p><?php echo wp_kses_post($item['single_infobox_desc']); ?></p>
				                            <?php elseif($item['ea_content_text_type'] == 'template') : ?>
				                            	<p>
				                            		<?php if (!empty($item['ea_content_templates'])) {
										                echo Plugin::$instance->frontend->get_builder_content($item['ea_content_templates'], true);
										            } ?>
				                            	</p>
				                            <?php endif; ?>
				                            <?php if( ! $item['single_infobox_btn_text'] == '' && $item['button_show_hide'] == 'show' ) : ?>
				                            	<div <?php echo $this->get_render_attribute_string('infobox_btn_type'); ?>>
						                            <a href="<?php echo esc_url($item['single_infobox_btn_link']['url']); ?>" <?php echo wp_kses_post( $target ); ?> <?php echo wp_kses_post( $nofollow ); ?> class="link-btn">
						                            	<?php if( $item['btn_icon_position'] == 'before' ) : ?>
															<span class="icon-before">
																<?php endad_render_icon( $item, 'icon', 'btn_icon' ); ?>
															</span>
														<?php endif; ?>
						                            	<?php echo esc_html__($item['single_infobox_btn_text']); ?>	
						                            	<?php if( $item['btn_icon_position'] == 'after' ) : ?>
															<span class="icon-after">
																<?php endad_render_icon( $item, 'icon', 'btn_icon' ); ?>
															</span>
														<?php endif; ?>
						                            </a>
						                        </div>
				                            <?php endif; ?>
				                        </div>
				                        <?php if( $settings['infobox_icon_v_alignment'] == 'bottom' ) : ?>
				                        <br/>
			                			<div <?php echo $this->get_render_attribute_string('infobox_icon_align'); ?>>
			                				<?php if( $item['single_infobox_img_or_icon'] == 'icon' ) : 
					                			if(! $item['single_infobox_icon1'] == '' || ! $item['single_infobox_icon2'] == '') : ?>
						                            <div class="icon">
						                                <?php if( $item['icon_type'] == 'general' ) : ?>
					                                	    <i class="<?php echo wp_kses_post( $item['single_infobox_icon1'] ); ?>"></i>
					                                	<?php else: 
					                                		endad_render_icon( $item, 'icon', 'single_infobox_icon2' ); 
					                                	endif; ?>
						                            </div>
					                            <?php endif;
					                        elseif( $item['single_infobox_img_or_icon'] == 'img' ) :
					                        	if(! $item['single_infobox_img']['url'] == '' ) : ?>
					                        		<div class="icon">
					                        			<img src="<?php echo esc_url( $item['single_infobox_img']['url'] ); ?>" alt="Image">
					                        		</div>
					                        	<?php endif;
					                        elseif( $item['single_infobox_img_or_icon'] == 'number' ) : ?>
				                        		<div class="icon">
				                        			<i><?php echo esc_html($item['single_infobox_number']); ?></i>
				                        		</div>
					                        <?php endif; ?>	
				                        </div>
				                        <?php endif; ?>
			                            <div class="back-icon">
			                                <i class="<?php echo wp_kses_post($item['single_infobox_icon']); ?>"></i>
			                            </div>
			                        </div>
			                	</div>			       
		                    <?php endforeach; ?>			               
		                </div>
		            </div>
		        </div>
		    <?php elseif( $settings['infobox_style_select'] == 'style-05' ) : ?>
		    	<div class="ea-info-box-area pt-100 pb-70">
		            <div class="container">
		                <div class="section-title">
		                    <h2><?php echo esc_html__($settings['infobox_title']); ?></h2>
		                    <p><?php echo wp_kses_post($settings['infobox_desc']); ?></p>
		                </div>
		                <div class="row justify-content-center">
		                	<?php foreach ( $settings['single_infobox'] as $item ) : 
		                		$target = $item['single_infobox_btn_link']['is_external'] ? ' target="_blank"' : '';
	                            $nofollow = $item['single_infobox_btn_link']['nofollow'] ? ' rel="nofollow"' : ''; ?>
			                	<div class="infobox-col <?php echo esc_attr( $infobox_column ); ?>">
			                		<div class="ea-single-info-box style-five">
			                            <?php if( $settings['infobox_icon_v_alignment'] == 'top' ) : ?>
			                			<div <?php echo $this->get_render_attribute_string('infobox_icon_align'); ?>>
			                				<?php if( $item['single_infobox_img_or_icon'] == 'icon' ) : 
					                			if(! $item['single_infobox_icon1'] == '' || ! $item['single_infobox_icon2'] == '') : ?>
						                            <div class="icon">
						                                <?php if( $item['icon_type'] == 'general' ) : ?>
					                                	    <i class="<?php echo wp_kses_post( $item['single_infobox_icon1'] ); ?>"></i>
					                                	<?php else: 
					                                		endad_render_icon( $item, 'icon', 'single_infobox_icon2' ); 
					                                	endif; ?>
						                            </div>
					                            <?php endif;
					                        elseif( $item['single_infobox_img_or_icon'] == 'img' ) :
					                        	if(! $item['single_infobox_img']['url'] == '' ) : ?>
					                        		<div class="icon">
					                        			<img src="<?php echo esc_url( $item['single_infobox_img']['url'] ); ?>" alt="Image">
					                        		</div>
					                        	<?php endif;
					                        elseif( $item['single_infobox_img_or_icon'] == 'number' ) : ?>
				                        		<div class="icon">
				                        			<i><?php echo esc_html($item['single_infobox_number']); ?></i>
				                        		</div>
					                        <?php endif; ?>	
				                        </div>
				                        <?php endif; ?>
			                            <div <?php echo $this->get_render_attribute_string('infobox_content_align'); ?>>
				                            <<?php echo esc_attr($item['ea_title_tag']); ?> class="ea-title"><?php echo esc_html($item['single_infobox_title']); ?></<?php echo esc_attr($item['ea_title_tag']); ?>>
				                            <?php if($item['ea_content_text_type'] == 'content') : ?>
					                                <p><?php echo wp_kses_post($item['single_infobox_desc']); ?></p>
				                            <?php elseif($item['ea_content_text_type'] == 'template') : ?>
				                            	<p>
				                            		<?php if (!empty($item['ea_content_templates'])) {
										                echo Plugin::$instance->frontend->get_builder_content($item['ea_content_templates'], true);
										            } ?>
				                            	</p>
				                            <?php endif; ?>
				                            <?php if( ! $item['single_infobox_btn_text'] == '' && $item['button_show_hide'] == 'show' ) : ?>
				                            	<div <?php echo $this->get_render_attribute_string('infobox_btn_type'); ?>>
						                            <a href="<?php echo esc_url($item['single_infobox_btn_link']['url']); ?>" <?php echo wp_kses_post( $target ); ?> <?php echo wp_kses_post( $nofollow ); ?> class="link-btn">
						                            	<?php if( $item['btn_icon_position'] == 'before' ) : ?>
															<span class="icon-before">
																<?php endad_render_icon( $item, 'icon', 'btn_icon' ); ?>
															</span>
														<?php endif; ?>
						                            	<?php echo esc_html__($item['single_infobox_btn_text']); ?>	
						                            	<?php if( $item['btn_icon_position'] == 'after' ) : ?>
															<span class="icon-after">
																<?php endad_render_icon( $item, 'icon', 'btn_icon' ); ?>
															</span>
														<?php endif; ?>
						                            </a>
						                        </div>
				                            <?php endif; ?>
				                        </div>
				                        <?php if( $settings['infobox_icon_v_alignment'] == 'bottom' ) : ?>
				                        <br/>	
			                			<div <?php echo $this->get_render_attribute_string('infobox_icon_align'); ?>>
			                				<?php if( $item['single_infobox_img_or_icon'] == 'icon' ) : 
					                			if(! $item['single_infobox_icon1'] == '' || ! $item['single_infobox_icon2'] == '') : ?>
						                            <div class="icon">
						                                <?php if( $item['icon_type'] == 'general' ) : ?>
					                                	    <i class="<?php echo wp_kses_post( $item['single_infobox_icon1'] ); ?>"></i>
					                                	<?php else: 
					                                		endad_render_icon( $item, 'icon', 'single_infobox_icon2' ); 
					                                	endif; ?>
						                            </div>
					                            <?php endif;
					                        elseif( $item['single_infobox_img_or_icon'] == 'img' ) :
					                        	if(! $item['single_infobox_img']['url'] == '' ) : ?>
					                        		<div class="icon">
					                        			<img src="<?php echo esc_url( $item['single_infobox_img']['url'] ); ?>" alt="Image">
					                        		</div>
					                        	<?php endif;
					                        elseif( $item['single_infobox_img_or_icon'] == 'number' ) : ?>
				                        		<div class="icon">
				                        			<i><?php echo esc_html($item['single_infobox_number']); ?></i>
				                        		</div>
					                        <?php endif; ?>	
				                        </div>
				                        <?php endif; ?>
			                        </div>
			                	</div>
		                    <?php endforeach; ?>
		                </div>
		            </div>
		        </div>
	        <?php elseif( $settings['infobox_style_select'] == 'style-06' ) : ?>
	        	<div class="ea-info-box-area ea-style-six pt-100 pb-70 bg-f7f7ff">
		            <div class="container">
		            	<div class="row align-items-center">
		            		<div class="col-lg-5 col-md-12">
				                <div class="ea-info-box-section-title section-title">
				                    <h2><?php echo esc_html__($settings['infobox_title']); ?></h2>
				                    <p><?php echo wp_kses_post($settings['infobox_desc']); ?></p>
				                </div>
			                </div>
			                <div class="col-lg-7 col-md-12">
				                <div class="row align-items-center">
				                	<?php foreach ( $settings['single_infobox'] as $item ) : 
				                	    $target = $item['single_infobox_btn_link']['is_external'] ? ' target="_blank"' : '';
	                                    $nofollow = $item['single_infobox_btn_link']['nofollow'] ? ' rel="nofollow"' : ''; ?>
				                	<div class="infobox-col">
				                		<div class="ea-single-info-box style-six">
				                			<?php if(! $item['single_infobox_shape'] == '') : ?>
					                			<div class="shape">
					                				<img src="<?php echo esc_url( $item['single_infobox_shape']['url'] ); ?>" alt="image">
					                			</div>
				                			<?php endif; ?>
				                			<?php if( $settings['infobox_icon_v_alignment'] == 'top' ) : ?>
				                			<div <?php echo $this->get_render_attribute_string('infobox_icon_align'); ?>>
			                				<?php if( $item['single_infobox_img_or_icon'] == 'icon' ) : 
					                			if(! $item['single_infobox_icon1'] == '' || ! $item['single_infobox_icon2'] == '') : ?>
						                            <div class="icon">
						                                <?php if( $item['icon_type'] == 'general' ) : ?>
					                                	    <i class="<?php echo wp_kses_post( $item['single_infobox_icon1'] ); ?>"></i>
					                                	<?php else: 
					                                		endad_render_icon( $item, 'icon', 'single_infobox_icon2' ); 
					                                	endif; ?>
						                            </div>
					                            <?php endif;
						                        elseif( $item['single_infobox_img_or_icon'] == 'img' ) :
						                        	if(! $item['single_infobox_img']['url'] == '' ) : ?>
						                        		<div class="icon">
						                        			<img src="<?php echo esc_url( $item['single_infobox_img']['url'] ); ?>" alt="Image">
						                        		</div>
						                        	<?php endif;
						                        elseif( $item['single_infobox_img_or_icon'] == 'number' ) : ?>
					                        		<div class="icon">
					                        			<i><?php echo esc_html($item['single_infobox_number']); ?></i>
					                        		</div>
						                        <?php endif; ?>	
					                        </div>
					                        <?php endif; ?>
				                            <div <?php echo $this->get_render_attribute_string('infobox_content_align'); ?>>
					                            <<?php echo esc_attr($item['ea_title_tag']); ?> class="ea-title"><?php echo esc_html($item['single_infobox_title']); ?></<?php echo esc_attr($item['ea_title_tag']); ?>>
					                            <?php if($item['ea_content_text_type'] == 'content') : ?>
					                                <p><?php echo wp_kses_post($item['single_infobox_desc']); ?></p>
				                            <?php elseif($item['ea_content_text_type'] == 'template') : ?>
				                            	<p>
				                            		<?php if (!empty($item['ea_content_templates'])) {
										                echo Plugin::$instance->frontend->get_builder_content($item['ea_content_templates'], true);
										            } ?>
				                            	</p>
				                            <?php endif; ?>
					                            <?php if( ! $item['single_infobox_btn_text'] == '' && $item['button_show_hide'] == 'show' ) : ?>
					                            	<div <?php echo $this->get_render_attribute_string('infobox_btn_type'); ?>>
							                            <a href="<?php echo esc_url($item['single_infobox_btn_link']['url']); ?>" <?php echo wp_kses_post( $target ); ?> <?php echo wp_kses_post( $nofollow ); ?> class="link-btn">
							                            	<?php if( $item['btn_icon_position'] == 'before' ) : ?>
																<span class="icon-before">
																	<?php endad_render_icon( $item, 'icon', 'btn_icon' ); ?>
																</span>
															<?php endif; ?>
							                            	<?php echo esc_html__($item['single_infobox_btn_text']); ?>	
							                            	<?php if( $item['btn_icon_position'] == 'after' ) : ?>
																<span class="icon-after">
																	<?php endad_render_icon( $item, 'icon', 'btn_icon' ); ?>
																</span>
															<?php endif; ?>
							                            </a>
							                        </div>
					                            <?php endif; ?>
					                        </div>
					                        <?php if( $settings['infobox_icon_v_alignment'] == 'bottom' ) : ?>
					                        <br/>
				                			<div <?php echo $this->get_render_attribute_string('infobox_icon_align'); ?>>
			                				<?php if( $item['single_infobox_img_or_icon'] == 'icon' ) : 
					                			if(! $item['single_infobox_icon1'] == '' || ! $item['single_infobox_icon2'] == '') : ?>
						                            <div class="icon">
						                                <?php if( $item['icon_type'] == 'general' ) : ?>
					                                	    <i class="<?php echo wp_kses_post( $item['single_infobox_icon1'] ); ?>"></i>
					                                	<?php else: 
					                                		endad_render_icon( $item, 'icon', 'single_infobox_icon2' ); 
					                                	endif; ?>
						                            </div>
					                            <?php endif;
						                        elseif( $item['single_infobox_img_or_icon'] == 'img' ) :
						                        	if(! $item['single_infobox_img']['url'] == '' ) : ?>
						                        		<div class="icon">
						                        			<img src="<?php echo esc_url( $item['single_infobox_img']['url'] ); ?>" alt="Image">
						                        		</div>
						                        	<?php endif;
						                        elseif( $item['single_infobox_img_or_icon'] == 'number' ) : ?>
					                        		<div class="icon">
					                        			<i><?php echo esc_html($item['single_infobox_number']); ?></i>
					                        		</div>
						                        <?php endif; ?>	
					                        </div>
					                        <?php endif; ?>
				                        </div>
				                	</div>
			                        <?php endforeach; ?>
				                </div>
			                </div>
			            </div>
		            </div>
		        </div>
		    <?php elseif( $settings['infobox_style_select'] == 'style-07' ) : ?>
		    	<div class="ea-info-box-area pt-100 pb-70">
		            <div class="container">
		                <div class="section-title">
		                    <h2><?php echo esc_html__($settings['infobox_title']); ?></h2>
		                    <p><?php echo wp_kses_post($settings['infobox_desc']); ?></p>
		                </div>
		                <div class="row justify-content-center">
		                	<?php foreach ( $settings['single_infobox'] as $item ) : 
		                		$target = $item['single_infobox_btn_link']['is_external'] ? ' target="_blank"' : '';
	                            $nofollow = $item['single_infobox_btn_link']['nofollow'] ? ' rel="nofollow"' : ''; ?>
			                	<div class="<?php echo esc_attr( $infobox_column ); ?>">
			                		<div class="ea-single-info-box style-seven">
			                            <?php if( $settings['infobox_icon_v_alignment'] == 'top' ) : ?>
			                			<div <?php echo $this->get_render_attribute_string('infobox_icon_align'); ?>>
			                				<?php if( $item['single_infobox_img_or_icon'] == 'icon' ) : 
					                			if(! $item['single_infobox_icon1'] == '' || ! $item['single_infobox_icon2'] == '') : ?>
						                            <div class="icon">
						                                <?php if( $item['icon_type'] == 'general' ) : ?>
					                                	    <i class="<?php echo wp_kses_post( $item['single_infobox_icon1'] ); ?>"></i>
					                                	<?php else: 
					                                		endad_render_icon( $item, 'icon', 'single_infobox_icon2' ); 
					                                	endif; ?>
						                            </div>
					                            <?php endif;
					                        elseif( $item['single_infobox_img_or_icon'] == 'img' ) :
					                        	if(! $item['single_infobox_img']['url'] == '' ) : ?>
					                        		<div class="icon">
					                        			<img src="<?php echo esc_url( $item['single_infobox_img']['url'] ); ?>" alt="Image">
					                        		</div>
					                        	<?php endif;
					                        elseif( $item['single_infobox_img_or_icon'] == 'number' ) : ?>
				                        		<div class="icon">
				                        			<i><?php echo esc_html($item['single_infobox_number']); ?></i>
				                        		</div>
					                        <?php endif; ?>	
				                        </div>
				                        <?php endif; ?>
			                            <div <?php echo $this->get_render_attribute_string('infobox_content_align'); ?>>
				                            <<?php echo esc_attr($item['ea_title_tag']); ?> class="ea-title"><?php echo esc_html($item['single_infobox_title']); ?></<?php echo esc_attr($item['ea_title_tag']); ?>>
				                            <?php if($item['ea_content_text_type'] == 'content') : ?>
					                                <p><?php echo wp_kses_post($item['single_infobox_desc']); ?></p>
				                            <?php elseif($item['ea_content_text_type'] == 'template') : ?>
				                            	<p>
				                            		<?php if (!empty($item['ea_content_templates'])) {
										                echo Plugin::$instance->frontend->get_builder_content($item['ea_content_templates'], true);
										            } ?>
				                            	</p>
				                            <?php endif; ?>
				                            <?php if( ! $item['single_infobox_btn_text'] == '' && $item['button_show_hide'] == 'show' ) : ?>
				                            	<div <?php echo $this->get_render_attribute_string('infobox_btn_type'); ?>>
						                            <a href="<?php echo esc_url($item['single_infobox_btn_link']['url']); ?>" <?php echo wp_kses_post( $target ); ?> <?php echo wp_kses_post( $nofollow ); ?> class="link-btn">
						                            	<?php if( $item['btn_icon_position'] == 'before' ) : ?>
															<span class="icon-before">
																<?php endad_render_icon( $item, 'icon', 'btn_icon' ); ?>
															</span>
														<?php endif; ?>
						                            	<?php echo esc_html__($item['single_infobox_btn_text']); ?>	
						                            	<?php if( $item['btn_icon_position'] == 'after' ) : ?>
															<span class="icon-after">
																<?php endad_render_icon( $item, 'icon', 'btn_icon' ); ?>
															</span>
														<?php endif; ?>
						                            </a>
						                        </div>
				                            <?php endif; ?>
				                        </div>
				                        <?php if( $settings['infobox_icon_v_alignment'] == 'bottom' ) : ?>
				                        <br/>
			                			<div <?php echo $this->get_render_attribute_string('infobox_icon_align'); ?>>
			                				<?php if( $item['single_infobox_img_or_icon'] == 'icon' ) : 
					                			if(! $item['single_infobox_icon1'] == '' || ! $item['single_infobox_icon2'] == '') : ?>
						                            <div class="icon">
						                                <?php if( $item['icon_type'] == 'general' ) : ?>
					                                	    <i class="<?php echo wp_kses_post( $item['single_infobox_icon1'] ); ?>"></i>
					                                	<?php else: 
					                                		endad_render_icon( $item, 'icon', 'single_infobox_icon2' ); 
					                                	endif; ?>
						                            </div>
					                            <?php endif;
					                        elseif( $item['single_infobox_img_or_icon'] == 'img' ) :
					                        	if(! $item['single_infobox_img']['url'] == '' ) : ?>
					                        		<div class="icon">
					                        			<img src="<?php echo esc_url( $item['single_infobox_img']['url'] ); ?>" alt="Image">
					                        		</div>
					                        	<?php endif;
					                        elseif( $item['single_infobox_img_or_icon'] == 'number' ) : ?>
				                        		<div class="icon">
				                        			<i><?php echo esc_html($item['single_infobox_number']); ?></i>
				                        		</div>
					                        <?php endif; ?>	
				                        </div>
				                        <?php endif; ?>
			                        </div>
			                	</div>
		                    <?php endforeach; ?>
		                </div>
		            </div>
		        </div>
		    <?php elseif( $settings['infobox_style_select'] == 'style-08' ) : ?>
		    	<div class="ea-info-box-area bg-shape">
		            <div class="container">
		                <div class="section-title">
		                    <h2><?php echo esc_html__($settings['infobox_title']); ?></h2>
		                    <p><?php echo wp_kses_post($settings['infobox_desc']); ?></p>
		                </div>
		                <div class="row justify-content-center">
		                	<?php foreach ( $settings['single_infobox'] as $item ) : 
		                		$target = $item['single_infobox_btn_link']['is_external'] ? ' target="_blank"' : '';
	                            $nofollow = $item['single_infobox_btn_link']['nofollow'] ? ' rel="nofollow"' : ''; ?>
			                	<div class="<?php echo esc_attr( $infobox_column ); ?>">
			                		<div class="ea-single-info-box style-eight">
			                			<div class="d-flex align-items-center">
				                            <?php if( $item['single_infobox_img_or_icon'] == 'icon' ) : 
					                			if(! $item['single_infobox_icon1'] == '' || ! $item['single_infobox_icon2'] == '') : ?>
						                            <div class="icon">
						                                <?php if( $item['icon_type'] == 'general' ) : ?>
					                                	    <i class="<?php echo wp_kses_post( $item['single_infobox_icon1'] ); ?>"></i>
					                                	<?php else: 
					                                		endad_render_icon( $item, 'icon', 'single_infobox_icon2' ); 
					                                	endif; ?>
						                            </div>
					                            <?php endif;
					                        elseif( $item['single_infobox_img_or_icon'] == 'img' ) :
					                        	if(! $item['single_infobox_img']['url'] == '' ) : ?>
					                        		<div class="icon">
					                        			<img src="<?php echo esc_url( $item['single_infobox_img']['url'] ); ?>" alt="Image">
					                        		</div>
					                        	<?php endif;
					                        elseif( $item['single_infobox_img_or_icon'] == 'number' ) : ?>
				                        		<div class="icon">
				                        			<i><?php echo esc_html($item['single_infobox_number']); ?></i>
				                        		</div>
					                        <?php endif; ?>
				                            <<?php echo esc_attr($item['ea_title_tag']); ?> class="ea-title"><?php echo esc_html($item['single_infobox_title']); ?></<?php echo esc_attr($item['ea_title_tag']); ?>>
				                        </div>
				                        <div <?php echo $this->get_render_attribute_string('infobox_content_align'); ?>>
				                            <?php if($item['ea_content_text_type'] == 'content') : ?>
					                                <p><?php echo wp_kses_post($item['single_infobox_desc']); ?></p>
				                            <?php elseif($item['ea_content_text_type'] == 'template') : ?>
				                            	<p>
				                            		<?php if (!empty($item['ea_content_templates'])) {
										                echo Plugin::$instance->frontend->get_builder_content($item['ea_content_templates'], true);
										            } ?>
				                            	</p>
				                            <?php endif; ?>
				                            <?php if( ! $item['single_infobox_btn_text'] == '' && $item['button_show_hide'] == 'show' ) : ?>
				                            	<div <?php echo $this->get_render_attribute_string('infobox_btn_type'); ?>>
						                            <a href="<?php echo esc_url($item['single_infobox_btn_link']['url']); ?>" <?php echo wp_kses_post( $target ); ?> <?php echo wp_kses_post( $nofollow ); ?> class="link-btn">
						                            	<?php if( $item['btn_icon_position'] == 'before' ) : ?>
															<span class="icon-before">
																<?php endad_render_icon( $item, 'icon', 'btn_icon' ); ?>
															</span>
														<?php endif; ?>
						                            	<?php echo esc_html__($item['single_infobox_btn_text']); ?>	
						                            	<?php if( $item['btn_icon_position'] == 'after' ) : ?>
															<span class="icon-after">
																<?php endad_render_icon( $item, 'icon', 'btn_icon' ); ?>
															</span>
														<?php endif; ?>
						                            </a>
						                        </div>
				                            <?php endif; ?>
				                        </div>
			                        </div>
			                	</div>
		                    <?php endforeach; ?>
		                </div>
		            </div>
		        </div>
		    <?php endif;

	    endif; ?>
	    <!-- End InfoBox Area --> 

	<?php 

    }
	
}
