<?php

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

/**
 * @param EAPSGT_PopupTemplateSetting $templateSetting
 */
function eapsgt_template_general_02( $templateSetting ) {
	?>
    <div id="eapsgt-welcome2" 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__popup02"
                     style="width: <?php echo $templateSetting->width ?>px; height: <?php echo $templateSetting->height ?>px">
                    <div class="eapsgt-bld__top eapsgt-bld__top__popup02"
                         style="background: url(
					     <?php echo( ( $templateSetting->bgImage == "" ) ? ( EAPSGT_PLUGIN_URL . 'assets/img/background_popup02.png' ) : ( $templateSetting->bgImage ) ); ?>) ;
                                 background-position: left center; background-repeat: no-repeat; background-size: cover;">
                        <div class="eapsgt-button__close eapsgt-close__popup02"
                             data-id="<?php the_ID(); ?>">
                            <img src="<?php echo EAPSGT_PLUGIN_URL . 'assets/img/close_popup02.png' ?>"
                                 alt="Close">
                        </div>
                        <div class="eapsgt-content__image eapsgt-content__image02">
                            <img src="<?php echo( ( $templateSetting->logoUrl == "" ) ? ( EAPSGT_PLUGIN_URL . 'assets/img/logo_02.png' ) : ( $templateSetting->logoUrl ) ); ?>"
                                 alt="Image Top" class="eapsgt-content__image">
                        </div>
                        <div class="eapsgt-content__image__num02 eapsgt-content__image02__num02">
                            <img src="<?php echo( ( $templateSetting->logoUrl2 == "" ) ? ( EAPSGT_PLUGIN_URL . 'assets/img/logo_num02_pop02.gif' ) : ( $templateSetting->logoUrl2 ) ); ?>"
                                 alt="Image Top 02" class="eapsgt-content__image__num02">
                        </div>
                    </div>
                    <div class="eapsgt-bld__bottom eapsgt-bld__bottom__popup02">
                        <h2 class="eapsgt-bld__title eapsgt-content__title">
							<?php echo $templateSetting->headline ?>
                        </h2>
                        <div class="eapsgt-description01 eapsgt-content__description eapsgt-content__description__number04">
							<?php echo nl2br( $templateSetting->description1 ) ?>
                        </div>
                        <div class="eapsgt-description02 eapsgt-content__description eapsgt-content__description__number05">
							<?php echo nl2br( $templateSetting->description2 ) ?>
                        </div>
                        <div class="eapsgt-call__action eapsgt-call__action02">
                            <a href="<?php echo $templateSetting->buttonUrl ?>"
                               class="eapsgt-call__link eapsgt-call__link02"
                               target="_blank"><?php echo $templateSetting->buttonText ?></a>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
	<?php
}

;
add_filter( 'eapsgt_general_template_02', 'eapsgt_template_general_02' );
