HEX
Server: LiteSpeed
System: Linux dune179.sitesanctuary.org 5.14.0-427.40.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Oct 16 07:08:17 EDT 2024 x86_64
User: h278792 (1076)
PHP: 7.4.33
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: /home/h278792/public_html/wp-content/plugins/ecademy-toolkit/widgets/distance-learning.php
<?php
/**
 * About Area Widget
 */

namespace Elementor;

// Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

class eCademy_Distance_Learning extends Widget_Base {

	public function get_name() {
        return 'Distance_Learning';
    }

	public function get_title() {
        return esc_html__( 'درباره منطقه یک', 'ecademy-toolkit' );
    }

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

	public function get_categories() {
        return [ 'ecademy-elements' ];
    }

	protected function register_controls() {

        $this->start_controls_section(
			'eCademy_Distance_Learning',
			[
				'label' => esc_html__( 'eCademy درباره منطقه یک', 'ecademy-toolkit' ),
				'tab' => Controls_Manager::TAB_CONTENT,
			]
        );

            $this->add_control(
                'style',
                [
                    'label' => esc_html__( 'سبک', 'ecademy-toolkit' ),
                    'type' => Controls_Manager::SELECT,
                    'options' => [
                        '1'         => esc_html__( 'سبک 1', 'ecademy-toolkit' ),
                        '2'         => esc_html__( 'سبک 2', 'ecademy-toolkit' ),
                        '3'         => esc_html__( 'سبک 3', 'ecademy-toolkit' ),
                        '4'         => esc_html__( 'سبک 4', 'ecademy-toolkit' ),
                    ],
                    'default' => '1',
                ]
            );

            $this->add_control(
                'top_title',
                [
                    'label' => esc_html__( 'عنوان بالا', 'ecademy-toolkit' ),
                    'type' => Controls_Manager::TEXT,
                    'default' => esc_html__('درباره منطقه', 'ecademy-toolkit'),
                ]
            );

            $this->add_control(
                'title',
                [
                    'label' => esc_html__( 'عنوان', 'ecademy-toolkit' ),
                    'type' => Controls_Manager::TEXT,
                    'default' => esc_html__('89% گزارش افراد در حال یادگیری برای توسعه حرفه ای مزایای شغلی مانند گرفتن ترفیع، شروع یک شغل جدید', 'ecademy-toolkit'),
                ]
            );

            $this->add_control(
                'title_tag',
                [
                    'label' => esc_html__( 'برچسب عنوان', 'ecademy-toolkit' ),
                    'type' => Controls_Manager::SELECT,
                    'options' => [
                        'h1'         => esc_html__( 'h1', 'ecademy-toolkit' ),
                        'h2'         => esc_html__( 'h2', 'ecademy-toolkit' ),
                        'h3'         => esc_html__( 'h3', 'ecademy-toolkit' ),
                        'h4'         => esc_html__( 'h4', 'ecademy-toolkit' ),
                        'h5'         => esc_html__( 'h5', 'ecademy-toolkit' ),
                        'h6'         => esc_html__( 'h6', 'ecademy-toolkit' ),
                    ],
                    'default' => 'h2',
                ]
            );

            $this->add_control(
                'content',
                [
                    'label' => esc_html__( 'محتوا', 'ecademy-toolkit' ),
                    'type' => Controls_Manager::TEXTAREA,
                    'default' => esc_html__('لورم ایپسوم متن ساختگی با تولید سادگی نامفهوم از صنعت چاپ و با استفاده از طراحان گرافیک است..', 'ecademy-toolkit'),
                ]
            );

            $repeater = new Repeater();
            $repeater->add_control(
                'title', [
                    'label'     => __( 'عنوان', 'ecademy-toolkit' ),
                    'type'      => Controls_Manager::TEXT,
                    'default'   => esc_html__('دستورالعمل کارشناس', 'ecademy-toolkit'),
                ]
            );
            $repeater->add_control(
                'default_icon', [
                    'label' => esc_html__( 'انتخاب آیکن', 'ecademy-toolkit' ),
                    'type' => Controls_Manager::ICON,
                    'label_block' => true,
                    'options' => ecademy_flaticons(),
                ]
            );
            $this->add_control(
                'list_items',
                [
                    'label' => esc_html__('لیست آیتم', 'ecademy-toolkit'),
                    'type' => Controls_Manager::REPEATER,
                    'fields' => $repeater->get_controls(),
                ]
            );

            $this->add_control(
				'user_button_text',
				[
					'label' 	=> esc_html__( 'ورود کاربر به متن دکمه', 'ecademy-toolkit' ),
					'type' 		=> Controls_Manager::TEXT,
					'default' 	=> __('پروفایل', 'ecademy-toolkit'),
				]
			);

            $this->add_control(
				'button_text',
				[
					'label' 	=> esc_html__( 'متن دکمه', 'ecademy-toolkit' ),
					'type' 		=> Controls_Manager::TEXT,
					'default' 	=> __('ورود به صورت رایگان', 'ecademy-toolkit'),
				]
			);

            $this->add_control(
				'button_icon',
				[
					'label' => esc_html__( 'آیکن دکمه', 'ecademy-toolkit' ),
                    'type' => Controls_Manager::ICON,
                    'label_block' => true,
                    'options' => ecademy_flaticons(),
				]
            );

            $this->add_control(
                'link_type',
                [
                    'label' 		=> esc_html__( 'نوع پیوند دکمه  ', 'ecademy-toolkit' ),
                    'type' 			=> Controls_Manager::SELECT,
                    'label_block' 	=> true,
                    'options' => [
                        '1'  	=> esc_html__( 'پیوند به صفحه', 'ecademy-toolkit' ),
                        '2' 	=> esc_html__( 'لینک خارجی', 'ecademy-toolkit' ),
                    ],
                ]
            );

            $this->add_control(
                'link_to_page',
                [
                    'label' 		=> esc_html__( '  صفحه پیوند دکمه ', 'ecademy-toolkit' ),
                    'type' 			=> Controls_Manager::SELECT,
                    'label_block' 	=> true,
                    'options' 		=> ecademy_toolkit_get_page_as_list(),
                    'condition' => [
                        'link_type' => '1',
                    ]
                ]
            );

            $this->add_control(
                'ex_link',
                [
                    'label'		=> esc_html__('دکمه لینک خارجی', 'ecademy-toolkit'),
                    'type'		=> Controls_Manager:: TEXT,
                    'condition' => [
                        'link_type' => '2',
                    ]
                ]
            );

        $this->end_controls_section();

        $this->start_controls_section(
			'section_images',
			[
				'label' => esc_html__( 'تصویر', 'ecademy-toolkit' ),
				'tab' => Controls_Manager::TAB_CONTENT,
			]
        );
            $this->add_control(
                'image1',
                [
                    'label' => esc_html__( 'درباره منطقه تصویر یک  ', 'ecademy-toolkit' ),
                    'type'	 => Controls_Manager::MEDIA,
                ]
            );

            $this->add_control(
                'image2',
                [
                    'label' => esc_html__( 'درباره منطقه تصویر دو', 'ecademy-toolkit' ),
                    'type'	 => Controls_Manager::MEDIA,
                    'condition' => [
                        'style' => ['1', '3'],
                    ]
                ]
            );
            $this->add_control(
                'image3',
                [
                    'label' => esc_html__( 'درباره منطقه تصویر سه', 'ecademy-toolkit' ),
                    'type'	 => Controls_Manager::MEDIA,
                    'condition' => [
                        'style' => '1',
                    ]
                ]
            );
            $this->add_control(
                'image4',
                [
                    'label' => esc_html__( 'درباره منطقه تصویر چهار ', 'ecademy-toolkit' ),
                    'type'	 => Controls_Manager::MEDIA,
                    'condition' => [
                        'style' => '1',
                    ]
                ]
            );

            $this->add_control(
                'shape_image12',
                [
                    'label' => esc_html__( 'شکل تصویر یک', 'ecademy-toolkit' ),
                    'type'	 => Controls_Manager::MEDIA,
                    'condition' => [
                        'style' => ['2'],
                    ]
                ]
            );

        $this->end_controls_section();

        $this->start_controls_section(
			'section_shape_images',
			[
				'label' => esc_html__( 'شکل دادن به تصاویر', 'ecademy-toolkit' ),
				'tab' => Controls_Manager::TAB_CONTENT,
                'condition' => [
                    'style' => ['1', '3'],
                ]
			]
        );
            $this->add_control(
                'shape_image1',
                [
                    'label' => esc_html__( 'شکل تصویر یک', 'ecademy-toolkit' ),
                    'type'	 => Controls_Manager::MEDIA,
                ]
            );

            $this->add_control(
                'shape_image2',
                [
                    'label' => esc_html__( 'شکل تصویر دو', 'ecademy-toolkit' ),
                    'type'	 => Controls_Manager::MEDIA,
                ]
            );
            $this->add_control(
                'shape_image3',
                [
                    'label' => esc_html__( 'شکل تصویر سه ', 'ecademy-toolkit' ),
                    'type'	 => Controls_Manager::MEDIA,
                ]
            );
            $this->add_control(
                'shape_image4',
                [
                    'label' => esc_html__( 'شکل تصویر چهار', 'ecademy-toolkit' ),
                    'type'	 => Controls_Manager::MEDIA,
                    'condition' => [
                        'style' => ['1'],
                    ]
                ]
            );

        $this->end_controls_section();

        $this->start_controls_section(
			'section_style',
			[
				'label' => esc_html__( 'سبک', 'ecademy-toolkit' ),
				'tab' => Controls_Manager::TAB_STYLE,
			]
        );
            $this->add_control(
                'section_bg_color',
                [
                    'label' => esc_html__( 'رنگ پس زمینه بخش ', 'ecademy-toolkit' ),
                    'type' => Controls_Manager::COLOR,
                    'selectors' => [
                        '{{WRAPPER}} .about-area.bg-fef8ef, .about-area' => 'background-color: {{VALUE}}',
                    ],
                ]
            );

            $this->add_control(
                'top_title_color',
                [
                    'label' => esc_html__( 'رنگ عنوان بالا', 'ecademy-toolkit' ),
                    'type' => Controls_Manager::COLOR,
                    'selectors' => [
                        '{{WRAPPER}} .about-content .sub-title' => 'color: {{VALUE}}',
                    ],
                ]
            );

            $this->add_group_control(
                Group_Control_Typography::get_type(),
                [
                    'name' => 'top_title_typography',
                    'label' => __( 'تایپوگرافی عنوان بالا', 'ecademy-toolkit' ),
                    'scheme' => Core\Schemes\Typography::TYPOGRAPHY_1,
                    'selector' => '{{WRAPPER}} .about-content .sub-title',
                ]
            );

            $this->add_control(
                'title_color',
                [
                    'label' => esc_html__( 'رنگ عنوان', 'ecademy-toolkit' ),
                    'type' => Controls_Manager::COLOR,
                    'selectors' => [
                        '{{WRAPPER}} .about-content h2, .about-content h3, .about-content h4, .about-content h5, .about-content h5, .about-content h6, .about-content h1' => 'color: {{VALUE}}',
                    ],
                ]
            );

            $this->add_group_control(
                Group_Control_Typography::get_type(),
                [
                    'name' => 'title_typography',
                    'label' => __( ' عنوان تایپوگرافی', 'ecademy-toolkit' ),
                    'scheme' => Core\Schemes\Typography::TYPOGRAPHY_1,
                    'selector' => '{{WRAPPER}} .about-content h2, .about-content h3, .about-content h4, .about-content h5, .about-content h5, .about-content h6, .about-content h1',
                ]
            );

            $this->add_control(
                'content_color',
                [
                    'label' => esc_html__( ' رنگ محتوا ', 'ecademy-toolkit' ),
                    'type' => Controls_Manager::COLOR,
                    'selectors' => [
                        '{{WRAPPER}} .about-content p' => 'color: {{VALUE}}',
                    ],
                ]
            );

            $this->add_group_control(
                Group_Control_Typography::get_type(),
                [
                    'name' => 'content_typography',
                    'label' => __( 'تایپوگرافی محتوا', 'ecademy-toolkit' ),
                    'scheme' => Core\Schemes\Typography::TYPOGRAPHY_1,
                    'selector' => '{{WRAPPER}} .about-content p',
                ]

            );
            $this->add_control(
                'list_title_color',
                [
                    'label' => esc_html__( 'رنگ عنوان لیست', 'ecademy-toolkit' ),
                    'type' => Controls_Manager::COLOR,
                    'selectors' => [
                        '{{WRAPPER}} .about-content .features-list li span' => 'color: {{VALUE}}',
                    ],
                ]
            );

            $this->add_group_control(
                Group_Control_Typography::get_type(),
                [
                    'name' => 'lis_title_content_typography',
                    'label' => __( 'تایپوگرافی عنوان لیست', 'ecademy-toolkit' ),
                    'scheme' => Core\Schemes\Typography::TYPOGRAPHY_1,
                    'selector' => '{{WRAPPER}} .about-content .features-list li span',
                ]
            );

        $this->end_controls_section();
    }

