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

Version Description

Download this release

Release Info

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

Code changes from version 1.0.0 to 1.2.1

cmp-options.php CHANGED
@@ -11,12 +11,19 @@ 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', '');
18
  $logo_id = get_option('niteoCS_logo_id');
19
- $logo_url = wp_get_attachment_image_src($logo_id, 'medium')[0];
 
 
 
 
 
 
 
20
  $niteoCS_banner = get_option('niteoCS_banner', '0');
21
  $banner_id = get_option('niteoCS_banner_id');
22
  $unsplash_feed = get_option('niteoCS_unsplash_feed', '0');
@@ -27,6 +34,8 @@ $unsplash_category = get_option('niteoCS_unsplash_category', 'buildings');
27
  $niteoCS_cat_keyword = get_option('niteoCS_cat_keyword');
28
  $niteoCS_soc_title = get_option('niteoCS_soc_title', 'GET SOCIAL WITH US');
29
  $niteoCS_subscribe_type = get_option('niteoCS_subscribe_type', '0');
 
 
30
  $subscriber_list = get_option('niteoCS_subscribers_list');
31
  $niteoCS_csv_export_time = get_option('niteoCS_csv_export_time');
32
  $niteoCS_font_content = get_option('niteoCS_font_content', 'Average Sans');
@@ -57,7 +66,12 @@ $premium = $this->cmp_plugin_premium();
57
  if (isset($_POST['niteoCS_logo_id']) && ( is_numeric($_POST['niteoCS_logo_id']) || empty($_POST['niteoCS_logo_id']))) {
58
  update_option('niteoCS_logo_id', sanitize_text_field($_POST['niteoCS_logo_id']));
59
  $logo_id = get_option('niteoCS_logo_id');
60
- $logo_url = wp_get_attachment_image_src($logo_id, 'medium')[0];
 
 
 
 
 
61
  }
62
 
