ID,'et_ptemplate_settings',true) ); $fullwidth = isset( $et_ptemplate_settings['et_fullwidthpage'] ) ? (bool) $et_ptemplate_settings['et_fullwidthpage'] : false; $et_regenerate_numbers = isset( $et_ptemplate_settings['et_regenerate_numbers'] ) ? (bool) $et_ptemplate_settings['et_regenerate_numbers'] : false; $et_error_message = ''; $et_contact_error = false; if ( isset($_POST['et_contactform_submit']) ) { if ( !isset($_POST['et_contact_captcha']) || empty($_POST['et_contact_captcha']) ) { $et_error_message .= '

' . esc_html__('Make sure you entered the captcha. ','SimplePress') . '

'; $et_contact_error = true; } else if ( $_POST['et_contact_captcha'] <> ( $_SESSION['et_first_digit'] + $_SESSION['et_second_digit'] ) ) { $et_numbers_string = $et_regenerate_numbers ? __('Numbers regenerated.') : ''; $et_error_message .= '

' . esc_html__('You entered the wrong number in captcha. ','SimplePress') . $et_numbers_string . '

'; if ($et_regenerate_numbers) { unset( $_SESSION['et_first_digit'] ); unset( $_SESSION['et_second_digit'] ); } $et_contact_error = true; } else if ( empty($_POST['et_contact_name']) || empty($_POST['et_contact_email']) || empty($_POST['et_contact_subject']) || empty($_POST['et_contact_message']) ){ $et_error_message .= '

' . esc_html__('Make sure you fill all fields. ','SimplePress') . '

'; $et_contact_error = true; } if ( !is_email( $_POST['et_contact_email'] ) ) { $et_error_message .= '

' . esc_html__('Invalid Email. ','SimplePress') . '

'; $et_contact_error = true; } } else { $et_contact_error = true; if ( isset($_SESSION['et_first_digit'] ) ) unset( $_SESSION['et_first_digit'] ); if ( isset($_SESSION['et_second_digit'] ) ) unset( $_SESSION['et_second_digit'] ); } if ( !isset($_SESSION['et_first_digit'] ) ) $_SESSION['et_first_digit'] = $et_first_digit = rand(1, 15); else $et_first_digit = $_SESSION['et_first_digit']; if ( !isset($_SESSION['et_second_digit'] ) ) $_SESSION['et_second_digit'] = $et_second_digit = rand(1, 15); else $et_second_digit = $_SESSION['et_second_digit']; if ( !$et_contact_error ) { $et_email_to = ( isset($et_ptemplate_settings['et_email_to']) && !empty($et_ptemplate_settings['et_email_to']) ) ? $et_ptemplate_settings['et_email_to'] : get_site_option('admin_email'); $et_site_name = is_multisite() ? $current_site->site_name : get_bloginfo('name'); wp_mail($et_email_to, sprintf( '[%s] ' . esc_html($_POST['et_contact_subject']), $et_site_name ), esc_html($_POST['et_contact_message']),'From: "'. esc_html($_POST['et_contact_name']) .'" <' . esc_html($_POST['et_contact_email']) . '>'); $et_error_message = '

' . esc_html__('Thanks for contacting us','SimplePress') . '

'; } ?>
'' && get_option('simplepress_integrate_singletop_enable') == 'on') echo(get_option('simplepress_integration_single_top')); ?>


'' && get_option('simplepress_page_thumbnails') == 'on') { ?>
);">

'; echo esc_attr($et_first_digit) . ' + ' . esc_attr($et_second_digit) . ' = '; ?>

'' && get_option('simplepress_integrate_singlebottom_enable') == 'on') echo(get_option('simplepress_integration_single_bottom')); ?> '') echo(get_option('simplepress_468_adsense')); else { ?> 468 ad