Version Description
- Fixed a security issue. We now verify ajax request via nonce.
Download this release
Release Info
Developer | a.ankit |
Plugin | Easy Coming Soon |
Version | 1.6.3 |
Comparing to | |
See all releases |
Code changes from version 1.6.2 to 1.6.3
- coming-soon-plugin.php +39 -1
- design-settings.php +371 -363
- general-settings.php +273 -265
- notification-settings.php +299 -293
- pro-detail.php +1 -1
- 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.
|
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 |
-
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
'
|
28 |
-
'
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
.
|
100 |
-
background-position:
|
101 |
-
}
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
}
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
<!--
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
<!--div
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
<
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
-
|
237 |
-
|
238 |
-
|
239 |
-
|
240 |
-
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
-
|
248 |
-
|
249 |
-
|
250 |
-
|
251 |
-
|
252 |
-
|
253 |
-
|
254 |
-
|
255 |
-
|
256 |
-
|
257 |
-
|
258 |
-
|
259 |
-
|
260 |
-
|
261 |
-
|
262 |
-
|
263 |
-
|
264 |
-
|
265 |
-
|
266 |
-
|
267 |
-
|
268 |
-
|
269 |
-
|
270 |
-
|
271 |
-
|
272 |
-
|
273 |
-
|
274 |
-
|
275 |
-
|
276 |
-
|
277 |
-
|
278 |
-
|
279 |
-
|
280 |
-
|
281 |
-
|
282 |
-
|
283 |
-
|
284 |
-
|
285 |
-
|
286 |
-
|
287 |
-
|
288 |
-
|
289 |
-
|
290 |
-
|
291 |
-
|
292 |
-
|
293 |
-
|
294 |
-
|
295 |
-
|
296 |
-
|
297 |
-
|
298 |
-
|
299 |
-
|
300 |
-
|
301 |
-
|
302 |
-
|
303 |
-
|
304 |
-
|
305 |
-
|
306 |
-
|
307 |
-
|
308 |
-
|
309 |
-
|
310 |
-
|
311 |
-
|
312 |
-
|
313 |
-
|
314 |
-
|
315 |
-
|
316 |
-
|
317 |
-
|
318 |
-
|
319 |
-
|
320 |
-
|
321 |
-
|
322 |
-
|
323 |
-
|
324 |
-
|
325 |
-
|
326 |
-
|
327 |
-
|
328 |
-
|
329 |
-
|
330 |
-
|
331 |
-
|
332 |
-
|
333 |
-
|
334 |
-
|
335 |
-
|
336 |
-
|
337 |
-
|
338 |
-
position:
|
339 |
-
|
340 |
-
|
341 |
-
|
342 |
-
|
343 |
-
|
344 |
-
|
345 |
-
|
346 |
-
|
347 |
-
|
348 |
-
|
349 |
-
|
350 |
-
|
351 |
-
|
352 |
-
|
353 |
-
|
354 |
-
|
355 |
-
|
356 |
-
|
357 |
-
|
358 |
-
position:
|
359 |
-
|
360 |
-
|
361 |
-
|
362 |
-
|
363 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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" /> None<br>
|
309 |
+
<input type="radio" value="1" id="cs_noise_effect" <?php if($value['background_effect']=='1') echo 'checked' ?> name="cs_noise_effect" /> 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 |
+
<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 |
-
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
if(jQuery('#
|
20 |
-
{
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
}
|
25 |
-
if(jQuery('#
|
26 |
-
{
|
27 |
-
|
28 |
-
var
|
29 |
-
|
30 |
-
}
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
'
|
45 |
-
'
|
46 |
-
'
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
.
|
122 |
-
background-position:
|
123 |
-
}
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
background-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
box-shadow-color: #
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
-
|
237 |
-
|
238 |
-
|
239 |
-
|
240 |
-
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
-
|
248 |
-
|
249 |
-
<!--
|
250 |
-
<img src="<?php echo plugins_url('images/
|
251 |
-
<input type="text" name="
|
252 |
-
<input type="checkbox" name="
|
253 |
-
|
254 |
-
|
255 |
-
|
256 |
-
|
257 |
-
|
258 |
-
|
259 |
-
|
260 |
-
|
261 |
-
|
262 |
-
|
263 |
-
|
264 |
-
|
265 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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' ?>/> Disabled<br>
|
183 |
+
<input type="radio" name="status" value="1" id="status" <?php if($value['status']=='1') echo 'checked' ?>/> 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 |
+
<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 |
-
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
}
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
}
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
{
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
jQuery('#
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
}
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
.
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
.
|
163 |
-
border-color: #
|
164 |
-
background-color: #
|
165 |
-
box-shadow-color: #
|
166 |
-
}
|
167 |
-
|
168 |
-
.
|
169 |
-
border-color: #
|
170 |
-
background-color: #
|
171 |
-
box-shadow-color: #
|
172 |
-
}
|
173 |
-
|
174 |
-
.
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
-
|
237 |
-
|
238 |
-
|
239 |
-
|
240 |
-
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
-
<
|
248 |
-
|
249 |
-
|
250 |
-
|
251 |
-
|
252 |
-
|
253 |
-
|
254 |
-
|
255 |
-
|
256 |
-
|
257 |
-
|
258 |
-
|
259 |
-
|
260 |
-
|
261 |
-
|
262 |
-
|
263 |
-
|
264 |
-
|
265 |
-
|
266 |
-
|
267 |
-
|
268 |
-
|
269 |
-
|
270 |
-
|
271 |
-
|
272 |
-
|
273 |
-
|
274 |
-
|
275 |
-
|
276 |
-
#
|
277 |
-
|
278 |
-
|
279 |
-
|
280 |
-
|
281 |
-
|
282 |
-
|
283 |
-
|
284 |
-
|
285 |
-
|
286 |
-
|
287 |
-
|
288 |
-
|
289 |
-
|
290 |
-
|
291 |
-
|
292 |
-
|
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 |
+
<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
|
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.
|
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 »](http://webriti.com/easy-coming-soon-pro-detail-page)
|
25 |
-
* [View Easy Coming Soon Pro Live Demo »](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 »](http://webriti.com/easy-coming-soon-pro-detail-page)
|
82 |
-
* [View Easy Coming Soon Pro Live Demo »](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.
|
114 |
-
1. Fixed a
|
115 |
-
|
116 |
-
= 1.6.
|
117 |
-
1.
|
118 |
-
|
119 |
-
= 1.6 =
|
120 |
-
1.
|
121 |
-
|
122 |
-
= 1.
|
123 |
-
1.
|
124 |
-
|
125 |
-
= 1.5 =
|
126 |
-
1.
|
127 |
-
|
128 |
-
= 1.
|
129 |
-
1.
|
130 |
-
|
131 |
-
= 1.
|
132 |
-
1.
|
133 |
-
|
134 |
-
= 1.3 =
|
135 |
-
1.
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
= 0.
|
156 |
-
1.
|
157 |
-
|
158 |
-
= 0.
|
159 |
-
1.
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
|
|
|
|
|
|
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 »](http://webriti.com/easy-coming-soon-pro-detail-page)
|
25 |
+
* [View Easy Coming Soon Pro Live Demo »](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 »](http://webriti.com/easy-coming-soon-pro-detail-page)
|
82 |
+
* [View Easy Coming Soon Pro Live Demo »](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.
|