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

Version Description

Download this release

Release Info

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

Code changes from version 2.6.5 to 2.7

Files changed (45) hide show
  1. cmp-settings.php +67 -64
  2. cmp-sidebar.php +19 -18
  3. css/cmp-settings-style.css +1 -1
  4. css/cmp-settings-style.min.css +1 -1
  5. img/thumbnails/coder_thumbnail.jpg +0 -0
  6. img/thumbnails/element/screenshot1.jpg +0 -0
  7. img/thumbnails/element_thumbnail.jpg +0 -0
  8. inc/class-cmp-feedback.php +6 -7
  9. inc/class-cmp-render_html.php +198 -22
  10. inc/settings/settings-background_effects.php +1 -1
  11. inc/settings/{settings-contact_form_disabled.php → settings-contact_form-disabled.php} +0 -0
  12. inc/settings/{settings-counter_disabled.php → settings-counter-disabled.php} +0 -0
  13. inc/settings/{settings-footer_disabled.php → settings-footer-disabled.php} +0 -0
  14. inc/settings/{settings-logo_disabled.php → settings-logo-disabled.php} +0 -0
  15. inc/settings/{settings-slider_disabled.php → settings-slider-disabled.php} +0 -0
  16. inc/settings/settings-slider.php +7 -8
  17. inc/settings/settings-special_effects-disabled.php +44 -0
  18. inc/settings/settings-special_effects.php +71 -0
  19. inc/settings/{settings-subscribe_disabled.php → settings-subscribe-disabled.php} +0 -0
  20. inc/settings/settings-subscribe.php +1 -8
  21. js/cmp-admin-head.js +2 -3
  22. js/settings.js +5 -11
  23. js/settings.min.js +1 -38
  24. niteo-cmp.php +68 -43
  25. readme.txt +19 -4
  26. themes/construct.txt +1 -1
  27. themes/construct/construct-defaults.php +7 -6
  28. themes/construct/construct-theme.php +1 -1
  29. themes/construct/style.css +1 -1
  30. themes/countdown.txt +1 -1
  31. themes/countdown/countdown-defaults.php +7 -6
  32. themes/countdown/style.css +5 -1
  33. themes/eclipse.txt +1 -1
  34. themes/element.txt +3 -0
  35. themes/fifty.txt +1 -1
  36. themes/frame.txt +1 -1
  37. themes/hardwork.txt +1 -1
  38. themes/hardwork/hardwork-defaults.php +8 -7
  39. themes/hardwork/hardwork-theme.php +1 -1
  40. themes/hardwork/style.css +3 -4
  41. themes/hardwork_premium.txt +1 -1
  42. themes/orbit.txt +1 -1
  43. themes/postery.txt +1 -1
  44. themes/postery.zip +0 -0
  45. themes/stylo.txt +1 -1