63
  if (isset($_POST['niteoCS_banner']) && is_numeric($_POST['niteoCS_banner'])) {
@@ -168,6 +182,10 @@ if (isset($_POST['niteoCS_subscribe_type']) && is_numeric($_POST['niteoCS_subscr
168
  $niteoCS_subscribe_type= stripslashes(get_option('niteoCS_subscribe_type'));
169
  }
170
 
 
 
 
 
171
 
172
  if (isset($_POST['niteoCS_font_headings'])) {
173
  update_option('niteoCS_font_headings', sanitize_text_field($_POST['niteoCS_font_headings']));
@@ -257,7 +275,7 @@ if( isset($_POST['submit_theme']) ) {
257
  WP_Filesystem();
258
  $source_path = $movefile['file'];
259
  $theme_name = str_replace('.zip', '', $filename);
260
- $destination_path = glob( plugin_dir_path( __FILE__ ) . 'themes/' )[0];
261
 
262
  // create new theme DIR
263
  if ( wp_mkdir_p( $destination_path ) ) {
@@ -267,15 +285,17 @@ if( isset($_POST['submit_theme']) ) {
267
  if ( $unzipfile ) {
268
  // delete FILE
269
  wp_delete_file( $source_path );
270
- array_push( $theme_array, $theme_name );
271
- _e('<p class="comingsoon-success">Successfully installed new Theme!</p>', 'cmp');
 
 
272
 
273
  } else {
274
- _e('<p class="comingsoon-error">There was an error unzipping the file!</p>', 'cmp');
275
  }
276
 
277
  } else {
278
- _e('<p class="comingsoon-error">Error creating Theme subdirectory!</p>', 'cmp');
279
  }
280
 
281
  } else {
@@ -286,7 +306,7 @@ if( isset($_POST['submit_theme']) ) {
286
  echo $movefile['error'];
287
  }
288
  } else {
289
- 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>';
290
  }
291
 
292
  add_filter('upload_mimes', array($this, 'niteo_remove_zip_mime'));
@@ -311,7 +331,7 @@ add_thickbox();
311
  <div id="icon-options-general" class="icon32">
312
  <br />
313
  </div>
314
- <form method="post" action="<?php echo $GLOBALS['PHP_SELF'] . '?page=cmp-settings'; ?>" id="csoptions">
315
 
316
  <h2 class="nav-tab-wrapper">
317
  <a class="nav-tab nav-tab-active settings" href="<?php echo admin_url(); ?>options-general.php?page=cmp-settings" data-tab="settings"><i class="fa fa-cog" aria-hidden="true"></i><?php _e('Settings', 'cmp');?></a>
@@ -340,7 +360,7 @@ add_thickbox();
340
  <input type="radio" name="activate" value="1"<?php if ($this->cmp_status() == 1) { echo ' checked="checked"'; } ?>>&nbsp;<?php _e('Maintanance Mode', 'cmp');?>
341
  <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>
342
  </label><br />
343
- <label title="comingsoon">
344
  <input type="radio" name="activate" value="2"<?php if ($this->cmp_status() == 2) { echo ' checked="checked"'; } ?>>&nbsp;<?php _e('Coming Soon', 'cmp');?>
345
  <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>
346
  </label>
@@ -367,7 +387,7 @@ add_thickbox();
367
  <div class="thumbnail-holder">
368
  <label title="<?php echo esc_attr($theme);?>">
369
  <img src="<?php echo esc_url( plugins_url().'/'.$this->installedFolder.'\/themes/'. $theme . '/img/'. $theme . '_thumbnail.jpg' );?>" alt="<?php echo esc_attr($theme);?>">
370
- <input type="radio" name="select_theme" value="<?php echo esc_attr($theme);?>" id="displayOption-<?php echo esc_attr($theme);?>"<?php if ( $this->cmp_selectedTheme() == $theme ) { echo ' checked="checked"'; } ?>>&nbsp;<?php echo ucwords(esc_html($theme));?>
371
  </label>
372
  </div>
373
  <?php
@@ -394,16 +414,17 @@ add_thickbox();
394
  // if not in available themes array, display buy button
395
  if ( !in_array( $premium_theme['name'], $theme_array) ) { ?>
396
 
397
- <img src="<?php echo esc_url( plugins_url().'/'.$this->installedFolder.'\/premium/'. $premium_theme['name']. '.jpg' );?>" alt="<?php echo esc_attr($premium_theme['name']);?>">
398
  <a class="button" href="<?php echo esc_url($premium_theme['url']);?>" target="_blank">Buy for <?php echo esc_html($premium_theme['price']);?> USD</a>
399
-
400
  </div>
401
  <?php
402
  } else { ?>
403
  <label title="<?php echo esc_attr($premium_theme['name']);?>">
404
- <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']);?>">
405
- <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']));?>
406
  </label>
 
 
407
  <?php
408
  }
409
  } ?>
@@ -427,7 +448,7 @@ add_thickbox();
427
 
428
  <div class="logo-wrapper">
429
  <?php
430
- if ( $logo_url !== '' ) {
431
  echo '<img src="'.esc_url($logo_url).'" alt="">';
432
  } ?>
433
  </div>
@@ -481,7 +502,10 @@ add_thickbox();
481
  if ( isset( $banner_id ) && $banner_id != '' ) {
482
  $ids = explode( ',', $banner_id );
483
  foreach ( $ids as $id ) {
484
- echo '<img src="'.wp_get_attachment_image_src($id, 'large')[0].'" alt="">';
 
 
 
485
  }
486
  }
487
  ?>
@@ -537,7 +561,7 @@ add_thickbox();
537
 
538
  <fieldset id="default_banner">
539
  <div class="banner-wrapper">
540
- <img src="<?php echo esc_url( plugins_url().'/'.$this->installedFolder. '/themes/'.$this->cmp_selectedTheme().'/img/'.$this->cmp_selectedTheme().'_banner_medium.jpg');?>" alt="Default Media">
541
  </div>
542
  <input id="delete-banner" type="button" class="button" value="Remove Banner" />
543
  </fieldset>
@@ -546,6 +570,13 @@ add_thickbox();
546
  </table>
547
  </div>
548
 
 
 
 
 
 
 
 
549
  <div class="table-wrapper customization">
550
  <h3><?php _e('Customize Fonts', 'cmp');?></h3>
551
  <table class="customization">
@@ -627,10 +658,10 @@ add_thickbox();
627
  </div>
628
 
629
  <div class="table-wrapper customization">
630
- <h3><?php _e('Content', 'comingSoon');?></h3>
631
  <table class="customization">
632
- <tr>
633
- <th><h4><?php _e('Body Title', 'comingSoon');?></h4></th>
634
  <td>
635
  <fieldset>
636
  <input type="text" name="niteoCS_body_title" id="niteoCS_body_title" value="<?php echo stripslashes(esc_attr( $niteoCS_body_title)); ?>" class="regular-text code">
@@ -639,7 +670,7 @@ add_thickbox();
639
  </tr>
640
 
641
  <tr>
642
- <th><h4><?php _e('Body Message', 'comingSoon');?></h4></th>
643
  <td>
644
  <?php wp_editor( stripslashes( $this->niteo_sanitize_html( $body ) ), 'niteoCS_body', $settings = array('textarea_name'=>'niteoCS_body', 'editor_height'=>'300') ); ?>
645
  </td>
@@ -650,7 +681,7 @@ add_thickbox();
650
 
651
  <?php
652
  // include theme related settings
653
- include ( 'themes/'.$selectedTheme.'/'.$selectedTheme.'-settings.php' );
654
  ?>
655
 
656
  <div class="table-wrapper customization" id="subscribe-section">
@@ -709,7 +740,11 @@ add_thickbox();
709
 
710
  <td id="subscribe-niteo">
711
  <fieldset>
712
- <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>
 
 
 
 
713
 
714
  <p><?php _e('Total Subscribers: ', 'cmp'); echo $subscriber_list ? count( $subscriber_list ) : '0';?></p>
715
  <p><?php _e('Since last export: ', 'cmp'); echo $new_subs;?></p>
@@ -775,11 +810,11 @@ add_thickbox();
775
  </div>
776
 
777
  <div class="table-wrapper customization" id="copyright-section">
778
- <h3><?php _e('Footer Content', 'comingSoon');?></h3>
779
  <table class="customization">
780
 
781
  <tr>
782
- <th><h4><?php _e('Copyright', 'comingSoon');?></h4></th>
783
  <td>
784
  <fieldset>
785
  <input type="text" name="niteoCS_copyright" id="niteoCS_copyright" value="<?php echo esc_attr( $this->niteo_sanitize_html($niteoCS_copyright)); ?>" class="regular-text code">
@@ -794,7 +829,7 @@ add_thickbox();
794
  <h3><?php _e('SEO Settings', 'cmp');?></h3>
795
  <table class="seo">
796
 
797
- <tr>
798
  <th><h4><?php _e('Header Title', 'cmp');?></h4></th>
799
  <td>
800
  <fieldset>
@@ -843,7 +878,7 @@ add_thickbox();
843
  </form>
844
 
845
  <div class="upload-plugin comingsoon install">
846
- <form action="<?php echo $GLOBALS['PHP_SELF'] . '?page=cmp-settings'; ?>" class="wp-upload-form" method="post" enctype="multipart/form-data">
847
  <table class="install">
848
  <tr>
849
  <td>
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', '');
18
  $logo_id = get_option('niteoCS_logo_id');
19
+
20
+ if ( $logo_id != '' ) {
21
+ $logo_url = wp_get_attachment_image_src($logo_id, 'medium');
22
+ if ( isset($logo_url[0]) ){
23
+ $logo_url = $logo_url[0];
24
+ }
25
+ }
26
+
27
  $niteoCS_banner = get_option('niteoCS_banner', '0');
28
  $banner_id = get_option('niteoCS_banner_id');
29
  $unsplash_feed = get_option('niteoCS_unsplash_feed', '0');
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');
66
  if (isset($_POST['niteoCS_logo_id']) && ( is_numeric($_POST['niteoCS_logo_id']) || empty($_POST['niteoCS_logo_id']))) {
67
  update_option('niteoCS_logo_id', sanitize_text_field($_POST['niteoCS_logo_id']));
68
  $logo_id = get_option('niteoCS_logo_id');
69
+ if ( $logo_id != '' ) {
70
+ $logo_url = wp_get_attachment_image_src($logo_id, 'medium');
71
+ if ( isset($logo_url[0]) ){
72
+ $logo_url = $logo_url[0];
73
+ }
74
+ }
75
  }
76
 
77
  if (isset($_POST['niteoCS_banner']) && is_numeric($_POST['niteoCS_banner'])) {
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']));
275
  WP_Filesystem();
276
  $source_path = $movefile['file'];
277
  $theme_name = str_replace('.zip', '', $filename);
278
+ $destination_path = plugin_dir_path( __DIR__ ) . 'cmp-premium-themes/';
279
 
280
  // create new theme DIR
281
  if ( wp_mkdir_p( $destination_path ) ) {
285
  if ( $unzipfile ) {
286
  // delete FILE
287
  wp_delete_file( $source_path );
288
+ $premium_installed = array_map('basename', glob( $destination_path . '*', GLOB_ONLYDIR));
289
+ $theme_array = array_merge( $theme_array, $premium_installed );
290
+
291
+ _e('<p class="cmp-success">Successfully installed new Theme!</p>', 'cmp');
292
 
293
  } else {
294
+ _e('<p class="cmp-error">There was an error unzipping the file!</p>', 'cmp');
295
  }
296
 
297
  } else {
298
+ _e('<p class="cmp-error">Error creating Theme subdirectory!</p>', 'cmp');
299
  }
300
 
301
  } else {
306
  echo $movefile['error'];
307
  }
308
  } else {
309
+ 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>';
310
  }
311
 
312
  add_filter('upload_mimes', array($this, 'niteo_remove_zip_mime'));
331
  <div id="icon-options-general" class="icon32">
332
  <br />
333
  </div>
334
+ <form method="post" action="options-general.php?page=cmp-settings" id="csoptions">
335
 
336
  <h2 class="nav-tab-wrapper">
337
  <a class="nav-tab nav-tab-active settings" href="<?php echo admin_url(); ?>options-general.php?page=cmp-settings" data-tab="settings"><i class="fa fa-cog" aria-hidden="true"></i><?php _e('Settings', 'cmp');?></a>
360
  <input type="radio" name="activate" value="1"<?php if ($this->cmp_status() == 1) { echo ' checked="checked"'; } ?>>&nbsp;<?php _e('Maintanance Mode', 'cmp');?>
361
  <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>
362
  </label><br />
363
+ <label title="cmp">
364
  <input type="radio" name="activate" value="2"<?php if ($this->cmp_status() == 2) { echo ' checked="checked"'; } ?>>&nbsp;<?php _e('Coming Soon', 'cmp');?>
365
  <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>
366
  </label>
387
  <div class="thumbnail-holder">
388
  <label title="<?php echo esc_attr($theme);?>">
389
  <img src="<?php echo esc_url( plugins_url().'/'.$this->installedFolder.'\/themes/'. $theme . '/img/'. $theme . '_thumbnail.jpg' );?>" alt="<?php echo esc_attr($theme);?>">
390
+ <input type="radio" name="select_theme" value="<?php echo esc_attr($theme);?>" id="displayOption-<?php echo esc_attr($theme);?>"<?php if ( $this->cmp_selectedTheme() == $theme ) { echo ' checked="checked"'; } ?>>&nbsp;<?php echo ucwords(esc_html(str_replace('_', ' ', $theme)));?>
391
  </label>
392
  </div>
393
  <?php
414
  // if not in available themes array, display buy button
415
  if ( !in_array( $premium_theme['name'], $theme_array) ) { ?>
416
 
417
+ <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>
418
  <a class="button" href="<?php echo esc_url($premium_theme['url']);?>" target="_blank">Buy for <?php echo esc_html($premium_theme['price']);?> USD</a>
 
419
  </div>
420
  <?php
421
  } else { ?>
422
  <label title="<?php echo esc_attr($premium_theme['name']);?>">
423
+ <img src="<?php echo esc_url( plugins_url().'/cmp-premium-themes/'. $premium_theme['name'] . '/img/'. $premium_theme['name'] . '_thumbnail.jpg' );?>" alt="<?php echo esc_attr(ucwords($premium_theme['name']));?> Premium Theme">
424
+ <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(str_replace('_', ' ', $premium_theme['name'])));?>
425
  </label>
426
+
427
+ </div>
428
  <?php
429
  }
430
  } ?>
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>
502
  if ( isset( $banner_id ) && $banner_id != '' ) {
503
  $ids = explode( ',', $banner_id );
504
  foreach ( $ids as $id ) {
505
+ $img = wp_get_attachment_image_src($id, 'large');
506
+ if (isset($img[0])) {
507
+ echo '<img src="'.$img[0].'" alt="">';
508
+ }
509
  }
510
  }
511
  ?>
561
 
562
  <fieldset id="default_banner">
563
  <div class="banner-wrapper">
564
+ <img src="<?php echo esc_url($this->cmp_themeDirPath().$this->cmp_selectedTheme().'/img/'.$this->cmp_selectedTheme().'_banner_large.jpg');?>" alt="Default Media">
565
  </div>
566
  <input id="delete-banner" type="button" class="button" value="Remove Banner" />
567
  </fieldset>
570
  </table>
571
  </div>
572
 
573
+ <?php
574
+ // include theme slider settings, if exists
575
+ if (file_exists($this->cmp_themePath().$selectedTheme.'/'.$selectedTheme.'-slider_settings.php')) {
576
+ include ( $this->cmp_themePath().$selectedTheme.'/'.$selectedTheme.'-slider_settings.php' );
577
+ }
578
+ ?>
579
+
580
  <div class="table-wrapper customization">
581
  <h3><?php _e('Customize Fonts', 'cmp');?></h3>
582
  <table class="customization">
658
  </div>
659
 
660
  <div class="table-wrapper customization">
661
+ <h3><?php _e('Content', 'cmp');?></h3>
662
  <table class="customization">
663
+ <tr class="body-title">
664
+ <th><h4><?php _e('Body Title', 'cmp');?></h4></th>
665
  <td>
666
  <fieldset>
667
  <input type="text" name="niteoCS_body_title" id="niteoCS_body_title" value="<?php echo stripslashes(esc_attr( $niteoCS_body_title)); ?>" class="regular-text code">
670
  </tr>
671
 
672
  <tr>
673
+ <th><h4><?php _e('Body Message', 'cmp');?></h4></th>
674
  <td>
675
  <?php wp_editor( stripslashes( $this->niteo_sanitize_html( $body ) ), 'niteoCS_body', $settings = array('textarea_name'=>'niteoCS_body', 'editor_height'=>'300') ); ?>
676
  </td>
681
 
682
  <?php
683
  // include theme related settings
684
+ include ( $this->cmp_themePath().$selectedTheme.'/'.$selectedTheme.'-settings.php' );
685
  ?>
686
 
687
  <div class="table-wrapper customization" id="subscribe-section">
740
 
741
  <td id="subscribe-niteo">
742
  <fieldset>
743
+ <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>
744
+
745
+ <label class="subscribe" for="niteoCS_subscribe_label">Subscribe form Label
746
+ <input type="text" name="niteoCS_subscribe_label" id="niteoCS_subscribe_label" value="<?php echo esc_attr($niteoCS_subscribe_label );?>" class="regular-text code">
747
+ </label>
748
 
749
  <p><?php _e('Total Subscribers: ', 'cmp'); echo $subscriber_list ? count( $subscriber_list ) : '0';?></p>
750
  <p><?php _e('Since last export: ', 'cmp'); echo $new_subs;?></p>
810
  </div>
811
 
812
  <div class="table-wrapper customization" id="copyright-section">
813
+ <h3><?php _e('Footer Content', 'cmp');?></h3>
814
  <table class="customization">
815
 
816
  <tr>
817
+ <th><h4><?php _e('Copyright', 'cmp');?></h4></th>
818
  <td>
819
  <fieldset>
820
  <input type="text" name="niteoCS_copyright" id="niteoCS_copyright" value="<?php echo esc_attr( $this->niteo_sanitize_html($niteoCS_copyright)); ?>" class="regular-text code">
829
  <h3><?php _e('SEO Settings', 'cmp');?></h3>
830
  <table class="seo">
831
 
832
+ <tr class="body-title">
833
  <th><h4><?php _e('Header Title', 'cmp');?></h4></th>
834
  <td>
835
  <fieldset>
878
  </form>
879
 
880
  <div class="upload-plugin comingsoon install">
881
+ <form action="options-general.php?page=cmp-settings" class="wp-upload-form" method="post" enctype="multipart/form-data">
882
  <table class="install">
883
  <tr>
884
  <td>
comingsoon.js CHANGED
@@ -367,5 +367,70 @@ jQuery(document).ready(function($){
367
 
368
  }
369
  });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
