<?php
/**
 * Subscribe Popup
 */

if( class_exists( 'ReduxFramework' ) ) {
	$celebshine_options = get_option( 'celebshine_options' );
	if( $celebshine_options['opt-subscribe'] == "1" ){
		if( !empty( $celebshine_options['subscribe-shortcode'] ) ){ ?>
			<div class="email-popup-con">
				<div class="email-popup-inner-con">
					<span class="nothanks"></span>

					<?php if( ! empty( $celebshine_options['subscribe-image']['url'] ) ){ ?>
						<div class="email-popup-img-con col-lg-5 col-md-6 col-12">		
							<div class="newsletter_01 newsletter">
								<img src="<?php echo esc_url( $celebshine_options['subscribe-image']['url'] ); ?>" alt="<?php esc_attr__( 'Email Subscribe Image', 'celebshine' ); ?>">
							</div>
						</div>
					<?php } ?>

					<div class="message-overlay-con col-lg-3 col-md-6 col-12">
						<?php
						if( !empty( $celebshine_options['subscribe-title'] ) ){ ?>
							<span class="message"><?php echo esc_html( $celebshine_options['subscribe-title'] ); ?></span>
							<?php
						}
						if( !empty( $celebshine_options['subscribe-title'] ) ){ ?>
							<span class="message-desc"><?php echo esc_html( $celebshine_options['subscribe-text'] ); ?></span>
							<?php
						} ?>
					</div>
					<?php echo do_shortcode( $celebshine_options['subscribe-shortcode'] ); ?>
				</div>
			</div>
			<?php
		}
	}
}
