Site Offline Or Coming Soon Or Maintenance Mode - Version 1.1.3

Version Description

  • minor bug resolved.
Download this release

Release Info

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

Code changes from version 1.1.2 to 1.1.3

assets/images/icon-show.png ADDED
Binary file
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.0</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.3</span>
29
  </div>
30
  <div class="col-md-8">
31
  <div class="sahu-wp-panel">
backend/sidebar.php CHANGED
@@ -38,29 +38,7 @@ if ( ! defined( 'ABSPATH' ) ) exit;
38
  </div>
39
 
40
 
41
- <div class="panel panel-default" style="border:2px solid #525052;">
42
- <div class="panel-heading" role="tab" id="headingOne">
43
- <h4 class="panel-title">
44
- <?php _e('Rate Us ','SAHU_SO_TEXT_DOMAIN'); ?>
45
-
46
- </h4>
47
- </div>
48
- <div id="collapseOne" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="headingOne">
49
- <div class="panel-body">
50
 
51
-
52
- <h5 class="rate-desc">Show us some love, If you like our product then please give us some valuable feedback on wordpress</h5>
53
- <a href="https://wordpress.org/support/plugin/site-offline/reviews/" target="_blank" class="button button-primary button-hero "><span class="dashicons dashicons-star-filled rate-star"></span>
54
- <span class="dashicons dashicons-star-filled rate-star"></span>
55
- <span class="dashicons dashicons-star-filled rate-star"></span>
56
- <span class="dashicons dashicons-star-filled rate-star"></span>
57
- <span class="dashicons dashicons-star-filled rate-star"></span> RATE HERE
58
- </a>
59
-
60
-
61
- </div>
62
- </div>
63
- </div>
64
 
65
  <div class="panel panel-default" style="border:2px solid #525052;">
66
  <div class="panel-heading" role="tab" id="headingOne">
38
  </div>
39
 
40
 
 
 
 
 
 
 
 
 
 
41
 
 
 
 
 
 
 
 
 
 
 
 
 
 
42
 
43
  <div class="panel panel-default" style="border:2px solid #525052;">
44
  <div class="panel-heading" role="tab" id="headingOne">
functions/script.php CHANGED
@@ -31,4 +31,95 @@ function sahu_site_offline_wp_script()
31
  wp_enqueue_script('sahu_so-dialogFx',SAHU_SO_PLUGIN_URL.'assets/js/dialog/dialogFx.js');
32
 
33
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
34
  ?>
31
  wp_enqueue_script('sahu_so-dialogFx',SAHU_SO_PLUGIN_URL.'assets/js/dialog/dialogFx.js');
32
 
33
  }
34
+ add_action( 'admin_notices', 'wpsm_siteoff_line_review' );
35
+ function wpsm_siteoff_line_review() {
36
+
37
+ // Verify that we can do a check for reviews.
38
+ $review = get_option( 'wpsm_siteoff_line_review' );
39
+ $time = time();
40
+ $load = false;
41
+ if ( ! $review ) {
42
+ $review = array(
43
+ 'time' => $time,
44
+ 'dismissed' => false
45
+ );
46
+ add_option('wpsm_siteoff_line_review', $review);
47
+ //$load = true;
48
+ } else {
49
+ // Check if it has been dismissed or not.
50
+ if ( (isset( $review['dismissed'] ) && ! $review['dismissed']) && (isset( $review['time'] ) && (($review['time'] + (DAY_IN_SECONDS * 2)) <= $time)) ) {
51
+ $load = true;
52
+ }
53
+ }
54
+ // If we cannot load, return early.
55
+ if ( ! $load ) {
56
+ return;
57
+ }
58
+
59
+ // We have a candidate! Output a review message.
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>
67
+ <p style="font-size:18px;">
68
+ <a style="color: #fff;background: #ef4238;padding: 3px 11px 7px 11px;border-radius: 4px;text-decoration:none" href="https://wordpress.org/support/plugin/site-offline/reviews/?filter=5#new-post" class="wpsm-siteoff-line-dismiss-review-notice wpsm-siteoff-line-review-out" target="_blank" rel="noopener">Rate the plugin</a>&nbsp; &nbsp;
69
+ <a style="color: #fff;background: #27d63c;padding: 3px 11px 7px 11px;border-radius: 4px;text-decoration:none" href="#" class="wpsm-siteoff-line-dismiss-review-notice wpsm-rate-later" target="_self" rel="noopener"><?php _e( 'Nope, maybe later', '' ); ?></a>&nbsp; &nbsp;
70
+ <a style="color: #fff;background: #31a3dd;padding: 3px 11px 7px 11px;border-radius: 4px;text-decoration:none" href="#" class="wpsm-siteoff-line-dismiss-review-notice wpsm-rated" target="_self" rel="noopener"><?php _e( 'I already did', '' ); ?></a>
71
+ </p>
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
+ }
79
+ if ( $(this).hasClass('wpsm-rate-later') ) {
80
+ var wpsm_rate_data_val = "2";
81
+ event.preventDefault();
82
+ }
83
+ if ( $(this).hasClass('wpsm-rated') ) {
84
+ var wpsm_rate_data_val = "3";
85
+ event.preventDefault();
86
+ }
87
+
88
+ $.post( ajaxurl, {
89
+ action: 'wpsm_siteoff_line_dismiss_review',
90
+ wpsm_rate_data_siteoff_line : wpsm_rate_data_val
91
+ });
92
+
93
+ $('.wpsm-siteoff-line-review-notice').hide();
94
+ //location.reload();
95
+ });
96
+ });
97
+ </script>
98
+ <?php
99
+ }
100
+
101
+ add_action( 'wp_ajax_wpsm_siteoff_line_dismiss_review', 'wpsm_siteoff_line_dismiss_review' );
102
+ function wpsm_siteoff_line_dismiss_review() {
103
+ if ( ! $review ) {
104
+ $review = array();
105
+ }
106
+
107
+ if($_POST['wpsm_rate_data_siteoff_line']=="1"){
108
+ $review['time'] = time();
109
+ $review['dismissed'] = false;
110
+
111
+ }
112
+ if($_POST['wpsm_rate_data_siteoff_line']=="2"){
113
+ $review['time'] = time();
114
+ $review['dismissed'] = false;
115
+
116
+ }
117
+ if($_POST['wpsm_rate_data_siteoff_line']=="3"){
118
+ $review['time'] = time();
119
+ $review['dismissed'] = true;
120
+
121
+ }
122
+ update_option( 'wpsm_siteoff_line_review', $review );
123
+ die;
124
+ }
125
  ?>
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.1
7
- Stable tag: 1.1.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -124,6 +124,9 @@ Please use WordPress support forum to ask any query regarding any issue.
124
 
125
  == Changelog ==
126
 
 
 
 
127
  = 1.1.2 =
128
  * minor css issue reolved.
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.2
7
+ Stable tag: 1.1.3
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.3 =
128
+ * minor bug resolved.
129
+
130
  = 1.1.2 =
131
  * minor css issue reolved.
132
 
site-offline.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /**
3
  * Plugin Name: Site Offline
4
- * Version: 1.1.2
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.3
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