370
  });
371
 
367
 
368
  }
369
  });
370
+
371
+ jQuery('#test-unsplash').click(function(e){
372
+ e.preventDefault();
373
+
374
+ var media_wrapper = jQuery('#unsplash-media');
375
+ var unsplash_feed = jQuery('#unsplash_banner select[name="unsplash_feed"] option:selected').val();
376
+ var unsp_url = '';
377
+ var cat = '';
378
+ var custom_str = '';
379
+
380
+ switch( unsplash_feed ) {
381
+ case '0':
382
+ unsp_url = jQuery('#niteoCS-unsplash-0').val();
383
+ break;
384
+
385
+ case '1':
386
+ unsp_url = jQuery('#niteoCS-unsplash-1').val();
387
+ cat = jQuery('#unsplash_banner select[name="unsplash_category"] option:selected').val();
388
+ custom_str = jQuery('#niteoCS-category-keyword').val();
389
+ break;
390
+
391
+ case '2':
392
+ unsp_url = jQuery('#niteoCS-unsplash-2').val();
393
+ break;
394
+
395
+ case '3':
396
+ unsp_url = jQuery('#niteoCS-unsplash-3').val();
397
+ if ( jQuery('#niteoCS_unsplash_feat' ).is( ':checked' ) ) {
398
+ cat = '1';
399
+ } else {
400
+ cat = '0';
401
+ }
402
+ break;
403
+
404
+ default:
405
+ // code block
406
+ }
407
+
408
+ var params = {feed: unsplash_feed, url: unsp_url, cat: cat, custom_str: custom_str, security: '<?php echo $ajax_nonce; ?>'};
409
+
410
+ jQuery(this).prop('disabled', true);
411
+ jQuery(this).html('<i class="fa fa-cog fa-spin fa-1x fa-fw"></i><span> loading..</span>');
412
+ media_wrapper.html('');
413
+
414
+
415
+ var data = {
416
+ action: 'niteo_unsplash',
417
+ security: '<?php echo $ajax_nonce; ?>',
418
+ params: params
419
+ };
420
+
421
+ $.post(ajaxurl, data, function(response) {
422
+ jQuery('#unsplash_img').remove();
423
+ img_url = response.replace('WIDTHxHEIGHT', '400x225');
424
+ jQuery('<img />', {src: img_url, id: 'unsplash_img'}).
425
+
426
+ one('load', function() { //Set something to run when it finishes loading
427
+ jQuery(this).appendTo(media_wrapper);
428
+ jQuery(this).fadeIn();
429
+ jQuery('#test-unsplash').prop('disabled', false);
430
+ jQuery('#test-unsplash').text('Test Unsplash');
431
+ });
432
+ });
433
+
434
+ });
435
  });
436
 
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,517 @@ 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-04-02 20:39+0200\n"
5
+ "PO-Revision-Date: 2017-04-02 20:39+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:663
 
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:701 themes/frame/frame-settings.php:109
71
+ #: themes/hardwork_premium/hardwork_premium-slider_settings.php:61
72
  msgid "Disabled"
73
  msgstr ""
74
 
75
+ #: cmp-options.php:358
76
  msgid ""
77
  "Disable plugin and display standard WordPress page to all users and indexing "
78
  "engines."
79
  msgstr ""
80
 
81
+ #: cmp-options.php:361
82
  msgid "Maintanance Mode"
