Version Description
Download this release
Release Info
Developer | Muneeb |
Plugin | Site Offline or Coming Soon |
Version | 1.2 |
Comparing to | |
See all releases |
Code changes from version 1.0 to 1.2
- main.php +7 -7
- readme.txt +5 -4
- site-offline-options.php +4 -0
main.php
CHANGED
@@ -1,13 +1,13 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
-
Plugin Name: Site Offline
|
4 |
-
Plugin URI: http://
|
5 |
-
Description: Make safe changes to your site by enabling site offline mode with this plugin
|
6 |
-
Version: 1.
|
7 |
Author: Muneeb
|
8 |
-
Author URI: http://
|
9 |
License: GPLv2 or later
|
10 |
-
CopyRight (c) 2011 Muneeb ur Rehman
|
11 |
*/
|
12 |
|
13 |
function cp_siteoffline_activate()
|
@@ -48,7 +48,7 @@ function cp_siteoffline_message()
|
|
48 |
{
|
49 |
$options = get_option('sp_siteoffline_options');
|
50 |
if ( $options['enabled'] === false ) return;
|
51 |
-
if ( !current_user_can('
|
52 |
echo $options['content'];
|
53 |
exit();
|
54 |
}
|
1 |
<?php
|
2 |
/*
|
3 |
+
Plugin Name: Site Offline or Coming Soon
|
4 |
+
Plugin URI: http://imuneeb.com/wordpress-coming-soon-plugin/
|
5 |
+
Description: Make safe changes to your site by enabling site offline mode with this plugin you'll be able to navigate your site normally but your regular visitor will se a site offline or coming soon page
|
6 |
+
Version: 1.4
|
7 |
Author: Muneeb
|
8 |
+
Author URI: http://imuneeb.com
|
9 |
License: GPLv2 or later
|
10 |
+
CopyRight (c) 2011 Muneeb ur Rehman http://imuneeb.com
|
11 |
*/
|
12 |
|
13 |
function cp_siteoffline_activate()
|
48 |
{
|
49 |
$options = get_option('sp_siteoffline_options');
|
50 |
if ( $options['enabled'] === false ) return;
|
51 |
+
if ( !current_user_can('edit_posts') ){
|
52 |
echo $options['content'];
|
53 |
exit();
|
54 |
}
|
readme.txt
CHANGED
@@ -1,12 +1,13 @@
|
|
1 |
=== Plugin Name ===
|
2 |
Contributors: Muneeb
|
3 |
-
Tags: coming soon,site is down,maintenance,teaser,offline,google
|
4 |
Requires at least: 3.0
|
5 |
-
Tested up to: 3.
|
6 |
-
Stable tag: 1.
|
7 |
|
8 |
== Description ==
|
9 |
|
10 |
Use this plugin to enable/disable site offline mode. When Site offline Mode is enabled regular visitors of your site will see a page(you can edit that page by going to settings->Site Offline Mode) and you as a admin can make and test safe changes to your site. Very helpful for those developers who need coming soon pages for there sites.
|
11 |
|
12 |
-
|
|
1 |
=== Plugin Name ===
|
2 |
Contributors: Muneeb
|
3 |
+
Tags: coming soon,site is down,maintenance,teaser,offline,google,premium,post,page,google,admin,aweber,opt-in,form,mail chimp
|
4 |
Requires at least: 3.0
|
5 |
+
Tested up to: 3.4
|
6 |
+
Stable tag: 1.2
|
7 |
|
8 |
== Description ==
|
9 |
|
10 |
Use this plugin to enable/disable site offline mode. When Site offline Mode is enabled regular visitors of your site will see a page(you can edit that page by going to settings->Site Offline Mode) and you as a admin can make and test safe changes to your site. Very helpful for those developers who need coming soon pages for there sites.
|
11 |
|
12 |
+
For more advanced features be sure to check out our premium version of the plugin, <a href="http://plugistan.com/comingsoon-plus/">WordPress Site offline/Coming Soon Plugin</a>
|
13 |
+
|
site-offline-options.php
CHANGED
@@ -1,7 +1,11 @@
|
|
1 |
<?php if (!current_user_can('manage_options')) wp_die('You do not have sufficient permissions to access this page') ?>
|
2 |
|
3 |
<div class="wrap">
|
|
|
|
|
|
|
4 |
<div id="icon-options-general" class="icon32"><br /></div>
|
|
|
5 |
<h2><?php _e('Site Offline Plugin Options'); ?></h2>
|
6 |
<form method="POST" action="">
|
7 |
<fieldset>
|
1 |
<?php if (!current_user_can('manage_options')) wp_die('You do not have sufficient permissions to access this page') ?>
|
2 |
|
3 |
<div class="wrap">
|
4 |
+
<div>
|
5 |
+
<h3 style="margin:5px;"><a href="http://imuneeb.com/wordpress-coming-soon/">Premium Version: WordPress Site offline/Coming Soon Plus Plugin</a></h3>
|
6 |
+
</div>
|
7 |
<div id="icon-options-general" class="icon32"><br /></div>
|
8 |
+
|
9 |
<h2><?php _e('Site Offline Plugin Options'); ?></h2>
|
10 |
<form method="POST" action="">
|
11 |
<fieldset>
|