Site Offline Or Coming Soon Or Maintenance Mode - Version 1.1.7

Version Description

  • Resolved Notice Button Issue
Download this release

Release Info

Developer chandrashekharsahu
Plugin Icon 128x128 Site Offline Or Coming Soon Or Maintenance Mode
Version 1.1.7
Comparing to
See all releases

Code changes from version 1.1.6 to 1.1.7

Files changed (4) hide show
  1. backend/content.php +1 -1
  2. functions/script.php +17 -2
  3. readme.txt +6 -2
  4. site-offline.php +1 -1
backend/content.php CHANGED
@@ -25,7 +25,7 @@ if ( ! defined( 'ABSPATH' ) ) exit;
25
  font-weight: 400;
26
  display: inline-block;
27
  letter-spacing: 0.02em;
28
- margin-right: 10px;">Site Offline </h2><span style="font-size:20px">Version 1.1.3</span>
29
  </div>
30
  <div class="col-md-8">
31
  <div class="sahu-wp-panel">
25
  font-weight: 400;
26
  display: inline-block;
27
  letter-spacing: 0.02em;
28
+ margin-right: 10px;">Site Offline </h2><span style="font-size:20px">Version 1.1.7</span>
29
  </div>
30
  <div class="col-md-8">
31
  <div class="sahu-wp-panel">
functions/script.php CHANGED
@@ -60,7 +60,7 @@ function wpsm_siteoff_line_review() {
60
  ?>
61
  <div class="notice notice-info is-dismissible wpsm-siteoff-line-review-notice">
62
  <div style="float:left;margin-right:10px;margin-bottom:5px;">
63
- <img style="width:100%;width: 150px;height: auto;" src="<?php echo SAHU_SO_PLUGIN_URL.'assets/images/icon-show.png'; ?>" />
64
  </div>
65
  <p style="font-size:17px;">'Hi! We saw you have been using <strong>Site Offline plugin</strong> for a few days and wanted to ask for your help to <strong>make the plugin better</strong>.We just need a minute of your time to rate the plugin. Thank you!</p>
66
  <p style="font-size:17px;"><strong><?php _e( '~ Chandra Shekhar Sahu', '' ); ?></strong></p>
@@ -72,7 +72,7 @@ function wpsm_siteoff_line_review() {
72
  </div>
73
  <script type="text/javascript">
74
  jQuery(document).ready( function($) {
75
- $(document).on('click', '.wpsm-siteoff-line-dismiss-review-notice, .wpsm-siteoff-line-dismiss-notice .notice-dismiss', function( event ) {
76
  if ( $(this).hasClass('wpsm-siteoff-line-review-out') ) {
77
  var wpsm_rate_data_val = "1";
78
  }
@@ -93,6 +93,21 @@ function wpsm_siteoff_line_review() {
93
  $('.wpsm-siteoff-line-review-notice').hide();
94
  //location.reload();
95
  });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
96
  });
97
  </script>
98
  <?php
60
  ?>
61
  <div class="notice notice-info is-dismissible wpsm-siteoff-line-review-notice">
62
  <div style="float:left;margin-right:10px;margin-bottom:5px;">
63
+ <img style="width:100%;width: 100px;height: auto;" src="<?php echo SAHU_SO_PLUGIN_URL.'assets/images/icon-show.png'; ?>" />
64
  </div>
65
  <p style="font-size:17px;">'Hi! We saw you have been using <strong>Site Offline plugin</strong> for a few days and wanted to ask for your help to <strong>make the plugin better</strong>.We just need a minute of your time to rate the plugin. Thank you!</p>
66
  <p style="font-size:17px;"><strong><?php _e( '~ Chandra Shekhar Sahu', '' ); ?></strong></p>
72
  </div>
73
  <script type="text/javascript">
74
  jQuery(document).ready( function($) {
75
+ $(document).on('click', '.wpsm-siteoff-line-dismiss-review-notice', function( event ) {
76
  if ( $(this).hasClass('wpsm-siteoff-line-review-out') ) {
77
  var wpsm_rate_data_val = "1";
78
  }
93
  $('.wpsm-siteoff-line-review-notice').hide();
94
  //location.reload();
95
  });
96
+
97
+ $(document).on('click', ' .wpsm-siteoff-line-review-notice .notice-dismiss', function( event ) {
98
+ //alert("hello");
99
+ var wpsm_rate_data_val = "2";
100
+
101
+ $.post( ajaxurl, {
102
+ action: 'wpsm_siteoff_line_dismiss_review',
103
+ wpsm_rate_data_siteoff_line : wpsm_rate_data_val
104
+ });
105
+
106
+ $('.wpsm-siteoff-line-review-notice').hide();
107
+ //location.reload();
108
+ });
109
+
110
+
111
  });
112
  </script>
113
  <?php
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: chandrashekharsahu
3
  Donate link: http://fokatdeal.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
5
  Requires at least: 3.5.1
6
- Tested up to: 4.7.4
7
- Stable tag: 1.1.6
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -124,6 +124,10 @@ Please use WordPress support forum to ask any query regarding any issue.
124
 
125
  == Changelog ==
126
 
 
 
 
 
127
  = 1.1.6 =
128
  * Compatible with wordpress 4.7.4
129
 
3
  Donate link: http://fokatdeal.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
5
  Requires at least: 3.5.1
6
+ Tested up to: 4.7.5
7
+ Stable tag: 1.1.7
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
124
 
125
  == Changelog ==
126
 
127
+ = 1.1.7 =
128
+ * Resolved Notice Button Issue
129
+
130
+
131
  = 1.1.6 =
132
  * Compatible with wordpress 4.7.4
133
 
site-offline.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /**
3
  * Plugin Name: Site Offline
4
- * Version: 1.1.6
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.fokatdeal.com
1
  <?php
2
  /**
3
  * Plugin Name: Site Offline
4
+ * Version: 1.1.7
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.fokatdeal.com