<?php 
    $this->add_render_attribute( 'title', 'class', 'elementor-gt-heading section_title tx-split-text split-in-up' );
?>
<section id="gt-newslatter-6" class="gt-newslatter-section-6 position-relative">

    <?php if(!empty($settings['shape']['url'])):?>
        <span class="gt-newslatter-cloud img-parallax position-absolute"><img src="<?php echo esc_url($settings['shape']['url']);?>" alt="<?php if(!empty($settings['shape']['alt'])){ echo esc_attr($settings
        ['shape']['alt']);}?>"></span>
    <?php endif;?>

    <?php if(!empty($settings['shape2']['url'])):?>
        <span class="gt-newslatter-cloud2 img-parallax position-absolute"><img src="<?php echo esc_url($settings['shape2']['url']);?>" alt="<?php if(!empty($settings['shape2']['alt'])){ echo esc_attr($settings
        ['shape2']['alt']);}?>"></span>
    <?php endif;?>

    <div class="container">
        <div class="gt-section-title-1 pera-content text-center txt-text-anim headline-3">
        <?php if($settings['sub_title_show'] === 'yes'):?>
            <div class="elementor-goyto-sub subtitle cursive-font wow fadeInRight"  data-wow-delay="200ms" data-wow-duration="1000ms">
                <?php if(!empty($settings['title_shape']['url'])):?>
                    <img src="<?php echo esc_url($settings['title_shape']['url']);?>" alt="<?php if(!empty($settings['title_shape']['alt'])){ echo esc_attr($settings['title_shape']['alt']);}?>"> 
                <?php endif;?>    
                <?php echo wp_kses($settings['subtitle'], true);?>
            </div>
        <?php endif;?>
            <?php printf('<%1$s %2$s>%3$s</%1$s>',
                tag_escape($settings['title_tag']),
                $this->get_render_attribute_string('title'),
                $settings['title']
            ); ?>
        </div>
        <?php if(!empty($settings['shortcodes'])):?>
            <div class="gt-newslatter-form-6">
                <?php echo do_shortcode($settings['shortcodes']);?>
            </div>
        <?php endif;?>
    </div>
    <?php if(!empty($settings['bg_img']['url'])):?>
        <div class="gt-newslatter-bg-6"><img src="<?php echo esc_url($settings['bg_img']['url']);?>" alt="<?php if(!empty($settings['bg_img']['alt'])){ echo esc_attr($settings
        ['bg_img']['alt']);}?>"></div>
    <?php endif;?>
</section>