EZP Coming Soon Page - Version 1.0.3

Version Description

  • Coming soon indication more prominant - now in admin bar
  • Small admin screen UI tweaks
Download this release

Release Info

Developer bobriley
Plugin Icon 128x128 EZP Coming Soon Page
Version 1.0.3
Comparing to
See all releases

Code changes from version 1.0.2 to 1.0.3

classes/Utilities/class-ezp-cs-utility.php CHANGED
@@ -104,15 +104,15 @@ if (!class_exists('EZP_CS_Utility')) {
104
  return sprintf('%04X%04X-%04X-%04X-%04X-%04X%04X%04X', mt_rand(0, 65535), mt_rand(0, 65535), mt_rand(0, 65535), mt_rand(16384, 20479), mt_rand(32768, 49151), mt_rand(0, 65535), mt_rand(0, 65535), mt_rand(0, 65535));
105
  }
106
 
107
- public static function display_admin_notice($coming_soon_on) {
108
- if ($coming_soon_on) {
109
-
110
- echo "<div class='error'><a href='" . admin_url() . "admin.php?page=" . EZP_CS_Constants::$SETTINGS_SUBMENU_SLUG . "'>" . self::__("Coming Soon is On") . "</a></div>";
111
- } else {
112
-
113
- echo "<div style='text-decoration:underline' class='updated'><a href='" . admin_url() . "admin.php?page=" . EZP_CS_Constants::$SETTINGS_SUBMENU_SLUG . "'>" . self::__("Coming Soon is Off") . "</a></div>";
114
- }
115
- }
116
 
117
  /* -- Option Field Help Methods -- */
118
 
104
  return sprintf('%04X%04X-%04X-%04X-%04X-%04X%04X%04X', mt_rand(0, 65535), mt_rand(0, 65535), mt_rand(0, 65535), mt_rand(16384, 20479), mt_rand(32768, 49151), mt_rand(0, 65535), mt_rand(0, 65535), mt_rand(0, 65535));
105
  }
106
 
107
+ // public static function display_admin_notice($coming_soon_on) {
108
+ // if ($coming_soon_on) {
109
+ //
110
+ // echo "<div class='error'><a href='" . admin_url() . "admin.php?page=" . EZP_CS_Constants::$SETTINGS_SUBMENU_SLUG . "'>" . self::__("Coming Soon is On") . "</a></div>";
111
+ // } else {
112
+ //
113
+ // echo "<div style='text-decoration:underline' class='updated'><a href='" . admin_url() . "admin.php?page=" . EZP_CS_Constants::$SETTINGS_SUBMENU_SLUG . "'>" . self::__("Coming Soon is Off") . "</a></div>";
114
+ // }
115
+ // }
116
 
117
  /* -- Option Field Help Methods -- */
118
 
classes/class-ezp-cs-constants.php CHANGED
@@ -32,7 +32,7 @@ if (!class_exists('EZP_CS_Constants')) {
32
  const COMPOUND_OPTION_NAME = 'easy-pie-cs-options';
33
  const MAIN_PAGE_KEY = 'easy-pie-cs-main-page';
34
  const PLUGIN_SLUG = 'easy-pie-coming-soon';
35
- const PLUGIN_VERSION = "1.0.2"; // RSR Version
36
 
37
 
38
 
32
  const COMPOUND_OPTION_NAME = 'easy-pie-cs-options';
33
  const MAIN_PAGE_KEY = 'easy-pie-cs-main-page';
34
  const PLUGIN_SLUG = 'easy-pie-coming-soon';
35
+ const PLUGIN_VERSION = "1.0.3"; // RSR Version
36
 
37
 
38
 
classes/class-ezp-cs.php CHANGED
@@ -51,6 +51,7 @@ if (!class_exists('EZP_CS'))
51
  parent::__construct(EZP_CS_Constants::PLUGIN_SLUG);
52
 
53
  $this->add_class_action('plugins_loaded', 'plugins_loaded_handler');
 
54
 
55
  $entity_table_present = EZP_CS_Query_Utility::is_table_present(EZP_CS_JSON_Entity_Base::DEFAULT_TABLE_NAME);
56
 
@@ -77,13 +78,23 @@ if (!class_exists('EZP_CS'))
77
  if (is_admin() && !$in_preview)
78
  {
79
 
80
- //EZP_CS_Utility::debug("admin true");
81
-
82
- if ($coming_soon_mode_on)
83
- {
 
 
84
 
85
- $this->add_class_action("admin_notices", "display_admin_notice");
86
  }
 
 
 
 
 
 
 
 
87
 
88
  //- Hook Handlers
89
  register_activation_hook($plugin_file_path, array('EZP_CS', 'activate'));
@@ -114,6 +125,17 @@ if (!class_exists('EZP_CS'))
114
  }
115
  }
116
 
 
 
 
 
 
 
 
 
 
 
 
117
  function ws_export_all_subscribers()
118
  {
119
 
@@ -295,24 +317,24 @@ if (!class_exists('EZP_CS'))
295
  return add_filter($tag, array($this, $method_name));
296
  }
297
 
298
- public function display_admin_notice()
299
- {
300
-
301
- $display_notice = true;
302
-
303
- if (isset($_REQUEST['page']) && (strpos($_REQUEST['page'], EZP_CS_Constants::PLUGIN_SLUG) === 0))
304
- {
305
-
306
- $display_notice = false;
307
- }
308
-
309
- if ($display_notice)
310
- {
311
-
312
- //echo "<div class='error'><a href='" . admin_url() . "admin.php?page=" . EZP_CS_Constants::$SETTINGS_SUBMENU_SLUG . "'>" . $this->__("Coming Soon is On") . "</a></div>";
313
- EZP_CS_Utility::display_admin_notice(true);
314
- }
315
- }
316
 
