<?php 
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

$cev_verification_image_content = cev_pro()->function->cev_pro_customizer_settings( 'cev_verification_image_content', cev_pro()->plugin_dir_url() . 'assets/css/images/email-verification.png' );
$cev_new_email_image_width      = cev_pro()->function->cev_pro_customizer_settings( 'cev_email_content_widget_header_image_width', cev_pro()->customizer_options->defaults['cev_email_content_widget_header_image_width'] );
$cev_content_align_style        = cev_pro()->function->cev_pro_customizer_settings( 'cev_content_align_style', cev_pro()->customizer_options->defaults['cev_content_align_style'] );
$cev_verification_content_font_color = cev_pro()->function->cev_pro_customizer_settings( 'cev_verification_content_font_color', cev_pro()->customizer_options->defaults['cev_verification_content_font_color'] );
$cev_header_content_font_size = cev_pro()->function->cev_pro_customizer_settings( 'cev_header_content_font_size', cev_pro()->customizer_options->defaults['cev_header_content_font_size'] );

$cev_widget_content_width_style = cev_pro()->function->cev_pro_customizer_settings( 'cev_widget_content_width_style', cev_pro()->customizer_options->defaults['cev_widget_content_width_style'] );
$cev_verification_content_background_color = cev_pro()->function->cev_pro_customizer_settings( 'cev_verification_content_background_color', cev_pro()->customizer_options->defaults['cev_verification_content_background_color'] );
$cev_verification_content_border_color = cev_pro()->function->cev_pro_customizer_settings( 'cev_verification_content_border_color', cev_pro()->customizer_options->defaults['cev_verification_content_border_color'] );
$cev_widget_content_padding_style = cev_pro()->function->cev_pro_customizer_settings( 'cev_widget_content_padding_style', cev_pro()->customizer_options->defaults['cev_widget_content_padding_style'] );
?>
<style>
#template_header {
	display:none;
}
#template_container,#template_body{
	width: <?php echo esc_attr( $cev_widget_content_width_style ); ?>px !important;
	border: 1px solid <?php echo esc_attr( $cev_verification_content_border_color ); ?> !important;

}
#body_content{
	background-color: <?php echo esc_attr( $cev_verification_content_background_color ); ?> !important;
	padding: <?php echo esc_attr( $cev_widget_content_padding_style ); ?>px !important;
}
#body_content, #body_content p, #body_content div, #body_content table, #body_content td {
	color: <?php echo esc_attr( $cev_verification_content_font_color ); ?> !important;
}
#body_content table tr td {
	padding: 0;
}
#template_header_image{
	display: none;
}
div#wrapper {
	padding-top: 40px;
}
</style>
<div style="width:100%; margin-bottom: 0; text-align:<?php echo esc_attr( $cev_content_align_style ); ?>;" >
	<?php if ( $cev_verification_image_content ) { ?>	
		<img src="<?php echo esc_url( $cev_verification_image_content ); ?>" width="<?php echo esc_attr( $cev_new_email_image_width ); ?>" alt="<?php esc_attr_e( 'Email verification', 'customer-email-verification' ); ?>">
	<?php } ?>
	<div style="padding-top: 15px;"> 
		<p style="font-weight: 600; font-size: <?php echo esc_attr( $cev_header_content_font_size ); ?>px; color:<?php echo esc_attr( $cev_verification_content_font_color ); ?>; text-align:<?php echo esc_attr( $cev_content_align_style ); ?>;">
			<?php echo wp_kses_post( $email_heading ); ?>
		</p>
	</div>   
	<div style="text-align:<?php echo esc_attr( $cev_content_align_style ); ?>; color:<?php echo esc_attr( $cev_verification_content_font_color ); ?>;">
		<?php echo wp_kses_post( wpautop( $content ) );	?>
	</div>
</div>
<div style="text-align:<?php echo esc_attr( $cev_content_align_style ); ?>; color:<?php echo esc_attr( $cev_verification_content_font_color ); ?>;"><?php echo wp_kses_post( $footer_content ); ?></div>
