Easy Coming Soon - Version 1.8.2

Version Description

  1. Added Security Measures in Settings Forms
Download this release

Release Info

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

Code changes from version 1.8.1 to 1.8.2

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.8.1
6
  Author:Ankit Agarwal, Priyanshu Mittal
7
  Author URI: http://webriti.com
8
  Plugin URI: http://webriti.com/easy-coming-soon-pro-detail-page/
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.8.2
6
  Author:Ankit Agarwal, Priyanshu Mittal
7
  Author URI: http://webriti.com
8
  Plugin URI: http://webriti.com/easy-coming-soon-pro-detail-page/
readme.txt CHANGED
@@ -1,10 +1,10 @@
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.2.2
7
- Stable tag: 1.8.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -110,6 +110,11 @@ In case you face any problem, contact us via the [Forums](http://wordpress.org/s
110
 
111
  == Changelog ==
112
 
 
 
 
 
 
113
  = 1.8.1 =
114
  1. Minor Changes in Option Panel
115
 
1
  === Easy Coming Soon ===
2
  Contributors: a.ankit, deepeshpaliwal,priyanshu.mittal
3
  Donate link: http://www.webriti.com/
4
+ Tags: coming soon wordpress plugin,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,wordpress under construction page,wordpress landing page, ultimate coming soon page, ultimate landing page, wordpress maintenance mode plugin
5
  Requires at least: 3.3+
6
+ Tested up to: 4.3
7
+ Stable tag: 1.8.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
110
 
111
  == Changelog ==
112
 
113
+
114
+ = 1.8.2 =
115
+ 1. Added Security Measures in Settings Forms
116
+
117
+
118
  = 1.8.1 =
119
  1. Minor Changes in Option Panel
120
 
theme_options/pages/design_page_settings.php CHANGED
@@ -13,6 +13,8 @@ $design_page_setting = array(
13
  'background_effect'=>'0'
14
 
15
  );
 
 
16
 
17
  ?>
18
  <div class="block ui-tabs-panel " id="option-ui-id-2" >
@@ -22,6 +24,13 @@ $design_page_setting = array(
22
  if(isset($_POST['commingsoon_lite_settings_save_2']))
23
  {
24
 
 
 
 
 
 
 
 
25
  $current_options['background_color']=$_POST['background_color'];
26
  $current_options['title_color']=$_POST['title_color'];
27
  $current_options['title_font_size']=$_POST['title_font_size'];
@@ -36,6 +45,12 @@ $design_page_setting = array(
36
 
37
 
38
  if(isset($_POST['commingsoon_lite_settings_reset_2']))
 
 
 
 
 
 
39
  {
40
  $current_options['background_color']='#21759B';
41
  $current_options['title_color']='#ffffff';
@@ -173,6 +188,12 @@ $design_page_setting = array(
173
  <div id="button_section">
174
  <input class="button button-primary button-large" type="submit" name="commingsoon_lite_settings_save_2" value="Save Options">&nbsp;
175
  <input class="button" type="submit" name="commingsoon_lite_settings_reset_2" value="Restore Defaults">
 
 
 
 
 
 
176
  </div>
177
  </form>
178
  </div>
13
  'background_effect'=>'0'
14
 
15
  );
16
+
17
+
18
 
19
  ?>
20
  <div class="block ui-tabs-panel " id="option-ui-id-2" >
24
  if(isset($_POST['commingsoon_lite_settings_save_2']))
25
  {
26
 
27
+ if ( !wp_verify_nonce($_POST['design_settings_page_save_nonce_field'],'design_settings_page_save_nonce_action' ) )
28
+ {
29
+ print __('Sorry, your nonce did not verify.','commingsoon'); exit;
30
+ }
31
+
32
+
33
+
34
  $current_options['background_color']=$_POST['background_color'];
35
  $current_options['title_color']=$_POST['title_color'];
36
  $current_options['title_font_size']=$_POST['title_font_size'];
45
 
46
 
47
  if(isset($_POST['commingsoon_lite_settings_reset_2']))
48
+
49
+ if ( !wp_verify_nonce($_POST['design_settings_page_save_nonce_field'],'design_settings_page_save_nonce_action' ) )
50
+ {
51
+ print __('Sorry, your nonce did not verify.','commingsoon'); exit;
52
+ }
53
+
54
  {
55
  $current_options['background_color']='#21759B';
56
  $current_options['title_color']='#ffffff';
188
  <div id="button_section">
189
  <input class="button button-primary button-large" type="submit" name="commingsoon_lite_settings_save_2" value="Save Options">&nbsp;
190
  <input class="button" type="submit" name="commingsoon_lite_settings_reset_2" value="Restore Defaults">
191
+
192
+ <!-- adding Nonce - 27 th August -->
193
+ <?php wp_nonce_field('design_settings_page_save_nonce_action','design_settings_page_save_nonce_field'); ?>
194
+
195
+
196
+
197
  </div>
198
  </form>
199
  </div>
theme_options/pages/header_page_settings.php CHANGED
@@ -14,12 +14,18 @@ $general_default_settings = array(
14
  'gp'=>''
15
 
16
  );
 
17
  ?>
18
  <div class="block ui-tabs-panel active" id="option-ui-id-1" >
19
  <?php $current_options = wp_parse_args( get_option( 'soon_page_settings', array() ), $general_default_settings );
20
 
21
  if(isset($_POST['commingsoon_lite_settings_save_1']))
22
  {
 
 
 
 
 
23
 
24
  $current_options['status']=$_POST['status'];
25
  $current_options['background']=$_POST['background'];
@@ -64,7 +70,7 @@ $general_default_settings = array(
64
  </tr>
65
  </table>
66
  </div>
67
- <?php wp_nonce_field('commingsoon_lite_customization_nonce_gernalsetting','commingsoon_lite_gernalsetting_nonce_customization'); ?>
68
 
69
  <div class="section">
70
  <div class="element">
@@ -132,5 +138,9 @@ $general_default_settings = array(
132
  <input class="button button-primary" type="submit" name="commingsoon_lite_settings_save_1"value="Save Options">&nbsp;
133
  <input class="button" type="submit" name="commingsoon_lite_settings_reset_1" value="Restore Defaults">
134
  </div>
 
 
 
 
135
  </form>
136
  </div>
14
  'gp'=>''
15
 
16
  );
17
+
18
  ?>
19
  <div class="block ui-tabs-panel active" id="option-ui-id-1" >
20
  <?php $current_options = wp_parse_args( get_option( 'soon_page_settings', array() ), $general_default_settings );
21
 
22
  if(isset($_POST['commingsoon_lite_settings_save_1']))
23
  {
24
+
25
+ if ( empty($_POST) || !wp_verify_nonce($_POST['general_settings_page_save_nonce_field'],'general_settings_page_save_nonce_action' ) )
26
+ {
27
+ print __('Sorry, your nonce did not verify.','commingsoon'); exit;
28
+ }
29
 
30
  $current_options['status']=$_POST['status'];
31
  $current_options['background']=$_POST['background'];
70
  </tr>
71
  </table>
72
  </div>
73
+
74
 
75
  <div class="section">
76
  <div class="element">
138
  <input class="button button-primary" type="submit" name="commingsoon_lite_settings_save_1"value="Save Options">&nbsp;
139
  <input class="button" type="submit" name="commingsoon_lite_settings_reset_1" value="Restore Defaults">
140
  </div>
141
+
142
+ <!-- Nonce Add - 27 August -->
143
+
144
+ <?php wp_nonce_field('general_settings_page_save_nonce_action','general_settings_page_save_nonce_field'); ?>
145
  </form>
146
  </div>
theme_options/pages/template_page_settings.php CHANGED
@@ -1,257 +1,276 @@
1
- <?php
2
-
3
- $general_default_settings = array(
4
-
5
- // general page settings
6
-
7
- 'status'=>'1',
8
- 'background'=>'',
9
- 'title'=>'',
10
- 'descrip'=>'',
11
- 'google_code'=>'',
12
- 'fb'=>'',
13
- 'twit'=>'',
14
- 'gp'=>''
15
-
16
- );
17
- ?>
18
- <div class="block ui-tabs-panel active" id="option-ui-id-4" >
19
- <?php $current_options = wp_parse_args( get_option( 'soon_page_settings', array() ), $general_default_settings );
20
- if(isset($_POST['commingsoon_lite_settings_save_4']))
21
- {
22
- if($_POST['commingsoon_lite_settings_save_4'] == 1)
23
- {
24
- if ( empty($_POST) || !wp_verify_nonce($_POST['commingsoon_lite_gernalsetting_nonce_customization'],'commingsoon_lite_customization_nonce_gernalsetting') )
25
- {
26
- print __('Sorry, your nonce did not verify.','commingsoon'); exit;
27
- }
28
- else
29
- {
30
-
31
- $current_options['status']=$_POST['status'];
32
-
33
- update_option('soon_page_settings',$current_options);
34
- }
35
- }
36
- if($_POST['commingsoon_lite_settings_save_4'] == 2)
37
- {
38
- $current_options['status']='1';
39
-
40
- update_option('soon_page_settings',$current_options);
41
- }
42
- } ?>
43
- <form method="post" id="commingsoon_lite_theme_options_4">
44
- <div id="heading">
45
- <table style="width:100%;"><tr>
46
- <td><h2><?php _e('Templates Settings','commingsoon');?></h2></td>
47
- <td style="width:30%;">
48
- <div class="commingsoon_lite_settings_loding" id="commingsoon_loding_4_image"></div>
49
- <div class="commingsoon_lite_settings_massage" id="commingsoon_lite_settings_save_4_success" ><?php _e('Options data successfully Saved','commingsoon');?></div>
50
- <div class="commingsoon_lite_settings_massage" id="commingsoon_lite_settings_save_4_reset" ><?php _e('Options data successfully reset','commingsoon');?></div>
51
- </td>
52
- <td style="text-align:right;">
53
- <!--<input class="reset-button btn" type="button" name="reset" value="Restore Defaults" onclick="commingsoon_option_data_reset('1');">
54
- <input class="button button-primary button-large" type="button" value="Save Options" onclick="commingsoon_option_data_save('1')" >-->
55
- </td>
56
- </tr>
57
- </table>
58
- </div>
59
-
60
-
61
- <table class="form-table">
62
- <tr>
63
- <th scope="row" class="page-title"><?php _e('Templates','webriti_soon_pro')?></th>
64
- <td></td>
65
- </tr>
66
- </table><br>
67
- <table class="form-table">
68
- <tr>
69
-
70
- <td>
71
-
72
- <div class="template">
73
-
74
- <div class="template-screenshot">
75
- <img src="<?php echo plugin_dir_url(__FILE__)."images/screenshot-4.png";?>" alt="">
76
- </div>
77
-
78
- <h3 class="template-name">Default</h3>
79
-
80
-
81
- <div class="template-actions">
82
-
83
-
84
-
85
- <button class="btn btn-danger" disabled="disabled" id="template1_active" style="vertical-align:middle;">Activated</button>
86
-
87
-
88
- </div>
89
-
90
-
91
- </div>
92
- <div class="template">
93
-
94
- <div class="template-screenshot">
95
- <a href="http://webriti.com/easy-coming-soon-pro-detail-page/" target= "_new"><img src="<?php echo plugins_url('/images/screenshot-28.png',__FILE__);?>" alt=""></a>
96
- </div>
97
-
98
- <h3 class="template-name">Template1</h3>
99
-
100
-
101
- <div class="template-actions">
102
-
103
-
104
-
105
- <a class="btn btn-danger" href="http://webriti.com/easy-coming-soon-pro-detail-page/" target= "_new" style="vertical-align:middle;">Available In Pro</a>
106
-
107
-
108
- </div>
109
-
110
-
111
- </div>
112
-
113
-
114
- <div class="template">
115
-
116
- <div class="template-screenshot">
117
- <a href="http://webriti.com/easy-coming-soon-pro-detail-page/" target= "_new"> <img src="<?php echo plugins_url('/images/screenshot-31.png',__FILE__);?>" alt=""></a>
118
- </div>
119
-
120
- <h3 class="template-name">Template2</h3>
121
-
122
-
123
- <div class="template-actions">
124
-
125
-
126
-
127
- <a class="btn btn-danger" href="http://webriti.com/easy-coming-soon-pro-detail-page/" target= "_new" style="vertical-align:middle;">Available In Pro</a>
128
-
129
-
130
-
131
- </div>
132
-
133
-
134
- </div>
135
-
136
- <div class="template">
137
-
138
- <div class="template-screenshot">
139
- <a href="http://webriti.com/easy-coming-soon-pro-detail-page/" target= "_new"> <img src="<?php echo plugins_url('/images/template3-new.png',__FILE__);?>" alt=""></a>
140
- </div>
141
-
142
- <h3 class="template-name">Template3</h3>
143
-
144
-
145
- <div class="template-actions">
146
-
147
-
148
-
149
- <a class="btn btn-danger" href="http://webriti.com/easy-coming-soon-pro-detail-page/" target= "_new" style="vertical-align:middle;">Available In Pro</a>
150
-
151
-
152
-
153
- </div>
154
-
155
-
156
- </div>
157
-
158
- <div class="template">
159
-
160
- <div class="template-screenshot">
161
- <a href="http://webriti.com/easy-coming-soon-pro-detail-page/" target= "_new"> <img src="<?php echo plugins_url('/images/template4.png',__FILE__);?>" alt=""></a>
162
- </div>
163
-
164
- <h3 class="template-name">Template4</h3>
165
-
166
-
167
- <div class="template-actions">
168
-
169
-
170
-
171
- <a class="btn btn-danger" href="http://webriti.com/easy-coming-soon-pro-detail-page/" target= "_new" style="vertical-align:middle;">Available In Pro</a>
172
-
173
-
174
-
175
- </div>
176
-
177
-
178
- </div>
179
-
180
- </td>
181
- </tr>
182
-
183
- </table>
184
-
185
- <!--<div id="button_section">
186
- <input type="hidden" value="1" id="commingsoon_lite_settings_save_4" name="commingsoon_lite_settings_save_4" />
187
- <input class="reset-button btn" type="button" name="reset" value="Restore Defaults" onclick="commingsoon_option_data_reset('4');">
188
- <input class="button button-primary" type="button" value="Save Options" onclick="commingsoon_option_data_save('4')" >
189
- </div>-->
190
- </form>
191
- </div>
192
- <style>
193
- .template{
194
- cursor: pointer;
195
- float: left;
196
- margin: 0 4% 4% 0;
197
- position: relative;
198
- width: 300px;
199
- border: 1px solid #dedede;
200
- -webkit-box-shadow: 0 1px 1px -1px rgba(0,0,0,.1);
201
- box-shadow: 0 1px 1px -1px rgba(0,0,0,.1);
202
- -webkit-box-sizing: border-box;
203
- -moz-box-sizing: border-box;
204
- box-sizing: border-box;
205
- }
206
-
207
- .template-screenshot{
208
- display: block;
209
- overflow: hidden;
210
- position: relative;
211
- -webkit-transition: opacity .2s ease-in-out;
212
- transition: opacity .2s ease-in-out;
213
- }
214
- .template-screenshot:hover{
215
- display: block;
216
- overflow: hidden;
217
- position: relative;
218
- opacity:0.8;
219
- -webkit-transition: opacity .2s ease-in-out;
220
- transition: opacity .2s ease-in-out;
221
- }
222
- .template-screenshot img {
223
-
224
-
225
- width: 100%;
226
-
227
- }
228
- .template-name{
229
- font-size: 15px;
230
- font-weight: 600;
231
- margin: 0;
232
- padding: 15px;
233
- -webkit-box-shadow: inset 0 1px 0 rgba(0,0,0,.1);
234
- box-shadow: inset 0 1px 0 rgba(0,0,0,.1);
235
- overflow: hidden;
236
- white-space: nowrap;
237
- text-overflow: ellipsis;
238
- background: #fff;
239
- background: rgba(255,255,255,.65);
240
- }
241
- .template-actions{
242
- opacity: 1;
243
- -webkit-transition: opacity .1s ease-in-out;
244
- transition: opacity .1s ease-in-out;
245
- position: absolute;
246
- bottom: 0;
247
- right: 0;
248
- height: 38px;
249
- padding: 9px 10px 0;
250
- background: rgba(244,244,244,.7);
251
- border-left: 1px solid rgba(0,0,0,.05);
252
- }
253
- #option-tree-settings-api #poststuff .template h3 {
254
- padding: 9px 15px !important;
255
- line-height: 35px;
256
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
257
  </style>
1
+ <?php
2
+
3
+ $general_default_settings = array(
4
+
5
+ // general page settings
6
+
7
+ 'status'=>'1',
8
+ 'background'=>'',
9
+ 'title'=>'',
10
+ 'descrip'=>'',
11
+ 'google_code'=>'',
12
+ 'fb'=>'',
13
+ 'twit'=>'',
14
+ 'gp'=>''
15
+
16
+ );
17
+
18
+
19
+ ?>
20
+ <div class="block ui-tabs-panel active" id="option-ui-id-4" >
21
+ <?php $current_options = wp_parse_args( get_option( 'soon_page_settings', array() ), $general_default_settings );
22
+ if(isset($_POST['commingsoon_lite_settings_save_4']))
23
+ {
24
+ if($_POST['commingsoon_lite_settings_save_4'] == 1)
25
+ {
26
+ if ( !wp_verify_nonce($_POST['template_settings_page_save_nonce_field'],'template_settings_page_save_nonce_action' ) )
27
+ {
28
+ print __('Sorry, your nonce did not verify.','commingsoon'); exit;
29
+ }
30
+ else
31
+ {
32
+
33
+ $current_options['status']=$_POST['status'];
34
+
35
+ update_option('soon_page_settings',$current_options);
36
+ }
37
+ }
38
+ if($_POST['commingsoon_lite_settings_save_4'] == 2)
39
+ {
40
+
41
+ if ( !wp_verify_nonce($_POST['template_settings_page_save_nonce_field'],'template_settings_page_save_nonce_action' ) )
42
+ {
43
+ print __('Sorry, your nonce did not verify.','commingsoon'); exit;
44
+ }
45
+ $current_options['status']='1';
46
+
47
+ update_option('soon_page_settings',$current_options);
48
+ }
49
+ } ?>
50
+ <form method="post" id="commingsoon_lite_theme_options_4">
51
+ <div id="heading">
52
+ <table style="width:100%;"><tr>
53
+ <td><h2><?php _e('Templates Settings','commingsoon');?></h2></td>
54
+ <td style="width:30%;">
55
+ <div class="commingsoon_lite_settings_loding" id="commingsoon_loding_4_image"></div>
56
+ <div class="commingsoon_lite_settings_massage" id="commingsoon_lite_settings_save_4_success" ><?php _e('Options data successfully Saved','commingsoon');?></div>
57
+ <div class="commingsoon_lite_settings_massage" id="commingsoon_lite_settings_save_4_reset" ><?php _e('Options data successfully reset','commingsoon');?></div>
58
+ </td>
59
+ <td style="text-align:right;">
60
+ <!--<input class="reset-button btn" type="button" name="reset" value="Restore Defaults" onclick="commingsoon_option_data_reset('1');">
61
+ <input class="button button-primary button-large" type="button" value="Save Options" onclick="commingsoon_option_data_save('1')" >-->
62
+ </td>
63
+ </tr>
64
+ </table>
65
+ </div>
66
+
67
+
68
+ <table class="form-table">
69
+ <tr>
70
+ <th scope="row" class="page-title"><?php _e('Templates','webriti_soon_pro')?></th>
71
+ <td></td>
72
+ </tr>
73
+ </table><br>
74
+ <table class="form-table">
75
+ <tr>
76
+
77
+ <td>
78
+
79
+ <div class="template">
80
+
81
+ <div class="template-screenshot">
82
+ <img src="<?php echo plugin_dir_url(__FILE__)."images/screenshot-4.png";?>" alt="">
83
+ </div>
84
+
85
+ <h3 class="template-name">Default</h3>
86
+
87
+
88
+ <div class="template-actions">
89
+
90
+
91
+
92
+ <button class="btn btn-danger" disabled="disabled" id="template1_active" style="vertical-align:middle;">Activated</button>
93
+
94
+
95
+ </div>
96
+
97
+
98
+ </div>
99
+ <div class="template">
100
+
101
+ <div class="template-screenshot">
102
+ <a href="http://webriti.com/easy-coming-soon-pro-detail-page/" target= "_new"><img src="<?php echo plugins_url('/images/screenshot-28.png',__FILE__);?>" alt=""></a>
103
+ </div>
104
+
105
+ <h3 class="template-name">Template1</h3>
106
+
107
+
108
+ <div class="template-actions">
109
+
110
+
111
+
112
+ <a class="btn btn-danger" href="http://webriti.com/easy-coming-soon-pro-detail-page/" target= "_new" style="vertical-align:middle;">Available In Pro</a>
113
+
114
+
115
+ </div>
116
+
117
+
118
+ </div>
119
+
120
+
121
+ <div class="template">
122
+
123
+ <div class="template-screenshot">
124
+ <a href="http://webriti.com/easy-coming-soon-pro-detail-page/" target= "_new"> <img src="<?php echo plugins_url('/images/screenshot-31.png',__FILE__);?>" alt=""></a>
125
+ </div>
126
+
127
+ <h3 class="template-name">Template2</h3>
128
+
129
+
130
+ <div class="template-actions">
131
+
132
+
133
+
134
+ <a class="btn btn-danger" href="http://webriti.com/easy-coming-soon-pro-detail-page/" target= "_new" style="vertical-align:middle;">Available In Pro</a>
135
+
136
+
137
+
138
+ </div>
139
+
140
+
141
+ </div>
142
+
143
+ <div class="template">
144
+
145
+ <div class="template-screenshot">
146
+ <a href="http://webriti.com/easy-coming-soon-pro-detail-page/" target= "_new"> <img src="<?php echo plugins_url('/images/template3-new.png',__FILE__);?>" alt=""></a>
147
+ </div>
148
+
149
+ <h3 class="template-name">Template3</h3>
150
+
151
+
152
+ <div class="template-actions">
153
+
154
+
155
+
156
+ <a class="btn btn-danger" href="http://webriti.com/easy-coming-soon-pro-detail-page/" target= "_new" style="vertical-align:middle;">Available In Pro</a>
157
+
158
+
159
+
160
+ </div>
161
+
162
+
163
+ </div>
164
+
165
+ <div class="template">
166
+
167
+ <div class="template-screenshot">
168
+ <a href="http://webriti.com/easy-coming-soon-pro-detail-page/" target= "_new"> <img src="<?php echo plugins_url('/images/template4.png',__FILE__);?>" alt=""></a>
169
+ </div>
170
+
171
+ <h3 class="template-name">Template4</h3>
172
+
173
+
174
+ <div class="template-actions">
175
+
176
+
177
+
178
+ <a class="btn btn-danger" href="http://webriti.com/easy-coming-soon-pro-detail-page/" target= "_new" style="vertical-align:middle;">Available In Pro</a>
179
+
180
+
181
+
182
+ </div>
183
+
184
+
185
+ </div>
186
+
187
+ </td>
188
+ </tr>
189
+
190
+ </table>
191
+
192
+ <!--<div id="button_section">
193
+ <input type="hidden" value="1" id="commingsoon_lite_settings_save_4" name="commingsoon_lite_settings_save_4" />
194
+ <input class="reset-button btn" type="button" name="reset" value="Restore Defaults" onclick="commingsoon_option_data_reset('4');">
195
+ <input class="button button-primary" type="button" value="Save Options" onclick="commingsoon_option_data_save('4')" >
196
+ </div>-->
197
+
198
+
199
+
200
+
201
+ <!-- added nonce August 27 -->
202
+
203
+
204
+ <?php wp_nonce_field('template_settings_page_save_nonce_action','template_settings_page_save_nonce_field'); ?>
205
+
206
+
207
+
208
+
209
+ </form>
210
+ </div>
211
+ <style>
212
+ .template{
213
+ cursor: pointer;
214
+ float: left;
215
+ margin: 0 4% 4% 0;
216
+ position: relative;
217
+ width: 300px;
218
+ border: 1px solid #dedede;
219
+ -webkit-box-shadow: 0 1px 1px -1px rgba(0,0,0,.1);
220
+ box-shadow: 0 1px 1px -1px rgba(0,0,0,.1);
221
+ -webkit-box-sizing: border-box;
222
+ -moz-box-sizing: border-box;
223
+ box-sizing: border-box;
224
+ }
225
+
226
+ .template-screenshot{
227
+ display: block;
228
+ overflow: hidden;
229
+ position: relative;
230
+ -webkit-transition: opacity .2s ease-in-out;
231
+ transition: opacity .2s ease-in-out;
232
+ }
233
+ .template-screenshot:hover{
234
+ display: block;
235
+ overflow: hidden;
236
+ position: relative;
237
+ opacity:0.8;
238
+ -webkit-transition: opacity .2s ease-in-out;
239
+ transition: opacity .2s ease-in-out;
240
+ }
241
+ .template-screenshot img {
242
+
243
+
244
+ width: 100%;
245
+
246
+ }
247
+ .template-name{
248
+ font-size: 15px;
249
+ font-weight: 600;
250
+ margin: 0;
251
+ padding: 15px;
252
+ -webkit-box-shadow: inset 0 1px 0 rgba(0,0,0,.1);
253
+ box-shadow: inset 0 1px 0 rgba(0,0,0,.1);
254
+ overflow: hidden;
255
+ white-space: nowrap;
256
+ text-overflow: ellipsis;
257
+ background: #fff;
258
+ background: rgba(255,255,255,.65);
259
+ }
260
+ .template-actions{
261
+ opacity: 1;
262
+ -webkit-transition: opacity .1s ease-in-out;
263
+ transition: opacity .1s ease-in-out;
264
+ position: absolute;
265
+ bottom: 0;
266
+ right: 0;
267
+ height: 38px;
268
+ padding: 9px 10px 0;
269
+ background: rgba(244,244,244,.7);
270
+ border-left: 1px solid rgba(0,0,0,.05);
271
+ }
272
+ #option-tree-settings-api #poststuff .template h3 {
273
+ padding: 9px 15px !important;
274
+ line-height: 35px;
275
+ }
276
  </style>
theme_options/webriti_option_pannel.php CHANGED
@@ -252,7 +252,7 @@
252
  <div class="webriti-submenu" style="height:35px;">
253
  <div class="webriti-submenu-links" style="margin-top:5px;">
254
  <form method="POST">
255
- <input type="submit" onclick="return confirm( 'Click OK to reset theme data. Theme settings will be lost!' );" value="Restore All Defaults" name="restore_all_defaults" id="restore_all_defaults" class="reset-button btn">
256
  <form>
257
  </div><!-- webriti-submenu-links -->
258
  </div>
252
  <div class="webriti-submenu" style="height:35px;">
253
  <div class="webriti-submenu-links" style="margin-top:5px;">
254
  <form method="POST">
255
+ <input type="submit" onclick="return confirm( 'Click OK to reset Plugin data. Theme settings will be lost!' );" value="Restore All Defaults" name="restore_all_defaults" id="restore_all_defaults" class="reset-button btn">
256
  <form>
257
  </div><!-- webriti-submenu-links -->
258
  </div>