Version Description
*Compatible with wordpress 5.6
Download this release
Release Info
Developer | chandrashekharsahu |
Plugin | Site Offline Or Coming Soon Or Maintenance Mode |
Version | 1.4.4 |
Comparing to | |
See all releases |
Code changes from version 1.4.3 to 1.4.4
- backend/contact.php +27 -12
- backend/content.php +1 -0
- backend/countdown-setting.php +38 -23
- backend/dashboard.php +47 -28
- backend/design.php +62 -47
- backend/seo.php +44 -28
- backend/social.php +42 -27
- functions/default-data.php +1 -1
- output/assets/js/scripts.js +1 -1
- readme.txt +6 -2
- site-offline.php +2 -1
backend/contact.php
CHANGED
@@ -57,6 +57,7 @@ $sahu_so_contact = unserialize(get_option('sahu_so_contact'));
|
|
57 |
<script>
|
58 |
function sahu_save_data_contact(){
|
59 |
jQuery("#sahu_loding_image").show();
|
|
|
60 |
var sahu_so_address = jQuery("#sahu_so_address").val();
|
61 |
var sahu_so_no = jQuery("#sahu_so_no").val();
|
62 |
var sahu_so_email = jQuery("#sahu_so_email").val();
|
@@ -70,6 +71,7 @@ function sahu_save_data_contact(){
|
|
70 |
data : {
|
71 |
'action_contact':'sahu_sop_contact',
|
72 |
'sahu_so_address':sahu_so_address,
|
|
|
73 |
'sahu_so_no':sahu_so_no,
|
74 |
'sahu_so_email':sahu_so_email,
|
75 |
|
@@ -84,6 +86,10 @@ function sahu_save_data_contact(){
|
|
84 |
}
|
85 |
</script>
|
86 |
<?php
|
|
|
|
|
|
|
|
|
87 |
if(isset($_POST['action_contact'])=="sahu_sop_contact") {
|
88 |
$sahu_so_address = sanitize_text_field($_POST['sahu_so_address']);
|
89 |
$sahu_so_no = sanitize_text_field($_POST['sahu_so_no']);
|
@@ -98,6 +104,8 @@ $contact = serialize( array(
|
|
98 |
) );
|
99 |
|
100 |
update_option('sahu_so_contact', $contact);
|
|
|
|
|
101 |
}
|
102 |
?>
|
103 |
|
@@ -110,6 +118,7 @@ update_option('sahu_so_contact', $contact);
|
|
110 |
return;
|
111 |
}
|
112 |
jQuery("#sahu_loding_image").show();
|
|
|
113 |
jQuery.ajax(
|
114 |
{
|
115 |
type: "POST",
|
@@ -117,7 +126,7 @@ update_option('sahu_so_contact', $contact);
|
|
117 |
|
118 |
data : {
|
119 |
'reset_action_contact':'action_contact_reset',
|
120 |
-
|
121 |
|
122 |
},
|
123 |
success : function(data){
|
@@ -133,17 +142,23 @@ update_option('sahu_so_contact', $contact);
|
|
133 |
</script>
|
134 |
|
135 |
<?php
|
136 |
-
if(isset($_POST['
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
|
|
|
|
|
|
|
|
145 |
|
146 |
-
|
147 |
-
|
|
|
|
|
148 |
}
|
149 |
?>
|
57 |
<script>
|
58 |
function sahu_save_data_contact(){
|
59 |
jQuery("#sahu_loding_image").show();
|
60 |
+
var site_offline_form_secure = jQuery("#site_offline_form_secure").val();
|
61 |
var sahu_so_address = jQuery("#sahu_so_address").val();
|
62 |
var sahu_so_no = jQuery("#sahu_so_no").val();
|
63 |
var sahu_so_email = jQuery("#sahu_so_email").val();
|
71 |
data : {
|
72 |
'action_contact':'sahu_sop_contact',
|
73 |
'sahu_so_address':sahu_so_address,
|
74 |
+
'site_offline_form_secure':site_offline_form_secure,
|
75 |
'sahu_so_no':sahu_so_no,
|
76 |
'sahu_so_email':sahu_so_email,
|
77 |
|
86 |
}
|
87 |
</script>
|
88 |
<?php
|
89 |
+
if(isset($_POST['site_offline_form_secure']))
|
90 |
+
{
|
91 |
+
if ( wp_verify_nonce( $_POST['site_offline_form_secure'], 'site_offline_secure_action_nonce' ) )
|
92 |
+
{
|
93 |
if(isset($_POST['action_contact'])=="sahu_sop_contact") {
|
94 |
$sahu_so_address = sanitize_text_field($_POST['sahu_so_address']);
|
95 |
$sahu_so_no = sanitize_text_field($_POST['sahu_so_no']);
|
104 |
) );
|
105 |
|
106 |
update_option('sahu_so_contact', $contact);
|
107 |
+
}
|
108 |
+
}
|
109 |
}
|
110 |
?>
|
111 |
|
118 |
return;
|
119 |
}
|
120 |
jQuery("#sahu_loding_image").show();
|
121 |
+
var site_offline_form_secure = jQuery("#site_offline_form_secure").val();
|
122 |
jQuery.ajax(
|
123 |
{
|
124 |
type: "POST",
|
126 |
|
127 |
data : {
|
128 |
'reset_action_contact':'action_contact_reset',
|
129 |
+
'site_offline_form_secure':site_offline_form_secure,
|
130 |
|
131 |
},
|
132 |
success : function(data){
|
142 |
</script>
|
143 |
|
144 |
<?php
|
145 |
+
if(isset($_POST['site_offline_form_secure']))
|
146 |
+
{
|
147 |
+
if ( wp_verify_nonce( $_POST['site_offline_form_secure'], 'site_offline_secure_action_nonce' ) )
|
148 |
+
{
|
149 |
+
if(isset($_POST['reset_action_contact'])=="action_contact_reset") {
|
150 |
+
|
151 |
+
|
152 |
+
$sahu_contact = serialize( array(
|
153 |
+
'sahu_so_address' => "123 Street, City",
|
154 |
+
'sahu_so_no' => "(00) 123-4567890",
|
155 |
+
'sahu_so_email' => "email@example.com",
|
156 |
+
|
157 |
+
) );
|
158 |
|
159 |
+
update_option('sahu_so_contact', $sahu_contact);
|
160 |
+
|
161 |
+
}
|
162 |
+
}
|
163 |
}
|
164 |
?>
|
backend/content.php
CHANGED
@@ -91,6 +91,7 @@ if ( ! defined( 'ABSPATH' ) ) exit;
|
|
91 |
margin-right: 10px;">Site Offline Or Coming Soon</h2>
|
92 |
</div>
|
93 |
<div class="col-md-8">
|
|
|
94 |
<div class="sahu-wp-panel">
|
95 |
<div class="panel-group" id="accordion" role="tablist" aria-multiselectable="true">
|
96 |
<div class="panel panel-default">
|
91 |
margin-right: 10px;">Site Offline Or Coming Soon</h2>
|
92 |
</div>
|
93 |
<div class="col-md-8">
|
94 |
+
<input type="hidden" id="site_offline_form_secure" name="site_offline_form_secure" value="<?php echo $site_offline_secure_action_nonce; ?>" />
|
95 |
<div class="sahu-wp-panel">
|
96 |
<div class="panel-group" id="accordion" role="tablist" aria-multiselectable="true">
|
97 |
<div class="panel panel-default">
|
backend/countdown-setting.php
CHANGED
@@ -51,6 +51,7 @@ jQuery(document).ready(function() {
|
|
51 |
<script>
|
52 |
function sahu_save_data_countdown(){
|
53 |
jQuery("#sahu_loding_image").show();
|
|
|
54 |
var cnt_enable = jQuery('input:radio[name="cnt_enable"]:checked').val();
|
55 |
var countdown_date = jQuery("#countdown_date").val();
|
56 |
|
@@ -65,6 +66,7 @@ function sahu_save_data_countdown(){
|
|
65 |
data : {
|
66 |
'action_countdown':'sahu_sop_countdown',
|
67 |
'cnt_enable':cnt_enable,
|
|
|
68 |
'countdown_date':countdown_date,
|
69 |
|
70 |
},
|
@@ -79,17 +81,23 @@ function sahu_save_data_countdown(){
|
|
79 |
}
|
80 |
</script>
|
81 |
<?php
|
82 |
-
if(isset($_POST['
|
83 |
-
|
84 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
85 |
|
86 |
-
|
87 |
-
'cnt_enable' => $cnt_enable,
|
88 |
-
'countdown_date' => $countdown_date,
|
89 |
-
|
90 |
-
) );
|
91 |
|
92 |
-
update_option('sahu_so_countdown', $countdown);
|
|
|
|
|
93 |
}
|
94 |
?>
|
95 |
|
@@ -103,6 +111,7 @@ update_option('sahu_so_countdown', $countdown);
|
|
103 |
return;
|
104 |
}
|
105 |
jQuery("#sahu_loding_image").show();
|
|
|
106 |
jQuery.ajax(
|
107 |
{
|
108 |
type: "POST",
|
@@ -110,7 +119,7 @@ update_option('sahu_so_countdown', $countdown);
|
|
110 |
|
111 |
data : {
|
112 |
'reset_action_countdown':'action_seo_countdown',
|
113 |
-
|
114 |
|
115 |
},
|
116 |
success : function(data){
|
@@ -126,19 +135,25 @@ update_option('sahu_so_countdown', $countdown);
|
|
126 |
</script>
|
127 |
|
128 |
<?php
|
129 |
-
if(isset($_POST['
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
|
|
|
|
|
|
|
|
141 |
|
142 |
-
|
|
|
|
|
143 |
}
|
144 |
?>
|
51 |
<script>
|
52 |
function sahu_save_data_countdown(){
|
53 |
jQuery("#sahu_loding_image").show();
|
54 |
+
var site_offline_form_secure = jQuery("#site_offline_form_secure").val();
|
55 |
var cnt_enable = jQuery('input:radio[name="cnt_enable"]:checked').val();
|
56 |
var countdown_date = jQuery("#countdown_date").val();
|
57 |
|
66 |
data : {
|
67 |
'action_countdown':'sahu_sop_countdown',
|
68 |
'cnt_enable':cnt_enable,
|
69 |
+
'site_offline_form_secure':site_offline_form_secure,
|
70 |
'countdown_date':countdown_date,
|
71 |
|
72 |
},
|
81 |
}
|
82 |
</script>
|
83 |
<?php
|
84 |
+
if(isset($_POST['site_offline_form_secure']))
|
85 |
+
{
|
86 |
+
if ( wp_verify_nonce( $_POST['site_offline_form_secure'], 'site_offline_secure_action_nonce' ) )
|
87 |
+
{
|
88 |
+
if(isset($_POST['action_countdown'])=="sahu_sop_countdown") {
|
89 |
+
$cnt_enable = sanitize_option('cnt_enable', $_POST['cnt_enable']);
|
90 |
+
$countdown_date = stripslashes(sanitize_text_field($_POST['countdown_date']));
|
91 |
+
|
92 |
+
$countdown = serialize( array(
|
93 |
+
'cnt_enable' => $cnt_enable,
|
94 |
+
'countdown_date' => $countdown_date,
|
95 |
|
96 |
+
) );
|
|
|
|
|
|
|
|
|
97 |
|
98 |
+
update_option('sahu_so_countdown', $countdown);
|
99 |
+
}
|
100 |
+
}
|
101 |
}
|
102 |
?>
|
103 |
|
111 |
return;
|
112 |
}
|
113 |
jQuery("#sahu_loding_image").show();
|
114 |
+
var site_offline_form_secure = jQuery("#site_offline_form_secure").val();
|
115 |
jQuery.ajax(
|
116 |
{
|
117 |
type: "POST",
|
119 |
|
120 |
data : {
|
121 |
'reset_action_countdown':'action_seo_countdown',
|
122 |
+
'site_offline_form_secure':site_offline_form_secure,
|
123 |
|
124 |
},
|
125 |
success : function(data){
|
135 |
</script>
|
136 |
|
137 |
<?php
|
138 |
+
if(isset($_POST['site_offline_form_secure']))
|
139 |
+
{
|
140 |
+
if ( wp_verify_nonce( $_POST['site_offline_form_secure'], 'site_offline_secure_action_nonce' ) )
|
141 |
+
{
|
142 |
+
if(isset($_POST['reset_action_countdown'])=="action_seo_countdown") {
|
143 |
+
|
144 |
+
$sahu_countdown = serialize( array(
|
145 |
+
|
146 |
+
'cnt_enable' => "yes",
|
147 |
+
'countdown_date' => "01/12/2021",
|
148 |
+
'days' => "days",
|
149 |
+
'hours' => "hours",
|
150 |
+
'minutes' => "minutes",
|
151 |
+
'seconds' => "seconds",
|
152 |
+
|
153 |
+
) );
|
154 |
|
155 |
+
update_option('sahu_so_countdown', $sahu_countdown);
|
156 |
+
}
|
157 |
+
}
|
158 |
}
|
159 |
?>
|
backend/dashboard.php
CHANGED
@@ -64,7 +64,8 @@ $sahu_so_dashboard = unserialize(get_option('sahu_so_dashboard'));
|
|
64 |
</tr>
|
65 |
|
66 |
<tr class="radio-span" >
|
67 |
-
<td>
|
|
|
68 |
<button class="portfolio_read_more_btn " onclick="sahu_save_data_dashboard()"><?php _e('Save Settings','SAHU_SO_TEXT_DOMAIN'); ?></button>
|
69 |
<button class="portfolio_demo_btn" onclick="sahu_reset_data_dashboard()"><?php _e('Reset Default Settings','SAHU_SO_TEXT_DOMAIN'); ?></button>
|
70 |
</td>
|
@@ -77,6 +78,7 @@ $sahu_so_dashboard = unserialize(get_option('sahu_so_dashboard'));
|
|
77 |
function sahu_save_data_dashboard(){
|
78 |
|
79 |
jQuery("#sahu_loding_image").show();
|
|
|
80 |
var so_headline = jQuery("#so_headline").val();
|
81 |
var so_description = jQuery("#so_description").val();
|
82 |
var sahu_so_status = jQuery('input:radio[name="sahu_so_status"]:checked').val();
|
@@ -91,6 +93,7 @@ var so_logo_url = jQuery("#so_logo_url").val();
|
|
91 |
|
92 |
data : {
|
93 |
'action_dashboard':'sahu_sop_dashboard',
|
|
|
94 |
'sahu_so_status':sahu_so_status,
|
95 |
'so_headline':so_headline,
|
96 |
'so_description':so_description,
|
@@ -110,24 +113,31 @@ var so_logo_url = jQuery("#so_logo_url").val();
|
|
110 |
|
111 |
</script>
|
112 |
<?php
|
113 |
-
if(isset($_POST['
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
120 |
|
121 |
-
|
122 |
-
'sahu_so_status' => $sahu_so_status,
|
123 |
-
'so_headline' => $so_headline,
|
124 |
-
'so_description' => $so_description,
|
125 |
-
'display_logo' => $display_logo,
|
126 |
-
'so_logo_url' => $so_logo_url,
|
127 |
-
|
128 |
-
) );
|
129 |
|
130 |
-
update_option('sahu_so_dashboard', $dashboard);
|
|
|
|
|
131 |
}
|
132 |
?>
|
133 |
|
@@ -140,6 +150,7 @@ update_option('sahu_so_dashboard', $dashboard);
|
|
140 |
return;
|
141 |
}
|
142 |
jQuery("#sahu_loding_image").show();
|
|
|
143 |
jQuery.ajax(
|
144 |
{
|
145 |
type: "POST",
|
@@ -147,6 +158,7 @@ update_option('sahu_so_dashboard', $dashboard);
|
|
147 |
|
148 |
data : {
|
149 |
'reset_action_dashboard':'action_dashboard_reset',
|
|
|
150 |
|
151 |
|
152 |
},
|
@@ -163,16 +175,23 @@ update_option('sahu_so_dashboard', $dashboard);
|
|
163 |
</script>
|
164 |
|
165 |
<?php
|
166 |
-
if(isset($_POST['
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
177 |
}
|
178 |
?>
|
64 |
</tr>
|
65 |
|
66 |
<tr class="radio-span" >
|
67 |
+
<td>
|
68 |
+
|
69 |
<button class="portfolio_read_more_btn " onclick="sahu_save_data_dashboard()"><?php _e('Save Settings','SAHU_SO_TEXT_DOMAIN'); ?></button>
|
70 |
<button class="portfolio_demo_btn" onclick="sahu_reset_data_dashboard()"><?php _e('Reset Default Settings','SAHU_SO_TEXT_DOMAIN'); ?></button>
|
71 |
</td>
|
78 |
function sahu_save_data_dashboard(){
|
79 |
|
80 |
jQuery("#sahu_loding_image").show();
|
81 |
+
var site_offline_form_secure = jQuery("#site_offline_form_secure").val();
|
82 |
var so_headline = jQuery("#so_headline").val();
|
83 |
var so_description = jQuery("#so_description").val();
|
84 |
var sahu_so_status = jQuery('input:radio[name="sahu_so_status"]:checked').val();
|
93 |
|
94 |
data : {
|
95 |
'action_dashboard':'sahu_sop_dashboard',
|
96 |
+
'site_offline_form_secure':site_offline_form_secure,
|
97 |
'sahu_so_status':sahu_so_status,
|
98 |
'so_headline':so_headline,
|
99 |
'so_description':so_description,
|
113 |
|
114 |
</script>
|
115 |
<?php
|
116 |
+
if(isset($_POST['site_offline_form_secure']))
|
117 |
+
{
|
118 |
+
if ( wp_verify_nonce( $_POST['site_offline_form_secure'], 'site_offline_secure_action_nonce' ) )
|
119 |
+
{
|
120 |
+
if(isset($_POST['action_dashboard'])=="sahu_sop_dashboard")
|
121 |
+
{
|
122 |
+
$sahu_so_status = sanitize_option('sahu_so_status', $_POST['sahu_so_status']);
|
123 |
+
$so_headline = stripslashes(sanitize_text_field($_POST['so_headline']));
|
124 |
+
$so_description = stripslashes($_POST['so_description']);
|
125 |
+
$display_logo = sanitize_option('display_logo', $_POST['display_logo']);
|
126 |
+
$so_logo_url = sanitize_text_field($_POST['so_logo_url']);
|
127 |
+
|
128 |
+
|
129 |
+
$dashboard = serialize( array(
|
130 |
+
'sahu_so_status' => $sahu_so_status,
|
131 |
+
'so_headline' => $so_headline,
|
132 |
+
'so_description' => $so_description,
|
133 |
+
'display_logo' => $display_logo,
|
134 |
+
'so_logo_url' => $so_logo_url,
|
135 |
|
136 |
+
) );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
137 |
|
138 |
+
update_option('sahu_so_dashboard', $dashboard);
|
139 |
+
}
|
140 |
+
}
|
141 |
}
|
142 |
?>
|
143 |
|
150 |
return;
|
151 |
}
|
152 |
jQuery("#sahu_loding_image").show();
|
153 |
+
var site_offline_form_secure = jQuery("#site_offline_form_secure").val();
|
154 |
jQuery.ajax(
|
155 |
{
|
156 |
type: "POST",
|
158 |
|
159 |
data : {
|
160 |
'reset_action_dashboard':'action_dashboard_reset',
|
161 |
+
'site_offline_form_secure':site_offline_form_secure,
|
162 |
|
163 |
|
164 |
},
|
175 |
</script>
|
176 |
|
177 |
<?php
|
178 |
+
if(isset($_POST['site_offline_form_secure']))
|
179 |
+
{
|
180 |
+
if ( wp_verify_nonce( $_POST['site_offline_form_secure'], 'site_offline_secure_action_nonce' ) )
|
181 |
+
{
|
182 |
+
|
183 |
+
if(isset($_POST['reset_action_dashboard'])=="action_dashboard_reset") {
|
184 |
+
$default_url2 = SAHU_SO_PLUGIN_URL.'assets/img/logo.png';
|
185 |
+
$sahu_dashboard = serialize( array(
|
186 |
+
'sahu_so_status' => "0",
|
187 |
+
'so_headline' => "Site Offline",
|
188 |
+
'so_description' => "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut vel fermentum dui. Pellentesque vitae porttitor ex, euismod sodales magna. Nunc sed felis sed dui pellentesque sodales porta a magna. Donec dui augue, dignissim faucibus lorem nec, fringilla molestie massa. Sed blandit dapibus bibendum. Sed interdum commodo laoreet. Sed mi orci.",
|
189 |
+
'display_logo' => "0",
|
190 |
+
'so_logo_url' => $default_url2,
|
191 |
+
|
192 |
+
) );
|
193 |
+
update_option('sahu_so_dashboard', $sahu_dashboard);
|
194 |
+
}
|
195 |
+
}
|
196 |
}
|
197 |
?>
|
backend/design.php
CHANGED
@@ -202,6 +202,7 @@ $sahu_so_design = unserialize(get_option('sahu_so_design'));
|
|
202 |
function sahu_save_data_design(){
|
203 |
jQuery("#sahu_loding_image").show();
|
204 |
var sahu_so_select_bg = jQuery('input:radio[name="sahu_so_select_bg"]:checked').val();
|
|
|
205 |
var sahu_so_bg_clr = jQuery("#sahu_so_bg_clr").val();
|
206 |
var sahu_so_bg_img = jQuery("#sahu_so_bg_img").val();
|
207 |
var sahu_headeline_ft_clr = jQuery("#sahu_headeline_ft_clr").val();
|
@@ -223,6 +224,7 @@ function sahu_save_data_design(){
|
|
223 |
data : {
|
224 |
'action_design':'sahu_sop_design',
|
225 |
'sahu_so_select_bg':sahu_so_select_bg,
|
|
|
226 |
'sahu_so_bg_clr':sahu_so_bg_clr,
|
227 |
'sahu_so_bg_img':sahu_so_bg_img,
|
228 |
'sahu_headeline_ft_clr':sahu_headeline_ft_clr,
|
@@ -247,37 +249,43 @@ function sahu_save_data_design(){
|
|
247 |
}
|
248 |
</script>
|
249 |
<?php
|
250 |
-
if(isset($_POST['
|
251 |
-
|
252 |
-
|
253 |
-
|
254 |
-
|
255 |
-
$
|
256 |
-
$
|
257 |
-
$
|
258 |
-
$
|
259 |
-
$
|
260 |
-
$
|
261 |
-
$
|
|
|
|
|
|
|
|
|
262 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
263 |
|
264 |
-
|
265 |
-
$design = serialize( array(
|
266 |
-
'sahu_so_select_bg' => $sahu_so_select_bg,
|
267 |
-
'sahu_so_bg_clr' => $sahu_so_bg_clr,
|
268 |
-
'sahu_so_bg_img' => $sahu_so_bg_img,
|
269 |
-
'sahu_headeline_ft_clr' => $sahu_headeline_ft_clr,
|
270 |
-
'sahu_desc_ft_clr' => $sahu_desc_ft_clr,
|
271 |
-
'sahu_cnt_ft_clr' => $sahu_cnt_ft_clr,
|
272 |
-
'sahu_social_clr' => $sahu_social_clr,
|
273 |
-
'sahu_headline_ft_size' => $sahu_headline_ft_size,
|
274 |
-
'sahu_desc_ft_size' => $sahu_desc_ft_size,
|
275 |
-
'sahu_ft_st' => $sahu_ft_st,
|
276 |
-
'sahu_so_custom_css' => $sahu_so_custom_css,
|
277 |
-
|
278 |
-
) );
|
279 |
|
280 |
-
update_option('sahu_so_design', $design);
|
|
|
|
|
281 |
}
|
282 |
?>
|
283 |
|
@@ -291,6 +299,7 @@ update_option('sahu_so_design', $design);
|
|
291 |
return;
|
292 |
}
|
293 |
jQuery("#sahu_loding_image").show();
|
|
|
294 |
jQuery.ajax(
|
295 |
{
|
296 |
type: "POST",
|
@@ -298,7 +307,7 @@ update_option('sahu_so_design', $design);
|
|
298 |
|
299 |
data : {
|
300 |
'reset_action_design':'action_design_reset',
|
301 |
-
|
302 |
|
303 |
},
|
304 |
success : function(data){
|
@@ -314,24 +323,30 @@ update_option('sahu_so_design', $design);
|
|
314 |
</script>
|
315 |
|
316 |
<?php
|
317 |
-
if(isset($_POST['
|
318 |
-
|
319 |
-
$
|
320 |
-
|
321 |
-
|
322 |
-
|
323 |
-
|
324 |
-
|
325 |
-
|
326 |
-
|
327 |
-
|
328 |
-
|
329 |
-
|
330 |
-
|
331 |
-
|
332 |
-
|
333 |
-
|
|
|
|
|
|
|
|
|
334 |
|
335 |
-
|
|
|
|
|
336 |
}
|
337 |
?>
|
202 |
function sahu_save_data_design(){
|
203 |
jQuery("#sahu_loding_image").show();
|
204 |
var sahu_so_select_bg = jQuery('input:radio[name="sahu_so_select_bg"]:checked').val();
|
205 |
+
var site_offline_form_secure = jQuery("#site_offline_form_secure").val();
|
206 |
var sahu_so_bg_clr = jQuery("#sahu_so_bg_clr").val();
|
207 |
var sahu_so_bg_img = jQuery("#sahu_so_bg_img").val();
|
208 |
var sahu_headeline_ft_clr = jQuery("#sahu_headeline_ft_clr").val();
|
224 |
data : {
|
225 |
'action_design':'sahu_sop_design',
|
226 |
'sahu_so_select_bg':sahu_so_select_bg,
|
227 |
+
'site_offline_form_secure':site_offline_form_secure,
|
228 |
'sahu_so_bg_clr':sahu_so_bg_clr,
|
229 |
'sahu_so_bg_img':sahu_so_bg_img,
|
230 |
'sahu_headeline_ft_clr':sahu_headeline_ft_clr,
|
249 |
}
|
250 |
</script>
|
251 |
<?php
|
252 |
+
if(isset($_POST['site_offline_form_secure']))
|
253 |
+
{
|
254 |
+
if ( wp_verify_nonce( $_POST['site_offline_form_secure'], 'site_offline_secure_action_nonce' ) )
|
255 |
+
{
|
256 |
+
if(isset($_POST['action_design'])=="sahu_sop_design") {
|
257 |
+
$sahu_so_select_bg = sanitize_option('sahu_so_select_bg', $_POST['sahu_so_select_bg']);
|
258 |
+
$sahu_so_bg_clr = sanitize_text_field($_POST['sahu_so_bg_clr']);
|
259 |
+
$sahu_so_bg_img = sanitize_text_field($_POST['sahu_so_bg_img']);
|
260 |
+
$sahu_headeline_ft_clr = sanitize_text_field($_POST['sahu_headeline_ft_clr']);
|
261 |
+
$sahu_desc_ft_clr = sanitize_text_field($_POST['sahu_desc_ft_clr']);
|
262 |
+
$sahu_cnt_ft_clr = sanitize_text_field($_POST['sahu_cnt_ft_clr']);
|
263 |
+
$sahu_social_clr = sanitize_text_field($_POST['sahu_social_clr']);
|
264 |
+
$sahu_headline_ft_size = sanitize_text_field($_POST['sahu_headline_ft_size']);
|
265 |
+
$sahu_desc_ft_size = sanitize_text_field($_POST['sahu_desc_ft_size']);
|
266 |
+
$sahu_ft_st = sanitize_text_field($_POST['sahu_ft_st']);
|
267 |
+
$sahu_so_custom_css = stripslashes($_POST['sahu_so_custom_css']);
|
268 |
|
269 |
+
|
270 |
+
|
271 |
+
$design = serialize( array(
|
272 |
+
'sahu_so_select_bg' => $sahu_so_select_bg,
|
273 |
+
'sahu_so_bg_clr' => $sahu_so_bg_clr,
|
274 |
+
'sahu_so_bg_img' => $sahu_so_bg_img,
|
275 |
+
'sahu_headeline_ft_clr' => $sahu_headeline_ft_clr,
|
276 |
+
'sahu_desc_ft_clr' => $sahu_desc_ft_clr,
|
277 |
+
'sahu_cnt_ft_clr' => $sahu_cnt_ft_clr,
|
278 |
+
'sahu_social_clr' => $sahu_social_clr,
|
279 |
+
'sahu_headline_ft_size' => $sahu_headline_ft_size,
|
280 |
+
'sahu_desc_ft_size' => $sahu_desc_ft_size,
|
281 |
+
'sahu_ft_st' => $sahu_ft_st,
|
282 |
+
'sahu_so_custom_css' => $sahu_so_custom_css,
|
283 |
|
284 |
+
) );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
285 |
|
286 |
+
update_option('sahu_so_design', $design);
|
287 |
+
}
|
288 |
+
}
|
289 |
}
|
290 |
?>
|
291 |
|
299 |
return;
|
300 |
}
|
301 |
jQuery("#sahu_loding_image").show();
|
302 |
+
var site_offline_form_secure = jQuery("#site_offline_form_secure").val();
|
303 |
jQuery.ajax(
|
304 |
{
|
305 |
type: "POST",
|
307 |
|
308 |
data : {
|
309 |
'reset_action_design':'action_design_reset',
|
310 |
+
'site_offline_form_secure':site_offline_form_secure,
|
311 |
|
312 |
},
|
313 |
success : function(data){
|
323 |
</script>
|
324 |
|
325 |
<?php
|
326 |
+
if(isset($_POST['site_offline_form_secure']))
|
327 |
+
{
|
328 |
+
if ( wp_verify_nonce( $_POST['site_offline_form_secure'], 'site_offline_secure_action_nonce' ) )
|
329 |
+
{
|
330 |
+
if(isset($_POST['reset_action_design'])=="action_design_reset") {
|
331 |
+
|
332 |
+
$default_url = SAHU_SO_PLUGIN_URL.'assets/img/bg.jpg';
|
333 |
+
|
334 |
+
$sahu_design = serialize( array(
|
335 |
+
'sahu_so_select_bg' => "1",
|
336 |
+
'sahu_so_bg_clr' => "#1e73be",
|
337 |
+
'sahu_so_bg_img' => $default_url,
|
338 |
+
'sahu_headeline_ft_clr' => "#ffffff",
|
339 |
+
'sahu_desc_ft_clr' => "#ffffff",
|
340 |
+
'sahu_social_clr' => "#ffffff",
|
341 |
+
'sahu_headline_ft_size' => "80",
|
342 |
+
'sahu_desc_ft_size' => "21",
|
343 |
+
'sahu_ft_st' => "Verdana",
|
344 |
+
'sahu_so_custom_css' => "",
|
345 |
+
|
346 |
+
) );
|
347 |
|
348 |
+
update_option('sahu_so_design', $sahu_design);
|
349 |
+
}
|
350 |
+
}
|
351 |
}
|
352 |
?>
|
backend/seo.php
CHANGED
@@ -67,6 +67,7 @@ $sahu_so_seo = unserialize(get_option('sahu_so_seo'));
|
|
67 |
<script>
|
68 |
function sahu_save_data_seo(){
|
69 |
jQuery("#sahu_loding_image").show();
|
|
|
70 |
var sahu_so_favicon = jQuery("#sahu_so_favicon").val();
|
71 |
var sahu_so_seo_title = jQuery("#sahu_so_seo_title").val();
|
72 |
var sahu_so_seo_desc = jQuery("#sahu_so_seo_desc").val();
|
@@ -80,6 +81,7 @@ function sahu_save_data_seo(){
|
|
80 |
|
81 |
data : {
|
82 |
'action_seo':'sahu_sop_seo',
|
|
|
83 |
'sahu_so_favicon':sahu_so_favicon,
|
84 |
'sahu_so_seo_title':sahu_so_seo_title,
|
85 |
'sahu_so_seo_desc':sahu_so_seo_desc,
|
@@ -97,22 +99,28 @@ function sahu_save_data_seo(){
|
|
97 |
}
|
98 |
</script>
|
99 |
<?php
|
100 |
-
if(isset($_POST['
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
105 |
|
106 |
-
|
107 |
-
$seo = serialize( array(
|
108 |
-
'sahu_so_favicon' => $sahu_so_favicon,
|
109 |
-
'sahu_so_seo_title' => $sahu_so_seo_title,
|
110 |
-
'sahu_so_seo_desc' => $sahu_so_seo_desc,
|
111 |
-
'sahu_so_seo_analytiso' => $sahu_so_seo_analytiso,
|
112 |
-
|
113 |
-
) );
|
114 |
|
115 |
-
update_option('sahu_so_seo', $seo);
|
|
|
|
|
116 |
}
|
117 |
?>
|
118 |
|
@@ -126,6 +134,7 @@ update_option('sahu_so_seo', $seo);
|
|
126 |
return;
|
127 |
}
|
128 |
jQuery("#sahu_loding_image").show();
|
|
|
129 |
jQuery.ajax(
|
130 |
{
|
131 |
type: "POST",
|
@@ -133,7 +142,7 @@ update_option('sahu_so_seo', $seo);
|
|
133 |
|
134 |
data : {
|
135 |
'reset_action_seo':'action_seo_reset',
|
136 |
-
|
137 |
|
138 |
},
|
139 |
success : function(data){
|
@@ -149,19 +158,26 @@ update_option('sahu_so_seo', $seo);
|
|
149 |
</script>
|
150 |
|
151 |
<?php
|
152 |
-
if(isset($_POST['
|
153 |
-
|
154 |
-
$
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
|
|
|
|
|
|
|
|
|
|
164 |
|
165 |
-
|
|
|
|
|
166 |
}
|
167 |
?>
|
67 |
<script>
|
68 |
function sahu_save_data_seo(){
|
69 |
jQuery("#sahu_loding_image").show();
|
70 |
+
var site_offline_form_secure = jQuery("#site_offline_form_secure").val();
|
71 |
var sahu_so_favicon = jQuery("#sahu_so_favicon").val();
|
72 |
var sahu_so_seo_title = jQuery("#sahu_so_seo_title").val();
|
73 |
var sahu_so_seo_desc = jQuery("#sahu_so_seo_desc").val();
|
81 |
|
82 |
data : {
|
83 |
'action_seo':'sahu_sop_seo',
|
84 |
+
'site_offline_form_secure':site_offline_form_secure,
|
85 |
'sahu_so_favicon':sahu_so_favicon,
|
86 |
'sahu_so_seo_title':sahu_so_seo_title,
|
87 |
'sahu_so_seo_desc':sahu_so_seo_desc,
|
99 |
}
|
100 |
</script>
|
101 |
<?php
|
102 |
+
if(isset($_POST['site_offline_form_secure']))
|
103 |
+
{
|
104 |
+
if ( wp_verify_nonce( $_POST['site_offline_form_secure'], 'site_offline_secure_action_nonce' ) )
|
105 |
+
{
|
106 |
+
if(isset($_POST['action_seo'])=="sahu_sop_seo") {
|
107 |
+
$sahu_so_favicon = sanitize_text_field($_POST['sahu_so_favicon']);
|
108 |
+
$sahu_so_seo_title = stripslashes(sanitize_text_field($_POST['sahu_so_seo_title']));
|
109 |
+
$sahu_so_seo_desc = stripslashes($_POST['sahu_so_seo_desc']);
|
110 |
+
$sahu_so_seo_analytiso = stripslashes($_POST['sahu_so_seo_analytiso']);
|
111 |
+
|
112 |
+
|
113 |
+
$seo = serialize( array(
|
114 |
+
'sahu_so_favicon' => $sahu_so_favicon,
|
115 |
+
'sahu_so_seo_title' => $sahu_so_seo_title,
|
116 |
+
'sahu_so_seo_desc' => $sahu_so_seo_desc,
|
117 |
+
'sahu_so_seo_analytiso' => $sahu_so_seo_analytiso,
|
118 |
|
119 |
+
) );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
120 |
|
121 |
+
update_option('sahu_so_seo', $seo);
|
122 |
+
}
|
123 |
+
}
|
124 |
}
|
125 |
?>
|
126 |
|
134 |
return;
|
135 |
}
|
136 |
jQuery("#sahu_loding_image").show();
|
137 |
+
var site_offline_form_secure = jQuery("#site_offline_form_secure").val();
|
138 |
jQuery.ajax(
|
139 |
{
|
140 |
type: "POST",
|
142 |
|
143 |
data : {
|
144 |
'reset_action_seo':'action_seo_reset',
|
145 |
+
'site_offline_form_secure':site_offline_form_secure,
|
146 |
|
147 |
},
|
148 |
success : function(data){
|
158 |
</script>
|
159 |
|
160 |
<?php
|
161 |
+
if(isset($_POST['site_offline_form_secure']))
|
162 |
+
{
|
163 |
+
if ( wp_verify_nonce( $_POST['site_offline_form_secure'], 'site_offline_secure_action_nonce' ) )
|
164 |
+
{
|
165 |
+
|
166 |
+
if(isset($_POST['reset_action_seo'])=="action_seo_reset") {
|
167 |
+
|
168 |
+
$default_url2 = SAHU_SO_PLUGIN_URL.'assets/img/logo.png';
|
169 |
+
|
170 |
+
|
171 |
+
$sahu_seo = serialize( array(
|
172 |
+
'sahu_so_favicon' => $default_url2,
|
173 |
+
'sahu_so_seo_title' => "Site Is Offline",
|
174 |
+
'sahu_so_seo_desc' => "",
|
175 |
+
'sahu_so_seo_analytiso' => "",
|
176 |
+
|
177 |
+
) );
|
178 |
|
179 |
+
update_option('sahu_so_seo', $sahu_seo);
|
180 |
+
}
|
181 |
+
}
|
182 |
}
|
183 |
?>
|
backend/social.php
CHANGED
@@ -69,6 +69,7 @@ $sahu_so_social = unserialize(get_option('sahu_so_social'));
|
|
69 |
<script>
|
70 |
function sahu_save_data_social(){
|
71 |
jQuery("#sahu_loding_image").show();
|
|
|
72 |
var sahu_so_fb = jQuery("#sahu_so_fb").val();
|
73 |
var sahu_so_twit = jQuery("#sahu_so_twit").val();
|
74 |
var sahu_so_ln = jQuery("#sahu_so_ln").val();
|
@@ -83,6 +84,7 @@ function sahu_save_data_social(){
|
|
83 |
data : {
|
84 |
'action_social':'sahu_sop_social',
|
85 |
'sahu_so_fb':sahu_so_fb,
|
|
|
86 |
'sahu_so_twit':sahu_so_twit,
|
87 |
'sahu_so_ln':sahu_so_ln,
|
88 |
'sahu_so_gp':sahu_so_gp,
|
@@ -99,22 +101,28 @@ function sahu_save_data_social(){
|
|
99 |
}
|
100 |
</script>
|
101 |
<?php
|
102 |
-
if(isset($_POST['
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
108 |
|
109 |
-
|
110 |
-
'sahu_so_fb' => $sahu_so_fb,
|
111 |
-
'sahu_so_twit' => $sahu_so_twit,
|
112 |
-
'sahu_so_ln' => $sahu_so_ln,
|
113 |
-
'sahu_so_gp' => $sahu_so_gp,
|
114 |
-
|
115 |
-
) );
|
116 |
|
117 |
-
update_option('sahu_so_social', $social);
|
|
|
|
|
118 |
}
|
119 |
?>
|
120 |
|
@@ -128,6 +136,7 @@ update_option('sahu_so_social', $social);
|
|
128 |
return;
|
129 |
}
|
130 |
jQuery("#sahu_loding_image").show();
|
|
|
131 |
jQuery.ajax(
|
132 |
{
|
133 |
type: "POST",
|
@@ -135,13 +144,13 @@ update_option('sahu_so_social', $social);
|
|
135 |
|
136 |
data : {
|
137 |
'reset_action_social':'action_social_reset',
|
138 |
-
|
139 |
|
140 |
},
|
141 |
success : function(data){
|
142 |
jQuery("#sahu_loding_image").fadeOut();
|
143 |
jQuery(".dialog-button").click();
|
144 |
-
location.href='?page=
|
145 |
|
146 |
}
|
147 |
});
|
@@ -151,17 +160,23 @@ update_option('sahu_so_social', $social);
|
|
151 |
</script>
|
152 |
|
153 |
<?php
|
154 |
-
if(isset($_POST['
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
|
|
|
|
|
|
|
|
164 |
|
165 |
-
|
|
|
|
|
166 |
}
|
167 |
?>
|
69 |
<script>
|
70 |
function sahu_save_data_social(){
|
71 |
jQuery("#sahu_loding_image").show();
|
72 |
+
var site_offline_form_secure = jQuery("#site_offline_form_secure").val();
|
73 |
var sahu_so_fb = jQuery("#sahu_so_fb").val();
|
74 |
var sahu_so_twit = jQuery("#sahu_so_twit").val();
|
75 |
var sahu_so_ln = jQuery("#sahu_so_ln").val();
|
84 |
data : {
|
85 |
'action_social':'sahu_sop_social',
|
86 |
'sahu_so_fb':sahu_so_fb,
|
87 |
+
'site_offline_form_secure':site_offline_form_secure,
|
88 |
'sahu_so_twit':sahu_so_twit,
|
89 |
'sahu_so_ln':sahu_so_ln,
|
90 |
'sahu_so_gp':sahu_so_gp,
|
101 |
}
|
102 |
</script>
|
103 |
<?php
|
104 |
+
if(isset($_POST['site_offline_form_secure']))
|
105 |
+
{
|
106 |
+
if ( wp_verify_nonce( $_POST['site_offline_form_secure'], 'site_offline_secure_action_nonce' ) )
|
107 |
+
{
|
108 |
+
if(isset($_POST['action_social'])=="sahu_sop_social") {
|
109 |
+
$sahu_so_fb = sanitize_text_field($_POST['sahu_so_fb']);
|
110 |
+
$sahu_so_twit = sanitize_text_field($_POST['sahu_so_twit']);
|
111 |
+
$sahu_so_ln = sanitize_text_field($_POST['sahu_so_ln']);
|
112 |
+
$sahu_so_gp = sanitize_text_field($_POST['sahu_so_gp']);
|
113 |
+
|
114 |
+
|
115 |
+
$social = serialize( array(
|
116 |
+
'sahu_so_fb' => $sahu_so_fb,
|
117 |
+
'sahu_so_twit' => $sahu_so_twit,
|
118 |
+
'sahu_so_ln' => $sahu_so_ln,
|
119 |
+
'sahu_so_gp' => $sahu_so_gp,
|
120 |
|
121 |
+
) );
|
|
|
|
|
|
|
|
|
|
|
|
|
122 |
|
123 |
+
update_option('sahu_so_social', $social);
|
124 |
+
}
|
125 |
+
}
|
126 |
}
|
127 |
?>
|
128 |
|
136 |
return;
|
137 |
}
|
138 |
jQuery("#sahu_loding_image").show();
|
139 |
+
var site_offline_form_secure = jQuery("#site_offline_form_secure").val();
|
140 |
jQuery.ajax(
|
141 |
{
|
142 |
type: "POST",
|
144 |
|
145 |
data : {
|
146 |
'reset_action_social':'action_social_reset',
|
147 |
+
'site_offline_form_secure':site_offline_form_secure,
|
148 |
|
149 |
},
|
150 |
success : function(data){
|
151 |
jQuery("#sahu_loding_image").fadeOut();
|
152 |
jQuery(".dialog-button").click();
|
153 |
+
location.href='?page=sahu_site_offline_wp';
|
154 |
|
155 |
}
|
156 |
});
|
160 |
</script>
|
161 |
|
162 |
<?php
|
163 |
+
if(isset($_POST['site_offline_form_secure']))
|
164 |
+
{
|
165 |
+
if ( wp_verify_nonce( $_POST['site_offline_form_secure'], 'site_offline_secure_action_nonce' ) )
|
166 |
+
{
|
167 |
+
if(isset($_POST['reset_action_social'])=="action_social_reset") {
|
168 |
+
|
169 |
+
|
170 |
+
$sahu_social = serialize( array(
|
171 |
+
'sahu_so_fb' => "#",
|
172 |
+
'sahu_so_twit' => "#",
|
173 |
+
'sahu_so_ln' => "#",
|
174 |
+
'sahu_so_gp' => "#",
|
175 |
+
|
176 |
+
) );
|
177 |
|
178 |
+
update_option('sahu_so_social', $sahu_social);
|
179 |
+
}
|
180 |
+
}
|
181 |
}
|
182 |
?>
|
functions/default-data.php
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<?php
|
1 |
+
<?php
|
output/assets/js/scripts.js
CHANGED
@@ -52,7 +52,7 @@ jQuery(document).ready(function() {
|
|
52 |
});
|
53 |
|
54 |
|
55 |
-
jQuery(window).load
|
56 |
|
57 |
/*
|
58 |
Loader
|
52 |
});
|
53 |
|
54 |
|
55 |
+
jQuery(window).on('load',function() {
|
56 |
|
57 |
/*
|
58 |
Loader
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: chandrashekharsahu
|
|
3 |
Donate link: http://www.freehtmldesigns.com
|
4 |
Tags: admin, coming soon, coming soon page, coming soon wp, coming soon wordPress plugin, construction, countdown timer, email, gmail, landing page, launch, launch page, maintenance, maintenance mode, message, newsletter, notify, offline, offline mode, offline, page, preview, site offline, site is offline, website offline, subscriber, ultimate coming soon page, ultimate landing page, unavailable, under construction, underconstruction, under construction page, wordpress coming soon, wordpress landing page, wordpress maintenance mode, wordpress maintenance mode plugin, wordpress under construction, wordpress under construction page, coming soon countdown
|
5 |
Requires at least: 4.0
|
6 |
-
Tested up to: 5.
|
7 |
-
Stable tag: 1.4.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -136,6 +136,10 @@ Please use WordPress support forum to ask any query regarding any issue.
|
|
136 |
|
137 |
|
138 |
== Changelog ==
|
|
|
|
|
|
|
|
|
139 |
= 1.4.2 =
|
140 |
*compatible with 5.4.1
|
141 |
|
3 |
Donate link: http://www.freehtmldesigns.com
|
4 |
Tags: admin, coming soon, coming soon page, coming soon wp, coming soon wordPress plugin, construction, countdown timer, email, gmail, landing page, launch, launch page, maintenance, maintenance mode, message, newsletter, notify, offline, offline mode, offline, page, preview, site offline, site is offline, website offline, subscriber, ultimate coming soon page, ultimate landing page, unavailable, under construction, underconstruction, under construction page, wordpress coming soon, wordpress landing page, wordpress maintenance mode, wordpress maintenance mode plugin, wordpress under construction, wordpress under construction page, coming soon countdown
|
5 |
Requires at least: 4.0
|
6 |
+
Tested up to: 5.6
|
7 |
+
Stable tag: 1.4.4
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
136 |
|
137 |
|
138 |
== Changelog ==
|
139 |
+
|
140 |
+
= 1.4.4 =
|
141 |
+
*Compatible with wordpress 5.6
|
142 |
+
|
143 |
= 1.4.2 =
|
144 |
*compatible with 5.4.1
|
145 |
|
site-offline.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* Plugin Name: Site Offline
|
4 |
-
* Version: 1.4.
|
5 |
* Description: Site Offline plugin manage your WordPress website when it's under construction or maintenance mode or coming soon.
|
6 |
* Author: Chandra Shekhar Sahu
|
7 |
* Author URI: http://www.freehtmldesigns.com
|
@@ -40,6 +40,7 @@ require_once('functions/script.php');
|
|
40 |
|
41 |
function sahu_site_offline_content()
|
42 |
{
|
|
|
43 |
require_once('backend/content.php');
|
44 |
}
|
45 |
|
1 |
<?php
|
2 |
/**
|
3 |
* Plugin Name: Site Offline
|
4 |
+
* Version: 1.4.4
|
5 |
* Description: Site Offline plugin manage your WordPress website when it's under construction or maintenance mode or coming soon.
|
6 |
* Author: Chandra Shekhar Sahu
|
7 |
* Author URI: http://www.freehtmldesigns.com
|
40 |
|
41 |
function sahu_site_offline_content()
|
42 |
{
|
43 |
+
$site_offline_secure_action_nonce = wp_create_nonce("site_offline_secure_action_nonce");
|
44 |
require_once('backend/content.php');
|
45 |
}
|
46 |
|