83
  msgstr ""
84
 
85
+ #: cmp-options.php:362
86
  msgid ""
87
  "Returns 503 HTTP Service unavailable code to indexing robots. Set this "
88
  "option if your site is down due to maintanance and you want to display "
89
  "Maintanance page."
90
  msgstr ""
91
 
92
+ #: cmp-options.php:365
93
  msgid "Coming Soon"
94
  msgstr ""
95
 
96
+ #: cmp-options.php:366
97
  msgid ""
98
  "Returns standard 200 HTTP OK response code to indexing robots. Set this "
99
  "option if you want to use our plugin as \"Coming Soon\" page."
100
  msgstr ""
101
 
102
+ #: cmp-options.php:374
103
  msgid "Select Theme"
104
  msgstr ""
105
 
106
+ #: cmp-options.php:377 cmp-options.php:381
107
  msgid "Free Themes"
108
  msgstr ""
109
 
110
+ #: cmp-options.php:405 cmp-options.php:409
111
  msgid "Premium Themes"
112
  msgstr ""
113
 
114
+ #: cmp-options.php:442
115
  msgid "Logo"
116
  msgstr ""
117
 
118
+ #: cmp-options.php:445
119
  msgid "Upload or select Logo"
120
  msgstr ""
121
 
122
+ #: cmp-options.php:466
123
  msgid "Graphic Banner"
124
  msgstr ""
125
 
126
+ #: cmp-options.php:472
127
  msgid "Banner Settings"
128
  msgstr ""
129
 
130
+ #: cmp-options.php:477
131
  msgid "Custom Media"
132
  msgstr ""
133
 
134
+ #: cmp-options.php:483
135
  msgid "Unsplash library"
136
  msgstr ""
137
 
138
+ #: cmp-options.php:489
139
  msgid "Default Media"
140
  msgstr ""
141
 
142
+ #: cmp-options.php:501
143
  msgid ""
144
  "Pro Tip! You can select multiple Media from your library by holding CTRL"
145
  "+click (Command+click if you sit on MacOS) while selecting photos."
146
  msgstr ""
147
 
148
+ #: cmp-options.php:519
149
  msgid "Choose Unsplash Feed"
150
  msgstr ""
151
 
152
+ #: cmp-options.php:521
153
  msgid "Specific Photo"
154
  msgstr ""
155
 
156
+ #: cmp-options.php:522
157
  msgid "Random from Category"
158
  msgstr ""
159
 
160
+ #: cmp-options.php:523
161
  msgid "Random from Collection"
162
  msgstr ""
163
 
164
+ #: cmp-options.php:524
165
  msgid "Random Photo"
166
  msgstr ""
167
 
168
+ #: cmp-options.php:528
169
  msgid "Enter Unsplash Photo URL or Photo ID"
170
  msgstr ""
171
 
172
+ #: cmp-options.php:533
173
  msgid "Select Category"
174
  msgstr ""
175
 
176
+ #: cmp-options.php:535
177
  msgid "Buildings"
178
  msgstr ""
179
 
180
+ #: cmp-options.php:536
181
  msgid "Food"
182
  msgstr ""
183
 
184
+ #: cmp-options.php:537
185
  msgid "Nature"
186
  msgstr ""
187
 
188
+ #: cmp-options.php:538
189
  msgid "People"
190
  msgstr ""
191
 
192
+ #: cmp-options.php:539
193
  msgid "Technology"
194
  msgstr ""
195
 
196
+ #: cmp-options.php:540
197
  msgid "Objects"
198
  msgstr ""
199
 
200
+ #: cmp-options.php:543
201
  msgid "You can limit Category to Specific Keyword"
202
  msgstr ""
203
 
204
+ #: cmp-options.php:548
205
  msgid ""
206
  "Enter Unsplash Collection URL or Collection ID. Doesn`t work for Curated "
207
  "Collections."
208
  msgstr ""
209
 
210
+ #: cmp-options.php:553
211
  msgid "Specify search terms"
212
  msgstr ""
213
 
214
+ #: cmp-options.php:557
215
  msgid "Limit search only to Featured/Curated Photos"
216
  msgstr ""
217
 
218
+ #: cmp-options.php:583
219
  msgid "Customize Fonts"
220
  msgstr ""
221
 
222
+ #: cmp-options.php:587
223
  msgid "Headings Font"
224
  msgstr ""
225
 
226
+ #: cmp-options.php:590 cmp-options.php:623
227
  msgid "Select from predefined Google Fonts or insert Custom font"
228
  msgstr ""
229
 
230
+ #: cmp-options.php:608
231
  msgid "Custom font..."
232
  msgstr ""
233
 
234
+ #: cmp-options.php:612 cmp-options.php:646
235
  msgid "Enter name of "
236
  msgstr ""
237
 
238
+ #: cmp-options.php:620
239
  msgid "Content Font"
240
  msgstr ""
241
 
242
+ #: cmp-options.php:641
243
  msgid "Custom Font..."
244
  msgstr ""
245
 
246
+ #: cmp-options.php:666
247
+ msgid "Body Title"
248
+ msgstr ""
249
+
250
+ #: cmp-options.php:675
251
+ msgid "Body Message"
252
+ msgstr ""
253
+
254
+ #: cmp-options.php:690
255
  msgid "Subscribe Form"
256
  msgstr ""
257
 
258
+ #: cmp-options.php:696
259
  msgid "Subscribe Form Options"
260
  msgstr ""
261
 
262
+ #: cmp-options.php:707
263
  msgid "3rd Party Plugin"
264
  msgstr ""
265
 
266
+ #: cmp-options.php:713
267
  msgid "Niteo Subscribe"
268
  msgstr ""
269
 
270
+ #: cmp-options.php:721
271
  msgid "Subscribe Form is disabled."
272
  msgstr ""
273
 
274
+ #: cmp-options.php:730
275
+ msgid ""
276
+ "You can find Shortode in your Contact Form Plugin settings. Should be "
277
+ "something like: "
278
+ msgstr ""
279
+
280
+ #: cmp-options.php:732
281
  msgid ""
282
  "Your Subscribe Form should have only one input (type=email) and submit "
283
  "(input=submit). If you have more than one input field, our design will not "
284
  "work and you need to use custom CSS to style your Subscribe form."
285
  msgstr ""
286
 
287
+ #: cmp-options.php:733
288
  msgid "Example of Subscribe Form code for "
289
  msgstr ""
290
 
291
+ #: cmp-options.php:745
292
  msgid ""
293
  "Default subscribe form will be displayed to visitors. Only export of email "
294
  "addresses to .csv file is supported. Mailing List will be deleted after "
295
+ "deletion of CMP plugin."
296
  msgstr ""
297
 
298
+ #: cmp-options.php:751
299
  msgid "Total Subscribers: "
300
  msgstr ""
301
 
302
+ #: cmp-options.php:752
303
  msgid "Since last export: "
304
  msgstr ""
305
 
306
+ #: cmp-options.php:753
307
  msgid "Last Export Date: "
308
  msgstr ""
309
 
310
+ #: cmp-options.php:753
311
  msgid "Never exported"
312
  msgstr ""
313
 
314
+ #: cmp-options.php:764
315
  msgid "Social Media"
316
  msgstr ""
317
 
318
+ #: cmp-options.php:768
319
  msgid "Social Section Title"
320
  msgstr ""
321
 
322
+ #: cmp-options.php:777
323
  msgid "Social Media Icons"
324
  msgstr ""
325
 
326
+ #: cmp-options.php:815
327
+ msgid "Footer Content"
328
+ msgstr ""
329
+
330
+ #: cmp-options.php:819
331
+ msgid "Copyright"
332
+ msgstr ""
333
+
334
+ #: cmp-options.php:831
335
  msgid "SEO Settings"
336
  msgstr ""
337
 
338
+ #: cmp-options.php:835
339
  msgid "Header Title"
340
  msgstr ""
341
 
342
+ #: cmp-options.php:844
343
  msgid "Description"
344
  msgstr ""
345
 
346
+ #: cmp-options.php:852
347
+ msgid "Google Analytics Tracking ID"
348
  msgstr ""