	protected function render() {

        $settings = $this->get_settings_for_display();

        global $ecademy_opt;
		if( isset( $ecademy_opt['enable_lazyloader'] ) ):
			$is_lazyloader = $ecademy_opt['enable_lazyloader'];
		else:
			$is_lazyloader = true;
		endif;

        // Inline Editing
        $this-> add_inline_editing_attributes('title','none');
        $this-> add_inline_editing_attributes('content','none');

        // Get Button Link
        if($settings['link_type'] == 1){
            $link = get_page_link( $settings['link_to_page'] );
        } else {
            $link = $settings['ex_link'];
        }

        if ( is_user_logged_in() ):
            $button_text = $settings['user_button_text'];
        else:
            $button_text = $settings['button_text'];
        endif;
        ?>
        <?php if( $settings['style'] == '1' ): ?>
            <div class="about-area bg-fef8ef ptb-100">
                <div class="container">
                    <div class="row align-items-center">
                        <div class="col-lg-6 col-md-12">
                            <div class="about-image">
                                <div class="row">
                                    <?php if( $settings['image1']['url'] != '' ): ?>
                                        <div class="col-lg-6 col-sm-6 col-md-6 col-6">
                                            <div class="image wow fadeInLeft">
                                                <?php if( $is_lazyloader == true ): ?>
                                                    <img sm-src="<?php echo esc_url( $settings['image1']['url'] ); ?>" alt="<?php echo esc_attr__( 'درباره ما' ); ?>">
                                                <?php else: ?>
                                                    <img src="<?php echo esc_url( $settings['image1']['url'] ); ?>" alt="<?php echo esc_attr__( 'درباره ما' ); ?>">
                                                <?php endif; ?>
                                            </div>
                                        </div>
                                    <?php endif; ?>

                                    <?php if( $settings['image2']['url'] != '' ): ?>
                                        <div class="col-lg-6 col-sm-6 col-md-6 col-6">
                                            <div class="image wow fadeInDown">
                                                <?php if( $is_lazyloader == true ): ?>
                                                    <img sm-src="<?php echo esc_url( $settings['image2']['url'] ); ?>" alt="<?php echo esc_attr__( 'درباره ما' ); ?>">
                                                <?php else: ?>
                                                    <img src="<?php echo esc_url( $settings['image2']['url'] ); ?>" alt="<?php echo esc_attr__( 'درباره ما' ); ?>">
                                                <?php endif; ?>
                                            </div>
                                        </div>
                                    <?php endif; ?>

                                    <?php if( $settings['image3']['url'] != '' ): ?>
                                        <div class="col-lg-6 col-sm-6 col-md-6 col-6">
                                            <div class="image wow fadeInUp">
                                                <?php if( $is_lazyloader == true ): ?>
                                                    <img sm-src="<?php echo esc_url( $settings['image3']['url'] ); ?>" alt="<?php echo esc_attr__( 'درباره ما' ); ?>">
                                                <?php else: ?>
                                                    <img src="<?php echo esc_url( $settings['image3']['url'] ); ?>" alt="<?php echo esc_attr__( 'درباره ما' ); ?>">
                                                <?php endif; ?>
                                            </div>
                                        </div>
                                    <?php endif; ?>

                                    <?php if( $settings['image4']['url'] != '' ): ?>
                                        <div class="col-lg-6 col-sm-6 col-md-6 col-6">
                                            <div class="image wow fadeInRight">
                                                <?php if( $is_lazyloader == true ): ?>
                                                    <img sm-src="<?php echo esc_url( $settings['image4']['url'] ); ?>" alt="<?php echo esc_attr__( 'درباره ما' ); ?>">
                                                <?php else: ?>
                                                    <img src="<?php echo esc_url( $settings['image4']['url'] ); ?>" alt="<?php echo esc_attr__( 'درباره ما' ); ?>">
                                                <?php endif; ?>
                                            </div>
                                        </div>
                                    <?php endif; ?>
                                </div>
                            </div>
                        </div>

                        <div class="col-lg-6 col-md-12">
                            <div class="about-content">
                                <span class="sub-title"><?php echo esc_html( $settings['top_title'] ); ?></span>
                                <<?php echo esc_attr( $settings['title_tag'] ); ?> <?php echo $this-> get_render_attribute_string('title'); ?>><?php echo esc_html( $settings['title'] ); ?></<?php echo esc_attr( $settings['title_tag'] ); ?>>
                                <p <?php echo $this-> get_render_attribute_string('content'); ?>><?php echo wp_kses_post( $settings['content'] ); ?></p>
                                <ul class="features-list">
                                    <?php foreach( $settings['list_items'] as $item ):
                                        // Icon
                                        $icon =$item['default_icon'];
                                        ?>
                                        <li><span><i class="<?php echo esc_attr( $icon ); ?>"></i> <?php echo esc_html( $item['title'] ); ?></span></li>
                                    <?php endforeach; ?>
                                </ul>

                                <?php if( $button_text != '' ):
                                        // Button Icon
                                        if( $settings['button_icon'] != '' ):
                                            $icon = $settings['button_icon'];
                                        else:
                                            $icon = 'flaticon-user';
                                        endif;
                                    ?>
                                    <a href="<?php echo esc_url( $link ); ?>" class="default-btn"><i class="<?php echo esc_attr( $icon ); ?>"></i><?php echo esc_html( $button_text ); ?><span></span></a>
                                <?php endif; ?>

                            </div>
                        </div>
                    </div>
                </div>

                <?php if( $settings['shape_image1']['url'] != '' ): ?>
                    <div class="shape1" data-speed="0.06" data-revert="true">
                        <?php if( $is_lazyloader == true ): ?>
                            <img sm-src="<?php echo esc_url( $settings['shape_image1']['url'] ); ?>" alt="<?php echo esc_attr__( 'درباره ما' ); ?>">
                        <?php else: ?>
                         <img src="<?php echo esc_url( $settings['shape_image1']['url'] ); ?>" alt="<?php echo esc_attr__( 'درباره ما' ); ?>">
                        <?php endif; ?>
                        </div>
                <?php endif; ?>

                <?php if( $settings['shape_image2']['url'] != '' ): ?>
                    <div class="shape2" data-speed="0.06" data-revert="true">
                        <?php if( $is_lazyloader == true ): ?>
                            <img sm-src="<?php echo esc_url( $settings['shape_image2']['url'] ); ?>" alt="<?php echo esc_attr__( 'درباره ما' ); ?>">
                        <?php else: ?>
                            <img src="<?php echo esc_url( $settings['shape_image2']['url'] ); ?>" alt="<?php echo esc_attr__( 'درباره ما' ); ?>">
                        <?php endif; ?>
                    </div>
                <?php endif; ?>

                <?php if( $settings['shape_image3']['url'] != '' ): ?>
                    <div class="shape3" data-speed="0.06" data-revert="true">
                        <?php if( $is_lazyloader == true ): ?>
                            <img sm-src="<?php echo esc_url( $settings['shape_image3']['url'] ); ?>" alt="<?php echo esc_attr__( 'درباره ما' ); ?>">
                        <?php else: ?>
                            <img src="<?php echo esc_url( $settings['shape_image3']['url'] ); ?>" alt="<?php echo esc_attr__( 'درباره ما' ); ?>">
                        <?php endif; ?>
                    </div>
                <?php endif; ?>

                <?php if( $settings['shape_image4']['url'] != '' ): ?>
                    <div class="shape4" data-speed="0.06" data-revert="true">
                        <?php if( $is_lazyloader == true ): ?>
                            <img sm-src="<?php echo esc_url( $settings['shape_image4']['url'] ); ?>" alt="<?php echo esc_attr__( 'درباره ما' ); ?>">
                        <?php else: ?>
                            <img src="<?php echo esc_url( $settings['shape_image4']['url'] ); ?>" alt="<?php echo esc_attr__( 'درباره ما' ); ?>">
                        <?php endif; ?>
                    </div>
                <?php endif; ?>
            </div>
        <?php elseif( $settings['style'] == '2' ): ?>
            <div class="about-area ptb-100">
                <div class="container">
                    <div class="row align-items-center">
                        <?php if( $settings['image1']['url'] != '' ): ?>
                            <div class="col-lg-6 col-md-12">
                                <div class="about-image text-center">
                                    <?php if( $is_lazyloader == true ): ?>
                                        <img sm-src="<?php echo esc_url( $settings['image1']['url'] ); ?>" alt="<?php echo esc_attr__( 'درباره ما' ); ?>">
                                    <?php else: ?>
                                        <img src="<?php echo esc_url( $settings['image1']['url'] ); ?>" alt="<?php echo esc_attr__( 'درباره ما' ); ?>">
                                    <?php endif; ?>
                                </div>
                            </div>
                        <?php endif; ?>
                        <div class="col-lg-6 col-md-12">
                            <div class="about-content">
                                <span class="sub-title"><?php echo esc_html( $settings['top_title'] ); ?></span>
                                <<?php echo esc_attr( $settings['title_tag'] ); ?> <?php echo $this-> get_render_attribute_string('title'); ?>><?php echo esc_html( $settings['title'] ); ?></<?php echo esc_attr( $settings['title_tag'] ); ?>>
                                <p <?php echo $this-> get_render_attribute_string('content'); ?>><?php echo wp_kses_post( $settings['content'] ); ?></p>
                                <?php if( $settings['list_items'] ): ?>
                                    <ul class="features-list">
                                        <?php foreach( $settings['list_items'] as $item ):
                                            // Icon
                                            $icon = '';
                                            $icon =$item['default_icon'];
                                            ?>
                                            <?php if( $icon != ''|| $item['title'] != '' ): ?>
                                                <li><span><i class="<?php echo esc_attr( $icon ); ?>"></i> <?php echo esc_html( $item['title'] ); ?></span></li>
                                            <?php endif; ?>
                                        <?php endforeach; ?>
                                    </ul>
                                <?php endif; ?>

                                <?php if( $button_text != '' ):
                                        // Button Icon
                                        if( $settings['button_icon'] != '' ):
                                            $icon = $settings['button_icon'];
                                        else:
                                            $icon = 'flaticon-user';
                                        endif;
                                    ?>
                                    <a href="<?php echo esc_url( $link ); ?>" class="default-btn"><i class="<?php echo esc_attr( $icon ); ?>"></i><?php echo esc_html( $button_text ); ?><span></span></a>
                                <?php endif; ?>
                            </div>
                        </div>
                    </div>
                </div>
                <?php if( $settings['shape_image12']['url'] != '' ): ?>
                    <div class="bulb">
                        <?php if( $is_lazyloader == true ): ?>
                            <img sm-src="<?php echo esc_url( $settings['shape_image12']['url'] ); ?>" alt="<?php echo esc_attr__( 'درباره ما' ); ?>">
                        <?php else: ?>
                            <img src="<?php echo esc_url( $settings['shape_image12']['url'] ); ?>" alt="<?php echo esc_attr__( 'درباره ما' ); ?>">
                        <?php endif; ?>
                    </div>
                <?php endif; ?>
            </div>
        <?php elseif( $settings['style'] == '4' ): ?>
            <div class="why-choose-us-area ptb-100">
                <div class="container-fluid">
                    <div class="row align-items-center">
                        <div class="col-lg-6 col-md-12">
                            <div class="why-choose-us-image">
                                <?php if( $settings['image1']['url'] != '' ): ?>
                                    <div class="about-image text-center">
                                        <?php if( $is_lazyloader == true ): ?>
                                            <img sm-src="<?php echo esc_url( $settings['image1']['url'] ); ?>" alt="<?php echo esc_attr__( 'درباره ما' ); ?>">
                                        <?php else: ?>
                                            <img src="<?php echo esc_url( $settings['image1']['url'] ); ?>" alt="<?php echo esc_attr__( 'درباره ما' ); ?>">
                                        <?php endif; ?>
                                    </div>
                                </div>
                            <?php endif; ?>
                        </div>

                        <div class="col-lg-6 col-md-12">
                            <div class="why-choose-us-content">
                                <span class="sub-title"><?php echo esc_html( $settings['top_title'] ); ?></span>
                                <<?php echo esc_attr( $settings['title_tag'] ); ?> <?php echo $this-> get_render_attribute_string('title'); ?>><?php echo esc_html( $settings['title'] ); ?></<?php echo esc_attr( $settings['title_tag'] ); ?>>
                                <p <?php echo $this-> get_render_attribute_string('content'); ?>><?php echo wp_kses_post( $settings['content'] ); ?></p>
                                <?php if( $settings['list_items'] ): ?>
                                    <ul class="features-list">
                                        <?php foreach( $settings['list_items'] as $item ):
                                            // Icon
                                            $icon = '';
                                            $icon =$item['default_icon'];
                                            ?>
                                            <?php if( $icon != ''|| $item['title'] != '' ): ?>
                                                <li><span><i class="<?php echo esc_attr( $icon ); ?>"></i> <?php echo esc_html( $item['title'] ); ?></span></li>
                                            <?php endif; ?>
                                        <?php endforeach; ?>
                                    </ul>

                                    <?php if( $button_text != '' ):
                                        // Button Icon
                                            if( $settings['button_icon'] != '' ):
                                                $icon = $settings['button_icon'];
                                            else:
                                                $icon = 'flaticon-user';
                                            endif;
                                        ?>
                                        <a href="<?php echo esc_url( $link ); ?>" class="default-btn"><i class="<?php echo esc_attr( $icon ); ?>"></i><?php echo esc_html( $button_text ); ?><span></span></a>
                                    <?php endif; ?>
                                <?php endif; ?>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        <?php elseif( $settings['style'] == '3' ): ?>
            <div class="about-area ptb-100">
                <div class="container">
                    <div class="row align-items-center">
                        <div class="col-lg-6 col-md-12">
                            <div class="kindergarten-about-image">
                                <div class="main-image">
                                    <?php if( $settings['image1']['url'] != '' ): ?>
                                        <?php if( $is_lazyloader == true ): ?>
                                            <img sm-src="<?php echo esc_url( $settings['image1']['url'] ); ?>" alt="<?php echo esc_attr_e( 'درباره ما' ); ?>">
                                        <?php else: ?>
                                            <img src="<?php echo esc_url( $settings['image1']['url'] ); ?>" alt="<?php echo esc_attr_e( 'درباره ما' ); ?>">
                                        <?php endif; ?>
                                    <?php endif; ?>
                                    <?php if( $settings['image2']['url'] != '' ): ?>
                                        <?php if( $is_lazyloader == true ): ?>
                                            <img sm-src="<?php echo esc_url( $settings['image2']['url'] ); ?>" alt="<?php echo esc_attr_e( 'درباره ما' ); ?>">
                                        <?php else: ?>
                                            <img src="<?php echo esc_url( $settings['image2']['url'] ); ?>" alt="<?php echo esc_attr_e( 'درباره ما' ); ?>">
                                        <?php endif; ?>
                                    <?php endif; ?>
                                </div>
                                <?php if( $settings['shape_image1']['url'] != '' ): ?>
                                    <div class="shape">
                                        <?php if( $is_lazyloader == true ): ?>
                                            <img sm-src="<?php echo esc_url( $settings['shape_image1']['url'] ); ?>" alt="<?php echo esc_attr_e( 'درباره ما' ); ?>">
                                        <?php else: ?>
                                            <img src="<?php echo esc_url( $settings['shape_image1']['url'] ); ?>" alt="<?php echo esc_attr_e( 'درباره ما' ); ?>">
                                        <?php endif; ?>
                                    </div>
                                <?php endif; ?>
                            </div>
                        </div>

                        <div class="col-lg-6 col-md-12">
                            <div class="about-content">
                                <span class="sub-title"><?php echo esc_html( $settings['top_title'] ); ?></span>
                                <<?php echo esc_attr( $settings['title_tag'] ); ?> class="font-weight-black" <?php echo $this-> get_render_attribute_string('title'); ?>><?php echo esc_html( $settings['title'] ); ?></<?php echo esc_attr( $settings['title_tag'] ); ?>>
                                <div <?php echo $this-> get_render_attribute_string('content'); ?>><?php echo wp_kses_post( $settings['content'] ); ?></div>

                                <ul class="about-list">
                                    <?php foreach( $settings['list_items'] as $item ):
                                        // Icon
                                        $icon = 'bx bx-check';
                                        if( $item['default_icon'] != '' ):
                                            $icon = $item['default_icon'];
                                        else:
                                        $icon = 'bx bx-check';
                                        endif;

                                        ?>
                                        <li><span><i class="<?php echo esc_attr( $icon ); ?>"></i> <?php echo esc_html( $item['title'] ); ?></span></li>
                                    <?php endforeach; ?>
                                </ul>

                                <?php if( $button_text != '' ):
                                        // Button Icon
                                        if( $settings['button_icon'] != '' ):
                                            $icon = $settings['button_icon'];
                                        else:
                                            $icon = 'flaticon-user';
                                        endif;
                                    ?>
                                    <a href="<?php echo esc_url( $link ); ?>" class="default-btn-style-two"><i class="<?php echo esc_attr( $icon ); ?>"></i><?php echo esc_html( $button_text ); ?><span></span></a>
                                <?php endif; ?>
                            </div>
                        </div>
                    </div>
                </div>

                <?php if( $settings['shape_image2']['url'] != '' ): ?>
                    <div class="kindergarten-shape7">
                        <?php if( $is_lazyloader == true ): ?>
                            <img sm-src="<?php echo esc_url( $settings['shape_image2']['url'] ); ?>" alt="<?php echo esc_attr_e( 'شکل تصویر' ); ?>">
                        <?php else: ?>
                            <img src="<?php echo esc_url( $settings['shape_image2']['url'] ); ?>" alt="<?php echo esc_attr_e( 'شکل تصویر' ); ?>">
                        <?php endif; ?>
                        </div>
                <?php endif; ?>
                <?php if( $settings['shape_image3']['url'] != '' ): ?>
                    <div class="kindergarten-shape8">
                        <?php if( $is_lazyloader == true ): ?>
                            <img sm-src="<?php echo esc_url( $settings['shape_image3']['url'] ); ?>" alt="<?php echo esc_attr_e( 'شکل تصویر' ); ?>">
                        <?php else: ?>
                            <img src="<?php echo esc_url( $settings['shape_image3']['url'] ); ?>" alt="<?php echo esc_attr_e( 'شکل تصویر' ); ?>">
                        <?php endif; ?>
                    </div>
                <?php endif; ?>
            </div>
        <?php endif; ?>
        <?php
	}


}

Plugin::instance()->widgets_manager->register( new eCademy_Distance_Learning );