Under Construction / Maintenance Mode from Acurax - Version 2.1

Version Description

  • Dec 16, 2015
  • Code Optimization
  • Fixed Countdown Timer Bug
Download this release

Release Info

Developer Acurax
Plugin Icon 128x128 Under Construction / Maintenance Mode from Acurax
Version 2.1
Comparing to
See all releases

Code changes from version 2.0 to 2.1

Files changed (3) hide show
  1. acx_csma.php +4 -4
  2. function.php +7 -3
  3. readme.txt +11 -1
acx_csma.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Under Construction / Maintenance Mode From Acurax
4
  Plugin URI: http://www.acurax.com/Products/
5
  Description: Simple and the best Coming Soon or Maintenance Mode Plugin Which Supports Practically Unlimited Responsive Designs.
6
  Author: Acurax
7
- Version: 2.0
8
  Author URI: http://www.acurax.com
9
  License: GPLv2 or later
10
  */
@@ -26,7 +26,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
26
  ?>
27
  <?php
28
  /*************** Admin function ***************/
29
- define("ACX_CSMA_CURRENT_VERSION",2.0);
30
  define("ACX_CSMA_TOTAL_THEMES",5);
31
  define("ACX_CSMA_BASE_LOCATION",plugin_dir_url( __FILE__ ));
32
 
@@ -83,7 +83,7 @@ $filename = plugin_dir_path( __FILE__ ) . 'backward_compactability_file.php';
83
  }
84
 
85
  $acx_csma_version=get_option('acx_csma_version');
86
- if($acx_csma_version !='' || $acx_csma_version < '1.1')
87
  {
88
  add_action('admin_head','acx_csma_migration');
89
  }
@@ -102,7 +102,7 @@ $filename = plugin_dir_path( __FILE__ ) . 'backward_compactability_file.php';
102
  }
103
 
104
  $acx_csma_version=get_option('acx_csma_version');
105
- if($acx_csma_version != '' || $acx_csma_version < ACX_CSMA_CURRENT_VERSION)
106
  {
107
  if (function_exists('acx_csma_base_encode_fix')) {
108
  add_action('admin_head','acx_csma_update_content');
4
  Plugin URI: http://www.acurax.com/Products/
5
  Description: Simple and the best Coming Soon or Maintenance Mode Plugin Which Supports Practically Unlimited Responsive Designs.
6
  Author: Acurax
7
+ Version: 2.1
8
  Author URI: http://www.acurax.com
9
  License: GPLv2 or later
10
  */
26
  ?>
27
  <?php
28
  /*************** Admin function ***************/
29
+ define("ACX_CSMA_CURRENT_VERSION","2.1");
30
  define("ACX_CSMA_TOTAL_THEMES",5);
31
  define("ACX_CSMA_BASE_LOCATION",plugin_dir_url( __FILE__ ));
32
 
83
  }
84
 
85
  $acx_csma_version=get_option('acx_csma_version');
86
+ if($acx_csma_version == '' && get_option('acx_csma_start_date_time') != "")
87
  {
88
  add_action('admin_head','acx_csma_migration');
89
  }
102
  }
103
 
104
  $acx_csma_version=get_option('acx_csma_version');
105
+ if(($acx_csma_version > 0 && $acx_csma_version < ACX_CSMA_CURRENT_VERSION))
106
  {
107
  if (function_exists('acx_csma_base_encode_fix')) {
108
  add_action('admin_head','acx_csma_update_content');
function.php CHANGED
@@ -335,15 +335,19 @@ else
335
 
336
  function acx_csma_add_items($admin_bar)
337
  {
338
- $admin_bar->add_menu( array(
339
  'id' => 'acx_csma_activation_msg',
340
  'parent' => 'top-secondary',
341
  'title' => 'Maintenance Mode is Activated',
342
  'href' => 'admin.php?page=Acurax-Coming-Soon-Maintenance-Mode-Settings'
343
- ));
 
 
 
 
344
  }
345
  $acx_csma_activation_status=get_option('acx_csma_activation_status');
346
- if($acx_csma_activation_status == 1)
347
  {
348
  add_action('admin_bar_menu', 'acx_csma_add_items');
349
  }
335
 
336
  function acx_csma_add_items($admin_bar)
337
  {
338
+ $args = array(
339
  'id' => 'acx_csma_activation_msg',
340
  'parent' => 'top-secondary',
341
  'title' => 'Maintenance Mode is Activated',
342
  'href' => 'admin.php?page=Acurax-Coming-Soon-Maintenance-Mode-Settings'
343
+ );
344
+ if (!current_user_can('manage_options') ) {
345
+ return;
346
+ }
347
+ $admin_bar->add_menu($args);
348
  }
349
  $acx_csma_activation_status=get_option('acx_csma_activation_status');
350
+ if($acx_csma_activation_status == 1 && is_admin())
351
  {
352
  add_action('admin_bar_menu', 'acx_csma_add_items');
353
  }
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.acurax.com/happy-clients.php
4
 
5
  Tags: under construction,coming soon,under maintenance,maintenance mode,site offline,work in progress,website launch,launching page
6
  Requires at least: 2.8
7
- Tested up to: 4.3.1
8
  Stable tag: trunk
9
  License: GPLv2 or later
10
 
@@ -179,6 +179,11 @@ Its Because You Selected The Option “Would You Like To End The Maintenance Mod
179
 
180
  == Upgrade Notice ==
181
 
 
 
 
 
 
182
  = 2.0 =
183
  * Nov 20, 2015
184
  * Code Optimization
@@ -204,6 +209,11 @@ Its Because You Selected The Option “Would You Like To End The Maintenance Mod
204
 
205
  == Changelog ==
206
 
 
 
 
 
 
207
  = 2.0 =
208
  * Nov 20, 2015
209
  * Code Optimization
4
 
5
  Tags: under construction,coming soon,under maintenance,maintenance mode,site offline,work in progress,website launch,launching page
6
  Requires at least: 2.8
7
+ Tested up to: 4.4.1
8
  Stable tag: trunk
9
  License: GPLv2 or later
10
 
179
 
180
  == Upgrade Notice ==
181
 
182
+ = 2.1 =
183
+ * Dec 16, 2015
184
+ * Code Optimization
185
+ * Fixed Countdown Timer Bug
186
+
187
  = 2.0 =
188
  * Nov 20, 2015
189
  * Code Optimization
209
 
210
  == Changelog ==
211
 
212
+ = 2.1 =
213
+ * Dec 16, 2015
214
+ * Code Optimization
215
+ * Fixed Countdown Timer Bug
216
+
217
  = 2.0 =
218
  * Nov 20, 2015
219
  * Code Optimization