Easy Coming Soon - Version 1.6.3

Version Description

  1. Fixed a security issue. We now verify ajax request via nonce.
Download this release

Release Info

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

Code changes from version 1.6.2 to 1.6.3

Files changed (6) hide show
  1. coming-soon-plugin.php +39 -1
  2. design-settings.php +371 -363
  3. general-settings.php +273 -265
  4. notification-settings.php +299 -293
  5. pro-detail.php +1 -1
  6. readme.txt +178 -175
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.6.2
6
  Author:Deepesh paiwal, ANkit Agarwal
7
  Author URI: http://webriti.com
8
  Plugin URI: http://webriti.com
@@ -203,6 +203,11 @@ border-radius: 3px;
203
 
204
  function coming_soon_general_page_save_settings()
205
  {
 
 
 
 
 
206
  //when ajax action call to post data from general settings page
207
  if(isset($_POST['action']) == "coming_soon_page_settings")
208
  {
@@ -248,6 +253,12 @@ border-radius: 3px;
248
  */
249
  function coming_soon_general_page_reset_settings()
250
  {
 
 
 
 
 
 
251
  if(isset($_POST['action']) == "coming_soon_page_reset_settings")
252
  {
253
  $status = "1";
@@ -288,6 +299,12 @@ border-radius: 3px;
288
  */
289
  function coming_soon_page_design_save_settings()
290
  {
 
 
 
 
 
 
291
  if(isset($_POST['action']) == "coming_soon_page_design_settings")
292
  {
293
  $background_color = $_POST['background_color'];
@@ -326,6 +343,12 @@ border-radius: 3px;
326
  */
327
  function coming_soon_page_design_reset_settings()
328
  {
 
 
 
 
 
 
329
  if(isset($_POST['action']) == "coming_soon_page_design_reset_settings")
330
  {
331
  $background_color ="#21759B";
@@ -361,7 +384,16 @@ border-radius: 3px;
361
  *
362
  */
363
  function coming_soon_page_notification_settings()
 
364
  {
 
 
 
 
 
 
 
 
365
  if(isset($_POST['action']) == "coming_soon_page_notification_settings")
366
  {
367
  $mailto = ($_POST['mailto']);
@@ -401,6 +433,12 @@ border-radius: 3px;
401
  */
402
  function coming_soon_page_reset_notification_settings()
403
  {
 
 
 
 
 
 
404
  if(isset($_POST['action']) == "coming_soon_page_reset_notification_settings")
405
  {
406
 
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.6.3
6
  Author:Deepesh paiwal, ANkit Agarwal
7
  Author URI: http://webriti.com
8
  Plugin URI: http://webriti.com
203
 
204
  function coming_soon_general_page_save_settings()
205
  {
206
+ // this check will ensure that only authorized user can execute the ajax call..
207
+ //Thanks to Goblin guys for bringing it to our notice
208
+
209
+ check_ajax_referer( 'my-general-string', 'security' );
210
+
211
  //when ajax action call to post data from general settings page
212
  if(isset($_POST['action']) == "coming_soon_page_settings")
213
  {
253
  */
254
  function coming_soon_general_page_reset_settings()
255
  {
256
+
257
+ // this check will ensure that only authorized user can execute the ajax call..
258
+
259
+
260
+ check_ajax_referer( 'my-general-string', 'security' );
261
+
262
  if(isset($_POST['action']) == "coming_soon_page_reset_settings")
263
  {
264
  $status = "1";
299
  */
300
  function coming_soon_page_design_save_settings()
301
  {
302
+ // this check will ensure that only authorized user can execute the ajax call..
303
+
304
+
305
+ check_ajax_referer( 'my-design-string', 'security' );
306
+
307
+
308
  if(isset($_POST['action']) == "coming_soon_page_design_settings")
309
  {
310
  $background_color = $_POST['background_color'];
343
  */
344
  function coming_soon_page_design_reset_settings()
345
  {
346
+ // this check will ensure that only authorized user can execute the ajax call..
347
+
348
+
349
+ check_ajax_referer( 'my-design-string', 'security' );
350
+
351
+
352
  if(isset($_POST['action']) == "coming_soon_page_design_reset_settings")
353
  {
354
  $background_color ="#21759B";
384
  *
385
  */
386
  function coming_soon_page_notification_settings()
387
+
388
  {
389
+
390
+ // this check will ensure that only authorized user can execute the ajax call..
391
+
392
+
393
+ check_ajax_referer( 'my-notification-string', 'security' );
394
+
395
+
396
+
397
  if(isset($_POST['action']) == "coming_soon_page_notification_settings")
398
  {
399
  $mailto = ($_POST['mailto']);
433
  */
434
  function coming_soon_page_reset_notification_settings()
435
  {
436
+
437
+ // this check will ensure that only authorized user can execute the ajax call..
438
+
439
+
440
+ check_ajax_referer( 'my-notification-string', 'security' );
441
+
442
  if(isset($_POST['action']) == "coming_soon_page_reset_notification_settings")
443
  {
444
 
design-settings.php CHANGED
@@ -1,363 +1,371 @@
1
- <script>
2
- //data save function call on save button onclick and post by action to option table
3
- function datasave_design_settings()
4
- {
5
- var background_color = jQuery('#backgound_color').val();
6
- var title_color = jQuery('#title_color').val();
7
- var descrip_color = jQuery('#descrip_color').val();
8
- var pxselect_post_title = jQuery('#pxselect_post_title').val();
9
- var font_family_post_title = jQuery('#font_family_post_title').val();
10
- var pxselect_post_entry = jQuery('#pxselect_post_entry').val();
11
- var font_family_post_description = jQuery('#font_family_post_description').val();
12
- var background_effect = jQuery('input:radio[name="cs_noise_effect"]:checked').val();
13
- jQuery('#loading_design').show();
14
-
15
- jQuery.ajax(
16
- {
17
- type: "POST",
18
- url: ajaxurl,
19
-
20
- data : {
21
- 'action':'coming_soon_page_design_settings',
22
- 'background_color':background_color,
23
- 'title_color':title_color,
24
- 'descrip_color':descrip_color,
25
- 'pxselect_post_title':pxselect_post_title,
26
- 'font_family_post_title':font_family_post_title,
27
- 'pxselect_post_entry':pxselect_post_entry,
28
- 'font_family_post_description':font_family_post_description,
29
- 'background_effect':background_effect,
30
- },
31
- success : function(data){
32
- jQuery('#loading_design').hide();
33
- jQuery('#success_message_save').show();
34
- jQuery("#success_message_save").fadeOut(5000);
35
- //location.href='?page=coming_soon';
36
- }
37
- });
38
- }
39
- //data reset function is call on reset button onclick and data post by ajax action in option table
40
- function reset_data_typography()
41
- {
42
- jQuery.ajax(
43
- {
44
- type: "POST",
45
- url: ajaxurl,
46
-
47
- data : {
48
- 'action':'coming_soon_page_design_reset_settings',
49
- },
50
- success : function(data){
51
- jQuery('#success_message').show();
52
- jQuery("#success_message").fadeOut(5000);
53
- location.href='?page=coming_soon';
54
- }
55
- });
56
- }
57
- </script>
58
-
59
- <style>
60
- /* =Tooltips style
61
- ========================================================================*/
62
-
63
- .icon {
64
- display: inline-block;
65
- width: 16px;
66
- height: 16px;
67
- position: relative;
68
- padding: 0 4px 0 0;
69
-
70
- background: url(<?php echo plugins_url('images/icons.png',__FILE__) ?>) no-repeat;
71
- }
72
-
73
- .tooltip {
74
- display: none;
75
- width: 200px;
76
- position: absolute;
77
- padding: 10px;
78
- margin: 4px 0 0 4px;
79
- top: 0;
80
- right: 16px;
81
- border: 1px solid #76B6D7;
82
- border-radius: 0 8px 8px 8px;
83
- background: #bedffe;
84
- font-size: 13px;
85
- box-shadow: 0 1px 2px -1px #21759B;
86
- z-index: 999;
87
- }
88
-
89
- /* Icons Sprite Position */
90
-
91
- .help {
92
- background-position: 0 0;
93
- }
94
-
95
- .warning {
96
- background-position: -20px 0;
97
- }
98
-
99
- .error {
100
- background-position: -40px 0;
101
- }
102
-
103
- /* Tooltip Colors */
104
-
105
- .help .tooltip {
106
- border-color: #76B6D7;
107
- background-color: #bedffe;
108
- box-shadow-color: #21759B;
109
- }
110
-
111
- .warning .tooltip {
112
- border-color: #cca863;
113
- background-color: #ffff70;
114
- box-shadow-color: #ac8c4e;
115
- }
116
-
117
- .error .tooltip {
118
- border-color: #b50d0d;
119
- background-color: #e44d4e;
120
- box-shadow-color: #810606;
121
- }
122
-
123
- .icon:hover .tooltip {
124
- display: block;
125
- }
126
- .wp-color-result {
127
- vertical-align: middle;
128
- }
129
- </style>
130
-
131
-
132
-
133
- <!-- first div start for diplay design setting on second tab "design" -->
134
- <div class="block ui-tabs-panel ui-widget-content ui-corner-bottom" id="option_typography" aria-labelledby="ui-id-2" role="tabpanel" style="display: none;">
135
- <?php $value=get_option('soon_page_desgin_settings');
136
- $background_effect = $value['background_effect'];
137
- ?>
138
- <!--code for Menu Style-->
139
- <!-- div start to diplay page top head title -->
140
- <div class="option option-checbox">
141
-
142
- <h3><?php _e('Background Color');?><span class="icon help" style="float:right">
143
- <span class="tooltip">Select background color.</span></h3>
144
- </div>
145
- <!-- div end to diplay page top head title -->
146
- <!-- div start to diplay "baackground color" field-->
147
- <div class="option option-background-upload">
148
- <div class="section">
149
- <div class="element">
150
- <div class="form-item" >
151
-
152
- <input type="text" class="my-color-field" data-default-color="#ffffff" id="backgound_color" value="<?php if($value['background_color']=='') { echo '#21759B' ;} else{ echo $value['background_color'];} ?>" />
153
- </div>
154
-
155
- </div>
156
- </div>
157
- </div>
158
- <!-- div end to diplay "baackground color" field -->
159
-
160
- <!--div start to display "title and fonts" -->
161
- <div class="option option-checbox">
162
- <h3><?php _e('"Headline" Font & Color','sis_spa');?><span class="icon help" style="float:right">
163
- <span class="tooltip">Customize the font , size and color of the title.</span></h3>
164
- </div>
165
- <!--div end to display "title and fonts" -->
166
- <!--div start to display "title and fonts colors and formats" -->
167
- <div class="option option-background-upload">
168
- <div class="section">
169
- <div class="element">
170
-
171
- <h4 style="font-size:15px;">
172
- Headline font-color
173
- </h4>
174
-
175
- <div class="form-item" style="margin-bottom:7px">
176
- <input type="text" class="my-color-field" data-default-color="#ffffff" id="title_color" name="color_post_title" value="<?php $value=get_option('soon_page_desgin_settings'); if($value['title_color']=='') { echo '#ffffff' ;} else{ echo $value['title_color'];} ?>"/>
177
- </div>
178
-
179
- <br>
180
- <div style="width:20%;display:inline" >
181
- <h4 style="font-size:15px;">
182
- Headline font-size
183
- </h4>
184
- </div>
185
- <div class="select_wrapper background-attachment" style="width:40%">
186
- <select name="post_title_px" id="pxselect_post_title" class="select">
187
- <?php
188
- for ($i = 10; $i <=100; $i++) {
189
- ?>
190
- <option value="<?php echo $i; ?>" <?php $value=get_option('soon_page_desgin_settings'); if ( $value['title_font_size'] == $i ) echo selected($value['title_font_size'], $i ); ?> name=""><?php echo $i; ?></option>
191
- <?php } ?>
192
- </select>
193
- </div>
194
-
195
- <div class="select_wrapper background-attachment" style="width:20%;margin-left:10px;margin-bottom:7px" >
196
- <select id="main_post_title" onchange="return change_post_title()" class="select">
197
- <option value="px"><?php _e('px');?></option>
198
- <!-- <option value="em">em</option>-->
199
- </select>
200
- </div>
201
- <br>
202
- <div style="width:20%;display:inline" >
203
- <h4 style="font-size:15px;">
204
- Headline font-style
205
- </h4>
206
- </div>
207
- <?php $value=get_option('soon_page_desgin_settings'); $font_family_post_title = $value['title_font_format']; ?>
208
- <div class="select_wrapper background-attachment" style="width:60%" >
209
- <select name="font_family_post_title" class="select" id="font_family_post_title">
210
- <optgroup label="Select Fonts">
211
- <option value="roboto" <?php selected($font_family_post_title, 'roboto' ); ?>>roboto</option>
212
- <option value="Arial, sans-serif" <?php selected($font_family_post_title, 'Arial, sans-serif' ); ?>>Arial</option>
213
- <option value="Verdana, Geneva, sans-serif" <?php selected($font_family_post_title, 'Verdana, Geneva, sans-serif' ); ?>>Verdana</option><option value="Trebuchet MS, Tahoma, sans-serif" <?php selected($font_family_post_title, 'Trebuchet MS, Tahoma, sans-serif' ); ?>>Trebuchet</option><option value="Georgia, serif" <?php selected($font_family_post_title, 'Georgia, serif' ); ?>>Georgia</option><option value="Times New Roman, serif" <?php selected($font_family_post_title, 'Times New Roman, serif' ); ?>>Times New Roman</option><option value="Tahoma, Geneva, Verdana, sans-serif" <?php selected($font_family_post_title, 'Tahoma, Geneva, Verdana, sans-serif' ); ?>>Tahoma</option><option value="Palatino, Palatino Linotype, serif" <?php selected($font_family_post_title, 'Palatino, Palatino Linotype, serif' ); ?>>Palatino</option><option value="Helvetica Neue, Helvetica, sans-serif" <?php selected($font_family_post_title, 'Helvetica Neue, Helvetica, sans-serif' ); ?>>Helvetica*</option><option value="Calibri, Candara, Segoe, Optima, sans-serif" <?php selected($font_family_post_title, 'Calibri, Candara, Segoe, Optima, sans-serif' ); ?>>Calibri*</option><option value="Myriad Pro, Myriad, sans-serif" <?php selected($font_family_post_title, 'Myriad Pro, Myriad, sans-serif' ); ?>>Myriad Pro*</option><option value="Lucida Grande, Lucida Sans Unicode, Lucida Sans, sans-serif" <?php selected($font_family_post_title, 'Lucida Grande, Lucida Sans Unicode, Lucida Sans, sans-serif' ); ?>>Lucida</option><option value="Arial Black, sans-serif" <?php selected($font_family_post_title, 'Arial Black, sans-serif' ); ?>>Arial Black</option><option value="Gill Sans, Gill Sans MT, Calibri, sans-serif" <?php selected($font_family_post_title, 'Gill Sans, Gill Sans MT, Calibri, sans-serif' ); ?>>Gill Sans*</option><option value="Geneva, Tahoma, Verdana, sans-serif" <?php selected($font_family_post_title, 'Geneva, Tahoma, Verdana, sans-serif' ); ?>>Geneva*</option><option value="Impact, Charcoal, sans-serif" <?php selected($font_family_post_title, 'Impact, Charcoal, sans-serif' ); ?>>Impact</option><option value="Courier, Courier New, monospace" <?php selected($font_family_post_title, 'Courier, Courier New, monospace' ); ?>>Courier</option><option value="Abel" <?php selected($font_family_post_title, 'Abel' ); ?>>Abel</option>
214
- </optgroup>
215
- </select>
216
- </div>
217
-
218
-
219
-
220
- </div>
221
- </div>
222
- </div><br>
223
- <!--div end to display "title and fonts colos and formats" -->
224
- <!--div start for display "Description" Font & Color" -->
225
- <div class="option option-checbox">
226
- <h3 ><?php _e('"Description" Font & Color');?><span class="icon help" style="float:right">
227
- <span class="tooltip">Customize font, size and color of description</span></h3>
228
- </div>
229
- <!--div end for display "Description" Font & Color" -->
230
- <!--div start for display "Description" Font & Color with formats and colors display" -->
231
- <div class="option option-background-upload">
232
- <div class="section">
233
- <div class="element">
234
-
235
- <h4 style="font-size:15px;">
236
- Description font-color
237
- </h4>
238
- <div class="form-item">
239
- <input type="text" class="my-color-field" data-default-color="#ffffff" id="descrip_color" name="color_post_entry" value="<?php $value=get_option('soon_page_desgin_settings'); if($value['descrip_color']=='') { echo '#ffffff' ;} else{ echo $value['descrip_color'];}?>" />
240
- </div>
241
-
242
- <br>
243
-
244
- <div style="width:20%;display:inline" >
245
- <h4 style="font-size:15px;">
246
- Description font-size
247
- </h4>
248
- </div>
249
- <div class="select_wrapper background-attachment" style="width:40%">
250
- <select name="post_entry_px" id="pxselect_post_entry" class="select">
251
- <?php
252
- for ($i = 10; $i <= 100; $i++) {
253
- ?>
254
- <option value="<?php echo $i; ?>" <?php $value=get_option('soon_page_desgin_settings'); if ( $value['description_font_size'] == $i ) echo selected($value['description_font_size'], $i ); ?> name=""><?php echo $i; ?></option>
255
- <?php } ?>
256
- </select>
257
- </div>
258
- <div class="select_wrapper background-attachment" style="width:20%;margin-left:10px;margin-bottom:7px"">
259
- <select id="main_post_entry" onchange="return change_post_entry()" class="select">
260
- <option value="px"><?php _e('px');?></option>
261
- </select>
262
- </div>
263
- <br>
264
- <div style="width:20%;display:inline" >
265
- <h4 style="font-size:15px;">
266
- Description font-style
267
- </h4>
268
- </div>
269
- <?php $value=get_option('soon_page_desgin_settings'); $font_family_post_entry = $value['description_font_format']; ?>
270
- <div class="select_wrapper background-attachment" style="width:60%">
271
- <select name="font_family_post_description" class="select" id="font_family_post_description">
272
- <optgroup label="Select Fonts">
273
- <option value="roboto" <?php selected($font_family_post_entry, 'roboto' ); ?>>roboto</option>
274
- <option value="Arial, sans-serif" <?php selected($font_family_post_entry, 'Arial, sans-serif' ); ?>>Arial</option>
275
- <option value="Verdana, Geneva, sans-serif" <?php selected($font_family_post_entry, 'Verdana, Geneva, sans-serif' ); ?>>Verdana</option><option value="Trebuchet MS, Tahoma, sans-serif" <?php selected($font_family_post_entry, 'Trebuchet MS, Tahoma, sans-serif' ); ?>>Trebuchet</option><option value="Georgia, serif" <?php selected($font_family_post_entry, 'Georgia, serif' ); ?>>Georgia</option><option value="Times New Roman, serif" <?php selected($font_family_post_entry, 'Times New Roman, serif' ); ?>>Times New Roman</option><option value="Tahoma, Geneva, Verdana, sans-serif" <?php selected($font_family_post_entry, 'Tahoma, Geneva, Verdana, sans-serif' ); ?>>Tahoma</option><option value="Palatino, Palatino Linotype, serif" <?php selected($font_family_post_entry, 'Palatino, Palatino Linotype, serif' ); ?>>Palatino</option><option value="Helvetica Neue, Helvetica, sans-serif" <?php selected($font_family_post_entry, 'Helvetica Neue, Helvetica, sans-serif' ); ?>>Helvetica*</option><option value="Calibri, Candara, Segoe, Optima, sans-serif" <?php selected($font_family_post_entry, 'Calibri, Candara, Segoe, Optima, sans-serif' ); ?>>Calibri*</option><option value="Myriad Pro, Myriad, sans-serif" <?php selected($font_family_post_entry, 'Myriad Pro, Myriad, sans-serif' ); ?>>Myriad Pro*</option><option value="Lucida Grande, Lucida Sans Unicode, Lucida Sans, sans-serif" <?php selected($font_family_post_entry, 'Lucida Grande, Lucida Sans Unicode, Lucida Sans, sans-serif' ); ?>>Lucida</option><option value="Arial Black, sans-serif" <?php selected($font_family_post_entry, 'Arial Black, sans-serif' ); ?>>Arial Black</option><option value="Gill Sans, Gill Sans MT, Calibri, sans-serif" <?php selected($font_family_post_entry, 'Gill Sans, Gill Sans MT, Calibri, sans-serif' ); ?>>Gill Sans*</option><option value="Geneva, Tahoma, Verdana, sans-serif" <?php selected($font_family_post_entry, 'Geneva, Tahoma, Verdana, sans-serif' ); ?>>Geneva*</option><option value="Impact, Charcoal, sans-serif" <?php selected($font_family_post_entry, 'Impact, Charcoal, sans-serif' ); ?>>Impact</option><option value="Courier, Courier New, monospace" <?php selected($font_family_post_entry, 'Courier, Courier New, monospace' ); ?>>Courier</option><option value="Abel" <?php selected($font_family_post_entry, 'Abel' ); ?>>Abel</option>
276
- </optgroup>
277
- </select>
278
- </div>
279
-
280
-
281
- </div>
282
- </div>
283
- </div><br /><br/>
284
- <!--div end for display "Description" Font & Color with formats and colors display" -->
285
-
286
-
287
-
288
- <!--div start for display "Description" Font & Color" -->
289
- <div class="option option-checbox">
290
- <h3><?php _e('Background Noise Effect');?><span class="icon help" style="float:right">
291
- <span class="tooltip">Add noise effect on your background</span></h3>
292
- </div>
293
- <!--div end for display "Description" Font & Color" -->
294
- <!--div start for display "Description" Font & Color with formats and colors display" -->
295
- <div class="option option-background-upload">
296
- <div class="section">
297
- <div class="element">
298
-
299
- <div class="form-item">
300
- <input type="radio" value="0" id="cs_noise_effect" <?php if($value['background_effect']=='0') echo 'checked'?> name="cs_noise_effect" />&nbsp;None<br>
301
- <input type="radio" value="1" id="cs_noise_effect" <?php if($value['background_effect']=='1') echo 'checked' ?> name="cs_noise_effect" />&nbsp;Noise
302
- </div>
303
-
304
- <br>
305
-
306
-
307
-
308
-
309
- </div>
310
- </div>
311
- </div><br /><br/>
312
- <!--div end for display "Description" Font & Color with formats and colors display" -->
313
-
314
- <input type="button" class="button-framework save-options" value= "<?php _e('Save Changes');?>" onclick="datasave_design_settings()"/>
315
- <input type="button" class="button-framework reset" value="<?php _e('Restore Defaults');?>" onclick="reset_data_typography()" />
316
- &nbsp;<img id="loading_design" style="display:none;
317
- vertical-align:middle;" class="loading" src="<?php echo plugins_url('/images/loading.gif',__FILE__);?>" />
318
- <div id="success_message" ><?php _e('Data Reset Successfully');?></div>
319
- <div id="success_message_save" ><?php _e('Data Save Successfully');?></div>
320
- </div><!-- end of final div for design settings page -->
321
- <style>
322
- #success_message_save
323
- {
324
- display: none;
325
- margin: 15px 8px 0px 1px;
326
- padding: 13px 0px 15px 52px;
327
- background: url(<?php echo plugins_url("/images/icon_check.png",__FILE__) ?>) left no-repeat #21759B;
328
- /*opacity:0.5;
329
- filter:alpha(opacity=50);*/
330
- background-position: 15px 15px;
331
- border: solid 1px #F22853;
332
- -webkit-border-radius: 15px;
333
- -moz-border-radius: 15px;
334
- border-radius: 15px;
335
- width: 220px;
336
- font-size: 20px;
337
- color: #ffffff;
338
- position: absolute;
339
- left: 500px;
340
- bottom: 20px;
341
-
342
- }
343
- #success_message
344
- {
345
- display: none;
346
- margin: 15px 8px 0px 1px;
347
- padding: 13px 0px 15px 52px;
348
- background: url(<?php echo plugins_url("/images/icon_check.png",__FILE__) ?>) left no-repeat #21759B;
349
-
350
- background-position: 15px 15px;
351
- border: solid 1px #F22853;
352
- -webkit-border-radius: 15px;
353
- -moz-border-radius: 15px;
354
- border-radius: 15px;
355
- width: 220px;
356
- font-size: 20px;
357
- color: #ffffff;
358
- position: absolute;
359
- left: 500px;
360
- bottom: 20px;
361
-
362
- }
363
- </style>
 
 
 
 
 
 
 
 
1
+
2
+ <?php
3
+ //Set Your Nonce
4
+ $ajax_nonce = wp_create_nonce( "my-design-string" );
5
+ ?>
6
+
7
+ <script>
8
+ //data save function call on save button onclick and post by action to option table
9
+ function datasave_design_settings()
10
+ {
11
+ var background_color = jQuery('#backgound_color').val();
12
+ var title_color = jQuery('#title_color').val();
13
+ var descrip_color = jQuery('#descrip_color').val();
14
+ var pxselect_post_title = jQuery('#pxselect_post_title').val();
15
+ var font_family_post_title = jQuery('#font_family_post_title').val();
16
+ var pxselect_post_entry = jQuery('#pxselect_post_entry').val();
17
+ var font_family_post_description = jQuery('#font_family_post_description').val();
18
+ var background_effect = jQuery('input:radio[name="cs_noise_effect"]:checked').val();
19
+ jQuery('#loading_design').show();
20
+
21
+ jQuery.ajax(
22
+ {
23
+ type: "POST",
24
+ url: ajaxurl,
25
+
26
+ data : {
27
+ 'action':'coming_soon_page_design_settings',
28
+ 'security' : '<?php echo $ajax_nonce; ?>',
29
+ 'background_color':background_color,
30
+ 'title_color':title_color,
31
+ 'descrip_color':descrip_color,
32
+ 'pxselect_post_title':pxselect_post_title,
33
+ 'font_family_post_title':font_family_post_title,
34
+ 'pxselect_post_entry':pxselect_post_entry,
35
+ 'font_family_post_description':font_family_post_description,
36
+ 'background_effect':background_effect,
37
+ },
38
+ success : function(data){
39
+ jQuery('#loading_design').hide();
40
+ jQuery('#success_message_save').show();
41
+ jQuery("#success_message_save").fadeOut(5000);
42
+ //location.href='?page=coming_soon';
43
+ }
44
+ });
45
+ }
46
+ //data reset function is call on reset button onclick and data post by ajax action in option table
47
+ function reset_data_typography()
48
+ {
49
+ jQuery.ajax(
50
+ {
51
+ type: "POST",
52
+ url: ajaxurl,
53
+
54
+ data : {
55
+ 'action':'coming_soon_page_design_reset_settings',
56
+ 'security' : '<?php echo $ajax_nonce; ?>',
57
+ },
58
+ success : function(data){
59
+ jQuery('#success_message').show();
60
+ jQuery("#success_message").fadeOut(5000);
61
+ location.href='?page=coming_soon';
62
+ }
63
+ });
64
+ }
65
+ </script>
66
+
67
+ <style>
68
+ /* =Tooltips style
69
+ ========================================================================*/
70
+
71
+ .icon {
72
+ display: inline-block;
73
+ width: 16px;
74
+ height: 16px;
75
+ position: relative;
76
+ padding: 0 4px 0 0;
77
+
78
+ background: url(<?php echo plugins_url('images/icons.png',__FILE__) ?>) no-repeat;
79
+ }
80
+
81
+ .tooltip {
82
+ display: none;
83
+ width: 200px;
84
+ position: absolute;
85
+ padding: 10px;
86
+ margin: 4px 0 0 4px;
87
+ top: 0;
88
+ right: 16px;
89
+ border: 1px solid #76B6D7;
90
+ border-radius: 0 8px 8px 8px;
91
+ background: #bedffe;
92
+ font-size: 13px;
93
+ box-shadow: 0 1px 2px -1px #21759B;
94
+ z-index: 999;
95
+ }
96
+
97
+ /* Icons Sprite Position */
98
+
99
+ .help {
100
+ background-position: 0 0;
101
+ }
102
+
103
+ .warning {
104
+ background-position: -20px 0;
105
+ }
106
+
107
+ .error {
108
+ background-position: -40px 0;
109
+ }
110
+
111
+ /* Tooltip Colors */
112
+
113
+ .help .tooltip {
114
+ border-color: #76B6D7;
115
+ background-color: #bedffe;
116
+ box-shadow-color: #21759B;
117
+ }
118
+
119
+ .warning .tooltip {
120
+ border-color: #cca863;
121
+ background-color: #ffff70;
122
+ box-shadow-color: #ac8c4e;
123
+ }
124
+
125
+ .error .tooltip {
126
+ border-color: #b50d0d;
127
+ background-color: #e44d4e;
128
+ box-shadow-color: #810606;
129
+ }
130
+
131
+ .icon:hover .tooltip {
132
+ display: block;
133
+ }
134
+ .wp-color-result {
135
+ vertical-align: middle;
136
+ }
137
+ </style>
138
+
139
+
140
+
141
+ <!-- first div start for diplay design setting on second tab "design" -->
142
+ <div class="block ui-tabs-panel ui-widget-content ui-corner-bottom" id="option_typography" aria-labelledby="ui-id-2" role="tabpanel" style="display: none;">
143
+ <?php $value=get_option('soon_page_desgin_settings');
144
+ $background_effect = $value['background_effect'];
145
+ ?>
146
+ <!--code for Menu Style-->
147
+ <!-- div start to diplay page top head title -->
148
+ <div class="option option-checbox">
149
+
150
+ <h3><?php _e('Background Color');?><span class="icon help" style="float:right">
151
+ <span class="tooltip">Select background color.</span></h3>
152
+ </div>
153
+ <!-- div end to diplay page top head title -->
154
+ <!-- div start to diplay "baackground color" field-->
155
+ <div class="option option-background-upload">
156
+ <div class="section">
157
+ <div class="element">
158
+ <div class="form-item" >
159
+
160
+ <input type="text" class="my-color-field" data-default-color="#ffffff" id="backgound_color" value="<?php if($value['background_color']=='') { echo '#21759B' ;} else{ echo $value['background_color'];} ?>" />
161
+ </div>
162
+
163
+ </div>
164
+ </div>
165
+ </div>
166
+ <!-- div end to diplay "baackground color" field -->
167
+
168
+ <!--div start to display "title and fonts" -->
169
+ <div class="option option-checbox">
170
+ <h3><?php _e('"Headline" Font & Color','sis_spa');?><span class="icon help" style="float:right">
171
+ <span class="tooltip">Customize the font , size and color of the title.</span></h3>
172
+ </div>
173
+ <!--div end to display "title and fonts" -->
174
+ <!--div start to display "title and fonts colors and formats" -->
175
+ <div class="option option-background-upload">
176
+ <div class="section">
177
+ <div class="element">
178
+
179
+ <h4 style="font-size:15px;">
180
+ Headline font-color
181
+ </h4>
182
+
183
+ <div class="form-item" style="margin-bottom:7px">
184
+ <input type="text" class="my-color-field" data-default-color="#ffffff" id="title_color" name="color_post_title" value="<?php $value=get_option('soon_page_desgin_settings'); if($value['title_color']=='') { echo '#ffffff' ;} else{ echo $value['title_color'];} ?>"/>
185
+ </div>
186
+
187
+ <br>
188
+ <div style="width:20%;display:inline" >
189
+ <h4 style="font-size:15px;">
190
+ Headline font-size
191
+ </h4>
192
+ </div>
193
+ <div class="select_wrapper background-attachment" style="width:40%">
194
+ <select name="post_title_px" id="pxselect_post_title" class="select">
195
+ <?php
196
+ for ($i = 10; $i <=100; $i++) {
197
+ ?>
198
+ <option value="<?php echo $i; ?>" <?php $value=get_option('soon_page_desgin_settings'); if ( $value['title_font_size'] == $i ) echo selected($value['title_font_size'], $i ); ?> name=""><?php echo $i; ?></option>
199
+ <?php } ?>
200
+ </select>
201
+ </div>
202
+
203
+ <div class="select_wrapper background-attachment" style="width:20%;margin-left:10px;margin-bottom:7px" >
204
+ <select id="main_post_title" onchange="return change_post_title()" class="select">
205
+ <option value="px"><?php _e('px');?></option>
206
+ <!-- <option value="em">em</option>-->
207
+ </select>
208
+ </div>
209
+ <br>
210
+ <div style="width:20%;display:inline" >
211
+ <h4 style="font-size:15px;">
212
+ Headline font-style
213
+ </h4>
214
+ </div>
215
+ <?php $value=get_option('soon_page_desgin_settings'); $font_family_post_title = $value['title_font_format']; ?>
216
+ <div class="select_wrapper background-attachment" style="width:60%" >
217
+ <select name="font_family_post_title" class="select" id="font_family_post_title">
218
+ <optgroup label="Select Fonts">
219
+ <option value="roboto" <?php selected($font_family_post_title, 'roboto' ); ?>>roboto</option>
220
+ <option value="Arial, sans-serif" <?php selected($font_family_post_title, 'Arial, sans-serif' ); ?>>Arial</option>
221
+ <option value="Verdana, Geneva, sans-serif" <?php selected($font_family_post_title, 'Verdana, Geneva, sans-serif' ); ?>>Verdana</option><option value="Trebuchet MS, Tahoma, sans-serif" <?php selected($font_family_post_title, 'Trebuchet MS, Tahoma, sans-serif' ); ?>>Trebuchet</option><option value="Georgia, serif" <?php selected($font_family_post_title, 'Georgia, serif' ); ?>>Georgia</option><option value="Times New Roman, serif" <?php selected($font_family_post_title, 'Times New Roman, serif' ); ?>>Times New Roman</option><option value="Tahoma, Geneva, Verdana, sans-serif" <?php selected($font_family_post_title, 'Tahoma, Geneva, Verdana, sans-serif' ); ?>>Tahoma</option><option value="Palatino, Palatino Linotype, serif" <?php selected($font_family_post_title, 'Palatino, Palatino Linotype, serif' ); ?>>Palatino</option><option value="Helvetica Neue, Helvetica, sans-serif" <?php selected($font_family_post_title, 'Helvetica Neue, Helvetica, sans-serif' ); ?>>Helvetica*</option><option value="Calibri, Candara, Segoe, Optima, sans-serif" <?php selected($font_family_post_title, 'Calibri, Candara, Segoe, Optima, sans-serif' ); ?>>Calibri*</option><option value="Myriad Pro, Myriad, sans-serif" <?php selected($font_family_post_title, 'Myriad Pro, Myriad, sans-serif' ); ?>>Myriad Pro*</option><option value="Lucida Grande, Lucida Sans Unicode, Lucida Sans, sans-serif" <?php selected($font_family_post_title, 'Lucida Grande, Lucida Sans Unicode, Lucida Sans, sans-serif' ); ?>>Lucida</option><option value="Arial Black, sans-serif" <?php selected($font_family_post_title, 'Arial Black, sans-serif' ); ?>>Arial Black</option><option value="Gill Sans, Gill Sans MT, Calibri, sans-serif" <?php selected($font_family_post_title, 'Gill Sans, Gill Sans MT, Calibri, sans-serif' ); ?>>Gill Sans*</option><option value="Geneva, Tahoma, Verdana, sans-serif" <?php selected($font_family_post_title, 'Geneva, Tahoma, Verdana, sans-serif' ); ?>>Geneva*</option><option value="Impact, Charcoal, sans-serif" <?php selected($font_family_post_title, 'Impact, Charcoal, sans-serif' ); ?>>Impact</option><option value="Courier, Courier New, monospace" <?php selected($font_family_post_title, 'Courier, Courier New, monospace' ); ?>>Courier</option><option value="Abel" <?php selected($font_family_post_title, 'Abel' ); ?>>Abel</option>
222
+ </optgroup>
223
+ </select>
224
+ </div>
225
+
226
+
227
+
228
+ </div>
229
+ </div>
230
+ </div><br>
231
+ <!--div end to display "title and fonts colos and formats" -->
232
+ <!--div start for display "Description" Font & Color" -->
233
+ <div class="option option-checbox">
234
+ <h3 ><?php _e('"Description" Font & Color');?><span class="icon help" style="float:right">
235
+ <span class="tooltip">Customize font, size and color of description</span></h3>
236
+ </div>
237
+ <!--div end for display "Description" Font & Color" -->
238
+ <!--div start for display "Description" Font & Color with formats and colors display" -->
239
+ <div class="option option-background-upload">
240
+ <div class="section">
241
+ <div class="element">
242
+
243
+ <h4 style="font-size:15px;">
244
+ Description font-color
245
+ </h4>
246
+ <div class="form-item">
247
+ <input type="text" class="my-color-field" data-default-color="#ffffff" id="descrip_color" name="color_post_entry" value="<?php $value=get_option('soon_page_desgin_settings'); if($value['descrip_color']=='') { echo '#ffffff' ;} else{ echo $value['descrip_color'];}?>" />
248
+ </div>
249
+
250
+ <br>
251
+
252
+ <div style="width:20%;display:inline" >
253
+ <h4 style="font-size:15px;">
254
+ Description font-size
255
+ </h4>
256
+ </div>
257
+ <div class="select_wrapper background-attachment" style="width:40%">
258
+ <select name="post_entry_px" id="pxselect_post_entry" class="select">
259
+ <?php
260
+ for ($i = 10; $i <= 100; $i++) {
261
+ ?>
262
+ <option value="<?php echo $i; ?>" <?php $value=get_option('soon_page_desgin_settings'); if ( $value['description_font_size'] == $i ) echo selected($value['description_font_size'], $i ); ?> name=""><?php echo $i; ?></option>
263
+ <?php } ?>
264
+ </select>
265
+ </div>
266
+ <div class="select_wrapper background-attachment" style="width:20%;margin-left:10px;margin-bottom:7px"">
267
+ <select id="main_post_entry" onchange="return change_post_entry()" class="select">
268
+ <option value="px"><?php _e('px');?></option>
269
+ </select>
270
+ </div>
271
+ <br>
272
+ <div style="width:20%;display:inline" >
273
+ <h4 style="font-size:15px;">
274
+ Description font-style
275
+ </h4>
276
+ </div>
277
+ <?php $value=get_option('soon_page_desgin_settings'); $font_family_post_entry = $value['description_font_format']; ?>
278
+ <div class="select_wrapper background-attachment" style="width:60%">
279
+ <select name="font_family_post_description" class="select" id="font_family_post_description">
280
+ <optgroup label="Select Fonts">
281
+ <option value="roboto" <?php selected($font_family_post_entry, 'roboto' ); ?>>roboto</option>
282
+ <option value="Arial, sans-serif" <?php selected($font_family_post_entry, 'Arial, sans-serif' ); ?>>Arial</option>
283
+ <option value="Verdana, Geneva, sans-serif" <?php selected($font_family_post_entry, 'Verdana, Geneva, sans-serif' ); ?>>Verdana</option><option value="Trebuchet MS, Tahoma, sans-serif" <?php selected($font_family_post_entry, 'Trebuchet MS, Tahoma, sans-serif' ); ?>>Trebuchet</option><option value="Georgia, serif" <?php selected($font_family_post_entry, 'Georgia, serif' ); ?>>Georgia</option><option value="Times New Roman, serif" <?php selected($font_family_post_entry, 'Times New Roman, serif' ); ?>>Times New Roman</option><option value="Tahoma, Geneva, Verdana, sans-serif" <?php selected($font_family_post_entry, 'Tahoma, Geneva, Verdana, sans-serif' ); ?>>Tahoma</option><option value="Palatino, Palatino Linotype, serif" <?php selected($font_family_post_entry, 'Palatino, Palatino Linotype, serif' ); ?>>Palatino</option><option value="Helvetica Neue, Helvetica, sans-serif" <?php selected($font_family_post_entry, 'Helvetica Neue, Helvetica, sans-serif' ); ?>>Helvetica*</option><option value="Calibri, Candara, Segoe, Optima, sans-serif" <?php selected($font_family_post_entry, 'Calibri, Candara, Segoe, Optima, sans-serif' ); ?>>Calibri*</option><option value="Myriad Pro, Myriad, sans-serif" <?php selected($font_family_post_entry, 'Myriad Pro, Myriad, sans-serif' ); ?>>Myriad Pro*</option><option value="Lucida Grande, Lucida Sans Unicode, Lucida Sans, sans-serif" <?php selected($font_family_post_entry, 'Lucida Grande, Lucida Sans Unicode, Lucida Sans, sans-serif' ); ?>>Lucida</option><option value="Arial Black, sans-serif" <?php selected($font_family_post_entry, 'Arial Black, sans-serif' ); ?>>Arial Black</option><option value="Gill Sans, Gill Sans MT, Calibri, sans-serif" <?php selected($font_family_post_entry, 'Gill Sans, Gill Sans MT, Calibri, sans-serif' ); ?>>Gill Sans*</option><option value="Geneva, Tahoma, Verdana, sans-serif" <?php selected($font_family_post_entry, 'Geneva, Tahoma, Verdana, sans-serif' ); ?>>Geneva*</option><option value="Impact, Charcoal, sans-serif" <?php selected($font_family_post_entry, 'Impact, Charcoal, sans-serif' ); ?>>Impact</option><option value="Courier, Courier New, monospace" <?php selected($font_family_post_entry, 'Courier, Courier New, monospace' ); ?>>Courier</option><option value="Abel" <?php selected($font_family_post_entry, 'Abel' ); ?>>Abel</option>
284
+ </optgroup>
285
+ </select>
286
+ </div>
287
+
288
+
289
+ </div>
290
+ </div>
291
+ </div><br /><br/>
292
+ <!--div end for display "Description" Font & Color with formats and colors display" -->
293
+
294
+
295
+
296
+ <!--div start for display "Description" Font & Color" -->
297
+ <div class="option option-checbox">
298
+ <h3><?php _e('Background Noise Effect');?><span class="icon help" style="float:right">
299
+ <span class="tooltip">Add noise effect on your background</span></h3>
300
+ </div>
301
+ <!--div end for display "Description" Font & Color" -->
302
+ <!--div start for display "Description" Font & Color with formats and colors display" -->
303
+ <div class="option option-background-upload">
304
+ <div class="section">
305
+ <div class="element">
306
+
307
+ <div class="form-item">
308
+ <input type="radio" value="0" id="cs_noise_effect" <?php if($value['background_effect']=='0') echo 'checked'?> name="cs_noise_effect" />&nbsp;None<br>
309
+ <input type="radio" value="1" id="cs_noise_effect" <?php if($value['background_effect']=='1') echo 'checked' ?> name="cs_noise_effect" />&nbsp;Noise
310
+ </div>
311
+
312
+ <br>
313
+
314
+
315
+
316
+
317
+ </div>
318
+ </div>
319
+ </div><br /><br/>
320
+ <!--div end for display "Description" Font & Color with formats and colors display" -->
321
+
322
+ <input type="button" class="button-framework save-options" value= "<?php _e('Save Changes');?>" onclick="datasave_design_settings()"/>
323
+ <input type="button" class="button-framework reset" value="<?php _e('Restore Defaults');?>" onclick="reset_data_typography()" />
324
+ &nbsp;<img id="loading_design" style="display:none;
325
+ vertical-align:middle;" class="loading" src="<?php echo plugins_url('/images/loading.gif',__FILE__);?>" />
326
+ <div id="success_message" ><?php _e('Data Reset Successfully');?></div>
327
+ <div id="success_message_save" ><?php _e('Data Save Successfully');?></div>
328
+ </div><!-- end of final div for design settings page -->
329
+ <style>
330
+ #success_message_save
331
+ {
332
+ display: none;
333
+ margin: 15px 8px 0px 1px;
334
+ padding: 13px 0px 15px 52px;
335
+ background: url(<?php echo plugins_url("/images/icon_check.png",__FILE__) ?>) left no-repeat #21759B;
336
+ /*opacity:0.5;
337
+ filter:alpha(opacity=50);*/
338
+ background-position: 15px 15px;
339
+ border: solid 1px #F22853;
340
+ -webkit-border-radius: 15px;
341
+ -moz-border-radius: 15px;
342
+ border-radius: 15px;
343
+ width: 220px;
344
+ font-size: 20px;
345
+ color: #ffffff;
346
+ position: absolute;
347
+ left: 500px;
348
+ bottom: 20px;
349
+
350
+ }
351
+ #success_message
352
+ {
353
+ display: none;
354
+ margin: 15px 8px 0px 1px;
355
+ padding: 13px 0px 15px 52px;
356
+ background: url(<?php echo plugins_url("/images/icon_check.png",__FILE__) ?>) left no-repeat #21759B;
357
+
358
+ background-position: 15px 15px;
359
+ border: solid 1px #F22853;
360
+ -webkit-border-radius: 15px;
361
+ -moz-border-radius: 15px;
362
+ border-radius: 15px;
363
+ width: 220px;
364
+ font-size: 20px;
365
+ color: #ffffff;
366
+ position: absolute;
367
+ left: 500px;
368
+ bottom: 20px;
369
+
370
+ }
371
+ </style>
general-settings.php CHANGED
@@ -1,266 +1,274 @@
1
- <script>
2
- //save button onclick function for post value through ajax in option table
3
- function datasave_general_pagesetting()
4
- {
5
- var status= jQuery('input[type="radio"]:checked').val();
6
- var background = jQuery('#upload_background').val();
7
- var title = jQuery('#title').val();
8
- var descrip = jQuery('#descrip').val();
9
- var google_code = jQuery('#google_code').val();
10
- jQuery('#loading_general').show();
11
-
12
-
13
- if(jQuery('#fbchk').is(':checked'))
14
- {
15
-
16
- var fb = jQuery('#fb').val();
17
-
18
- }
19
- if(jQuery('#twitchk').is(':checked'))
20
- {
21
-
22
- var twit= jQuery('#twit').val();
23
-
24
- }
25
- if(jQuery('#gpchk').is(':checked'))
26
- {
27
-
28
- var gp= jQuery('#gp').val();
29
-
30
- }
31
-
32
- jQuery.ajax(
33
- {
34
- type: "POST",
35
- url: ajaxurl,
36
-
37
- data : {
38
- 'action':'coming_soon_page_settings',
39
- 'status':status,
40
- 'background':background,
41
- 'title':title,
42
- 'descrip':descrip,
43
- 'google_code':google_code,
44
- 'fb':fb,
45
- 'twit':twit,
46
- 'gp':gp,
47
- },
48
- success : function(data){
49
- jQuery('#loading_general').hide();
50
- jQuery('#success_message_save_general').show();
51
- jQuery("#success_message_save_general").fadeOut(5000);
52
-
53
- location.href='?page=coming_soon';
54
- }
55
- });
56
- }
57
-
58
- //reset button onclick function for post value through ajax in option table
59
- function reset_data_general_pagesetting()
60
- {
61
- jQuery.ajax(
62
- {
63
- type: "POST",
64
- url: ajaxurl,
65
-
66
- data : {
67
- 'action':'coming_soon_page_reset_settings',
68
- },
69
- success : function(data){
70
- jQuery('#success_message_reset_general').show();
71
- jQuery("#success_message_reset_general").fadeOut(5000);
72
- location.href='?page=coming_soon';
73
- }
74
-
75
- });
76
-
77
- }
78
-
79
- </script>
80
-
81
- <style>
82
- /* =Tooltips style
83
- ========================================================================*/
84
-
85
- .icon {
86
- display: inline-block;
87
- width: 16px;
88
- height: 16px;
89
- position: relative;
90
- padding: 0 4px 0 0;
91
-
92
- background: url(<?php echo plugins_url('images/icons.png',__FILE__) ?>) no-repeat;
93
- }
94
-
95
- .tooltip {
96
- display: none;
97
- width: 200px;
98
- position: absolute;
99
- padding: 10px;
100
- margin: 4px 0 0 4px;
101
- top: 0;
102
- right: 16px;
103
- border: 1px solid #76B6D7;
104
- border-radius: 0 8px 8px 8px;
105
- background: #bedffe;
106
- font-size: 13px;
107
- box-shadow: 0 1px 2px -1px #21759B;
108
- z-index: 999;
109
- }
110
-
111
- /* Icons Sprite Position */
112
-
113
- .help {
114
- background-position: 0 0;
115
- }
116
-
117
- .warning {
118
- background-position: -20px 0;
119
- }
120
-
121
- .error {
122
- background-position: -40px 0;
123
- }
124
-
125
- /* Tooltip Colors */
126
-
127
- .help .tooltip {
128
-
129
- background-color: #2f96b4;
130
- background-image: -moz-linear-gradient(top, #52b2cf, #2f96b4);
131
- background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#52b2cf), to(#2f96b4));
132
- background-image: -webkit-linear-gradient(top, #52b2cf, #2f96b4);
133
- background-image: -o-linear-gradient(top, #52b2cf, #2f96b4);
134
- background-image: linear-gradient(to bottom, #52b2cf, #2f96b4);
135
- color:#fff;
136
- box-shadow-color: #21759B;
137
- font-size:15px;
138
- border-radius:10px;
139
- }
140
-
141
- .warning .tooltip {
142
- border-color: #cca863;
143
- background-color: #ffff70;
144
- box-shadow-color: #ac8c4e;
145
- }
146
-
147
- .error .tooltip {
148
- border-color: #b50d0d;
149
- background-color: #e44d4e;
150
- box-shadow-color: #810606;
151
- }
152
-
153
- .icon:hover .tooltip {
154
- display: block;
155
- box-shadow: 0 10px 20px -1px rgba(0,0,0,0.5);
156
-
157
-
158
- }
159
- </style>
160
-
161
- <!--get values from option table -->
162
- <?php $value=get_option('soon_page_settings');
163
- ?>
164
- <!-- div start general settings get on tabs -->
165
- <div class="block ui-tabs-panel ui-widget-content ui-corner-bottom" id="option_general" aria-labelledby="ui-id-1" >
166
- <!--div start for display "status" field -->
167
- <div class="option option-input">
168
-
169
- <h3><?php _e('Status');?><span class="icon help" style="float:right">
170
- <span class="tooltip">Enable coming soon page from here.</span>
171
- </span></h3>
172
- <div class="section">
173
- <div class="element">
174
- <input type="radio" name="status" value="0" id="status" <?php if($value['status']=='0') echo 'checked' ?>/>&nbsp;Disabled<br>
175
- <input type="radio" name="status" value="1" id="status" <?php if($value['status']=='1') echo 'checked' ?>/>&nbsp;Coming soon enabled
176
- </div>
177
- </div>
178
- </div>
179
- <!-- div end for display "status" field -->
180
- <!--div start for display "background" field -->
181
- <div class="option option-upload">
182
- <h3><?php _e('Background Image');?><span class="icon help" style="float:right">
183
- <span class="tooltip">The placeholder image that will be used as a background image.</span>
184
- </span></h3>
185
- <div class="section">
186
- <div class="element">
187
- <input type="text" value="<?php echo esc_attr($value['background']); ?>" id="upload_background" name="upload_image" size="36" />
188
- <input type="button" value="Upload Background Image" class="button-primary" style="margin-left:10px;height:30px" />
189
- </div>
190
-
191
- <br><div style="display:block;float:left;"><img style="" src="<?php echo esc_attr($value['background']); ?>" id="ecs_backg_img" class="preview_image" ></div>
192
-
193
- </div>
194
- </div>
195
- <!-- div end for display "background" field -->
196
- <!-- div start for display "title" field -->
197
- <div class="option option-input">
198
- <h3><?php _e('Title');?><span class="icon help" style="float:right">
199
- <span class="tooltip">This is the page title and will be displayed on top of the page.</span>
200
- </span></h3>
201
- <div class="section">
202
- <div class="element">
203
- <input type="text" value="<?php if($value['title']==""){echo "coming soon page";} else{echo $value['title'];} ?>" id="title" name="title" class="" />
204
- </div>
205
- </div>
206
- </div>
207
- <!-- div end for display "title" field -->
208
- <!-- div start for display "description" field -->
209
- <div class="option option-input">
210
- <h3><?php _e('Description');?><span class="icon help" style="float:right">
211
- <span class="tooltip">This will be displayed below the Page Title.</span>
212
- </span></h3>
213
- <div class="section">
214
- <div class="element">
215
- <textarea name="descrip" id="descrip" rows="10" cols="100"><?php if($value['descrip']==""){echo "This website will launch soon. To connect with us enter your email below.";} else{echo $value['descrip'];} ?> </textarea>
216
- </div>
217
- </div>
218
- </div>
219
- <!-- div end for display "description" field -->
220
- <!-- div start for display "description" field -->
221
- <div class="option option-input">
222
- <h3><?php _e('Google Analytics Code');?><span class="icon help" style="float:right">
223
- <span class="tooltip">Insert the tracking code here. For example Google Analytics code can be inserted here.</span>
224
- </span></h3>
225
- <div class="section">
226
- <div class="element">
227
- <textarea name="google_code" id="google_code" rows="4" cols="100"><?php echo $value['google_code']; ?> </textarea>
228
- </div>
229
- </div>
230
- </div>
231
- <!-- div end for display "description" field -->
232
-
233
- <!-- div start for display "Social media links" field -->
234
- <div class="option option-input">
235
- <h3><?php _e('Social Media Links');?><span class="icon help" style="float:right">
236
- <span class="tooltip">Make you page Social. Insert social links here.</span>
237
- </span></h3>
238
- <div class="section">
239
- <div class="element">
240
- <div>
241
- <!-- facebook field with checkbox -->
242
- <img src="<?php echo plugins_url('images/facebook.png',__FILE__) ?>" align="left" />
243
- <input type="text" name="fb" id="fb" value="<?php echo $value['fb']; ?>" placeholder="Enter facbook url" style="width:250px; margin-left:10px" />
244
- <input type="checkbox" name="fbchk" id="fbchk" style="margin-top:5px; margin-left:6px;" <?php if($value['fb']!='') echo 'checked'?>/><br /><br />
245
- <!-- twitter field with checkbox -->
246
- <img src="<?php echo plugins_url('images/twitter.png',__FILE__) ?>" align="left" />
247
- <input type="text" name="twit" id="twit" value="<?php echo $value['twit']; ?>" placeholder="Enter twitter url" style="width:250px; margin-left:10px" />
248
- <input type="checkbox" name="twitchk" id="twitchk" style="margin-top:5px; margin-left:6px;" <?php if($value['twit']!='') echo 'checked'?>/><br /><br />
249
- <!-- google plus field with checkbox -->
250
- <img src="<?php echo plugins_url('images/googleplus.png',__FILE__) ?>" align="left" />
251
- <input type="text" name="gp" id="gp" value="<?php echo $value['gp']; ?>" placeholder="Enter google-plus url" style="width:250px; margin-left:10px" />
252
- <input type="checkbox" name="gpchk" id="gpchk" style="margin-top:5px; margin-left:6px;" <?php if($value['gp']!='') echo 'checked'?>/>
253
- </div>
254
- </div>
255
- </div>
256
- </div>
257
- <!-- div end for display "Social media links" field -->
258
- <!-- save and reset button -->
259
- <input type="button" class="button-framework save-options" value= "<?php _e('Save Changes');?>" onclick="datasave_general_pagesetting()"/>
260
- <input type="button" class="button-framework reset" value="<?php _e('Restore Defaults');?>" onclick="reset_data_general_pagesetting()" />
261
- &nbsp;<img id="loading_general" style="display:none;
262
- vertical-align:middle;" class="loading" src="<?php echo plugins_url('/images/loading.gif',__FILE__);?>" />
263
- <div id="success_message_reset_general" ><?php _e('Data reset sucessfully');?> </div>
264
- <div id="success_message_save_general" ><?php _e('Data save sucessfully');?></div>
265
- </div>
 
 
 
 
 
 
 
 
266
  <!-- general setting page final div is closed -->
1
+ <?php
2
+ //Set Your Nonce
3
+ $ajax_nonce = wp_create_nonce( "my-general-string" );
4
+ ?>
5
+
6
+
7
+ <script>
8
+ //save button onclick function for post value through ajax in option table
9
+ function datasave_general_pagesetting()
10
+ {
11
+ var status= jQuery('input[type="radio"]:checked').val();
12
+ var background = jQuery('#upload_background').val();
13
+ var title = jQuery('#title').val();
14
+ var descrip = jQuery('#descrip').val();
15
+ var google_code = jQuery('#google_code').val();
16
+ jQuery('#loading_general').show();
17
+
18
+
19
+ if(jQuery('#fbchk').is(':checked'))
20
+ {
21
+
22
+ var fb = jQuery('#fb').val();
23
+
24
+ }
25
+ if(jQuery('#twitchk').is(':checked'))
26
+ {
27
+
28
+ var twit= jQuery('#twit').val();
29
+
30
+ }
31
+ if(jQuery('#gpchk').is(':checked'))
32
+ {
33
+
34
+ var gp= jQuery('#gp').val();
35
+
36
+ }
37
+
38
+ jQuery.ajax(
39
+ {
40
+ type: "POST",
41
+ url: ajaxurl,
42
+
43
+ data : {
44
+ 'action':'coming_soon_page_settings',
45
+ 'security' : '<?php echo $ajax_nonce; ?>',
46
+ 'status':status,
47
+ 'background':background,
48
+ 'title':title,
49
+ 'descrip':descrip,
50
+ 'google_code':google_code,
51
+ 'fb':fb,
52
+ 'twit':twit,
53
+ 'gp':gp,
54
+ },
55
+ success : function(data){
56
+ jQuery('#loading_general').hide();
57
+ jQuery('#success_message_save_general').show();
58
+ jQuery("#success_message_save_general").fadeOut(5000);
59
+
60
+ location.href='?page=coming_soon';
61
+ }
62
+ });
63
+ }
64
+
65
+ //reset button onclick function for post value through ajax in option table
66
+ function reset_data_general_pagesetting()
67
+ {
68
+ jQuery.ajax(
69
+ {
70
+ type: "POST",
71
+ url: ajaxurl,
72
+
73
+ data : {
74
+ 'action':'coming_soon_page_reset_settings',
75
+ 'security' : '<?php echo $ajax_nonce; ?>',
76
+ },
77
+ success : function(data){
78
+ jQuery('#success_message_reset_general').show();
79
+ jQuery("#success_message_reset_general").fadeOut(5000);
80
+ location.href='?page=coming_soon';
81
+ }
82
+
83
+ });
84
+
85
+ }
86
+
87
+ </script>
88
+
89
+ <style>
90
+ /* =Tooltips style
91
+ ========================================================================*/
92
+
93
+ .icon {
94
+ display: inline-block;
95
+ width: 16px;
96
+ height: 16px;
97
+ position: relative;
98
+ padding: 0 4px 0 0;
99
+
100
+ background: url(<?php echo plugins_url('images/icons.png',__FILE__) ?>) no-repeat;
101
+ }
102
+
103
+ .tooltip {
104
+ display: none;
105
+ width: 200px;
106
+ position: absolute;
107
+ padding: 10px;
108
+ margin: 4px 0 0 4px;
109
+ top: 0;
110
+ right: 16px;
111
+ border: 1px solid #76B6D7;
112
+ border-radius: 0 8px 8px 8px;
113
+ background: #bedffe;
114
+ font-size: 13px;
115
+ box-shadow: 0 1px 2px -1px #21759B;
116
+ z-index: 999;
117
+ }
118
+
119
+ /* Icons Sprite Position */
120
+
121
+ .help {
122
+ background-position: 0 0;
123
+ }
124
+
125
+ .warning {
126
+ background-position: -20px 0;
127
+ }
128
+
129
+ .error {
130
+ background-position: -40px 0;
131
+ }
132
+
133
+ /* Tooltip Colors */
134
+
135
+ .help .tooltip {
136
+
137
+ background-color: #2f96b4;
138
+ background-image: -moz-linear-gradient(top, #52b2cf, #2f96b4);
139
+ background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#52b2cf), to(#2f96b4));
140
+ background-image: -webkit-linear-gradient(top, #52b2cf, #2f96b4);
141
+ background-image: -o-linear-gradient(top, #52b2cf, #2f96b4);
142
+ background-image: linear-gradient(to bottom, #52b2cf, #2f96b4);
143
+ color:#fff;
144
+ box-shadow-color: #21759B;
145
+ font-size:15px;
146
+ border-radius:10px;
147
+ }
148
+
149
+ .warning .tooltip {
150
+ border-color: #cca863;
151
+ background-color: #ffff70;
152
+ box-shadow-color: #ac8c4e;
153
+ }
154
+
155
+ .error .tooltip {
156
+ border-color: #b50d0d;
157
+ background-color: #e44d4e;
158
+ box-shadow-color: #810606;
159
+ }
160
+
161
+ .icon:hover .tooltip {
162
+ display: block;
163
+ box-shadow: 0 10px 20px -1px rgba(0,0,0,0.5);
164
+
165
+
166
+ }
167
+ </style>
168
+
169
+ <!--get values from option table -->
170
+ <?php $value=get_option('soon_page_settings');
171
+ ?>
172
+ <!-- div start general settings get on tabs -->
173
+ <div class="block ui-tabs-panel ui-widget-content ui-corner-bottom" id="option_general" aria-labelledby="ui-id-1" >
174
+ <!--div start for display "status" field -->
175
+ <div class="option option-input">
176
+
177
+ <h3><?php _e('Status');?><span class="icon help" style="float:right">
178
+ <span class="tooltip">Enable coming soon page from here.</span>
179
+ </span></h3>
180
+ <div class="section">
181
+ <div class="element">
182
+ <input type="radio" name="status" value="0" id="status" <?php if($value['status']=='0') echo 'checked' ?>/>&nbsp;Disabled<br>
183
+ <input type="radio" name="status" value="1" id="status" <?php if($value['status']=='1') echo 'checked' ?>/>&nbsp;Coming soon enabled
184
+ </div>
185
+ </div>
186
+ </div>
187
+ <!-- div end for display "status" field -->
188
+ <!--div start for display "background" field -->
189
+ <div class="option option-upload">
190
+ <h3><?php _e('Background Image');?><span class="icon help" style="float:right">
191
+ <span class="tooltip">The placeholder image that will be used as a background image.</span>
192
+ </span></h3>
193
+ <div class="section">
194
+ <div class="element">
195
+ <input type="text" value="<?php echo esc_attr($value['background']); ?>" id="upload_background" name="upload_image" size="36" />
196
+ <input type="button" value="Upload Background Image" class="button-primary" style="margin-left:10px;height:30px" />
197
+ </div>
198
+
199
+ <br><div style="display:block;float:left;"><img style="" src="<?php echo esc_attr($value['background']); ?>" id="ecs_backg_img" class="preview_image" ></div>
200
+
201
+ </div>
202
+ </div>
203
+ <!-- div end for display "background" field -->
204
+ <!-- div start for display "title" field -->
205
+ <div class="option option-input">
206
+ <h3><?php _e('Title');?><span class="icon help" style="float:right">
207
+ <span class="tooltip">This is the page title and will be displayed on top of the page.</span>
208
+ </span></h3>
209
+ <div class="section">
210
+ <div class="element">
211
+ <input type="text" value="<?php if($value['title']==""){echo "coming soon page";} else{echo $value['title'];} ?>" id="title" name="title" class="" />
212
+ </div>
213
+ </div>
214
+ </div>
215
+ <!-- div end for display "title" field -->
216
+ <!-- div start for display "description" field -->
217
+ <div class="option option-input">
218
+ <h3><?php _e('Description');?><span class="icon help" style="float:right">
219
+ <span class="tooltip">This will be displayed below the Page Title.</span>
220
+ </span></h3>
221
+ <div class="section">
222
+ <div class="element">
223
+ <textarea name="descrip" id="descrip" rows="10" cols="100"><?php if($value['descrip']==""){echo "This website will launch soon. To connect with us enter your email below.";} else{echo $value['descrip'];} ?> </textarea>
224
+ </div>
225
+ </div>
226
+ </div>
227
+ <!-- div end for display "description" field -->
228
+ <!-- div start for display "description" field -->
229
+ <div class="option option-input">
230
+ <h3><?php _e('Google Analytics Code');?><span class="icon help" style="float:right">
231
+ <span class="tooltip">Insert the tracking code here. For example Google Analytics code can be inserted here.</span>
232
+ </span></h3>
233
+ <div class="section">
234
+ <div class="element">
235
+ <textarea name="google_code" id="google_code" rows="4" cols="100"><?php echo $value['google_code']; ?> </textarea>
236
+ </div>
237
+ </div>
238
+ </div>
239
+ <!-- div end for display "description" field -->
240
+
241
+ <!-- div start for display "Social media links" field -->
242
+ <div class="option option-input">
243
+ <h3><?php _e('Social Media Links');?><span class="icon help" style="float:right">
244
+ <span class="tooltip">Make you page Social. Insert social links here.</span>
245
+ </span></h3>
246
+ <div class="section">
247
+ <div class="element">
248
+ <div>
249
+ <!-- facebook field with checkbox -->
250
+ <img src="<?php echo plugins_url('images/facebook.png',__FILE__) ?>" align="left" />
251
+ <input type="text" name="fb" id="fb" value="<?php echo $value['fb']; ?>" placeholder="Enter facbook url" style="width:250px; margin-left:10px" />
252
+ <input type="checkbox" name="fbchk" id="fbchk" style="margin-top:5px; margin-left:6px;" <?php if($value['fb']!='') echo 'checked'?>/><br /><br />
253
+ <!-- twitter field with checkbox -->
254
+ <img src="<?php echo plugins_url('images/twitter.png',__FILE__) ?>" align="left" />
255
+ <input type="text" name="twit" id="twit" value="<?php echo $value['twit']; ?>" placeholder="Enter twitter url" style="width:250px; margin-left:10px" />
256
+ <input type="checkbox" name="twitchk" id="twitchk" style="margin-top:5px; margin-left:6px;" <?php if($value['twit']!='') echo 'checked'?>/><br /><br />
257
+ <!-- google plus field with checkbox -->
258
+ <img src="<?php echo plugins_url('images/googleplus.png',__FILE__) ?>" align="left" />
259
+ <input type="text" name="gp" id="gp" value="<?php echo $value['gp']; ?>" placeholder="Enter google-plus url" style="width:250px; margin-left:10px" />
260
+ <input type="checkbox" name="gpchk" id="gpchk" style="margin-top:5px; margin-left:6px;" <?php if($value['gp']!='') echo 'checked'?>/>
261
+ </div>
262
+ </div>
263
+ </div>
264
+ </div>
265
+ <!-- div end for display "Social media links" field -->
266
+ <!-- save and reset button -->
267
+ <input type="button" class="button-framework save-options" value= "<?php _e('Save Changes');?>" onclick="datasave_general_pagesetting()"/>
268
+ <input type="button" class="button-framework reset" value="<?php _e('Restore Defaults');?>" onclick="reset_data_general_pagesetting()" />
269
+ &nbsp;<img id="loading_general" style="display:none;
270
+ vertical-align:middle;" class="loading" src="<?php echo plugins_url('/images/loading.gif',__FILE__);?>" />
271
+ <div id="success_message_reset_general" ><?php _e('Data reset sucessfully');?> </div>
272
+ <div id="success_message_save_general" ><?php _e('Data save sucessfully');?></div>
273
+ </div>
274
  <!-- general setting page final div is closed -->
notification-settings.php CHANGED
@@ -1,294 +1,300 @@
1
- <script>
2
-
3
- function datasave_footer()
4
- {
5
-
6
- var mailto = jQuery( "#mailingarea" ).val();
7
- var email_address = jQuery('#email').val();
8
-
9
- var message = jQuery('#message').val();
10
-
11
- var sb_btn = jQuery('#sb_btn').val();
12
- var placeholder_text = jQuery('#placeholder_text').val();
13
-
14
-
15
- if(mailto == 'yes')
16
- {
17
- if(email_address == '')
18
- {
19
- alert("Please enter your email");
20
- return false;
21
- }
22
- var regex = /^([a-zA-Z0-9_.+-])+\@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/;
23
- if(!regex.test(email_address))
24
- {
25
- alert("Please Enter a valid Email Address");
26
- return false;
27
- }
28
-
29
- }
30
-
31
- jQuery('#loading_notify').show();
32
- jQuery.ajax(
33
- {
34
- type: "POST",
35
- url: ajaxurl,
36
-
37
- data : {
38
- 'action':'coming_soon_page_notification_settings',
39
-
40
-
41
- 'mailto':mailto,
42
- 'email_address':email_address,
43
- 'message':message,
44
- 'sb_btn':sb_btn,
45
- 'placeholder_text':placeholder_text,
46
-
47
- },
48
- success : function(data){
49
- jQuery('#loading_notify').hide();
50
- jQuery('#success_message_save_footer').show();
51
- jQuery("#success_message_save_footer").fadeOut(5000);
52
- //location.href='?page=coming_soon';
53
- }
54
- });
55
-
56
-
57
-
58
- }
59
-
60
- function reset_data_footersetting()
61
- {
62
- jQuery.ajax(
63
- {
64
- type: "POST",
65
- url: ajaxurl,
66
-
67
- data : {
68
- 'action':'coming_soon_page_reset_notification_settings',
69
- },
70
- success : function(data){
71
- jQuery('#success_message_reset_footer').show();
72
- jQuery("#success_message_reset_footer").fadeOut(5000);
73
- location.href='?page=coming_soon';
74
- }
75
-
76
- });
77
-
78
-
79
- }
80
-
81
- function mail_field_display()
82
- {
83
- var mailfield = jQuery("#mailingarea").val();
84
- //alert(mailfield)
85
- if(mailfield=="no"){ hideAll(); }
86
- if(mailfield=="yes"){ show_mail_field(); }
87
-
88
- }
89
-
90
- function hideAll()
91
- {
92
- jQuery('#mail_field').hide();
93
- jQuery('#message_field').hide();
94
- jQuery('#subscribe_button').hide();
95
- jQuery('#placeholder').hide();
96
-
97
- }
98
-
99
- function show_mail_field()
100
- {
101
- jQuery('#mail_field').show();
102
- jQuery('#message_field').show();
103
- jQuery('#subscribe_button').show();
104
- jQuery('#placeholder').show();
105
-
106
- }
107
-
108
-
109
- </script>
110
- <style>
111
- /* =Tooltips style
112
- ========================================================================*/
113
-
114
- .icon {
115
- display: inline-block;
116
- width: 16px;
117
- height: 16px;
118
- position: relative;
119
- padding: 0 4px 0 0;
120
-
121
- background: url(<?php echo plugins_url('images/icons.png',__FILE__) ?>) no-repeat;
122
- }
123
-
124
- .tooltip {
125
- display: none;
126
- width: 200px;
127
- position: absolute;
128
- padding: 10px;
129
- margin: 4px 0 0 4px;
130
- top: 0;
131
- right: 16px;
132
- border: 1px solid #76B6D7;
133
- border-radius: 0 8px 8px 8px;
134
- background: #bedffe;
135
- font-size: 13px;
136
- box-shadow: 0 1px 2px -1px #21759B;
137
- z-index: 999;
138
- }
139
-
140
- /* Icons Sprite Position */
141
-
142
- .help {
143
- background-position: 0 0;
144
- }
145
-
146
- .warning {
147
- background-position: -20px 0;
148
- }
149
-
150
- .error {
151
- background-position: -40px 0;
152
- }
153
-
154
- /* Tooltip Colors */
155
-
156
- .help .tooltip {
157
- border-color: #76B6D7;
158
- background-color: #bedffe;
159
- box-shadow-color: #21759B;
160
- }
161
-
162
- .warning .tooltip {
163
- border-color: #cca863;
164
- background-color: #ffff70;
165
- box-shadow-color: #ac8c4e;
166
- }
167
-
168
- .error .tooltip {
169
- border-color: #b50d0d;
170
- background-color: #e44d4e;
171
- box-shadow-color: #810606;
172
- }
173
-
174
- .icon:hover .tooltip {
175
- display: block;
176
- }
177
- </style>
178
- <?php $value=get_option('soon_page_notification_settings');?>
179
- <div class="block ui-tabs-panel ui-widget-content ui-corner-bottom" id="option_home" aria-labelledby="ui-id-5" role="tabpanel" style="display: none;" aria-expanded="false" aria-hidden="true">
180
-
181
- <!-- div start for display "Enter mail field" field -->
182
- <div class="option option-input">
183
- <h3><?php _e('Mailing Option');?><span class="icon help" style="float:right">
184
- <span class="tooltip">Choose if you want to display a signup / subscribe field on the page.</span></span></h3>
185
- <div class="section">
186
- <div class="element">
187
- <select name="mailingarea" id="mailingarea" onchange="mail_field_display()" >
188
- <option onclick="hideAll()" value="no" <?php if($value['mailto']=='no') echo 'selected' ?> ><?php _e('Do not display signup field'); ?></option>
189
- <option onclick="show_mail_field()" value="yes" <?php if($value['mailto']=='yes') echo 'selected' ?>><?php _e('Mail to the Owner'); ?></option>
190
- </select>
191
- </div>
192
- </div>
193
- </div>
194
- <!-- div end for display "Enter mail field" field -->
195
- <!-- div start for display "Owner email address" field -->
196
- <div class="option option-input" id="mail_field" style="display:<?php if($value['mailto']=='no') {echo 'none';} elseif($value['mailto']=='') echo 'none' ?>;">
197
- <h3 style="color:#21759b"><?php _e('Owner Email Address');?><span class="icon help" style="float:right">
198
- <span class="tooltip">Information of new susbscribers will be sent to this email address.</span></span></h3>
199
- <div class="section">
200
- <div class="element">
201
- <input type="text" value="<?php echo $value['email_address'] ?>" id="email" name="email" placeholder="example@gmail.com" class="" />
202
- </div>
203
- </div>
204
- </div>
205
- <!-- div end for display "Owner email address" field -->
206
- <!-- div start for display "Display message to subscriber" field -->
207
- <div class="option option-input" id="message_field" style="display:<?php if($value['mailto']=='no') {echo 'none';} elseif($value['mailto']=='') echo 'none' ?>;">
208
- <h3 style="color:#21759b"><?php _e('Display Message after user subscribing');?><span class="icon help" style="float:right">
209
- <span class="tooltip">Enter message to display after a user enters his email address.</span></h3>
210
- <div class="section">
211
- <div class="element">
212
- <input type="text" value="<?php echo $value['message'] ?>" id="message" name="message" placeholder="Thanks you for subscribing" class="" />
213
- </div>
214
- </div>
215
- </div>
216
- <!-- div end for display "message display to subscriber" -->
217
- <!-- div start for enter "Notify button label" field -->
218
- <div class="option option-input" id="subscribe_button" style="display:<?php if($value['mailto']=='no') {echo 'none';} elseif($value['mailto']=='') echo 'none' ?>;">
219
- <h3 style="color:#21759b"><?php _e('Subscribe Button');?><span class="icon help" style="float:right">
220
- <span class="tooltip">Customize the button text.</span></h3>
221
- <div class="section">
222
- <div class="element">
223
- <input type="text" value="<?php echo $value['sb_btn'] ?>" id="sb_btn" name="sb_btn" placeholder="Notify Me!" class="" />
224
- </div>
225
- </div>
226
- </div>
227
- <!-- div end for enter "notify buttton label" field -->
228
- <!-- div start for enter "email placeholder" field -->
229
- <div class="option option-input" id="placeholder" style="display:<?php if($value['mailto']=='no') {echo 'none';} elseif($value['mailto']=='') echo 'none' ?>;">
230
- <h3 style="color:#21759b"><?php _e('Email Textbox Placeholder');?><span class="icon help" style="float:right">
231
- <span class="tooltip">Customize the placeholder text of your subscription field</span></h3>
232
- <div class="section">
233
- <div class="element">
234
- <input type="text" value="<?php echo $value['placeholder_text'] ?>" id="placeholder_text" name="placeholder_text" placeholder="Enter your email to notify" class="" />
235
- </div>
236
- </div>
237
- </div>
238
- <!-- div end for enter "email placeholder" field -->
239
-
240
-
241
- <input type="hidden" value="1" id="spa_footer_customization" name="spa_footer_customization" />
242
- <input type="button" class="button-framework save-options" value= "<?php _e('Save Changes');?>" onclick="datasave_footer()">
243
-
244
- <input type="button" class="button-framework reset" value="<?php _e('Restore Defaults');?>" onclick="reset_data_footersetting()" />
245
- &nbsp;<img id="loading_notify" style="display:none;
246
- vertical-align:middle;" class="loading" src="<?php echo plugins_url('/images/loading.gif',__FILE__);?>" />
247
- <div id="success_message_reset_footer" >
248
- <?php _e('Data reset sucessfully');?>
249
- </div>
250
-
251
- <div id="success_message_save_footer" >
252
- <?php _e('Data save sucessfully');?>
253
- </div>
254
- </div>
255
- <style>
256
- #success_message_save_footer{
257
- display: none;
258
- margin: 15px 8px 0px 1px;
259
- padding: 13px 0px 15px 52px;
260
- background: url(<?php echo plugins_url("/images/icon_check.png",__FILE__) ?>) left no-repeat #21759B;
261
- /*opacity:0.5;
262
- filter:alpha(opacity=50);*/
263
- background-position: 15px 15px;
264
- border: solid 1px #F22853;
265
- -webkit-border-radius: 15px;
266
- -moz-border-radius: 15px;
267
- border-radius: 15px;
268
- width: 220px;
269
- font-size: 20px;
270
- color: #ffffff;
271
- position: absolute;
272
- left: 500px;
273
- bottom: 20px;
274
-
275
- }
276
- #success_message_reset_footer {
277
- display: none;
278
- margin: 15px 8px 0px 1px;
279
- padding: 13px 0px 15px 52px;
280
- background: url(<?php echo plugins_url("/images/icon_check.png",__FILE__) ?>) left no-repeat #21759B;
281
-
282
- background-position: 15px 15px;
283
- border: solid 1px #F22853;
284
- -webkit-border-radius: 15px;
285
- -moz-border-radius: 15px;
286
- border-radius: 15px;
287
- width: 220px;
288
- font-size: 20px;
289
- color: #ffffff;
290
- position: absolute;
291
- left: 500px;
292
- bottom: 20px;
293
- }
 
 
 
 
 
 
294
  </style>
1
+ <?php
2
+ //Set Your Nonce
3
+ $ajax_nonce = wp_create_nonce( "my-notification-string" );
4
+ ?>
5
+
6
+ <script>
7
+
8
+ function datasave_footer()
9
+ {
10
+
11
+ var mailto = jQuery( "#mailingarea" ).val();
12
+ var email_address = jQuery('#email').val();
13
+
14
+ var message = jQuery('#message').val();
15
+
16
+ var sb_btn = jQuery('#sb_btn').val();
17
+ var placeholder_text = jQuery('#placeholder_text').val();
18
+
19
+
20
+ if(mailto == 'yes')
21
+ {
22
+ if(email_address == '')
23
+ {
24
+ alert("Please enter your email");
25
+ return false;
26
+ }
27
+ var regex = /^([a-zA-Z0-9_.+-])+\@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/;
28
+ if(!regex.test(email_address))
29
+ {
30
+ alert("Please Enter a valid Email Address");
31
+ return false;
32
+ }
33
+
34
+ }
35
+
36
+ jQuery('#loading_notify').show();
37
+ jQuery.ajax(
38
+ {
39
+ type: "POST",
40
+ url: ajaxurl,
41
+
42
+ data : {
43
+ 'action':'coming_soon_page_notification_settings',
44
+ 'security' : '<?php echo $ajax_nonce; ?>',
45
+
46
+ 'mailto':mailto,
47
+ 'email_address':email_address,
48
+ 'message':message,
49
+ 'sb_btn':sb_btn,
50
+ 'placeholder_text':placeholder_text,
51
+
52
+ },
53
+ success : function(data){
54
+ jQuery('#loading_notify').hide();
55
+ jQuery('#success_message_save_footer').show();
56
+ jQuery("#success_message_save_footer").fadeOut(5000);
57
+ //location.href='?page=coming_soon';
58
+ }
59
+ });
60
+
61
+
62
+
63
+ }
64
+
65
+ function reset_data_footersetting()
66
+ {
67
+ jQuery.ajax(
68
+ {
69
+ type: "POST",
70
+ url: ajaxurl,
71
+
72
+ data : {
73
+ 'action':'coming_soon_page_reset_notification_settings',
74
+ 'security' : '<?php echo $ajax_nonce; ?>',
75
+ },
76
+ success : function(data){
77
+ jQuery('#success_message_reset_footer').show();
78
+ jQuery("#success_message_reset_footer").fadeOut(5000);
79
+ location.href='?page=coming_soon';
80
+ }
81
+
82
+ });
83
+
84
+
85
+ }
86
+
87
+ function mail_field_display()
88
+ {
89
+ var mailfield = jQuery("#mailingarea").val();
90
+ //alert(mailfield)
91
+ if(mailfield=="no"){ hideAll(); }
92
+ if(mailfield=="yes"){ show_mail_field(); }
93
+
94
+ }
95
+
96
+ function hideAll()
97
+ {
98
+ jQuery('#mail_field').hide();
99
+ jQuery('#message_field').hide();
100
+ jQuery('#subscribe_button').hide();
101
+ jQuery('#placeholder').hide();
102
+
103
+ }
104
+
105
+ function show_mail_field()
106
+ {
107
+ jQuery('#mail_field').show();
108
+ jQuery('#message_field').show();
109
+ jQuery('#subscribe_button').show();
110
+ jQuery('#placeholder').show();
111
+
112
+ }
113
+
114
+
115
+ </script>
116
+ <style>
117
+ /* =Tooltips style
118
+ ========================================================================*/
119
+
120
+ .icon {
121
+ display: inline-block;
122
+ width: 16px;
123
+ height: 16px;
124
+ position: relative;
125
+ padding: 0 4px 0 0;
126
+
127
+ background: url(<?php echo plugins_url('images/icons.png',__FILE__) ?>) no-repeat;
128
+ }
129
+
130
+ .tooltip {
131
+ display: none;
132
+ width: 200px;
133
+ position: absolute;
134
+ padding: 10px;
135
+ margin: 4px 0 0 4px;
136
+ top: 0;
137
+ right: 16px;
138
+ border: 1px solid #76B6D7;
139
+ border-radius: 0 8px 8px 8px;
140
+ background: #bedffe;
141
+ font-size: 13px;
142
+ box-shadow: 0 1px 2px -1px #21759B;
143
+ z-index: 999;
144
+ }
145
+
146
+ /* Icons Sprite Position */
147
+
148
+ .help {
149
+ background-position: 0 0;
150
+ }
151
+
152
+ .warning {
153
+ background-position: -20px 0;
154
+ }
155
+
156
+ .error {
157
+ background-position: -40px 0;
158
+ }
159
+
160
+ /* Tooltip Colors */
161
+
162
+ .help .tooltip {
163
+ border-color: #76B6D7;
164
+ background-color: #bedffe;
165
+ box-shadow-color: #21759B;
166
+ }
167
+
168
+ .warning .tooltip {
169
+ border-color: #cca863;
170
+ background-color: #ffff70;
171
+ box-shadow-color: #ac8c4e;
172
+ }
173
+
174
+ .error .tooltip {
175
+ border-color: #b50d0d;
176
+ background-color: #e44d4e;
177
+ box-shadow-color: #810606;
178
+ }
179
+
180
+ .icon:hover .tooltip {
181
+ display: block;
182
+ }
183
+ </style>
184
+ <?php $value=get_option('soon_page_notification_settings');?>
185
+ <div class="block ui-tabs-panel ui-widget-content ui-corner-bottom" id="option_home" aria-labelledby="ui-id-5" role="tabpanel" style="display: none;" aria-expanded="false" aria-hidden="true">
186
+
187
+ <!-- div start for display "Enter mail field" field -->
188
+ <div class="option option-input">
189
+ <h3><?php _e('Mailing Option');?><span class="icon help" style="float:right">
190
+ <span class="tooltip">Choose if you want to display a signup / subscribe field on the page.</span></span></h3>
191
+ <div class="section">
192
+ <div class="element">
193
+ <select name="mailingarea" id="mailingarea" onchange="mail_field_display()" >
194
+ <option onclick="hideAll()" value="no" <?php if($value['mailto']=='no') echo 'selected' ?> ><?php _e('Do not display signup field'); ?></option>
195
+ <option onclick="show_mail_field()" value="yes" <?php if($value['mailto']=='yes') echo 'selected' ?>><?php _e('Mail to the Owner'); ?></option>
196
+ </select>
197
+ </div>
198
+ </div>
199
+ </div>
200
+ <!-- div end for display "Enter mail field" field -->
201
+ <!-- div start for display "Owner email address" field -->
202
+ <div class="option option-input" id="mail_field" style="display:<?php if($value['mailto']=='no') {echo 'none';} elseif($value['mailto']=='') echo 'none' ?>;">
203
+ <h3 style="color:#21759b"><?php _e('Owner Email Address');?><span class="icon help" style="float:right">
204
+ <span class="tooltip">Information of new susbscribers will be sent to this email address.</span></span></h3>
205
+ <div class="section">
206
+ <div class="element">
207
+ <input type="text" value="<?php echo $value['email_address'] ?>" id="email" name="email" placeholder="example@gmail.com" class="" />
208
+ </div>
209
+ </div>
210
+ </div>
211
+ <!-- div end for display "Owner email address" field -->
212
+ <!-- div start for display "Display message to subscriber" field -->
213
+ <div class="option option-input" id="message_field" style="display:<?php if($value['mailto']=='no') {echo 'none';} elseif($value['mailto']=='') echo 'none' ?>;">
214
+ <h3 style="color:#21759b"><?php _e('Display Message after user subscribing');?><span class="icon help" style="float:right">
215
+ <span class="tooltip">Enter message to display after a user enters his email address.</span></h3>
216
+ <div class="section">
217
+ <div class="element">
218
+ <input type="text" value="<?php echo $value['message'] ?>" id="message" name="message" placeholder="Thanks you for subscribing" class="" />
219
+ </div>
220
+ </div>
221
+ </div>
222
+ <!-- div end for display "message display to subscriber" -->
223
+ <!-- div start for enter "Notify button label" field -->
224
+ <div class="option option-input" id="subscribe_button" style="display:<?php if($value['mailto']=='no') {echo 'none';} elseif($value['mailto']=='') echo 'none' ?>;">
225
+ <h3 style="color:#21759b"><?php _e('Subscribe Button');?><span class="icon help" style="float:right">
226
+ <span class="tooltip">Customize the button text.</span></h3>
227
+ <div class="section">
228
+ <div class="element">
229
+ <input type="text" value="<?php echo $value['sb_btn'] ?>" id="sb_btn" name="sb_btn" placeholder="Notify Me!" class="" />
230
+ </div>
231
+ </div>
232
+ </div>
233
+ <!-- div end for enter "notify buttton label" field -->
234
+ <!-- div start for enter "email placeholder" field -->
235
+ <div class="option option-input" id="placeholder" style="display:<?php if($value['mailto']=='no') {echo 'none';} elseif($value['mailto']=='') echo 'none' ?>;">
236
+ <h3 style="color:#21759b"><?php _e('Email Textbox Placeholder');?><span class="icon help" style="float:right">
237
+ <span class="tooltip">Customize the placeholder text of your subscription field</span></h3>
238
+ <div class="section">
239
+ <div class="element">
240
+ <input type="text" value="<?php echo $value['placeholder_text'] ?>" id="placeholder_text" name="placeholder_text" placeholder="Enter your email to notify" class="" />
241
+ </div>
242
+ </div>
243
+ </div>
244
+ <!-- div end for enter "email placeholder" field -->
245
+
246
+
247
+ <input type="hidden" value="1" id="spa_footer_customization" name="spa_footer_customization" />
248
+ <input type="button" class="button-framework save-options" value= "<?php _e('Save Changes');?>" onclick="datasave_footer()">
249
+
250
+ <input type="button" class="button-framework reset" value="<?php _e('Restore Defaults');?>" onclick="reset_data_footersetting()" />
251
+ &nbsp;<img id="loading_notify" style="display:none;
252
+ vertical-align:middle;" class="loading" src="<?php echo plugins_url('/images/loading.gif',__FILE__);?>" />
253
+ <div id="success_message_reset_footer" >
254
+ <?php _e('Data reset sucessfully');?>
255
+ </div>
256
+
257
+ <div id="success_message_save_footer" >
258
+ <?php _e('Data save sucessfully');?>
259
+ </div>
260
+ </div>
261
+ <style>
262
+ #success_message_save_footer{
263
+ display: none;
264
+ margin: 15px 8px 0px 1px;
265
+ padding: 13px 0px 15px 52px;
266
+ background: url(<?php echo plugins_url("/images/icon_check.png",__FILE__) ?>) left no-repeat #21759B;
267
+ /*opacity:0.5;
268
+ filter:alpha(opacity=50);*/
269
+ background-position: 15px 15px;
270
+ border: solid 1px #F22853;
271
+ -webkit-border-radius: 15px;
272
+ -moz-border-radius: 15px;
273
+ border-radius: 15px;
274
+ width: 220px;
275
+ font-size: 20px;
276
+ color: #ffffff;
277
+ position: absolute;
278
+ left: 500px;
279
+ bottom: 20px;
280
+
281
+ }
282
+ #success_message_reset_footer {
283
+ display: none;
284
+ margin: 15px 8px 0px 1px;
285
+ padding: 13px 0px 15px 52px;
286
+ background: url(<?php echo plugins_url("/images/icon_check.png",__FILE__) ?>) left no-repeat #21759B;
287
+
288
+ background-position: 15px 15px;
289
+ border: solid 1px #F22853;
290
+ -webkit-border-radius: 15px;
291
+ -moz-border-radius: 15px;
292
+ border-radius: 15px;
293
+ width: 220px;
294
+ font-size: 20px;
295
+ color: #ffffff;
296
+ position: absolute;
297
+ left: 500px;
298
+ bottom: 20px;
299
+ }
300
  </style>
pro-detail.php CHANGED
@@ -206,7 +206,7 @@ As a user you just have to fill in the data via option panel and a Coming Soon P
206
 
207
  <div class="span6" style="width:85%;margin-top: auto;">
208
  <h3>Pricing</h3>
209
- <p> The pro version is priced at <strong>very reasonable 39 USD</strong> and entitles you to receive <strong>support and updates for 1 year</strong>. <br><br>If you need updates and support after one year, then simply renew the license. If not, then you may keep using the plugin. <br>You may use the plugin on any number of websites you want</p>
210
 
211
 
212
  <h3>How to Purchase.</h3>
206
 
207
  <div class="span6" style="width:85%;margin-top: auto;">
208
  <h3>Pricing</h3>
209
+ <p> The pro version is priced at <strong>very reasonable 29 USD</strong> and entitles you to receive <strong>support and updates for 1 year</strong>. <br><br>If you need updates and support after one year, then simply renew the license. If not, then you may keep using the plugin. <br>You may use the plugin on any number of websites you want</p>
210
 
211
 
212
  <h3>How to Purchase.</h3>
readme.txt CHANGED
@@ -1,176 +1,179 @@
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.1
7
- Stable tag: 1.6.2
8
- License: GPLv2 or later
9
- License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
-
11
- Easy coming Soon plugin allows you to quickly create a launch / under construction page for your website. Collects e-mails and connect with users on Social Network.
12
-
13
- == Description ==
14
-
15
- The **Easy Coming Soon** plugin allows you quckly create a Launch page / Coming Soon page for your wordpress website. Simply activate the plugin, Setup Page Title , Description and you are ready to go.
16
-
17
- The Easy Coming Soon plugin works with any WordPress theme you have installed on your site. Looged out users will see the coming soon page while logged-in users will have access to the website. This is ideal for web developers who want to present their clients with a Under construction page while working on the website.
18
-
19
- Give **Easy Coming Soon** a try. We are sure you will like it.
20
-
21
- In case you face any problem, contact us via the [Forums](http://wordpress.org/support/plugin/easy-coming-soon).
22
-
23
-
24
- * [Upgrade to the Easy Coming Soon Pro Version &raquo;](http://webriti.com/easy-coming-soon-pro-detail-page)
25
- * [View Easy Coming Soon Pro Live Demo &raquo;](http://webriti.com/coming-soon-demo-select)
26
-
27
-
28
- ### Features And Options:
29
-
30
- * Works with any WordPress Theme
31
- * Responsive
32
- * Responsive Option Panel
33
- * Provide Social connectivity(Facebook, Twitter, Google+)
34
- * Free Coming soon page template
35
- * Flexible and user-friendly setup
36
- * Live Preview of coming soon page
37
- * Subscribe feature / Easily collect visitor emails
38
- * Add Google Analytics Tracking to the Coming Soon Page
39
- * Very easy customization of coming soon page template setup
40
- * Simple admin settings and simple customization of Background Color, Background Image, Fonts color and fonts style etc..
41
- * Coming soon Active mode menu bar on wordpress admin dashboard.
42
- * Visible only non logged user.
43
- * Easily update and post content in your site when "Easy Coming Soon" is in Active mode.
44
-
45
- ### Pro Version Features:
46
-
47
- * Works with any WordPress theme
48
- * Visible only to non logged in users
49
- * Responsive
50
- * Responsive Option Panel
51
- * Flexible and user-friendly setup
52
- * Google Analytics Support
53
- * Integrated Google Fonts Support
54
- * Translation Ready Support
55
- * Mobile Ready responsive design and layout
56
- * Search Engine Optimized with customizable meta tags and favicon image
57
- * Multiple Page & Design Templates
58
- * Access control by User Whitelist
59
- * Option to control Access by Ip
60
- * Single Page View Access
61
- * Page Landing option
62
- * Mailchimp Support
63
- * Compaign Monitor
64
- * Feedburner Support
65
- * Enable Multiple Mode of Coming Soon
66
- * Store Emails in the WordPress Database to export to any email service
67
- * All Browser support
68
- * Countdown Timer
69
- * Progress Bar
70
- * Background Image SlideShow
71
- * Youtube Video background
72
- * Add Company Logo and Credit Links
73
- * Social Profiles ( Twitter, Facebook, Linkedin, Google+, Youtube, Email, Pinterest, Yahoo etc.)
74
- * MailChimp, AWeber, Get Response, Constant Contact and Campaign Monitor integration
75
- * Custom Favicon
76
- * Custom CSS Support
77
- * And lot's more...
78
-
79
-
80
-
81
- * [Upgrade to the Easy Coming Soon Pro Version &raquo;](http://webriti.com/easy-coming-soon-pro-detail-page)
82
- * [View Easy Coming Soon Pro Live Demo &raquo;](http://webriti.com/coming-soon-demo-select)
83
-
84
-
85
-
86
- == Installation ==
87
-
88
- 1. Download Easy coming soon plugin.
89
- 2. Upload the easy-coming-soon folder to the /wp-content/plugins/ directory.
90
- 3. Activate the plugin through the 'Plugins' menu in WordPress and Enjoy.
91
-
92
-
93
- == Frequently Asked Questions ==
94
-
95
-
96
-
97
-
98
- == Screenshots ==
99
-
100
- 1. Create Coming soon page like this
101
- 2. Coming soon page example2
102
- 3. Coming soon page example3
103
- 4. Coming soon page example4
104
- 5. Coming soon page with noise effect
105
- 6. Coming soon page image background
106
- 7. Coming soon page without noise effect
107
- 8. Responsive Design
108
- 9. General setting page
109
- 10. Design setting page
110
-
111
- == Changelog ==
112
-
113
- = 1.6.2 =
114
- 1. Fixed a Layout issue in Option Panel
115
-
116
- = 1.6.1 =
117
- 1. Minor Changes in Option Panel
118
-
119
- = 1.6 =
120
- 1. Plugin is now compatible with PHP 5.5
121
-
122
- = 1.5.1 =
123
- 1. Silly Bug Fix
124
-
125
- = 1.5 =
126
- 1. We now check if the user is trying to access login page. The plugin will not run the redirect function in that case
127
-
128
- = 1.4 =
129
- 1. Email Validation Bug Fixed. Plugin now accepts capitalized email address.
130
-
131
- = 1.3.1 =
132
- 1. Default text bug fixed. Now the default text is visible when user activate the plugin for the first time.
133
-
134
- = 1.3 =
135
- 1. Remove Grammatical Error
136
- 2. Add Background Image Preview
137
-
138
- = 1.2 =
139
- 1. Improved Design Interface
140
- 2. Background Noise Effect
141
- 3. Minor Cosmetic Changes
142
- 4. Minor changes in code
143
-
144
- = 1.1 =
145
- 1. Increased Font Size for Better Readability
146
- 2. Minor Cosmetic Changes
147
-
148
- = 1.0 =
149
- 1. Description field is now editable with html content.
150
- 2. Subscriber notification feature is added.
151
-
152
- = 0.92 =
153
- 1. Fixed a small bug with Font Selection
154
-
155
- = 0.91 =
156
- 1. Plugin compatible with Wordpress 3.8
157
-
158
- = 0.9 =
159
- 1. UI Interface updated.
160
- 2. Minor changes in code
161
-
162
- = 0.88 =
163
- 1. Fixed a few Typos
164
- 2. Minor changes in code
165
-
166
- = 0.86 =
167
- 1. Fixed a Typo
168
- 2. Placeholder text for email subscription field is now editable
169
-
170
- = 0.85 =
171
- 1. Resolved Undefined variable error
172
- 2. The coming soon page displays the Site Title.
173
- 3. Added "Coming Soon Active" in the Wordpress Admin Menu Bar
174
-
175
- = 0.5 =
 
 
 
176
  This version provides basic functionality to craete easily coming soon or a launch page and collect e-mail adress of your website visitors.
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.1
7
+ Stable tag: 1.6.3
8
+ License: GPLv2 or later
9
+ License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
+
11
+ Easy coming Soon plugin allows you to quickly create a launch / under construction page for your website. Collects e-mails and connect with users on Social Network.
12
+
13
+ == Description ==
14
+
15
+ The **Easy Coming Soon** plugin allows you quckly create a Launch page / Coming Soon page for your wordpress website. Simply activate the plugin, Setup Page Title , Description and you are ready to go.
16
+
17
+ The Easy Coming Soon plugin works with any WordPress theme you have installed on your site. Looged out users will see the coming soon page while logged-in users will have access to the website. This is ideal for web developers who want to present their clients with a Under construction page while working on the website.
18
+
19
+ Give **Easy Coming Soon** a try. We are sure you will like it.
20
+
21
+ In case you face any problem, contact us via the [Forums](http://wordpress.org/support/plugin/easy-coming-soon).
22
+
23
+
24
+ * [Upgrade to the Easy Coming Soon Pro Version &raquo;](http://webriti.com/easy-coming-soon-pro-detail-page)
25
+ * [View Easy Coming Soon Pro Live Demo &raquo;](http://webriti.com/coming-soon-demo-select)
26
+
27
+
28
+ ### Features And Options:
29
+
30
+ * Works with any WordPress Theme
31
+ * Responsive
32
+ * Responsive Option Panel
33
+ * Provide Social connectivity(Facebook, Twitter, Google+)
34
+ * Free Coming soon page template
35
+ * Flexible and user-friendly setup
36
+ * Live Preview of coming soon page
37
+ * Subscribe feature / Easily collect visitor emails
38
+ * Add Google Analytics Tracking to the Coming Soon Page
39
+ * Very easy customization of coming soon page template setup
40
+ * Simple admin settings and simple customization of Background Color, Background Image, Fonts color and fonts style etc..
41
+ * Coming soon Active mode menu bar on wordpress admin dashboard.
42
+ * Visible only non logged user.
43
+ * Easily update and post content in your site when "Easy Coming Soon" is in Active mode.
44
+
45
+ ### Pro Version Features:
46
+
47
+ * Works with any WordPress theme
48
+ * Visible only to non logged in users
49
+ * Responsive
50
+ * Responsive Option Panel
51
+ * Flexible and user-friendly setup
52
+ * Google Analytics Support
53
+ * Integrated Google Fonts Support
54
+ * Translation Ready Support
55
+ * Mobile Ready responsive design and layout
56
+ * Search Engine Optimized with customizable meta tags and favicon image
57
+ * Multiple Page & Design Templates
58
+ * Access control by User Whitelist
59
+ * Option to control Access by Ip
60
+ * Single Page View Access
61
+ * Page Landing option
62
+ * Mailchimp Support
63
+ * Compaign Monitor
64
+ * Feedburner Support
65
+ * Enable Multiple Mode of Coming Soon
66
+ * Store Emails in the WordPress Database to export to any email service
67
+ * All Browser support
68
+ * Countdown Timer
69
+ * Progress Bar
70
+ * Background Image SlideShow
71
+ * Youtube Video background
72
+ * Add Company Logo and Credit Links
73
+ * Social Profiles ( Twitter, Facebook, Linkedin, Google+, Youtube, Email, Pinterest, Yahoo etc.)
74
+ * MailChimp, AWeber, Get Response, Constant Contact and Campaign Monitor integration
75
+ * Custom Favicon
76
+ * Custom CSS Support
77
+ * And lot's more...
78
+
79
+
80
+
81
+ * [Upgrade to the Easy Coming Soon Pro Version &raquo;](http://webriti.com/easy-coming-soon-pro-detail-page)
82
+ * [View Easy Coming Soon Pro Live Demo &raquo;](http://webriti.com/coming-soon-demo-select)
83
+
84
+
85
+
86
+ == Installation ==
87
+
88
+ 1. Download Easy coming soon plugin.
89
+ 2. Upload the easy-coming-soon folder to the /wp-content/plugins/ directory.
90
+ 3. Activate the plugin through the 'Plugins' menu in WordPress and Enjoy.
91
+
92
+
93
+ == Frequently Asked Questions ==
94
+
95
+
96
+
97
+
98
+ == Screenshots ==
99
+
100
+ 1. Create Coming soon page like this
101
+ 2. Coming soon page example2
102
+ 3. Coming soon page example3
103
+ 4. Coming soon page example4
104
+ 5. Coming soon page with noise effect
105
+ 6. Coming soon page image background
106
+ 7. Coming soon page without noise effect
107
+ 8. Responsive Design
108
+ 9. General setting page
109
+ 10. Design setting page
110
+
111
+ == Changelog ==
112
+
113
+ = 1.6.3 =
114
+ 1. Fixed a security issue. We now verify ajax request via nonce.
115
+
116
+ = 1.6.2 =
117
+ 1. Fixed a Layout issue in Option Panel
118
+
119
+ = 1.6.1 =
120
+ 1. Minor Changes in Option Panel
121
+
122
+ = 1.6 =
123
+ 1. Plugin is now compatible with PHP 5.5
124
+
125
+ = 1.5.1 =
126
+ 1. Silly Bug Fix
127
+
128
+ = 1.5 =
129
+ 1. We now check if the user is trying to access login page. The plugin will not run the redirect function in that case
130
+
131
+ = 1.4 =
132
+ 1. Email Validation Bug Fixed. Plugin now accepts capitalized email address.
133
+
134
+ = 1.3.1 =
135
+ 1. Default text bug fixed. Now the default text is visible when user activate the plugin for the first time.
136
+
137
+ = 1.3 =
138
+ 1. Remove Grammatical Error
139
+ 2. Add Background Image Preview
140
+
141
+ = 1.2 =
142
+ 1. Improved Design Interface
143
+ 2. Background Noise Effect
144
+ 3. Minor Cosmetic Changes
145
+ 4. Minor changes in code
146
+
147
+ = 1.1 =
148
+ 1. Increased Font Size for Better Readability
149
+ 2. Minor Cosmetic Changes
150
+
151
+ = 1.0 =
152
+ 1. Description field is now editable with html content.
153
+ 2. Subscriber notification feature is added.
154
+
155
+ = 0.92 =
156
+ 1. Fixed a small bug with Font Selection
157
+
158
+ = 0.91 =
159
+ 1. Plugin compatible with Wordpress 3.8
160
+
161
+ = 0.9 =
162
+ 1. UI Interface updated.
163
+ 2. Minor changes in code
164
+
165
+ = 0.88 =
166
+ 1. Fixed a few Typos
167
+ 2. Minor changes in code
168
+
169
+ = 0.86 =
170
+ 1. Fixed a Typo
171
+ 2. Placeholder text for email subscription field is now editable
172
+
173
+ = 0.85 =
174
+ 1. Resolved Undefined variable error
175
+ 2. The coming soon page displays the Site Title.
176
+ 3. Added "Coming Soon Active" in the Wordpress Admin Menu Bar
177
+
178
+ = 0.5 =
179
  This version provides basic functionality to craete easily coming soon or a launch page and collect e-mail adress of your website visitors.