__('Join our list', 'essb'), "text" => __('Subscribe to our mailing list and get interesting stuff and updates to your email inbox.', 'essb'), "email" => __('Enter your email here', 'essb'), "name" => __('Enter your name here', 'essb'), "button" => __('Sign Up Now', 'essb'), "footer" => __('We respect your privacy and take protecting it seriously', 'essb'), "success" => __('Thank you for subscribing.', 'essb'), "error" => __('Something went wrong.', 'essb') ); $subscribe_mc_title = ESSBOptionValuesHelper::options_value($essb_options, 'subscribe_mc_title4'); $subscribe_mc_text = ESSBOptionValuesHelper::options_value($essb_options, 'subscribe_mc_text4'); $subscribe_mc_email = ESSBOptionValuesHelper::options_value($essb_options, 'subscribe_mc_email4'); $subscribe_mc_name = ESSBOptionValuesHelper::options_value($essb_options, 'subscribe_mc_name4'); $subscribe_mc_button = ESSBOptionValuesHelper::options_value($essb_options, 'subscribe_mc_button4'); $subscribe_mc_footer = ESSBOptionValuesHelper::options_value($essb_options, 'subscribe_mc_footer4'); $subscribe_mc_success = ESSBOptionValuesHelper::options_value($essb_options, 'subscribe_mc_success4'); $subscribe_mc_error = ESSBOptionValuesHelper::options_value($essb_options, 'subscribe_mc_error4'); $subscribe_mc_image3 = ESSBOptionValuesHelper::options_value($essb_options, 'subscribe_mc_image4'); $subscribe_mc_imagealign3 = ESSBOptionValuesHelper::options_value($essb_options, 'subscribe_mc_imagealign4'); $subscribe_mc_title = stripslashes($subscribe_mc_title); $subscribe_mc_text = stripslashes($subscribe_mc_text); $subscribe_mc_email = stripslashes($subscribe_mc_email); $subscribe_mc_name = stripslashes($subscribe_mc_name); $subscribe_mc_button = stripslashes($subscribe_mc_button); $subscribe_mc_footer = stripslashes($subscribe_mc_footer); $subscribe_mc_success = stripslashes($subscribe_mc_success); $subscribe_mc_error = stripslashes($subscribe_mc_error); if (empty($subscribe_mc_title)) $subscribe_mc_title = $default_texts['title']; if (empty($subscribe_mc_text)) $subscribe_mc_text = $default_texts['text']; if (empty($subscribe_mc_email)) $subscribe_mc_email = $default_texts['email']; if (empty($subscribe_mc_name)) $subscribe_mc_name = $default_texts['name']; if (empty($subscribe_mc_button)) $subscribe_mc_button = $default_texts['button']; if (empty($subscribe_mc_footer)) $subscribe_mc_footer = $default_texts['footer']; if (empty($subscribe_mc_success)) $subscribe_mc_success = $default_texts['success']; if (empty($subscribe_mc_error)) $subscribe_mc_error = $default_texts['error']; $subscribe_mc_title = do_shortcode($subscribe_mc_title); $subscribe_mc_text = do_shortcode($subscribe_mc_text); $subscribe_mc_footer = do_shortcode($subscribe_mc_footer); global $wp; $current_url = add_query_arg( $wp->query_string, '', home_url( $wp->request ) ); $secure_nonce = wp_create_nonce('essb3_subscribe_nonce'); $current_url = add_query_arg('essb3_subscribe_nonce', $secure_nonce, $current_url); $output = '
'; if ($subscribe_mc_imagealign3 == '' || $subscribe_mc_imagealign3 == 'left') { $output .= '
'; // generating form output $output .= '
'; if ($subscribe_mc_namefield) { $output .= ''; } $output .= ''; $output .= ESSBNetworks_Subscribe::generate_if_needed_agree_check(); $output .= ''; $output .= '
'; $output .= '
'; $output .= '

'.$subscribe_mc_success.'

'; $output .= '

'.$subscribe_mc_error.'

'; $output .= '
'; $output .= '
'; } $output .= '
'; if ($subscribe_mc_image3 != '') { $output .= '
'; } $output .= '

'.$subscribe_mc_title.'

'; $output .= '

'.$subscribe_mc_text.'

'; $output .= ''; $output .= '
'; if ($subscribe_mc_imagealign3 == 'right') { $output .= '
'; // generating form output $output .= '
'; if ($subscribe_mc_namefield) { $output .= ''; } $output .= ''; $output .= ESSBNetworks_Subscribe::generate_if_needed_agree_check(); $output .= ''; $output .= '
'; $output .= '
'; $output .= '

'.$subscribe_mc_success.'

'; $output .= '

'.$subscribe_mc_error.'

'; $output .= '
'; $output .= '
'; } $output .= '
'; return $output; } }