Version Description
Download this release
Release Info
Developer | smartcat |
Plugin | WP Construction Mode |
Version | 3.23 |
Comparing to | |
See all releases |
Code changes from version 3.22 to 3.23
- inc/class/class.smartcat-construction.php +3 -8
- readme.txt +2 -2
inc/class/class.smartcat-construction.php
CHANGED
@@ -54,9 +54,9 @@ class SmartcatConstructionPlugin {
|
|
54 |
update_option( 'smartcat_construction_options', $options );
|
55 |
}else {
|
56 |
|
57 |
-
$
|
58 |
|
59 |
-
if( $
|
60 |
|
61 |
$options['analytics'] = '';
|
62 |
update_option( 'smartcat_construction_options', $options );
|
@@ -89,13 +89,8 @@ class SmartcatConstructionPlugin {
|
|
89 |
|
90 |
public function preview() {
|
91 |
|
92 |
-
$file = SC_CONSTRUCTION_PATH . 'inc/template/' . $this->options['display_template'] . '.php';
|
93 |
-
$template = null;
|
94 |
|
95 |
-
|
96 |
-
$template = $file;
|
97 |
-
else
|
98 |
-
$template = SC_CONSTRUCTION_PATH . 'inc/template/construction.php';
|
99 |
|
100 |
if ( isset( $_GET['smartcat_construction'] ) && $_GET['smartcat_construction'] == 'preview') :
|
101 |
|
54 |
update_option( 'smartcat_construction_options', $options );
|
55 |
}else {
|
56 |
|
57 |
+
$option = get_option('smartcat_construction_options');
|
58 |
|
59 |
+
if( !isset( $option['analytics'] ) ) :
|
60 |
|
61 |
$options['analytics'] = '';
|
62 |
update_option( 'smartcat_construction_options', $options );
|
89 |
|
90 |
public function preview() {
|
91 |
|
|
|
|
|
92 |
|
93 |
+
$template = SC_CONSTRUCTION_PATH . 'inc/template/construction.php';
|
|
|
|
|
|
|
94 |
|
95 |
if ( isset( $_GET['smartcat_construction'] ) && $_GET['smartcat_construction'] == 'preview') :
|
96 |
|
readme.txt
CHANGED
@@ -2,9 +2,9 @@
|
|
2 |
Contributors: smartcat
|
3 |
Donate link: http://smartcatdesign.net/donate
|
4 |
Tags: construction,maintenance,landing,page,admin,under construction,under maintenance,coming soon,administrator,custom message,analytics, client portal, login, password, secure, client, social,facebook,twitter,google plus,gplus,email,icons,link,instagram,digg,flickr,skype,tumblr,youtube, mailchimp,newsletter,shortcode,contact,form,constant contact
|
5 |
-
Requires at least: 3.
|
6 |
Tested up to: 4.3.1
|
7 |
-
Stable tag: 3.
|
8 |
License: GPLv2 or later
|
9 |
|
10 |
Display a customizable Under Construction or Coming Soon landing page for all users except the admin. Perfect for developing on a live server!
|
2 |
Contributors: smartcat
|
3 |
Donate link: http://smartcatdesign.net/donate
|
4 |
Tags: construction,maintenance,landing,page,admin,under construction,under maintenance,coming soon,administrator,custom message,analytics, client portal, login, password, secure, client, social,facebook,twitter,google plus,gplus,email,icons,link,instagram,digg,flickr,skype,tumblr,youtube, mailchimp,newsletter,shortcode,contact,form,constant contact
|
5 |
+
Requires at least: 3.22
|
6 |
Tested up to: 4.3.1
|
7 |
+
Stable tag: 3.22
|
8 |
License: GPLv2 or later
|
9 |
|
10 |
Display a customizable Under Construction or Coming Soon landing page for all users except the admin. Perfect for developing on a live server!
|