349
 
350
+ #: cmp-options.php:863
351
  msgid "Enter Custom CSS"
352
  msgstr ""
353
 
354
+ #: cmp-options.php:877
355
  msgid "Save Changes"
356
  msgstr ""
357
 
358
+ #: cmp-options.php:887
359
  msgid "Install New Coming Soon Theme"
360
  msgstr ""
361
 
362
+ #: niteo-cmp.php:209
363
  msgid "Maintenance Mode Active"
364
  msgstr ""
365
 
366
+ #: niteo-cmp.php:211
367
  msgid "Coming Soon Mode Active"
368
  msgstr ""
369
 
370
+ #: niteo-cmp.php:400 niteo-cmp.php:408
371
  msgid "Thank you, your sign-up request was successful!"
372
  msgstr ""
373
 
374
+ #: niteo-cmp.php:411
375
  msgid "This email address has already been on our subscriber list."
376
  msgstr ""
377
 
378
+ #: niteo-cmp.php:416
379
  msgid "Please insert valid email."
380
  msgstr ""
381
 
382
+ #: themes/construct/construct-settings.php:37
383
+ #: themes/frame/frame-settings.php:151 themes/hardwork/hardwork-settings.php:52
384
+ #: themes/hardwork_premium/hardwork_premium-settings.php:51
385
  msgid "Customize Colors"
386
  msgstr ""
387
 
388
+ #: themes/construct/construct-settings.php:40
389
+ #: themes/frame/frame-settings.php:154
390
  msgid "Active Color"
391
  msgstr ""
392
 
393
+ #: themes/construct/construct-settings.php:44
394
+ msgid "Headings and active elements color (buttons, hover links, etc)."
395
  msgstr ""
396
 
397
+ #: themes/construct/construct-settings.php:49
398
+ #: themes/frame/frame-settings.php:164 themes/hardwork/hardwork-settings.php:56
399
+ #: themes/hardwork_premium/hardwork_premium-settings.php:55
400
  msgid "Font Color"
401
  msgstr ""
402
 
403
+ #: themes/construct/construct-settings.php:57
404
  msgid "Background Color"
405
  msgstr ""
406
 
407
+ #: themes/frame/frame-settings.php:92
408
+ msgid "Countdown Timer Setup"
 
409
  msgstr ""
410
 
411
+ #: themes/frame/frame-settings.php:98 themes/frame/frame-settings.php:124
412
+ msgid "Counter setup"
 
413
  msgstr ""
414
 
415
+ #: themes/frame/frame-settings.php:103
416
+ #: themes/hardwork_premium/hardwork_premium-slider_settings.php:55
417
+ msgid "Enabled"
418
  msgstr ""
419
 
420
+ #: themes/frame/frame-settings.php:117
421
+ msgid "Countdown Timer is disabled."
422
+ msgstr ""
423
+
424
+ #: themes/frame/frame-settings.php:121
425
+ msgid "Click on date input and set a date & time for a Countdown timer."
426
+ msgstr ""
427
+
428
+ #: themes/frame/frame-settings.php:127
429
+ msgid "Select Date.."
430
+ msgstr ""
431
+
432
+ #: themes/frame/frame-settings.php:129
433
+ msgid "Countdown action:"
434
+ msgstr ""
435
+
436
+ #: themes/frame/frame-settings.php:131
437
+ msgid "No action"
438
+ msgstr ""
439
+
440
+ #: themes/frame/frame-settings.php:132
441
+ msgid "Display custom text"
442
+ msgstr ""
443
+
444
+ #: themes/frame/frame-settings.php:133
445
+ msgid "Disable CMP Plugin Page"
446
+ msgstr ""
447
+
448
+ #: themes/frame/frame-settings.php:134
449
+ msgid "URL redirect"
450
  msgstr ""
451
 
452
+ #: themes/frame/frame-settings.php:137
453
+ msgid "Enter custom text"
454
+ msgstr ""
455
+
456
+ #: themes/frame/frame-settings.php:141
457
+ msgid "Enter redirect URL"
458
+ msgstr ""
459
+
460
+ #: themes/frame/frame-settings.php:173
461
+ msgid "Frame Background Color"
462
+ msgstr ""
463
+
464
+ #: themes/frame/frame-settings.php:183 themes/hardwork/hardwork-settings.php:64
465
+ #: themes/hardwork_premium/hardwork_premium-settings.php:63
466
  msgid "Overlay Color"
467
  msgstr ""
468
 
469
+ #: themes/frame/frame-settings.php:189 themes/hardwork/hardwork-settings.php:73
470
+ #: themes/hardwork_premium/hardwork_premium-settings.php:72
471
+ msgid "Overlay Opacity"
472
+ msgstr ""
473
+
474
+ #: themes/frame/frame-theme.php:252
475
+ msgid "DAYS"
476
+ msgstr ""
477
+
478
+ #: themes/frame/frame-theme.php:258
479
+ msgid "HOURS"
480
+ msgstr ""
481
+
482
+ #: themes/frame/frame-theme.php:265
483
+ msgid "MINUTES"
484
+ msgstr ""
485
+
486
+ #: themes/frame/frame-theme.php:271
487
+ msgid "SECONDS"
488
+ msgstr ""
489
+
490
+ #: themes/frame/frame-theme.php:297
491
+ msgid "Insert your email address"
492
+ msgstr ""
493
+
494
+ #: themes/hardwork/hardwork-settings.php:67
495
+ #: themes/hardwork_premium/hardwork_premium-settings.php:66
496
  msgid "Enable Overlay Color"
497
  msgstr ""
498
 
499
+ #: themes/hardwork_premium/hardwork_premium-slider_settings.php:44
500
+ msgid "Slider Setup"
501
+ msgstr ""
502
+
503
+ #: themes/hardwork_premium/hardwork_premium-slider_settings.php:50
504
+ #: themes/hardwork_premium/hardwork_premium-slider_settings.php:76
505
+ msgid "Slider setup"
506
+ msgstr ""
507
+
508
+ #: themes/hardwork_premium/hardwork_premium-slider_settings.php:69
509
+ msgid "Slider is disabled."
510
+ msgstr ""
511
+
512
+ #: themes/hardwork_premium/hardwork_premium-slider_settings.php:73
513
+ msgid ""
514
+ "To display Slider on CMP Landing page make sure you inserted two or more "
515
+ "Custom Photos from Media Library. Slider is also disabled when Specific "
516
+ "Unsplash photo or Default Media is selected."
517
+ msgstr ""
518
+
519
+ #: themes/hardwork_premium/hardwork_premium-slider_settings.php:81
520
+ msgid "Slide"
521
+ msgstr ""
522
+
523
+ #: themes/hardwork_premium/hardwork_premium-slider_settings.php:85
524
+ msgid "Fade"
525
+ msgstr ""
526
+
527
+ #: themes/hardwork_premium/hardwork_premium-slider_settings.php:91
528
+ msgid "Slider Autostart"
529
+ msgstr ""
530
+
531
+ #: themes/hardwork_premium/hardwork_premium-slider_settings.php:94
532
+ msgid "Number of Unplash media Slides"
533
  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.0
7
  Author: NiteoThemes
8
  Author URI: http://www.niteo.cz
9
  Text Domain: cmp
@@ -87,8 +87,16 @@ class niteo_cmp {
87
  }
88
 
89
  function cmp_admin_options() {
 
90
  // get all installed themes [folder names under /themes] and put them to array
91
  $theme_array = array_map('basename', glob( plugin_dir_path( __FILE__ ) . 'themes/*', GLOB_ONLYDIR));
 
 
 
 
 
 
 
92
  // get current theme
93
  $selectedTheme = $this->cmp_selectedTheme();
94
 
@@ -105,16 +113,16 @@ class niteo_cmp {
105
  if ( isset($_GET['theme']) && !empty($_GET['theme']) ) {
106
  $theme_preview = $_GET['theme'];
107
  // render html theme page
108
- if ( file_exists(dirname(__FILE__) . '/themes/'.$theme_preview.'/'.$theme_preview.'-theme.php') ) {
109
- require_once (dirname(__FILE__) . '/themes/'.$theme_preview.'/'.$theme_preview.'-theme.php');
110
  die();
111
  }
112
 
113
  }
114
 
115
  // render html theme page
116
- if ( file_exists(dirname(__FILE__) . '/themes/'.$this->cmp_selectedTheme().'/'.$this->cmp_selectedTheme().'-theme.php') ) {
117
- require_once (dirname(__FILE__) . '/themes/'.$this->cmp_selectedTheme().'/'.$this->cmp_selectedTheme().'-theme.php');
118
  die();
119
  }
120
  }
@@ -122,16 +130,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
  }
