<?php

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

/**
 * @param EAPSGT_PopupTemplateSetting $templateSetting
 */
function eapsgt_template_general_04( $templateSetting ) {
	?>
    <div id="eapsgt-welcome4" class="eapsgt-pop eapsgt-sgtpopup">
        <div class="eapsgt-builder eapsgt-bld-showme">
            <div class="eapsgt-bld__step__content eapsgt-bld__center eapsgt-popup_content-<?php the_ID(); ?> eapsgt-popup-class-<?php the_ID(); ?>"
                 data-id="<?php the_ID(); ?>">
                <div id="eapsgt-bld__step__inner" data-width="<?php echo $templateSetting->width ?>"
                     data-height="<?php echo $templateSetting->height ?>"
                     class="eapsgt-bld__step eapsgt-bld__step-1 eapsgt-bld-showme eapsgt-bld__popup04"
                     style="width: <?php echo $templateSetting->width ?>px; height: <?php echo $templateSetting->height ?>px">
                    <div id="eapsgt-bld__top"
                         class="eapsgt-bld__top eapsgt-bld__top__popup04"
                         style="background: url(
					     <?php echo( ( $templateSetting->bgImage == "" ) ? ( EAPSGT_PLUGIN_URL . 'assets/img/background_popup04.png' ) : ( $templateSetting->bgImage ) ); ?>) ;
                                 background-color: #fff; background-position: center; background-repeat: no-repeat; background-size: contain;">
                        <div class="eapsgt-button__close eapsgt-close__popup04"
                             data-id="<?php the_ID(); ?>">
                            <img src="<?php echo EAPSGT_PLUGIN_URL . 'assets/img/close_popup01.png' ?>"
                                 alt="Close">
                        </div>
                    </div>
                    <div id="eapsgt-bld__bottom"
                         class="eapsgt-bld__bottom eapsgt-bld__bottom__popup04">
                        <div id="eapsgt-description01"
                             class="eapsgt-description01 eapsgt-content__description eapsgt-content__description__number07">
							<?php echo nl2br( $templateSetting->description1 ) ?>
                        </div>
                        <div class="eapsgt-call__action eapsgt-call__action04">
                            <a href="<?php echo $templateSetting->buttonUrl ?>"
                               class="eapsgt-call__link eapsgt-call__link04"
                               id="eapsgt-call__link"
                               target="_blank"><?php echo $templateSetting->buttonText ?></a>

                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
	<?php
}

;
add_filter( 'eapsgt_general_template_04', 'eapsgt_template_general_04' );
