CMP – Coming Soon & Maintenance Plugin by NiteoThemes - Version 1.1.0

Version Description

Download this release

Release Info

Developer niteo
Plugin Icon 128x128 CMP – Coming Soon & Maintenance Plugin by NiteoThemes
Version 1.1.0
Comparing to
See all releases

Code changes from version 1.0.1 to 1.1.0

cmp-options.php CHANGED
@@ -11,7 +11,7 @@ if ( $_SERVER['REQUEST_METHOD'] == 'POST' ) {
11
  $ajax_nonce = wp_create_nonce( 'cmp-coming-soon-ajax-secret' );
12
  $title = stripslashes(get_option('niteoCS_title', get_bloginfo('name').' Coming soon!'));
13
  $descr = stripslashes(get_option('niteoCS_descr', 'Just another Coming Soon Page'));
14
- $niteoCS_subscribe_code = get_option('niteoCS_subscribe_code');
15
  $niteoCS_analytics = stripslashes(get_option('niteoCS_analytics', ''));
16
  $niteoCS_custom_css = stripslashes(get_option('niteoCS_custom_css', ''));
17
  $niteoCS_unsplash_id = get_option('niteoCS_unsplash_id', '');
@@ -34,6 +34,8 @@ $unsplash_category = get_option('niteoCS_unsplash_category', 'buildings');
34
  $niteoCS_cat_keyword = get_option('niteoCS_cat_keyword');
35
  $niteoCS_soc_title = get_option('niteoCS_soc_title', 'GET SOCIAL WITH US');
36
  $niteoCS_subscribe_type = get_option('niteoCS_subscribe_type', '0');
 
 
37
  $subscriber_list = get_option('niteoCS_subscribers_list');
38
  $niteoCS_csv_export_time = get_option('niteoCS_csv_export_time');
39
  $niteoCS_font_content = get_option('niteoCS_font_content', 'Average Sans');
@@ -180,6 +182,10 @@ if (isset($_POST['niteoCS_subscribe_type']) && is_numeric($_POST['niteoCS_subscr
180
  $niteoCS_subscribe_type= stripslashes(get_option('niteoCS_subscribe_type'));
181
  }
182
 
 
 
 
 
183
 
184
  if (isset($_POST['niteoCS_font_headings'])) {
185
  update_option('niteoCS_font_headings', sanitize_text_field($_POST['niteoCS_font_headings']));
@@ -283,14 +289,14 @@ if( isset($_POST['submit_theme']) ) {
283
  // delete FILE
284
  wp_delete_file( $source_path );
285
  array_push( $theme_array, $theme_name );
286
- _e('<p class="comingsoon-success">Successfully installed new Theme!</p>', 'cmp');
287
 
288
  } else {
289
- _e('<p class="comingsoon-error">There was an error unzipping the file!</p>', 'cmp');
290
  }
291
 
292
  } else {
293
- _e('<p class="comingsoon-error">Error creating Theme subdirectory!</p>', 'cmp');
294
  }
295
 
296
  } else {
@@ -301,7 +307,7 @@ if( isset($_POST['submit_theme']) ) {
301
  echo $movefile['error'];
302
  }
303
  } else {
304
- echo '<p class="comingsoon-error">Unable to upload new Theme file. '. strtoupper($filetype['ext']) . ' file extension is not supported. Please upload ZIP file containing Niteo Coming Soon Theme.</p>';
305
  }
306
 
307
  add_filter('upload_mimes', array($this, 'niteo_remove_zip_mime'));
@@ -355,7 +361,7 @@ add_thickbox();
355
  <input type="radio" name="activate" value="1"<?php if ($this->cmp_status() == 1) { echo ' checked="checked"'; } ?>>&nbsp;<?php _e('Maintanance Mode', 'cmp');?>
356
  <p class="info"><?php _e('Returns 503 HTTP Service unavailable code to indexing robots. Set this option if your site is down due to maintanance and you want to display Maintanance page.','cmp')?></p>
357
  </label><br />
358
- <label title="comingsoon">
359
  <input type="radio" name="activate" value="2"<?php if ($this->cmp_status() == 2) { echo ' checked="checked"'; } ?>>&nbsp;<?php _e('Coming Soon', 'cmp');?>
360
  <p class="info"><?php _e('Returns standard 200 HTTP OK response code to indexing robots. Set this option if you want to use our plugin as "Coming Soon" page.','cmp')?></p>
361
  </label>
@@ -409,14 +415,14 @@ add_thickbox();
409
  // if not in available themes array, display buy button
410
  if ( !in_array( $premium_theme['name'], $theme_array) ) { ?>
411
 
412
- <img src="<?php echo esc_url( plugins_url().'/'.$this->installedFolder.'\/premium/'. $premium_theme['name']. '.jpg' );?>" alt="<?php echo esc_attr($premium_theme['name']);?>">
413
  <a class="button" href="<?php echo esc_url($premium_theme['url']);?>" target="_blank">Buy for <?php echo esc_html($premium_theme['price']);?> USD</a>
414
 
415
  </div>
416
  <?php
417
  } else { ?>
418
  <label title="<?php echo esc_attr($premium_theme['name']);?>">
419
- <img src="<?php echo esc_url( plugins_url().'/'.$this->installedFolder.'\/themes/'. $premium_theme['name'] . '/img/'. $premium_theme['name'] . '-thumbnail.jpg' );?>" alt="<?php echo esc_attr($premium_theme['name']);?>">
420
  <input type="radio" name="select_theme" value="<?php echo esc_attr($premium_theme['name']);?>" id="displayOption-<?php echo esc_attr($premium_theme['name']);?>"<?php if ( $this->cmp_selectedTheme() == $premium_theme['name'] ) { echo ' checked="checked"'; } ?>>&nbsp;<?php echo ucwords(esc_html($premium_theme['name']));?>
421
  </label>
422
  <?php
@@ -442,7 +448,7 @@ add_thickbox();
442
 
443
  <div class="logo-wrapper">
444
  <?php
445
- if ( $logo_url !== '' ) {
446
  echo '<img src="'.esc_url($logo_url).'" alt="">';
447
  } ?>
448
  </div>
@@ -645,10 +651,10 @@ add_thickbox();
645
  </div>
646
 
647
  <div class="table-wrapper customization">
648
- <h3><?php _e('Content', 'comingSoon');?></h3>
649
  <table class="customization">
650
- <tr>
651
- <th><h4><?php _e('Body Title', 'comingSoon');?></h4></th>
652
  <td>
653
  <fieldset>
654
  <input type="text" name="niteoCS_body_title" id="niteoCS_body_title" value="<?php echo stripslashes(esc_attr( $niteoCS_body_title)); ?>" class="regular-text code">
@@ -657,7 +663,7 @@ add_thickbox();
657
  </tr>
658
 
659
  <tr>
660
- <th><h4><?php _e('Body Message', 'comingSoon');?></h4></th>
661
  <td>
662
  <?php wp_editor( stripslashes( $this->niteo_sanitize_html( $body ) ), 'niteoCS_body', $settings = array('textarea_name'=>'niteoCS_body', 'editor_height'=>'300') ); ?>
663
  </td>
@@ -727,7 +733,11 @@ add_thickbox();
727
 
728
  <td id="subscribe-niteo">
729
  <fieldset>
730
- <p><?php _e('Default subscribe form will be displayed to visitors. Only export of email addresses to .csv file is supported. Mailing List will be deleted after deletion of this plugin.', 'cmp');?></p>
 
 
 
 
731
 
732
  <p><?php _e('Total Subscribers: ', 'cmp'); echo $subscriber_list ? count( $subscriber_list ) : '0';?></p>
733
  <p><?php _e('Since last export: ', 'cmp'); echo $new_subs;?></p>
@@ -793,11 +803,11 @@ add_thickbox();
793
  </div>
794
 
795
  <div class="table-wrapper customization" id="copyright-section">
796
- <h3><?php _e('Footer Content', 'comingSoon');?></h3>
797
  <table class="customization">
798
 
799
  <tr>
800
- <th><h4><?php _e('Copyright', 'comingSoon');?></h4></th>
801
  <td>
802
  <fieldset>
803
  <input type="text" name="niteoCS_copyright" id="niteoCS_copyright" value="<?php echo esc_attr( $this->niteo_sanitize_html($niteoCS_copyright)); ?>" class="regular-text code">
@@ -812,7 +822,7 @@ add_thickbox();
812
  <h3><?php _e('SEO Settings', 'cmp');?></h3>
813
  <table class="seo">
814
 
815
- <tr>
816
  <th><h4><?php _e('Header Title', 'cmp');?></h4></th>
817
  <td>
818
  <fieldset>
11
  $ajax_nonce = wp_create_nonce( 'cmp-coming-soon-ajax-secret' );
12
  $title = stripslashes(get_option('niteoCS_title', get_bloginfo('name').' Coming soon!'));
13
  $descr = stripslashes(get_option('niteoCS_descr', 'Just another Coming Soon Page'));
14
+
15
  $niteoCS_analytics = stripslashes(get_option('niteoCS_analytics', ''));
16
  $niteoCS_custom_css = stripslashes(get_option('niteoCS_custom_css', ''));
17
  $niteoCS_unsplash_id = get_option('niteoCS_unsplash_id', '');
34
  $niteoCS_cat_keyword = get_option('niteoCS_cat_keyword');
35
  $niteoCS_soc_title = get_option('niteoCS_soc_title', 'GET SOCIAL WITH US');
36
  $niteoCS_subscribe_type = get_option('niteoCS_subscribe_type', '0');
37
+ $niteoCS_subscribe_code = get_option('niteoCS_subscribe_code');
38
+ $niteoCS_subscribe_label= get_option('niteoCS_subscribe_label');
39
  $subscriber_list = get_option('niteoCS_subscribers_list');
40
  $niteoCS_csv_export_time = get_option('niteoCS_csv_export_time');
41
  $niteoCS_font_content = get_option('niteoCS_font_content', 'Average Sans');
182
  $niteoCS_subscribe_type= stripslashes(get_option('niteoCS_subscribe_type'));
183
  }
184
 
185
+ if (isset($_POST['niteoCS_subscribe_label'])) {
186
+ update_option('niteoCS_subscribe_label', sanitize_text_field($_POST['niteoCS_subscribe_label']));
187
+ $niteoCS_subscribe_label= get_option('niteoCS_subscribe_label');
188
+ }
189
 
190
  if (isset($_POST['niteoCS_font_headings'])) {
191
  update_option('niteoCS_font_headings', sanitize_text_field($_POST['niteoCS_font_headings']));
289
  // delete FILE
290
  wp_delete_file( $source_path );
291
  array_push( $theme_array, $theme_name );
292
+ _e('<p class="cmp-success">Successfully installed new Theme!</p>', 'cmp');
293
 
294
  } else {
295
+ _e('<p class="cmp-error">There was an error unzipping the file!</p>', 'cmp');
296
  }
297
 
298
  } else {
299
+ _e('<p class="cmp-error">Error creating Theme subdirectory!</p>', 'cmp');
300
  }
301
 
302
  } else {
307
  echo $movefile['error'];
308
  }
