<?php
$email_common = cev_pro()->function;
$CEV_Customizer_Options = new CEV_Customizer_Options();
$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_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'] );
$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_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'] );

$content = str_replace( '{login_otp}', $login_otp, $content );
?>
<style>
.cev_devie_details{
	padding: 0;
}
.cev_devie_details li{
	margin-left: 0;
}
#template_header {
	display:none;
}
#template_container,#template_body{
	width: <?php esc_html_e( $cev_widget_content_width_style ); ?>;
	border-color: <?php esc_html_e( $cev_verification_content_border_color ); ?>;
	border-width: 1px;
	border-style: solid;
}
#body_content{
	background-color: <?php esc_html_e( $cev_verification_content_background_color ); ?>;
	padding: <?php esc_html_e( $cev_widget_content_padding_style ); ?>px !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 esc_html_e( $cev_content_align_style ); ?>;" >
	<?php if ( $cev_verification_image_content ) { ?>	
		<img src="<?php esc_html_e( $cev_verification_image_content ); ?>" width="<?php esc_html_e( $cev_new_email_image_width ); ?>">
	<?php } ?>
	<div style="padding-top: 15px;"> 
		<p style="font-weight: 600; font-size: <?php esc_html_e( $cev_header_content_font_size ); ?>px ; color:<?php esc_html_e( $cev_verification_content_font_color ); ?>; text-align:<?php esc_html_e( 	$cev_content_align_style ); ?>;">
			<?php esc_html_e( $email_heading ); ?>
		</p>
	</div>
	<div style="text-align:<?php esc_html_e( $cev_content_align_style ); ?>;"><?php echo wp_kses_post( wpautop( wptexturize( $content ) ) ); ?></div>
</div>
<div style="text-align:<?php esc_html_e( $cev_content_align_style ); ?>;"><?php echo wp_kses_post( $footer_content ); ?></div>