317
  /**
318
  * Display the maintenance page
@@ -490,9 +512,16 @@ if (!class_exists('EZP_CS'))
490
  $this->upgrade_processing();
491
  }
492
 
 
 
 
 
 
 
 
 
493
  public function init_localization()
494
  {
495
-
496
  load_plugin_textdomain(EZP_CS_Constants::PLUGIN_SLUG, false, EZP_CS_Constants::PLUGIN_SLUG . '/languages/');
497
  }
498
 
51
  parent::__construct(EZP_CS_Constants::PLUGIN_SLUG);
52
 
53
  $this->add_class_action('plugins_loaded', 'plugins_loaded_handler');
54
+ $this->add_class_action('admin_enqueue_scripts', 'admin_enqueue_scripts_handler');
55
 
56
  $entity_table_present = EZP_CS_Query_Utility::is_table_present(EZP_CS_JSON_Entity_Base::DEFAULT_TABLE_NAME);
57
 
78
  if (is_admin() && !$in_preview)
79
  {
80
 
81
+ if (isset($_GET['page']) && (strpos($_GET['page'], EZP_CS_Constants::PLUGIN_SLUG) === 0) && isset($_POST['coming_soon_mode_on']))
82
+ {
83
+ $coming_soon_mode_on = (bool)$_POST['coming_soon_mode_on'];
84
+ }
85
+
86
+ if ($coming_soon_mode_on) {
87
 
88
+ $this->add_class_action('admin_bar_menu', 'display_coming_soon_admin_bar_alert');
89
  }
90
+
91
+ //EZP_CS_Utility::debug("admin true");
92
+
93
+ // if ($coming_soon_mode_on)
94
+ // {
95
+ //
96
+ // $this->add_class_action("admin_notices", "display_admin_notice");
97
+ // }
98
 
99
  //- Hook Handlers
100
  register_activation_hook($plugin_file_path, array('EZP_CS', 'activate'));
125
  }
126
  }
127
 
128
+ public function display_coming_soon_admin_bar_alert($wp_admin_bar)
129
+ {
130
+ $wp_admin_bar->add_node( array(
131
+ 'id' => 'easy-pie-cs-on',
132
+ 'href' => admin_url() . "admin.php?page=" . EZP_CS_Constants::$SETTINGS_SUBMENU_SLUG,
133
+ 'parent' => 'top-secondary',
134
+ 'title' => EZP_CS_Utility::__('Coming Soon On'),
135
+ 'meta' => array( 'class' => 'easy-pie-cs-on' ),
136
+ ) );
137
+ }
138
+
139
  function ws_export_all_subscribers()
140
  {
141
 
317
  return add_filter($tag, array($this, $method_name));
318
  }
319
 
320
+ // public function display_admin_notice()
321
+ // {
322
+ //
323
+ // $display_notice = true;
324
+ //
325
+ // if (isset($_REQUEST['page']) && (strpos($_REQUEST['page'], EZP_CS_Constants::PLUGIN_SLUG) === 0))
326
+ // {
327
+ //
328
+ // $display_notice = false;
329
+ // }
330
+ //
331
+ // if ($display_notice)
332
+ // {
333
+ //
334
+ // //echo "<div class='error'><a href='" . admin_url() . "admin.php?page=" . EZP_CS_Constants::$SETTINGS_SUBMENU_SLUG . "'>" . $this->__("Coming Soon is On") . "</a></div>";
335
+ // EZP_CS_Utility::display_admin_notice(true);
336
+ // }
337
+ // }
338
 
339
  /**
340
  * Display the maintenance page
512
  $this->upgrade_processing();
513
  }
514
 
515
+ public function admin_enqueue_scripts_handler() {
516
+
517
+ $styleRoot = plugins_url() . "/" . EZP_CS_Constants::PLUGIN_SLUG . "/styles";
518
+
519
+ wp_register_style('easy-pie-cs-common-admin-styles.css', $styleRoot . '/easy-pie-cs-common-admin-styles.css', array(), EZP_CS_Constants::PLUGIN_VERSION);
520
+ wp_enqueue_style('easy-pie-cs-common-admin-styles.css');
521
+ }
522
+
523
  public function init_localization()
524
  {
 
525
  load_plugin_textdomain(EZP_CS_Constants::PLUGIN_SLUG, false, EZP_CS_Constants::PLUGIN_SLUG . '/languages/');
526
  }
527
 
easy-pie-coming-soon.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: EZP Coming Soon Page
4
  Plugin URI: http://easypiewp.com/easy-pie-coming-soon-faq/
5
  Description: Let people know that your site is 'coming soon'. Visitors can submit their email addresses for future notification.
6
- Version: 1.0.2
7
  Author: Bob Riley
8
  Author URI: http://www.easypiewp.com
9
  Text Domain: easy-pie-coming-soon
3
  Plugin Name: EZP Coming Soon Page
4
  Plugin URI: http://easypiewp.com/easy-pie-coming-soon-faq/
5
  Description: Let people know that your site is 'coming soon'. Visitors can submit their email addresses for future notification.
6
+ Version: 1.0.3
7
  Author: Bob Riley
8
  Author URI: http://www.easypiewp.com
9
  Text Domain: easy-pie-coming-soon
pages/page-coming-soon-page-elite.php CHANGED
@@ -1,88 +1,137 @@
1
- <link href='https://fonts.googleapis.com/css?family=Dancing+Script' rel='stylesheet' type='text/css'/>
2
  <style>
3
- th i { margin-right: 7px };
4
- #post-1470 { background-color: rgb(238, 238, 238);}
5
- h1.entry-title { display:none; }
6
- table.cspe-pricing td { vertical-align:top; height: 20px;padding-left: 23px; width: 220px; }
7
- table.cspe-pricing th { text-align:left; font-size: 2em; font-weight:bold; height: 20px;padding: 5px; width: 200px; }
8
- table.cspe-pricing { margin-left:auto; margin-right: auto; }
9
- .elite { color:rgb(71, 166, 70); font-style:italic}
10
- li.elite { font-weight:bold; }
11
- #screenshot-table { margin-bottom:20px; margin-left:auto; margin-right:auto}
12
- #screenshot-table tr td { text-align:center; padding:10px; }
13
- /*#screenshot-table img { width:70%; }*/
14
- .stylebox { background-color:white; border:1px solid #ddd;-webkit-box-shadow: 0 10px 6px -6px #777; -moz-box-shadow: 0 10px 6px -6px #777; box-shadow: 0 10px 6px -6px #777; padding: 19px; margin-top: 46px;width:80%}
15
- .box-heading { font-size:2.5em; text-align:center;}
16
- .cspe-button { width:103px; margin-left:auto; margin-right:auto; display:block; display:block;text-decoration:none!important; text-align:center; padding:20px; font-size:1.6em; background-color:red; border-radius:5px;-webkit-box-shadow: 0 10px 6px -6px #777; -moz-box-shadow: 0 10px 6px -6px #777; box-shadow: 0 10px 6px -6px #777;}
17
- .cspe-button, .cspe-button:hover, .cspe-button:active, .cspe-button:visited { color:white!important;}
18
- table.cspe-pricing tr td ul { list-style-type: circle!important;}
19
- table.cspe-pricing tr td ul li { line-height: 2em!important;}
 
 
 
 
 
 
20
  </style>
21
- <div class="stylebox" >
22
- <p style="font-size:1.5em;text-align:center;margin-bottom:10px">The Best Coming Soon Plugin on WordPress.org has been transformed.</p>
23
- <p style="font-size:1.5em;text-align:center;margin-bottom:0px;">Introducing...</p>
24
- <p style="text-align:center;font-size:4.5em; margin-top:-15px; margin-bottom:-5px;font-family: 'Dancing Script', cursive;color:rgb(65, 123, 64)">Coming Soon Page: Elite!</p>
25
- <div>
26
- <table id="screenshot-table">
27
- <tr>
28
- <td><img src="<?php echo EZP_CS_Utility::$PLUGIN_URL . '/images/cspe-screenshot-1a-1024x616.jpg'; ?>" alt="cspe-screenshot-1a" width="600" height="361" class="alignnone size-large wp-image-1569" /></td>
29
- </tr>
30
- </table>
31
- </div>
32
- <table class="cspe-pricing" style="margin-bottom:50px; margin-top:65px;">
33
- <tr>
34
- <th style="color: rgb(232, 0, 0);"><i class="fa fa-envelope"></i>Emails</th>
35
- <th style="color: #3b5998;"><i class="fa fa-facebook-square"></i>Social</th>
36
- <th style="color: rgb(186, 186, 36)"><i class="fa fa-eye"></i>Visuals</th>
37
- <th style="color: rgb(12, 158, 25);"><i class="fa fa-bolt"></i>Experience</th>
38
- </tr>
39
- <tr>
40
- <td>
41
- <ul>
42
- <li>Collect emails</li>
43
- <li>CSV export of emails</li>
44
- <li class="elite">MailChimp AutoSync</li>
45
- </td>
46
- <td>
47
- <ul>
48
- <li>Facebook</li>
49
- <li>Twitter</li>
50
- <li>Google+</li>
51
- <li class="elite">Instagram</li>
52
- <li class="elite">LinkedIn</li>
53
- <li class="elite">Pinterest</li>
54
- <li class="elite">SoundCloud</li>
55
- <li class="elite">YouTube</li>
56
- </ul>
57
- </td>
58
- <td>
59
- <ul>
60
- <li>Fully Responsive</li>
61
- <li>CSS customizable</li>
62
- <li>Add your own logo</li>
63
- <li>Use built-in backgrounds or your own</li>
64
- <li class="elite">New built-in backgrounds</li>
65
- <li class="elite">Google Fonts (soon)</li>
66
- </ul>
67
- </td>
68
- <td>
69
- <ul>
70
- <li>Mega-simple</li>
71
- <li>Countdown timer</li>
72
- <li>No HTML required</li>
73
- <li>Simple "Coming soon on" indicator</li>
74
- <li>Preview from Admin panel</li>
75
- <li>Choose 503 or 200 HTTP status</li>
76
- <li>Selectively allow viewing certain URLs</li>
77
- <li class="elite">Sends you an email when someone subscribes</li>
78
- <li class="elite">Advanced Access System: Give individuals or groups independent site access.</li>
79
- </ul>
80
- </td>
81
- </tr>
82
- </table>
83
-
84
-
85
- <p class="box-heading"><a target="_blank" style="color: rgb(236, 36, 36); margin-top:45px; margin-bottom:24px;" href="http://easypiewp.com">Get Elite Now! *</a></p>
86
- <p style="margin-top:50px">*Coming Soon Page: Elite is under active development so product may have more features than indicated above.</p>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
87
  </div>
88
-
 
 
 
 
 
 
1
+ <link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Roboto">
2
  <style>
3
+ /*================================================
4
+ PAGE-SUPPORT:*/
5
+ .cspe-pro-area h1 { font-family: 'Roboto', sans-serif; font-size: 2.8rem}
6
+
7
+ div.cspe-pro-area {
8
+ padding:10px 70px; max-width:750px; width:90%; margin:auto; text-align: center;
9
+ background: #fff; border-radius:20px;
10
+ box-shadow: inset 0px 0px 67px 20px rgba(241,241,241,1);
11
+ }
12
+ div.cspe-compare-area {width:400px; float:left; border:1px solid #dfdfdf; border-radius:4px; margin:10px; line-height:18px;box-shadow: 0 8px 6px -6px #ccc;}
13
+ div.feature {background: #fff; padding:15px; margin: 2px; text-align: center; min-height: 20px}
14
+ div.feature a {font-size:18px; font-weight: bold;}
15
+ div.cspe-compare-area div.feature div.info {display:none; padding:7px 7px 5px 7px; font-style: italic; color: #555; font-size: 14px}
16
+ div.cspe-gopro-header {text-align: center; margin: 5px 0 15px 0; font-size:18px; line-height: 30px}
17
+ div.cspe-gopro-header b {font-size: 35px}
18
+ a.cspe-check-it-btn {box-shadow: 5px 5px 5px 0px #999 !important; font-size: 20px !important; height:45px !important; padding:7px 30px 0 30px !important;}
19
+
20
+ #comparison-table { margin-top:25px; border-spacing: 0px; width: 100%}
21
+ #comparison-table th { color: #E21906;}
22
+ #comparison-table td, #comparison-table th { font-size: 1.2rem; padding: 12px; }
23
+ #comparison-table .feature-column { text-align: left; width: 46%}
24
+ #comparison-table .check-column { text-align: center; width: 27% }
25
+ #comparison-table tr:nth-child(2n+2) {background-color: #f6f6f6; }
26
  </style>
27
+
28
+ <script type="text/javascript">var switchTo5x = true;</script>
29
+ <script type="text/javascript" src="https://ws.sharethis.com/button/buttons.js"></script>
30
+ <script type="text/javascript">stLight.options({publisher: "1a44d92e-2a78-42c3-a32e-414f78f9f484"});</script>
31
+
32
+ <div class="cspe-pro-area">
33
+
34
+ <div>
35
+ <h1 style="margin-top:20px">
36
+ Coming Soon Page Elite
37
+ </h1>
38
+ <h3 style="margin-top:10px; font-size:18px; font-style: italic; color:gray">
39
+ <?php EZP_CS_Utility::_e('Make your page look even better, ') ?>
40
+ <?php EZP_CS_Utility::_e('collect more emails and get more control over access.') ?>
41
+ </h3>
42
+ </div>
43
+
44
+ <table id="comparison-table">
45
+ <tr>
46
+ <th class="feature-column">
47
+ Feature
48
+ </th>
49
+ <th class="check-column">
50
+ Free
51
+ </th>
52
+ <th class="check-column">
53
+ Elite
54
+ </th>
55
+ </tr>
56
+ <tr>
57
+ <td class="feature-column">Collect Emails</td>
58
+ <td class="check-column"><i class="fa fa-check"></i></td>
59
+ <td class="check-column"><i class="fa fa-check"></i></td>
60
+ </tr>
61
+ <tr>
62
+ <td class="feature-column">Standard Social Icons</td>
63
+ <td class="check-column"><i class="fa fa-check"></i></td>
64
+ <td class="check-column"><i class="fa fa-check"></i></td>
65
+ </tr>
66
+ <tr>
67
+ <td class="feature-column">Fully Responsive</td>
68
+ <td class="check-column"><i class="fa fa-check"></i></td>
69
+ <td class="check-column"><i class="fa fa-check"></i></td>
70
+ </tr>
71
+ <tr>
72
+ <td class="feature-column">Standard Fonts</td>
73
+ <td class="check-column"><i class="fa fa-check"></i></td>
74
+ <td class="check-column"><i class="fa fa-check"></i></td>
75
+ </tr>
76
+ <tr>
77
+ <td class="feature-column">Countdown Timer</td>
78
+ <td class="check-column"><i class="fa fa-check"></i></td>
79
+ <td class="check-column"><i class="fa fa-check"></i></td>
80
+ </tr>
81
+ <tr>
82
+ <td class="feature-column">Fullscreen Video</td>
83
+ <td class="check-column"></td>
84
+ <td class="check-column"><i class="fa fa-check"></i></td>
85
+ </tr>
86
+ <tr>
87
+ <td class="feature-column">AutoSync to MailChimp</td>
88
+ <td class="check-column"></td>
89
+ <td class="check-column"><i class="fa fa-check"></i></td>
90
+ </tr>
91
+ <tr>
92
+ <td class="feature-column">Google Fonts & Effects</td>
93
+ <td class="check-column"></td>
94
+ <td class="check-column"><i class="fa fa-check"></i></td>
95
+ </tr>
96
+ <tr>
97
+ <td class="feature-column">Access by Keyed URL</td>
98
+ <td class="check-column"></td>
99
+ <td class="check-column"><i class="fa fa-check"></i></td>
100
+ </tr>
101
+ <tr>
102
+ <td class="feature-column">Access by IP</td>
103
+ <td class="check-column"></td>
104
+ <td class="check-column"><i class="fa fa-check"></i></td>
105
+ </tr>
106
+ <tr>
107
+ <td class="feature-column">Disable on Countdown</td>
108
+ <td class="check-column"></td>
109
+ <td class="check-column"><i class="fa fa-check"></i></td>
110
+ </tr>
111
+ <tr>
112
+ <td class="feature-column">Email on Subscribe</td>
113
+ <td class="check-column"></td>
114
+ <td class="check-column"><i class="fa fa-check"></i></td>
115
+ </tr>
116
+ <tr>
117
+ <td class="feature-column">Extra Social Icons</td>
118
+ <td class="check-column"></td>
119
+ <td class="check-column"><i class="fa fa-check"></i></td>
120
+ </tr>
121
+ </table>
122
+
123
+ <br style="clear:both" />
124
+ <p style="text-align:center">
125
+ <a href="http://easypiewp.com/" target="_blank" class="button button-primary button-large cspe-check-it-btn" >
126
+ <?php EZP_CS_Utility::_e('Check It Out!') ?>
127
+ </a>
128
+ </p>
129
+ <br/><br/>
130
  </div>
131
+ <br/><br/>
132
+
133
+ <script type="text/javascript">
134
+ jQuery(document).ready(function ($) {
135
+
136
+ });
137
+ </script>
pages/page-options-content-tab.php CHANGED
@@ -35,22 +35,24 @@ $config = EZP_CS_Config_Entity::get_by_id($global->config_index);
35
 
36
  $error_string = "";
37
 
38
- if (isset($_POST['action']) && $_POST['action'] == 'save') {
 
39
 
40
- check_admin_referer('easy-pie-coming-soon-save-content');
41
 
42
- // Artificially set the bools since they aren't part of the postback
43
- // TODO
44
- $error_string = $content->set_post_variables($_POST);
45
 
46
- if ($error_string == "") {
 
47
 
48
- $action_updated = $content->save();
49
- }
50
  }
51
  ?>
52
  <script type="text/javascript">
53
- ezp_cs_datepicker_date_format = "<?php echo EZP_CS_Render_Utility::get_datepicker_date_format(); ?>";
54
  </script>
55
 
56
  <?php wp_nonce_field('easy-pie-coming-soon-save-content'); ?>
@@ -60,12 +62,12 @@ if (isset($_POST['action']) && $_POST['action'] == 'save') {
60
  //EZP_CS_Utility::display_admin_notice($config->coming_soon_mode_on);
61
 
62
  if ($error_string != "") :
63
- ?>
64
- <div id="message" class="error below-h2"><p><?php echo EZP_CS_Utility::__('Errors present:') . "<br/> $error_string" ?></p></div>
65
  <?php endif; ?>
66
 
67
  <?php if ($action_updated) : ?>
68
- <div id="message" class="updated below-h2"><p><span><?php echo EZP_CS_Utility::__('Settings Saved.'); ?></span><strong style="margin-left:7px;"><?php echo ' ' . EZP_CS_Utility::__('If you have a caching plugin be sure to clear it.'); ?></strong></p></div>
69
  <?php endif; ?>
70
 
71
  <div class="postbox" style="margin-top:12px;" >
@@ -74,7 +76,7 @@ if ($error_string != "") :
74
  <table class="form-table">
75
  <tr>
76
  <th scope="row">
77
- <?php echo EZP_CS_Utility::_e("Image") ?>
78
  </th>
79
  <td>
80
  <div class="compound-setting">
@@ -93,7 +95,7 @@ if ($error_string != "") :
93
  <table class="form-table">
94
  <tr>
95
  <th scope="row">
96
- <?php echo EZP_CS_Utility::_e("Title") ?>
97
  </th>
98
  <td>
99
  <div class="compound-setting">
@@ -111,7 +113,7 @@ if ($error_string != "") :
111
  <table class="form-table">
112
  <tr>
113
  <th scope="row">
114
- <?php echo EZP_CS_Utility::_e("Headline") ?>
115
  </th>
116
  <td>
117
  <div class="compound-setting">
@@ -121,7 +123,7 @@ if ($error_string != "") :
121
  </tr>
122
  <tr>
123
  <th scope="row">
124
- <?php echo EZP_CS_Utility::_e("Description") ?>
125
  </th>
126
  <td>
127
  <div class="compound-setting">
@@ -131,7 +133,7 @@ if ($error_string != "") :
131
  </tr>
132
  <tr>
133
  <th scope="row">
134
- <?php echo EZP_CS_Utility::_e("Disclaimer") ?>
135
  </th>
136
  <td>
137
  <div class="compound-setting">
@@ -141,7 +143,7 @@ if ($error_string != "") :
141
  </tr>
142
  <tr>
143
  <th scope="row">
144
- <?php echo EZP_CS_Utility::_e("Footer") ?>
145
  </th>
146
  <td>
147
  <div class="compound-setting">
@@ -159,7 +161,7 @@ if ($error_string != "") :
159
  <table class="form-table">
160
  <tr>
161
  <th scope="row">
162
- <?php echo EZP_CS_Utility::_e("Email Placeholder") ?>
163
  </th>
164
  <td>
165
  <div class="compound-setting">
@@ -169,7 +171,7 @@ if ($error_string != "") :
169
  </tr>
170
  <tr>
171
  <th scope="row">
172
- <?php echo EZP_CS_Utility::_e("Name Placeholder") ?>
173
  </th>
174
  <td>
175
  <div class="compound-setting">
@@ -179,7 +181,7 @@ if ($error_string != "") :
179
  </tr>
180
  <tr>
181
  <th scope="row">
182
- <?php echo EZP_CS_Utility::_e("Button") ?>
183
  </th>
184
  <td>
185
  <div class="compound-setting">
@@ -198,7 +200,7 @@ if ($error_string != "") :
198
  <table class="form-table">
199
  <tr>
200
  <th scope="row">
201
- <?php echo EZP_CS_Utility::_e("Headline") ?>
202
  </th>
203
  <td>
204
  <div class="compound-setting">
@@ -209,7 +211,7 @@ if ($error_string != "") :
209
 
210
  <tr>
211
  <th scope="row">
212
- <?php echo EZP_CS_Utility::_e("Text") ?>
213
  </th>
214
  <td>
215
  <div class="compound-setting">
@@ -227,7 +229,7 @@ if ($error_string != "") :
227
  <table class="form-table">
228
  <tr>
229
  <th scope="row">
230
- <?php echo EZP_CS_Utility::_e("Due Date") ?>
231
  </th>
232
  <td>
233
  <div class="compound-setting">
@@ -236,7 +238,11 @@ if ($error_string != "") :
236
  </div>
237
  </td>
238
  </tr>
239
-
 
 
 
 
240
 
241
  </table>
242
  </div></div>
35
 
36
  $error_string = "";
37
 
38
+ if (isset($_POST['action']) && $_POST['action'] == 'save')
39
+ {
40
 
41
+ check_admin_referer('easy-pie-coming-soon-save-content');
42
 
43
+ // Artificially set the bools since they aren't part of the postback
44
+ // TODO
45
+ $error_string = $content->set_post_variables($_POST);
46
 
47
+ if ($error_string == "")
48
+ {
49
 
50
+ $action_updated = $content->save();
51
+ }
52
  }
53
  ?>
54
  <script type="text/javascript">
55
+ ezp_cs_datepicker_date_format = "<?php echo EZP_CS_Render_Utility::get_datepicker_date_format(); ?>";
56
  </script>
57
 
58
  <?php wp_nonce_field('easy-pie-coming-soon-save-content'); ?>
62
  //EZP_CS_Utility::display_admin_notice($config->coming_soon_mode_on);
63
 
64
  if ($error_string != "") :
65
+ ?>
66
+ <div id="message" class="error below-h2"><p><?php echo EZP_CS_Utility::__('Errors present:') . "<br/> $error_string" ?></p></div>
67
  <?php endif; ?>
68
 
69
  <?php if ($action_updated) : ?>
70
+ <div id="message" class="updated below-h2"><p><span><?php echo EZP_CS_Utility::__('Settings Saved.'); ?></span><strong style="margin-left:7px;"><?php echo ' ' . EZP_CS_Utility::__('If you have a caching plugin be sure to clear it.'); ?></strong></p></div>
71
  <?php endif; ?>
72
 
73
  <div class="postbox" style="margin-top:12px;" >
76
  <table class="form-table">
77
  <tr>
78
  <th scope="row">
79
+ <?php echo EZP_CS_Utility::_e("Image") ?>
80
  </th>
81
  <td>
82
  <div class="compound-setting">
95
  <table class="form-table">
96
  <tr>
97
  <th scope="row">
98
+ <?php echo EZP_CS_Utility::_e("Title") ?>
99
  </th>
100
  <td>
101
  <div class="compound-setting">
113
  <table class="form-table">
114
  <tr>
115
  <th scope="row">
116
+ <?php echo EZP_CS_Utility::_e("Headline") ?>
117
  </th>
118
  <td>
119
  <div class="compound-setting">
123
  </tr>
124
  <tr>
125
  <th scope="row">
126
+ <?php echo EZP_CS_Utility::_e("Description") ?>
127
  </th>
128
  <td>
129
  <div class="compound-setting">
133
  </tr>
134
  <tr>
135
  <th scope="row">
136
+ <?php echo EZP_CS_Utility::_e("Disclaimer") ?>
137
  </th>
138
  <td>
139
  <div class="compound-setting">
143
  </tr>
144
  <tr>
145
  <th scope="row">
146
+ <?php echo EZP_CS_Utility::_e("Footer") ?>
147
  </th>
148
  <td>
149
  <div class="compound-setting">
161
  <table class="form-table">
162
  <tr>
163
  <th scope="row">
164
+ <?php echo EZP_CS_Utility::_e("Email Placeholder") ?>
165
  </th>
166
  <td>
167
  <div class="compound-setting">
171
  </tr>
172
  <tr>
173
  <th scope="row">
174
+ <?php echo EZP_CS_Utility::_e("Name Placeholder") ?>
175
  </th>
176
  <td>
177
  <div class="compound-setting">
181
  </tr>
182
  <tr>
183
  <th scope="row">
184
+ <?php echo EZP_CS_Utility::_e("Button") ?>
185
  </th>
186
  <td>
187
  <div class="compound-setting">
200
  <table class="form-table">
201
  <tr>
202
  <th scope="row">
203
+ <?php echo EZP_CS_Utility::_e("Headline") ?>
204
  </th>
205
  <td>
206
  <div class="compound-setting">
211
 
212
  <tr>
213
  <th scope="row">
214
+ <?php echo EZP_CS_Utility::_e("Text") ?>
215
  </th>
216
  <td>
217
  <div class="compound-setting">
229
  <table class="form-table">
230
  <tr>
231
  <th scope="row">
232
+ <?php echo EZP_CS_Utility::_e("Due Date") ?>
233
  </th>
234
  <td>
235
  <div class="compound-setting">
238
  </div>
239
  </td>
240
  </tr>
241
+ <tr>
242
+ <td style="padding-left:0; padding-bottom:0;" colspan="2">
243
+ <small>Autodisable page after countdown with <a style="color:#DC3232" href="http://easypiewp.com" target="_blank">Coming Soon Page Elite</a></small>
244
+ </td>
245
+ </tr>
246
 
247
  </table>
248
  </div></div>
pages/page-options-display-tab.php CHANGED
@@ -188,6 +188,11 @@ if ($error_string != "") :
188
  </div>
189
  </td>
190
  </tr>
 
 
 
 
 
191
  </table>
192
  </div>
193
  </div>
@@ -273,8 +278,18 @@ if ($error_string != "") :
273
  <tr>
274
  <?php EZP_CS_Display_Entity::display_font_field_row('Footer', 'text_footer', $display) ?>
275
  </tr>
 
 
 
 
 
 
 
 
 
 
276
  </table>
277
- <div><span class="description"><?php echo '*' . EZP_CS_Utility::__('Specify px or em for sizes'); ?></span></div>
278
  </div>
279
  </div>
280
 
188
  </div>
189
  </td>
190
  </tr>
191
+ <tr>
192
+ <td style="padding-left:0; padding-bottom:0;" colspan="2">
193
+ <small>Display fullscreen video with <a style="color:#DC3232" href="http://easypiewp.com" target="_blank">Coming Soon Page Elite</a></small>
194
+ </td>
195
+ </tr>
196
  </table>
197
  </div>
198
  </div>
278
  <tr>
279
  <?php EZP_CS_Display_Entity::display_font_field_row('Footer', 'text_footer', $display) ?>
280
  </tr>
281
+ <tr>
282
+ <td style="padding-left:0; padding-bottom:0;" colspan="2">
283
+ <div><span class="description"><?php echo '*' . EZP_CS_Utility::__('Specify px, rem or em for sizes'); ?></span></div>
284
+ </td>
285
+ </tr>
286
+ <tr>
287
+ <td style="padding-left:0; padding-bottom:0;" colspan="2">
288
+ <small>Google Fonts & Effects available in <a style="color:#DC3232" href="http://easypiewp.com" target="_blank">Coming Soon Page Elite</a></small>
289
+ </td>
290
+ </tr>
291
  </table>
292
+
293
  </div>
294
  </div>
295
 
pages/page-options-settings.php CHANGED
@@ -72,7 +72,7 @@
72
  <?php wp_nonce_field('easy-pie-coming-soon-save-settings'); ?>
73
  <input type="hidden" name="action" value="save"/>
74
  <?php
75
- EZP_CS_Utility::display_admin_notice($config->coming_soon_mode_on);
76
 
77
  if ($error_string != "") :
78
  ?>
@@ -186,7 +186,7 @@
186
  </tr>
187
  <tr>
188
  <td style="padding-left:0; padding-bottom:0;" colspan="2">
189
- <small>Get more social icons with <a style="color:red" href="http://easypiewp.com" target="_blank">Coming Soon Page Elite</a></small>
190
  </td>
191
  </tr>
192
  </table>
@@ -261,7 +261,7 @@
261
  </tr>
262
  <tr>
263
  <td style="padding-left:0; padding-bottom:0;" colspan="2">
264
- <small>Advanced Access Control available in <a style="color:red" href="http://easypiewp.com" target="_blank">Coming Soon Page Elite</a></small>
265
  </td>
266
  </tr>
267
  </table>
72
  <?php wp_nonce_field('easy-pie-coming-soon-save-settings'); ?>
73
  <input type="hidden" name="action" value="save"/>
74
  <?php
75
+ // EZP_CS_Utility::display_admin_notice($config->coming_soon_mode_on);
76
 
77
  if ($error_string != "") :
78
  ?>
186
  </tr>
187
  <tr>
188
  <td style="padding-left:0; padding-bottom:0;" colspan="2">
189
+ <small>Get more social icons with <a style="color:#DC3232" href="http://easypiewp.com" target="_blank">Coming Soon Page Elite</a></small>
190
  </td>
191
  </tr>
192
  </table>
261
  </tr>
262
  <tr>
263
  <td style="padding-left:0; padding-bottom:0;" colspan="2">
264
+ <small>Grant access by IP or keyed links with <a style="color:#DC3232" href="http://easypiewp.com" target="_blank">Coming Soon Page Elite</a></small>
265
  </td>
266
  </tr>
267
  </table>
pages/page-options.php CHANGED
@@ -57,7 +57,7 @@ if (isset($_GET['tab'])) {
57
 
58
  $config = EZP_CS_Config_Entity::get_by_id($global->config_index);
59
 
60
- EZP_CS_Utility::display_admin_notice($config->coming_soon_mode_on);
61
  ?>
62
 
63
  <div id="easypie-cs-options" class="inside">
57
 
58
  $config = EZP_CS_Config_Entity::get_by_id($global->config_index);
59
 
60
+ // EZP_CS_Utility::display_admin_notice($config->coming_soon_mode_on);
61
  ?>
62
 
63
  <div id="easypie-cs-options" class="inside">
pages/page-subscribers-list-tab.php CHANGED
@@ -170,7 +170,7 @@ $config = EZP_CS_Config_Entity::get_by_id($global->config_index);
170
  return false;"><?php EZP_CS_Utility::_e("Next"); ?><span style='float:right; margin-top:1px' class="ui-icon ui-icon-triangle-1-e"></span></button>
171
 
172
  </div>
173
- <p style="text-align:center;"><small style="margin-top:17px; ">Get an email when a subscriber signs up with <a style="color:red" target="_blank" href="http://easypiewp.com">Coming Soon Page Elite</a></small>
174
  </p>
175
  </div>
176
  </div>
170
  return false;"><?php EZP_CS_Utility::_e("Next"); ?><span style='float:right; margin-top:1px' class="ui-icon ui-icon-triangle-1-e"></span></button>
171
 
172
  </div>
173
+ <p style="text-align:center;"><small style="margin-top:17px; ">Get an email when a subscriber signs up with <a style="color:#DC3232" target="_blank" href="http://easypiewp.com">Coming Soon Page Elite</a></small>
174
  </p>
175
  </div>
176
  </div>
pages/page-subscribers-newsletter-tab.php CHANGED
@@ -78,7 +78,7 @@ $config = EZP_CS_Config_Entity::get_by_id($global->config_index);
78
  </div>
79
  </div>
80
  <p style="margin-left:8px;margin-top:10px;font-style:italic; clear:both">
81
- <small style="margin-top:17px; ">AutoSync your subscribers to MailChimp with <a style="color:red" target="_blank" href="http://easypiewp.com">Coming Soon Page Elite</a></small>
82
  </p>
83
  </div>
84
  </div>
78
  </div>
79
  </div>
80
  <p style="margin-left:8px;margin-top:10px;font-style:italic; clear:both">
81
+ <small style="margin-top:17px; ">AutoSync your subscribers to MailChimp with <a style="color:#DC3232" target="_blank" href="http://easypiewp.com">Coming Soon Page Elite</a></small>
82
  </p>
83
  </div>
84
  </div>
pages/page-subscribers.php CHANGED
@@ -54,7 +54,7 @@ if (isset($_GET['tab'])) {
54
 
55
  $config = EZP_CS_Config_Entity::get_by_id($global->config_index);
56
 
57
- EZP_CS_Utility::display_admin_notice($config->coming_soon_mode_on);
58
  ?>
59
 
60
  <div id="easypie-cs-options" class="inside">
54
 
55
  $config = EZP_CS_Config_Entity::get_by_id($global->config_index);
56
 
57
+ // EZP_CS_Utility::display_admin_notice($config->coming_soon_mode_on);
58
  ?>
59
 
60
  <div id="easypie-cs-options" class="inside">
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: bobriley
3
  Donate link: http://easypiewp.com/donate/
4
  Tags: coming soon, coming soon page, construction, landing page, launch, launch page, maintenance, maintenance mode, offline, unavailable, under construction, underconstruction, wordpress coming soon, wordpress maintenance mode, wordpress under construction
5
  Requires at least: 3.5
6
- Tested up to: 4.1.1
7
- Stable tag: 1.0.2
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -39,8 +39,11 @@ Let your visitors know your site is Coming Soon while gathering their contact in
39
  ### Need More? Go Elite!
40
  Take things to the next level with [Coming Soon Page Elite](https://easypiewp.com) where you get everything and the following great features:
41
 
 
 
 
42
  * Auto-sync your subscriber list to MailChimp. No need to export and import!
43
- * Grant site access by person or group with Advanced Access Control.
44
  * Extra social icons, including Instagram, LinkedIn, YouTube and more.
45
  * Receive emails when subscribers sign up.
46
  * Bonus backgrounds!
@@ -89,6 +92,10 @@ For the FAQ on EZP Coming Soon Page please visit the [Easy Pie Website](http://e
89
 
90
  == Changelog ==
91
 
 
 
 
 
92
  = 1.0.2 =
93
  * Changed name to EZP Coming Soon Page to avoid confusion with other plugins
94
 
@@ -143,6 +150,9 @@ For the FAQ on EZP Coming Soon Page please visit the [Easy Pie Website](http://e
143
 
144
  == Upgrade Notice ==
145
 
 
 
 
146
  = 1.0.2 =
147
  * Changed name to EZP Coming Soon Page to avoid confusion with other plugins
148
 
3
  Donate link: http://easypiewp.com/donate/
4
  Tags: coming soon, coming soon page, construction, landing page, launch, launch page, maintenance, maintenance mode, offline, unavailable, under construction, underconstruction, wordpress coming soon, wordpress maintenance mode, wordpress under construction
5
  Requires at least: 3.5
6
+ Tested up to: 4.4.1
7
+ Stable tag: 1.0.3
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
39
  ### Need More? Go Elite!
40
  Take things to the next level with [Coming Soon Page Elite](https://easypiewp.com) where you get everything and the following great features:
41
 
42
+ * Fullscreen video
43
+ * Google Fonts & Effects
44
+ * Auto disable page when countdown hits
45
  * Auto-sync your subscriber list to MailChimp. No need to export and import!
46
+ * Grant site access by person or group or IP with Advanced Access Control.
47
  * Extra social icons, including Instagram, LinkedIn, YouTube and more.
48
  * Receive emails when subscribers sign up.
49
  * Bonus backgrounds!
92
 
93
  == Changelog ==
94
 
95
+ = 1.0.3 =
96
+ * Coming soon indication more prominant - now in admin bar
97
+ * Small admin screen UI tweaks
98
+
99
  = 1.0.2 =
100
  * Changed name to EZP Coming Soon Page to avoid confusion with other plugins
101
 
150
 
151
  == Upgrade Notice ==
152
 
153
+ = 1.0.3 =
154
+ * Made coming soon indication more prominant by putting in admin bar, Small admin screen UI tweaks
155
+
156
  = 1.0.2 =
157
  * Changed name to EZP Coming Soon Page to avoid confusion with other plugins
158
 
styles/easy-pie-cs-common-admin-styles.css ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
1
+ .easy-pie-cs-on > a {
2
+ background-color: rgb(220, 50, 50)!important;
3
+ color: #fff!important;
4
+ font-weight: bold!important;
5
+ }
6
+
7
+ .easy-pie-cs-on > a:hover {
8
+ background-color: black!important;
9
+ color: #00b9eb!important;
10
+ }