309
  } else {
310
+ echo '<p class="cmp-error">Unable to upload new Theme file. '. strtoupper($filetype['ext']) . ' file extension is not supported. Please upload ZIP file containing Niteo Coming Soon Theme.</p>';
311
  }
312
 
313
  add_filter('upload_mimes', array($this, 'niteo_remove_zip_mime'));
361
  <input type="radio" name="activate" value="1"<?php if ($this->cmp_status() == 1) { echo ' checked="checked"'; } ?>>&nbsp;<?php _e('Maintanance Mode', 'cmp');?>
362
  <p class="info"><?php _e('Returns 503 HTTP Service unavailable code to indexing robots. Set this option if your site is down due to maintanance and you want to display Maintanance page.','cmp')?></p>
363
  </label><br />
364
+ <label title="cmp">
365
  <input type="radio" name="activate" value="2"<?php if ($this->cmp_status() == 2) { echo ' checked="checked"'; } ?>>&nbsp;<?php _e('Coming Soon', 'cmp');?>
366
  <p class="info"><?php _e('Returns standard 200 HTTP OK response code to indexing robots. Set this option if you want to use our plugin as "Coming Soon" page.','cmp')?></p>
367
  </label>
415
  // if not in available themes array, display buy button
416
  if ( !in_array( $premium_theme['name'], $theme_array) ) { ?>
417
 
418
+ <a href="http://comingsoon.niteo.cz/?cmp_preview=true&theme=<?php echo esc_attr($premium_theme['name']);?>" target="_blank"><img src="<?php echo esc_url( plugins_url().'/'.$this->installedFolder.'\/themes/'. $premium_theme['name']. '_thumbnail.jpg' );?>" alt="<?php echo esc_attr(ucwords($premium_theme['name']));?> Premium Theme"></a>
419
  <a class="button" href="<?php echo esc_url($premium_theme['url']);?>" target="_blank">Buy for <?php echo esc_html($premium_theme['price']);?> USD</a>
420
 
421
  </div>
422
  <?php
423
  } else { ?>
424
  <label title="<?php echo esc_attr($premium_theme['name']);?>">
425
+ <img src="<?php echo esc_url( plugins_url().'/'.$this->installedFolder.'\/themes/'. $premium_theme['name'] . '/img/'. $premium_theme['name'] . '_thumbnail.jpg' );?>" alt="<?php echo esc_attr(ucwords($premium_theme['name']));?> Premium Theme">
426
  <input type="radio" name="select_theme" value="<?php echo esc_attr($premium_theme['name']);?>" id="displayOption-<?php echo esc_attr($premium_theme['name']);?>"<?php if ( $this->cmp_selectedTheme() == $premium_theme['name'] ) { echo ' checked="checked"'; } ?>>&nbsp;<?php echo ucwords(esc_html($premium_theme['name']));?>
427
  </label>
428
  <?php
448
 
449
  <div class="logo-wrapper">
450
  <?php
451
+ if ( isset($logo_url) && $logo_url !== '' ) {
452
  echo '<img src="'.esc_url($logo_url).'" alt="">';
453
  } ?>
454
  </div>
651
  </div>
652
 
653
  <div class="table-wrapper customization">
654
+ <h3><?php _e('Content', 'cmp');?></h3>
655
  <table class="customization">
656
+ <tr class="body-title">
657
+ <th><h4><?php _e('Body Title', 'cmp');?></h4></th>
658
  <td>
659
  <fieldset>
660
  <input type="text" name="niteoCS_body_title" id="niteoCS_body_title" value="<?php echo stripslashes(esc_attr( $niteoCS_body_title)); ?>" class="regular-text code">
663
  </tr>
664
 
665
  <tr>
666
+ <th><h4><?php _e('Body Message', 'cmp');?></h4></th>
667
  <td>
668
  <?php wp_editor( stripslashes( $this->niteo_sanitize_html( $body ) ), 'niteoCS_body', $settings = array('textarea_name'=>'niteoCS_body', 'editor_height'=>'300') ); ?>
669
  </td>
733
 
734
  <td id="subscribe-niteo">
735
  <fieldset>
736
+ <p><?php _e('Default subscribe form will be displayed to visitors. Only export of email addresses to .csv file is supported. Mailing List will be deleted after deletion of CMP plugin.', 'cmp');?></p>
737
+
738
+ <label class="subscribe" for="niteoCS_subscribe_label">Subscribe form Label
739
+ <input type="text" name="niteoCS_subscribe_label" id="niteoCS_subscribe_label" value="<?php echo esc_attr($niteoCS_subscribe_label );?>" class="regular-text code">
740
+ </label>
741
 
742
  <p><?php _e('Total Subscribers: ', 'cmp'); echo $subscriber_list ? count( $subscriber_list ) : '0';?></p>
743
  <p><?php _e('Since last export: ', 'cmp'); echo $new_subs;?></p>
803
  </div>
804
 
805
  <div class="table-wrapper customization" id="copyright-section">
806
+ <h3><?php _e('Footer Content', 'cmp');?></h3>
807
  <table class="customization">
808
 
809
  <tr>
810
+ <th><h4><?php _e('Copyright', 'cmp');?></h4></th>
811
  <td>
812
  <fieldset>
813
  <input type="text" name="niteoCS_copyright" id="niteoCS_copyright" value="<?php echo esc_attr( $this->niteo_sanitize_html($niteoCS_copyright)); ?>" class="regular-text code">
822
  <h3><?php _e('SEO Settings', 'cmp');?></h3>
823
  <table class="seo">
824
 
825
+ <tr class="body-title">
826
  <th><h4><?php _e('Header Title', 'cmp');?></h4></th>
827
  <td>
828
  <fieldset>
cs_style.css CHANGED
@@ -67,7 +67,8 @@ input[type="text"], textarea{width:100%;}
67
  .table-wrapper {background-color: #ffffff;border:1px solid #dedede;margin:1em 0;}
68
  .table-wrapper h3 {padding-bottom: .5em;margin-bottom: 0;padding-left:1em;border-bottom:1px solid #dedede;}
69
  .table-wrapper table{padding:1em;}
70
- .logo-wrapper, .banner-wrapper {padding: 1em 0;}
 
71
  .logo-wrapper img, .banner-wrapper img,.thumbnail-holder img {max-width: 100%;}
72
  .thumbnail-holder {display: inline-block;max-width: 250px;padding:1em;margin:1em;text-align: center;border: 1px solid #efefef;}
73
  #font-example-wrapper {padding:1em;border:1px solid #dedede;}
67
  .table-wrapper {background-color: #ffffff;border:1px solid #dedede;margin:1em 0;}
68
  .table-wrapper h3 {padding-bottom: .5em;margin-bottom: 0;padding-left:1em;border-bottom:1px solid #dedede;}
69
  .table-wrapper table{padding:1em;}
70
+ .logo-wrapper, .banner-wrapper {margin: 1em 0;}
71
+ .logo-wrapper img {background-color: #efefef;}
72
  .logo-wrapper img, .banner-wrapper img,.thumbnail-holder img {max-width: 100%;}
73
  .thumbnail-holder {display: inline-block;max-width: 250px;padding:1em;margin:1em;text-align: center;border: 1px solid #efefef;}
74
  #font-example-wrapper {padding:1em;border:1px solid #dedede;}
languages/coming-soon-default.mo CHANGED
Binary file
languages/coming-soon-default.po CHANGED
@@ -1,8 +1,8 @@
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
- "POT-Creation-Date: 2017-03-11 19:22+0100\n"
5
- "PO-Revision-Date: 2017-03-11 19:22+0100\n"
6
  "Last-Translator: \n"
7
  "Language-Team: \n"
8
  "Language: en\n"
@@ -17,395 +17,474 @@ msgstr ""
17
  "X-Poedit-SearchPath-1: themes/construct\n"
18
  "X-Poedit-SearchPath-2: themes/hardwork\n"
19
 
20
- #: comingsoon-options.php:241
21
- msgid "<p class=\"comingsoon-success\">Successfully installed new Theme!</p>"
22
  msgstr ""
23
 
24
- #: comingsoon-options.php:244
25
- msgid ""
26
- "<p class=\"comingsoon-error\">There was an error unzipping the file!</p>"
27
  msgstr ""
28
 
29
- #: comingsoon-options.php:248
30
- msgid "<p class=\"comingsoon-error\">Error creating Theme subdirectory!</p>"
31
  msgstr ""
32
 
33
- #: comingsoon-options.php:272
34
  msgid ""
35
  "JavaScript appears to be disabled in your browser. For this plugin to work "
36
  "correctly, please enable JavaScript or switch to a more modern browser."
37
  msgstr ""
38
 
39
- #: comingsoon-options.php:287
40
  msgid "Settings"
41
  msgstr ""
42
 
43
- #: comingsoon-options.php:288 themes/construct/construct-settings.php:77
44
- #: themes/hardwork/hardwork-settings.php:92
45
  msgid "Content"
46
  msgstr ""
47
 
48
- #: comingsoon-options.php:289
49
  msgid "SEO"
50
  msgstr ""
51
 
52
- #: comingsoon-options.php:290
53
  msgid "Custom CSS"
54
  msgstr ""
55
 
56
- #: comingsoon-options.php:291
57
  msgid "Preview"
58
  msgstr ""
59
 
60
- #: comingsoon-options.php:292
61
  msgid "Install New Theme"
62
  msgstr ""
63
 
64
- #: comingsoon-options.php:296
65
  msgid "General Settings"
66
  msgstr ""
67
 
68
- #: comingsoon-options.php:299 comingsoon-options.php:303
69
  msgid "Status"
70
  msgstr ""
71
 
72
- #: comingsoon-options.php:306 comingsoon-options.php:614
73
  msgid "Disabled"
74
  msgstr ""
75
 
76
- #: comingsoon-options.php:307
77
  msgid ""
78
  "Disable plugin and display standard WordPress page to all users and indexing "
79
  "engines."
80
  msgstr ""
81
 
82
- #: comingsoon-options.php:310
83
  msgid "Maintanance Mode"
84
  msgstr ""
85
 
86
- #: comingsoon-options.php:311
87
  msgid ""
88
  "Returns 503 HTTP Service unavailable code to indexing robots. Set this "
89
  "option if your site is down due to maintanance and you want to display "
90
  "Maintanance page."
91
  msgstr ""
92
 
93
- #: comingsoon-options.php:314
94
  msgid "Coming Soon"
95
  msgstr ""
96
 
97
- #: comingsoon-options.php:315
98
  msgid ""
99
  "Returns standard 200 HTTP OK response code to indexing robots. Set this "
100
  "option if you want to use our plugin as \"Coming Soon\" page."
101
  msgstr ""
102
 
103
- #: comingsoon-options.php:323
104
  msgid "Select Theme"
105
  msgstr ""
106
 
107
- #: comingsoon-options.php:326 comingsoon-options.php:330
108
  msgid "Free Themes"
109
  msgstr ""
110
 
111
- #: comingsoon-options.php:355 comingsoon-options.php:359
112
  msgid "Premium Themes"
113
  msgstr ""
114
 
115
- #: comingsoon-options.php:390
116
  msgid "Logo"
117
  msgstr ""
118
 
119
- #: comingsoon-options.php:393
120
  msgid "Upload or select Logo"
121
  msgstr ""
122
 
123
- #: comingsoon-options.php:410
124
  msgid "Graphic Banner"
125
  msgstr ""
126
 
127
- #: comingsoon-options.php:416
128
  msgid "Banner Settings"
129
  msgstr ""
130
 
131
- #: comingsoon-options.php:421
132
  msgid "Custom Media"
133
  msgstr ""
134
 
135
- #: comingsoon-options.php:427
136
  msgid "Unsplash library"
137
  msgstr ""
138
 
139
- #: comingsoon-options.php:433
140
  msgid "Default Media"
141
  msgstr ""
142
 
143
- #: comingsoon-options.php:446
144
  msgid ""
145
  "Pro Tip! You can select multiple Media from your library by holding CTRL"
146
  "+click (Command+click if you sit on MacOS) while selecting photos."
147
  msgstr ""
148
 
149
- #: comingsoon-options.php:461
150
  msgid "Choose Unsplash Feed"
151
  msgstr ""
152
 
153
- #: comingsoon-options.php:463
154
  msgid "Specific Photo"
155
  msgstr ""
156
 
157
- #: comingsoon-options.php:464
158
  msgid "Random from Category"
159
  msgstr ""
160
 
161
- #: comingsoon-options.php:465
162
  msgid "Random from Collection"
163
  msgstr ""
164
 
165
- #: comingsoon-options.php:466
166
  msgid "Random Photo"
167
  msgstr ""
168
 
169
- #: comingsoon-options.php:470
170
  msgid "Enter Unsplash Photo URL or Photo ID"
171
  msgstr ""
172
 
173
- #: comingsoon-options.php:475
174
  msgid "Select Category"
175
  msgstr ""
176
 
177
- #: comingsoon-options.php:477
178
  msgid "Buildings"
179
  msgstr ""
180
 
181
- #: comingsoon-options.php:478
182
  msgid "Food"
183
  msgstr ""
184
 
185
- #: comingsoon-options.php:479
186
  msgid "Nature"
187
  msgstr ""
188
 
189
- #: comingsoon-options.php:480
190
  msgid "People"
191
  msgstr ""
192
 
193
- #: comingsoon-options.php:481
194
  msgid "Technology"
195
  msgstr ""
196
 
197
- #: comingsoon-options.php:482
198
  msgid "Objects"
199
  msgstr ""
200
 
201
- #: comingsoon-options.php:485
202
  msgid "You can limit Category to Specific Keyword"
203
  msgstr ""
204
 
205
- #: comingsoon-options.php:490
206
  msgid ""
207
  "Enter Unsplash Collection URL or Collection ID. Doesn`t work for Curated "
208
  "Collections."
209
  msgstr ""
210
 
211
- #: comingsoon-options.php:495
212
  msgid "Specify search terms"
213
  msgstr ""
214
 
215
- #: comingsoon-options.php:499
216
  msgid "Limit search only to Featured/Curated Photos"
217
  msgstr ""
218
 
219
- #: comingsoon-options.php:518
220
  msgid "Customize Fonts"
221
  msgstr ""
222
 
223
- #: comingsoon-options.php:522
224
  msgid "Headings Font"
225
  msgstr ""
226
 
227
- #: comingsoon-options.php:525 comingsoon-options.php:558
228
  msgid "Select from predefined Google Fonts or insert Custom font"
229
  msgstr ""
230
 
231
- #: comingsoon-options.php:543
232
  msgid "Custom font..."
233
  msgstr ""
234
 
235
- #: comingsoon-options.php:547 comingsoon-options.php:581
236
  msgid "Enter name of "
237
  msgstr ""
238
 
239
- #: comingsoon-options.php:555
240
  msgid "Content Font"
241
  msgstr ""
242
 
243
- #: comingsoon-options.php:576
244
  msgid "Custom Font..."
245
  msgstr ""
246
 
247
- #: comingsoon-options.php:603
 
 
 
 
 
 
 
 
248
  msgid "Subscribe Form"
249
  msgstr ""
250
 
251
- #: comingsoon-options.php:609
252
  msgid "Subscribe Form Options"
253
  msgstr ""
254
 
255
- #: comingsoon-options.php:620
256
  msgid "3rd Party Plugin"
257
  msgstr ""
258
 
259
- #: comingsoon-options.php:626
260
  msgid "Niteo Subscribe"
261
  msgstr ""
262
 
263
- #: comingsoon-options.php:634
264
  msgid "Subscribe Form is disabled."
265
  msgstr ""
266
 
267
- #: comingsoon-options.php:643
 
 
 
 
 
 
268
  msgid ""
269
  "Your Subscribe Form should have only one input (type=email) and submit "
270
  "(input=submit). If you have more than one input field, our design will not "
271
  "work and you need to use custom CSS to style your Subscribe form."
272
  msgstr ""
273
 
274
- #: comingsoon-options.php:644
275
  msgid "Example of Subscribe Form code for "
276
  msgstr ""
277
 
278
- #: comingsoon-options.php:656
279
  msgid ""
280
  "Default subscribe form will be displayed to visitors. Only export of email "
281
  "addresses to .csv file is supported. Mailing List will be deleted after "
282
- "deletion of this plugin."
283
  msgstr ""
284
 
285
- #: comingsoon-options.php:658
286
  msgid "Total Subscribers: "
287
  msgstr ""
288
 
289
- #: comingsoon-options.php:659
290
  msgid "Since last export: "
291
  msgstr ""
292
 
293
- #: comingsoon-options.php:660
294
  msgid "Last Export Date: "
295
  msgstr ""
296
 
297
- #: comingsoon-options.php:660
298
  msgid "Never exported"
299
  msgstr ""
300
 
301
- #: comingsoon-options.php:671
302
  msgid "Social Media"
303
  msgstr ""
304
 
305
- #: comingsoon-options.php:675
306
  msgid "Social Section Title"
307
  msgstr ""
308
 
309
- #: comingsoon-options.php:684
310
  msgid "Social Media Icons"
311
  msgstr ""
312
 
313
- #: comingsoon-options.php:723
 
 
 
 
 
 
 
 
314
  msgid "SEO Settings"
315
  msgstr ""
316
 
317
- #: comingsoon-options.php:727
318
  msgid "Header Title"
319
  msgstr ""
320
 
321
- #: comingsoon-options.php:736
322
  msgid "Description"
323
  msgstr ""
324
 
325
- #: comingsoon-options.php:744
326
- msgid "Google Analytics Code"
327
  msgstr ""
328
 
329
- #: comingsoon-options.php:755
330
  msgid "Enter Custom CSS"
331
  msgstr ""
332
 
333
- #: comingsoon-options.php:769
334
  msgid "Save Changes"
335
  msgstr ""
336
 
337
- #: comingsoon-options.php:779
338
  msgid "Install New Coming Soon Theme"
339
  msgstr ""
340
 
341
- #: niteo-comingsoon.php:162
342
  msgid "Maintenance Mode Active"
343
  msgstr ""
344
 
345
- #: niteo-comingsoon.php:164
346
  msgid "Coming Soon Mode Active"
347
  msgstr ""
348
 
349
- #: niteo-comingsoon.php:341 niteo-comingsoon.php:349
350
  msgid "Thank you, your sign-up request was successful!"
351
  msgstr ""
352
 
353
- #: niteo-comingsoon.php:352
354
  msgid "This email address has already been on our subscriber list."
355
  msgstr ""
356
 
357
- #: niteo-comingsoon.php:357
358
  msgid "Please insert valid email."
359
  msgstr ""
360
 
361
- #: themes/construct/construct-settings.php:46
362
- #: themes/hardwork/hardwork-settings.php:61
363
  msgid "Customize Colors"
364
  msgstr ""
365
 
366
- #: themes/construct/construct-settings.php:49
 
367
  msgid "Active Color"
368
  msgstr ""
369
 
370
- #: themes/construct/construct-settings.php:53
371
- msgid "Color used for Headings and active elements(buttons, hover links, etc)"
372
  msgstr ""
373
 
374
- #: themes/construct/construct-settings.php:58
375
- #: themes/hardwork/hardwork-settings.php:65
376
  msgid "Font Color"
377
  msgstr ""
378
 
379
- #: themes/construct/construct-settings.php:66
380
  msgid "Background Color"
381
  msgstr ""
382
 
383
- #: themes/construct/construct-settings.php:80
384
- #: themes/hardwork/hardwork-settings.php:95
385
- msgid "Body Title"
386
  msgstr ""
387
 
388
- #: themes/construct/construct-settings.php:89
389
- #: themes/hardwork/hardwork-settings.php:104
390
- msgid "Body Message"
391
  msgstr ""
392
 
393
- #: themes/construct/construct-settings.php:99
394
- msgid "Footer Content"
395
  msgstr ""
396
 
397
- #: themes/construct/construct-settings.php:103
398
- msgid "Copyright"
399
  msgstr ""
400
 
401
- #: themes/hardwork/hardwork-settings.php:73
402
- msgid "Overlay Color"
403
  msgstr ""
404
 
405
- #: themes/hardwork/hardwork-settings.php:76
406
- msgid "Enable Overlay Color"
 
 
 
 
 
 
 
 
407
  msgstr ""
408
 
409
- #: themes/hardwork/hardwork-settings.php:82
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
410
  msgid "Overlay Opacity"
411
  msgstr ""
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
+ "POT-Creation-Date: 2017-03-29 14:19+0200\n"
5
+ "PO-Revision-Date: 2017-03-29 14:19+0200\n"
6
  "Last-Translator: \n"
7
  "Language-Team: \n"
8
  "Language: en\n"
17
  "X-Poedit-SearchPath-1: themes/construct\n"
18
  "X-Poedit-SearchPath-2: themes/hardwork\n"
19
 
20
+ #: cmp-options.php:292
21
+ msgid "<p class=\"cmp-success\">Successfully installed new Theme!</p>"
22
  msgstr ""
23
 
24
+ #: cmp-options.php:295
25
+ msgid "<p class=\"cmp-error\">There was an error unzipping the file!</p>"
 
26
  msgstr ""
27
 
28
+ #: cmp-options.php:299
29
+ msgid "<p class=\"cmp-error\">Error creating Theme subdirectory!</p>"
30
  msgstr ""
31
 
32
+ #: cmp-options.php:323
33
  msgid ""
34
  "JavaScript appears to be disabled in your browser. For this plugin to work "
35
  "correctly, please enable JavaScript or switch to a more modern browser."
36
  msgstr ""
37
 
38
+ #: cmp-options.php:338
39
  msgid "Settings"
40
  msgstr ""
41
 
42
+ #: cmp-options.php:339 cmp-options.php:654
 
43
  msgid "Content"
44
  msgstr ""
45
 
46
+ #: cmp-options.php:340
47
  msgid "SEO"
48
  msgstr ""
49
 
50
+ #: cmp-options.php:341
51
  msgid "Custom CSS"
52
  msgstr ""
53
 
54
+ #: cmp-options.php:342
55
  msgid "Preview"
56
  msgstr ""
57
 
58
+ #: cmp-options.php:343
59
  msgid "Install New Theme"
60
  msgstr ""
61
 
62
+ #: cmp-options.php:347
63
  msgid "General Settings"
64
  msgstr ""
65
 
66
+ #: cmp-options.php:350 cmp-options.php:354
67
  msgid "Status"
68
  msgstr ""
69
 
70
+ #: cmp-options.php:357 cmp-options.php:692 themes/frame/frame-settings.php:109
71
  msgid "Disabled"
72
  msgstr ""
73
 
74
+ #: cmp-options.php:358
75
  msgid ""
76
  "Disable plugin and display standard WordPress page to all users and indexing "
77
  "engines."
78
  msgstr ""
79
 
80
+ #: cmp-options.php:361
81
  msgid "Maintanance Mode"
82
  msgstr ""
83
 
84
+ #: cmp-options.php:362
85
  msgid ""
86
  "Returns 503 HTTP Service unavailable code to indexing robots. Set this "
87
  "option if your site is down due to maintanance and you want to display "
88
  "Maintanance page."
89
  msgstr ""
90
 
91
+ #: cmp-options.php:365
92
  msgid "Coming Soon"
93
  msgstr ""
94
 
95
+ #: cmp-options.php:366
96
  msgid ""
97
  "Returns standard 200 HTTP OK response code to indexing robots. Set this "
98
  "option if you want to use our plugin as \"Coming Soon\" page."
99
  msgstr ""
100
 
101
+ #: cmp-options.php:374
102
  msgid "Select Theme"
103
  msgstr ""
104
 
105
+ #: cmp-options.php:377 cmp-options.php:381
106
  msgid "Free Themes"
107
  msgstr ""
108
 
109
+ #: cmp-options.php:405 cmp-options.php:409
110
  msgid "Premium Themes"
111
  msgstr ""
112
 
113
+ #: cmp-options.php:440
114
  msgid "Logo"
115
  msgstr ""
116
 
117
+ #: cmp-options.php:443
118
  msgid "Upload or select Logo"
119
  msgstr ""
120
 
121
+ #: cmp-options.php:464
122
  msgid "Graphic Banner"
123
  msgstr ""
124
 
125
+ #: cmp-options.php:470
126
  msgid "Banner Settings"
127
  msgstr ""
128
 
129
+ #: cmp-options.php:475
130
  msgid "Custom Media"
131
  msgstr ""
132
 
133
+ #: cmp-options.php:481
134
  msgid "Unsplash library"
135
  msgstr ""
136
 
137
+ #: cmp-options.php:487
138
  msgid "Default Media"
139
  msgstr ""
140
 
141
+ #: cmp-options.php:499
142
  msgid ""
143
  "Pro Tip! You can select multiple Media from your library by holding CTRL"
144
  "+click (Command+click if you sit on MacOS) while selecting photos."
145
  msgstr ""
146
 
147
+ #: cmp-options.php:517
148
  msgid "Choose Unsplash Feed"
149
  msgstr ""
150
 
151
+ #: cmp-options.php:519
152
  msgid "Specific Photo"
153
  msgstr ""
154
 
155
+ #: cmp-options.php:520
156
  msgid "Random from Category"
157
  msgstr ""
158
 
159
+ #: cmp-options.php:521
160
  msgid "Random from Collection"
161
  msgstr ""
162
 
163
+ #: cmp-options.php:522
164
  msgid "Random Photo"
165
  msgstr ""
166
 
167
+ #: cmp-options.php:526
168
  msgid "Enter Unsplash Photo URL or Photo ID"
169
  msgstr ""
170
 
171
+ #: cmp-options.php:531
172
  msgid "Select Category"
173
  msgstr ""
174
 
175
+ #: cmp-options.php:533
176
  msgid "Buildings"
177
  msgstr ""
178
 
179
+ #: cmp-options.php:534
180
  msgid "Food"
181
  msgstr ""
182
 
183
+ #: cmp-options.php:535
184
  msgid "Nature"
185
  msgstr ""
186
 
187
+ #: cmp-options.php:536
188
  msgid "People"
189
  msgstr ""
190
 
191
+ #: cmp-options.php:537
192
  msgid "Technology"
193
  msgstr ""
194
 
195
+ #: cmp-options.php:538
196
  msgid "Objects"
197
  msgstr ""
198
 
199
+ #: cmp-options.php:541
200
  msgid "You can limit Category to Specific Keyword"
201
  msgstr ""
202
 
203
+ #: cmp-options.php:546
204
  msgid ""
205
  "Enter Unsplash Collection URL or Collection ID. Doesn`t work for Curated "
206
  "Collections."
207
  msgstr ""
208
 
209
+ #: cmp-options.php:551
210
  msgid "Specify search terms"
211
  msgstr ""
212
 
213
+ #: cmp-options.php:555
214
  msgid "Limit search only to Featured/Curated Photos"
215
  msgstr ""
216
 
217
+ #: cmp-options.php:574
218
  msgid "Customize Fonts"
219
  msgstr ""
220
 
221
+ #: cmp-options.php:578
222
  msgid "Headings Font"
223
  msgstr ""
224
 
225
+ #: cmp-options.php:581 cmp-options.php:614
226
  msgid "Select from predefined Google Fonts or insert Custom font"
227
  msgstr ""
228
 
229
+ #: cmp-options.php:599
230
  msgid "Custom font..."
231
  msgstr ""
232
 
233
+ #: cmp-options.php:603 cmp-options.php:637
234
  msgid "Enter name of "
235
  msgstr ""
236
 
237
+ #: cmp-options.php:611
238
  msgid "Content Font"
239
  msgstr ""
240
 
241
+ #: cmp-options.php:632
242
  msgid "Custom Font..."
243
  msgstr ""
244
 
245
+ #: cmp-options.php:657
246
+ msgid "Body Title"
247
+ msgstr ""
248
+
249
+ #: cmp-options.php:666
250
+ msgid "Body Message"
251
+ msgstr ""
252
+
253
+ #: cmp-options.php:681
254
  msgid "Subscribe Form"
255
  msgstr ""
256
 
257
+ #: cmp-options.php:687
258
  msgid "Subscribe Form Options"
259
  msgstr ""
260
 
261
+ #: cmp-options.php:698
262
  msgid "3rd Party Plugin"
263
  msgstr ""
264
 
265
+ #: cmp-options.php:704
266
  msgid "Niteo Subscribe"
267
  msgstr ""
268
 
269
+ #: cmp-options.php:712
270
  msgid "Subscribe Form is disabled."
271
  msgstr ""
272
 
273
+ #: cmp-options.php:721
274
+ msgid ""
275
+ "You can find Shortode in your Contact Form Plugin settings. Should be "
276
+ "something like: "
277
+ msgstr ""
278
+
279
+ #: cmp-options.php:723
280
  msgid ""
281
  "Your Subscribe Form should have only one input (type=email) and submit "
282
  "(input=submit). If you have more than one input field, our design will not "
283
  "work and you need to use custom CSS to style your Subscribe form."
284
  msgstr ""
285
 
286
+ #: cmp-options.php:724
287
  msgid "Example of Subscribe Form code for "
288
  msgstr ""
289
 
290
+ #: cmp-options.php:736
291
  msgid ""
292
  "Default subscribe form will be displayed to visitors. Only export of email "
293
  "addresses to .csv file is supported. Mailing List will be deleted after "
294
+ "deletion of CMP plugin."
295
  msgstr ""
296
 
297
+ #: cmp-options.php:742
298
  msgid "Total Subscribers: "
299
  msgstr ""
300
 
301
+ #: cmp-options.php:743
302
  msgid "Since last export: "
303
  msgstr ""
304
 
305
+ #: cmp-options.php:744
306
  msgid "Last Export Date: "
307
  msgstr ""
308
 
309
+ #: cmp-options.php:744
310
  msgid "Never exported"
311
  msgstr ""
312
 
313
+ #: cmp-options.php:755
314
  msgid "Social Media"
315
  msgstr ""
316
 
317
+ #: cmp-options.php:759
318
  msgid "Social Section Title"
319
  msgstr ""
320
 
321
+ #: cmp-options.php:768
322
  msgid "Social Media Icons"
323
  msgstr ""
324
 
325
+ #: cmp-options.php:806
326
+ msgid "Footer Content"
327
+ msgstr ""
328
+
329
+ #: cmp-options.php:810
330
+ msgid "Copyright"
331
+ msgstr ""
332
+
333
+ #: cmp-options.php:822
334
  msgid "SEO Settings"
335
  msgstr ""
336
 
337
+ #: cmp-options.php:826
338
  msgid "Header Title"
339
  msgstr ""
340
 
341
+ #: cmp-options.php:835
342
  msgid "Description"
343
  msgstr ""
344
 
345
+ #: cmp-options.php:843
346
+ msgid "Google Analytics Tracking ID"
347
  msgstr ""
348
 
349
+ #: cmp-options.php:854
350
  msgid "Enter Custom CSS"
351
  msgstr ""
352
 
353
+ #: cmp-options.php:868
354
  msgid "Save Changes"
355
  msgstr ""
356
 
357
+ #: cmp-options.php:878
358
  msgid "Install New Coming Soon Theme"
359
  msgstr ""
360
 
361
+ #: niteo-cmp.php:209
362
  msgid "Maintenance Mode Active"
363
  msgstr ""
364
 
365
+ #: niteo-cmp.php:211
366
  msgid "Coming Soon Mode Active"
367
  msgstr ""
368
 
369
+ #: niteo-cmp.php:398 niteo-cmp.php:406
370
  msgid "Thank you, your sign-up request was successful!"
371
  msgstr ""
372
 
373
+ #: niteo-cmp.php:409
374
  msgid "This email address has already been on our subscriber list."
375
  msgstr ""
376
 
377
+ #: niteo-cmp.php:414
378
  msgid "Please insert valid email."
379
  msgstr ""
380
 
381
+ #: themes/construct/construct-settings.php:37
382
+ #: themes/frame/frame-settings.php:151 themes/hardwork/hardwork-settings.php:52
383
  msgid "Customize Colors"
384
  msgstr ""
385
 
386
+ #: themes/construct/construct-settings.php:40
387
+ #: themes/frame/frame-settings.php:154
388
  msgid "Active Color"
389
  msgstr ""
390
 
391
+ #: themes/construct/construct-settings.php:44
392
+ msgid "Headings and active elements color (buttons, hover links, etc)."
393
  msgstr ""
394
 
395
+ #: themes/construct/construct-settings.php:49
396
+ #: themes/frame/frame-settings.php:164 themes/hardwork/hardwork-settings.php:56
397
  msgid "Font Color"
398
  msgstr ""
399
 
400
+ #: themes/construct/construct-settings.php:57
401
  msgid "Background Color"
402
  msgstr ""
403
 
404
+ #: themes/frame/frame-settings.php:92
405
+ msgid "Countdown Timer Setup"
 
406
  msgstr ""
407
 
408
+ #: themes/frame/frame-settings.php:98 themes/frame/frame-settings.php:124
409
+ msgid "Counter setup"
 
410
  msgstr ""
411
 
412
+ #: themes/frame/frame-settings.php:103
413
+ msgid "Enabled"
414
  msgstr ""
415
 
416
+ #: themes/frame/frame-settings.php:117
417
+ msgid "Countdown Timer is disabled."
418
  msgstr ""
419
 
420
+ #: themes/frame/frame-settings.php:121
421
+ msgid "Click on date input and set a date & time for a Countdown timer."
422
  msgstr ""
423
 
424
+ #: themes/frame/frame-settings.php:127
425
+ msgid "Select Date.."
426
+ msgstr ""
427
+
428
+ #: themes/frame/frame-settings.php:129
429
+ msgid "Countdown action:"
430
+ msgstr ""
431
+
432
+ #: themes/frame/frame-settings.php:131
433
+ msgid "No action"
434
  msgstr ""
435
 
436
+ #: themes/frame/frame-settings.php:132
437
+ msgid "Display custom text"
438
+ msgstr ""
439
+
440
+ #: themes/frame/frame-settings.php:133
441
+ msgid "Disable CMP Plugin Page"
442
+ msgstr ""
443
+
444
+ #: themes/frame/frame-settings.php:134
445
+ msgid "URL redirect"
446
+ msgstr ""
447
+
448
+ #: themes/frame/frame-settings.php:137
449
+ msgid "Enter custom text"
450
+ msgstr ""
451
+
452
+ #: themes/frame/frame-settings.php:141
453
+ msgid "Enter redirect URL"
454
+ msgstr ""
455
+
456
+ #: themes/frame/frame-settings.php:173
457
+ msgid "Frame Background Color"
458
+ msgstr ""
459
+
460
+ #: themes/frame/frame-settings.php:183 themes/hardwork/hardwork-settings.php:64
461
+ msgid "Overlay Color"
462
+ msgstr ""
463
+
464
+ #: themes/frame/frame-settings.php:189 themes/hardwork/hardwork-settings.php:73
465
  msgid "Overlay Opacity"
466
  msgstr ""
467
+
468
+ #: themes/frame/frame-theme.php:244
469
+ msgid "DAYS"
470
+ msgstr ""
471
+
472
+ #: themes/frame/frame-theme.php:250
473
+ msgid "HOURS"
474
+ msgstr ""
475
+
476
+ #: themes/frame/frame-theme.php:257
477
+ msgid "MINUTES"
478
+ msgstr ""
479
+
480
+ #: themes/frame/frame-theme.php:263
481
+ msgid "SECONDS"
482
+ msgstr ""
483
+
484
+ #: themes/frame/frame-theme.php:289
485
+ msgid "Insert your email address"
486
+ msgstr ""
487
+
488
+ #: themes/hardwork/hardwork-settings.php:67
489
+ msgid "Enable Overlay Color"
490
+ msgstr ""
niteo-cmp.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: CMP - Coming Soon & Maintenance Plugin
4
  Plugin URI: https://wordpress.org/plugins/cmp-coming-soon-maintenance/
5
  Description: Display customizable landing page for Coming Soon, Maintenance & Under Construction page.
6
- Version: 1.0.1
7
  Author: NiteoThemes
8
  Author URI: http://www.niteo.cz
9
  Text Domain: cmp
@@ -122,16 +122,43 @@ class niteo_cmp {
122
  if ( $this->cmp_status() == 1 || $this->cmp_status() == 2 ) {
123
 
124
  if ( !is_user_logged_in() ) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
125
  // if maintanance mode set headers
126
- if( $this->cmp_status() == '1' ){
127
  header('HTTP/1.1 503 Service Temporarily Unavailable');
128
  header('Status: 503 Service Temporarily Unavailable');
129
  header('Retry-After: 86400'); // retry in a day
130
  }
131
 
132
- // render html theme page
133
- require_once (dirname(__FILE__) . '/themes/'.$this->cmp_selectedTheme().'/'.$this->cmp_selectedTheme().'-theme.php');
134
- die();
 
 
135
 
136
  }
137
  }
@@ -240,10 +267,15 @@ class niteo_cmp {
240
  // returns list of premium themes => manually defined
241
  function cmp_plugin_premium() {
242
  $premium_themes = array();
243
- // array_push($premium_themes, array('name' => 'demo1', 'url' => 'https://creativemarket.com/NiteoThemes', 'price' => '10'));
244
  return $premium_themes;
245
  }
246
 
 
 
 
 
 
247
 
248
  function cmp_textDomain() {
249
  load_plugin_textdomain( 'cmp', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
3
  Plugin Name: CMP - Coming Soon & Maintenance Plugin
4
  Plugin URI: https://wordpress.org/plugins/cmp-coming-soon-maintenance/
5
  Description: Display customizable landing page for Coming Soon, Maintenance & Under Construction page.
6
+ Version: 1.1.0
7
  Author: NiteoThemes
8
  Author URI: http://www.niteo.cz
9
  Text Domain: cmp
122
  if ( $this->cmp_status() == 1 || $this->cmp_status() == 2 ) {
123
 
124
  if ( !is_user_logged_in() ) {
125
+
126
+ // check for themes with countdown timer
127
+ if ( in_array($this->cmp_selectedTheme(), $this->cmp_plugin_countdown_themes()) ){
128
+ // if counter is enabled
129
+ if ( get_option('niteoCS_counter', '1') == '1' ) {
130
+ // if date is set
131
+ if ( get_option('niteoCS_counter_date' ) && get_option('niteoCS_counter_date' ) != '' ) {
132
+ // if timer < timestamp do set action
133
+ if ( get_option('niteoCS_counter_date' ) < time() ) {
134
+ // if action set to disable cmp
135
+ if (get_option('niteoCS_countdown_action') == 'disable-cmp') {
136
+ update_option('niteoCS_activation', '0');
137
+ }
138
+
139
+ // if action set to redirect
140
+ if (get_option('niteoCS_countdown_action') == 'redirect') {
141
+ $redirect_url = esc_url(get_option('niteoCS_countdown_redirect'));
142
+ header('Location: '.$redirect_url);
143
+ die();
144
+ }
145
+ }
146
+ }
147
+ }
148
+ }
149
+
150
  // if maintanance mode set headers
151
+ if ( $this->cmp_status() == '1' ){
152
  header('HTTP/1.1 503 Service Temporarily Unavailable');
153
  header('Status: 503 Service Temporarily Unavailable');
154
  header('Retry-After: 86400'); // retry in a day
155
  }
156
 
157
+ // render html theme page
158
+ if ( file_exists(dirname(__FILE__) . '/themes/'.$this->cmp_selectedTheme().'/'.$this->cmp_selectedTheme().'-theme.php') ) {
159
+ require_once (dirname(__FILE__) . '/themes/'.$this->cmp_selectedTheme().'/'.$this->cmp_selectedTheme().'-theme.php');
160
+ die();
161
+ }
162
 
163
  }
164
  }
267
  // returns list of premium themes => manually defined
268
  function cmp_plugin_premium() {
269
  $premium_themes = array();
270
+ array_push($premium_themes, array('name' => 'frame', 'url' => 'https://creativemarket.com/NiteoThemes/1373921-CMP-Frame-Coming-Soon-WP-Theme', 'price' => '10'));
271
  return $premium_themes;
272
  }
273
 
274
+ // returns list of with countdown
275
+ function cmp_plugin_countdown_themes() {
276
+ $counter_themes = array('frame');
277
+ return $counter_themes;
278
+ }
279
 
280
  function cmp_textDomain() {
281
  load_plugin_textdomain( 'cmp', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
  === CMP - Coming Soon & Maintenance Plugin by NiteoThemes ===
2
- Contributors: niteo
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=KV2JFJ8NCBYLW&lc=US&item_name=NiteoThemes&item_number=comingsoon&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted
4
- Tags: under construction, construction page, maintenance mode, landing page, launch page, launching, security, coming soon, comingsoon, customizable, offline, offline page, unavailable, free, unsplash, subscribe form
5
  Requires at least: 3.0
6
  Tested up to: 4.7.2
7
- Stable tag: 1.0.1
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -12,11 +12,12 @@ Create and customize your own landing page for Coming soon Page or Maintenance m
12
 
13
  == Description ==
14
 
15
- Free plugin to create and customize your own landing page for Coming soon Page or Maintenance mode with no limitations. Setup custom logo, graphics, messages, subscribe form, your social networks, colors, and many more. No commercials, no PRO versions, just intuitive and clean user interface.
16
 
17
  <h3>Preview</h3>
18
  <a href="http://comingsoon.niteo.cz/?cmp_preview=true&theme=construct" target="_blank">Click for preview of Construct Theme >></a><br>
19
  <a href="http://comingsoon.niteo.cz/?cmp_preview=true&theme=hardwork" target="_blank">Click for preview of Hardwork Theme >></a>
 
20
 
21
  <h3>Features</h3>
22
  <ul>
@@ -42,7 +43,7 @@ Free plugin to create and customize your own landing page for Coming soon Page o
42
  <h3>Install from WordPress Plugin Dashboard</h3>
43
  <ul>
44
  <li>Navigate to the 'Add New' in the plugins dashboard</li>
45
- <li>Search for 'CMP - Coming Soon'</li>
46
  <li>Click 'Install Now'</li>
47
  <li>Activate the plugin on the Plugin dashboard</li>
48
  <li>To Setup click Settings->CMP Settings and change the settings there</li>
@@ -52,7 +53,7 @@ Free plugin to create and customize your own landing page for Coming soon Page o
52
  <ul>
53
  <li>Navigate to the 'Add New' in the plugins dashboard</li>
54
  <li>Navigate to the 'Upload' area</li>
55
- <li>Download <code>cmp-coming-soon-maintenance.zip</code> and select <code>cmp-coming-soon-maintenance.zip</code> from your directory</li>
56
  <li>Click 'Install Now'</li>
57
  <li>Activate the plugin in the Plugin dashboard</li>
58
  <li>To Setup click Settings->CMP Settings and change the settings there</li>
@@ -62,8 +63,8 @@ Free plugin to create and customize your own landing page for Coming soon Page o
62
  <ul>
63
  <li>Navigate to the 'Add New' in the plugins dashboard</li>
64
  <li>Navigate to the 'Upload' area</li>
65
- <li>Download <code>cmp-coming-soon-maintenance.zip</code> and extract the <code>cmp-coming-soon-maintenance.zip</code> zip file to your computer</li>
66
- <li>Upload the extracted <code>cmp-coming-soon-maintenance</code> directory to the <code>/wp-content/plugins/</code> directory</li>
67
  <li>Activate the plugin in the Plugin dashboard</li>
68
  <li>To Setup click Settings->CMP Settings and change the settings there</li>
69
  </ul>
@@ -97,6 +98,12 @@ Free plugin to create and customize your own landing page for Coming soon Page o
97
 
98
 
99
  == Changelog ==
 
 
 
 
 
 
100
  <h4>1.0.1</h4>
101
  <ul>
102
  <li>Resolved bug with save settings on old PHP version.</li>
1
  === CMP - Coming Soon & Maintenance Plugin by NiteoThemes ===
2
+ Contributors: NiteoThemes
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=KV2JFJ8NCBYLW&lc=US&item_name=NiteoThemes&item_number=comingsoon&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted
4
+ Tags: under construction, construction page, maintenance mode, landing page, launch page, launching, security, coming soon, customizable, offline, offline page, unavailable, free, unsplash, subscribe form
5
  Requires at least: 3.0
6
  Tested up to: 4.7.2
7
+ Stable tag: 1.1.1
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
10
 
12
 
13
  == Description ==
14
 
15
+ Free plugin to create and customize your own Coming Soon or Maintenance landing page. Setup custom logos, background graphics, texts, subscribe form, your social networks, fonts and colors, and many more.
16
 
17
  <h3>Preview</h3>
18
  <a href="http://comingsoon.niteo.cz/?cmp_preview=true&theme=construct" target="_blank">Click for preview of Construct Theme >></a><br>
19
  <a href="http://comingsoon.niteo.cz/?cmp_preview=true&theme=hardwork" target="_blank">Click for preview of Hardwork Theme >></a>
20
+ <a href="http://comingsoon.niteo.cz/?cmp_preview=true&theme=frame" target="_blank">Click for preview of Frame Theme >></a>
21
 
22
  <h3>Features</h3>
23
  <ul>
43
  <h3>Install from WordPress Plugin Dashboard</h3>
44
  <ul>
45
  <li>Navigate to the 'Add New' in the plugins dashboard</li>
46
+ <li>Search for 'Coming Soon & Maintanance by Niteo'</li>
47
  <li>Click 'Install Now'</li>
48
  <li>Activate the plugin on the Plugin dashboard</li>
49
  <li>To Setup click Settings->CMP Settings and change the settings there</li>
53
  <ul>
54
  <li>Navigate to the 'Add New' in the plugins dashboard</li>
55
  <li>Navigate to the 'Upload' area</li>
56
+ <li>Download <code>comingsoon.zip</code> and select <code>comingsoon.zip</code> from your directory</li>
57
  <li>Click 'Install Now'</li>
58
  <li>Activate the plugin in the Plugin dashboard</li>
59
  <li>To Setup click Settings->CMP Settings and change the settings there</li>
63
  <ul>
64
  <li>Navigate to the 'Add New' in the plugins dashboard</li>
65
  <li>Navigate to the 'Upload' area</li>
66
+ <li>Download <code>comingsoon.zip</code> and extract the <code>comingsoon.zip</code> zip file to your computer</li>
67
+ <li>Upload the extracted <code>comingsoon</code> directory to the <code>/wp-content/plugins/</code> directory</li>
68
  <li>Activate the plugin in the Plugin dashboard</li>
69
  <li>To Setup click Settings->CMP Settings and change the settings there</li>
70
  </ul>
98
 
99
 
100
  == Changelog ==
101
+ <h4>1.1.0</h4>
102
+ <ul>
103
+ <li>New predefined theme: CMP Frame</li>
104
+ <li>Added option to display Label for default CMP Subscribe form.</li>
105
+ <li>Small changes in CMP-Settings page.</li>
106
+ </ul>
107
  <h4>1.0.1</h4>
108
  <ul>
109
  <li>Resolved bug with save settings on old PHP version.</li>
themes/construct/construct-settings.php CHANGED
@@ -34,19 +34,19 @@ if ( isset($_POST['niteoCS_background_color_construct']) ) {
34
  ?>
35
 
36
  <div class="table-wrapper customization">
37
- <h3><?php _e('Customize Colors', 'comingSoon');?></h3>
38
  <table class="customization">
39
  <tr>
40
- <th><h4><?php _e('Active Color', 'comingSoon');?></h4></th>
41
  <td>
42
  <fieldset>
43
  <input type="text" name="niteoCS_active_color_construct" id="niteoCS_active_color" value="<?php echo esc_attr( $niteoCS_active_color); ?>" data-default-color="#f37004" class="regular-text code"><br>
44
- <span><?php _e('Headings and active elements color (buttons, hover links, etc).', 'comingSoon');?></span>
45
  </fieldset>
46
  </td>
47
  </tr>
48
  <tr>
49
- <th><h4><?php _e('Font Color', 'comingSoon');?></h4></th>
50
  <td>
51
  <fieldset>
52
  <input type="text" name="niteoCS_font_color_construct" id="niteoCS_font_color" value="<?php echo esc_attr( $niteoCS_font_color); ?>" data-default-color="#686868" class="regular-text code"><br>
@@ -54,7 +54,7 @@ if ( isset($_POST['niteoCS_background_color_construct']) ) {
54
  </td>
55
  </tr>
56
  <tr>
57
- <th><h4><?php _e('Background Color', 'comingSoon');?></h4></th>
58
  <td>
59
  <fieldset>
60
  <input type="text" name="niteoCS_background_color_construct" id="niteoCS_background_color" value="<?php echo esc_attr( $niteoCS_background_color); ?>" data-default-color="#ffffff" class="regular-text code"><br>
34
  ?>
35
 
36
  <div class="table-wrapper customization">
37
+ <h3><?php _e('Customize Colors', 'cmp');?></h3>
38
  <table class="customization">
39
  <tr>
40
+ <th><h4><?php _e('Active Color', 'cmp');?></h4></th>
41
  <td>
42
  <fieldset>
43
  <input type="text" name="niteoCS_active_color_construct" id="niteoCS_active_color" value="<?php echo esc_attr( $niteoCS_active_color); ?>" data-default-color="#f37004" class="regular-text code"><br>
44
+ <span><?php _e('Headings and active elements color (buttons, hover links, etc).', 'cmp');?></span>
45
  </fieldset>
46
  </td>
47
  </tr>
48
  <tr>
49
+ <th><h4><?php _e('Font Color', 'cmp');?></h4></th>
50
  <td>
51
  <fieldset>
52
  <input type="text" name="niteoCS_font_color_construct" id="niteoCS_font_color" value="<?php echo esc_attr( $niteoCS_font_color); ?>" data-default-color="#686868" class="regular-text code"><br>
54
  </td>
55
  </tr>
56
  <tr>
57
+ <th><h4><?php _e('Background Color', 'cmp');?></h4></th>
58
  <td>
59
  <fieldset>
60
  <input type="text" name="niteoCS_background_color_construct" id="niteoCS_background_color" value="<?php echo esc_attr( $niteoCS_background_color); ?>" data-default-color="#ffffff" class="regular-text code"><br>
themes/construct/construct-theme.php CHANGED
@@ -28,6 +28,7 @@
28
  $unplash_feed = get_option('niteoCS_unsplash_feed', '0');
29
  $body_title = get_option('niteoCS_body_title', 'SOMETHING IS HAPPENING!');
30
  $subscribe = get_option('niteoCS_subscribe_type', '0');
 
31
  $copyright = get_option('niteoCS_copyright', 'Copyright 2017 NiteoThemes. All rights reserved.');
32
  $social_title = get_option('niteoCS_soc_title', 'GET SOCIAL WITH US');
33
 
@@ -117,7 +118,6 @@
117
 
118
  <?php
119
 
120
-
121
  // check for mobile/desktop and determine image size
122
  if (preg_match("/(android|avantgo|blackberry|bolt|boost|cricket|docomo|fone|hiptop|mini|mobi|palm|phone|pie|tablet|up\.browser|up\.link|webos|wos)/i", $_SERVER["HTTP_USER_AGENT"])) {
123
  $size = 'large';
@@ -227,8 +227,14 @@
227
  // if subsctbiers is niteo, render our html form
228
  } else if ( $subscribe == '2' ) { ?>
229
  <form id="subscribe-form" method="post">
230
- <input type="email" name="EMAIL" placeholder="Your email address" required>
231
  <?php wp_nonce_field('save_options','save_options_field'); ?>
 
 
 
 
 
 
 
232
  <input type="submit" value="Sign up">
233
 
234
  <div style="display: none;">
28
  $unplash_feed = get_option('niteoCS_unsplash_feed', '0');
29
  $body_title = get_option('niteoCS_body_title', 'SOMETHING IS HAPPENING!');
30
  $subscribe = get_option('niteoCS_subscribe_type', '0');
31
+ $niteoCS_subscribe_label= get_option('niteoCS_subscribe_label');
32
  $copyright = get_option('niteoCS_copyright', 'Copyright 2017 NiteoThemes. All rights reserved.');
33
  $social_title = get_option('niteoCS_soc_title', 'GET SOCIAL WITH US');
34
 
118
 
119
  <?php
120
 
 
121
  // check for mobile/desktop and determine image size
122
  if (preg_match("/(android|avantgo|blackberry|bolt|boost|cricket|docomo|fone|hiptop|mini|mobi|palm|phone|pie|tablet|up\.browser|up\.link|webos|wos)/i", $_SERVER["HTTP_USER_AGENT"])) {
123
  $size = 'large';
227
  // if subsctbiers is niteo, render our html form
228
  } else if ( $subscribe == '2' ) { ?>
229
  <form id="subscribe-form" method="post">
 
230
  <?php wp_nonce_field('save_options','save_options_field'); ?>
231
+ <?php
232
+ if ( $niteoCS_subscribe_label != '' ) { ?>
233
+ <label for="EMAIL"><?php echo esc_html($niteoCS_subscribe_label);?></label>
234
+ <?php
235
+ } ?>
236
+ <input type="email" name="EMAIL" placeholder="Your email address" required>
237
+
238
  <input type="submit" value="Sign up">
239
 
240
  <div style="display: none;">
themes/frame_thumbnail.jpg ADDED
Binary file
themes/hardwork/hardwork-settings.php CHANGED
@@ -49,11 +49,11 @@ if ( $_SERVER['REQUEST_METHOD'] == 'POST' ) {
49
  </style>
50
 
51
  <div class="table-wrapper customization">
52
- <h3><?php _e('Customize Colors', 'comingSoon');?></h3>
53
  <table class="customization">
54
 
55
  <tr>
56
- <th><h4><?php _e('Font Color', 'comingSoon');?></h4></th>
57
  <td>
58
  <fieldset>
59
  <input type="text" name="niteoCS_font_color_hardwork" id="niteoCS_font_color" value="<?php echo esc_attr( $niteoCS_font_color); ?>" data-default-color="#ffffff" class="regular-text code"><br>
@@ -61,16 +61,16 @@ if ( $_SERVER['REQUEST_METHOD'] == 'POST' ) {
61
  </td>
62
  </tr>
63
  <tr>
64
- <th><h4><?php _e('Overlay Color', 'comingSoon');?></h4></th>
65
  <td>
66
  <fieldset class="padding-bottom">
67
- <input type="checkbox" name="niteoCS_overlay_checkbox_hardwork" id="niteoCS_overlay_checkbox" value="1" <?php checked( '1', get_option( 'niteoCS_overlay_checkbox', '1' ) ); ?> class="regular-text code"><label for="niteoCS_overlay_checkbox"><?php _e('Enable Overlay Color', 'comingSoon');?></label><br>
68
  </fieldset>
69
 
70
  <fieldset id="overlay-color">
71
  <input type="text" name="niteoCS_overlay_color_hardwork]" id="niteoCS_overlay_color" value="<?php echo esc_attr( $niteoCS_overlay_color); ?>" data-default-color="#0a0a0a" class="regular-text code"><br>
72
 
73
- <label for="niteoCS_overlay_opacity"><?php _e('Overlay Opacity', 'comingSoon');?></label><br>
74
  <input type="range" id="niteoCS_overlay_opacity" name="niteoCS_overlay_opacity_hardwork" min="0" max="1" step="0.1"value="<?php echo esc_attr( $niteoCS_overlay_opacity); ?>" />
75
  <p class="opacity-value">Current value: <span id="current-opacity"><?php echo esc_attr( $niteoCS_overlay_opacity); ?></span></p>
76
  </fieldset>
49
  </style>
50
 
51
  <div class="table-wrapper customization">
52
+ <h3><?php _e('Customize Colors', 'cmp');?></h3>
53
  <table class="customization">
54
 
55
  <tr>
56
+ <th><h4><?php _e('Font Color', 'cmp');?></h4></th>
57
  <td>
58
  <fieldset>
59
  <input type="text" name="niteoCS_font_color_hardwork" id="niteoCS_font_color" value="<?php echo esc_attr( $niteoCS_font_color); ?>" data-default-color="#ffffff" class="regular-text code"><br>
61
  </td>
62
  </tr>
63
  <tr>
64
+ <th><h4><?php _e('Overlay Color', 'cmp');?></h4></th>
65
  <td>
66
  <fieldset class="padding-bottom">
67
+ <input type="checkbox" name="niteoCS_overlay_checkbox_hardwork" id="niteoCS_overlay_checkbox" value="1" <?php checked( '1', get_option( 'niteoCS_overlay_checkbox', '1' ) ); ?> class="regular-text code"><label for="niteoCS_overlay_checkbox"><?php _e('Enable Overlay Color', 'cmp');?></label><br>
68
  </fieldset>
69
 
70
  <fieldset id="overlay-color">
71
  <input type="text" name="niteoCS_overlay_color_hardwork]" id="niteoCS_overlay_color" value="<?php echo esc_attr( $niteoCS_overlay_color); ?>" data-default-color="#0a0a0a" class="regular-text code"><br>
72
 
73
+ <label for="niteoCS_overlay_opacity"><?php _e('Overlay Opacity', 'cmp');?></label><br>
74
  <input type="range" id="niteoCS_overlay_opacity" name="niteoCS_overlay_opacity_hardwork" min="0" max="1" step="0.1"value="<?php echo esc_attr( $niteoCS_overlay_opacity); ?>" />
75
  <p class="opacity-value">Current value: <span id="current-opacity"><?php echo esc_attr( $niteoCS_overlay_opacity); ?></span></p>
76
  </fieldset>