@@ -171,6 +206,28 @@ class niteo_cmp {
171
  return get_option('niteoCS_theme');
172
  }
173
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
174
  // display admin notice
175
  function cmp_admin_bar(){
176
  global $wp_admin_bar;
@@ -240,10 +297,16 @@ 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/' );
@@ -272,10 +335,11 @@ class niteo_cmp {
272
  }
273
  }
274
 
275
- array_key_exists ('feed', $params) ? $feed = $params['feed'] : $feed = '';
276
- array_key_exists ('url', $params) ? $url = $params['url'] : $url = '';
277
- array_key_exists ('cat', $params) ? $cat = $params['cat'] : $cat = '';
278
- array_key_exists ('custom_str', $params) ? $custom_str = $params['custom_str'] : $custom_str = '';
 
279
  $sig = 'sig='.time();
280
 
281
  switch ( $feed ) {
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.2.1
7
  Author: NiteoThemes
8
  Author URI: http://www.niteo.cz
9
  Text Domain: cmp
87
  }
88
 
89
  function cmp_admin_options() {
90
+
91
  // get all installed themes [folder names under /themes] and put them to array
92
  $theme_array = array_map('basename', glob( plugin_dir_path( __FILE__ ) . 'themes/*', GLOB_ONLYDIR));
93
+
94
+ // check for installed premium themes
95
+ if ( file_exists(plugin_dir_path( __DIR__ ) . 'cmp-premium-themes/') ) {
96
+ $premium_installed = array_map('basename', glob( plugin_dir_path( __DIR__ ) . 'cmp-premium-themes/*', GLOB_ONLYDIR));
97
+ $theme_array = array_merge($theme_array, $premium_installed);
98
+ }
99
+
100
  // get current theme
101
  $selectedTheme = $this->cmp_selectedTheme();
102
 
113
  if ( isset($_GET['theme']) && !empty($_GET['theme']) ) {
114
  $theme_preview = $_GET['theme'];
115
  // render html theme page
116
+ if ( file_exists($this->cmp_themePath().$theme_preview.'/'.$theme_preview.'-theme.php') ) {
117
+ require_once ($this->cmp_themePath().$theme_preview.'/'.$theme_preview.'-theme.php');
118
  die();
119
  }
120
 
121
  }
122
 
123
  // render html theme page
124
+ if ( file_exists($this->cmp_themePath().$this->cmp_selectedTheme().'/'.$this->cmp_selectedTheme().'-theme.php') ) {
125
+ require_once ($this->cmp_themePath().$this->cmp_selectedTheme().'/'.$this->cmp_selectedTheme().'-theme.php');
126
  die();
127
  }
128
  }
130
  if ( $this->cmp_status() == 1 || $this->cmp_status() == 2 ) {
131
 
132
  if ( !is_user_logged_in() ) {
133
+
134
+ // check for themes with countdown timer
135
+ if ( in_array($this->cmp_selectedTheme(), $this->cmp_plugin_countdown_themes()) ){
136
+ // if counter is enabled
137
+ if ( get_option('niteoCS_counter', '1') == '1' ) {
138
+ // if date is set
139
+ if ( get_option('niteoCS_counter_date' ) && get_option('niteoCS_counter_date' ) != '' ) {
140
+ // if timer < timestamp do set action
141
+ if ( get_option('niteoCS_counter_date' ) < time() ) {
142
+ // if action set to disable cmp
143
+ if (get_option('niteoCS_countdown_action') == 'disable-cmp') {
144
+ update_option('niteoCS_activation', '0');
145
+ }
146
+
147
+ // if action set to redirect
148
+ if (get_option('niteoCS_countdown_action') == 'redirect') {
149
+ $redirect_url = esc_url(get_option('niteoCS_countdown_redirect'));
150
+ header('Location: '.$redirect_url);
151
+ die();
152
+ }
153
+ }
154
+ }
155
+ }
156
+ }
157
+
158
  // if maintanance mode set headers
159
+ if ( $this->cmp_status() == '1' ){
160
  header('HTTP/1.1 503 Service Temporarily Unavailable');
161
  header('Status: 503 Service Temporarily Unavailable');
162
  header('Retry-After: 86400'); // retry in a day
163
  }
164
 
165
+ // render html theme page
166
+ if ( file_exists($this->cmp_themePath().$this->cmp_selectedTheme().'/'.$this->cmp_selectedTheme().'-theme.php') ) {
167
+ require_once ($this->cmp_themePath().$this->cmp_selectedTheme().'/'.$this->cmp_selectedTheme().'-theme.php');
168
+ die();
169
+ }
170
 
171
  }
172
  }
206
  return get_option('niteoCS_theme');
207
  }
208
 
209
+ // return installed theme path
210
+ function cmp_themePath() {
211
+ if ( $this->niteo_in_array_r($this->cmp_selectedTheme(), $this->cmp_plugin_premium() ) ) {
212
+ return plugin_dir_path( __DIR__ ) . 'cmp-premium-themes/';
213
+ } else {
214
+
215
+ return dirname(__FILE__) . '/themes/';
216
+ }
217
+
218
+ }
219
+
220
+ // return installed theme dir
221
+ function cmp_themeDirPath() {
222
+ if ( $this->niteo_in_array_r($this->cmp_selectedTheme(), $this->cmp_plugin_premium() ) ) {
223
+ return WP_PLUGIN_URL . '/cmp-premium-themes/';
224
+ } else {
225
+
226
+ return WP_PLUGIN_URL . '/cmp-coming-soon-maintenance/themes/';
227
+ }
228
+
229
+ }
230
+
231
  // display admin notice
