here to unsubscribe."; $default['ig_es_optintype'] = "Double Opt In"; $default['ig_es_confirmsubject'] = $blogname . " - Please confirm your subscription"; $default['ig_es_confirmcontent'] = "Hi ###NAME###,\r\n\r\nWe have received a subscription request from this email address. Please confirm it by clicking here.\r\n\r\nIf you still cannot subscribe, please copy this link and paste it in your browser :\r\n###LINK### \r\n\r\nThank You\r\n".$blogname; $default['ig_es_optinlink'] = $optinlink; $default['ig_es_unsublink'] = $unsublink; $default['ig_es_unsubcontent'] = "No longer interested in emails from ".$blogname."?. Please click here to unsubscribe"; $default['ig_es_unsubtext'] = "Thank You, You have been successfully unsubscribed. You will no longer hear from us."; $default['ig_es_successmsg'] = "You have been successfully subscribed."; $default['ig_es_suberror'] = "Oops.. Your request couldn't be completed. This email address seems to be already subscribed / blocked."; $default['ig_es_unsuberror'] = "Oops.. There was some technical error. Please try again later or contact us."; foreach ( $default as $option_name => $option_value ) { update_option( $option_name, $option_value ); } } return true; } public static function es_subscriber_default() { $result = es_cls_dbquery::es_view_subscriber_count(0); if ($result == 0) { $form["es_email_mail"] = get_option('admin_email'); $form["es_email_name"] = "Admin"; $form["es_email_group"] = "Public"; $form["es_email_status"] = "Confirmed"; es_cls_dbquery::es_view_subscriber_ins($form, "insert"); $form["es_email_mail"] = "a.example@example.com"; $form["es_email_name"] = "Example"; $form["es_email_group"] = "Public"; $form["es_email_status"] = "Confirmed"; es_cls_dbquery::es_view_subscriber_ins($form, "insert"); } return true; } public static function es_template_default() { $result = es_cls_compose::es_template_count(0); if ($result == 0) { // Adding a sample Post Notification content $es_b = "Hello ###NAME###,\r\n\r\n"; $es_b .= "We have published a new blog article on our website : ###POSTTITLE###\r\n"; $es_b .= "###POSTIMAGE###\r\n\r\n"; $es_b .= "You can view it from this link : "; $es_b .= "###POSTLINK###\r\n\r\n"; $es_b .= "Thanks & Regards,\r\n"; $es_b .= "Admin\r\n\r\n"; $es_b .= "You received this email because in the past you have provided us your email address : ###EMAIL### to receive notifications when new updates are posted."; $form['es_templ_heading'] = 'New Post Published - ###POSTTITLE###'; $form['es_templ_body'] = $es_b; $form['es_templ_status'] = 'Published'; $form['es_email_type'] = 'Post Notification'; $action = es_cls_compose::es_template_ins($form, $action = "insert"); // Adding a sample Newsletter content $Sample = 'What can you achieve using Email Subscribers?
Add subscription forms on website, send HTML newsletters & automatically notify subscribers about new blog posts once it is published.'; $Sample .= ' You can also Import or Export subscribers from any list to Email Subscribers.
'; $Sample .= ' Plugin Features