Version Description
Fix - Code Improvements Fix - Several Bug Fixes Fix - Role issue reported by handjes
Download this release
Release Info
Developer | Acurax |
Plugin | Under Construction / Maintenance Mode from Acurax |
Version | 2.5.4 |
Comparing to | |
See all releases |
Code changes from version 2.5.3 to 2.5.4
- acx_csma.php +2 -2
- function.php +3 -5
- includes/acx_csma_admin.php +3 -3
- readme.txt +13 -3
acx_csma.php
CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Under Construction / Maintenance Mode From Acurax
|
|
4 |
Plugin URI: http://www.acurax.com/products/under-construction-maintenance-mode-wordpress-plugin
|
5 |
Description: Simple and the best Coming Soon or Maintenance Mode Plugin Which Supports Practically Unlimited Responsive Designs.
|
6 |
Author: Acurax
|
7 |
-
Version: 2.5.
|
8 |
Author URI: http://wordpress.acurax.com
|
9 |
License: GPLv2 or later
|
10 |
Text Domain: coming-soon-maintenance-mode-from-acurax
|
@@ -27,7 +27,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
27 |
?>
|
28 |
<?php
|
29 |
/*************** Admin function ***************/
|
30 |
-
define("ACX_CSMA_CURRENT_VERSION","2.5.
|
31 |
define("ACX_CSMA_TOTAL_THEMES",5);
|
32 |
define("ACX_CSMA_BASE_LOCATION",plugin_dir_url( __FILE__ ));
|
33 |
define("ACX_CSMA_WP_SLUG","coming-soon-maintenance-mode-from-acurax");
|
4 |
Plugin URI: http://www.acurax.com/products/under-construction-maintenance-mode-wordpress-plugin
|
5 |
Description: Simple and the best Coming Soon or Maintenance Mode Plugin Which Supports Practically Unlimited Responsive Designs.
|
6 |
Author: Acurax
|
7 |
+
Version: 2.5.4
|
8 |
Author URI: http://wordpress.acurax.com
|
9 |
License: GPLv2 or later
|
10 |
Text Domain: coming-soon-maintenance-mode-from-acurax
|
27 |
?>
|
28 |
<?php
|
29 |
/*************** Admin function ***************/
|
30 |
+
define("ACX_CSMA_CURRENT_VERSION","2.5.4");
|
31 |
define("ACX_CSMA_TOTAL_THEMES",5);
|
32 |
define("ACX_CSMA_BASE_LOCATION",plugin_dir_url( __FILE__ ));
|
33 |
define("ACX_CSMA_WP_SLUG","coming-soon-maintenance-mode-from-acurax");
|
function.php
CHANGED
@@ -249,15 +249,13 @@ function acx_csma_plugin_activation()
|
|
249 |
}
|
250 |
$current_user = wp_get_current_user();
|
251 |
$roles = $current_user->roles; //$roles -array
|
252 |
-
|
253 |
foreach($roles as $key=>$value)
|
254 |
{
|
255 |
-
$value
|
256 |
-
$user_roles=ucwords($value);
|
257 |
}
|
258 |
if(is_array($acx_csma_role_array))
|
259 |
{
|
260 |
-
if(in_array($user_roles,$acx_csma_role_array)|| $user_roles=="
|
261 |
{
|
262 |
//do not display maintenance page.....
|
263 |
$acx_csma_display_template=false;
|
@@ -644,7 +642,7 @@ function acx_csma_service_addon_demo()
|
|
644 |
$acx_theme_addon_demo_array = array();
|
645 |
}
|
646 |
$acx_csma_lb_title = __('Showcase Products and Services While Your Website Is Under Construction','coming-soon-maintenance-mode-from-acurax');
|
647 |
-
$acx_csma_lb_content = "<p style=\"font-size:14px;\">".__('We have prepared 4 special themes ','coming-soon-maintenance-mode-from-acurax')."( <a href=\"https://clients.acurax.com/link.php?id=18\" target=\"_blank\" title=\"Preview This Theme\">".__('STP1-A','coming-soon-maintenance-mode-from-acurax')."</a>, <a href=\"https://clients.acurax.com/link.php?id=19\" target=\"_blank\" title=\"Preview This Theme\">".__('STP1-B','coming-soon-maintenance-mode-from-acurax')."</a>, <a href=\"https://clients.acurax.com/link.php?id=20\" target=\"_blank\" title=\"Preview This Theme\">".__('STP1-C','coming-soon-maintenance-mode-from-acurax')."</a>".__(' and','coming-soon-maintenance-mode-from-acurax')." <a href=\"https://clients.acurax.com/link.php?id=21\" target=\"_blank\" title=\"Preview This Theme\">".__('STP1-D','coming-soon-maintenance-mode-from-acurax')."</a> )". __('as an Addon plugin labeled
|
648 |
foreach($acx_theme_addon_demo_array as $key => $value)
|
649 |
{
|
650 |
foreach($value as $k => $v)
|
249 |
}
|
250 |
$current_user = wp_get_current_user();
|
251 |
$roles = $current_user->roles; //$roles -array
|
|
|
252 |
foreach($roles as $key=>$value)
|
253 |
{
|
254 |
+
$user_roles=$value;
|
|
|
255 |
}
|
256 |
if(is_array($acx_csma_role_array))
|
257 |
{
|
258 |
+
if(in_array($user_roles,$acx_csma_role_array)|| $user_roles=="administrator" || is_super_admin())
|
259 |
{
|
260 |
//do not display maintenance page.....
|
261 |
$acx_csma_display_template=false;
|
642 |
$acx_theme_addon_demo_array = array();
|
643 |
}
|
644 |
$acx_csma_lb_title = __('Showcase Products and Services While Your Website Is Under Construction','coming-soon-maintenance-mode-from-acurax');
|
645 |
+
$acx_csma_lb_content = "<p style=\"font-size:14px;\">".__('We have prepared 4 special themes ','coming-soon-maintenance-mode-from-acurax')."( <a href=\"https://clients.acurax.com/link.php?id=18\" target=\"_blank\" title=\"Preview This Theme\">".__('STP1-A','coming-soon-maintenance-mode-from-acurax')."</a>, <a href=\"https://clients.acurax.com/link.php?id=19\" target=\"_blank\" title=\"Preview This Theme\">".__('STP1-B','coming-soon-maintenance-mode-from-acurax')."</a>, <a href=\"https://clients.acurax.com/link.php?id=20\" target=\"_blank\" title=\"Preview This Theme\">".__('STP1-C','coming-soon-maintenance-mode-from-acurax')."</a>".__(' and','coming-soon-maintenance-mode-from-acurax')." <a href=\"https://clients.acurax.com/link.php?id=21\" target=\"_blank\" title=\"Preview This Theme\">".__('STP1-D','coming-soon-maintenance-mode-from-acurax')."</a> )". __('as an Addon plugin labeled "Service Theme Pack 1" which you can install just like a normal plugin after purchase. And the additional themes will be available here. These themes are designed and developed with high customizable options.','coming-soon-maintenance-mode-from-acurax')."<br><br>".__('This theme pack have 4 highly customizable themes with Contact/Lead Capture Form,Service/Product Showcase, About us Section etc... Check preview for a live preview.','coming-soon-maintenance-mode-from-acurax')."<br><br><a style=\"float: left; color: black; border: 1px solid black; border-radius: 3px; padding: 4px; font-size: 13px; opacity: 0.8;\"href=\"http://www.acurax.com/products/under-construction-maintenance-mode-wordpress-plugin/?feature=service-theme-pack-1&utm_source=preview_link&utm_medium=csma&utm_campaign=csma\" style=\"float:right;\" target=\"_blank\">".__('View Screenshots/More Details','coming-soon-maintenance-mode-from-acurax')."</a><a href=\"https://clients.acurax.com/order.php?pid=csmastp1&utm_source=preview_link&utm_medium=csma&utm_campaign=csma\" style=\"float:right;\" target=\"_blank\" class=\"button\">".__('Click Here to Order Now','coming-soon-maintenance-mode-from-acurax')."</a><br></p><p><br></p>";
|
646 |
foreach($acx_theme_addon_demo_array as $key => $value)
|
647 |
{
|
648 |
foreach($value as $k => $v)
|
includes/acx_csma_admin.php
CHANGED
@@ -1123,11 +1123,11 @@ acx_csma_hook_function('acx_csma_hook_mainoptions_outside_if_submit');
|
|
1123 |
// get all roles
|
1124 |
global $wp_roles;
|
1125 |
$roles = $wp_roles->get_names();
|
1126 |
-
foreach($roles as $role)
|
1127 |
{
|
1128 |
-
if($
|
1129 |
{?>
|
1130 |
-
<tr><td><input type="checkbox" name="acx_csma_restrict_role[]" size="20" value="<?php echo $
|
1131 |
<?php }
|
1132 |
}?>
|
1133 |
</table>
|
1123 |
// get all roles
|
1124 |
global $wp_roles;
|
1125 |
$roles = $wp_roles->get_names();
|
1126 |
+
foreach($roles as $role_key => $role)
|
1127 |
{
|
1128 |
+
if($role_key!="administrator")
|
1129 |
{?>
|
1130 |
+
<tr><td><input type="checkbox" name="acx_csma_restrict_role[]" size="20" value="<?php echo $role_key; ?>"<?php if(is_array($acx_csma_restrict_role) && in_array($role_key,$acx_csma_restrict_role)){echo "checked='checked'"; }?>/><?php echo $role; ?></td><tr>
|
1131 |
<?php }
|
1132 |
}?>
|
1133 |
</table>
|
readme.txt
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
=== Under Construction / Maintenance Mode from Acurax ===
|
2 |
-
Contributors: Acurax
|
3 |
Donate link: http://www.acurax.com/
|
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 |
-
|
|
|
8 |
Stable tag: trunk
|
9 |
License: GPLv2 or later
|
10 |
|
@@ -187,6 +187,11 @@ Yes, From Version 2.5.1, you have the option in Misc page to enable/disable send
|
|
187 |
|
188 |
== Upgrade Notice ==
|
189 |
|
|
|
|
|
|
|
|
|
|
|
190 |
= 2.5.3 =
|
191 |
Fix - Security Fixes
|
192 |
|
@@ -267,6 +272,11 @@ Stable Release
|
|
267 |
|
268 |
== Changelog ==
|
269 |
|
|
|
|
|
|
|
|
|
|
|
270 |
= 2.5.3 =
|
271 |
Fix - Security Fixes
|
272 |
|
1 |
=== Under Construction / Maintenance Mode from Acurax ===
|
2 |
+
Contributors: Acurax, comingsoonsupport
|
3 |
Donate link: http://www.acurax.com/
|
|
|
4 |
Tags: under construction,coming soon,under maintenance,maintenance mode,site offline,work in progress,website launch,launching page
|
5 |
Requires at least: 2.8
|
6 |
+
Requires PHP: 5.3
|
7 |
+
Tested up to: 4.8.2
|
8 |
Stable tag: trunk
|
9 |
License: GPLv2 or later
|
10 |
|
187 |
|
188 |
== Upgrade Notice ==
|
189 |
|
190 |
+
= 2.5.4 =
|
191 |
+
Fix - Code Improvements
|
192 |
+
Fix - Several Bug Fixes
|
193 |
+
Fix - Role issue reported by handjes
|
194 |
+
|
195 |
= 2.5.3 =
|
196 |
Fix - Security Fixes
|
197 |
|
272 |
|
273 |
== Changelog ==
|
274 |
|
275 |
+
= 2.5.4 =
|
276 |
+
Fix - Code Improvements
|
277 |
+
Fix - Several Bug Fixes
|
278 |
+
Fix - Role issue reported by handjes
|
279 |
+
|
280 |
= 2.5.3 =
|
281 |
Fix - Security Fixes
|
282 |
|