232
  function cmp_admin_bar(){
233
  global $wp_admin_bar;
297
  // returns list of premium themes => manually defined
298
  function cmp_plugin_premium() {
299
  $premium_themes = array();
300
+ array_push( $premium_themes, array('name' => 'frame', 'url' => 'https://creativemarket.com/NiteoThemes/1373921-CMP-Frame-Coming-Soon-WP-Theme', 'price' => '10') );
301
+ array_push( $premium_themes, array('name' => 'hardwork_premium', 'url' => 'https://creativemarket.com/NiteoThemes/1385251-CMP-Hardwork-Premium-Maintenance', 'price' => '10') );
302
  return $premium_themes;
303
  }
304
 
305
+ // returns list of with countdown
306
+ function cmp_plugin_countdown_themes() {
307
+ $counter_themes = array('frame');
308
+ return $counter_themes;
309
+ }
310
 
311
  function cmp_textDomain() {
312
  load_plugin_textdomain( 'cmp', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
335
  }
336
  }
337
 
338
+ array_key_exists ('feed', $params) ? $feed = $params['feed'] : $feed = '';
339
+ array_key_exists ('url', $params) ? $url = $params['url'] : $url = '';
340
+ array_key_exists ('cat', $params) ? $cat = $params['cat'] : $cat = '';
341
+ array_key_exists ('custom_str', $params) ? $custom_str = $params['custom_str'] : $custom_str = '';
342
+
343
  $sig = 'sig='.time();
344
 
345
  switch ( $feed ) {
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=KV2JF
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.2.0
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -15,9 +15,10 @@ Create and customize your own landing page for Coming soon Page or Maintenance m
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>
@@ -53,7 +54,7 @@ Free plugin to create and customize your own Coming Soon or Maintenance landing
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,8 +64,8 @@ Free plugin to create and customize your own Coming Soon or Maintenance landing
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,6 +99,10 @@ Free plugin to create and customize your own Coming Soon or Maintenance landing
98
 
99
 
100
  == Changelog ==
 
 
 
 
101
  <h4>1.2.0</h4>
102
  <ul>
103
  <li>New premium theme: Hardwork Premium</li>
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.2.1
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
10
 
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://cmp.niteo.cz/?cmp_preview=true&theme=construct" target="_blank">Click for preview of Construct Theme >></a><br>
19
+ <a href="http://cmp.niteo.cz/?cmp_preview=true&theme=hardwork" target="_blank">Click for preview of Hardwork Theme >></a>
20
+ <a href="http://cmp.niteo.cz/?cmp_preview=true&theme=hardwork_premium" target="_blank">Click for preview of Hardwork Premium Theme >></a>
21
+ <a href="http://cmp.niteo.cz/?cmp_preview=true&theme=frame" target="_blank">Click for preview of Frame Theme >></a>
22
 
23
  <h3>Features</h3>
24
  <ul>
54
  <ul>
55
  <li>Navigate to the 'Add New' in the plugins dashboard</li>
56
  <li>Navigate to the 'Upload' area</li>
57
+ <li>Download <code>cmp-coming-soon-maintenance.zip</code> and select <code>cmp-coming-soon-maintenance.zip</code> from your directory</li>
58
  <li>Click 'Install Now'</li>
59
  <li>Activate the plugin in the Plugin dashboard</li>
60
  <li>To Setup click Settings->CMP Settings and change the settings there</li>
64
  <ul>
65
  <li>Navigate to the 'Add New' in the plugins dashboard</li>
66
  <li>Navigate to the 'Upload' area</li>
67
+ <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>
68
+ <li>Upload the extracted <code>cmp-coming-soon-maintenance</code> directory to the <code>/wp-content/plugins/</code> directory</li>
69
  <li>Activate the plugin in the Plugin dashboard</li>
70
  <li>To Setup click Settings->CMP Settings and change the settings there</li>
71
  </ul>
99
 
100
 
101
  == Changelog ==
102
+ <h4>1.2.1</h4>
103
+ <ul>
104
+ <li>Resolved issue when plugin update caused deletion of installed Premium themes.</li>
105
+ </ul>
106
  <h4>1.2.0</h4>
107
  <ul>
108
  <li>New premium theme: Hardwork Premium</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
@@ -24,10 +24,11 @@
24
  $content_font = get_option('niteoCS_font_content', 'Average Sans');
25
  // get saved content options
26
  $logo_id = get_option('niteoCS_logo_id');
27
- $niteoCS_banner = get_option('niteoCS_banner', '0');
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';
@@ -129,58 +129,67 @@
129
  $logo_url = wp_get_attachment_image_src( $logo_id, $size);
130
  }
131
 
132
- // if banner is custom media
133
- if ( $niteoCS_banner == 0 ) {
134
- $banner_id = get_option('niteoCS_banner_id');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
135
 
136
- if ( $banner_id != '' ) {
137
- $banner_ids = explode(',', $banner_id);
138
- $banner_url = wp_get_attachment_image_src( $banner_ids[mt_rand(0, count( $banner_ids ) - 1)], $size)[0];
139
 
140
- } else {
141
- // set construct img
142
  $banner_url = plugin_dir_url( dirname( __FILE__ ) ) . 'construct/img/construct_banner_'.$size.'.jpg';
143
- }
144
- } else
145
- // if banner set to unsplash
146
- if ( $niteoCS_banner == 1 ) {
147
-
148
- switch ( $unplash_feed ) {
149
- // SINGLE IMAGE
150
- case '0':
151
- $params = array('feed' => '0', 'url' => get_option('niteoCS_unsplash_0', '') );
152
- $banner_url = $this->niteo_unsplash( $params );
153
- break;
154
- // category random
155
- case '1':
156
- $params = array('feed' => '1', 'cat' => get_option('niteoCS_unsplash_category'), 'custom_str' => get_option('niteoCS_cat_keyword', '') );
157
- $banner_url = $this->niteo_unsplash( $params );
158
- break;
159
- // collection
160
- case '2':
161
- $params = array('feed' => '2', 'url' => get_option('niteoCS_unsplash_2', '') );
162
- $banner_url = $this->niteo_unsplash( $params );
163
- break;
164
- // random photo
165
- case '3':
166
- $params = array('feed' => '3', 'url' => get_option('niteoCS_unsplash_3', ''), 'cat' => get_option('niteoCS_unsplash_feat', '0') );
167
- $banner_url = $this->niteo_unsplash( $params );
168
- break;
169
-
170
- default:
171
- break;
172
- }
173
 
174
-
175
- // else display construct
176
- } if ( $niteoCS_banner == 2 ) {
177
- $banner_url = plugin_dir_url( dirname( __FILE__ ) ) . 'construct/img/construct_banner_'.$size.'.jpg';
178
  }
179
  ?>
180
 
181
  <body>
182
  <section class="section section-logo">
183
- <?php if ( isset($logo_url) ) { ?>
184
  <img src="<?php echo esc_url( $logo_url[0] ); ?>" alt="logo">
185
  <?php } ?>
186
  </section>
@@ -224,8 +233,14 @@
224
  // if subsctbiers is niteo, render our html form
225
  } else if ( $subscribe == '2' ) { ?>
226
  <form id="subscribe-form" method="post">
227
- <input type="email" name="EMAIL" placeholder="Your email address" required>
228
  <?php wp_nonce_field('save_options','save_options_field'); ?>
 
 
 
 
 
 
 
229
  <input type="submit" value="Sign up">
230
 
231
  <div style="display: none;">
24
  $content_font = get_option('niteoCS_font_content', 'Average Sans');
25
  // get saved content options
26
  $logo_id = get_option('niteoCS_logo_id');
27
+ $niteoCS_banner = get_option('niteoCS_banner', '2');
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';
129
  $logo_url = wp_get_attachment_image_src( $logo_id, $size);
130
  }
131
 
132
+ switch ($niteoCS_banner) {
133
+ // custom media
134
+ case '0':
135
+ $banner_id = get_option('niteoCS_banner_id');
136
+
137
+ if ( $banner_id != '' ) {
138
+ $banner_ids = explode(',', $banner_id);
139
+ $banner_url = wp_get_attachment_image_src( $banner_ids[mt_rand(0, count( $banner_ids ) - 1)], $size);
140
+ if ( isset($banner_url[0]) ) {
141
+ $banner_url = $banner_url[0];
142
+ }
143
+
144
+ } else {
145
+ // set construct img
146
+ $banner_url = plugin_dir_url( dirname( __FILE__ ) ) . 'construct/img/construct_banner_'.$size.'.jpg';
147
+ }
148
+ break;
149
+
150
+ case '1':
151
+ // unsplash
152
+ switch ( $unplash_feed ) {
153
+ // SINGLE IMAGE
154
+ case '0':
155
+ $params = array('feed' => '0', 'url' => get_option('niteoCS_unsplash_0', '') );
156
+ $banner_url = $this->niteo_unsplash( $params );
157
+ break;
158
+ // category random
159
+ case '1':
160
+ $params = array('feed' => '1', 'cat' => get_option('niteoCS_unsplash_category'), 'custom_str' => get_option('niteoCS_cat_keyword', '') );
161
+ $banner_url = $this->niteo_unsplash( $params );
162
+ break;
163
+ // collection
164
+ case '2':
165
+ $params = array('feed' => '2', 'url' => get_option('niteoCS_unsplash_2', '') );
166
+ $banner_url = $this->niteo_unsplash( $params );
167
+ break;
168
+ // random photo
169
+ case '3':
170
+ $params = array('feed' => '3', 'url' => get_option('niteoCS_unsplash_3', ''), 'cat' => get_option('niteoCS_unsplash_feat', '0') );
171
+ $banner_url = $this->niteo_unsplash( $params );
172
+ break;
173
+
174
+ default:
175
+ break;
176
+ }
177
 
178
+ break;
 
 
179
 
180
+ case '2':
181
+ // default image
182
  $banner_url = plugin_dir_url( dirname( __FILE__ ) ) . 'construct/img/construct_banner_'.$size.'.jpg';
183
+ break;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
184
 
185
+ default:
186
+ break;
 
 
187
  }