cmp-settings.php CHANGED
@@ -15,7 +15,7 @@ if ( isset($_POST['select_theme']) && in_array($_POST['select_theme'], $this->th
15
 
16
  $themeslug = $this->cmp_selectedTheme();
17
  $downloadable_themes = $this->cmp_downloadable_themes();
18
- $font_animation = array('hardwork_premium', 'fifty', 'orbit');
19
  $ajax_nonce = wp_create_nonce( 'cmp-coming-soon-ajax-secret' );
20
 
21
  if (isset($_POST['niteoCS_logo_id_'.$themeslug]) && ( is_numeric($_POST['niteoCS_logo_id_'.$themeslug]) || empty($_POST['niteoCS_logo_id_'.$themeslug]))) {
@@ -256,8 +256,8 @@ $niteoCS_redirect_time = get_option('niteoCS_redirect_time', '0');
256
 
257
  // get Content Settings
258
  $niteoCS_body_title = stripslashes(get_option('niteoCS_body_title', 'SOMETHING IS HAPPENING!'));
259
- $niteoCS_body = get_option('niteoCS_body');
260
- $niteoCS_copyright = stripslashes(get_option('niteoCS_copyright', 'Copyright 2017 NiteoThemes. All rights reserved.'));
261
  $niteoCS_soc_title = stripslashes(get_option('niteoCS_soc_title', 'GET SOCIAL WITH US'));
262
 
263
 
@@ -267,7 +267,7 @@ $niteoCS_title = stripslashes(get_option('niteoCS_title', get_bloginfo('name
267
  $niteoCS_descr = stripslashes(get_option('niteoCS_descr', 'Just another Coming Soon Page'));
268
  $niteoCS_analytics_status = get_option('niteoCS_analytics_status', 'disabled');
269
  $niteoCS_analytics = stripslashes(get_option('niteoCS_analytics', ''));
270
- $niteoCS_analytics_other = stripslashes(get_option('niteoCS_analytics_other', ''));
271
 
272
  // get Custom CSS
273
  $niteoCS_custom_css = stripslashes(get_option('niteoCS_custom_css', ''));
@@ -312,7 +312,7 @@ $niteoCS_video_file_url = get_option('niteoCS_video_file_url['.$themeslug.']')
312
 
313
  // create default social media if they do not exists
314
  if ( !get_option('niteoCS_socialmedia') ) {
315
- $social_icons = array('facebook', 'google-plus', 'twitter', 'instagram', 'skype', '500px', 'deviantart', 'behance', 'dribbble', 'pinterest', 'linkedin', 'tumblr', 'youtube', 'vimeo', 'flickr', 'soundcloud', 'vk','envelope-o', 'whatsapp', 'phone');
316
  $i = 0;
317
  $socialmedia = array();
318
  foreach ( $social_icons as $social ) {
@@ -532,7 +532,7 @@ add_thickbox();
532
  <span class="input-label"><?php if ( $this->cmp_selectedTheme() == $theme_slug ) { _e('Active', 'cmp-coming-soon-maintenance'); } else { _e('Select', 'cmp-coming-soon-maintenance'); }?></span>
533
  </div>
534
 
535
- <a href="<?php echo get_site_url().'?cmp_preview=true&cmp_theme='.$theme_slug;?>" target="_blank" class="theme-preview button hide"><i class="fa fa-external-link" aria-hidden="true"></i><?php _e('PREVIEW', 'cmp-coming-soon-maintenance');?></a>
536
 
537
  <button type="button" class="theme-details button hide"><i class="fa fa-eye" aria-hidden="true"></i><?php _e('DETAILS', 'cmp-coming-soon-maintenance');?></button>
538
  </div>
@@ -576,40 +576,24 @@ add_thickbox();
576
  </legend>
577
  <?php
578
 
579
- // build previews for premium themes
580
  foreach ( $downloadable_themes as $premium_theme ) {
581
  $theme_slug = $premium_theme['name'];
582
- $thumbnail = plugins_url('/img/thumbnails/'. $theme_slug . '_thumbnail.jpg', __FILE__);
583
- $freebie = 'false';
584
-
585
- // check if theme is freebie [price-0] and display download button
586
- if ( $premium_theme['price'] == 0 ) {
587
- $freebie = 'true';
588
- } ?>
589
-
590
 
591
- <div class="theme-wrapper premium" data-security="<?php echo esc_attr($ajax_nonce);?>" data-slug="<?php echo esc_attr($theme_slug);?>" data-type="premium" data-freebie="<?php echo esc_attr( $freebie );?>" data-price="<?php echo esc_html( $premium_theme['price'] );?>">
592
 
593
  <div class="thumbnail-holder theme-details" style="background-image:url('<?php echo esc_url( $thumbnail ); ?>')"></div>
594
 
595
- <div class="buttons-wrapper">
596
 
597
- <?php
598
- // premium theme
599
- if ( $freebie !== 'true' ) { ?>
600
- <a href="<?php echo esc_url( $premium_theme['url'] );?>" target="_blank" class="theme-purchase button hide"><i class="fa fa-cart-arrow-down" aria-hidden="true"></i>BUY $<?php echo esc_html( $premium_theme['price'] );?></a>
601
- <?php
602
- // if freebie, dislay download icon
603
- } else if ( $freebie == 'true' ) { ?>
604
- <a href="<?php echo esc_url ($premium_theme['url'] );?>" target="_blank" class="theme-purchase button hide"><i class="fa fa-download" aria-hidden="true"></i><?php _e('Download', 'cmp-coming-soon-maintenance');?></a>
605
- <?php
606
- } ?>
607
 
608
- <a href="<?php echo 'http://cmp.niteothemes.com/?cmp_preview=true&selector=true&theme='.$theme_slug.'&utm_source=cmp&utm_medium=referral&utm_campaign='.$theme_slug.'';?>" target="_blank" class="theme-preview button hide"><i class="fa fa-external-link" aria-hidden="true"></i><?php _e('PREVIEW', 'cmp-coming-soon-maintenance');?></a>
609
 
610
- <button type="button" class="theme-details button hide"><i class="fa fa-eye" aria-hidden="true"></i><?php _e('DETAILS', 'cmp-coming-soon-maintenance');?></button>
611
 
612
- </div>
613
 
614
  <div class="theme-inputs">
615
 
@@ -618,7 +602,7 @@ add_thickbox();
618
  </div>
619
 
620
  <?php
621
- } //endforeach $premium_themes ?>
622
  </fieldset>
623
  </td>
624
  </tr>
@@ -640,7 +624,7 @@ add_thickbox();
640
  <th><h4><?php _e('Title', 'cmp-coming-soon-maintenance');?></h4></th>
641
  <td>
642
  <fieldset>
643
- <input type="text" name="niteoCS_body_title" id="niteoCS_body_title" value="<?php echo stripslashes(esc_attr( $niteoCS_body_title)); ?>" class="regular-text code" placeholder="<?php _e('Leave empty to disable', 'cmp-coming-soon-maintenance');?>">
644
  </fieldset>
645
  </td>
646
  </tr>
@@ -648,7 +632,7 @@ add_thickbox();
648
  <tr>
649
  <th><h4><?php _e('Message', 'cmp-coming-soon-maintenance');?></h4></th>
650
  <td>
651
- <?php wp_editor( stripslashes( $this->niteo_sanitize_html( $niteoCS_body ) ), 'niteoCS_body', $settings = array('textarea_name'=>'niteoCS_body', 'editor_height'=>'300') ); ?>
652
  </td>
653
  </tr>
654
 
@@ -661,40 +645,40 @@ add_thickbox();
661
 
662
  <?php
663
  // get counter settings
664
- if ( $theme_supports['counter'] ) {
665
  if ( file_exists(dirname(__FILE__) . '/inc/settings/settings-counter.php') ) {
666
  require (dirname(__FILE__) . '/inc/settings/settings-counter.php');
667
  }
668
 
669
  } else {
670
- if ( file_exists(dirname(__FILE__) . '/inc/settings/settings-counter_disabled.php') ) {
671
- require (dirname(__FILE__) . '/inc/settings/settings-counter_disabled.php');
672
  }
673
 
674
  }
675
 
676
  // get subscribe settings
677
- if ( $theme_supports['subscribe'] ) {
678
  if ( file_exists(dirname(__FILE__) . '/inc/settings/settings-subscribe.php') ) {
679
  require (dirname(__FILE__) . '/inc/settings/settings-subscribe.php');
680
  }
681
 
682
  } else {
683
- if ( file_exists(dirname(__FILE__) . '/inc/settings/settings-subscribe_disabled.php') ) {
684
- require (dirname(__FILE__) . '/inc/settings/settings-subscribe_disabled.php');
685
  }
686
 
687
  }
688
 
689
  // get contact form settings
690
- if ( isset($theme_supports['contact-form']) && $theme_supports['contact-form'] ) {
691
  if ( file_exists(dirname(__FILE__) . '/inc/settings/settings-contact_form.php') ) {
692
  require (dirname(__FILE__) . '/inc/settings/settings-contact_form.php');
693
  }
694
 
695
  } else {
696
- if ( file_exists(dirname(__FILE__) . '/inc/settings/settings-contact_form_disabled.php') ) {
697
- require (dirname(__FILE__) . '/inc/settings/settings-contact_form_disabled.php');
698
  }
699
 
700
  }
@@ -785,6 +769,10 @@ add_thickbox();
785
  $title = __('Whatsapp Phone Number', 'cmp-coming-soon-maintenance');
786
  $url = '+123456789';
787
  break;
 
 
 
 
788
  default:
789
  $title = ucfirst( $social['name'] );
790
  $url = 'https://'.$social['name'].'.com/profile';
@@ -822,57 +810,72 @@ add_thickbox();
822
  </div>
823
  <?php
824
  // get footer
825
- if ( $theme_supports['footer'] ) {
826
- if ( file_exists(dirname(__FILE__) . '/inc/settings/settings-footer.php') ) {
827
- require_once (dirname(__FILE__) . '/inc/settings/settings-footer.php');
828
  }
829
 
830
  } else {
831
- if ( file_exists(dirname(__FILE__) . '/inc/settings/settings-footer_disabled.php') ) {
832
- require_once (dirname(__FILE__) . '/inc/settings/settings-footer_disabled.php');
833
  }
834
 
835
  }
836
 
837
  // get logo settings
838
- if ( $theme_supports['logo'] ) {
839
- if ( file_exists(dirname(__FILE__) . '/inc/settings/settings-logo.php') ) {
840
- require (dirname(__FILE__) . '/inc/settings/settings-logo.php');
841
  }
842
 
843
  } else {
844
- if ( file_exists(dirname(__FILE__) . '/inc/settings/settings-logo_disabled.php') ) {
845
- require (dirname(__FILE__) . '/inc/settings/settings-logo_disabled.php');
846
  }
847
 
848
  }
849
 
850
  // get background settings
851
- if ( file_exists(dirname(__FILE__) . '/inc/settings/settings-background.php') ) {
852
- require (dirname(__FILE__) . '/inc/settings/settings-background.php');
853
  }
854
 
855
  // get background effects settings
856
- if ( file_exists(dirname(__FILE__) . '/inc/settings/settings-background_effects.php') ) {
857
- require (dirname(__FILE__) . '/inc/settings/settings-background_effects.php');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
858
  }
859
 
860
  // get slider settings
861
- if ( $theme_supports['slider'] ) {
862
- if ( file_exists(dirname(__FILE__) . '/inc/settings/settings-slider.php') ) {
863
- require (dirname(__FILE__) . '/inc/settings/settings-slider.php');
864
  }
865
 
866
  } else {
867
- if ( file_exists(dirname(__FILE__) . '/inc/settings/settings-slider_disabled.php') ) {
868
- require (dirname(__FILE__) . '/inc/settings/settings-slider_disabled.php');
869
  }
870
 
871
  }
872
 
873
  // include theme related settings
874
- if (file_exists($this->cmp_themePath($this->cmp_selectedTheme()).$this->cmp_selectedTheme().'/'.$this->cmp_selectedTheme().'-settings.php')) {
875
- require ( $this->cmp_themePath($this->cmp_selectedTheme()).$this->cmp_selectedTheme().'/'.$this->cmp_selectedTheme().'-settings.php' );
876
  }
877
  ?>
878
 
@@ -1088,7 +1091,7 @@ add_thickbox();
1088
 
1089
  <p class="analytics-switch other">
1090
  <label for="niteoCS_analytics_other"><?php _e('Insert your Analytics Javascript code', 'cmp-coming-soon-maintenance');?></label><br>
1091
- <textarea name="niteoCS_analytics_other" rows="5" class="code"><?php echo esc_js( $niteoCS_analytics_other ); ?></textarea>
1092
  </p>
1093
  </fieldset>
1094
 
15
 
16
  $themeslug = $this->cmp_selectedTheme();
17
  $downloadable_themes = $this->cmp_downloadable_themes();
18
+ $font_animation = array('hardwork_premium', 'fifty', 'orbit', 'stylo');
19
  $ajax_nonce = wp_create_nonce( 'cmp-coming-soon-ajax-secret' );
20
 
21
  if (isset($_POST['niteoCS_logo_id_'.$themeslug]) && ( is_numeric($_POST['niteoCS_logo_id_'.$themeslug]) || empty($_POST['niteoCS_logo_id_'.$themeslug]))) {
256
 
257
  // get Content Settings
258
  $niteoCS_body_title = stripslashes(get_option('niteoCS_body_title', 'SOMETHING IS HAPPENING!'));
259
+ $niteoCS_body = stripslashes(get_option('niteoCS_body'));
260
+ $niteoCS_copyright = stripslashes(get_option('niteoCS_copyright', 'Copyright '.date("Y").' NiteoThemes. All rights reserved.'));
261
  $niteoCS_soc_title = stripslashes(get_option('niteoCS_soc_title', 'GET SOCIAL WITH US'));
262
 
263
 
267
  $niteoCS_descr = stripslashes(get_option('niteoCS_descr', 'Just another Coming Soon Page'));
268
  $niteoCS_analytics_status = get_option('niteoCS_analytics_status', 'disabled');
269
  $niteoCS_analytics = stripslashes(get_option('niteoCS_analytics', ''));
270
+ $niteoCS_analytics_other = get_option('niteoCS_analytics_other', '');
271
 
272
  // get Custom CSS
273
  $niteoCS_custom_css = stripslashes(get_option('niteoCS_custom_css', ''));
312
 
313
  // create default social media if they do not exists
314
  if ( !get_option('niteoCS_socialmedia') ) {
315
+ $social_icons = array('facebook', 'google-plus', 'twitter', 'instagram', 'skype', '500px', 'deviantart', 'behance', 'dribbble', 'pinterest', 'linkedin', 'tumblr', 'youtube', 'vimeo', 'flickr', 'soundcloud', 'vk','envelope-o', 'whatsapp', 'phone', 'telegram');
316
  $i = 0;
317
  $socialmedia = array();
318
  foreach ( $social_icons as $social ) {
532
  <span class="input-label"><?php if ( $this->cmp_selectedTheme() == $theme_slug ) { _e('Active', 'cmp-coming-soon-maintenance'); } else { _e('Select', 'cmp-coming-soon-maintenance'); }?></span>
533
  </div>
534
 
535
+ <a href="<?php echo get_site_url().'?cmp_preview=true&selector=true&cmp_theme='.$theme_slug;?>" target="_blank" class="theme-preview button hide"><i class="fa fa-external-link" aria-hidden="true"></i><?php _e('PREVIEW', 'cmp-coming-soon-maintenance');?></a>
536
 
537
  <button type="button" class="theme-details button hide"><i class="fa fa-eye" aria-hidden="true"></i><?php _e('DETAILS', 'cmp-coming-soon-maintenance');?></button>
538
  </div>
576
  </legend>
577
  <?php
578
 
579
+ // build previews for downloadable themes
580
  foreach ( $downloadable_themes as $premium_theme ) {
581
  $theme_slug = $premium_theme['name'];
582
+ $thumbnail = plugins_url('/img/thumbnails/'. $theme_slug . '_thumbnail.jpg', __FILE__); ?>
 
 
 
 
 
 
 
583
 
584
+ <div class="theme-wrapper premium" data-security="<?php echo esc_attr($ajax_nonce);?>" data-slug="<?php echo esc_attr($theme_slug);?>" data-type="premium">
585
 
586
  <div class="thumbnail-holder theme-details" style="background-image:url('<?php echo esc_url( $thumbnail ); ?>')"></div>
587
 
588
+ <div class="buttons-wrapper">
589
 
590
+ <a href="<?php echo esc_url ($premium_theme['url'] );?>" target="_blank" class="theme-purchase button hide"><i class="fa fa-download" aria-hidden="true"></i><?php _e('Get Theme', 'cmp-coming-soon-maintenance');?></a>
 
 
 
 
 
 
 
 
 
591
 
592
+ <a href="<?php echo 'http://cmp.niteothemes.com/?cmp_preview=true&selector=true&theme='.$theme_slug.'&utm_source=cmp&utm_medium=referral&utm_campaign='.$theme_slug.'';?>" target="_blank" class="theme-preview button hide"><i class="fa fa-external-link" aria-hidden="true"></i><?php _e('PREVIEW', 'cmp-coming-soon-maintenance');?></a>
593
 
594
+ <button type="button" class="theme-details button hide"><i class="fa fa-eye" aria-hidden="true"></i><?php _e('DETAILS', 'cmp-coming-soon-maintenance');?></button>
595
 
596
+ </div>
597
 
598
  <div class="theme-inputs">
599
 
602
  </div>
603
 
604
  <?php
605
+ } ?>
606
  </fieldset>
607
  </td>
608
  </tr>
624
  <th><h4><?php _e('Title', 'cmp-coming-soon-maintenance');?></h4></th>
625
  <td>
626
  <fieldset>
627
+ <input type="text" name="niteoCS_body_title" id="niteoCS_body_title" value="<?php echo esc_attr( $niteoCS_body_title ); ?>" class="regular-text code" placeholder="<?php _e('Leave empty to disable', 'cmp-coming-soon-maintenance');?>">
628
  </fieldset>
629
  </td>
630
  </tr>
632
  <tr>
633
  <th><h4><?php _e('Message', 'cmp-coming-soon-maintenance');?></h4></th>
634
  <td>
635
+ <?php wp_editor( $this->niteo_sanitize_html( $niteoCS_body ), 'niteoCS_body', $settings = array('textarea_name'=>'niteoCS_body', 'editor_height'=>'300') ); ?>
636
  </td>
637
  </tr>
638
 
645
 
646
  <?php
647
  // get counter settings
648
+ if ( isset( $theme_supports['counter'] ) && $theme_supports['counter'] ) {
649
  if ( file_exists(dirname(__FILE__) . '/inc/settings/settings-counter.php') ) {
650
  require (dirname(__FILE__) . '/inc/settings/settings-counter.php');
651
  }
652
 
653
  } else {
654
+ if ( file_exists(dirname(__FILE__) . '/inc/settings/settings-counter-disabled.php') ) {
655
+ require (dirname(__FILE__) . '/inc/settings/settings-counter-disabled.php');
656
  }
657
 
658
  }
659
 
660
  // get subscribe settings
661
+ if ( isset( $theme_supports['subscribe'] ) && $theme_supports['subscribe'] ) {
662
  if ( file_exists(dirname(__FILE__) . '/inc/settings/settings-subscribe.php') ) {
663
  require (dirname(__FILE__) . '/inc/settings/settings-subscribe.php');
664
  }
665
 
666
  } else {
667
+ if ( file_exists(dirname(__FILE__) . '/inc/settings/settings-subscribe-disabled.php') ) {
668
+ require (dirname(__FILE__) . '/inc/settings/settings-subscribe-disabled.php');
669
  }
670
 
671
  }
672
 
673
  // get contact form settings
674
+ if ( isset( $theme_supports['contact-form'] ) && $theme_supports['contact-form'] ) {
675
  if ( file_exists(dirname(__FILE__) . '/inc/settings/settings-contact_form.php') ) {
676
  require (dirname(__FILE__) . '/inc/settings/settings-contact_form.php');
677
  }
678
 
679
  } else {
680
+ if ( file_exists(dirname(__FILE__) . '/inc/settings/settings-contact_form-disabled.php') ) {
681
+ require (dirname(__FILE__) . '/inc/settings/settings-contact_form-disabled.php');
682
  }
683
 
684
  }
769
  $title = __('Whatsapp Phone Number', 'cmp-coming-soon-maintenance');
770
  $url = '+123456789';
771
  break;
772
+ case 'telegram':
773
+ $title = ucfirst( $social['name'] );
774
+ $url = 'https://telegram.me/username';
775
+ break;
776
  default:
777
  $title = ucfirst( $social['name'] );
778
  $url = 'https://'.$social['name'].'.com/profile';
810
  </div>
811
  <?php
812
  // get footer
813
+ if ( isset( $theme_supports['footer'] ) && $theme_supports['footer'] ) {
814
+ if ( file_exists( dirname(__FILE__) . '/inc/settings/settings-footer.php') ) {
815
+ require_once ( dirname(__FILE__) . '/inc/settings/settings-footer.php' );
816
  }
817
 
818
  } else {
819
+ if ( file_exists(dirname(__FILE__) . '/inc/settings/settings-footer-disabled.php' ) ) {
820
+ require_once ( dirname(__FILE__) . '/inc/settings/settings-footer-disabled.php' );
821
  }
822
 
823
  }
824
 
825
  // get logo settings
826
+ if ( isset( $theme_supports['logo'] ) && $theme_supports['logo'] ) {
827
+ if ( file_exists(dirname(__FILE__) . '/inc/settings/settings-logo.php' ) ) {
828
+ require ( dirname(__FILE__) . '/inc/settings/settings-logo.php' );
829
  }
830
 
831
  } else {
832
+ if ( file_exists(dirname(__FILE__) . '/inc/settings/settings-logo-disabled.php' ) ) {
833
+ require ( dirname(__FILE__) . '/inc/settings/settings-logo-disabled.php' );
834
  }
835
 
836
  }
837
 
838
  // get background settings
839
+ if ( file_exists(dirname(__FILE__) . '/inc/settings/settings-background.php' ) ) {
840
+ require ( dirname(__FILE__) . '/inc/settings/settings-background.php' );
841
  }
842
 
843
  // get background effects settings
844
+ if ( file_exists(dirname(__FILE__) . '/inc/settings/settings-background_effects.php') ) {
845
+ require ( dirname(__FILE__) . '/inc/settings/settings-background_effects.php' );
846
+ }
847
+
848
+ // special effects for premium themes
849
+ if ( in_array( $this->cmp_selectedTheme(), $this->premium_installed ) || ( isset( $theme_supports['special_effects'] ) && $theme_supports['special_effects'] ) ) {
850
+
851
+ // get background effects settings
852
+ if ( file_exists(dirname(__FILE__) . '/inc/settings/settings-special_effects.php' ) ) {
853
+ require (dirname(__FILE__) . '/inc/settings/settings-special_effects.php' );
854
+ }
855
+
856
+ } else {
857
+
858
+ if ( file_exists(dirname(__FILE__) . '/inc/settings/settings-special_effects-disabled.php' ) ) {
859
+ require ( dirname(__FILE__) . '/inc/settings/settings-special_effects-disabled.php' );
860
+ }
861
  }
862
 
863
  // get slider settings
864
+ if ( isset( $theme_supports['slider'] ) && $theme_supports['slider'] ) {
865
+ if ( file_exists(dirname(__FILE__) . '/inc/settings/settings-slider.php' ) ) {
866
+ require (dirname(__FILE__) . '/inc/settings/settings-slider.php' );
867
  }
868
 
869
  } else {
870
+ if ( file_exists(dirname(__FILE__) . '/inc/settings/settings-slider-disabled.php' ) ) {
871
+ require ( dirname(__FILE__) . '/inc/settings/settings-slider-disabled.php' );
872
  }
873
 
874
  }
875
 
876
  // include theme related settings
877
+ if ( file_exists( $this->cmp_themePath( $this->cmp_selectedTheme() ).$this->cmp_selectedTheme().'/'.$this->cmp_selectedTheme().'-settings.php' ) ) {
878
+ require ( $this->cmp_themePath( $this->cmp_selectedTheme() ).$this->cmp_selectedTheme().'/'.$this->cmp_selectedTheme().'-settings.php' );
879
  }
880
  ?>
881
 
1091
 
1092
  <p class="analytics-switch other">
1093
  <label for="niteoCS_analytics_other"><?php _e('Insert your Analytics Javascript code', 'cmp-coming-soon-maintenance');?></label><br>
1094
+ <textarea name="niteoCS_analytics_other" rows="5" class="code"><?php echo stripslashes( esc_js( $niteoCS_analytics_other ) ); ?></textarea>
1095
  </p>
1096
  </fieldset>
1097
 
cmp-sidebar.php CHANGED
@@ -5,23 +5,6 @@
5
 
6
  </div>
7
 
8
- <div class="cmp-rate-us widget">
9
- <h3 class="cmp-rate-us title"><?php _e('Thank you for rating us with five stars!', 'cmp-coming-soon-maintenance');?></h3>
10
- <p><?php echo sprintf(__('If you find our CMP plugin useful, please show us some love and give 5%s feedback by pressing button below.', 'cmp-coming-soon-maintenance'), '<i class="fa fa-star" aria-hidden="true"></i>');?></p>
11
- <a href="https://wordpress.org/support/plugin/cmp-coming-soon-maintenance/reviews/?rate=5#new-post" target="_blank" style="text-decoration:none;">
12
-
13
- <p class="button button-primary"><?php _e('Leave Feedback', 'cmp-coming-soon-maintenance');?></p>
14
- <i class="fa fa-star" aria-hidden="true"></i>
15
- <i class="fa fa-star" aria-hidden="true"></i>
16
- <span class="dashicons dashicons-star-filled"></span>
17
- <i class="fa fa-star" aria-hidden="true"></i>
18
- <i class="fa fa-star" aria-hidden="true"></i>
19
- </a>
20
- <p><?php _e('Also don`t forget you can ask Wordpress Community or our NiteoThemes expert support. For a help simply visit link below.', 'cmp-coming-soon-maintenance');?> <a href="http://wordpress.org/support/plugin/cmp-coming-soon-maintenance/" target="_blank"><?php _e('Wordpress Support Forum', 'cmp-coming-soon-maintenance');?></a>
21
- </p>
22
-
23
- </div>
24
-
25
  <div class="donate widget">
26
 
27
 
@@ -43,9 +26,27 @@
43
  </form>
44
  </div>
45
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
46
  <div class="request-feature widget">
47
  <h3 class="cmp-rate-us title"><?php _e('Request new features', 'cmp-coming-soon-maintenance');?></h3>
48
- <p><?php echo sprintf(__('Do you think some useful feature is missing or you have idea how to improve CMP plugin? You can %s on official Wordpress Support Forum and if we find it useful we will implement it in next CMP Plugin update', 'cmp-coming-soon-maintenance'), '<a href="https://wordpress.org/support/topic/request-features-3/" target="_blank" style="text-decoration:none;">request feature</a>');?> <i class="fa fa-smile-o" aria-hidden="true"></i></p>
49
 
50
  </div>
51
 
5
 
6
  </div>
7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8
  <div class="donate widget">
9
 
10
 
26
  </form>
27
  </div>
28
 
29
+ <div class="cmp-rate-us widget">
30
+ <h3 class="cmp-rate-us title"><?php _e('Thank you for rating us with five stars!', 'cmp-coming-soon-maintenance');?></h3>
31
+ <p><?php echo sprintf(__('If you find our CMP plugin useful, please show us some love and give 5%s feedback by pressing button below.', 'cmp-coming-soon-maintenance'), '<i class="fa fa-star" aria-hidden="true"></i>');?></p>
32
+ <a href="https://wordpress.org/support/plugin/cmp-coming-soon-maintenance/reviews/?rate=5#new-post" target="_blank" style="text-decoration:none;">
33
+
34
+ <p class="button button-primary"><?php _e('Leave Feedback', 'cmp-coming-soon-maintenance');?></p>
35
+ <i class="fa fa-star" aria-hidden="true"></i>
36
+ <i class="fa fa-star" aria-hidden="true"></i>
37
+ <span class="dashicons dashicons-star-filled"></span>
38
+ <i class="fa fa-star" aria-hidden="true"></i>
39
+ <i class="fa fa-star" aria-hidden="true"></i>
40
+ </a>
41
+ <p><?php _e('Also don`t forget you can ask Wordpress Community or our NiteoThemes expert support. For a help simply visit link below.', 'cmp-coming-soon-maintenance');?> <a href="http://wordpress.org/support/plugin/cmp-coming-soon-maintenance/" target="_blank"><?php _e('Wordpress Support Forum', 'cmp-coming-soon-maintenance');?></a>
42
+ </p>
43
+
44
+ </div>
45
+
46
+
47
  <div class="request-feature widget">
48
  <h3 class="cmp-rate-us title"><?php _e('Request new features', 'cmp-coming-soon-maintenance');?></h3>
49
+ <p><?php echo sprintf( __('Do you miss some feature or do you have idea how to improve CMP plugin? You can %s on official Wordpress Support Forum.', 'cmp-coming-soon-maintenance'), '<a href="http://wordpress.org/support/plugin/cmp-coming-soon-maintenance/" target="_blank" style="text-decoration:none;">request feature</a>' );?> <i class="fa fa-smile-o" aria-hidden="true"></i></p>
50
 
51
  </div>
52
 
css/cmp-settings-style.css CHANGED
@@ -486,7 +486,7 @@
486
  }
487
 
488
  .cmp-coming-soon-maintenance .theme-wrapper:hover .thumbnail-holder::before {
489
- background-color: rgba(0, 0, 0, 0.7);
490
  }
491
 
492
 
486
  }
487
 
488
  .cmp-coming-soon-maintenance .theme-wrapper:hover .thumbnail-holder::before {
489
+ background-color: rgba(0, 0, 0, 0.95);
490
  }
491
 
492
 
css/cmp-settings-style.min.css CHANGED
@@ -1 +1 @@
1
- .cmp-coming-soon-maintenance{overflow-x:hidden}.no-margin{margin:0}.cmp-coming-soon-maintenance .cmp-settings-wrapper{position:relative;margin-top:1em}.cmp-coming-soon-maintenance .wrapper-disabled{opacity:.4}.cmp-coming-soon-maintenance .comingsoon-error,.cmp-coming-soon-maintenance .comingsoon-success{padding:1em;width:calc(100% - 4em);border-left:4px solid red;background-color:#fff}.cmp-coming-soon-maintenance .comingsoon-success{border-left:4px solid #00d221}.cmp-coming-soon-maintenance .padding-bottom{padding-bottom:10px}.cmp-coming-soon-maintenance .select2-container--default .select2-selection--single,.cmp-coming-soon-maintenance input[type=text]{border:1px solid #d4d4d4;border-radius:4px;line-height:2.5em;height:2.5em;-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,.03);box-shadow:inset 0 1px 2px rgba(0,0,0,.03)}.cmp-coming-soon-maintenance .select2-container .select2-selection--single{height:35px}.cmp-coming-soon-maintenance .select2-container--default .select2-selection--single .select2-selection__rendered{line-height:35px}.cmp-coming-soon-maintenance .select2-container--default .select2-selection--single .select2-selection__arrow{top:4px}.cmp-coming-soon-maintenance .select2-container:not(.select2-container--open){width:100%!important}.cmp-coming-soon-maintenance input[type=range]{display:block;-webkit-appearance:none;background-color:#dedede;width:100%;height:5px;border-radius:5px;margin:10px auto 0;outline:0}.cmp-coming-soon-maintenance input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;background-color:#0085ba;width:17px;height:17px;border-radius:50%;border:1px solid #d4d4d4;cursor:pointer;-webkit-transition:.3s ease-in-out;transition:.3s ease-in-out}​.cmp-coming-soon-maintenance input[type=range]::-webkit-slider-thumb:hover{background-color:#006799;border:2px solid #0085ba}.cmp-coming-soon-maintenance input[type=range]::-webkit-slider-thumb:active{-webkit-transform:scale(1.2);transform:scale(1.2)}.cmp-coming-soon-maintenance input[type=text],.cmp-coming-soon-maintenance textarea{width:100%}.cmp-coming-soon-maintenance #niteoCS_countdown_redirect,.cmp-coming-soon-maintenance #niteoCS_countdown_text,.cmp-coming-soon-maintenance .table-wrapper.content,.cmp-coming-soon-maintenance .table-wrapper.install,.cmp-coming-soon-maintenance .table-wrapper.seo,.cmp-coming-soon-maintenance .table-wrapper.theme-setup{display:none}.cmp-coming-soon-maintenance .wp-upload-form.cmp{padding:4em;display:block}.cmp-coming-soon-maintenance .cmp-status legend{width:95%;padding:10px;cursor:pointer}.cmp-coming-soon-maintenance .cmp-status .active{background-color:#ddd}.cmp-coming-soon-maintenance .redirect{margin-bottom:0}.cmp-coming-soon-maintenance .help-settings,.cmp-coming-soon-maintenance .subscribers-settings,.cmp-coming-soon-maintenance .table-wrapper,.cmp-coming-soon-maintenance .translate-settings{background-color:#fff;border:1px solid #dedede;margin:0 0 1em;max-width:920px}.cmp-coming-soon-maintenance div.custom_css{padding-bottom:2em;padding-right:3em;background:#fff;border:1px solid #dedede}.cmp-coming-soon-maintenance .CodeMirror-wrap{border-right:1px solid #dedede}.cmp-coming-soon-maintenance .custom_css .cmp-submit{padding-left:1em;border-top:1px solid #dedede;padding-top:2em}.cmp-coming-soon-maintenance .cmp-inputs-wrapper .translation input,.cmp-coming-soon-maintenance .cmp-inputs-wrapper .translation textarea{width:100%}.cmp-coming-soon-maintenance .cmp-inputs-wrapper{display:inline-block;max-width:920px;min-width:920px}.cmp-coming-soon-maintenance .table-wrapper.closed table,.cmp-coming-soon-maintenance .translate-settings tfoot{display:none}.cmp-coming-soon-maintenance .help-settings,.cmp-coming-soon-maintenance .subscribers-settings,.cmp-coming-soon-maintenance .translate-settings{max-width:calc(920px - 2em);min-width:calc(920px - 2em);padding:1em}.cmp-coming-soon-maintenance .custom_css h3,.cmp-coming-soon-maintenance .table-wrapper h3{position:relative;padding:.5em 0 .5em 1em;margin:0;border-bottom:1px solid #dedede;text-align:left}.cmp-coming-soon-maintenance #unsplash-media,.cmp-coming-soon-maintenance .background-media td fieldset,.cmp-coming-soon-maintenance .cmp-logo-switch.graphic{padding-top:1em}.cmp-coming-soon-maintenance .table-wrapper h3:not(.no-icon):not(.notice-title):not(#heading-example)::after{font-family:fontAwesome;content:"\f147";position:absolute;right:10px;font-weight:400;opacity:.6;cursor:pointer;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.cmp-coming-soon-maintenance #niteoCS-text-logo,.cmp-coming-soon-maintenance .theme-title,.cmp-coming-soon-maintenance th label{font-weight:600}.cmp-coming-soon-maintenance .table-wrapper.closed h3:not(.no-icon):not(.notice-title)::after{content:"\f196"}.cmp-coming-soon-maintenance .table-wrapper h4{margin:0}.cmp-coming-soon-maintenance .table-wrapper table{padding:1em;height:auto;width:90%}.cmp-coming-soon-maintenance .table-wrapper .theme-selector{width:100%}.cmp-coming-soon-maintenance .table-wrapper select{margin-bottom:10px;width:100%}.cmp-coming-soon-maintenance .table-wrapper td{width:100%;max-width:600px;margin-bottom:1em;display:block}.cmp-coming-soon-maintenance #unsplash_img,.cmp-coming-soon-maintenance .table-wrapper td.theme-selector{max-width:100%}.cmp-coming-soon-maintenance .table-wrapper th{vertical-align:top;width:180px;text-align:left}.cmp-coming-soon-maintenance #delete-banner,.cmp-coming-soon-maintenance #delete-favicon,.cmp-coming-soon-maintenance #delete-logo,.cmp-coming-soon-maintenance #delete-video-thumb{display:none}.cmp-coming-soon-maintenance .social-media{margin-top:0;margin-bottom:3em}.cmp-coming-soon-maintenance .social-inputs{position:relative}.cmp-coming-soon-maintenance .social-inputs .label{display:none;font-weight:600;position:absolute;top:-20px;left:-8px}.cmp-coming-soon-maintenance #niteoCS-text-logo{border:none;-webkit-box-shadow:none;box-shadow:none;font-size:3em}.cmp-coming-soon-maintenance .social-description{margin-top:0}.cmp-coming-soon-maintenance .social-inputs .label:nth-of-type(2){left:62px}.cmp-coming-soon-maintenance .social-inputs .label:nth-of-type(3){left:148px}.cmp-coming-soon-maintenance .social-media li{display:inline-block;padding-right:1.5em;padding-bottom:1em}.cmp-coming-soon-maintenance .social-media i{font-size:2.45em;cursor:pointer}.cmp-coming-soon-maintenance .social-media i.active{color:#d54e21}.cmp-coming-soon-maintenance .social-inputs li{display:none;width:100%}.cmp-coming-soon-maintenance .social-inputs li.active{display:inline-block}.cmp-coming-soon-maintenance #custom_content_font,.cmp-coming-soon-maintenance #custom_headings_font,.cmp-coming-soon-maintenance #unsplash_img,.cmp-coming-soon-maintenance .unsplash-feed{display:none}.cmp-coming-soon-maintenance .social-inputs p{position:relative;padding-left:50px;height:50px}.cmp-coming-soon-maintenance .social-inputs p i{position:absolute;left:0;top:20px;font-size:30px;width:30px;cursor:move}.cmp-coming-soon-maintenance .theme-details,.cmp-coming-soon-maintenance .toggle{cursor:pointer}.cmp-coming-soon-maintenance .social-inputs label{padding-left:100px}.cmp-coming-soon-maintenance .social-inputs input[type=text]{margin-left:100px;width:calc(100% - 100px)}.cmp-coming-soon-maintenance .social-inputs input[type=checkbox]{position:absolute;width:26px;height:26px;top:23px;left:65px}.cmp-coming-soon-maintenance .social-inputs input[type=checkbox]:checked:before{margin:3px 0 0 1px}.cmp-coming-soon-maintenance .color-preview,.cmp-coming-soon-maintenance .gradient-preview,.cmp-coming-soon-maintenance .pattern-wrapper{background-repeat:repeat;height:200px;border:1px solid #ededed;margin-top:1em}.cmp-coming-soon-maintenance .theme-overlay .screenshot,.cmp-coming-soon-maintenance .thumbnail-holder{position:relative;background-size:cover;background-repeat:no-repeat;background-position:center}.cmp-coming-soon-maintenance .video-wrapper{position:relative;width:100%;margin-top:1em}.cmp-coming-soon-maintenance #add-pattern{margin-bottom:1em}.cmp-coming-soon-maintenance .info{font-size:12px}.cmp-coming-soon-maintenance .nav-tab i{padding-right:3px}.cmp-coming-soon-maintenance .banner-wrapper,.cmp-coming-soon-maintenance .favicon-wrapper,.cmp-coming-soon-maintenance .logo-wrapper{margin:1em 0}.cmp-coming-soon-maintenance .favicon-wrapper img,.cmp-coming-soon-maintenance .logo-wrapper img{background-color:#efefef;padding:1em}.cmp-coming-soon-maintenance .favicon-wrapper img{max-width:32px}.cmp-coming-soon-maintenance .background-media img,.cmp-coming-soon-maintenance .logo-wrapper img{max-width:100%;width:100%}.cmp-coming-soon-maintenance .logo-wrapper img{max-height:150px;width:auto}.cmp-coming-soon-maintenance #font-example-wrapper{padding:1em;border:1px solid #dedede;overflow:hidden}.cmp-coming-soon-maintenance #heading-example{border-bottom:none;line-height:1.5;padding:0}.cmp-coming-soon-maintenance .font-selector td:first-of-type{padding-bottom:2em}.cmp-coming-soon-maintenance .font-selector fieldset{padding:.5em 0}.cmp-coming-soon-maintenance .theme-wrapper{display:inline-block;margin:2em 1em 2em 0;width:calc(33.33% - 1.5em + 6px);text-align:center;border:1px solid #efefef;border-radius:6px;position:relative}.cmp-coming-soon-maintenance .theme-wrapper:nth-of-type(3n){margin-right:0}.cmp-coming-soon-maintenance .theme-wrapper.active{background-color:#ddd}.cmp-coming-soon-maintenance .thumbnail-holder{width:100%;border-top-left-radius:5px;border-top-right-radius:5px}.cmp-coming-soon-maintenance .thumbnail-holder::before{content:'';display:block;padding-top:56.25%;-webkit-transition:background-color .1s;transition:background-color .1s;border-top-left-radius:5px;border-top-right-radius:5px}.cmp-coming-soon-maintenance .theme-wrapper:hover .thumbnail-holder::before{background-color:rgba(0,0,0,.7)}.cmp-coming-soon-maintenance .toggle,.cmp-coming-soon-maintenance .toggle-wrapper{display:inline-block}.cmp-coming-soon-maintenance .theme-title{float:left;text-transform:uppercase}.cmp-coming-soon-maintenance .theme-version{float:right}.cmp-coming-soon-maintenance .theme-wrapper .hide:not(.selected){opacity:0;-webkit-transition:opacity .1s,background-color .1s;transition:opacity .1s,background-color .1s}.cmp-coming-soon-maintenance .theme-wrapper:hover .hide{opacity:1;-webkit-transition:opacity .1s,background-color .1s;transition:opacity .1s,background-color .1s}.cmp-coming-soon-maintenance .theme-inputs{position:absolute;bottom:-36px;right:0;left:0;padding:5px 10px 5px 5px;height:2em;background:#656565;line-height:2em;color:#fff}.cmp-coming-soon-maintenance .active .theme-inputs{background:#27ae60}.cmp-coming-soon-maintenance .theme-inputs .italic{font-style:italic}.cmp-coming-soon-maintenance .theme-wrapper .buttons-wrapper{position:absolute;top:50%;left:0;right:0;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.cmp-coming-soon-maintenance .cmp-button,.cmp-coming-soon-maintenance .cmp-preview,.cmp-coming-soon-maintenance .theme-wrapper .button{height:28px;line-height:28px;padding:0 10px;min-width:80px;border-radius:3px;color:#fff!important;-moz-appearance:none;-webkit-appearance:none;-webkit-transition:background-color .5s;transition:background-color .5s;border:none!important;box-shadow:none;-webkit-box-shadow:none;text-shadow:none;text-transform:uppercase}.cmp-coming-soon-maintenance .cmp-button.submit,.cmp-coming-soon-maintenance .theme-actions .activate{background-color:#c0392b;color:#fff;border:none;-webkit-transition:background-color .5s;transition:background-color .5s}.cmp-coming-soon-maintenance .theme-wrapper a.button:focus,.cmp-coming-soon-maintenance .theme-wrapper a.button:visited{background:0 0;-webkit-box-shadow:none;box-shadow:none}.cmp-coming-soon-maintenance .theme-wrapper a.button.theme-purchase{background-color:#ff3284}.cmp-coming-soon-maintenance .cmp-button.submit:focus,.cmp-coming-soon-maintenance .cmp-button.submit:hover,.cmp-coming-soon-maintenance .theme-actions .activate:focus,.cmp-coming-soon-maintenance .theme-actions .activate:hover{background-color:#e74c3c;color:#fff;border:none}.cmp-coming-soon-maintenance .theme-wrapper .button{border:2px solid #fff!important;background:0 0;width:180px;line-height:2.5em;height:3em}.cmp-coming-soon-maintenance .theme-wrapper .button.theme-select input[type=radio]{position:relative;background:0 0;border:none;outline:0;-webkit-box-shadow:none;box-shadow:none}.cmp-coming-soon-maintenance .theme-wrapper .button.theme-select input[type=radio]::before{content:none}.cmp-coming-soon-maintenance .theme-wrapper .button.theme-select input[type=radio]::after{font-family:fontAwesome;content:"\f096";position:absolute;top:3px;left:0;opacity:1;color:#fff}.cmp-coming-soon-maintenance .theme-wrapper .selected.button.theme-select input[type=radio]::after{content:"\f046";color:#23282d}.cmp-coming-soon-maintenance .theme-wrapper.active .button.theme-select input[type=radio]::after{content:"\f046"}.cmp-coming-soon-maintenance .theme-wrapper .button:hover,.cmp-coming-soon-maintenance .theme-wrapper a.button:hover{background:#fff;color:#23282d!important}.cmp-coming-soon-maintenance .selected.button,.cmp-coming-soon-maintenance .theme-wrapper .button.theme-select:hover input[type=radio]::after{color:#23282d!important}.cmp-coming-soon-maintenance .theme-wrapper .theme-preview,.cmp-coming-soon-maintenance .theme-wrapper .theme-purchase,.cmp-coming-soon-maintenance .theme-wrapper .theme-select{margin-bottom:5px}.cmp-coming-soon-maintenance .theme-wrapper .theme-select.selected{background-color:#32b2ff}.cmp-coming-soon-maintenance .theme-wrapper .theme-details.button{line-height:0}.cmp-coming-soon-maintenance .cmp-preview{background-color:#2485bf!important}.cmp-coming-soon-maintenance .cmp-preview:active,.cmp-coming-soon-maintenance .cmp-preview:hover{background-color:#32b2ff!important}.cmp-coming-soon-maintenance .theme-info .theme-purchase{width:auto;min-width:40%;height:55px;font-size:2em;background-color:#2c3e50;border:none}.cmp-coming-soon-maintenance .theme-info .theme-purchase:focus,.cmp-coming-soon-maintenance .theme-info .theme-purchase:hover{background-color:#34495e}.cmp-coming-soon-maintenance .button i{margin-right:5px}.cmp-coming-soon-maintenance .theme-purchase a,.cmp-coming-soon-maintenance .theme-purchase a:hover,.cmp-coming-soon-maintenance .theme-purchase a:visited{color:#fff;text-decoration:none}.cmp-coming-soon-maintenance p.cmp-submit{margin:0;padding-top:0;font-weight:400;text-align:left}.cmp-coming-soon-maintenance .theme-overlay .screenshot{-webkit-transition:background-image .2s ease-in-out;transition:background-image .2s ease-in-out}.cmp-coming-soon-maintenance .theme-overlay .screenshots-nav{position:absolute;right:0;top:0;color:#fff;cursor:pointer}.cmp-coming-soon-maintenance .theme-overlay .screenshots-nav div{width:40px;height:40px;background-color:#000;line-height:40px;opacity:.7;-webkit-transition:opacity .5s;transition:opacity .5s}.cmp-coming-soon-maintenance .fifty-layout input:checked+img,.cmp-coming-soon-maintenance .theme-overlay .screenshots-nav div:hover{opacity:1}.cmp-coming-soon-maintenance .theme-overlay .screenshots-nav .left{float:left}.cmp-coming-soon-maintenance .theme-overlay .screenshots-nav .right{float:right}.cmp-coming-soon-maintenance .theme-description ul{list-style:none;padding-left:2em}.cmp-coming-soon-maintenance .theme-description h4,.cmp-coming-soon-maintenance .theme-description li{font-size:13px}.cmp-coming-soon-maintenance .theme-description .supported i{color:green}.cmp-coming-soon-maintenance .theme-description .not-supported i{color:red}.cmp-coming-soon-maintenance .wp-list-table .column-id{width:5%}.cmp-coming-soon-maintenance .cmp-status{margin-bottom:3em}.cmp-coming-soon-maintenance .toggle{position:relative;width:200px;height:30px;font-weight:600;background:0 0;border:2px solid #f1f1f1;-webkit-transition:all .2s ease-in-out;transition:all .2s ease-in-out;border-radius:15px}.cmp-coming-soon-maintenance .toggle:after,.cmp-coming-soon-maintenance .toggle:before{position:absolute;line-height:30px;font-size:14px;z-index:2;-webkit-transition:all .2s ease-in-out;transition:all .2s ease-in-out}.cmp-coming-soon-maintenance input[type=checkbox].toggle-checkbox{display:none}.cmp-coming-soon-maintenance .toggle_handler{display:inline-block;position:relative;z-index:1;background:#c0392b;width:90px;height:24px;top:3px;left:5px;-webkit-transition:all .2s ease-in-out;transition:all .2s ease-in-out;-webkit-transform:translateX(0);transform:translateX(0);border-radius:10px 0 0 10px}.cmp-coming-soon-maintenance .toggle-checkbox:checked+.toggle .toggle_handler{width:90px;-webkit-transform:translateX(100px);transform:translateX(100px);background:#27ae60;border-radius:0 10px 10px 0}.cmp-coming-soon-maintenance .toggle-wrapper:hover .toggle_handler{background:#e74c3c}.cmp-coming-soon-maintenance .toggle-wrapper:hover .toggle-checkbox:checked+.toggle .toggle_handler{background:#2ecc71}.cmp-coming-soon-maintenance .toggle:before{content:"Disabled";left:22px;color:#fff}.cmp-coming-soon-maintenance .toggle-checkbox:checked+.toggle:before,.cmp-coming-soon-maintenance .toggle:after{color:#23282d}.cmp-coming-soon-maintenance .toggle:after{content:"Enabled";right:26px}.cmp-coming-soon-maintenance .toggle-checkbox:checked+.toggle:after{color:#fff}.cmp-coming-soon-maintenance .fifty-layout label{display:block;position:relative;padding-bottom:1em;margin-top:1em}.cmp-coming-soon-maintenance .fifty-layout input{visibility:hidden;position:absolute;margin:0}.cmp-coming-soon-maintenance .fifty-layout img{display:block;opacity:.3;outline:solid 1px;padding:2px;margin-left:5px;margin-top:5px}.cmp-coming-soon-maintenance .cmp-sidebar-wrapper{display:inline-block;width:calc(100% - 6em - 920px);max-width:350px;min-width:300px;margin-left:1em;padding-top:0;vertical-align:top;text-align:center}.cmp-coming-soon-maintenance .cmp-sidebar-wrapper .widget{padding:2em;border:1px solid #dedede;background:#fff}.cmp-coming-soon-maintenance .widget.donate img{max-width:50px}.cmp-coming-soon-maintenance .widget.donate img.niteo-logo{max-width:120px}.cmp-coming-soon-maintenance .cmp-rate-us .button,.cmp-coming-soon-maintenance .cmp-rate-us a{display:block;text-align:center}.cmp-coming-soon-maintenance .cmp-rate-us a{padding:1em 0}.cmp-coming-soon-maintenance .cmp-rate-us .button{max-width:150px;margin:0 auto 1em}.cmp-coming-soon-maintenance .cmp-rate-us form{text-align:center}.cmp-coming-soon-maintenance .subscribers .column-id{width:5%}@media screen and (max-width:1450px){.cmp-coming-soon-maintenance .cmp-inputs-wrapper{min-width:70%}.cmp-coming-soon-maintenance .cmp-sidebar-wrapper{width:calc(30% - 2em + 7px)}.cmp-coming-soon-maintenance .theme-wrapper,.cmp-coming-soon-maintenance .theme-wrapper.premium{width:calc(50% - 3em - 5px)}}@media screen and (max-width:1270px){.cmp-coming-soon-maintenance .cmp-inputs-wrapper{min-width:100%}}@media screen and (max-width:1110px){.cmp-coming-soon-maintenance .theme-wrapper,.cmp-coming-soon-maintenance .theme-wrapper.premium{margin-right:0;width:calc(100% - 5px)}.cmp-coming-soon-maintenance .table-wrapper th{display:block}.cmp-coming-soon-maintenance .cmp-sidebar-wrapper .widget{padding:1em}}@media screen and (max-width:1024px){.cmp-coming-soon-maintenance .table-wrapper table{width:100%}.cmp-coming-soon-maintenance .table-wrapper th{width:140px}}@media screen and (max-width:782px){.cmp-coming-soon-maintenance .social-inputs input[type=checkbox]:checked:before{margin:-1px 0 0 -4px}.cmp-coming-soon-maintenance .cmp-inputs-wrapper,.cmp-coming-soon-maintenance .cmp-sidebar-wrapper{display:block;max-width:100%;width:100%;margin:0}.cmp-coming-soon-maintenance .cmp-sidebar-wrapper .widget{padding:2em;margin-bottom:1em!important}.cmp-coming-soon-maintenance .theme-overlay .theme-info,.cmp-coming-soon-maintenance .theme-overlay .theme-screenshots{width:100%;float:none}.cmp-coming-soon-maintenance input[type=text],.cmp-coming-soon-maintenance textarea{font-size:13px}}@media screen and (max-width:560px){.cmp-coming-soon-maintenance .social-inputs .label:nth-of-type(2){left:50px}.cmp-coming-soon-maintenance .social-inputs .label:nth-of-type(3){left:105px}.cmp-coming-soon-maintenance .social-inputs p i{top:22px}.cmp-coming-soon-maintenance .social-inputs input[type=checkbox]{top:28px;left:53px}.cmp-coming-soon-maintenance .social-inputs label{padding-left:55px}.cmp-coming-soon-maintenance .social-inputs input[type=text]{margin-left:55px;width:calc(100% - 55px)}}
1
+ .cmp-coming-soon-maintenance{overflow-x:hidden}.no-margin{margin:0}.cmp-coming-soon-maintenance .cmp-settings-wrapper{position:relative;margin-top:1em}.cmp-coming-soon-maintenance .wrapper-disabled{opacity:.4}.cmp-coming-soon-maintenance .comingsoon-error,.cmp-coming-soon-maintenance .comingsoon-success{padding:1em;width:calc(100% - 4em);border-left:4px solid red;background-color:#fff}.cmp-coming-soon-maintenance .comingsoon-success{border-left:4px solid #00d221}.cmp-coming-soon-maintenance .padding-bottom{padding-bottom:10px}.cmp-coming-soon-maintenance .select2-container--default .select2-selection--single,.cmp-coming-soon-maintenance input[type=text]{border:1px solid #d4d4d4;border-radius:4px;line-height:2.5em;height:2.5em;-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,.03);box-shadow:inset 0 1px 2px rgba(0,0,0,.03)}.cmp-coming-soon-maintenance .select2-container .select2-selection--single{height:35px}.cmp-coming-soon-maintenance .select2-container--default .select2-selection--single .select2-selection__rendered{line-height:35px}.cmp-coming-soon-maintenance .select2-container--default .select2-selection--single .select2-selection__arrow{top:4px}.cmp-coming-soon-maintenance .select2-container:not(.select2-container--open){width:100%!important}.cmp-coming-soon-maintenance input[type=range]{display:block;-webkit-appearance:none;background-color:#dedede;width:100%;height:5px;border-radius:5px;margin:10px auto 0;outline:0}.cmp-coming-soon-maintenance input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;background-color:#0085ba;width:17px;height:17px;border-radius:50%;border:1px solid #d4d4d4;cursor:pointer;-webkit-transition:.3s ease-in-out;transition:.3s ease-in-out}​.cmp-coming-soon-maintenance input[type=range]::-webkit-slider-thumb:hover{background-color:#006799;border:2px solid #0085ba}.cmp-coming-soon-maintenance input[type=range]::-webkit-slider-thumb:active{-webkit-transform:scale(1.2);transform:scale(1.2)}.cmp-coming-soon-maintenance input[type=text],.cmp-coming-soon-maintenance textarea{width:100%}.cmp-coming-soon-maintenance #niteoCS_countdown_redirect,.cmp-coming-soon-maintenance #niteoCS_countdown_text,.cmp-coming-soon-maintenance .table-wrapper.content,.cmp-coming-soon-maintenance .table-wrapper.install,.cmp-coming-soon-maintenance .table-wrapper.seo,.cmp-coming-soon-maintenance .table-wrapper.theme-setup{display:none}.cmp-coming-soon-maintenance .wp-upload-form.cmp{padding:4em;display:block}.cmp-coming-soon-maintenance .cmp-status legend{width:95%;padding:10px;cursor:pointer}.cmp-coming-soon-maintenance .cmp-status .active{background-color:#ddd}.cmp-coming-soon-maintenance .redirect{margin-bottom:0}.cmp-coming-soon-maintenance .help-settings,.cmp-coming-soon-maintenance .subscribers-settings,.cmp-coming-soon-maintenance .table-wrapper,.cmp-coming-soon-maintenance .translate-settings{background-color:#fff;border:1px solid #dedede;margin:0 0 1em;max-width:920px}.cmp-coming-soon-maintenance div.custom_css{padding-bottom:2em;padding-right:3em;background:#fff;border:1px solid #dedede}.cmp-coming-soon-maintenance .CodeMirror-wrap{border-right:1px solid #dedede}.cmp-coming-soon-maintenance .custom_css .cmp-submit{padding-left:1em;border-top:1px solid #dedede;padding-top:2em}.cmp-coming-soon-maintenance .cmp-inputs-wrapper .translation input,.cmp-coming-soon-maintenance .cmp-inputs-wrapper .translation textarea{width:100%}.cmp-coming-soon-maintenance .cmp-inputs-wrapper{display:inline-block;max-width:920px;min-width:920px}.cmp-coming-soon-maintenance .table-wrapper.closed table,.cmp-coming-soon-maintenance .translate-settings tfoot{display:none}.cmp-coming-soon-maintenance .help-settings,.cmp-coming-soon-maintenance .subscribers-settings,.cmp-coming-soon-maintenance .translate-settings{max-width:calc(920px - 2em);min-width:calc(920px - 2em);padding:1em}.cmp-coming-soon-maintenance .custom_css h3,.cmp-coming-soon-maintenance .table-wrapper h3{position:relative;padding:.5em 0 .5em 1em;margin:0;border-bottom:1px solid #dedede;text-align:left}.cmp-coming-soon-maintenance #unsplash-media,.cmp-coming-soon-maintenance .background-media td fieldset,.cmp-coming-soon-maintenance .cmp-logo-switch.graphic{padding-top:1em}.cmp-coming-soon-maintenance .table-wrapper h3:not(.no-icon):not(.notice-title):not(#heading-example)::after{font-family:fontAwesome;content:"\f147";position:absolute;right:10px;font-weight:400;opacity:.6;cursor:pointer;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.cmp-coming-soon-maintenance #niteoCS-text-logo,.cmp-coming-soon-maintenance .theme-title,.cmp-coming-soon-maintenance th label{font-weight:600}.cmp-coming-soon-maintenance .table-wrapper.closed h3:not(.no-icon):not(.notice-title)::after{content:"\f196"}.cmp-coming-soon-maintenance .table-wrapper h4{margin:0}.cmp-coming-soon-maintenance .table-wrapper table{padding:1em;height:auto;width:90%}.cmp-coming-soon-maintenance .table-wrapper .theme-selector{width:100%}.cmp-coming-soon-maintenance .table-wrapper select{margin-bottom:10px;width:100%}.cmp-coming-soon-maintenance .table-wrapper td{width:100%;max-width:600px;margin-bottom:1em;display:block}.cmp-coming-soon-maintenance #unsplash_img,.cmp-coming-soon-maintenance .table-wrapper td.theme-selector{max-width:100%}.cmp-coming-soon-maintenance .table-wrapper th{vertical-align:top;width:180px;text-align:left}.cmp-coming-soon-maintenance #delete-banner,.cmp-coming-soon-maintenance #delete-favicon,.cmp-coming-soon-maintenance #delete-logo,.cmp-coming-soon-maintenance #delete-video-thumb{display:none}.cmp-coming-soon-maintenance .social-media{margin-top:0;margin-bottom:3em}.cmp-coming-soon-maintenance .social-inputs{position:relative}.cmp-coming-soon-maintenance .social-inputs .label{display:none;font-weight:600;position:absolute;top:-20px;left:-8px}.cmp-coming-soon-maintenance #niteoCS-text-logo{border:none;-webkit-box-shadow:none;box-shadow:none;font-size:3em}.cmp-coming-soon-maintenance .social-description{margin-top:0}.cmp-coming-soon-maintenance .social-inputs .label:nth-of-type(2){left:62px}.cmp-coming-soon-maintenance .social-inputs .label:nth-of-type(3){left:148px}.cmp-coming-soon-maintenance .social-media li{display:inline-block;padding-right:1.5em;padding-bottom:1em}.cmp-coming-soon-maintenance .social-media i{font-size:2.45em;cursor:pointer}.cmp-coming-soon-maintenance .social-media i.active{color:#d54e21}.cmp-coming-soon-maintenance .social-inputs li{display:none;width:100%}.cmp-coming-soon-maintenance .social-inputs li.active{display:inline-block}.cmp-coming-soon-maintenance #custom_content_font,.cmp-coming-soon-maintenance #custom_headings_font,.cmp-coming-soon-maintenance #unsplash_img,.cmp-coming-soon-maintenance .unsplash-feed{display:none}.cmp-coming-soon-maintenance .social-inputs p{position:relative;padding-left:50px;height:50px}.cmp-coming-soon-maintenance .social-inputs p i{position:absolute;left:0;top:20px;font-size:30px;width:30px;cursor:move}.cmp-coming-soon-maintenance .theme-details,.cmp-coming-soon-maintenance .toggle{cursor:pointer}.cmp-coming-soon-maintenance .social-inputs label{padding-left:100px}.cmp-coming-soon-maintenance .social-inputs input[type=text]{margin-left:100px;width:calc(100% - 100px)}.cmp-coming-soon-maintenance .social-inputs input[type=checkbox]{position:absolute;width:26px;height:26px;top:23px;left:65px}.cmp-coming-soon-maintenance .social-inputs input[type=checkbox]:checked:before{margin:3px 0 0 1px}.cmp-coming-soon-maintenance .color-preview,.cmp-coming-soon-maintenance .gradient-preview,.cmp-coming-soon-maintenance .pattern-wrapper{background-repeat:repeat;height:200px;border:1px solid #ededed;margin-top:1em}.cmp-coming-soon-maintenance .theme-overlay .screenshot,.cmp-coming-soon-maintenance .thumbnail-holder{position:relative;background-size:cover;background-repeat:no-repeat;background-position:center}.cmp-coming-soon-maintenance .video-wrapper{position:relative;width:100%;margin-top:1em}.cmp-coming-soon-maintenance #add-pattern{margin-bottom:1em}.cmp-coming-soon-maintenance .info{font-size:12px}.cmp-coming-soon-maintenance .nav-tab i{padding-right:3px}.cmp-coming-soon-maintenance .banner-wrapper,.cmp-coming-soon-maintenance .favicon-wrapper,.cmp-coming-soon-maintenance .logo-wrapper{margin:1em 0}.cmp-coming-soon-maintenance .favicon-wrapper img,.cmp-coming-soon-maintenance .logo-wrapper img{background-color:#efefef;padding:1em}.cmp-coming-soon-maintenance .favicon-wrapper img{max-width:32px}.cmp-coming-soon-maintenance .background-media img,.cmp-coming-soon-maintenance .logo-wrapper img{max-width:100%;width:100%}.cmp-coming-soon-maintenance .logo-wrapper img{max-height:150px;width:auto}.cmp-coming-soon-maintenance #font-example-wrapper{padding:1em;border:1px solid #dedede;overflow:hidden}.cmp-coming-soon-maintenance #heading-example{border-bottom:none;line-height:1.5;padding:0}.cmp-coming-soon-maintenance .font-selector td:first-of-type{padding-bottom:2em}.cmp-coming-soon-maintenance .font-selector fieldset{padding:.5em 0}.cmp-coming-soon-maintenance .theme-wrapper{display:inline-block;margin:2em 1em 2em 0;width:calc(33.33% - 1.5em + 6px);text-align:center;border:1px solid #efefef;border-radius:6px;position:relative}.cmp-coming-soon-maintenance .theme-wrapper:nth-of-type(3n){margin-right:0}.cmp-coming-soon-maintenance .theme-wrapper.active{background-color:#ddd}.cmp-coming-soon-maintenance .thumbnail-holder{width:100%;border-top-left-radius:5px;border-top-right-radius:5px}.cmp-coming-soon-maintenance .thumbnail-holder::before{content:'';display:block;padding-top:56.25%;-webkit-transition:background-color .1s;transition:background-color .1s;border-top-left-radius:5px;border-top-right-radius:5px}.cmp-coming-soon-maintenance .theme-wrapper:hover .thumbnail-holder::before{background-color:rgba(0,0,0,.95)}.cmp-coming-soon-maintenance .toggle,.cmp-coming-soon-maintenance .toggle-wrapper{display:inline-block}.cmp-coming-soon-maintenance .theme-title{float:left;text-transform:uppercase}.cmp-coming-soon-maintenance .theme-version{float:right}.cmp-coming-soon-maintenance .theme-wrapper .hide:not(.selected){opacity:0;-webkit-transition:opacity .1s,background-color .1s;transition:opacity .1s,background-color .1s}.cmp-coming-soon-maintenance .theme-wrapper:hover .hide{opacity:1;-webkit-transition:opacity .1s,background-color .1s;transition:opacity .1s,background-color .1s}.cmp-coming-soon-maintenance .theme-inputs{position:absolute;bottom:-36px;right:0;left:0;padding:5px 10px 5px 5px;height:2em;background:#656565;line-height:2em;color:#fff}.cmp-coming-soon-maintenance .active .theme-inputs{background:#27ae60}.cmp-coming-soon-maintenance .theme-inputs .italic{font-style:italic}.cmp-coming-soon-maintenance .theme-wrapper .buttons-wrapper{position:absolute;top:50%;left:0;right:0;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.cmp-coming-soon-maintenance .cmp-button,.cmp-coming-soon-maintenance .cmp-preview,.cmp-coming-soon-maintenance .theme-wrapper .button{height:28px;line-height:28px;padding:0 10px;min-width:80px;border-radius:3px;color:#fff!important;-moz-appearance:none;-webkit-appearance:none;-webkit-transition:background-color .5s;transition:background-color .5s;border:none!important;box-shadow:none;-webkit-box-shadow:none;text-shadow:none;text-transform:uppercase}.cmp-coming-soon-maintenance .cmp-button.submit,.cmp-coming-soon-maintenance .theme-actions .activate{background-color:#c0392b;color:#fff;border:none;-webkit-transition:background-color .5s;transition:background-color .5s}.cmp-coming-soon-maintenance .theme-wrapper a.button:focus,.cmp-coming-soon-maintenance .theme-wrapper a.button:visited{background:0 0;-webkit-box-shadow:none;box-shadow:none}.cmp-coming-soon-maintenance .theme-wrapper a.button.theme-purchase{background-color:#ff3284}.cmp-coming-soon-maintenance .cmp-button.submit:focus,.cmp-coming-soon-maintenance .cmp-button.submit:hover,.cmp-coming-soon-maintenance .theme-actions .activate:focus,.cmp-coming-soon-maintenance .theme-actions .activate:hover{background-color:#e74c3c;color:#fff;border:none}.cmp-coming-soon-maintenance .theme-wrapper .button{border:2px solid #fff!important;background:0 0;width:180px;line-height:2.5em;height:3em}.cmp-coming-soon-maintenance .theme-wrapper .button.theme-select input[type=radio]{position:relative;background:0 0;border:none;outline:0;-webkit-box-shadow:none;box-shadow:none}.cmp-coming-soon-maintenance .theme-wrapper .button.theme-select input[type=radio]::before{content:none}.cmp-coming-soon-maintenance .theme-wrapper .button.theme-select input[type=radio]::after{font-family:fontAwesome;content:"\f096";position:absolute;top:3px;left:0;opacity:1;color:#fff}.cmp-coming-soon-maintenance .theme-wrapper .selected.button.theme-select input[type=radio]::after{content:"\f046";color:#23282d}.cmp-coming-soon-maintenance .theme-wrapper.active .button.theme-select input[type=radio]::after{content:"\f046"}.cmp-coming-soon-maintenance .theme-wrapper .button:hover,.cmp-coming-soon-maintenance .theme-wrapper a.button:hover{background:#fff;color:#23282d!important}.cmp-coming-soon-maintenance .selected.button,.cmp-coming-soon-maintenance .theme-wrapper .button.theme-select:hover input[type=radio]::after{color:#23282d!important}.cmp-coming-soon-maintenance .theme-wrapper .theme-preview,.cmp-coming-soon-maintenance .theme-wrapper .theme-purchase,.cmp-coming-soon-maintenance .theme-wrapper .theme-select{margin-bottom:5px}.cmp-coming-soon-maintenance .theme-wrapper .theme-select.selected{background-color:#32b2ff}.cmp-coming-soon-maintenance .theme-wrapper .theme-details.button{line-height:0}.cmp-coming-soon-maintenance .cmp-preview{background-color:#2485bf!important}.cmp-coming-soon-maintenance .cmp-preview:active,.cmp-coming-soon-maintenance .cmp-preview:hover{background-color:#32b2ff!important}.cmp-coming-soon-maintenance .theme-info .theme-purchase{width:auto;min-width:40%;height:55px;font-size:2em;background-color:#2c3e50;border:none}.cmp-coming-soon-maintenance .theme-info .theme-purchase:focus,.cmp-coming-soon-maintenance .theme-info .theme-purchase:hover{background-color:#34495e}.cmp-coming-soon-maintenance .button i{margin-right:5px}.cmp-coming-soon-maintenance .theme-purchase a,.cmp-coming-soon-maintenance .theme-purchase a:hover,.cmp-coming-soon-maintenance .theme-purchase a:visited{color:#fff;text-decoration:none}.cmp-coming-soon-maintenance p.cmp-submit{margin:0;padding-top:0;font-weight:400;text-align:left}.cmp-coming-soon-maintenance .theme-overlay .screenshot{-webkit-transition:background-image .2s ease-in-out;transition:background-image .2s ease-in-out}.cmp-coming-soon-maintenance .theme-overlay .screenshots-nav{position:absolute;right:0;top:0;color:#fff;cursor:pointer}.cmp-coming-soon-maintenance .theme-overlay .screenshots-nav div{width:40px;height:40px;background-color:#000;line-height:40px;opacity:.7;-webkit-transition:opacity .5s;transition:opacity .5s}.cmp-coming-soon-maintenance .fifty-layout input:checked+img,.cmp-coming-soon-maintenance .theme-overlay .screenshots-nav div:hover{opacity:1}.cmp-coming-soon-maintenance .theme-overlay .screenshots-nav .left{float:left}.cmp-coming-soon-maintenance .theme-overlay .screenshots-nav .right{float:right}.cmp-coming-soon-maintenance .theme-description ul{list-style:none;padding-left:2em}.cmp-coming-soon-maintenance .theme-description h4,.cmp-coming-soon-maintenance .theme-description li{font-size:13px}.cmp-coming-soon-maintenance .theme-description .supported i{color:green}.cmp-coming-soon-maintenance .theme-description .not-supported i{color:red}.cmp-coming-soon-maintenance .wp-list-table .column-id{width:5%}.cmp-coming-soon-maintenance .cmp-status{margin-bottom:3em}.cmp-coming-soon-maintenance .toggle{position:relative;width:200px;height:30px;font-weight:600;background:0 0;border:2px solid #f1f1f1;-webkit-transition:all .2s ease-in-out;transition:all .2s ease-in-out;border-radius:15px}.cmp-coming-soon-maintenance .toggle:after,.cmp-coming-soon-maintenance .toggle:before{position:absolute;line-height:30px;font-size:14px;z-index:2;-webkit-transition:all .2s ease-in-out;transition:all .2s ease-in-out}.cmp-coming-soon-maintenance input[type=checkbox].toggle-checkbox{display:none}.cmp-coming-soon-maintenance .toggle_handler{display:inline-block;position:relative;z-index:1;background:#c0392b;width:90px;height:24px;top:3px;left:5px;-webkit-transition:all .2s ease-in-out;transition:all .2s ease-in-out;-webkit-transform:translateX(0);transform:translateX(0);border-radius:10px 0 0 10px}.cmp-coming-soon-maintenance .toggle-checkbox:checked+.toggle .toggle_handler{width:90px;-webkit-transform:translateX(100px);transform:translateX(100px);background:#27ae60;border-radius:0 10px 10px 0}.cmp-coming-soon-maintenance .toggle-wrapper:hover .toggle_handler{background:#e74c3c}.cmp-coming-soon-maintenance .toggle-wrapper:hover .toggle-checkbox:checked+.toggle .toggle_handler{background:#2ecc71}.cmp-coming-soon-maintenance .toggle:before{content:"Disabled";left:22px;color:#fff}.cmp-coming-soon-maintenance .toggle-checkbox:checked+.toggle:before,.cmp-coming-soon-maintenance .toggle:after{color:#23282d}.cmp-coming-soon-maintenance .toggle:after{content:"Enabled";right:26px}.cmp-coming-soon-maintenance .toggle-checkbox:checked+.toggle:after{color:#fff}.cmp-coming-soon-maintenance .fifty-layout label{display:block;position:relative;padding-bottom:1em;margin-top:1em}.cmp-coming-soon-maintenance .fifty-layout input{visibility:hidden;position:absolute;margin:0}.cmp-coming-soon-maintenance .fifty-layout img{display:block;opacity:.3;outline:solid 1px;padding:2px;margin-left:5px;margin-top:5px}.cmp-coming-soon-maintenance .cmp-sidebar-wrapper{display:inline-block;width:calc(100% - 6em - 920px);max-width:350px;min-width:300px;margin-left:1em;padding-top:0;vertical-align:top;text-align:center}.cmp-coming-soon-maintenance .cmp-sidebar-wrapper .widget{padding:2em;border:1px solid #dedede;background:#fff}.cmp-coming-soon-maintenance .widget.donate img{max-width:50px}.cmp-coming-soon-maintenance .widget.donate img.niteo-logo{max-width:120px}.cmp-coming-soon-maintenance .cmp-rate-us .button,.cmp-coming-soon-maintenance .cmp-rate-us a{display:block;text-align:center}.cmp-coming-soon-maintenance .cmp-rate-us a{padding:1em 0}.cmp-coming-soon-maintenance .cmp-rate-us .button{max-width:150px;margin:0 auto 1em}.cmp-coming-soon-maintenance .cmp-rate-us form{text-align:center}.cmp-coming-soon-maintenance .subscribers .column-id{width:5%}@media screen and (max-width:1450px){.cmp-coming-soon-maintenance .cmp-inputs-wrapper{min-width:70%}.cmp-coming-soon-maintenance .cmp-sidebar-wrapper{width:calc(30% - 2em + 7px)}.cmp-coming-soon-maintenance .theme-wrapper,.cmp-coming-soon-maintenance .theme-wrapper.premium{width:calc(50% - 3em - 5px)}}@media screen and (max-width:1270px){.cmp-coming-soon-maintenance .cmp-inputs-wrapper{min-width:100%}}@media screen and (max-width:1110px){.cmp-coming-soon-maintenance .theme-wrapper,.cmp-coming-soon-maintenance .theme-wrapper.premium{margin-right:0;width:calc(100% - 5px)}.cmp-coming-soon-maintenance .table-wrapper th{display:block}.cmp-coming-soon-maintenance .cmp-sidebar-wrapper .widget{padding:1em}}@media screen and (max-width:1024px){.cmp-coming-soon-maintenance .table-wrapper table{width:100%}.cmp-coming-soon-maintenance .table-wrapper th{width:140px}}@media screen and (max-width:782px){.cmp-coming-soon-maintenance .social-inputs input[type=checkbox]:checked:before{margin:-1px 0 0 -4px}.cmp-coming-soon-maintenance .cmp-inputs-wrapper,.cmp-coming-soon-maintenance .cmp-sidebar-wrapper{display:block;max-width:100%;width:100%;margin:0}.cmp-coming-soon-maintenance .cmp-sidebar-wrapper .widget{padding:2em;margin-bottom:1em!important}.cmp-coming-soon-maintenance .theme-overlay .theme-info,.cmp-coming-soon-maintenance .theme-overlay .theme-screenshots{width:100%;float:none}.cmp-coming-soon-maintenance input[type=text],.cmp-coming-soon-maintenance textarea{font-size:13px}}@media screen and (max-width:560px){.cmp-coming-soon-maintenance .social-inputs .label:nth-of-type(2){left:50px}.cmp-coming-soon-maintenance .social-inputs .label:nth-of-type(3){left:105px}.cmp-coming-soon-maintenance .social-inputs p i{top:22px}.cmp-coming-soon-maintenance .social-inputs input[type=checkbox]{top:28px;left:53px}.cmp-coming-soon-maintenance .social-inputs label{padding-left:55px}.cmp-coming-soon-maintenance .social-inputs input[type=text]{margin-left:55px;width:calc(100% - 55px)}}
img/thumbnails/coder_thumbnail.jpg ADDED
Binary file
img/thumbnails/element/screenshot1.jpg ADDED
Binary file
img/thumbnails/element_thumbnail.jpg ADDED
Binary file
inc/class-cmp-feedback.php CHANGED
@@ -46,6 +46,7 @@ if ( ! class_exists( 'CMP_Feedback' ) ) :
46
  $this->time_limit = WEEK_IN_SECONDS;
47
  }
48
 
 
49
  $this->nobug_option = $this->slug . '-no-bug';
50
 
51
  // Loading main functionality
@@ -122,10 +123,8 @@ if ( ! class_exists( 'CMP_Feedback' ) ) :
122
  add_site_option( $this->slug . '-activation-date', time() );
123
  }
124
 
125
-
126
-
127
  // If difference between install date and now is greater than time limit, then display notice
128
- if ( ( time() - $install_date ) > $this->time_limit ) {
129
  add_action( 'admin_notices', array( $this, 'display_admin_notice' ) );
130
  }
131
 
@@ -139,9 +138,10 @@ if ( ! class_exists( 'CMP_Feedback' ) ) :
139
  public function display_admin_notice() {
140
 
141
  $screen = get_current_screen();
 
142
  if ( isset( $screen->base ) && 'plugins' == $screen->base ) {
143
 
144
- $no_bug_url = wp_nonce_url( admin_url( '?' . $this->nobug_option . '=true' ), 'review-nonce' );
145
  $time = $this->seconds_to_words( time() - get_site_option( $this->slug . '-activation-date' ) );
146
  ?>
147
 
@@ -166,8 +166,7 @@ if ( ! class_exists( 'CMP_Feedback' ) ) :
166
  </div>
167
  </div>
168
 
169
- <?php
170
-
171
  }
172
 
173
  }
@@ -178,7 +177,7 @@ if ( ! class_exists( 'CMP_Feedback' ) ) :
178
  public function set_no_bug() {
179
 
180
  // Bail out if not on correct page
181
- if ( ! isset( $_GET['_wpnonce'] ) || ( ! wp_verify_nonce( $_GET['_wpnonce'], 'login-designer-feedback-nounce' ) || ! is_admin() || ! isset( $_GET[ $this->nobug_option ] ) || ! current_user_can( 'manage_options' ) ) ) {
182
  return;
183
  }
184
 
46
  $this->time_limit = WEEK_IN_SECONDS;
47
  }
48
 
49
+
50
  $this->nobug_option = $this->slug . '-no-bug';
51
 
52
  // Loading main functionality
123
  add_site_option( $this->slug . '-activation-date', time() );
124
  }
125
 
 
 
126
  // If difference between install date and now is greater than time limit, then display notice
127
+ if ( $install_date != false && ( time() - $install_date ) > $this->time_limit ) {
128
  add_action( 'admin_notices', array( $this, 'display_admin_notice' ) );
129
  }
130
 
138
  public function display_admin_notice() {
139
 
140
  $screen = get_current_screen();
141
+
142
  if ( isset( $screen->base ) && 'plugins' == $screen->base ) {
143
 
144
+ $no_bug_url = wp_nonce_url( admin_url( '?' . $this->nobug_option . '=true' ), 'cmp-feedback-nounce' );
145
  $time = $this->seconds_to_words( time() - get_site_option( $this->slug . '-activation-date' ) );
146
  ?>
147
 
166
  </div>
167
  </div>
168
 
169
+ <?php
 
170
  }
171
 
172
  }
177
  public function set_no_bug() {
178
 
179
  // Bail out if not on correct page
180
+ if ( ! isset( $_GET['_wpnonce'] ) || ( ! wp_verify_nonce( $_GET['_wpnonce'], 'cmp-feedback-nounce' ) || ! is_admin() || ! isset( $_GET[ $this->nobug_option ] ) || ! current_user_can( 'manage_options' ) ) ) {
181
  return;
182
  }
183
 
inc/class-cmp-render_html.php CHANGED
@@ -89,7 +89,7 @@ class cmp_render_html extends niteo_cmp {
89
 
90
  // get raw url from response
91
  if ( isset( $unsplash['response'] ) && $unsplash['response'] == '200' ) {
92
- $body = json_decode($unsplash['body'], true);
93
 
94
  if ( isset( $body[0] ) ) {
95
  foreach ( $body as $item ) {
@@ -98,23 +98,35 @@ class cmp_render_html extends niteo_cmp {
98
  }
99
  } else {
100
  $unsplash_url = $body['urls']['raw'];
101
- $unsplash_download = $item['links']['download_location'];
102
  }
103
 
 
 
 
 
 
 
 
 
 
 
 
 
104
  ob_start(); ?>
105
 
106
  <script>
107
  var unsplash_img = '<?php echo esc_url( $unsplash_url );?>';
108
  var unsplash_download = '<?php echo esc_url( $unsplash_download );?>';
109
 
110
- var width = document.documentElement.clientWidth;
111
- var height = document.documentElement.clientHeight;
112
  var dimension = 'w=' + width;
113
  if ( width < height ) {
114
  dimension = 'h=' + height;
115
  }
116
 
117
- unsplash_img = unsplash_img + '?ixlib=rb-0.3.5&q=80&fm=jpg&crop=entropy&cs=tinysrgb&fit=max&' + dimension;
118
  var banner = '<div id="background-image" class="image" style="background-image:url('+unsplash_img+')"></div>';
119
 
120
  var container = document.getElementById("background-wrapper");
@@ -128,13 +140,13 @@ class cmp_render_html extends niteo_cmp {
128
  // define get function for external URL
129
  function Get(yourUrl){
130
  var Httpreq = new XMLHttpRequest(); // a new request
131
- Httpreq.open("GET",yourUrl,false);
132
  Httpreq.send(null);
133
  return Httpreq.responseText;
134
  }
135
 
136
  // trigger Unsplash download to meet API requirements
137
- var json_obj = JSON.parse(Get(unsplash_download + '?client_id=41f043163758cf2e898e8a868bc142c20bc3f5966e7abac4779ee684088092ab'));
138
 
139
  </script>
140
  <?php
@@ -302,13 +314,26 @@ class cmp_render_html extends niteo_cmp {
302
  $imgs[0] = $unsplash_body['urls']['raw'];
303
  }
304
 
305
- $imgs = json_encode( $imgs ); ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
306
 
307
  <script>
308
  var imgs = <?php echo $imgs;?>;
309
 
310
- var width = document.documentElement.clientWidth;
311
- var height = document.documentElement.clientHeight;
312
  var dimension = 'w=' + width;
313
  if ( width < height ) {
314
  dimension = 'h=' + height;
@@ -425,7 +450,7 @@ class cmp_render_html extends niteo_cmp {
425
  $logo_url = wp_get_attachment_image_src( $logo_id, $size );
426
  }
427
  if ( isset($logo_url[0]) ) {
428
- $html = '<div class="logo-wrapper"><img src="'.esc_url( $logo_url[0] ).'" class="graphic-logo" alt="logo"></div>';
429
 
430
  }
431
  break;
@@ -476,7 +501,7 @@ class cmp_render_html extends niteo_cmp {
476
  $translation = json_decode( get_option('niteoCS_translation'), true );
477
  $placeholder = isset($translation[4]['translation']) ? stripslashes( $translation[4]['translation'] ) : 'Insert your email address.';
478
  $placeholder_firstname = isset($translation[10]['translation']) ? stripslashes( $translation[10]['translation'] ) : 'First Name';
479
- $placeholder_lastname = isset($translation[11]['translation']) ? stripslashes( $translation[11]['translation'] ) : 'First Name';
480
  $submit = isset($translation[8]['translation']) ? stripslashes( $translation[8]['translation'] ) : 'Submit';
481
 
482
  // overwrite it with theme specific requirements
@@ -536,9 +561,17 @@ class cmp_render_html extends niteo_cmp {
536
 
537
  httpRequest.onreadystatechange = function(){
538
  if ( this.readyState == 4 && this.status == 200 ) {
539
- selectResult.innerHTML = this.responseText; // Display the result inside result element.
 
540
  emailInput.value = '';
541
  selectForm.classList.add('-subscribed');
 
 
 
 
 
 
 
542
  }
543
 
544
  };
@@ -552,7 +585,6 @@ class cmp_render_html extends niteo_cmp {
552
  }
553
 
554
  selectButton.onclick = function(){ // If clicked on the button.
555
- console.log(emailInput.value);
556
  if ( emailInput.value != '' ) {
557
  XMLhttp();
558
  }
@@ -604,9 +636,9 @@ class cmp_render_html extends niteo_cmp {
604
  // other js code
605
  case 'other':
606
  if ( get_option('niteoCS_analytics_other', '') !== '' ) {
607
- $niteoCS_analytics_other = stripslashes(get_option('niteoCS_analytics_other', '')); ?>
608
  <script>
609
- <?php echo esc_js($niteoCS_analytics_other);?>
610
 
611
  </script>
612
  <?php
@@ -780,6 +812,8 @@ class cmp_render_html extends niteo_cmp {
780
  // add blur effect if enabled
781
  if ( get_option('niteoCS_effect['. $themeslug .']', 'disabled') == 'blur' ) {
782
  $blur = get_option('niteoCS_effect_blur['. $themeslug .']', '0.5'); ?>
 
 
783
  <style>
784
  #background-image,.slide-background,.video-banner {filter:blur(<?php echo esc_attr($blur);?>px);transform:scale(1.1);}
785
  #background-wrapper, .slick-slider {overflow:hidden;}
@@ -788,13 +822,39 @@ class cmp_render_html extends niteo_cmp {
788
 
789
  <?php
790
  } ?>
791
-
 
792
  <style>
793
  .wp-video {margin: 0 auto;}
794
  .wp-video-shortcode {max-width: 100%;}
795
  </style>
796
-
797
  <?php
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
798
  $css = ob_get_clean();
799
 
800
  $custom_css = ( get_option('niteoCS_custom_css', '') != '' ) ? '<style>'.stripslashes( wp_filter_nohtml_kses( get_option('niteoCS_custom_css') ) ).'</style>' : '';
@@ -836,7 +896,8 @@ class cmp_render_html extends niteo_cmp {
836
  if ( isset($_GET['background']) && is_numeric($_GET['background']) ) {
837
  $background = esc_attr($_GET['background']);
838
  } ?>
839
-
 
840
  <script>
841
  window.addEventListener("load",function(event) {
842
  init();
@@ -844,13 +905,15 @@ class cmp_render_html extends niteo_cmp {
844
 
845
  function init(){
846
  var image = document.getElementById('background-image');
847
-
848
  if ( image === null ) {
849
  image = document.getElementById('body');
850
  }
851
 
852
  if ( image != null ) {
853
  image.className += " loaded";
 
 
854
  }
855
 
856
  // theme specific function after init
@@ -953,7 +1016,7 @@ class cmp_render_html extends niteo_cmp {
953
  case '0':
954
  case '1':
955
 
956
- if ( get_option('niteoCS_slider['.$themeslug.']', '1') == 1 ) {
957
  $slider_effect = get_option('niteoCS_slider_effect['.$themeslug.']', 'true');
958
  $slider_autoplay = get_option('niteoCS_slider_auto['.$themeslug.']', '1');
959
  // render slice effect scripts
@@ -967,7 +1030,7 @@ class cmp_render_html extends niteo_cmp {
967
 
968
  // render slick carousel DOM and scripts
969
  } else { ?>
970
-
971
  <script src="https://code.jquery.com/jquery-1.12.4.min.js" integrity="sha256-ZosEbRLbNQzLpnKIkEdrPv7lOy9C27hHQ+Xp8a4MxAQ=" Crossorigin="anonymous"></script>
972
  <script type='text/javascript' src='https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.6.0/slick.min.js'></script>
973
  <script>
@@ -1025,6 +1088,7 @@ class cmp_render_html extends niteo_cmp {
1025
  <?php
1026
  } ?>
1027
 
 
1028
  <script type='text/javascript'>
1029
  /* <![CDATA[ */
1030
  var wpcf7 = {"apiSettings":{"root":"<?php echo $site_url;?>\/wp-json\/contact-form-7\/v1","namespace":"contact-form-7\/v1"},"recaptcha":{"messages":{"empty":"Please verify that you are not a robot."}}};
@@ -1036,6 +1100,118 @@ class cmp_render_html extends niteo_cmp {
1036
  <?php
1037
  }
1038
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1039
  return false;
1040
  }
1041
 
89
 
90
  // get raw url from response
91
  if ( isset( $unsplash['response'] ) && $unsplash['response'] == '200' ) {
92
+ $body = json_decode ($unsplash['body'], true );
93
 
94
  if ( isset( $body[0] ) ) {
95
  foreach ( $body as $item ) {
98
  }
99
  } else {
100
  $unsplash_url = $body['urls']['raw'];
101
+ $unsplash_download = $body['links']['download_location'];
102
  }
103
 
104
+ switch ( $themeslug ) {
105
+ case 'element':
106
+ $width = 1;
107
+ $height = 0.6;
108
+ break;
109
+
110
+ default:
111
+ $width = 1;
112
+ $height = 1;
113
+ break;
114
+ }
115
+
116
  ob_start(); ?>
117
 
118
  <script>
119
  var unsplash_img = '<?php echo esc_url( $unsplash_url );?>';
120
  var unsplash_download = '<?php echo esc_url( $unsplash_download );?>';
121
 
122
+ var width = document.documentElement.clientWidth * <?php echo $width;?>;
123
+ var height = document.documentElement.clientHeight * <?php echo $height;?>;
124
  var dimension = 'w=' + width;
125
  if ( width < height ) {
126
  dimension = 'h=' + height;
127
  }
128
 
129
+ unsplash_img = unsplash_img + '?ixlib=rb-0.3.5&q=80&fm=jpg&crop=entropy&cs=tinysrgb&fit=crop&' + dimension;
130
  var banner = '<div id="background-image" class="image" style="background-image:url('+unsplash_img+')"></div>';
131
 
132
  var container = document.getElementById("background-wrapper");
140
  // define get function for external URL
141
  function Get(yourUrl){
142
  var Httpreq = new XMLHttpRequest(); // a new request
143
+ Httpreq.open("GET", yourUrl, false);
144
  Httpreq.send(null);
145
  return Httpreq.responseText;
146
  }
147
 
148
  // trigger Unsplash download to meet API requirements
149
+ var json_obj = JSON.parse( Get( unsplash_download + '?client_id=41f043163758cf2e898e8a868bc142c20bc3f5966e7abac4779ee684088092ab' ) );
150
 
151
  </script>
152
  <?php
314
  $imgs[0] = $unsplash_body['urls']['raw'];
315
  }
316
 
317
+ $imgs = json_encode( $imgs );
318
+
319
+ switch ( $themeslug ) {
320
+ case 'element':
321
+ $width = 1;
322
+ $height = 0.6;
323
+ break;
324
+
325
+ default:
326
+ $width = 1;
327
+ $height = 1;
328
+ break;
329
+ }
330
+ ?>
331
 
332
  <script>
333
  var imgs = <?php echo $imgs;?>;
334
 
335
+ var width = document.documentElement.clientWidth * <?php echo $width;?>;
336
+ var height = document.documentElement.clientHeight * <?php echo $height;?>;
337
  var dimension = 'w=' + width;
338
  if ( width < height ) {
339
  dimension = 'h=' + height;
450
  $logo_url = wp_get_attachment_image_src( $logo_id, $size );
451
  }
452
  if ( isset($logo_url[0]) ) {
453
+ $html = '<div class="logo-wrapper image"><img src="'.esc_url( $logo_url[0] ).'" class="graphic-logo" alt="logo"></div>';
454
 
455
  }
456
  break;
501
  $translation = json_decode( get_option('niteoCS_translation'), true );
502
  $placeholder = isset($translation[4]['translation']) ? stripslashes( $translation[4]['translation'] ) : 'Insert your email address.';
503
  $placeholder_firstname = isset($translation[10]['translation']) ? stripslashes( $translation[10]['translation'] ) : 'First Name';
504
+ $placeholder_lastname = isset($translation[11]['translation']) ? stripslashes( $translation[11]['translation'] ) : 'Last Name';
505
  $submit = isset($translation[8]['translation']) ? stripslashes( $translation[8]['translation'] ) : 'Submit';
506
 
507
  // overwrite it with theme specific requirements
561
 
562
  httpRequest.onreadystatechange = function(){
563
  if ( this.readyState == 4 && this.status == 200 ) {
564
+ result = JSON.parse( this.responseText );
565
+ selectResult.innerHTML = result.message; // Display the result inside result element.
566
  emailInput.value = '';
567
  selectForm.classList.add('-subscribed');
568
+
569
+ if ( result.status == 1 ) {
570
+ selectForm.classList.remove('-subscribe-failed');
571
+ selectForm.classList.add('-subscribe-successful');
572
+ } else {
573
+ selectForm.classList.add('-subscribe-failed');
574
+ }
575
  }
576
 
577
  };
585
  }
586
 
587
  selectButton.onclick = function(){ // If clicked on the button.
 
588
  if ( emailInput.value != '' ) {
589
  XMLhttp();
590
  }
636
  // other js code
637
  case 'other':
638
  if ( get_option('niteoCS_analytics_other', '') !== '' ) {
639
+ $niteoCS_analytics_other = get_option('niteoCS_analytics_other', ''); ?>
640
  <script>
641
+ <?php echo stripslashes( esc_js( $niteoCS_analytics_other ) );?>
642
 
643
  </script>
644
  <?php
812
  // add blur effect if enabled
813
  if ( get_option('niteoCS_effect['. $themeslug .']', 'disabled') == 'blur' ) {
814
  $blur = get_option('niteoCS_effect_blur['. $themeslug .']', '0.5'); ?>
815
+
816
+ <!-- blur effect -->
817
  <style>
818
  #background-image,.slide-background,.video-banner {filter:blur(<?php echo esc_attr($blur);?>px);transform:scale(1.1);}
819
  #background-wrapper, .slick-slider {overflow:hidden;}
822
 
823
  <?php
824
  } ?>
825
+
826
+ <!-- wp video shortcode -->
827
  <style>
828
  .wp-video {margin: 0 auto;}
829
  .wp-video-shortcode {max-width: 100%;}
830
  </style>
831
+
832
  <?php
833
+ $effect = get_option('niteoCS_special_effect['.$themeslug.']', 'disabled');
834
+
835
+ if ( $effect == 'constellation' ) { ?>
836
+ <!-- constellation effect -->
837
+ <style>
838
+ .particles-js-canvas-el {position: absolute; top:0; left:0;}
839
+ <?php
840
+ switch ( $themeslug ) {
841
+ case 'frame': ?>
842
+ .particles-js-canvas-el {z-index: -1;}
843
+ #background-image, .video-banner {z-index: -3;}
844
+ .background-overlay {z-index: -2;}
845
+ <?php
846
+ break;
847
+
848
+ case 'stylo' ?>
849
+ .particles-js-canvas-el {z-index: 1;}
850
+ <?php
851
+ default:
852
+ break;
853
+ } ?>
854
+ </style>
855
+ <?php
856
+ }
857
+
858
  $css = ob_get_clean();
859
 
860
  $custom_css = ( get_option('niteoCS_custom_css', '') != '' ) ? '<style>'.stripslashes( wp_filter_nohtml_kses( get_option('niteoCS_custom_css') ) ).'</style>' : '';
896
  if ( isset($_GET['background']) && is_numeric($_GET['background']) ) {
897
  $background = esc_attr($_GET['background']);
898
  } ?>
899
+
900
+ <!-- load background image script -->
901
  <script>
902
  window.addEventListener("load",function(event) {
903
  init();
905
 
906
  function init(){
907
  var image = document.getElementById('background-image');
908
+ var body = document.getElementById('body');
909
  if ( image === null ) {
910
  image = document.getElementById('body');
911
  }
912
 
913
  if ( image != null ) {
914
  image.className += " loaded";
915
+ body.className += " loaded";
916
+
917
  }
918
 
919
  // theme specific function after init
1016
  case '0':
1017
  case '1':
1018
 
1019
+ if ( get_option('niteoCS_slider['.$themeslug.']', '0') == 1 ) {
1020
  $slider_effect = get_option('niteoCS_slider_effect['.$themeslug.']', 'true');
1021
  $slider_autoplay = get_option('niteoCS_slider_auto['.$themeslug.']', '1');
1022
  // render slice effect scripts
1030
 
1031
  // render slick carousel DOM and scripts
1032
  } else { ?>
1033
+ <!-- slick carousel script -->
1034
  <script src="https://code.jquery.com/jquery-1.12.4.min.js" integrity="sha256-ZosEbRLbNQzLpnKIkEdrPv7lOy9C27hHQ+Xp8a4MxAQ=" Crossorigin="anonymous"></script>
1035
  <script type='text/javascript' src='https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.6.0/slick.min.js'></script>
1036
  <script>
1088
  <?php
1089
  } ?>
1090
 
1091
+ <!-- CF7 script -->
1092
  <script type='text/javascript'>
1093
  /* <![CDATA[ */
1094
  var wpcf7 = {"apiSettings":{"root":"<?php echo $site_url;?>\/wp-json\/contact-form-7\/v1","namespace":"contact-form-7\/v1"},"recaptcha":{"messages":{"empty":"Please verify that you are not a robot."}}};
1100
  <?php
1101
  }
1102
 
1103
+
1104
+ // special effects
1105
+ $effect = get_option('niteoCS_special_effect['.$themeslug.']', 'disabled');
1106
+
1107
+ switch ( $effect ) {
1108
+ case 'constellation': ?>
1109
+ <!-- load external Particles script -->
1110
+ <script type='text/javascript' src="https://cdn.jsdelivr.net/particles.js/2.0.0/particles.min.js"></script>
1111
+ <!-- INI particles -->
1112
+ <script>
1113
+ /* ---- particles.js config ---- */
1114
+ var wrapper = document.getElementById('background-wrapper');
1115
+ var background = ( wrapper === null ) ? 'slider-wrapper' : 'background-wrapper';
1116
+ particlesJS(background, {
1117
+ "particles": {
1118
+ "number": {
1119
+ "value": 100,
1120
+ "density": {
1121
+ "enable": true,
1122
+ "value_area":1000
1123
+ }
1124
+ },
1125
+ "color": {
1126
+ "value": "<?php echo esc_attr( get_option('niteoCS_special_effect['.$themeslug.'][constellation][color]', '#ffffff') );?>",
1127
+ },
1128
+
1129
+ "shape": {
1130
+ "type": "circle",
1131
+ "stroke": {
1132
+ "width": 0,
1133
+ "color": "#fff"
1134
+ },
1135
+ "polygon": {
1136
+ "nb_sides": 5
1137
+ },
1138
+ },
1139
+ "opacity": {
1140
+ "value": 0.6,
1141
+ "random": false,
1142
+ "anim": {
1143
+ "enable": false,
1144
+ "speed": 1,
1145
+ "opacity_min": 0.1,
1146
+ "sync": false
1147
+ }
1148
+ },
1149
+ "size": {
1150
+ "value": 2,
1151
+ "random": true,
1152
+ "anim": {
1153
+ "enable": false,
1154
+ "speed": 40,
1155
+ "size_min": 0.1,
1156
+ "sync": false
1157
+ }
1158
+ },
1159
+ "line_linked": {
1160
+ "enable": true,
1161
+ "distance": 120,
1162
+ "color": "<?php echo esc_attr( get_option('niteoCS_special_effect['.$themeslug.'][constellation][color]', '#ffffff') );?>",
1163
+ "opacity": 0.4,
1164
+ "width": 1
1165
+ },
1166
+ },
1167
+ "interactivity": {
1168
+ "detect_on": "canvas",
1169
+ "events": {
1170
+ "onhover": {
1171
+ "enable": true,
1172
+ "mode": "grab"
1173
+ },
1174
+ "onclick": {
1175
+ "enable": false
1176
+ },
1177
+ "resize": true
1178
+ },
1179
+ "modes": {
1180
+ "grab": {
1181
+ "distance": 140,
1182
+ "line_linked": {
1183
+ "opacity": 1
1184
+ }
1185
+ },
1186
+ "bubble": {
1187
+ "distance": 400,
1188
+ "size": 40,
1189
+ "duration": 2,
1190
+ "opacity": 8,
1191
+ "speed": 3
1192
+ },
1193
+ "repulse": {
1194
+ "distance": 200,
1195
+ "duration": 0.4
1196
+ },
1197
+ "push": {
1198
+ "particles_nb": 4
1199
+ },
1200
+ "remove": {
1201
+ "particles_nb": 2
1202
+ }
1203
+ }
1204
+ },
1205
+ "retina_detect": true
1206
+ });
1207
+ </script>
1208
+ <?php
1209
+ break;
1210
+
1211
+ default:
1212
+ break;
1213
+ }
1214
+
1215
  return false;
1216
  }
1217
 
inc/settings/settings-background_effects.php CHANGED
@@ -43,7 +43,7 @@ $effect_blur = get_option('niteoCS_effect_blur['.$themeslug.']', '0.5');
43
 
44
  <td>
45
  <fieldset class="background-effect-switch disabled">
46
- <p>Disabled</p>
47
 
48
  </fieldset>
49
 
43
 
44
  <td>
45
  <fieldset class="background-effect-switch disabled">
46
+ <p><?php _e('Disabled', 'cmp-coming-soon-maintenance')?></p>
47
 
48
  </fieldset>
49
 
inc/settings/{settings-contact_form_disabled.php → settings-contact_form-disabled.php} RENAMED
File without changes
inc/settings/{settings-counter_disabled.php → settings-counter-disabled.php} RENAMED
File without changes
inc/settings/{settings-footer_disabled.php → settings-footer-disabled.php} RENAMED
File without changes
inc/settings/{settings-logo_disabled.php → settings-logo-disabled.php} RENAMED
File without changes
inc/settings/{settings-slider_disabled.php → settings-slider-disabled.php} RENAMED
File without changes
inc/settings/settings-slider.php CHANGED
@@ -8,7 +8,6 @@ if ( $_SERVER['REQUEST_METHOD'] == 'POST' ) {
8
  }
9
  }
10
 
11
-
12
  if (isset($_POST['niteoCS_slider_'.$themeslug]) && is_numeric($_POST['niteoCS_slider_'.$themeslug])) {
13
  update_option('niteoCS_slider['.$themeslug.']', sanitize_text_field($_POST['niteoCS_slider_'.$themeslug]));
14
  }
@@ -30,7 +29,7 @@ if ( $_SERVER['REQUEST_METHOD'] == 'POST' ) {
30
  }
31
  }
32
 
33
- $niteoCS_slider = get_option('niteoCS_slider['.$themeslug.']', '1');
34
  $niteoCS_slider_count = get_option('niteoCS_slider_count['.$themeslug.']', '3');
35
  $niteoCS_slider_effect = get_option('niteoCS_slider_effect['.$themeslug.']', 'true');
36
  $niteoCS_banner = get_option('niteoCS_banner['.$themeslug.']', '0');
@@ -51,13 +50,13 @@ $niteoCS_slider_auto = get_option('niteoCS_slider_auto['.$themeslug.']', '1');
51
 
52
  <p>
53
  <label title="Enabled">
54
- <input type="radio" <?php echo ( $niteoCS_banner == '1' || $niteoCS_banner == '0' ) ? '' : 'disabled';?> name="niteoCS_slider_<?php echo esc_attr($themeslug);?>" value="1"<?php if ( $niteoCS_slider == 1 ) { echo ' checked="checked"'; } ?>>&nbsp;<?php _e('Enabled', 'cmp-coming-soon-maintenance');?>
55
  </label>
56
  </p>
57
 
58
  <p>
59
  <label title="Disabled">
60
- <input type="radio" <?php echo ( $niteoCS_banner == '1' || $niteoCS_banner == '0' ) ? '' : 'disabled';?> name="niteoCS_slider_<?php echo esc_attr($themeslug);?>" value="0"<?php if ( $niteoCS_slider == 0 ) { echo ' checked="checked"'; } ?>>&nbsp;<?php _e('Disabled', 'cmp-coming-soon-maintenance');?>
61
  </label>
62
  </p>
63
 
@@ -77,18 +76,18 @@ $niteoCS_slider_auto = get_option('niteoCS_slider_auto['.$themeslug.']', '1');
77
  <p>
78
  <label for="niteoCS_slider_effect">Slider Effect</label><br>
79
  <label title="Slide Effect">
80
- <input type="radio" name="niteoCS_slider_effect_<?php echo esc_attr($themeslug);?>" <?php echo ( $niteoCS_banner == '1' || $niteoCS_banner == '0' ) ? '' : 'disabled';?> value="false"<?php if ( $niteoCS_slider_effect == 'false') { echo ' checked="checked"'; } ?>>&nbsp;<?php _e('Slide', 'cmp-coming-soon-maintenance');?>
81
  </label><br>
82
 
83
  <label title="Fade Effect">
84
- <input type="radio" name="niteoCS_slider_effect_<?php echo esc_attr($themeslug);?>" <?php echo ( $niteoCS_banner == '1' || $niteoCS_banner == '0' ) ? '' : 'disabled';?> value="true"<?php if ( $niteoCS_slider_effect == 'true') { echo ' checked="checked"'; } ?>>&nbsp;<?php _e('Fade', 'cmp-coming-soon-maintenance');?>
85
  </label>
86
 
87
  <?php
88
  // include Slice option for slider
89
  if ( $this->cmp_selectedTheme() == 'fifty' ) { ?>
90
  <br><label title="Slice Effect">
91
- <input type="radio" name="niteoCS_slider_effect_<?php echo esc_attr($themeslug);?>" <?php echo ( $niteoCS_banner == '1' || $niteoCS_banner == '0' ) ? '' : 'disabled';?> value="slice"<?php if ( $niteoCS_slider_effect == 'slice') { echo ' checked="checked"'; } ?>>&nbsp;<?php _e('Slice', 'cmp-coming-soon-maintenance');?>
92
  </label>
93
  <?php
94
  } ?>
@@ -96,7 +95,7 @@ $niteoCS_slider_auto = get_option('niteoCS_slider_auto['.$themeslug.']', '1');
96
  </p>
97
 
98
  <p>
99
- <input type="checkbox" name="niteoCS_slider_auto_<?php echo esc_attr($themeslug);?>" <?php echo ( $niteoCS_banner == '1' || $niteoCS_banner == '0' ) ? '' : 'disabled';?> id="niteoCS_slider_auto" value="1" <?php checked( '1', get_option( 'niteoCS_slider_auto['.$themeslug.']', '0' ) ); ?> class="regular-text code"><label for="niteoCS_slider_auto"><?php _e('Slider Autostart', 'cmp-coming-soon-maintenance');?></label><br>
100
  </p>
101
 
102
  <label for="niteoCS_slider_count"><?php _e('Number of Unplash media Slides (applies only for Unsplash photos)', 'cmp-coming-soon-maintenance');?></label></br>
8
  }
9
  }
10
 
 
11
  if (isset($_POST['niteoCS_slider_'.$themeslug]) && is_numeric($_POST['niteoCS_slider_'.$themeslug])) {
12
  update_option('niteoCS_slider['.$themeslug.']', sanitize_text_field($_POST['niteoCS_slider_'.$themeslug]));
13
  }
29
  }
30
  }
31
 
32
+ $niteoCS_slider = get_option('niteoCS_slider['.$themeslug.']', '0');
33
  $niteoCS_slider_count = get_option('niteoCS_slider_count['.$themeslug.']', '3');
34
  $niteoCS_slider_effect = get_option('niteoCS_slider_effect['.$themeslug.']', 'true');
35
  $niteoCS_banner = get_option('niteoCS_banner['.$themeslug.']', '0');
50
 
51
  <p>
52
  <label title="Enabled">
53
+ <input type="radio" <?php echo ( $niteoCS_banner == '1' || $niteoCS_banner == '0' ) ? '' : 'disabled';?> name="niteoCS_slider_<?php echo esc_attr($themeslug);?>" value="1"<?php checked ( 1, $niteoCS_slider ); ?>>&nbsp;<?php _e('Enabled', 'cmp-coming-soon-maintenance');?>
54
  </label>
55
  </p>
56
 
57
  <p>
58
  <label title="Disabled">
59
+ <input type="radio" <?php echo ( $niteoCS_banner == '1' || $niteoCS_banner == '0' ) ? '' : 'disabled';?> name="niteoCS_slider_<?php echo esc_attr($themeslug);?>" value="0"<?php checked ( 0, $niteoCS_slider )?>;>&nbsp;<?php _e('Disabled', 'cmp-coming-soon-maintenance');?>
60
  </label>
61
  </p>
62
 
76
  <p>
77
  <label for="niteoCS_slider_effect">Slider Effect</label><br>
78
  <label title="Slide Effect">
79
+ <input type="radio" name="niteoCS_slider_effect_<?php echo esc_attr($themeslug);?>" <?php echo ( $niteoCS_banner == '1' || $niteoCS_banner == '0' ) ? '' : 'disabled';?> value="false"<?php checked ( 'false', $niteoCS_slider_effect );?>>&nbsp;<?php _e('Slide', 'cmp-coming-soon-maintenance');?>
80
  </label><br>
81
 
82
  <label title="Fade Effect">
83
+ <input type="radio" name="niteoCS_slider_effect_<?php echo esc_attr($themeslug);?>" <?php echo ( $niteoCS_banner == '1' || $niteoCS_banner == '0' ) ? '' : 'disabled';?> value="true"<?php checked ( 'true', $niteoCS_slider_effect );?>>&nbsp;<?php _e('Fade', 'cmp-coming-soon-maintenance');?>
84
  </label>
85
 
86
  <?php
87
  // include Slice option for slider
88
  if ( $this->cmp_selectedTheme() == 'fifty' ) { ?>
89
  <br><label title="Slice Effect">
90
+ <input type="radio" name="niteoCS_slider_effect_<?php echo esc_attr($themeslug);?>" <?php echo ( $niteoCS_banner == '1' || $niteoCS_banner == '0' ) ? '' : 'disabled';?> value="slice"<?php checked ( 'slice', $niteoCS_slider_effect );?>>>&nbsp;<?php _e('Slice', 'cmp-coming-soon-maintenance');?>
91
  </label>
92
  <?php
93
  } ?>
95
  </p>
96
 
97
  <p>
98
+ <input type="checkbox" name="niteoCS_slider_auto_<?php echo esc_attr( $themeslug );?>" <?php echo ( $niteoCS_banner == '1' || $niteoCS_banner == '0' ) ? '' : 'disabled';?> id="niteoCS_slider_auto" value="1" <?php checked( '1', $niteoCS_slider_auto ); ?> class="regular-text code"><label for="niteoCS_slider_auto"><?php _e('Slider Autostart', 'cmp-coming-soon-maintenance');?></label><br>
99
  </p>
100
 
101
  <label for="niteoCS_slider_count"><?php _e('Number of Unplash media Slides (applies only for Unsplash photos)', 'cmp-coming-soon-maintenance');?></label></br>
inc/settings/settings-special_effects-disabled.php ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
3
+ ?>
4
+
5
+ <div class="table-wrapper theme-setup wrapper-disabled closed">
6
+ <h3><?php _e('Special Effects', 'cmp-coming-soon-maintenance');?></h3>
7
+ <table class="theme-setup">
8
+ <tbody>
9
+ <tr>
10
+ <th>
11
+ <fieldset>
12
+ <legend class="screen-reader-text">
13
+ <span><?php _e('Special Effects', 'cmp-coming-soon-maintenance');?></span>
14
+ </legend>
15
+
16
+ <p>
17
+ <label title="Constellation">
18
+ <input disabled type="radio" class="special-effect" name="niteoCS_special_effect_<?php echo esc_attr( $themeslug );?>" value="constellation">&nbsp;<?php _e('Constellation', 'cmp-coming-soon-maintenance');?>
19
+ </label>
20
+ </p>
21
+
22
+ <p>
23
+ <label title="Disabled">
24
+ <input disabled type="radio" class="special-effect" name="niteoCS_special_effect_<?php echo esc_attr( $themeslug );?>" checked="checked" value="disabled">&nbsp;<?php _e('Disabled', 'cmp-coming-soon-maintenance');?>
25
+ </label>
26
+ </p>
27
+
28
+ </fieldset>
29
+ </th>
30
+
31
+ <td>
32
+ <fieldset class="special-effect-switch disabled">
33
+ <p><?php _e('Special Effects are disabled or they are not supported by selected Theme.', 'cmp-coming-soon-maintenance')?></p>
34
+
35
+ </fieldset>
36
+
37
+ </td>
38
+ </tr>
39
+
40
+ <?php echo $this->render_settings->submit(); ?>
41
+
42
+ </tbody>
43
+ </table>
44
+ </div>
inc/settings/settings-special_effects.php ADDED
@@ -0,0 +1,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
3
+
4
+ if ( isset( $_POST['niteoCS_special_effect_'.$themeslug] ) ) {
5
+ update_option( 'niteoCS_special_effect['.$themeslug.']', sanitize_text_field($_POST['niteoCS_special_effect_'.$themeslug]) );
6
+ }
7
+
8
+ if ( isset( $_POST['niteoCS_constellation_color_'.$themeslug] ) ) {
9
+ update_option( 'niteoCS_special_effect['.$themeslug.'][constellation][color]', sanitize_text_field($_POST['niteoCS_constellation_color_'.$themeslug]) );
10
+ }
11
+
12
+ $special_effect = get_option('niteoCS_special_effect['.$themeslug.']', 'disabled');
13
+ $constellation_color = get_option('niteoCS_special_effect['.$themeslug.'][constellation][color]', '#ffffff');
14
+
15
+ ?>
16
+
17
+ <div class="table-wrapper theme-setup special-effects">
18
+ <h3><?php _e('Special Effects', 'cmp-coming-soon-maintenance');?></h3>
19
+ <table class="theme-setup">
20
+ <tbody>
21
+ <tr>
22
+ <th>
23
+ <fieldset>
24
+ <legend class="screen-reader-text">
25
+ <span><?php _e('Special Effects', 'cmp-coming-soon-maintenance');?></span>
26
+ </legend>
27
+
28
+ <p>
29
+ <label title="Constellation">
30
+ <input type="radio" class="special-effect" name="niteoCS_special_effect_<?php echo esc_attr( $themeslug );?>" value="constellation" <?php checked( 'constellation', $special_effect );?>>&nbsp;<?php _e('Constellation', 'cmp-coming-soon-maintenance');?>
31
+ </label>
32
+ </p>
33
+
34
+ <p>
35
+ <label title="Disabled">
36
+ <input type="radio" class="special-effect" name="niteoCS_special_effect_<?php echo esc_attr( $themeslug );?>" value="disabled" <?php checked( 'disabled', $special_effect );?>>&nbsp;<?php _e('Disabled', 'cmp-coming-soon-maintenance');?>
37
+ </label>
38
+ </p>
39
+
40
+ </fieldset>
41
+ </th>
42
+
43
+ <td>
44
+ <fieldset class="special-effect-switch disabled">
45
+ <p><?php _e('Disabled', 'cmp-coming-soon-maintenance')?></p>
46
+
47
+ </fieldset>
48
+
49
+ <fieldset class="special-effect-switch constellation">
50
+ <label for="niteoCS_constellation_color_<?php echo esc_attr( $themeslug );?>"><?php _e('Constellation color', 'cmp-coming-soon-maintenance');?></label><br><br>
51
+ <input type="text" name="niteoCS_constellation_color_<?php echo esc_attr( $themeslug );?>" id="niteoCS_constellation_color" value="<?php echo esc_attr( $constellation_color ); ?>" data-default-color="#ffffff" class="regular-text code"><br>
52
+
53
+
54
+ </fieldset>
55
+
56
+ </td>
57
+ </tr>
58
+
59
+ <?php echo $this->render_settings->submit(); ?>
60
+
61
+ </tbody>
62
+ </table>
63
+
64
+ </div>
65
+
66
+ <script>
67
+ jQuery(document).ready(function($){
68
+ // ini color picker
69
+ jQuery('#niteoCS_constellation_color').wpColorPicker();
70
+ });
71
+ </script>
inc/settings/{settings-subscribe_disabled.php → settings-subscribe-disabled.php} RENAMED
File without changes
inc/settings/settings-subscribe.php CHANGED
@@ -87,14 +87,7 @@ $mailchimp_lists = json_decode(get_option('niteoCS_mailchimp_lists', false),
87
 
88
  <p><?php _e('You can find Shortode in your Contact Form Plugin settings. Should be something similar to code below: ', 'cmp-coming-soon-maintenance');?><br><code>[contact-form-7 id="8" title='Contact form 1']</code> or <code>[mc4wp_form id='7']</code></p>
89
 
90
- <p><?php _e('Your Subscribe Form should have only one input (type=email) and submit (input=submit). If you have more than one input field, our design will not work and you need to use custom CSS to style your Subscribe form.', 'cmp-coming-soon-maintenance');?></p>
91
- <p><?php _e('Example of Subscribe Form code for ', 'cmp-coming-soon-maintenance');?><a href="https://wordpress.org/plugins/mailchimp-for-wp/">MailChimp</a> plugin:</p>
92
- <code>
93
- &lt;p&gt
94
- &lt;input type="email" name="EMAIL" placeholder="Your email address" required />
95
- &lt;input type="submit" value="Sign up" />
96
- &lt;/p&gt
97
- </code>
98
  </fieldset>
99
  </td>
100
 
87
 
88
  <p><?php _e('You can find Shortode in your Contact Form Plugin settings. Should be something similar to code below: ', 'cmp-coming-soon-maintenance');?><br><code>[contact-form-7 id="8" title='Contact form 1']</code> or <code>[mc4wp_form id='7']</code></p>
89
 
90
+ <p><?php _e('If you use 3rd party shortcode for subscribe or contact form, you might need to apply custom CSS to style the form correctly.', 'cmp-coming-soon-maintenance');?></p>
 
 
 
 
 
 
 
91
  </fieldset>
92
  </td>
93
 
js/cmp-admin-head.js CHANGED
@@ -12,9 +12,8 @@ jQuery(document).ready(function($){
12
 
13
  $.post(ajaxurl, data, function(response) {
14
  if (response == 'success') {
15
- jQuery('.cmp-status input[type=radio]').prop("disabled", (_, val) => !val);
16
- jQuery('#cmp-status').prop("checked", (_, val) => !val);
17
-
18
  }
19
  });
20
 
12
 
13
  $.post(ajaxurl, data, function(response) {
14
  if (response == 'success') {
15
+ jQuery('.cmp-status input[type=radio]').prop('disabled', function (_, val) { return ! val; });
16
+ jQuery('#cmp-status').prop('checked', function (_, val) { return ! val; });
 
17
  }
18
  });
19
 
js/settings.js CHANGED
@@ -68,6 +68,7 @@ jQuery(document).ready(function($){
68
  toggle_settings( 'contact-form' );
69
  toggle_settings( 'subscribe' );
70
  toggle_settings( 'background-effect' );
 
71
  toggle_settings( 'cmp-logo' );
72
 
73
  toggle_select('subscribe-method');
@@ -82,8 +83,8 @@ jQuery(document).ready(function($){
82
 
83
 
84
  jQuery('#cmp-status').click(function(){
85
- jQuery('.cmp-status input[type=radio]').prop("disabled", (_, val) => !val);
86
- jQuery('#cmp-status-menubar').prop("checked", (_, val) => !val);
87
  });
88
 
89
 
@@ -717,14 +718,8 @@ jQuery(document).ready(function($){
717
  if ( purchased != '1' && type == 'premium' ){
718
  var buttonDisabled = 'disabled ';
719
  var buyURL = $wrapper.find('a').attr('href');
720
- // check for freebie
721
- price = (price == 0) ? 'Download' : '$' + price;
722
- var buyButton = '<button type="button" class="theme-purchase button hide"><a href="'+buyURL+'" target="_blank"><i class="fa fa-cart-arrow-down" aria-hidden="true"></i>'+price+'</a></button>';
723
-
724
- if ( freebie ) {
725
- var buyButton = '<p style="font-weight: bold;font-size: 1.2em;margin-bottom: 8px;">Pay what you want</p>'+buyButton;
726
- }
727
-
728
  }
729
 
730
  // get screenshots
@@ -1015,7 +1010,6 @@ jQuery(document).ready(function($){
1015
  function update_range ( selector ) {
1016
  jQuery( selector ).on('input', function () {
1017
  var value = jQuery(this).val();
1018
-
1019
  // change label value
1020
  jQuery(this).parent().find('span').html(value);
1021
 
68
  toggle_settings( 'contact-form' );
69
  toggle_settings( 'subscribe' );
70
  toggle_settings( 'background-effect' );
71
+ toggle_settings( 'special-effect' );
72
  toggle_settings( 'cmp-logo' );
73
 
74
  toggle_select('subscribe-method');
83
 
84
 
85
  jQuery('#cmp-status').click(function(){
86
+ jQuery('.cmp-status input[type=radio]').prop('disabled', function (_, val) { return ! val; });
87
+ jQuery('#cmp-status-menubar').prop('checked', function (_, val) { return ! val; });
88
  });
89
 
90
 
718
  if ( purchased != '1' && type == 'premium' ){
719
  var buttonDisabled = 'disabled ';
720
  var buyURL = $wrapper.find('a').attr('href');
721
+ var buyButton = '<button type="button" class="theme-purchase button hide"><a href="'+buyURL+'" target="_blank"><i class="fa fa-cart-arrow-down" aria-hidden="true"></i>Get Theme</a></button>';
722
+
 
 
 
 
 
 
723
  }
724
 
725
  // get screenshots
1010
  function update_range ( selector ) {
1011
  jQuery( selector ).on('input', function () {
1012
  var value = jQuery(this).val();
 
1013
  // change label value
1014
  jQuery(this).parent().find('span').html(value);
1015
 
js/settings.min.js CHANGED
@@ -1,38 +1 @@
1
- jQuery(document).ready(function($){var formChanged=!1;var tab=document.location.hash.substring(1);var action=jQuery('#csoptions').attr('action');if(wp.codeEditor){wp.codeEditor.initialize('niteoCS_custom_css')}
2
- navtab=function(tab){jQuery('.nav-tab-wrapper .nav-tab').removeClass('nav-tab-active');jQuery('.nav-tab-wrapper .'+tab).addClass('nav-tab-active');jQuery('.table-wrapper.'+tab).css('display','block');jQuery('.table-wrapper-css.'+tab).css('display','block');jQuery('.comingsoon.'+tab).css('display','block');jQuery('.table-wrapper:not(.'+tab+')').css('display','none');jQuery('.table-wrapper-css:not(.'+tab).css('display','none');jQuery('.comingsoon:not(.'+tab+')').css('display','none');if(tab=='install'){jQuery('.submit').css('display','none');jQuery('#csoptions').attr('action',action)}else{jQuery('.submit').css('display','block');jQuery('#csoptions').attr('action',action+'#'+tab)}}
3
- if(tab!=''){navtab(tab)}else{jQuery('.table-wrapper-css').css('display','none')}
4
- window.onhashchange=function(){tab=document.location.hash.substring(1);navtab(tab)}
5
- $('.nav-tab:not(.theme-preview)').click(function(e){e.preventDefault();tab=$(this).data('tab');document.location.hash=tab});update_range('.blur-range');update_range('.overlay-opacity');media_upload_button('logo',!1,'image');media_upload_button('favicon',!1,'image');media_upload_button('images',!0,'image');media_upload_button('pattern',!1,'image');media_upload_button('video-thumb',!1,'image');media_upload_button('video',!1,'video');toggle_settings('analytics');toggle_settings('contact-form');toggle_settings('subscribe');toggle_settings('background-effect');toggle_settings('cmp-logo');toggle_select('subscribe-method');jQuery('select:not(.headings-google-font):not(.content-google-font )').select2({width:'100%',minimumResultsForSearch:-1,});jQuery('#cmp-status').click(function(){jQuery('.cmp-status input[type=radio]').prop("disabled",(_,val)=>!val);jQuery('#cmp-status-menubar').prop("checked",(_,val)=>!val)});cmp_status_inputs();function cmp_status_inputs(){jQuery('.cmp-status legend:not(.disabled)').click(function(){if(jQuery('#cmp-status').prop('checked')==!1){return}
6
- var $children=jQuery(this).children('input');$children.prop("checked",!0);jQuery('.cmp-status legend').removeClass('active');jQuery(this).addClass('active');$children.trigger('change');if($children.val()=='3'){jQuery('.redirect-inputs').fadeIn('fast')}else{jQuery('.redirect-inputs').fadeOut('fast')}})}
7
- jQuery('.table-wrapper h3').click(function(){jQuery(this).parent().toggleClass('closed')});jQuery('#test-unsplash').click(function(e){e.preventDefault();var media_wrapper=jQuery('#unsplash-media'),unsplash_feed=jQuery('#unsplash_banner select[name^="unsplash_feed"] option:selected').val(),unsp_url='',feat='',custom_str='',security=jQuery(this).data('security');switch(unsplash_feed){case '0':unsp_url=jQuery('#niteoCS-unsplash-0').val();break;case '1':custom_str=jQuery('#niteoCS-unsplash-1').val();break;case '2':unsp_url=jQuery('#niteoCS-unsplash-2').val();break;case '3':unsp_url=jQuery('#niteoCS-unsplash-3').val();if(jQuery('#niteoCS_unsplash_feat').is(':checked')){feat='1'}else{feat='0'}
8
- break;default:break}
9
- if(unsplash_feed==3||unsp_url!=''||custom_str!=''){var params={feed:unsplash_feed,url:unsp_url,feat:feat,custom_str:custom_str};jQuery(this).prop('disabled',!0);jQuery(this).html('<i class="fa fa-cog fa-spin fa-1x fa-fw"></i><span> loading..</span>');media_wrapper.html('');var data={action:'niteo_unsplash',security:security,params:params};$.post(ajaxurl,data,function(response){var unsplash=JSON.parse(response);jQuery('#unsplash_img').remove();var loadingTimeout=setTimeout(function(){jQuery('#test-unsplash').prop('disabled',!1);jQuery('#test-unsplash').text('Display Unsplash Photo');jQuery('#unsplash-media').html('<p>It seems <a href="https://status.unsplash.com/" target="_blank">Unsplash API</a> is not responding. Please try again later.</p>')},5000);if(unsplash.response=='200'){var unsplash=jQuery.parseJSON(unsplash.body);if(unsplash[0]){var img=unsplash[0].urls.raw+'?ixlib=rb-0.3.5&q=80&fm=jpg&crop=entropy&cs=tinysrgb&fit=max&w=588';var author=unsplash[0].user.name;var author_url=unsplash[0].user.links.html;var img_url=unsplash[0].links.html;var img_id=unsplash[0].id}else{var img=unsplash.urls.raw+'?ixlib=rb-0.3.5&q=80&fm=jpg&crop=entropy&cs=tinysrgb&fit=max&w=588';var author=unsplash.user.name;var author_url=unsplash.user.links.html;var img_url=unsplash.links.html;var img_id=unsplash.id}
10
- jQuery('<img />',{src:img,id:'unsplash_img'}).one('load',function(){jQuery(this).appendTo(media_wrapper);jQuery(this).fadeIn();jQuery('#test-unsplash').prop('disabled',!1);jQuery('#test-unsplash').text('Display Unsplash Photo');jQuery('#unsplash-media').append('<span><a href="'+img_url+'" target="_blank">Photo</a> (ID: '+img_id+') by <a href="'+author_url+'" target="_blank">'+author+'</a> / <a href="https://unsplash.com/" target="_blank">Unsplash</a></span>')
11
- clearTimeout(loadingTimeout)})}else{jQuery('#test-unsplash').prop('disabled',!1);jQuery('#test-unsplash').text('Display Unsplash Photo');jQuery('#unsplash-media').html('<p>Error '+unsplash.response+': <span style="text-transform:lowercase;">'+unsplash.body+'</span></p>');clearTimeout(loadingTimeout)}})}else{jQuery('#unsplash_img').remove()}});videoPreview=function(){var source=$('.banner-video-source').val();$('.video-wrapper').css('padding-top','0');if(source=='YouTube'){var youtubeLink=$('#niteoCS-youtube-url').val();if(youtubeLink.match(/(youtube.com)/)){var split_c='v=';var split_n=1}
12
- if(youtubeLink.match(/(youtu.be)/)||youtubeLink.match(/(vimeo.com\/)+[0-9]/)){var split_c='/';var split_n=3}
13
- if(source=='vimeo'){var youtubeLink=$('#niteoCS-vimeo-url').val();if(youtubeLink.match(/(vimeo.com\/)+[a-zA-Z]/)){var split_c='/';var split_n=5}}
14
- if(youtubeLink){var getYouTubeVideoID=youtubeLink.split(split_c)[split_n];if(getYouTubeVideoID!=undefined){var cleanVideoID=getYouTubeVideoID.replace(/(&)+(.*)/,'');if(source=='banner_youtube'&&youtubeLink.match(/(youtu.be)/)||youtubeLink.match(/(youtube.com)/)){var videoEmbedLink='https://www.youtube.com/embed/'+cleanVideoID+'?autoplay=0'}
15
- if(source=='banner_vimeo'&&youtubeLink.match(/(vimeo.com\/)+[0-9]/)||youtubeLink.match(/(vimeo.com\/)+[a-zA-Z]/)){var videoEmbedLink='https://player.vimeo.com/video/'+cleanVideoID+'?autoplay=0'}
16
- var $iframe=$('<iframe src="'+videoEmbedLink+'" allowfullscreen></iframe>');$('.video-wrapper').html($iframe);var videoRatio=($iframe.height()/$iframe.width())*100;$iframe.css('position','absolute');$iframe.css('top','0');$iframe.css('left','0');$iframe.css('width','100%');$iframe.css('height','100%');$('.video-wrapper').css('padding-top',videoRatio+'%');$('#niteoCS-vimeo-url').css('border','1px solid #ddd');$('#niteoCS-youtube-url').css('border','1px solid #ddd')}else{$('.video-wrapper').text('Please enter correct '+source+' URL.').css('padding-top','0');$('#niteoCS-vimeo-url').css('border','1px solid #d60000');$('#niteoCS-youtube-url').css('border','1px solid #d60000')}}else{$('.video-wrapper').text('Please enter '+source+' URL.').css('padding-top','0');$('#niteoCS-vimeo-url').css('border','1px solid #d60000');$('#niteoCS-youtube-url').css('border','1px solid #d60000')}}
17
- if(source=='video/mp4'){var videoURL=jQuery('#niteoCS-video-id').data('url');if(videoURL!=''){$('.video-wrapper').html('<video width="600" height="400" controls><source src="'+videoURL+'" type="video/mp4">Your browser does not support the video tag.</video>')}}};jQuery('#niteoCS-youtube-url').keyup(function(){videoPreview()});jQuery('#csoptions .banner-video-source').change(function(){switch(jQuery('#csoptions .banner-video-source').val()){case 'YouTube':jQuery('.youtube-source-input').css('display','block');jQuery('.vimeo-source-input').css('display','none');jQuery('.file-source-input').css('display','none');break;case 'vimeo':jQuery('.youtube-source-input').css('display','none');jQuery('.vimeo-source-input').css('display','block');jQuery('.file-source-input').css('display','none');break;case 'video/mp4':jQuery('.youtube-source-input').css('display','none');jQuery('.vimeo-source-input').css('display','none');jQuery('.file-source-input').css('display','block');videoPreview();break;default:jQuery('.file-source-input').css('display','block');jQuery('.youtube-source-input').css('display','none');jQuery('.vimeo-source-input').css('display','none')}});jQuery('#csoptions .banner-video-source').trigger('change');jQuery('#csoptions .niteoCS_banner').change(function(){switch(jQuery('#csoptions .niteoCS_banner:checked').val()){case '0':jQuery('#custom_banner').css('display','block');jQuery('.theme_background fieldset:not(#custom_banner)').css('display','none');break;case '1':jQuery('#unsplash_banner').css('display','block');jQuery('.theme_background fieldset:not(#unsplash_banner)').css('display','none');break;case '2':jQuery('#default_banner').css('display','block');jQuery('.theme_background fieldset:not(#default_banner)').css('display','none');break;case '3':jQuery('#graphic_pattern').css('display','block');jQuery('.theme_background fieldset:not(#graphic_pattern)').css('display','none');break;case '4':jQuery('#solid_color').css('display','block');jQuery('.theme_background fieldset:not(#solid_color)').css('display','none');break;case '5':jQuery('#video_banner').css('display','block');jQuery('.theme_background fieldset:not(#video_banner)').css('display','none');videoPreview();break;case '6':jQuery('#gradient_background').css('display','block');jQuery('.theme_background fieldset:not(#gradient_background)').css('display','none');break;default:jQuery('#custom_banner').css('display','block');jQuery('.theme_background fieldset:not(#custom_banner)').css('display','none');break}});jQuery('#csoptions .niteoCS_banner:first').trigger('change');var unsplasfeed=jQuery('#unsplash_banner select[name^="unsplash_feed"] option:selected').val();jQuery('#unsplash-feed-'+unsplasfeed).css('display','block');jQuery('#unsplash_banner select[name^="unsplash_feed"]').on('change',function(){unsplasfeed=jQuery('#unsplash_banner select[name^="unsplash_feed"] option:selected').val();jQuery('.unsplash-feed').css('display','none');jQuery('#unsplash-feed-'+unsplasfeed).css('display','block');jQuery('#test-unsplash').trigger('click')});if(jQuery('#csoptions .niteoCS_banner:checked').val()==1){jQuery('#test-unsplash').trigger('click')}
18
- jQuery('select.background-gradient').on('change',function(){var gradient=jQuery('select.background-gradient option:selected').val();if(gradient=='custom'){jQuery('.custom-gradient').css('display','block');jQuery('.gradient-preview').css({'background':'-moz-linear-gradient(-45deg, '+jQuery('#niteoCS_gradient_one').val()+' 0%, '+jQuery('#niteoCS_gradient_two').val()+' 100%)','background':'-webkit-linear-gradient(-45deg, '+jQuery('#niteoCS_gradient_one').val()+' 0%, '+jQuery('#niteoCS_gradient_two').val()+' 100%)','background':'linear-gradient(135deg, '+jQuery('#niteoCS_gradient_one').val()+' 0%, '+jQuery('#niteoCS_gradient_two').val()+' 100%)'})}else{colors=gradient.split(':');jQuery('.custom-gradient').css('display','none');jQuery('.gradient-preview').css({'background':'-moz-linear-gradient(-45deg, '+colors[0]+' 0%, '+colors[1]+' 100%)','background':'-webkit-linear-gradient(-45deg, '+colors[0]+' 0%, '+colors[1]+' 100%)','background':'linear-gradient(135deg, '+colors[0]+' 0%, '+colors[1]+' 100%)'})}}).trigger('change');jQuery('#niteoCS_banner_color').wpColorPicker({change:function(event,ui){jQuery('.color-preview').css('background-color',ui.color.toString())}});jQuery('#niteoCS_gradient_one').wpColorPicker({change:function(event,ui){jQuery('.gradient-preview').css({'background':'-moz-linear-gradient(-45deg, '+ui.color.toString()+' 0%, '+jQuery('#niteoCS_gradient_two').val()+' 100%)','background':'-webkit-linear-gradient(-45deg, '+ui.color.toString()+' 0%, '+jQuery('#niteoCS_gradient_two').val()+' 100%)','background':'linear-gradient(135deg, '+ui.color.toString()+' 0%, '+jQuery('#niteoCS_gradient_two').val()+' 100%)'})}});jQuery('#niteoCS_gradient_two').wpColorPicker({change:function(event,ui){jQuery('.gradient-preview').css({'background':'-moz-linear-gradient(-45deg, '+jQuery('#niteoCS_gradient_one').val()+' 0%, '+ui.color.toString()+' 100%)','background':'-webkit-linear-gradient(-45deg, '+jQuery('#niteoCS_gradient_one').val()+' 0%, '+ui.color.toString()+' 100%)','background':'linear-gradient(135deg, '+jQuery('#niteoCS_gradient_one').val()+' 0%, '+ui.color.toString()+' 100%)'})}});jQuery('select[name^="niteoCS_banner_pattern"]').on('change',function(){var pattern=jQuery('select[name^="niteoCS_banner_pattern"] option:selected').val();if(pattern!='custom'){var pattern_url=jQuery(this).data('url');jQuery('#add-pattern').css('display','none');jQuery('.pattern-wrapper').css('background-image','url(\''+pattern_url+pattern+'.png\')')}else{var pattern_url=jQuery('#niteoCS_banner_pattern_custom').val();jQuery('#add-pattern').css('display','block');jQuery('.pattern-wrapper').css('background-image','url(\''+pattern_url+'\')')}});jQuery('.heading-animation').on('change',function(){heading_anim=jQuery('.heading-animation option:selected').val();jQuery('#heading-example').removeClass().addClass('animated '+heading_anim)});jQuery('.content-animation').on('change',function(){heading_anim=jQuery('.content-animation option:selected').val();jQuery('#content-example').removeClass().addClass('animated '+heading_anim)});var update_social=function(name,key,val){var socialmedia=$('#niteoCS_socialmedia').attr('value');socialmedia=$.parseJSON(socialmedia);$.each(socialmedia,function(i,ele){if(ele.name==name){ele[key]=val}});$('#niteoCS_socialmedia').attr('value',JSON.stringify(socialmedia))};var $sortableList=$('.social-inputs');var sortEventHandler=function(event,ui){var inputs=$sortableList.find('input[type="text"]');var order=ui.item.index();inputs.each(function(i,ele){var name=$(ele).data('name');update_social(name,'order',i)})};$sortableList.sortable({stop:sortEventHandler});$sortableList.on('sortchange',sortEventHandler);(function($){$.fn.toggleDisabled=function(){return this.each(function(){var $this=$(this);var active;var name=$this.data('name');if($this.attr('disabled')){$this.prop('disabled',!1);active='1'}else{$this.prop('disabled',!0);active='0'}
19
- update_social(name,'active',active)})}})(jQuery);jQuery('.social-inputs input[type="text"]').focusout(function(){var name=jQuery(this).data('name');var socialurl=jQuery(this).attr('value');update_social(name,'url',socialurl)});jQuery('.social-inputs input[type="checkbox"]').click(function(e){var $this=$(this).siblings('input[type="text"]');$this.toggleDisabled()});jQuery('.social-media i').click(function(){var name=jQuery(this).data('name');jQuery(this).toggleClass('active');jQuery('.social-inputs li.'+name).toggleClass('active');jQuery('.social-inputs li.'+name+' input').trigger('change');if(jQuery(this).hasClass('active')){update_social(name,'hidden','0')}else{update_social(name,'hidden','1')}
20
- if(jQuery('.social-media i.active').length){jQuery('.social-inputs .label').css('display','block')}else{jQuery('.social-inputs .label').css('display','none')}});if(jQuery('.social-media i.active').length){jQuery('.social-inputs .label').css('display','block')}
21
- jQuery('.view-release').click(function(e){e.preventDefault();$this=jQuery(this);var release_url=$this.attr('href');jQuery.get(release_url,function(release){$this.closest('.notice').find('.release-note .notes').remove();$this.closest('.notice').find('.release-note').append('<div class="notes">'+release+'</div>')}).fail(function(){$this.closest('.notice').find('.release-note p').remove();$this.closest('.notice').find('.release-note').append('<p>There was an error loading release notes. Please try again later.</p>')})});jQuery('.update-theme').click(function(e){e.preventDefault();var $this=$(this),$parent=$this.parents('.notice'),security=$this.data('security'),slug=$this.data('slug'),themeName=$this.data('name'),remoteUrl=jQuery(this).data('remote_url');var update={'name':slug,'tmp_name':'','url':remoteUrl+'?action=download&slug='+slug,}
22
- var data={action:'cmp_theme_update_install',security:security,file:update};$parent.find('.message').html('<i class="fa fa-cog fa-spin fa-1x fa-fw"></i><span class="sr-only">Updating heme...</span><span> working hard on updating Theme...</span>');$.post(ajaxurl,data,function(response){response=response.trim();if(response=='success'){setTimeout(function(){$parent.removeClass('notice-warning').addClass('notice-success');$parent.find('.message').html('<span> '+themeName+' CMP theme was updated sucessfully! </span><i class="fa fa-smile-o" aria-hidden="true"></i>')},1500)}else{response=response.slice(0,-1);var error=$('p',$(response)).text();$parent.removeClass('notice-warning').addClass('notice-error');$parent.find('.message').html('<i class="fa fa-frown-o" aria-hidden="true"></i><span> '+error+'</span>')}})});jQuery('.theme-select').click(function(){jQuery(this).parent().find('input[name="select_theme"]').prop("checked",!0).trigger('change');jQuery('.theme-select').removeClass('selected');jQuery(this).parent().find('.theme-select').addClass('selected')});jQuery('.theme-update.button').one('click',function(e){e.preventDefault();var $this=$(this),$wrapper=$this.closest('.theme-wrapper'),security=$wrapper.data('security'),slug=$wrapper.data('slug'),remoteUrl=$wrapper.data('remote_url');var update={'name':slug,'tmp_name':'','url':remoteUrl+'?action=download&slug='+slug,}
23
- var data={action:'cmp_theme_update_install',security:security,file:update};$this.html('<i class="fa fa-cog fa-spin fa-1x fa-fw"></i><span>Updating..</span>');$.post(ajaxurl,data,function(response){if(response=='success'){setTimeout(function(){$this.html('<i class="fa fa-smile-o" aria-hidden="true"></i><span>Updated!</span>');setTimeout(function(){$this.fadeOut()},1500)},1500)}else{response=response.slice(0,-1);$this.html('<i class="fa fa-frown-o" aria-hidden="true"></i><span>Update Failed!</span>')}})});jQuery('.theme-details').click(function(){var $this=$(this),$wrapper=$this.closest('.theme-wrapper'),slug=$wrapper.data('slug'),version=$wrapper.data('version'),remoteUrl=$wrapper.data('remote_url'),type=$wrapper.data('type'),purchased=$wrapper.data('purchased'),freebie=$wrapper.data('freebie'),noticeHtml='',security=jQuery('.update-theme').data('security'),price=$wrapper.data('price'),i=0;var data={action:'niteo_themeinfo',security:jQuery('.theme-wrapper').data('security'),theme_slug:jQuery(this).parents('.theme-wrapper').data('slug'),};$.post(ajaxurl,data,function(response){var buttonDisabled='';var buyButton='';var versionInfo='';var noticeHtml='';response=jQuery.parseJSON(response);if(response.result=='true'){jQuery('body').addClass('modal-open');if(purchased=='1'){versionInfo='<span class="theme-version">Version: '+version+'</span>';noticeHtml='<div class="notice notice-success notice-alt notice-large"><p>Theme is up to date.</p></div>';if(jQuery('.update-theme').length){var updateSlug=jQuery('.update-theme').data('slug');if(slug==updateSlug){var newVer=jQuery('.update-theme').data('new_ver');noticeHtml='<div class="notice notice-warning notice-alt notice-large"><h3 class="notice-title">Update Available</h3><p class="message"><strong>There is a new version of '+response.name+' theme available. <a href="'+remoteUrl+'readme/'+slug+'-readme.php" class="view-release">View update '+newVer+' notes</a> or <a href="'+window.location.href+'&action=update-cmp-theme&theme='+slug+'" class="update-theme" data-security="'+security+'" data-slug="'+slug+'" data-remote_url="'+remoteUrl+'">Update now.</a></strong></p><div class="release-note"></div></div>'}}}
24
- if(purchased!='1'&&type=='premium'){var buttonDisabled='disabled ';var buyURL=$wrapper.find('a').attr('href');price=(price==0)?'Download':'$'+price;var buyButton='<button type="button" class="theme-purchase button hide"><a href="'+buyURL+'" target="_blank"><i class="fa fa-cart-arrow-down" aria-hidden="true"></i>'+price+'</a></button>';if(freebie){var buyButton='<p style="font-weight: bold;font-size: 1.2em;margin-bottom: 8px;">Pay what you want</p>'+buyButton}}
25
- var screenshots=response.screenshots;var arrows='';if(Object.keys(screenshots).length>1){arrows='<div class="screenshots-nav"><div class="left"><i class="fa fa-chevron-left" aria-hidden="true"></i></div><div class="right"><i class="fa fa-chevron-right" aria-hidden="true"></i></div></div>'}
26
- var html=$(['<div class="theme-backdrop">',' <div class="theme-wrap">',' <div class="theme-header">',' <button class="close dashicons dashicons-no"><span class="screen-reader-text">Close details dialog</span></button>',' </div>',' <div class="theme-about">',' <div class="theme-screenshots">',' <div class="screenshot" style="background-image:url(\''+screenshots['0']+'\')">'+arrows+'</div>',' </div>',' <div class="theme-info">',' <h2 class="theme-name">'+response.name+versionInfo+'</h2>',' <p class="theme-author">By <a href="'+response.author_homepage+'" target="_blank">'+response.author+'</a></p>',noticeHtml,buyButton,' <div class="theme-description">'+response.description+'</div>',' </div>',' </div>',' <div class="theme-actions">',' <button type="submit" '+buttonDisabled+'class="button activate" name="Submit" aria-label="Select '+response.name+'">Activate</button>',' <a href="http://cmp.niteothemes.com/?cmp_preview=true&selector=true&theme='+slug+'&utm_source=cmp&utm_medium=referral&utm_campaign='+slug+'" class="button cmp-preview" target="_blank" aria-label="Preview '+response.name+'">Live Preview</a>',' </div>',' </div>','</div>',].join("\n"));jQuery('.theme-overlay.cmp').append(html);jQuery('.theme-overlay.cmp .view-release').click(function(e){e.preventDefault();$this=jQuery(this);var release_url=$this.attr('href');jQuery.get(release_url,function(release){$this.closest('.notice').find('.release-note .notes').remove();$this.closest('.notice').find('.release-note').append('<div class="notes">'+release+'</div>')}).fail(function(){$this.closest('.notice').find('.release-note p').remove();$this.closest('.notice').find('.release-note').append('<p>There was an error loading release notes. Please try again later.</p>')})});jQuery('.theme-overlay.cmp .close').click(function(e){e.preventDefault();jQuery('body').removeClass('modal-open');jQuery('.theme-overlay.cmp .theme-backdrop').fadeOut('fast')});jQuery('.theme-overlay.cmp .activate').click(function(e){e.preventDefault();jQuery('input[name="select_theme"]').each(function(){if(jQuery(this).val()==slug){jQuery(this).prop('checked',!0);jQuery('.theme-select').removeClass('selected');jQuery(this).parent().addClass('selected')}});jQuery(this).submit()});jQuery('.screenshots-nav .right').click(function(){i++;if(i==Object.keys(screenshots).length){i=0}
27
- if((i in screenshots)){jQuery('.screenshot').css('background-image','url(\''+screenshots[i]+'\')')}});jQuery('.screenshots-nav .left').click(function(){i--;if(i<0){i=Object.keys(screenshots).length-1}
28
- if((i in screenshots)){jQuery('.screenshot').css('background-image','url(\''+screenshots[i]+'\')')}})}})});function ucwords(str){return(str+'').replace(/^([a-z])|\s+([a-z])/g,function($1){return $1.toUpperCase()})}
29
- function strtolower(str){return(str+'').toLowerCase()}
30
- function media_upload_button(name,multiple,type){var $container=jQuery('.'+name+'-wrapper');var $add_button=jQuery('#add-'+name);var $delete_button=jQuery('#delete-'+name);var image;var imgID='';var title=name.replace('-',' ');title=title[0].toUpperCase()+title.slice(1);if(jQuery('#niteoCS-'+name+'-id').val()!=''){$delete_button.css('display','block')}
31
- $add_button.click(function(e){e.preventDefault();if(media_uploader){media_uploader.open();return}
32
- var media_uploader=wp.media({title:'Select '+title,button:{text:'Insert '+title},multiple:multiple,library:{type:[type]},}).on('select',function(){var attachment=media_uploader.state().get('selection').toJSON();if(attachment.length>0){$container.empty();jQuery(attachment).each(function(i){if(attachment[i].sizes&&attachment[i].sizes.large){image=attachment[i].sizes.large.url}else{image=attachment[i].url}
33
- var comma=i===0?'':',';imgID+=(comma+attachment[i].id);if(name=='pattern'){$container.css('background-image','url(\''+image+'\')')}else if(name=='video'){$container.append('<video width="600" height="400" controls><source src="'+image+'" type="video/mp4">Your browser does not support the video tag.</video>')}else{$container.append('<img src="'+image+'" alt="" style="max-width:588px"/>')}});$delete_button.css('display','block')}
34
- jQuery('#niteoCS-'+name+'-id').val(imgID).trigger('change')}).open();if(name=='pattern'){$container.css('background-image','url(\''+image+'\')')}});$delete_button.click(function(e){jQuery(this).css('display','none');$container.empty();jQuery('#niteoCS-'+name+'-id').val('');jQuery('#niteoCS-'+name+'-id').trigger('change')})}
35
- jQuery('#connect-mailchimp').click(function(e){e.preventDefault();var apikey=jQuery('input[name="niteoCS_mailchimp_apikey"]').val(),security=jQuery(this).data('security'),button=jQuery(this);if(apikey!=''){var params={apikey:apikey,security:security};jQuery(this).prop('disabled',!0);jQuery(this).html('<i class="fa fa-cog fa-spin fa-1x fa-fw"></i><span> retrieving lists..</span>');var data={action:'cmp_mailchimp_list_ajax',security:security,params:params,};$.post(ajaxurl,data,function(response){var lists=JSON.parse(response);if(lists.response==200){$('#mailchimp-lists-select').empty().prop('disabled',!1);$.each(lists.lists,function(i,val){$('#mailchimp-lists-select').append('<option value="'+val.id+'">'+val.name+'</option>')})}else{$('#mailchimp-lists-select').empty().prop('disabled',!0).html('<option value="error">'+lists.message+'</option>').trigger('change')}
36
- button.html('Retrieve Lists');button.prop('disabled',!1)}).fail(function(){button.html('Retrieve Lists');button.prop('disabled',!1)})}});function toggle_settings(classname){jQuery('.'+classname).change(function(){var value=jQuery('.'+classname+':checked').val();value=(jQuery.isNumeric(value))?'x'+value:value;jQuery('.'+classname+'-switch.'+value).css('display','block');jQuery('.'+classname+'-switch:not(.'+value+')').css('display','none')});jQuery('.'+classname).first().trigger('change')}
37
- function toggle_select(classname){jQuery('.'+classname).change(function(){var value=jQuery('.'+classname).val();value=(jQuery.isNumeric(value))?'x'+value:value;jQuery('.'+classname+'.'+value).css('display','block');jQuery('.'+classname+':not(.'+value+')').css('display','none')});jQuery('.'+classname).first().trigger('change')}
38
- function update_range(selector){jQuery(selector).on('input',function(){var value=jQuery(this).val();jQuery(this).parent().find('span').html(value)})}})
1
+ jQuery(document).ready(function(j){var t,a=document.location.hash.substring(1),s=jQuery("#csoptions").attr("action");wp.codeEditor&&wp.codeEditor.initialize("niteoCS_custom_css"),navtab=function(e){jQuery(".nav-tab-wrapper .nav-tab").removeClass("nav-tab-active"),jQuery(".nav-tab-wrapper ."+e).addClass("nav-tab-active"),jQuery(".table-wrapper."+e).css("display","block"),jQuery(".table-wrapper-css."+e).css("display","block"),jQuery(".comingsoon."+e).css("display","block"),jQuery(".table-wrapper:not(."+e+")").css("display","none"),jQuery(".table-wrapper-css:not(."+e).css("display","none"),jQuery(".comingsoon:not(."+e+")").css("display","none"),"install"==e?(jQuery(".submit").css("display","none"),jQuery("#csoptions").attr("action",s)):(jQuery(".submit").css("display","block"),jQuery("#csoptions").attr("action",s+"#"+e))},""!=a?navtab(a):jQuery(".table-wrapper-css").css("display","none"),window.onhashchange=function(){a=document.location.hash.substring(1),navtab(a)},j(".nav-tab:not(.theme-preview)").click(function(e){e.preventDefault(),a=j(this).data("tab"),document.location.hash=a}),u(".blur-range"),u(".overlay-opacity"),c("logo",!1,"image"),c("favicon",!1,"image"),c("images",!0,"image"),c("pattern",!1,"image"),c("video-thumb",!1,"image"),c("video",!1,"video"),l("analytics"),l("contact-form"),l("subscribe"),l("background-effect"),l("special-effect"),l("cmp-logo"),t="subscribe-method",jQuery("."+t).change(function(){var e=jQuery("."+t).val();e=jQuery.isNumeric(e)?"x"+e:e,jQuery("."+t+"."+e).css("display","block"),jQuery("."+t+":not(."+e+")").css("display","none")}),jQuery("."+t).first().trigger("change"),jQuery("select:not(.headings-google-font):not(.content-google-font )").select2({width:"100%",minimumResultsForSearch:-1}),jQuery("#cmp-status").click(function(){jQuery(".cmp-status input[type=radio]").prop("disabled",function(e,t){return!t}),jQuery("#cmp-status-menubar").prop("checked",function(e,t){return!t})}),jQuery(".cmp-status legend:not(.disabled)").click(function(){if(0!=jQuery("#cmp-status").prop("checked")){var e=jQuery(this).children("input");e.prop("checked",!0),jQuery(".cmp-status legend").removeClass("active"),jQuery(this).addClass("active"),e.trigger("change"),"3"==e.val()?jQuery(".redirect-inputs").fadeIn("fast"):jQuery(".redirect-inputs").fadeOut("fast")}}),jQuery(".table-wrapper h3").click(function(){jQuery(this).parent().toggleClass("closed")}),jQuery("#test-unsplash").click(function(e){e.preventDefault();var c=jQuery("#unsplash-media"),t=jQuery('#unsplash_banner select[name^="unsplash_feed"] option:selected').val(),a="",s="",n="",i=jQuery(this).data("security");switch(t){case"0":a=jQuery("#niteoCS-unsplash-0").val();break;case"1":n=jQuery("#niteoCS-unsplash-1").val();break;case"2":a=jQuery("#niteoCS-unsplash-2").val();break;case"3":a=jQuery("#niteoCS-unsplash-3").val(),s=jQuery("#niteoCS_unsplash_feat").is(":checked")?"1":"0"}if(3==t||""!=a||""!=n){var r={feed:t,url:a,feat:s,custom_str:n};jQuery(this).prop("disabled",!0),jQuery(this).html('<i class="fa fa-cog fa-spin fa-1x fa-fw"></i><span> loading..</span>'),c.html("");var o={action:"niteo_unsplash",security:i,params:r};j.post(ajaxurl,o,function(e){var t=JSON.parse(e);jQuery("#unsplash_img").remove();var a=setTimeout(function(){jQuery("#test-unsplash").prop("disabled",!1),jQuery("#test-unsplash").text("Display Unsplash Photo"),jQuery("#unsplash-media").html('<p>It seems <a href="https://status.unsplash.com/" target="_blank">Unsplash API</a> is not responding. Please try again later.</p>')},5e3);if("200"==t.response){if((t=jQuery.parseJSON(t.body))[0])var s=t[0].urls.raw+"?ixlib=rb-0.3.5&q=80&fm=jpg&crop=entropy&cs=tinysrgb&fit=max&w=588",n=t[0].user.name,i=t[0].user.links.html,r=t[0].links.html,o=t[0].id;else s=t.urls.raw+"?ixlib=rb-0.3.5&q=80&fm=jpg&crop=entropy&cs=tinysrgb&fit=max&w=588",n=t.user.name,i=t.user.links.html,r=t.links.html,o=t.id;jQuery("<img />",{src:s,id:"unsplash_img"}).one("load",function(){jQuery(this).appendTo(c),jQuery(this).fadeIn(),jQuery("#test-unsplash").prop("disabled",!1),jQuery("#test-unsplash").text("Display Unsplash Photo"),jQuery("#unsplash-media").append('<span><a href="'+r+'" target="_blank">Photo</a> (ID: '+o+') by <a href="'+i+'" target="_blank">'+n+'</a> / <a href="https://unsplash.com/" target="_blank">Unsplash</a></span>'),clearTimeout(a)})}else jQuery("#test-unsplash").prop("disabled",!1),jQuery("#test-unsplash").text("Display Unsplash Photo"),jQuery("#unsplash-media").html("<p>Error "+t.response+': <span style="text-transform:lowercase;">'+t.body+"</span></p>"),clearTimeout(a)})}else jQuery("#unsplash_img").remove()}),videoPreview=function(){var e=j(".banner-video-source").val();if(j(".video-wrapper").css("padding-top","0"),"YouTube"==e){var t;if((t=j("#niteoCS-youtube-url").val()).match(/(youtube.com)/))var a="v=",s=1;if(t.match(/(youtu.be)/)||t.match(/(vimeo.com\/)+[0-9]/))a="/",s=3;if("vimeo"==e)if((t=j("#niteoCS-vimeo-url").val()).match(/(vimeo.com\/)+[a-zA-Z]/))a="/",s=5;if(t){var n=t.split(a)[s];if(null!=n){var i=n.replace(/(&)+(.*)/,"");if("banner_youtube"==e&&t.match(/(youtu.be)/)||t.match(/(youtube.com)/))var r="https://www.youtube.com/embed/"+i+"?autoplay=0";if("banner_vimeo"==e&&t.match(/(vimeo.com\/)+[0-9]/)||t.match(/(vimeo.com\/)+[a-zA-Z]/))r="https://player.vimeo.com/video/"+i+"?autoplay=0";var o=j('<iframe src="'+r+'" allowfullscreen></iframe>');j(".video-wrapper").html(o);var c=o.height()/o.width()*100;o.css("position","absolute"),o.css("top","0"),o.css("left","0"),o.css("width","100%"),o.css("height","100%"),j(".video-wrapper").css("padding-top",c+"%"),j("#niteoCS-vimeo-url").css("border","1px solid #ddd"),j("#niteoCS-youtube-url").css("border","1px solid #ddd")}else j(".video-wrapper").text("Please enter correct "+e+" URL.").css("padding-top","0"),j("#niteoCS-vimeo-url").css("border","1px solid #d60000"),j("#niteoCS-youtube-url").css("border","1px solid #d60000")}else j(".video-wrapper").text("Please enter "+e+" URL.").css("padding-top","0"),j("#niteoCS-vimeo-url").css("border","1px solid #d60000"),j("#niteoCS-youtube-url").css("border","1px solid #d60000")}if("video/mp4"==e){var l=jQuery("#niteoCS-video-id").data("url");""!=l&&j(".video-wrapper").html('<video width="600" height="400" controls><source src="'+l+'" type="video/mp4">Your browser does not support the video tag.</video>')}},jQuery("#niteoCS-youtube-url").keyup(function(){videoPreview()}),jQuery("#csoptions .banner-video-source").change(function(){switch(jQuery("#csoptions .banner-video-source").val()){case"YouTube":jQuery(".youtube-source-input").css("display","block"),jQuery(".vimeo-source-input").css("display","none"),jQuery(".file-source-input").css("display","none");break;case"vimeo":jQuery(".youtube-source-input").css("display","none"),jQuery(".vimeo-source-input").css("display","block"),jQuery(".file-source-input").css("display","none");break;case"video/mp4":jQuery(".youtube-source-input").css("display","none"),jQuery(".vimeo-source-input").css("display","none"),jQuery(".file-source-input").css("display","block"),videoPreview();break;default:jQuery(".file-source-input").css("display","block"),jQuery(".youtube-source-input").css("display","none"),jQuery(".vimeo-source-input").css("display","none")}}),jQuery("#csoptions .banner-video-source").trigger("change"),jQuery("#csoptions .niteoCS_banner").change(function(){switch(jQuery("#csoptions .niteoCS_banner:checked").val()){case"0":jQuery("#custom_banner").css("display","block"),jQuery(".theme_background fieldset:not(#custom_banner)").css("display","none");break;case"1":jQuery("#unsplash_banner").css("display","block"),jQuery(".theme_background fieldset:not(#unsplash_banner)").css("display","none");break;case"2":jQuery("#default_banner").css("display","block"),jQuery(".theme_background fieldset:not(#default_banner)").css("display","none");break;case"3":jQuery("#graphic_pattern").css("display","block"),jQuery(".theme_background fieldset:not(#graphic_pattern)").css("display","none");break;case"4":jQuery("#solid_color").css("display","block"),jQuery(".theme_background fieldset:not(#solid_color)").css("display","none");break;case"5":jQuery("#video_banner").css("display","block"),jQuery(".theme_background fieldset:not(#video_banner)").css("display","none"),videoPreview();break;case"6":jQuery("#gradient_background").css("display","block"),jQuery(".theme_background fieldset:not(#gradient_background)").css("display","none");break;default:jQuery("#custom_banner").css("display","block"),jQuery(".theme_background fieldset:not(#custom_banner)").css("display","none")}}),jQuery("#csoptions .niteoCS_banner:first").trigger("change");var e=jQuery('#unsplash_banner select[name^="unsplash_feed"] option:selected').val();jQuery("#unsplash-feed-"+e).css("display","block"),jQuery('#unsplash_banner select[name^="unsplash_feed"]').on("change",function(){e=jQuery('#unsplash_banner select[name^="unsplash_feed"] option:selected').val(),jQuery(".unsplash-feed").css("display","none"),jQuery("#unsplash-feed-"+e).css("display","block"),jQuery("#test-unsplash").trigger("click")}),1==jQuery("#csoptions .niteoCS_banner:checked").val()&&jQuery("#test-unsplash").trigger("click"),jQuery("select.background-gradient").on("change",function(){var e=jQuery("select.background-gradient option:selected").val();"custom"==e?(jQuery(".custom-gradient").css("display","block"),jQuery(".gradient-preview").css({background:"-moz-linear-gradient(-45deg, "+jQuery("#niteoCS_gradient_one").val()+" 0%, "+jQuery("#niteoCS_gradient_two").val()+" 100%)",background:"-webkit-linear-gradient(-45deg, "+jQuery("#niteoCS_gradient_one").val()+" 0%, "+jQuery("#niteoCS_gradient_two").val()+" 100%)",background:"linear-gradient(135deg, "+jQuery("#niteoCS_gradient_one").val()+" 0%, "+jQuery("#niteoCS_gradient_two").val()+" 100%)"})):(colors=e.split(":"),jQuery(".custom-gradient").css("display","none"),jQuery(".gradient-preview").css({background:"-moz-linear-gradient(-45deg, "+colors[0]+" 0%, "+colors[1]+" 100%)",background:"-webkit-linear-gradient(-45deg, "+colors[0]+" 0%, "+colors[1]+" 100%)",background:"linear-gradient(135deg, "+colors[0]+" 0%, "+colors[1]+" 100%)"}))}).trigger("change"),jQuery("#niteoCS_banner_color").wpColorPicker({change:function(e,t){jQuery(".color-preview").css("background-color",t.color.toString())}}),jQuery("#niteoCS_gradient_one").wpColorPicker({change:function(e,t){jQuery(".gradient-preview").css({background:"-moz-linear-gradient(-45deg, "+t.color.toString()+" 0%, "+jQuery("#niteoCS_gradient_two").val()+" 100%)",background:"-webkit-linear-gradient(-45deg, "+t.color.toString()+" 0%, "+jQuery("#niteoCS_gradient_two").val()+" 100%)",background:"linear-gradient(135deg, "+t.color.toString()+" 0%, "+jQuery("#niteoCS_gradient_two").val()+" 100%)"})}}),jQuery("#niteoCS_gradient_two").wpColorPicker({change:function(e,t){jQuery(".gradient-preview").css({background:"-moz-linear-gradient(-45deg, "+jQuery("#niteoCS_gradient_one").val()+" 0%, "+t.color.toString()+" 100%)",background:"-webkit-linear-gradient(-45deg, "+jQuery("#niteoCS_gradient_one").val()+" 0%, "+t.color.toString()+" 100%)",background:"linear-gradient(135deg, "+jQuery("#niteoCS_gradient_one").val()+" 0%, "+t.color.toString()+" 100%)"})}}),jQuery('select[name^="niteoCS_banner_pattern"]').on("change",function(){var e=jQuery('select[name^="niteoCS_banner_pattern"] option:selected').val();if("custom"!=e){var t=jQuery(this).data("url");jQuery("#add-pattern").css("display","none"),jQuery(".pattern-wrapper").css("background-image","url('"+t+e+".png')")}else{t=jQuery("#niteoCS_banner_pattern_custom").val();jQuery("#add-pattern").css("display","block"),jQuery(".pattern-wrapper").css("background-image","url('"+t+"')")}}),jQuery(".heading-animation").on("change",function(){heading_anim=jQuery(".heading-animation option:selected").val(),jQuery("#heading-example").removeClass().addClass("animated "+heading_anim)}),jQuery(".content-animation").on("change",function(){heading_anim=jQuery(".content-animation option:selected").val(),jQuery("#content-example").removeClass().addClass("animated "+heading_anim)});var n,i=function(a,s,n){var e=j("#niteoCS_socialmedia").attr("value");e=j.parseJSON(e),j.each(e,function(e,t){t.name==a&&(t[s]=n)}),j("#niteoCS_socialmedia").attr("value",JSON.stringify(e))},r=j(".social-inputs"),o=function(e,t){var a=r.find('input[type="text"]');t.item.index();a.each(function(e,t){var a=j(t).data("name");i(a,"order",e)})};function c(s,t,n){var i,r=jQuery("."+s+"-wrapper"),e=jQuery("#add-"+s),o=jQuery("#delete-"+s),c="",l=s.replace("-"," ");l=l[0].toUpperCase()+l.slice(1),""!=jQuery("#niteoCS-"+s+"-id").val()&&o.css("display","block"),e.click(function(e){if(e.preventDefault(),a)a.open();else{var a=wp.media({title:"Select "+l,button:{text:"Insert "+l},multiple:t,library:{type:[n]}}).on("select",function(){var t=a.state().get("selection").toJSON();0<t.length&&(r.empty(),jQuery(t).each(function(e){i=t[e].sizes&&t[e].sizes.large?t[e].sizes.large.url:t[e].url,c+=(0===e?"":",")+t[e].id,"pattern"==s?r.css("background-image","url('"+i+"')"):"video"==s?r.append('<video width="600" height="400" controls><source src="'+i+'" type="video/mp4">Your browser does not support the video tag.</video>'):r.append('<img src="'+i+'" alt="" style="max-width:588px"/>')}),o.css("display","block")),jQuery("#niteoCS-"+s+"-id").val(c).trigger("change")}).open();"pattern"==s&&r.css("background-image","url('"+i+"')")}}),o.click(function(e){jQuery(this).css("display","none"),r.empty(),jQuery("#niteoCS-"+s+"-id").val(""),jQuery("#niteoCS-"+s+"-id").trigger("change")})}function l(t){jQuery("."+t).change(function(){var e=jQuery("."+t+":checked").val();e=jQuery.isNumeric(e)?"x"+e:e,jQuery("."+t+"-switch."+e).css("display","block"),jQuery("."+t+"-switch:not(."+e+")").css("display","none")}),jQuery("."+t).first().trigger("change")}function u(e){jQuery(e).on("input",function(){var e=jQuery(this).val();jQuery(this).parent().find("span").html(e)})}r.sortable({stop:o}),r.on("sortchange",o),(n=jQuery).fn.toggleDisabled=function(){return this.each(function(){var e,t=n(this),a=t.data("name");t.attr("disabled")?(t.prop("disabled",!1),e="1"):(t.prop("disabled",!0),e="0"),i(a,"active",e)})},jQuery('.social-inputs input[type="text"]').focusout(function(){var e=jQuery(this).data("name"),t=jQuery(this).attr("value");i(e,"url",t)}),jQuery('.social-inputs input[type="checkbox"]').click(function(e){j(this).siblings('input[type="text"]').toggleDisabled()}),jQuery(".social-media i").click(function(){var e=jQuery(this).data("name");jQuery(this).toggleClass("active"),jQuery(".social-inputs li."+e).toggleClass("active"),jQuery(".social-inputs li."+e+" input").trigger("change"),jQuery(this).hasClass("active")?i(e,"hidden","0"):i(e,"hidden","1"),jQuery(".social-media i.active").length?jQuery(".social-inputs .label").css("display","block"):jQuery(".social-inputs .label").css("display","none")}),jQuery(".social-media i.active").length&&jQuery(".social-inputs .label").css("display","block"),jQuery(".view-release").click(function(e){e.preventDefault(),$this=jQuery(this);var t=$this.attr("href");jQuery.get(t,function(e){$this.closest(".notice").find(".release-note .notes").remove(),$this.closest(".notice").find(".release-note").append('<div class="notes">'+e+"</div>")}).fail(function(){$this.closest(".notice").find(".release-note p").remove(),$this.closest(".notice").find(".release-note").append("<p>There was an error loading release notes. Please try again later.</p>")})}),jQuery(".update-theme").click(function(e){e.preventDefault();var t=j(this),a=t.parents(".notice"),s=t.data("security"),n=t.data("slug"),i=t.data("name"),r={action:"cmp_theme_update_install",security:s,file:{name:n,tmp_name:"",url:jQuery(this).data("remote_url")+"?action=download&slug="+n}};a.find(".message").html('<i class="fa fa-cog fa-spin fa-1x fa-fw"></i><span class="sr-only">Updating heme...</span><span> working hard on updating Theme...</span>'),j.post(ajaxurl,r,function(e){if("success"==(e=e.trim()))setTimeout(function(){a.removeClass("notice-warning").addClass("notice-success"),a.find(".message").html("<span> "+i+' CMP theme was updated sucessfully! </span><i class="fa fa-smile-o" aria-hidden="true"></i>')},1500);else{e=e.slice(0,-1);var t=j("p",j(e)).text();a.removeClass("notice-warning").addClass("notice-error"),a.find(".message").html('<i class="fa fa-frown-o" aria-hidden="true"></i><span> '+t+"</span>")}})}),jQuery(".theme-select").click(function(){jQuery(this).parent().find('input[name="select_theme"]').prop("checked",!0).trigger("change"),jQuery(".theme-select").removeClass("selected"),jQuery(this).parent().find(".theme-select").addClass("selected")}),jQuery(".theme-update.button").one("click",function(e){e.preventDefault();var t=j(this),a=t.closest(".theme-wrapper"),s=a.data("security"),n=a.data("slug"),i={action:"cmp_theme_update_install",security:s,file:{name:n,tmp_name:"",url:a.data("remote_url")+"?action=download&slug="+n}};t.html('<i class="fa fa-cog fa-spin fa-1x fa-fw"></i><span>Updating..</span>'),j.post(ajaxurl,i,function(e){"success"==e?setTimeout(function(){t.html('<i class="fa fa-smile-o" aria-hidden="true"></i><span>Updated!</span>'),setTimeout(function(){t.fadeOut()},1500)},1500):(e=e.slice(0,-1),t.html('<i class="fa fa-frown-o" aria-hidden="true"></i><span>Update Failed!</span>'))})}),jQuery(".theme-details").click(function(){var u=j(this),d=u.closest(".theme-wrapper"),p=d.data("slug"),y=d.data("version"),h=d.data("remote_url"),m=d.data("type"),g=d.data("purchased"),v=(d.data("freebie"),jQuery(".update-theme").data("security")),f=(d.data("price"),0),e={action:"niteo_themeinfo",security:jQuery(".theme-wrapper").data("security"),theme_slug:jQuery(this).parents(".theme-wrapper").data("slug")};j.post(ajaxurl,e,function(e){var t="",a="",s="",n="";if("true"==(e=jQuery.parseJSON(e)).result){if(jQuery("body").addClass("modal-open"),"1"==g&&(s='<span class="theme-version">Version: '+y+"</span>",n='<div class="notice notice-success notice-alt notice-large"><p>Theme is up to date.</p></div>',jQuery(".update-theme").length)){var i=jQuery(".update-theme").data("slug");if(p==i){var r=jQuery(".update-theme").data("new_ver");n='<div class="notice notice-warning notice-alt notice-large"><h3 class="notice-title">Update Available</h3><p class="message"><strong>There is a new version of '+e.name+' theme available. <a href="'+h+"readme/"+p+'-readme.php" class="view-release">View update '+r+' notes</a> or <a href="'+window.location.href+"&action=update-cmp-theme&theme="+p+'" class="update-theme" data-security="'+v+'" data-slug="'+p+'" data-remote_url="'+h+'">Update now.</a></strong></p><div class="release-note"></div></div>'}}if("1"!=g&&"premium"==m)t="disabled ",a='<button type="button" class="theme-purchase button hide"><a href="'+d.find("a").attr("href")+'" target="_blank"><i class="fa fa-cart-arrow-down" aria-hidden="true"></i>Get Theme</a></button>';var o=e.screenshots,c="";1<Object.keys(o).length&&(c='<div class="screenshots-nav"><div class="left"><i class="fa fa-chevron-left" aria-hidden="true"></i></div><div class="right"><i class="fa fa-chevron-right" aria-hidden="true"></i></div></div>');var l=j(['<div class="theme-backdrop">','\t<div class="theme-wrap">','\t\t<div class="theme-header">','\t\t\t<button class="close dashicons dashicons-no"><span class="screen-reader-text">Close details dialog</span></button>',"\t\t</div>",'\t\t<div class="theme-about">','\t\t\t<div class="theme-screenshots">','\t\t\t\t<div class="screenshot" style="background-image:url(\''+o[0]+"')\">"+c+"</div>","\t\t\t</div>",'\t\t\t<div class="theme-info">','\t\t\t\t<h2 class="theme-name">'+e.name+s+"</h2>",'\t\t\t\t<p class="theme-author">By <a href="'+e.author_homepage+'" target="_blank">'+e.author+"</a></p>",n,a,'\t\t\t\t<div class="theme-description">'+e.description+"</div>","\t\t\t</div>","\t\t</div>",'\t\t<div class="theme-actions">','\t\t\t<button type="submit" '+t+'class="button activate" name="Submit" aria-label="Select '+e.name+'">Activate</button>','\t\t\t<a href="http://cmp.niteothemes.com/?cmp_preview=true&selector=true&theme='+p+"&utm_source=cmp&utm_medium=referral&utm_campaign="+p+'" class="button cmp-preview" target="_blank" aria-label="Preview '+e.name+'">Live Preview</a>',"\t\t</div>","\t</div>","</div>"].join("\n"));jQuery(".theme-overlay.cmp").append(l),jQuery(".theme-overlay.cmp .view-release").click(function(e){e.preventDefault();var t=(u=jQuery(this)).attr("href");jQuery.get(t,function(e){u.closest(".notice").find(".release-note .notes").remove(),u.closest(".notice").find(".release-note").append('<div class="notes">'+e+"</div>")}).fail(function(){u.closest(".notice").find(".release-note p").remove(),u.closest(".notice").find(".release-note").append("<p>There was an error loading release notes. Please try again later.</p>")})}),jQuery(".theme-overlay.cmp .close").click(function(e){e.preventDefault(),jQuery("body").removeClass("modal-open"),jQuery(".theme-overlay.cmp .theme-backdrop").fadeOut("fast")}),jQuery(".theme-overlay.cmp .activate").click(function(e){e.preventDefault(),jQuery('input[name="select_theme"]').each(function(){jQuery(this).val()==p&&(jQuery(this).prop("checked",!0),jQuery(".theme-select").removeClass("selected"),jQuery(this).parent().addClass("selected"))}),jQuery(this).submit()}),jQuery(".screenshots-nav .right").click(function(){++f==Object.keys(o).length&&(f=0),f in o&&jQuery(".screenshot").css("background-image","url('"+o[f]+"')")}),jQuery(".screenshots-nav .left").click(function(){--f<0&&(f=Object.keys(o).length-1),f in o&&jQuery(".screenshot").css("background-image","url('"+o[f]+"')")})}})}),jQuery("#connect-mailchimp").click(function(e){e.preventDefault();var t=jQuery('input[name="niteoCS_mailchimp_apikey"]').val(),a=jQuery(this).data("security"),s=jQuery(this);if(""!=t){var n={apikey:t,security:a};jQuery(this).prop("disabled",!0),jQuery(this).html('<i class="fa fa-cog fa-spin fa-1x fa-fw"></i><span> retrieving lists..</span>');var i={action:"cmp_mailchimp_list_ajax",security:a,params:n};j.post(ajaxurl,i,function(e){var t=JSON.parse(e);200==t.response?(j("#mailchimp-lists-select").empty().prop("disabled",!1),j.each(t.lists,function(e,t){j("#mailchimp-lists-select").append('<option value="'+t.id+'">'+t.name+"</option>")})):j("#mailchimp-lists-select").empty().prop("disabled",!0).html('<option value="error">'+t.message+"</option>").trigger("change"),s.html("Retrieve Lists"),s.prop("disabled",!1)}).fail(function(){s.html("Retrieve Lists"),s.prop("disabled",!1)})}})});
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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: 2.6.5
7
  Author: NiteoThemes
8
  Author URI: https://www.niteothemes.com
9
  Text Domain: cmp-coming-soon-maintenance
@@ -18,7 +18,7 @@ class niteo_cmp {
18
  public function __construct() {
19
  $this->author = 'NiteoThemes';
20
  $this->author_homepage = 'https://niteothemes.com';
21
- $this->version = '2.6.5';
22
  $this->dev = false;
23
  $this->plugins_dir_path = plugin_dir_path( __DIR__ );
24
  if ( $this->plugins_dir_path == './') {
@@ -26,7 +26,7 @@ class niteo_cmp {
26
  }
27
  $this->premium_installed = array();
28
  // set array of themes with countdown
29
- $this->countdown_themes = array('frame', 'countdown', 'postery', 'countdown2', 'stylo');
30
 
31
  // get all installed themes [folder names under /themes] and put them to array
32
  $this->themes_standard = array_map('basename', glob( plugin_dir_path( __FILE__ ) . 'themes/*', GLOB_ONLYDIR));
@@ -119,18 +119,29 @@ class niteo_cmp {
119
  // push WP administrator to roles array, since it is default
120
  array_push( $roles_topbar, 'administrator' );
121
 
 
122
  $current_user = wp_get_current_user();
123
 
124
- // if current user cannot access topbar, return
125
- foreach ( $current_user->roles as $role ) {
126
- if ( in_array( $role, $roles_topbar ) ) {
127
- wp_register_style( 'cmp_admin_style', plugins_url('/css/cmp-admin-head.css', __FILE__), '', $this->version);
128
- wp_enqueue_style( 'cmp_admin_style' );
129
- wp_register_script( 'cmp_admin_script', plugins_url('/js/cmp-admin-head.js', __FILE__), array('jquery'), $this->version);
130
- wp_enqueue_script( 'cmp_admin_script' );
131
- break;
132
- }
133
- };
 
 
 
 
 
 
 
 
 
 
134
 
135
  }
136
 
@@ -586,13 +597,23 @@ class niteo_cmp {
586
  public function cmp_premium_themes() {
587
 
588
  $premium_themes = array();
 
 
589
  array_push( $premium_themes, array('name' => 'stylo', 'url' => 'https://niteothemes.com/?filter=cmp-plugin-themes&utm_source=cmp&utm_medium=referral&utm_campaign=stylo', 'price' => '10') );
 
590
  array_push( $premium_themes, array('name' => 'fifty', 'url' => 'https://niteothemes.com/?filter=cmp-plugin-themes&utm_source=cmp&utm_medium=referral&utm_campaign=fifty', 'price' => '10') );
591
- array_push( $premium_themes, array('name' => 'hardwork_premium', 'url' => 'https://niteothemes.com/?filter=cmp-plugin-themes&utm_source=cmp&utm_medium=referral&utm_campaign=hardwork_premium', 'price' => '5') );
592
- array_push( $premium_themes, array('name' => 'postery', 'url' => 'https://niteothemes.com/?filter=cmp-plugin-themes&utm_source=cmp&utm_medium=referral&utm_campaign=postery', 'price' => '5') );
593
- array_push( $premium_themes, array('name' => 'frame', 'url' => 'https://niteothemes.com/?filter=cmp-plugin-themes&utm_source=cmp&utm_medium=referral&utm_campaign=frame', 'price' => '5') );
 
 
 
 
594
  array_push( $premium_themes, array('name' => 'eclipse', 'url' => 'https://niteothemes.com/?filter=cmp-plugin-themes&utm_source=cmp&utm_medium=referral&utm_campaign=eclipse', 'price' =>'0') );
 
595
  array_push( $premium_themes, array('name' => 'orbit', 'url' => 'https://niteothemes.com/?filter=cmp-plugin-themes&utm_source=cmp&utm_medium=referral&utm_campaign=orbit', 'price' => '0') );
 
 
596
 
597
  return $premium_themes;
598
  }
@@ -1062,7 +1083,7 @@ class niteo_cmp {
1062
  $new_email = array( 'id' => '0', 'timestamp' => $timestamp, 'email' => $email, 'ip_address' => $ip_address, 'firstname' => $firstname, 'lastname' => $lastname );
1063
  array_push( $new_list, $new_email );
1064
  update_option( 'niteoCS_subscribers_list', $new_list );
1065
- $response = $response_ok;
1066
 
1067
  } else {
1068
  // check if email don`t already exists
@@ -1071,11 +1092,11 @@ class niteo_cmp {
1071
  $new_email = array( 'id' => $count, 'timestamp' => $timestamp, 'email' => $email, 'ip_address' => $ip_address, 'firstname' => $firstname, 'lastname' => $lastname );
1072
  array_push( $subscribe_list, $new_email );
1073
  update_option('niteoCS_subscribers_list', $subscribe_list);
1074
- $response = $response_ok;
1075
 
1076
  // if email exists return duplicate response
1077
  } else {
1078
- $response = $response_duplicate;
1079
  }
1080
  }
1081
  break;
@@ -1093,7 +1114,7 @@ class niteo_cmp {
1093
  'Authorization' => 'Basic ' . base64_encode( 'user:'. $api_key )
1094
  ),
1095
  'body' => json_encode(array(
1096
- 'email_address' => $email,
1097
  'status' => $status
1098
  ))
1099
  );
@@ -1105,14 +1126,15 @@ class niteo_cmp {
1105
  $body = json_decode( $mailchimp['body'] );
1106
 
1107
  if ( $mailchimp['response']['code'] == 200 && $body->status == $status ) {
1108
- $response = $response_ok;
1109
 
1110
  } else {
1111
- $response = 'Error ' . $mailchimp['response']['code'] . ' ' . $body->title . ': ' . $body->detail;
1112
  }
1113
 
1114
  } else {
1115
- $response = $mailchimp->get_error_message();
 
1116
  }
1117
 
1118
  break;
@@ -1123,18 +1145,18 @@ class niteo_cmp {
1123
 
1124
  // if not email, set response invalid
1125
  } else {
1126
- $response = $response_invalid;
1127
  }
1128
  }
1129
 
1130
  endif; // $check !== true
1131
 
1132
  if ( $ajax === true ) {
1133
- echo $response;
1134
  wp_die();
1135
 
1136
  } else {
1137
- return $response;
1138
  }
1139
 
1140
  }
@@ -1295,8 +1317,13 @@ class niteo_cmp {
1295
 
1296
  // sanitize function
1297
  public function niteo_sanitize_html( $html ) {
1298
- global $allowedposttags;
1299
- return wp_kses( $html, $allowedposttags );
 
 
 
 
 
1300
  }
1301
 
1302
  // public function to sort social icons
@@ -1547,21 +1574,6 @@ class niteo_cmp {
1547
  }// endforeach;
1548
  unset($key, $plugin, $this_plugin);
1549
  if (isset($this_plugin_updated) && $this_plugin_updated === true) {
1550
- // migrate postery to cmp-premium-themes if was set as active theme prior the update
1551
- if ( get_option('niteoCS_theme') == 'postery' && !in_array('postery', $this->premium_installed) ) {
1552
-
1553
- WP_Filesystem();
1554
-
1555
- $source_path = plugin_dir_path( __FILE__ ) . 'themes/postery.zip';
1556
- $destination_path = $this->plugins_dir_path . 'cmp-premium-themes/';
1557
-
1558
- // create new theme DIR
1559
- if ( wp_mkdir_p( $destination_path ) ) {
1560
- // Unzip FILE into that DIR
1561
- $unzipfile = unzip_file( $source_path, $destination_path);
1562
- }
1563
-
1564
- }
1565
 
1566
  // migrate google analytics options
1567
  if ( get_option('niteoCS_analytics') && get_option('niteoCS_analytics') != '' ) {
@@ -1609,6 +1621,19 @@ class niteo_cmp {
1609
  $update = true;
1610
  }
1611
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1612
  if ( $update == true ) {
1613
  update_option('niteoCS_socialmedia', json_encode( $socialmedia) );
1614
  }
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: 2.7
7
  Author: NiteoThemes
8
  Author URI: https://www.niteothemes.com
9
  Text Domain: cmp-coming-soon-maintenance
18
  public function __construct() {
19
  $this->author = 'NiteoThemes';
20
  $this->author_homepage = 'https://niteothemes.com';
21
+ $this->version = '2.7';
22
  $this->dev = false;
23
  $this->plugins_dir_path = plugin_dir_path( __DIR__ );
24
  if ( $this->plugins_dir_path == './') {
26
  }
27
  $this->premium_installed = array();
28
  // set array of themes with countdown
29
+ $this->countdown_themes = array('frame', 'countdown', 'postery', 'countdown2', 'stylo', 'element');
30
 
31
  // get all installed themes [folder names under /themes] and put them to array
32
  $this->themes_standard = array_map('basename', glob( plugin_dir_path( __FILE__ ) . 'themes/*', GLOB_ONLYDIR));
119
  // push WP administrator to roles array, since it is default
120
  array_push( $roles_topbar, 'administrator' );
121
 
122
+ // get current user
123
  $current_user = wp_get_current_user();
124
 
125
+ // check for roles array length
126
+ if ( count( $current_user->roles ) > 0 ) {
127
+ // enqueue topbar script and style only, if current user is allowed to display topbar, or is admin
128
+ foreach ( $current_user->roles as $role ) {
129
+ if ( in_array( $role, $roles_topbar ) ) {
130
+ wp_register_style( 'cmp_admin_style', plugins_url('/css/cmp-admin-head.css', __FILE__), '', $this->version);
131
+ wp_enqueue_style( 'cmp_admin_style' );
132
+ wp_register_script( 'cmp_admin_script', plugins_url('/js/cmp-admin-head.js', __FILE__), array('jquery'), $this->version);
133
+ wp_enqueue_script( 'cmp_admin_script' );
134
+ break;
135
+ }
136
+ };
137
+
138
+ // this one is for broken wp admin, where current user does not have any roles
139
+ } else {
140
+ wp_register_style( 'cmp_admin_style', plugins_url('/css/cmp-admin-head.css', __FILE__), '', $this->version);
141
+ wp_enqueue_style( 'cmp_admin_style' );
142
+ wp_register_script( 'cmp_admin_script', plugins_url('/js/cmp-admin-head.js', __FILE__), array('jquery'), $this->version);
143
+ wp_enqueue_script( 'cmp_admin_script' );
144
+ }
145
 
146
  }
147
 
597
  public function cmp_premium_themes() {
598
 
599
  $premium_themes = array();
600
+ array_push( $premium_themes, array('name' => 'element', 'url' => 'https://niteothemes.com/?filter=cmp-plugin-themes&utm_source=cmp&utm_medium=referral&utm_campaign=element', 'price' => '10') );
601
+
602
  array_push( $premium_themes, array('name' => 'stylo', 'url' => 'https://niteothemes.com/?filter=cmp-plugin-themes&utm_source=cmp&utm_medium=referral&utm_campaign=stylo', 'price' => '10') );
603
+
604
  array_push( $premium_themes, array('name' => 'fifty', 'url' => 'https://niteothemes.com/?filter=cmp-plugin-themes&utm_source=cmp&utm_medium=referral&utm_campaign=fifty', 'price' => '10') );
605
+
606
+ array_push( $premium_themes, array('name' => 'hardwork_premium', 'url' => 'https://niteothemes.com/?filter=cmp-plugin-themes&utm_source=cmp&utm_medium=referral&utm_campaign=hardwork_premium', 'price' => '10') );
607
+
608
+ array_push( $premium_themes, array('name' => 'postery', 'url' => 'https://niteothemes.com/?filter=cmp-plugin-themes&utm_source=cmp&utm_medium=referral&utm_campaign=postery', 'price' => '10') );
609
+
610
+ array_push( $premium_themes, array('name' => 'frame', 'url' => 'https://niteothemes.com/?filter=cmp-plugin-themes&utm_source=cmp&utm_medium=referral&utm_campaign=frame', 'price' => '10') );
611
+
612
  array_push( $premium_themes, array('name' => 'eclipse', 'url' => 'https://niteothemes.com/?filter=cmp-plugin-themes&utm_source=cmp&utm_medium=referral&utm_campaign=eclipse', 'price' =>'0') );
613
+
614
  array_push( $premium_themes, array('name' => 'orbit', 'url' => 'https://niteothemes.com/?filter=cmp-plugin-themes&utm_source=cmp&utm_medium=referral&utm_campaign=orbit', 'price' => '0') );
615
+
616
+ // array_push( $premium_themes, array('name' => 'coder', 'url' => 'https://niteothemes.com/?filter=cmp-plugin-themes&utm_source=cmp&utm_medium=referral&utm_campaign=coder', 'price' => '0') );
617
 
618
  return $premium_themes;
619
  }
1083
  $new_email = array( 'id' => '0', 'timestamp' => $timestamp, 'email' => $email, 'ip_address' => $ip_address, 'firstname' => $firstname, 'lastname' => $lastname );
1084
  array_push( $new_list, $new_email );
1085
  update_option( 'niteoCS_subscribers_list', $new_list );
1086
+ $response = array( 'status' => '1', 'message' => $response_ok);
1087
 
1088
  } else {
1089
  // check if email don`t already exists
1092
  $new_email = array( 'id' => $count, 'timestamp' => $timestamp, 'email' => $email, 'ip_address' => $ip_address, 'firstname' => $firstname, 'lastname' => $lastname );
1093
  array_push( $subscribe_list, $new_email );
1094
  update_option('niteoCS_subscribers_list', $subscribe_list);
1095
+ $response = array( 'status' => '1', 'message' => $response_ok);
1096
 
1097
  // if email exists return duplicate response
1098
  } else {
1099
+ $response = array( 'status' => '0', 'message' => $response_duplicate);
1100
  }
1101
  }
1102
  break;
1114
  'Authorization' => 'Basic ' . base64_encode( 'user:'. $api_key )
1115
  ),
1116
  'body' => json_encode(array(
1117
+ 'email_address' => $email,
1118
  'status' => $status
1119
  ))
1120
  );
1126
  $body = json_decode( $mailchimp['body'] );
1127
 
1128
  if ( $mailchimp['response']['code'] == 200 && $body->status == $status ) {
1129
+ $response = array( 'status' => '1', 'message' => $response_ok);
1130
 
1131
  } else {
1132
+ $response = array( 'status' => '0', 'message' => 'Error ' . $mailchimp['response']['code'] . ' ' . $body->title . ': ' . $body->detail);
1133
  }
1134
 
1135
  } else {
1136
+ $error = $mailchimp->get_error_message();
1137
+ $response = array( 'status' => '0', 'message' => $error);
1138
  }
1139
 
1140
  break;
1145
 
1146
  // if not email, set response invalid
1147
  } else {
1148
+ $response = array( 'status' => '0', 'message' => $response_invalid);
1149
  }
1150
  }
1151
 
1152
  endif; // $check !== true
1153
 
1154
  if ( $ajax === true ) {
1155
+ echo json_encode( $response );
1156
  wp_die();
1157
 
1158
  } else {
1159
+ return ( $response == '' ) ? $response : json_encode( $response );
1160
  }
1161
 
1162
  }
1317
 
1318
  // sanitize function
1319
  public function niteo_sanitize_html( $html ) {
1320
+
1321
+ if ( !current_user_can( 'unfiltered_html' ) ) {
1322
+ $allowed = wp_kses_allowed_html( 'post' );
1323
+ $html = wp_kses( $html, $allowed );
1324
+ }
1325
+
1326
+ return $html;
1327
  }
1328
 
1329
  // public function to sort social icons
1574
  }// endforeach;
1575
  unset($key, $plugin, $this_plugin);
1576
  if (isset($this_plugin_updated) && $this_plugin_updated === true) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1577
 
1578
  // migrate google analytics options
1579
  if ( get_option('niteoCS_analytics') && get_option('niteoCS_analytics') != '' ) {
1621
  $update = true;
1622
  }
1623
 
1624
+ // add telegram social media in 2.6.6 update
1625
+ if ( !$this->niteo_in_array_r( 'telegram', $socialmedia, true ) ) {
1626
+ $telegram = array(
1627
+ 'name' => 'telegram',
1628
+ 'url' => '',
1629
+ 'active' => '1',
1630
+ 'hidden' => '1',
1631
+ 'order' => '20',
1632
+ );
1633
+ array_push( $socialmedia, $telegram );
1634
+ $update = true;
1635
+ }
1636
+
1637
  if ( $update == true ) {
1638
  update_option('niteoCS_socialmedia', json_encode( $socialmedia) );
1639
  }
readme.txt CHANGED
@@ -1,19 +1,19 @@
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, customizable, offline, offline page, unavailable, free, unsplash, subscribe form
5
  Requires at least: 3.0
6
  Tested up to: 4.9
7
- Stable tag: 2.6.5
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
10
 
11
- The only complete coming soon plugin with premium features for free. No PRO versions. Select design from predefined themes, set custom graphics including YouTube videos or Unsplash Images, insert and customize any custom content (including logo, social icons, subscribe forms, fonts, and many more).
12
 
13
 
14
  == Description ==
15
 
16
- CMP plugin offers premium features for free, no PRO versions! With blazing speed and super user friendly settings, you can activate your Maintenance or Coming soon landing page with a single click. Customizable in many ways - predefined themes, custom logo, background graphics (including YouTube videos or Unsplash images), custom content, subscribe forms, popular social networks icons, setup typography, colors, SEO, and many more.
17
 
18
  <h3>Live Preview</h3>
19
  <a href="http://cmp.niteothemes.com/?cmp_preview=true&selector=true&utm_source=wordpress.org&utm_medium=referral" target="_blank">Click for CMP preview>></a>
@@ -112,6 +112,21 @@ CMP plugin offers premium features for free, no PRO versions! With blazing speed
112
  <p>Everyone loves supports and great feedback! If you find our plugin helpful, you can go to wordpress.org and rate it! alternatively you can click on Donate button :)</p>
113
 
114
  == Changelog ==
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
115
  <h4>CMP 2.6.5 - maintenance update</h4>
116
  <ul>
117
  <li>Updated CMP admin style to resolve issue on with admin bar on small screens. - requested by @hubmacfan and @trifo13</li>
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: coming soon, landing page, launch page, maintenance mode, under construction
5
  Requires at least: 3.0
6
  Tested up to: 4.9
7
+ Stable tag: 2.7
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
10
 
11
+ Custom Coming soon, Maintenance or Landing page with premium features for free.
12
 
13
 
14
  == Description ==
15
 
16
+ CMP – Coming Soon & Maintenance plugin has all premium features you ever wished for, and it is free! It is also super fast and user friendly. You can activate your Maintenance, Coming soon or Landing page with a single click. But it is also customizable in many ways - you can select a layout from predefined Themes, set custom logo, background graphics (including YouTube videos or Unsplash images), custom content, subscribe forms, popular social networks icons, typography, colors, SEO, and many more.
17
 
18
  <h3>Live Preview</h3>
19
  <a href="http://cmp.niteothemes.com/?cmp_preview=true&selector=true&utm_source=wordpress.org&utm_medium=referral" target="_blank">Click for CMP preview>></a>
112
  <p>Everyone loves supports and great feedback! If you find our plugin helpful, you can go to wordpress.org and rate it! alternatively you can click on Donate button :)</p>
113
 
114
  == Changelog ==
115
+ <h4>CMP 2.7 update</h4>
116
+ <ul>
117
+ <li>New Premium CMP Theme: Element. We hope you enjoy it guys!</li>
118
+ <li>New Special effect for your backgrounds: Constellation. This one is for premium themes only.</li>
119
+ <li>Resolved issue with added slashes in custom analytics scripts - reported by @christophklin</li>
120
+ <li>Resolved issue with Content editor trimmmig custom HTML tags - reported by @damen02</li>
121
+ <li>Resolved issue with (not)saving settings in Microsoft IE and Edge</li>
122
+ </ul>
123
+
124
+ <h4>CMP 2.6.6 update</h4>
125
+ <ul>
126
+ <li>Added Telegram to Social icons - requested by @nicollem</li>
127
+ <li>Resolved issue when the "Leave a review" window kept appearing even after dismissal immediately after plugin installation - thanks @hubmacfan</li>
128
+ </ul>
129
+
130
  <h4>CMP 2.6.5 - maintenance update</h4>
131
  <ul>
132
  <li>Updated CMP admin style to resolve issue on with admin bar on small screens. - requested by @hubmacfan and @trifo13</li>
themes/construct.txt CHANGED
@@ -1,4 +1,4 @@
1
  /*
2
  Theme Name: Construct
3
- Description: <p>Construct is clean and modern designed theme for CMP plugin. Construct features big paralax banner which can be set to any custom graphic, pattern or Unsplash library media. Add subscribe form, your customized social media icons and it can be used both Coming soon or Under Construction landing page.</p><h4>Main Features</h4><ul><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Graphic Parallax Effect</li><li class="not-supported"><i class="fa fa-times" aria-hidden="true"></i> Fade in/out Text Effects</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Logo</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Content</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Graphic Background including videos</li><li class="not-supported"><i class="fa fa-times" aria-hidden="true"></i> Graphic Image Slider Background</li><li class="not-supported"><i class="fa fa-times" aria-hidden="true"></i> Countdown Timer</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Subscribe Form</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Social Media</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Colors</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Fonts</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Footer Content</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Responsive Design</li></ul>
4
 
1
  /*
2
  Theme Name: Construct
3
+ Description: <p>Construct is clean and modern designed theme for CMP plugin. Construct features big paralax banner which can be set to any custom graphic, pattern or Unsplash library media. Add subscribe form, your customized social media icons and it can be used both Coming soon or Under Construction landing page.</p><h4>Main Features</h4><ul><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Graphic Parallax Effect</li><li class="not-supported"><i class="fa fa-times" aria-hidden="true"></i> Fade in/out Text Effects</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Logo</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Content</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Graphic Background including videos</li><li class="not-supported"><i class="fa fa-times" aria-hidden="true"></i> Graphic Image Slider Background</li><li class="not-supported"><i class="fa fa-times" aria-hidden="true"></i> Countdown Timer</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Subscribe Form</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Social Media</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Colors</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Fonts</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Footer Content</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Background Blur Effect</li><li class="not-supported"><i class="fa fa-times" aria-hidden="true"></i> Background Special Effects</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Responsive Design</li></ul>
4
 
themes/construct/construct-defaults.php CHANGED
@@ -2,12 +2,13 @@
2
  defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
3
 
4
  $theme_supports = array(
5
- 'logo' => true,
6
- 'slider' => false,
7
- 'counter' => false,
8
- 'subscribe' => true,
9
- 'social' => true,
10
- 'footer' => true,
 
11
  );
12
 
13
  if ( isset($_POST['niteoCS_active_color_'.$themeslug]) ) {
2
  defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
3
 
4
  $theme_supports = array(
5
+ 'logo' => true,
6
+ 'slider' => false,
7
+ 'counter' => false,
8
+ 'subscribe' => true,
9
+ 'social' => true,
10
+ 'footer' => true,
11
+ 'special_effects' => false,
12
  );
13
 
14
  if ( isset($_POST['niteoCS_active_color_'.$themeslug]) ) {
themes/construct/construct-theme.php CHANGED
@@ -67,7 +67,7 @@
67
 
68
  </head>
69
 
70
- <body>
71
  <section class="section section-logo">
72
  <?php
73
  // display logo
67
 
68
  </head>
69
 
70
+ <body id="body">
71
  <section class="section section-logo">
72
  <?php
73
  // display logo
themes/construct/style.css CHANGED
@@ -1,6 +1,6 @@
1
  /*
2
  Theme Name: Construct
3
- Theme URI: http://cmp.niteothemes.com/?cmp_preview=true&theme=construct
4
  Author: NiteoThemes
5
  Author URI: https://niteothemes.com
6
 
1
  /*
2
  Theme Name: Construct
3
+ Theme URI: http://cmp.niteothemes.com/?cmp_preview=true&selector=true&theme=construct
4
  Author: NiteoThemes
5
  Author URI: https://niteothemes.com
6
 
themes/countdown.txt CHANGED
@@ -1,3 +1,3 @@
1
  /*
2
  Theme Name: Countdown
3
- Description: <p>Countdown theme attracts attention with big counting clocks, which you can set to any expiration date. When timer hits zero you can set following actions: do-nothing, redirect to set URL or disable CMP plugin and display your normal page to visitors.</p><p>Social icons can be set to a footer with transparent icons or inside Countdown body with big beautiful eye attacting icons.</p><h4>Main Features</h4><ul><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Logo</li><li class="not-supported"><i class="fa fa-times" aria-hidden="true"></i> Fade in/out Text Effects</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Content</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Graphic Background including videos</li><li class="not-supported"><i class="fa fa-times" aria-hidden="true"></i> Graphic Image Slider Background</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Countdown Timer</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Subscribe Form</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Social Media</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Colors</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Fonts</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Footer Content</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Responsive Design</li></ul>
1
  /*
2
  Theme Name: Countdown
3
+ Description: <p>Countdown theme attracts attention with big counting clocks, which you can set to any expiration date. When timer hits zero you can set following actions: do-nothing, redirect to set URL or disable CMP plugin and display your normal page to visitors.</p><p>Social icons can be set to a footer with transparent icons or inside Countdown body with big beautiful eye attacting icons.</p><h4>Main Features</h4><ul><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Logo</li><li class="not-supported"><i class="fa fa-times" aria-hidden="true"></i> Fade in/out Text Effects</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Content</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Graphic Background including videos</li><li class="not-supported"><i class="fa fa-times" aria-hidden="true"></i> Graphic Image Slider Background</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Countdown Timer</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Subscribe Form</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Social Media</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Colors</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Fonts</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Footer Content</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Background Blur Effect</li><li class="not-supported"><i class="fa fa-times" aria-hidden="true"></i> Background Special Effects</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Responsive Design</li></ul>
themes/countdown/countdown-defaults.php CHANGED
@@ -2,12 +2,13 @@
2
  defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
3
 
4
  $theme_supports = array(
5
- 'logo' => true,
6
- 'slider' => false,
7
- 'counter' => true,
8
- 'subscribe' => true,
9
- 'social' => true,
10
- 'footer' => true,
 
11
  );
12
 
13
 
2
  defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
3
 
4
  $theme_supports = array(
5
+ 'logo' => true,
6
+ 'slider' => false,
7
+ 'counter' => true,
8
+ 'subscribe' => true,
9
+ 'social' => true,
10
+ 'footer' => true,
11
+ 'special_effects' => false,
12
  );
13
 
14
 
themes/countdown/style.css CHANGED
@@ -1,6 +1,6 @@
1
  /*
2
  Theme Name: Countdown
3
- Theme URI: http://cmp.niteothemes.com/?cmp_preview=true&theme=countdown
4
  Author: NiteoThemes
5
  Author URI: https//niteothemes.com
6
 
@@ -321,6 +321,10 @@ h1,h2,h3,h4,h5,h6 {
321
  }
322
 
323
 
 
 
 
 
324
 
325
  #background-image.pattern {
326
  background-repeat: repeat;
1
  /*
2
  Theme Name: Countdown
3
+ Theme URI: http://cmp.niteothemes.com/?cmp_preview=true&selector=true&theme=countdown
4
  Author: NiteoThemes
5
  Author URI: https//niteothemes.com
6
 
321
  }
322
 
323
 
324
+ .background-overlay {
325
+ z-index: 10;
326
+ }
327
+
328
 
329
  #background-image.pattern {
330
  background-repeat: repeat;
themes/eclipse.txt CHANGED
@@ -1,3 +1,3 @@
1
  /*
2
  Theme Name: Countdown
3
- Description: <p>Countdown theme attracts attention with big counting clocks, which you can set to any expiration date. When timer hits zero you can set following actions: do-nothing, redirect to set URL or disable CMP plugin and display your normal page to visitors.</p><p>Social icons can be set to a footer with transparent icons or inside Countdown body with big beautiful eye attacting icons.</p><h4>Main Features</h4><ul><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Logo</li><li class="not-supported"><i class="fa fa-times" aria-hidden="true"></i> Fade in/out Text Effects</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Content</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Graphic Background including videos</li><li class="not-supported"><i class="fa fa-times" aria-hidden="true"></i> Graphic Image Slider Background</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Countdown Timer</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Subscribe Form</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Social Media</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Colors</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Fonts</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Footer Content</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Responsive Design</li></ul>
1
  /*
2
  Theme Name: Countdown
3
+ Description: <p>Countdown theme attracts attention with big counting clocks, which you can set to any expiration date. When timer hits zero you can set following actions: do-nothing, redirect to set URL or disable CMP plugin and display your normal page to visitors.</p><p>Social icons can be set to a footer with transparent icons or inside Countdown body with big beautiful eye attacting icons.</p><h4>Main Features</h4><ul><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Logo</li><li class="not-supported"><i class="fa fa-times" aria-hidden="true"></i> Fade in/out Text Effects</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Content</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Graphic Background including videos</li><li class="not-supported"><i class="fa fa-times" aria-hidden="true"></i> Graphic Image Slider Background</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Countdown Timer</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Subscribe Form</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Social Media</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Colors</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Fonts</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Footer Content</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Background Blur Effect</li><li class="not-supported"><i class="fa fa-times" aria-hidden="true"></i> Background Special Effects</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Responsive Design</li></ul>
themes/element.txt ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ /*
2
+ Theme Name: Element
3
+ Description: <p>Element is elegant Theme for your Coming soon, quick maintenance or simple landing page. It features Two columns for content and subscribe form. Together with beautiful image or image slider on Top of your page it makes perfect landing page for your upcoming website.</p><h4>Main Features</h4><ul><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Logo</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Content</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Graphic Background including videos</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Graphic Image Slider Background</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Countdown Timer</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Subscribe Form</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Social Media</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Colors</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Fonts</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Footer Content</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Responsive Design</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Background Blur Effect</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Background Special Effects</li><li class="not-supported"><i class="fa fa-times" aria-hidden="true"></i> Fade in/out Text Effects</li></ul>
themes/fifty.txt CHANGED
@@ -1,4 +1,4 @@
1
  /*
2
  Theme Name: Fifty
3
- Description: <p>Fifty is Premium theme for CMP Plugin. As name suggests it divides page into two equal halfs. On the left half you can set custom logo, any text content, subscribe form and Social icons with two predefined desings: bigger colorful icons in body or smaller icons in Fifty`s footer.</p><p>Second half is predefined for your media. It can be a single image, random images per each website load or image slider.</p><h4>Main Features</h4><ul><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Logo</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Fade in/out Text Effects</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Content</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Graphic Background including videos</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Graphic Image Slider Background</li><li class="not-supported"><i class="fa fa-times" aria-hidden="true"></i> Countdown Timer</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Subscribe Form</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Social Media</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Colors</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Fonts</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Footer Content</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Responsive Design</li></ul>
4
 
1
  /*
2
  Theme Name: Fifty
3
+ Description: <p>Fifty is Premium theme for CMP Plugin. As name suggests it divides page into two equal halfs. On the left half you can set custom logo, any text content, subscribe form and Social icons with two predefined desings: bigger colorful icons in body or smaller icons in Fifty`s footer.</p><p>Second half is predefined for your media. It can be a single image, random images per each website load or image slider.</p><h4>Main Features</h4><ul><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Logo</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Fade in/out Text Effects</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Content</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Graphic Background including videos</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Graphic Image Slider Background</li><li class="not-supported"><i class="fa fa-times" aria-hidden="true"></i> Countdown Timer</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Subscribe Form</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Social Media</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Colors</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Fonts</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Footer Content</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Background Blur Effect</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Background Special Effects</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Responsive Design</li></ul>
4
 
themes/frame.txt CHANGED
@@ -1,3 +1,3 @@
1
  /*
2
  Theme Name: Frame
3
- Description: <p>Frame is Premium theme for CMP plugin. Frame can be configured with outside and inside frame on your landing page where you can set beautiful digital counter with three predefined actions when timer hits zero: do-nothing, redirect to custom URL or disable CMP plugin and display your normal page to visitors.</p><p>Frame is usually used as Coming soon page but can serve as Maintenance landing page too. You can set custom image background, use any from predefined patterns or just plain color to keep things simple.</p><h4>Main Features</h4><ul><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Logo</li><li class="not-supported"><i class="fa fa-times" aria-hidden="true"></i> Fade in/out Text Effects</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Content</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Graphic Background including videos</li><li class="not-supported"><i class="fa fa-times" aria-hidden="true"></i> Graphic Image Slider Background</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Countdown Timer</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Subscribe Form</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Social Media</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Colors</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Fonts</li><li class="not-supported"><i class="fa fa-times" aria-hidden="true"></i> Footer Content</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Responsive Design</li></ul>
1
  /*
2
  Theme Name: Frame
3
+ Description: <p>Frame is Premium theme for CMP plugin. Frame can be configured with outside and inside frame on your landing page where you can set beautiful digital counter with three predefined actions when timer hits zero: do-nothing, redirect to custom URL or disable CMP plugin and display your normal page to visitors.</p><p>Frame is usually used as Coming soon page but can serve as Maintenance landing page too. You can set custom image background, use any from predefined patterns or just plain color to keep things simple.</p><h4>Main Features</h4><ul><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Logo</li><li class="not-supported"><i class="fa fa-times" aria-hidden="true"></i> Fade in/out Text Effects</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Content</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Graphic Background including videos</li><li class="not-supported"><i class="fa fa-times" aria-hidden="true"></i> Graphic Image Slider Background</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Countdown Timer</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Subscribe Form</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Social Media</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Colors</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Fonts</li><li class="not-supported"><i class="fa fa-times" aria-hidden="true"></i> Footer Content</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Background Blur Effect</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Background Special Effects</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Responsive Design</li></ul>
themes/hardwork.txt CHANGED
@@ -1,6 +1,6 @@
1
  /*
2
  Theme Name: Hardwork
3
- Description: <p>Hardwork is our default theme for CMP plugin. By default it is set to modern white screen with only one heading to display clear message: "This website is under construction, please come back later".</p><p>Set a fullscreen custom image or use any from thousands Unsplash Library media, set social icons, add custom texts with overlay color and you have beautiful colorful landing page both for Under construction or Coming soon page.</p><h4>Supported Features</h4><ul><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Logo</li><li class="not-supported"><i class="fa fa-times" aria-hidden="true"></i> Fade in/out Text Effects</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Content</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Graphic Background including videos</li><li class="not-supported"><i class="fa fa-times" aria-hidden="true"></i> Graphic Image Slider Background</li><li class="not-supported"><i class="fa fa-times" aria-hidden="true"></i> Countdown Timer</li><li class="not-supported"><i class="fa fa-times" aria-hidden="true"></i> Subscribe Form</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Social Media</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Colors</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Fonts</li><li class="not-supported"><i class="fa fa-times" aria-hidden="true"></i> Footer Content</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Responsive Design</li></ul>
4
 
5
 
6
 
1
  /*
2
  Theme Name: Hardwork
3
+ Description: <p>Hardwork is our default theme for CMP plugin. By default it is set to modern white screen with only one heading to display clear message: "This website is under construction, please come back later".</p><p>Set a fullscreen custom image or use any from thousands Unsplash Library media, set social icons, add custom texts with overlay color and you have beautiful colorful landing page both for Under construction or Coming soon page.</p><h4>Supported Features</h4><ul><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Logo</li><li class="not-supported"><i class="fa fa-times" aria-hidden="true"></i> Fade in/out Text Effects</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Content</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Graphic Background including videos</li><li class="not-supported"><i class="fa fa-times" aria-hidden="true"></i> Graphic Image Slider Background</li><li class="not-supported"><i class="fa fa-times" aria-hidden="true"></i> Countdown Timer</li><li class="not-supported"><i class="fa fa-times" aria-hidden="true"></i> Subscribe Form</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Social Media</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Colors</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Fonts</li><li class="not-supported"><i class="fa fa-times" aria-hidden="true"></i> Footer Content</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Background Blur Effect</li><li class="not-supported"><i class="fa fa-times" aria-hidden="true"></i> Background Special Effects</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Responsive Design</li></ul>
4
 
5
 
6
 
themes/hardwork/hardwork-defaults.php CHANGED
@@ -16,13 +16,14 @@ if (isset($_POST['niteoCS_overlay_opacity_'.$themeslug])) {
16
 
17
 
18
 
19
- $theme_supports = array(
20
- 'logo' => true,
21
- 'slider' => false,
22
- 'counter' => false,
23
- 'subscribe' => false,
24
- 'social' => true,
25
- 'footer' => false,
 
26
  );
27
 
28
  $banner_type = get_option('niteoCS_banner['.$themeslug.']', '4');
16
 
17
 
18
 
19
+ $theme_supports = array(
20
+ 'logo' => true,
21
+ 'slider' => false,
22
+ 'counter' => false,
23
+ 'subscribe' => false,
24
+ 'social' => true,
25
+ 'footer' => false,
26
+ 'special_effects' => false,
27
  );
28
 
29
  $banner_type = get_option('niteoCS_banner['.$themeslug.']', '4');
themes/hardwork/hardwork-theme.php CHANGED
@@ -22,7 +22,7 @@
22
  if ( method_exists ( $html, 'cmp_get_fonts' ) ) {
23
  echo $html->cmp_get_fonts( $heading_font, $content_font );
24
  }
25
-
26
  ?>
27
 
28
 
22
  if ( method_exists ( $html, 'cmp_get_fonts' ) ) {
23
  echo $html->cmp_get_fonts( $heading_font, $content_font );
24
  }
25
+
26
  ?>
27
 
28
 
themes/hardwork/style.css CHANGED
@@ -1,6 +1,6 @@
1
  /*
2
  Theme Name: Hardwork
3
- Theme URI: http://cmp.niteothemes.com/?cmp_preview=true&theme=hardwork
4
  Author: NiteoThemes
5
  Author URI: https://niteothemes.com
6
 
@@ -39,7 +39,7 @@ img {
39
  -webkit-box-flex: 1;
40
  -ms-flex-positive: 1;
41
  flex-grow: 1;
42
- padding: 0 2em;
43
  text-align: center;
44
  position: relative;
45
  }
@@ -61,7 +61,6 @@ img {
61
  width: 70%;
62
  max-width: 1170px;
63
  margin: 0 auto;
64
- min-height: calc(100vh - 3em);
65
  }
66
 
67
 
@@ -204,7 +203,7 @@ img {
204
 
205
  @media only screen and (max-width : 560px) {
206
  .section {padding: 4em 1em;}
207
- .section-body {width: auto;min-height: calc(100vh - 11em);}
208
  .graphic-logo {max-height: 200px;padding-bottom: 0;max-width: 100%;}
209
  .section-body,
210
  .social-list {font-size: 14px!important;}
1
  /*
2
  Theme Name: Hardwork
3
+ Theme URI: http://cmp.niteothemes.com/?cmp_preview=true&selector=true&theme=hardwork
4
  Author: NiteoThemes
5
  Author URI: https://niteothemes.com
6
 
39
  -webkit-box-flex: 1;
40
  -ms-flex-positive: 1;
41
  flex-grow: 1;
42
+ padding: 2em;
43
  text-align: center;
44
  position: relative;
45
  }
61
  width: 70%;
62
  max-width: 1170px;
63
  margin: 0 auto;
 
64
  }
65
 
66
 
203
 
204
  @media only screen and (max-width : 560px) {
205
  .section {padding: 4em 1em;}
206
+ .section-body {width: auto;}
207
  .graphic-logo {max-height: 200px;padding-bottom: 0;max-width: 100%;}
208
  .section-body,
209
  .social-list {font-size: 14px!important;}
themes/hardwork_premium.txt CHANGED
@@ -1,3 +1,3 @@
1
  /*
2
  Theme Name: Hardwork Premium
3
- Description: <p>Hardwork Premium is our first Premium theme for CMP Plugin. Premium version extends free Hardwork theme with fullscreen image Slider. It is a best choice for Photographers who want to display teaser photos while their website is cooking up or is under maintenance.</p><h4>Main Features</h4><ul><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Logo</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Content</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Fade in/out Text Effects</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Graphic Background including videos</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Graphic Image Slider Background</li><li class="not-supported"><i class="fa fa-times" aria-hidden="true"></i> Countdown Timer</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Subscribe Form</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Social Media</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Colors</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Fonts</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Footer Content</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Responsive Design</li></ul>
1
  /*
2
  Theme Name: Hardwork Premium
3
+ Description: <p>Hardwork Premium is our first Premium theme for CMP Plugin. Premium version extends free Hardwork theme with fullscreen image Slider. It is a best choice for Photographers who want to display teaser photos while their website is cooking up or is under maintenance.</p><h4>Main Features</h4><ul><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Logo</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Content</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Fade in/out Text Effects</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Graphic Background including videos</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Graphic Image Slider Background</li><li class="not-supported"><i class="fa fa-times" aria-hidden="true"></i> Countdown Timer</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Subscribe Form</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Social Media</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Colors</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Fonts</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Footer Content</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Background Blur Effect</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Background Special Effects</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Responsive Design</li></ul>
themes/orbit.txt CHANGED
@@ -1,4 +1,4 @@
1
  /*
2
  Theme Name: Orbit
3
- Description: <p>Orbit is a modern and fun theme for your short maintenance mode. You can set custom background, social icons, footer message and of course the main content. We recommend to keep it simple by setting up only a gradient background.</p><h4>Main Features</h4><ul><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Fade in/out Text Effects</li><li class="not-supported"><i class="fa fa-times" aria-hidden="true"></i> Custom Logo</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Content</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Graphic Background including videos</li><li class="not-supported"><i class="fa fa-times" aria-hidden="true"></i> Graphic Image Slider Background</li><li class="not-supported"><i class="fa fa-times" aria-hidden="true"></i> Countdown Timer</li><li class="not-supported"><i class="fa fa-times" aria-hidden="true"></i> Subscribe Form</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Social Media</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Colors</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Fonts</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Footer Content</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Responsive Design</li></ul>
4
 
1
  /*
2
  Theme Name: Orbit
3
+ Description: <p>Orbit is a modern and fun theme for your short maintenance mode. You can set custom background, social icons, footer message and of course the main content. We recommend to keep it simple by setting up only a gradient background.</p><h4>Main Features</h4><ul><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Fade in/out Text Effects</li><li class="not-supported"><i class="fa fa-times" aria-hidden="true"></i> Custom Logo</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Content</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Graphic Background including videos</li><li class="not-supported"><i class="fa fa-times" aria-hidden="true"></i> Graphic Image Slider Background</li><li class="not-supported"><i class="fa fa-times" aria-hidden="true"></i> Countdown Timer</li><li class="not-supported"><i class="fa fa-times" aria-hidden="true"></i> Subscribe Form</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Social Media</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Colors</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Fonts</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Footer Content</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Background Blur Effect</li><li class="not-supported"><i class="fa fa-times" aria-hidden="true"></i> Background Special Effects</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Responsive Design</li></ul>
4
 
themes/postery.txt CHANGED
@@ -1,3 +1,3 @@
1
  /*
2
  Theme Name: Postery
3
- Description: <p>Postery is modern theme with trendy 3D animation and "poster-like" typography. You can set countdown timer, subscriber form, custom social icons or just insert custom text to keep things simple.</p><h4>Main Features</h4><ul><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Logo</li><li class="not-supported"><i class="fa fa-times" aria-hidden="true"></i> Fade in/out Text Effects</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Content</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Graphic Background including videos</li><li class="not-supported"><i class="fa fa-times" aria-hidden="true"></i> Graphic Image Slider Background</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Countdown Timer</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Subscribe Form</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Social Media</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Colors</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Fonts</li><li class="not-supported"><i class="fa fa-times" aria-hidden="true"></i> Footer Content</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Responsive Design</li></ul>
1
  /*
2
  Theme Name: Postery
3
+ Description: <p>Postery is modern theme with trendy 3D animation and "poster-like" typography. You can set countdown timer, subscriber form, custom social icons or just insert custom text to keep things simple.</p><h4>Main Features</h4><ul><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Logo</li><li class="not-supported"><i class="fa fa-times" aria-hidden="true"></i> Fade in/out Text Effects</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Content</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Graphic Background including videos</li><li class="not-supported"><i class="fa fa-times" aria-hidden="true"></i> Graphic Image Slider Background</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Countdown Timer</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Subscribe Form</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Social Media</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Colors</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Fonts</li><li class="not-supported"><i class="fa fa-times" aria-hidden="true"></i> Footer Content</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Background Blur Effect</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Background Special Effects</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Responsive Design</li></ul>
themes/postery.zip DELETED
Binary file
themes/stylo.txt CHANGED
@@ -1,3 +1,3 @@
1
  /*
2
  Theme Name: Stylo
3
- Description: <p>You can use Stylo as a landing page, maintenance or coming soon page. It supports both subscriber and contact form, all background options and big beautiful counter.</p><h4>Main Features</h4><ul><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Countdown Timer</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Logo</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Content</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Fade in/out Text Effects</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Graphic Background including videos</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Graphic Image Slider Background</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Subscribe Form</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Contact Form</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Social Media</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Colors</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Fonts</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Footer Content</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Responsive Design</li></ul>
1
  /*
2
  Theme Name: Stylo
3
+ Description: <p>You can use Stylo as a landing page, maintenance or coming soon page. It supports both subscriber and contact form, all background options and big beautiful counter.</p><h4>Main Features</h4><ul><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Countdown Timer</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Logo</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Content</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Fade in/out Text Effects</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Graphic Background including videos</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Graphic Image Slider Background</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Subscribe Form</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Contact Form</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Social Media</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Colors</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Fonts</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Footer Content</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Background Blur Effect</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Background Special Effects</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Responsive Design</li></ul>