Easy Coming Soon - Version 1.4

Version Description

  1. Email Validation Bug Fixed. Plugin now accepts capitalized email address.
Download this release

Release Info

Developer a.ankit
Plugin Icon 128x128 Easy Coming Soon
Version 1.4
Comparing to
See all releases

Code changes from version 1.3 to 1.4

coming-soon-plugin.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  Plugin Name:Easy Coming Soon
4
  Description: Easy coming Soon plugin allows you to quickly create a launch / under construction page for your website. Collect E-mails and connect with users on Social Networks.
5
- Version: 1.3
6
  Author:Deepesh paiwal
7
  Author URI: http://webriti.com
8
  Plugin URI: http://webriti.com
2
  /*
3
  Plugin Name:Easy Coming Soon
4
  Description: Easy coming Soon plugin allows you to quickly create a launch / under construction page for your website. Collect E-mails and connect with users on Social Networks.
5
+ Version: 1.4
6
  Author:Deepesh paiwal
7
  Author URI: http://webriti.com
8
  Plugin URI: http://webriti.com
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
  === Easy Coming Soon ===
2
- Contributors: a.ankit, deepeshpaliwal
3
  Donate link: http://www.webriti.com/
4
  Tags: coming soon, coming soon page, construction, landing page, launch, launch page, maintenance, maintenance mode, under construction, admin, newsletter, offline, site offline, wordpress coming soon, wordpress under construction, wordpress maintenance mode,email,gmail,subscriber,notify,message,user,preview,
5
  Requires at least: 3.3+
6
  Tested up to: 4.0
7
- Stable tag: 1.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -110,6 +110,12 @@ In case you face any problem, contact us via the [Forums](http://wordpress.org/s
110
 
111
  == Changelog ==
112
 
 
 
 
 
 
 
113
  = 1.3 =
114
  1. Remove Grammatical Error
115
  2. Add Background Image Preview
1
  === Easy Coming Soon ===
2
+ Contributors: a.ankit, deepeshpaliwal,priyanshu.mittal
3
  Donate link: http://www.webriti.com/
4
  Tags: coming soon, coming soon page, construction, landing page, launch, launch page, maintenance, maintenance mode, under construction, admin, newsletter, offline, site offline, wordpress coming soon, wordpress under construction, wordpress maintenance mode,email,gmail,subscriber,notify,message,user,preview,
5
  Requires at least: 3.3+
6
  Tested up to: 4.0
7
+ Stable tag: 1.4
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
110
 
111
  == Changelog ==
112
 
113
+ = 1.4 =
114
+ 1. Email Validation Bug Fixed. Plugin now accepts capitalized email address.
115
+
116
+ = 1.3.1 =
117
+ 1. Default text bug fixed. Now the default text is visible when user activate the plugin for the first time.
118
+
119
  = 1.3 =
120
  1. Remove Grammatical Error
121
  2. Add Background Image Preview
template/coming_soon_display.php CHANGED
@@ -25,7 +25,7 @@ $notification_settings =get_option('soon_page_notification_settings');
25
  padding-top:9%;
26
  padding-bottom:9%;
27
  <?php if($general_settings['background']==""){?>
28
- background:<?php if($design_settings['background_color']!==''){echo ($design_settings['background_color']); } else { echo('#21759B');}?> <?php if($design_settings['background_effect']=="1"){ ?> url(<?php echo plugins_url('/images/overlay/overlay-1.png',__FILE__); ?>) repeat <?php } ?> ;
29
  <?php }
30
  else{
31
  ?>
@@ -47,8 +47,8 @@ $notification_settings =get_option('soon_page_notification_settings');
47
  #title_style
48
  {
49
 
50
- color:<?php if($design_settings['title_color']!==''){echo ($design_settings['title_color']); } else { echo('#ffffff');} ?>;
51
- font-size:<?php if($design_settings['title_font_size']!==''){echo ($design_settings['title_font_size']); } else { echo('30');} ?>px;
52
  font-family:<?php echo $design_settings['title_font_format'] ?>;
53
  font-style:normal;
54
  line-height:1.1;
@@ -65,8 +65,8 @@ $notification_settings =get_option('soon_page_notification_settings');
65
  #descrip
66
  {
67
 
68
- color:<?php if($design_settings['descrip_color']!==''){echo ($design_settings['descrip_color']); } else { echo('#ffffff');} ?>;
69
- font-size:<?php if($design_settings['description_font_size']!==''){echo ($design_settings['description_font_size']); } else { echo('20');} ?>px;
70
  font-family:<?php echo $design_settings['description_font_format'] ?>;
71
  font-style:normal;
72
  line-height:1.5;
@@ -104,13 +104,12 @@ $notification_settings =get_option('soon_page_notification_settings');
104
  <div class="hero-unit" style=" background:rgba(0,0,0,0.5);">
105
  <center>
106
  <div id="title_style" >
107
- <h1><?php if($general_settings['title']!==''){echo ucwords($general_settings['title']); } else { echo('coming soon page');} ?></h1></div>
108
 
109
 
110
  <div id="descrip" >
111
 
112
-
113
- <p> <?php if($general_settings['descrip']!==''){echo ($general_settings['descrip']); } else { echo('This website will launch soon. To connect with us enter your email below.');} ?> </p>
114
  </div>
115
 
116
  <?php if ($notification_settings['mailto']=="yes")
@@ -118,9 +117,9 @@ $notification_settings =get_option('soon_page_notification_settings');
118
 
119
  <form id="subscribe" class="form-signin" action="#" method="post" style=" width:80%;background:#2a6888; border:0px groove #333333;padding: 6px 5px 7px 5px; ">
120
 
121
- <input id="email" name="email" type="text" class="input-xlarge" placeholder="<?php if($notification_settings['placeholder_text']!==''){echo ($notification_settings['placeholder_text']); } else { echo('Enter your email to notify');} ?>"/>
122
 
123
- <button id="notify" class="btn btn-primary" name="notify" onClick="checkvalidation()"><?php if($notification_settings['sb_btn']!==''){echo ($notification_settings['sb_btn']); } else { echo('Notify Me!');} ?></button>
124
  </form><?php } ?></center>
125
 
126
  </div>
@@ -170,10 +169,11 @@ $notification_settings =get_option('soon_page_notification_settings');
170
  <?php
171
  if(isset($_POST['notify'])) {
172
  $email = $_POST['email'];
 
173
 
174
  $to = $notification_settings['email_address'];
175
  $subject = "Coming soon page";
176
- $message = "Hey Some one with email id => ".$email." has subscribed for Coming Soon page";
177
  $from = $notification_settings['email_address'];
178
  $headers = "From:" . $from;
179
 
@@ -186,7 +186,7 @@ $notification_settings =get_option('soon_page_notification_settings');
186
 
187
  if($email=='')
188
  {
189
- echo "<script>alert('please enter email');
190
  location.href='';</script>";
191
  }
192
 
25
  padding-top:9%;
26
  padding-bottom:9%;
27
  <?php if($general_settings['background']==""){?>
28
+ background:<?php if($design_settings['background_color']!=''){echo ($design_settings['background_color']); } else { echo('#21759B');}?> <?php if($design_settings['background_effect']=="1"){ ?> url(<?php echo plugins_url('/images/overlay/overlay-1.png',__FILE__); ?>) repeat <?php } ?> ;
29
  <?php }
30
  else{
31
  ?>
47
  #title_style
48
  {
49
 
50
+ color:<?php if($design_settings['title_color']!=''){echo ($design_settings['title_color']); } else { echo('#ffffff');} ?>;
51
+ font-size:<?php if($design_settings['title_font_size']!=''){echo ($design_settings['title_font_size']); } else { echo('30');} ?>px;
52
  font-family:<?php echo $design_settings['title_font_format'] ?>;
53
  font-style:normal;
54
  line-height:1.1;
65
  #descrip
66
  {
67
 
68
+ color:<?php if($design_settings['descrip_color']!=''){echo ($design_settings['descrip_color']); } else { echo('#ffffff');} ?>;
69
+ font-size:<?php if($design_settings['description_font_size']!=''){echo ($design_settings['description_font_size']); } else { echo('20');} ?>px;
70
  font-family:<?php echo $design_settings['description_font_format'] ?>;
71
  font-style:normal;
72
  line-height:1.5;
104
  <div class="hero-unit" style=" background:rgba(0,0,0,0.5);">
105
  <center>
106
  <div id="title_style" >
107
+ <h1><?php if($general_settings['title']!=''){echo ucwords($general_settings['title']); } else { echo('coming soon page');} ?></h1></div>
108
 
109
 
110
  <div id="descrip" >
111
 
112
+ <p> <?php if($general_settings['descrip']!=''){echo ($general_settings['descrip']); } else { echo('This website will launch soon. This a place-holder text can be edited through option panel. Also add email subscription box through option panel. ');} ?> </p>
 
113
  </div>
114
 
115
  <?php if ($notification_settings['mailto']=="yes")
117
 
118
  <form id="subscribe" class="form-signin" action="#" method="post" style=" width:80%;background:#2a6888; border:0px groove #333333;padding: 6px 5px 7px 5px; ">
119
 
120
+ <input id="email" name="email" type="text" class="input-xlarge" placeholder="<?php if($notification_settings['placeholder_text']!=''){echo ($notification_settings['placeholder_text']); } else { echo('Enter your email to notify');} ?>"/>
121
 
122
+ <button id="notify" class="btn btn-primary" name="notify" onClick="checkvalidation()"><?php if($notification_settings['sb_btn']!=''){echo ($notification_settings['sb_btn']); } else { echo('Notify Me!');} ?></button>
123
  </form><?php } ?></center>
124
 
125
  </div>
169
  <?php
170
  if(isset($_POST['notify'])) {
171
  $email = $_POST['email'];
172
+ $email = strtolower($email);
173
 
174
  $to = $notification_settings['email_address'];
175
  $subject = "Coming soon page";
176
+ $message = "Hey Some one with email id => ".$email." has subscribed to the Coming Soon page";
177
  $from = $notification_settings['email_address'];
178
  $headers = "From:" . $from;
179
 
186
 
187
  if($email=='')
188
  {
189
+ echo "<script>alert('Please enter email');
190
  location.href='';</script>";
191
  }
192