188
  ?>
189
 
190
  <body>
191
  <section class="section section-logo">
192
+ <?php if ( isset($logo_url[0]) ) { ?>
193
  <img src="<?php echo esc_url( $logo_url[0] ); ?>" alt="logo">
194
  <?php } ?>
195
  </section>
233
  // if subsctbiers is niteo, render our html form
234
  } else if ( $subscribe == '2' ) { ?>
235
  <form id="subscribe-form" method="post">
 
236
  <?php wp_nonce_field('save_options','save_options_field'); ?>
237
+ <?php
238
+ if ( $niteoCS_subscribe_label != '' ) { ?>
239
+ <label for="EMAIL"><?php echo esc_html($niteoCS_subscribe_label);?></label>
240
+ <?php
241
+ } ?>
242
+ <input type="email" name="EMAIL" placeholder="Your email address" required>
243
+
244
  <input type="submit" value="Sign up">
245
 
246
  <div style="display: none;">
themes/construct/img/{construct_banner_medium.jpg → construct_banner_large.jpg} RENAMED
File without changes
themes/construct/img/construct_thumbnail.jpg CHANGED
Binary file
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>
themes/hardwork/hardwork-theme.php CHANGED
@@ -18,7 +18,7 @@
18
  $content_font = get_option('niteoCS_font_content', 'Raleway');
19
  // get saved content options
20
  $logo_id = get_option('niteoCS_logo_id');
21
- $niteoCS_banner = get_option('niteoCS_banner', '0');
22
  $unplash_feed = get_option('niteoCS_unsplash_feed', '0');
23
  $social_title = get_option('niteoCS_soc_title', 'GET SOCIAL WITH US');
24
  $body_title = get_option('niteoCS_body_title', 'SOMETHING IS HAPPENING!');
@@ -134,57 +134,64 @@
134
  $logo_url = wp_get_attachment_image_src( $logo_id, $size);
135
  }
136
 
137
- // if banner is custom media
138
- if ( $niteoCS_banner == 0 ) {
139
- $banner_id = get_option('niteoCS_banner_id');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
140
 
141
- if ( $banner_id != '' ) {
142
- $banner_ids = explode(',', $banner_id);
143
- $banner_url = wp_get_attachment_image_src( $banner_ids[mt_rand(0, count( $banner_ids ) - 1)], $size)[0];
144
 
145
- } else {
146
- // set construct img
147
  $banner_url = plugin_dir_url( dirname( __FILE__ ) ) . 'hardwork/img/hardwork_banner_'.$size.'.jpg';
148
- }
149
- } else
150
- // if banner set to unsplash
151
- if ( $niteoCS_banner == 1 ) {
152
-
153
- switch ( $unplash_feed ) {
154
- // SINGLE IMAGE
155
- case '0':
156
- $params = array('feed' => '0', 'url' => get_option('niteoCS_unsplash_0', '') );
157
- $banner_url = $this->niteo_unsplash( $params );
158
- break;
159
- // category random
160
- case '1':
161
- $params = array('feed' => '1', 'cat' => get_option('niteoCS_unsplash_category'), 'custom_str' => get_option('niteoCS_cat_keyword', '') );
162
- $banner_url = $this->niteo_unsplash( $params );
163
- break;
164
- // collection
165
- case '2':
166
- $params = array('feed' => '2', 'url' => get_option('niteoCS_unsplash_2', '') );
167
- $banner_url = $this->niteo_unsplash( $params );
168
- break;
169
- // random photo
170
- case '3':
171
- $params = array('feed' => '3', 'url' => get_option('niteoCS_unsplash_3', ''), 'cat' => get_option('niteoCS_unsplash_feat', '0') );
172
- $banner_url = $this->niteo_unsplash( $params );
173
- break;
174
-
175
- default:
176
- break;
177
- }
178
-
179
-
180
- // else display construct
181
- } if ( $niteoCS_banner == 2 ) {
182
- $banner_url = plugin_dir_url( dirname( __FILE__ ) ) . 'hardwork/img/hardwork_banner_'.$size.'.jpg';
183
  }
184
  ?>
185
 
186
-
187
-
188
  <body id="body">
189
  <?php
190
  // if banner is unsplash
@@ -209,7 +216,7 @@
209
  }
210
  ?>
211
  <section class="section section-logo">
212
- <?php if ( isset($logo_url) ) { ?>
213
  <img src="<?php echo esc_url( $logo_url[0] ); ?>" alt="logo">
214
  <?php } ?>
215
  </section>
18
  $content_font = get_option('niteoCS_font_content', 'Raleway');
19
  // get saved content options
20
  $logo_id = get_option('niteoCS_logo_id');
21
+ $niteoCS_banner = get_option('niteoCS_banner', '2');
22
  $unplash_feed = get_option('niteoCS_unsplash_feed', '0');
23
  $social_title = get_option('niteoCS_soc_title', 'GET SOCIAL WITH US');
24
  $body_title = get_option('niteoCS_body_title', 'SOMETHING IS HAPPENING!');
134
  $logo_url = wp_get_attachment_image_src( $logo_id, $size);
135
  }
136
 
137
+ switch ($niteoCS_banner) {
138
+ // custom media
139
+ case '0':
140
+ $banner_id = get_option('niteoCS_banner_id');
141
+
142
+ if ( $banner_id != '' ) {
143
+ $banner_ids = explode(',', $banner_id);
144
+ $banner_url = wp_get_attachment_image_src( $banner_ids[mt_rand(0, count( $banner_ids ) - 1)], $size);
145
+ if ( isset($banner_url[0]) ) {
146
+ $banner_url = $banner_url[0];
147
+ }
148
+
149
+ } else {
150
+ // set construct img
151
+ $banner_url = plugin_dir_url( dirname( __FILE__ ) ) . 'hardwork/img/hardwork_banner_'.$size.'.jpg';
152
+ }
153
+ break;
154
+
155
+ case '1':
156
+ // unsplash
157
+ switch ( $unplash_feed ) {
158
+ // SINGLE IMAGE
159
+ case '0':
160
+ $params = array('feed' => '0', 'url' => get_option('niteoCS_unsplash_0', '') );
161
+ $banner_url = $this->niteo_unsplash( $params );
162
+ break;
163
+ // category random
164
+ case '1':
165
+ $params = array('feed' => '1', 'cat' => get_option('niteoCS_unsplash_category'), 'custom_str' => get_option('niteoCS_cat_keyword', '') );
166
+ $banner_url = $this->niteo_unsplash( $params );
167
+ break;
168
+ // collection
169
+ case '2':
170
+ $params = array('feed' => '2', 'url' => get_option('niteoCS_unsplash_2', '') );
171
+ $banner_url = $this->niteo_unsplash( $params );
172
+ break;
173
+ // random photo
174
+ case '3':
175
+ $params = array('feed' => '3', 'url' => get_option('niteoCS_unsplash_3', ''), 'cat' => get_option('niteoCS_unsplash_feat', '0') );
176
+ $banner_url = $this->niteo_unsplash( $params );
177
+ break;
178
+
179
+ default:
180
+ break;
181
+ }
182
 
183
+ break;
 
 
184
 
185
+ case '2':
186
+ // default image
187
  $banner_url = plugin_dir_url( dirname( __FILE__ ) ) . 'hardwork/img/hardwork_banner_'.$size.'.jpg';
188
+ break;
189
+
190
+ default:
191
+ break;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
192
  }
193
  ?>
194
 
 
 
195
  <body id="body">
196
  <?php
197
  // if banner is unsplash
216
  }
217
  ?>
218
  <section class="section section-logo">
219
+ <?php if ( isset($logo_url[0]) ) { ?>
220
  <img src="<?php echo esc_url( $logo_url[0] ); ?>" alt="logo">
221
  <?php } ?>
222
  </section>
themes/hardwork/img/{hardwork_banner_medium.jpg → hardwork_banner_large.jpg} RENAMED
File without changes
themes/hardwork/img/hardwork_thumbnail.jpg CHANGED
Binary file
themes/hardwork_premium_thumbnail.jpg ADDED
Binary file