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

Version Description

Download this release

Release Info

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

Code changes from version 1.9.0 to 1.10.0

cmp-settings.php CHANGED
@@ -204,8 +204,6 @@ if (isset($_POST['niteoCS_URL_redirect'])) {
204
  }
205
 
206
 
207
-
208
-
209
  $ajax_nonce = wp_create_nonce( 'cmp-coming-soon-ajax-secret' );
210
 
211
  // get Settings TAB
@@ -260,6 +258,8 @@ if (file_exists($this->cmp_themePath().$this->cmp_selectedTheme().'/'.$this->cmp
260
  }
261
 
262
 
 
 
263
  // load old settings for a case when theme is not upgraded yet
264
  if (!isset($niteoCS_banner)) $niteoCS_banner = get_option('niteoCS_banner['.$themeslug.']');
265
  if (!isset($niteoCS_font_headings)) $niteoCS_font_headings = get_option('niteoCS_font_headings['.$themeslug.']');
@@ -562,8 +562,8 @@ add_thickbox();
562
  $thumbnail = plugins_url().'/cmp-premium-themes/'. $theme_slug . '/img/'. $theme_slug . '_thumbnail.jpg';
563
  $version = '';
564
  // get theme version
565
- if (file_exists(plugin_dir_path( __DIR__ ) . 'cmp-premium-themes/'.$theme_slug.'/style.css')) {
566
- $version = get_file_data( plugin_dir_path( __DIR__ ) . 'cmp-premium-themes/'.$theme_slug.'/style.css', $headers, '');
567
  if (isset($version[0])) {$version = $version[0];}
568
  }
569
  }
@@ -645,6 +645,7 @@ add_thickbox();
645
  <?php wp_editor( stripslashes( $this->niteo_sanitize_html( $niteoCS_body ) ), 'niteoCS_body', $settings = array('textarea_name'=>'niteoCS_body', 'editor_height'=>'300') ); ?>
646
  </td>
647
  </tr>
 
648
  <tr><th>
649
  <p class="cmp-submit">
650
  <?php wp_nonce_field('save_options','save_options_field'); ?>
@@ -657,95 +658,33 @@ add_thickbox();
657
  </div>
658
 
659
  <?php
660
- // get countdown settings if in countdown array themes
661
- if ( in_array($this->cmp_selectedTheme(), $this->countdown_themes) ){
662
  if ( file_exists(dirname(__FILE__) . '/inc/settings-counter.php') ) {
663
  require (dirname(__FILE__) . '/inc/settings-counter.php');
664
  }
665
- }
666
- ?>
667
-
668
- <div class="table-wrapper content" id="subscribe-section">
669
- <h3><?php _e('Subscribe Form', 'cmp-coming-soon-maintenance');?></h3>
670
- <table class="content">
671
- <tbody>
672
- <tr>
673
- <th>
674
- <fieldset>
675
- <legend class="screen-reader-text">
676
- <span><?php _e('Subscribe Form Options', 'cmp-coming-soon-maintenance');?></span>
677
- </legend>
678
-
679
- <p>
680
- <label title="Disabled">
681
- <input type="radio" name="niteoCS_subscribe_type" value="0"<?php if ( $niteoCS_subscribe_type == 0) { echo ' checked="checked"'; } ?>>&nbsp;<?php _e('Disabled', 'cmp-coming-soon-maintenance');?>
682
- </label>
683
- </p>
684
-
685
- <p>
686
- <label title="3rd Party Plugin">
687
- <input type="radio" name="niteoCS_subscribe_type" value="1"<?php if ( $niteoCS_subscribe_type == 1) { echo ' checked="checked"'; } ?>>&nbsp;<?php _e('3rd Party Plugin', 'cmp-coming-soon-maintenance');?>
688
- </label>
689
- </p>
690
-
691
- <p>
692
- <label title="Niteo Subscribe">
693
- <input type="radio" name="niteoCS_subscribe_type" value="2"<?php if ( $niteoCS_subscribe_type == 2) { echo ' checked="checked"'; } ?>>&nbsp;<?php _e('Niteo Subscribe', 'cmp-coming-soon-maintenance');?>
694
- </label>
695
- </p>
696
 
697
- </fieldset>
698
- </th>
699
-
700
- <td id="subscribe-disabled">
701
- <p><?php _e('Subscribe Form is disabled.', 'cmp-coming-soon-maintenance');?></p>
702
- </td>
703
 
704
- <td id="subscribe-3rdparty">
705
- <fieldset>
706
- <label class="subscribe" for="niteoCS_subscribe_code">3rd Party Plugin Shortcode
707
- <input type="text" name="niteoCS_subscribe_code" id="niteoCS_subscribe_code" value="<?php echo stripslashes( esc_attr($niteoCS_subscribe_code ));?>" class="regular-text code">
708
- </label>
709
-
710
- <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>
711
-
712
- <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>
713
- <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>
714
- <code>
715
- &lt;p&gt
716
- &lt;input type="email" name="EMAIL" placeholder="Your email address" required />
717
- &lt;input type="submit" value="Sign up" />
718
- &lt;/p&gt
719
- </code>
720
- </fieldset>
721
- </td>
722
 
723
- <td id="subscribe-niteo">
724
- <fieldset>
725
- <p><?php _e('Default subscribe form will be displayed to visitors. Only export of email addresses to .csv file is supported. Mailing List will be deleted after deletion of CMP plugin.', 'cmp-coming-soon-maintenance');?></p>
726
-
727
- <label class="subscribe" for="niteoCS_subscribe_label">Subscribe form Label
728
- <input type="text" name="niteoCS_subscribe_label" id="niteoCS_subscribe_label" value="<?php echo esc_attr($niteoCS_subscribe_label );?>" class="regular-text code">
729
- </label>
730
 
731
- <p><?php _e('Total Subscribers: ', 'cmp-coming-soon-maintenance'); echo $niteoCS_subscribers_list ? count( $niteoCS_subscribers_list ) : '0';?></p>
732
- <p><?php _e('Since last export: ', 'cmp-coming-soon-maintenance'); echo $new_subs;?></p>
733
- <p><?php _e('Last Export Date: ', 'cmp-coming-soon-maintenance'); echo $niteoCS_csv_export_time ? date('Y-m-d\ H:i:s\ ', $niteoCS_csv_export_time) : __('Never exported', 'cmp-coming-soon-maintenance');?></p>
734
- <a href="#generate-mailinglist" id="csv-generate" class="button"><?php _e('Generate CSV', 'cmp-coming-soon-maintenance');?></a>
735
 
736
- </fieldset>
737
- </td>
738
 
739
- </tr>
740
- <tr><th>
741
- <p class="cmp-submit">
742
- <?php wp_nonce_field('save_options','save_options_field'); ?>
743
- <input type="submit" name="Submit" class="button cmp-button submit" value="<?php _e('Save All Changes', 'cmp-coming-soon-maintenance'); ?>" id="submitChanges" />
744
- </p>
745
- </th></tr>
746
- </tbody>
747
- </table>
748
- </div>
749
 
750
  <div class="table-wrapper content" id="social-section">
751
  <h3><?php _e('Social Media', 'cmp-coming-soon-maintenance');?></h3>
@@ -839,310 +778,72 @@ add_thickbox();
839
  </tbody>
840
  </table>
841
  </div>
 
842
 
843
- <div class="table-wrapper content" id="copyright-section">
844
- <h3><?php _e('Footer Content', 'cmp-coming-soon-maintenance');?></h3>
845
- <table class="content">
846
- <tbody>
847
- <tr>
848
- <th><h4><?php _e('Copyright', 'cmp-coming-soon-maintenance');?></h4></th>
849
- <td>
850
- <fieldset>
851
- <input type="text" name="niteoCS_copyright" id="niteoCS_copyright" value="<?php echo esc_attr( $this->niteo_sanitize_html($niteoCS_copyright)); ?>" class="regular-text code">
852
- </fieldset>
853
- </td>
854
- </tr>
855
- <tr><th>
856
- <p class="cmp-submit">
857
- <?php wp_nonce_field('save_options','save_options_field'); ?>
858
- <input type="submit" name="Submit" class="button cmp-button submit" value="<?php _e('Save All Changes', 'cmp-coming-soon-maintenance'); ?>" id="submitChanges" />
859
- </p>
860
- </th></tr>
861
- </tbody>
862
- </table>
863
- </div>
864
-
865
- <div class="table-wrapper theme-setup">
866
- <h3><?php _e('Logo Setup', 'cmp-coming-soon-maintenance');?></h3>
867
- <table class="theme-setup">
868
  <tbody>
869
- <tr>
870
- <th>
871
- <fieldset>
872
- <legend class="screen-reader-text">
873
- <span><?php _e('Logo setup', 'cmp-coming-soon-maintenance');?></span>
874
- </legend>
875
-
876
- <p>
877
- <label title="<?php _e('Text Logo', 'cmp-coming-soon-maintenance');?>">
878
- <input type="radio" class="niteoCS-logo-type" name="niteoCS_logo_type_<?php echo esc_attr($themeslug);?>" value="text"<?php if ( $niteoCS_logo_type == 'text') { echo ' checked="checked"'; } ?>>&nbsp;<?php _e('Text Logo', 'cmp-coming-soon-maintenance');?>
879
- </label>
880
- </p>
881
-
882
- <p>
883
- <label title="<?php _e('Graphic Logo', 'cmp-coming-soon-maintenance');?>">
884
- <input type="radio" class="niteoCS-logo-type" name="niteoCS_logo_type_<?php echo esc_attr($themeslug);?>" value="graphic"<?php if ( $niteoCS_logo_type == 'graphic') { echo ' checked="checked"'; } ?>>&nbsp;<?php _e('Graphic Logo', 'cmp-coming-soon-maintenance');?>
885
- </label>
886
- </p>
887
-
888
- <p>
889
- <label title="<?php _e('Disabled', 'cmp-coming-soon-maintenance');?>">
890
- <input type="radio" class="niteoCS-logo-type" name="niteoCS_logo_type_<?php echo esc_attr($themeslug);?>" value="disabled"<?php if ( $niteoCS_logo_type == 'disabled') { echo ' checked="checked"'; } ?>>&nbsp;<?php _e('Disabled', 'cmp-coming-soon-maintenance');?>
891
- </label>
892
- </p>
893
-
894
- </fieldset>
895
- </th>
896
-
897
- <td>
898
- <fieldset class="text-logo" <?php echo ( $niteoCS_logo_type != 'text') ? 'style="display:none"' : '';?>>
899
-
900
- <p>
901
- <input type="text" class="widefat" id="niteoCS-text-logo" name="niteoCS_text_logo_<?php echo esc_attr($themeslug);?>" type="text" value="<?php echo esc_attr($niteoCS_text_logo); ?>" />
902
- </p>
903
- </fieldset>
904
-
905
- <fieldset class="graphic-logo" <?php echo ( $niteoCS_logo_type != 'graphic') ? 'style="display:none"' : '';?>>
906
-
907
- <input type="hidden" class="widefat" id="niteoCS-logo-id" name="niteoCS_logo_id_<?php echo esc_attr($themeslug);?>" type="text" value="<?php echo esc_attr( $niteoCS_logo_id ); ?>" />
908
- <input id="add-logo" type="button" class="button" value="Select Logo" />
909
-
910
- <div class="logo-wrapper">
911
- <?php
912
- if ( isset($logo_url) && $logo_url !== '' ) {
913
- echo '<img src="'.esc_url($logo_url).'" alt="">';
914
- } ?>
915
- </div>
916
- <input id="delete-logo" type="button" class="button" value="Remove Logo" />
917
-
918
- </fieldset>
919
-
920
- <p class="disabled-logo" <?php echo ( $niteoCS_logo_type != 'disabled') ? 'style="display:none"' : '';?>><?php _e('Logo is disabled', 'cmp-coming-soon-maintenance');?></p>
921
- </td>
922
- </tr>
923
- <tr><th>
924
- <p class="cmp-submit">
925
- <?php wp_nonce_field('save_options','save_options_field'); ?>
926
- <input type="submit" name="Submit" class="button cmp-button submit" value="<?php _e('Save All Changes', 'cmp-coming-soon-maintenance'); ?>" id="submitChanges" />
927
- </p>
928
- </th></tr>
929
  </tbody>
930
- </table>
931
- </div>
932
-
933
- <div class="table-wrapper theme-setup">
934
- <h3><?php _e('Graphic Background', 'cmp-coming-soon-maintenance');?></h3>
935
- <table class="theme-setup">
936
- <tbody>
937
- <tr>
938
- <th>
939
- <fieldset>
940
- <legend class="screen-reader-text">
941
- <span><?php _e('Banner Settings', 'cmp-coming-soon-maintenance');?></span>
942
- </legend>
943
-
944
- <p>
945
- <label title="Custom banner">
946
- <input type="radio" class="niteoCS_banner" name="niteoCS_banner_<?php echo esc_attr($themeslug);?>" value="0"<?php if ( $niteoCS_banner == 0) { echo ' checked="checked"'; } ?>>&nbsp;<?php _e('Custom Images', 'cmp-coming-soon-maintenance');?>
947
- </label>
948
- </p>
949
-
950
- <p>
951
- <label title="Unsplash banner">
952
- <input type="radio" class="niteoCS_banner" name="niteoCS_banner_<?php echo esc_attr($themeslug);?>" value="1"<?php if ( $niteoCS_banner == 1) { echo ' checked="checked"'; } ?>>&nbsp;<?php _e('Unsplash library', 'cmp-coming-soon-maintenance');?>
953
- </label>
954
- </p>
955
- <p>
956
- <label title="Video Banner">
957
- <input type="radio" class="niteoCS_banner" name="niteoCS_banner_<?php echo esc_attr($themeslug);?>" value="5"<?php if ( $niteoCS_banner == 5) { echo ' checked="checked"'; } ?>>&nbsp;<?php _e('Youtube video', 'cmp-coming-soon-maintenance');?>
958
- </label>
959
- </p>
960
- <p>
961
- <label title="Default Banner">
962
- <input type="radio" class="niteoCS_banner" name="niteoCS_banner_<?php echo esc_attr($themeslug);?>" value="2"<?php if ( $niteoCS_banner == 2) { echo ' checked="checked"'; } ?>>&nbsp;<?php _e('Default Media', 'cmp-coming-soon-maintenance');?>
963
- </label>
964
- </p>
965
- <p>
966
- <label title="Pattern Banner">
967
- <input type="radio" class="niteoCS_banner" name="niteoCS_banner_<?php echo esc_attr($themeslug);?>" value="3"<?php if ( $niteoCS_banner == 3) { echo ' checked="checked"'; } ?>>&nbsp;<?php _e('Graphic Pattern', 'cmp-coming-soon-maintenance');?>
968
- </label>
969
- </p>
970
- <p>
971
- <label title="Solid Color Banner">
972
- <input type="radio" class="niteoCS_banner" name="niteoCS_banner_<?php echo esc_attr($themeslug);?>" value="4"<?php if ( $niteoCS_banner == 4) { echo ' checked="checked"'; } ?>>&nbsp;<?php _e('Solid Color', 'cmp-coming-soon-maintenance');?>
973
- </label>
974
- </p>
975
-
976
- </fieldset>
977
- </th>
978
-
979
- <td class="theme_background">
980
-
981
- <fieldset id="custom_banner">
982
- <input type="hidden" class="widefat" id="niteoCS-banner-id" name="niteoCS_banner_id_<?php echo esc_attr($themeslug);?>" type="text" value="<?php echo esc_attr( $niteoCS_banner_custom_id ); ?>" />
983
- <input id="add-banner" type="button" class="button" value="Media Library" />
984
- <p class="info"><?php _e('Pro Tip! You can select multiple Media from your library by holding CTRL+click (Command+click if you sit on MacOS) while selecting photos.','cmp-coming-soon-maintenance')?></p>
985
- <div class="banner-wrapper">
986
- <?php
987
- if ( isset( $niteoCS_banner_custom_id ) && $niteoCS_banner_custom_id != '' ) {
988
- $ids = explode( ',', $niteoCS_banner_custom_id );
989
- foreach ( $ids as $id ) {
990
- $img = wp_get_attachment_image_src($id, 'large');
991
- if (isset($img[0])) {
992
- echo '<img src="'.$img[0].'" alt="">';
993
- }
994
- }
995
- }
996
- ?>
997
- </div>
998
- <input id="delete-banner" type="button" class="button" value="Remove Media" />
999
- </fieldset>
1000
-
1001
- <fieldset id="unsplash_banner">
1002
- <p class="unplash-description"><a href="http://unsplash.com" target="_blank">Unsplash</a> <?php _e('is a world leading source for free to use high quality stock images. All of the images that are submitted and published on Unsplash fall under under the Creative Commons Zero (CC0) license, which means you can use the image for any personal or commercial use.', 'cmp-coming-soon-maintenance');?></p>
1003
- <label for="unsplash_feed_<?php echo esc_attr($themeslug);?>"><?php _e('Choose Unsplash Feed', 'cmp-coming-soon-maintenance');?></label></br>
1004
- <select name="unsplash_feed_<?php echo esc_attr($themeslug);?>">
1005
- <option value="0" <?php if ( $niteoCS_unsplash_feed == '0' ) { echo ' selected="selected"'; } ?>><?php _e('Specific Photo', 'cmp-coming-soon-maintenance');?></option>
1006
- <option value="1" <?php if ( $niteoCS_unsplash_feed == '1' ) { echo ' selected="selected"'; } ?>><?php _e('Random from Category', 'cmp-coming-soon-maintenance');?></option>
1007
- <option value="2" <?php if ( $niteoCS_unsplash_feed == '2' ) { echo ' selected="selected"'; } ?>><?php _e('Random from Collection', 'cmp-coming-soon-maintenance');?></option>
1008
- <option value="3" <?php if ( $niteoCS_unsplash_feed == '3' ) { echo ' selected="selected"'; } ?>><?php _e('Random Photo', 'cmp-coming-soon-maintenance');?></option>
1009
- </select>
1010
-
1011
- <p class="unsplash-feed" id="unsplash-feed-0">
1012
- <label for="niteoCS_unsplash_0_<?php echo esc_attr($themeslug);?>"><?php _e('Enter Unsplash Photo URL or Photo ID', 'cmp-coming-soon-maintenance');?></label>
1013
- <input type="text" class="widefat" id="niteoCS-unsplash-0" name="niteoCS_unsplash_0_<?php echo esc_attr($themeslug);?>" type="text" value="<?php echo esc_attr($niteoCS_unsplash_0); ?>" />
1014
- </p>
1015
-
1016
- <p class="unsplash-feed" id="unsplash-feed-1">
1017
- <label for="unsplash_category_<?php echo esc_attr($themeslug);?>"><?php _e('Select Category', 'cmp-coming-soon-maintenance');?></label></br>
1018
- <select name="unsplash_category_<?php echo esc_attr($themeslug);?>">
1019
- <option value="buildings" <?php if ( $niteoCS_unsplash_category == 'buildings') { echo ' selected="selected"'; } ?>><?php _e('Buildings', 'cmp-coming-soon-maintenance');?></option>
1020
- <option value="food" <?php if ( $niteoCS_unsplash_category == 'food') { echo ' selected="selected"'; } ?>><?php _e('Food', 'cmp-coming-soon-maintenance');?></option>
1021
- <option value="nature" <?php if ( $niteoCS_unsplash_category == 'nature') { echo ' selected="selected"'; } ?>><?php _e('Nature', 'cmp-coming-soon-maintenance');?></option>
1022
- <option value="people" <?php if ( $niteoCS_unsplash_category == 'people') { echo ' selected="selected"'; } ?>><?php _e('People', 'cmp-coming-soon-maintenance');?></option>
1023
- <option value="technology" <?php if ( $niteoCS_unsplash_category == 'technology') { echo ' selected="selected"'; } ?>><?php _e('Technology', 'cmp-coming-soon-maintenance');?></option>
1024
- <option value="objects" <?php if ( $niteoCS_unsplash_category == 'objects') { echo ' selected="selected"'; } ?>><?php _e('Objects', 'cmp-coming-soon-maintenance');?></option>
1025
- </select></br>
1026
-
1027
- <label for="niteoCS_cat_keyword"><?php _e('You can limit Category to Specific Keyword', 'cmp-coming-soon-maintenance');?></label>
1028
- <input type="text" class="widefat" id="niteoCS-category-keyword" name="niteoCS_cat_keyword_<?php echo esc_attr($themeslug);?>" type="text" value="<?php echo esc_attr($niteoCS_cat_keyword); ?>" />
1029
- </p>
1030
-
1031
- <p class="unsplash-feed" id="unsplash-feed-2">
1032
- <label for="niteoCS_unsplash_2_<?php echo esc_attr($themeslug);?>"><?php _e('Enter Unsplash Collection URL or Collection ID. Doesn`t work for Curated Collections.', 'cmp-coming-soon-maintenance');?></label>
1033
- <input type="text" class="widefat" id="niteoCS-unsplash-2" name="niteoCS_unsplash_2_<?php echo esc_attr($themeslug);?>" type="text" value="<?php echo esc_attr($niteoCS_unsplash_2); ?>" />
1034
- </p>
1035
-
1036
- <div class="unsplash-feed" id="unsplash-feed-3">
1037
- <label for="niteoCS_unsplash_3_<?php echo esc_attr($themeslug);?>"><?php _e('Specify search terms', 'cmp-coming-soon-maintenance');?></label>
1038
- <input type="text" class="widefat" id="niteoCS-unsplash-3" name="niteoCS_unsplash_3_<?php echo esc_attr($themeslug);?>" type="text" value="<?php echo esc_attr($niteoCS_unsplash_3); ?>" />
1039
-
1040
- <br><br>
1041
- <input type="checkbox" name="niteoCS_unsplash_feat_<?php echo esc_attr($themeslug);?>" id="niteoCS_unsplash_feat" value="1" <?php checked( '1', get_option( 'niteoCS_unsplash_feat', '0' ) ); ?> class="regular-text code"><label for="niteoCS_unsplash_feat"><?php _e('Limit search only to Featured/Curated Photos', 'cmp-coming-soon-maintenance');?></label>
1042
- </div><br>
1043
-
1044
- <button id="test-unsplash" class="button" data-security="<?php echo esc_attr($ajax_nonce);?>"><?php _e('Test Unsplash', 'cmp-coming-soon-maintenance');?></button>
1045
- <div id="unsplash-media"></div>
1046
- </fieldset>
1047
-
1048
- <fieldset id="default_banner">
1049
- <div class="banner-wrapper default">
1050
- <img src="<?php echo esc_url($this->cmp_themeDirPath().$this->cmp_selectedTheme().'/img/'.$this->cmp_selectedTheme().'_banner_large.jpg');?>" alt="Default Media">
1051
- </div>
1052
- </fieldset>
1053
-
1054
- <fieldset id="graphic_pattern">
1055
- <div class="banner-wrapper default">
1056
- <label for="niteoCS_banner_pattern_<?php echo esc_attr($themeslug);?>"><?php _e('Select Pattern', 'cmp-coming-soon-maintenance');?></label></br>
1057
- <select name="niteoCS_banner_pattern_<?php echo esc_attr($themeslug);?>" data-url="<?php echo esc_url(WP_PLUGIN_URL . '/cmp-coming-soon-maintenance/img/patterns/');?>">
1058
- <?php
1059
- foreach ($patterns as $pattern) { ?>
1060
- <option value="<?php echo esc_attr($pattern);?>" <?php if ( $niteoCS_banner_pattern == $pattern ) { echo ' selected="selected"'; } ?>><?php echo esc_html(ucfirst(str_replace('_', ' ', $pattern)));?></option>
1061
- <?php
1062
- } ?>
1063
- <option value="custom" <?php if ( $niteoCS_banner_pattern == 'custom' ) { echo ' selected="selected"'; } ?>><?php _e('Custom Pattern...', 'cmp-coming-soon-maintenance');?></option>
1064
- </select><br>
1065
-
1066
- <input type="hidden" class="widefat" id="niteoCS_banner_pattern_custom" name="niteoCS_banner_pattern_custom_<?php echo esc_attr($themeslug);?>" type="text" value="<?php echo esc_attr( $niteoCS_banner_pattern_custom ); ?>" />
1067
-
1068
- <input id="add-pattern" type="button" class="button" value="Media Library" style="display:<?php echo ($niteoCS_banner_pattern == 'custom') ? 'block' : 'none'?>;"/>
1069
-
1070
- <div class="pattern-preview" style="background-image: url('<?php echo esc_url($pattern_url);?>');"></div>
1071
- </div>
1072
- </fieldset>
1073
-
1074
- <fieldset id="solid_color">
1075
- <div class="banner-wrapper default">
1076
- <label for="niteoCS_banner_color_<?php echo esc_attr($themeslug);?>"><?php _e('Select Color', 'cmp-coming-soon-maintenance');?></label><br>
1077
- <input type="text" name="niteoCS_banner_color_<?php echo esc_attr($themeslug);?>" id="niteoCS_banner_color" value="<?php echo esc_attr( $niteoCS_banner_color); ?>" data-default-color="#bdc3c7" class="regular-text code"><br>
1078
- <div class="color-preview" style="background-color:<?php echo esc_attr( $niteoCS_banner_color); ?>"></div>
1079
- </div>
1080
- </fieldset>
1081
-
1082
- <fieldset id="video_banner">
1083
- <div class="banner-wrapper default">
1084
-
1085
- <label for="niteoCS_banner_video_<?php echo esc_attr($themeslug);?>"><?php _e('Select Video Source', 'cmp-coming-soon-maintenance');?></label></br>
1086
- <select name="niteoCS_banner_video_<?php echo esc_attr($themeslug);?>" class="banner-video-source">
1087
- <option value="youtube" <?php if ( $niteoCS_banner_video == 'youtube' ) { echo ' selected="selected"'; } ?>><?php _e('Youtube', 'cmp-coming-soon-maintenance');?></option>
1088
- <option disabled value="vimeo" <?php if ( $niteoCS_banner_video == 'vimeo' ) { echo ' selected="selected"'; } ?>><?php _e('Vimeo (coming soon...)', 'cmp-coming-soon-maintenance');?></option>
1089
- </select><br>
1090
-
1091
-
1092
- <p class="youtube-source-input">
1093
- <label for="niteoCS_youtube_url_<?php echo esc_attr($themeslug);?>"><?php _e('Enter Youtube URL', 'cmp-coming-soon-maintenance');?></label>
1094
- <input type="text" class="widefat" id="niteoCS-youtube-url" name="niteoCS_youtube_url_<?php echo esc_attr($themeslug);?>" type="text" value="<?php echo esc_attr($niteoCS_youtube_url); ?>" />
1095
-
1096
- </p>
1097
-
1098
- <p class="vimeo-source-input">
1099
- <label for="niteoCS_vimeo_url_<?php echo esc_attr($themeslug);?>"><?php _e('Enter Vimeo URL', 'cmp-coming-soon-maintenance');?></label>
1100
- <input type="text" class="widefat" id="niteoCS-vimeo-url" name="niteoCS_vimeo_url_<?php echo esc_attr($themeslug);?>" type="text" value="<?php echo esc_attr($niteoCS_vimeo_url); ?>" />
1101
- </p>
1102
-
1103
- <button id="test-video" class="button" data-security="<?php echo esc_attr($ajax_nonce);?>"><?php _e('Preview Video', 'cmp-coming-soon-maintenance');?></button>
1104
-
1105
- <div class="video-preview"></div>
1106
-
1107
- <p><?php _e('Video backgrounds doesn`t work on mobile devices therefore only thumbnail video image will be displayed on mobile devices. If you want to display custom image you can upload it by pressing button below. ', 'cmp-coming-soon-maintenance');?></p>
1108
- <input type="hidden" class="widefat" id="niteoCS-video-thumb" name="niteoCS_video_thumb_<?php echo esc_attr($themeslug);?>" type="text" value="<?php echo esc_attr( $niteoCS_video_thumb ); ?>" />
1109
- <input id="add-video-thumb" type="button" class="button" value="<?php _e('Use custom image from Media Library', 'cmp-coming-soon-maintenance');?>" /><br><br>
1110
-
1111
- <div class="video-thumb-wrapper">
1112
- <?php
1113
- if ( isset( $niteoCS_video_thumb ) && $niteoCS_video_thumb != '' ) {
1114
- $img = wp_get_attachment_image_src($id, 'large');
1115
- if (isset($img[0])) {
1116
- echo '<img src="'.$img[0].'" alt="">';
1117
- }
1118
 
1119
- }
1120
- ?>
1121
- </div>
 
1122
 
1123
- <input id="delete-video-thumb" type="button" class="button" value="Remove Thumbnail" />
1124
 
1125
- </div>
1126
- </fieldset>
1127
- </td>
1128
- </tr>
1129
- <tr><th>
1130
- <p class="cmp-submit">
1131
- <?php wp_nonce_field('save_options','save_options_field'); ?>
1132
- <input type="submit" name="Submit" class="button cmp-button submit" value="<?php _e('Save All Changes', 'cmp-coming-soon-maintenance'); ?>" id="submitChanges" />
1133
- </p>
1134
- </th></tr>
1135
- </tbody>
1136
- </table>
1137
 
1138
- </div>
1139
- <?php
1140
- // get countdown settings if in countdown array themes
1141
- if ( in_array($this->cmp_selectedTheme(), $this->slider_themes) ){
1142
  if ( file_exists(dirname(__FILE__) . '/inc/settings-slider.php') ) {
1143
  require (dirname(__FILE__) . '/inc/settings-slider.php');
1144
  }
1145
- }
 
 
 
 
 
 
1146
  ?>
1147
 
1148
  <?php
204
  }
205
 
206
 
 
 
207
  $ajax_nonce = wp_create_nonce( 'cmp-coming-soon-ajax-secret' );
208
 
209
  // get Settings TAB
258
  }
259
 
260
 
261
+
262
+
263
  // load old settings for a case when theme is not upgraded yet
264
  if (!isset($niteoCS_banner)) $niteoCS_banner = get_option('niteoCS_banner['.$themeslug.']');
265
  if (!isset($niteoCS_font_headings)) $niteoCS_font_headings = get_option('niteoCS_font_headings['.$themeslug.']');
562
  $thumbnail = plugins_url().'/cmp-premium-themes/'. $theme_slug . '/img/'. $theme_slug . '_thumbnail.jpg';
563
  $version = '';
564
  // get theme version
565
+ if (file_exists($this->plugins_dir_path . 'cmp-premium-themes/'.$theme_slug.'/style.css')) {
566
+ $version = get_file_data( $this->plugins_dir_path . 'cmp-premium-themes/'.$theme_slug.'/style.css', $headers, '');
567
  if (isset($version[0])) {$version = $version[0];}
568
  }
569
  }
645
  <?php wp_editor( stripslashes( $this->niteo_sanitize_html( $niteoCS_body ) ), 'niteoCS_body', $settings = array('textarea_name'=>'niteoCS_body', 'editor_height'=>'300') ); ?>
646
  </td>
647
  </tr>
648
+
649
  <tr><th>
650
  <p class="cmp-submit">
651
  <?php wp_nonce_field('save_options','save_options_field'); ?>
658
  </div>
659
 
660
  <?php
661
+ // get counter settings
662
+ if ( $theme_supports['counter'] ) {
663
  if ( file_exists(dirname(__FILE__) . '/inc/settings-counter.php') ) {
664
  require (dirname(__FILE__) . '/inc/settings-counter.php');
665
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
666
 
667
+ } else {
668
+ if ( file_exists(dirname(__FILE__) . '/inc/settings-counter_disabled.php') ) {
669
+ require (dirname(__FILE__) . '/inc/settings-counter_disabled.php');
670
+ }
 
 
671
 
672
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
673
 
674
+ // get subscribe settings
675
+ if ( $theme_supports['subscribe'] ) {
676
+ if ( file_exists(dirname(__FILE__) . '/inc/settings-subscribe.php') ) {
677
+ require (dirname(__FILE__) . '/inc/settings-subscribe.php');
678
+ }
 
 
679
 
680
+ } else {
681
+ if ( file_exists(dirname(__FILE__) . '/inc/settings-subscribe_disabled.php') ) {
682
+ require (dirname(__FILE__) . '/inc/settings-subscribe_disabled.php');
683
+ }
684
 
685
+ }
 
686
 
687
+ ?>
 
 
 
 
 
 
 
 
 
688
 
689
  <div class="table-wrapper content" id="social-section">
690
  <h3><?php _e('Social Media', 'cmp-coming-soon-maintenance');?></h3>
778
  </tbody>
779
  </table>
780
  </div>
781
+
782
 
783
+ <div class="table-wrapper content" id="copyright-section">
784
+ <h3><?php _e('Footer Content', 'cmp-coming-soon-maintenance');?></h3>
785
+ <table class="content">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
786
  <tbody>
787
+ <?php
788
+ if ( $theme_supports['footer'] ) { ?>
789
+ <tr>
790
+ <th><h4><?php _e('Copyright', 'cmp-coming-soon-maintenance');?></h4></th>
791
+ <td>
792
+ <fieldset>
793
+ <input type="text" name="niteoCS_copyright" id="niteoCS_copyright" value="<?php echo esc_attr( $this->niteo_sanitize_html($niteoCS_copyright)); ?>" class="regular-text code">
794
+ </fieldset>
795
+ </td>
796
+ </tr>
797
+ <tr><th>
798
+ <p class="cmp-submit">
799
+ <?php wp_nonce_field('save_options','save_options_field'); ?>
800
+ <input type="submit" name="Submit" class="button cmp-button submit" value="<?php _e('Save All Changes', 'cmp-coming-soon-maintenance'); ?>" id="submitChanges" />
801
+ </p>
802
+ </th></tr>
803
+ <?php
804
+ } else { ?>
805
+ <tr>
806
+ <th><h4><?php _e('Disabled', 'cmp-coming-soon-maintenance');?></h4></th>
807
+ <td>
808
+ <p class="no-margin"><?php _e('Footer is not supported by selected Theme.', 'cmp-coming-soon-maintenance');?></p>
809
+ </td>
810
+ </tr>
811
+ <?php
812
+ } ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
813
  </tbody>
814
+ </table>
815
+ </div>
816
+ <?php
817
+ // get logo settings
818
+ if ( $theme_supports['logo'] ) {
819
+ if ( file_exists(dirname(__FILE__) . '/inc/settings-logo.php') ) {
820
+ require (dirname(__FILE__) . '/inc/settings-logo.php');
821
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
822
 
823
+ } else {
824
+ if ( file_exists(dirname(__FILE__) . '/inc/settings-logo_disabled.php') ) {
825
+ require (dirname(__FILE__) . '/inc/settings-logo_disabled.php');
826
+ }
827
 
828
+ }
829
 
830
+ // get background settings
831
+ if ( file_exists(dirname(__FILE__) . '/inc/settings-background.php') ) {
832
+ require (dirname(__FILE__) . '/inc/settings-background.php');
833
+ }
 
 
 
 
 
 
 
 
834
 
835
+ // get slider settings
836
+ if ( $theme_supports['slider'] ) {
 
 
837
  if ( file_exists(dirname(__FILE__) . '/inc/settings-slider.php') ) {
838
  require (dirname(__FILE__) . '/inc/settings-slider.php');
839
  }
840
+
841
+ } else {
842
+ if ( file_exists(dirname(__FILE__) . '/inc/settings-slider_disabled.php') ) {
843
+ require (dirname(__FILE__) . '/inc/settings-slider_disabled.php');
844
+ }
845
+
846
+ }
847
  ?>
848
 
849
  <?php
cmp-sidebar.php CHANGED
@@ -14,7 +14,16 @@
14
  <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>
15
  </p>
16
 
17
- <p><?php echo sprintf(__('If you really love our CMP plugin or you just want to be very kind to us, you can also donate some %s by clicking button below', 'cmp-coming-soon-maintenance'), '<i class="fa fa-usd" aria-hidden="true"></i><i class="fa fa-usd" aria-hidden="true"></i><i class="fa fa-usd" aria-hidden="true"></i>');?> <i class="fa fa-smile-o" aria-hidden="true"></i></p>
 
 
 
 
 
 
 
 
 
18
 
19
  <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_blank">
20
  <input type="hidden" name="cmd" value="_s-xclick">
@@ -23,13 +32,6 @@
23
  <input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donate_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
24
  <img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
25
  </form>
26
-
27
- </div>
28
-
29
- <div class="request-feature widget">
30
- <h3 class="cmp-rate-us title"><?php _e('Request new features', 'cmp-coming-soon-maintenance');?></h3>
31
- <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>
32
-
33
  </div>
34
 
35
  </div>
14
  <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>
15
  </p>
16
 
17
+ </div>
18
+
19
+ <div class="request-feature widget">
20
+ <h3 class="cmp-rate-us title"><?php _e('Request new features', 'cmp-coming-soon-maintenance');?></h3>
21
+ <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>
22
+
23
+ </div>
24
+
25
+ <div class="donate widget">
26
+ <p><?php echo sprintf(__('If you really love our CMP plugin or you just want to be very kind to us, you can also donate any amount of %s by clicking button below', 'cmp-coming-soon-maintenance'), '<i class="fa fa-usd" aria-hidden="true"></i><i class="fa fa-usd" aria-hidden="true"></i><i class="fa fa-usd" aria-hidden="true"></i>');?> <i class="fa fa-smile-o" aria-hidden="true"></i></p>
27
 
28
  <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_blank">
29
  <input type="hidden" name="cmd" value="_s-xclick">
32
  <input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donate_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
33
  <img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
34
  </form>
 
 
 
 
 
 
 
35
  </div>
36
 
37
  </div>
css/cmp-settings-style.css CHANGED
@@ -2,6 +2,10 @@
2
  overflow-x: hidden;
3
  }
4
 
 
 
 
 
5
  .cmp-settings-wrapper {
6
  position: relative;
7
  margin-top: 1em;
@@ -193,7 +197,7 @@ th label {font-weight: 600;}
193
  .favicon-wrapper img {background-color: #efefef;padding:1em;}
194
  .favicon-wrapper img {max-width: 32px;}
195
  .logo-wrapper img, .banner-wrapper img{max-width: 100%;width:100%;}
196
- .logo-wrapper img {max-height: 150px;}
197
 
198
  #font-example-wrapper {padding:1em;border:1px solid #dedede;}
199
  #heading-example {padding-left: 0;border-bottom:none;}
@@ -453,30 +457,26 @@ p.cmp-submit {
453
  vertical-align: top;
454
  }
455
 
456
- .cmp-sidebar-wrapper .widget {
457
- padding: 2em;
458
- border: 1px solid #dedede;
459
- background: white;
460
- }
461
 
462
- .cmp-sidebar-wrapper h3 {
463
- text-align: center;
464
- }
 
465
 
466
- .cmp-rate-us a,
467
- .cmp-rate-us .button {display: block;
468
- text-align:center;
469
  }
470
 
471
- .cmp-rate-us a {
472
- padding: 1em 0;
473
- }
474
-
475
- .cmp-rate-us .button {
476
- max-width: 150px;
477
- margin: 0 auto;
478
- margin-bottom: 1em;
479
- }
480
 
481
  .cmp-rate-us form {
482
  text-align: center;
2
  overflow-x: hidden;
3
  }
4
 
5
+ .no-margin {
6
+ margin: 0;
7
+ }
8
+
9
  .cmp-settings-wrapper {
10
  position: relative;
11
  margin-top: 1em;
197
  .favicon-wrapper img {background-color: #efefef;padding:1em;}
198
  .favicon-wrapper img {max-width: 32px;}
199
  .logo-wrapper img, .banner-wrapper img{max-width: 100%;width:100%;}
200
+ .logo-wrapper img {max-height: 150px;width:auto;}
201
 
202
  #font-example-wrapper {padding:1em;border:1px solid #dedede;}
203
  #heading-example {padding-left: 0;border-bottom:none;}
457
  vertical-align: top;
458
  }
459
 
460
+ .cmp-sidebar-wrapper .widget {
461
+ padding: 2em;
462
+ border: 1px solid #dedede;
463
+ background: white;
464
+ }
465
 
466
+ .cmp-rate-us a,
467
+ .cmp-rate-us .button {display: block;
468
+ text-align:center;
469
+ }
470
 
471
+ .cmp-rate-us a {
472
+ padding: 1em 0;
 
473
  }
474
 
475
+ .cmp-rate-us .button {
476
+ max-width: 150px;
477
+ margin: 0 auto;
478
+ margin-bottom: 1em;
479
+ }
 
 
 
 
480
 
481
  .cmp-rate-us form {
482
  text-align: center;
inc/class-cmp-subscribers.php CHANGED
@@ -11,10 +11,10 @@ class cmp_subs_list_table extends WP_List_Table {
11
  function __construct(){
12
  $this->subscriber_list = get_option('niteoCS_subscribers_list');
13
  $this->dateformat = get_option('date_format');
14
- parent::__construct([
15
- 'singular' => __( 'subscriber', 'cmp' ), //singular name of the listed records
16
  'plural' => __( 'subscribers', 'cmp' ), //plural name of the listed records
17
- ]);
18
  }
19
  /**
20
  * Prepare the items for the table to process
11
  function __construct(){
12
  $this->subscriber_list = get_option('niteoCS_subscribers_list');
13
  $this->dateformat = get_option('date_format');
14
+ parent::__construct( array(
15
+ 'singular' => __( 'subscriber', 'cmp' ), //singular name of the listed records
16
  'plural' => __( 'subscribers', 'cmp' ), //plural name of the listed records
17
+ ));
18
  }
19
  /**
20
  * Prepare the items for the table to process
inc/settings-background.php ADDED
@@ -0,0 +1,209 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
3
+ ?>
4
+ <div class="table-wrapper theme-setup">
5
+ <h3><?php _e('Graphic Background', 'cmp-coming-soon-maintenance');?></h3>
6
+ <table class="theme-setup">
7
+ <tbody>
8
+ <tr>
9
+ <th>
10
+ <fieldset>
11
+ <legend class="screen-reader-text">
12
+ <span><?php _e('Banner Settings', 'cmp-coming-soon-maintenance');?></span>
13
+ </legend>
14
+
15
+ <p>
16
+ <label title="Custom banner">
17
+ <input type="radio" class="niteoCS_banner" name="niteoCS_banner_<?php echo esc_attr($themeslug);?>" value="0"<?php if ( $niteoCS_banner == 0) { echo ' checked="checked"'; } ?>>&nbsp;<?php _e('Custom Images', 'cmp-coming-soon-maintenance');?>
18
+ </label>
19
+ </p>
20
+
21
+ <p>
22
+ <label title="Unsplash banner">
23
+ <input type="radio" class="niteoCS_banner" name="niteoCS_banner_<?php echo esc_attr($themeslug);?>" value="1"<?php if ( $niteoCS_banner == 1) { echo ' checked="checked"'; } ?>>&nbsp;<?php _e('Unsplash library', 'cmp-coming-soon-maintenance');?>
24
+ </label>
25
+ </p>
26
+ <p>
27
+ <label title="Video Banner">
28
+ <input type="radio" class="niteoCS_banner" name="niteoCS_banner_<?php echo esc_attr($themeslug);?>" value="5"<?php if ( $niteoCS_banner == 5) { echo ' checked="checked"'; } ?>>&nbsp;<?php _e('Youtube video', 'cmp-coming-soon-maintenance');?>
29
+ </label>
30
+ </p>
31
+ <p>
32
+ <label title="Default Banner">
33
+ <input type="radio" class="niteoCS_banner" name="niteoCS_banner_<?php echo esc_attr($themeslug);?>" value="2"<?php if ( $niteoCS_banner == 2) { echo ' checked="checked"'; } ?>>&nbsp;<?php _e('Default Media', 'cmp-coming-soon-maintenance');?>
34
+ </label>
35
+ </p>
36
+ <p>
37
+ <label title="Pattern Banner">
38
+ <input type="radio" class="niteoCS_banner" name="niteoCS_banner_<?php echo esc_attr($themeslug);?>" value="3"<?php if ( $niteoCS_banner == 3) { echo ' checked="checked"'; } ?>>&nbsp;<?php _e('Graphic Pattern', 'cmp-coming-soon-maintenance');?>
39
+ </label>
40
+ </p>
41
+ <p>
42
+ <label title="Solid Color Banner">
43
+ <input type="radio" class="niteoCS_banner" name="niteoCS_banner_<?php echo esc_attr($themeslug);?>" value="4"<?php if ( $niteoCS_banner == 4) { echo ' checked="checked"'; } ?>>&nbsp;<?php _e('Solid Color', 'cmp-coming-soon-maintenance');?>
44
+ </label>
45
+ </p>
46
+
47
+ </fieldset>
48
+ </th>
49
+
50
+ <td class="theme_background">
51
+
52
+ <fieldset id="custom_banner">
53
+ <input type="hidden" class="widefat" id="niteoCS-banner-id" name="niteoCS_banner_id_<?php echo esc_attr($themeslug);?>" type="text" value="<?php echo esc_attr( $niteoCS_banner_custom_id ); ?>" />
54
+ <input id="add-banner" type="button" class="button" value="Media Library" />
55
+ <p class="info"><?php _e('Pro Tip! You can select multiple Media from your library by holding CTRL+click (Command+click if you sit on MacOS) while selecting photos.','cmp-coming-soon-maintenance')?></p>
56
+ <div class="banner-wrapper">
57
+ <?php
58
+ if ( isset( $niteoCS_banner_custom_id ) && $niteoCS_banner_custom_id != '' ) {
59
+ $ids = explode( ',', $niteoCS_banner_custom_id );
60
+ foreach ( $ids as $id ) {
61
+ $img = wp_get_attachment_image_src($id, 'large');
62
+ if (isset($img[0])) {
63
+ echo '<img src="'.$img[0].'" alt="">';
64
+ }
65
+ }
66
+ }
67
+ ?>
68
+ </div>
69
+ <input id="delete-banner" type="button" class="button" value="Remove Media" />
70
+ </fieldset>
71
+
72
+ <fieldset id="unsplash_banner">
73
+ <p class="unplash-description"><a href="http://unsplash.com" target="_blank">Unsplash</a> <?php _e('is a world leading source for free to use high quality stock images. All of the images that are submitted and published on Unsplash fall under under the Creative Commons Zero (CC0) license, which means you can use the image for any personal or commercial use.', 'cmp-coming-soon-maintenance');?></p>
74
+ <label for="unsplash_feed_<?php echo esc_attr($themeslug);?>"><?php _e('Choose Unsplash Feed', 'cmp-coming-soon-maintenance');?></label></br>
75
+ <select name="unsplash_feed_<?php echo esc_attr($themeslug);?>">
76
+ <option value="0" <?php if ( $niteoCS_unsplash_feed == '0' ) { echo ' selected="selected"'; } ?>><?php _e('Specific Photo', 'cmp-coming-soon-maintenance');?></option>
77
+ <option value="1" <?php if ( $niteoCS_unsplash_feed == '1' ) { echo ' selected="selected"'; } ?>><?php _e('Random from Category', 'cmp-coming-soon-maintenance');?></option>
78
+ <option value="2" <?php if ( $niteoCS_unsplash_feed == '2' ) { echo ' selected="selected"'; } ?>><?php _e('Random from Collection', 'cmp-coming-soon-maintenance');?></option>
79
+ <option value="3" <?php if ( $niteoCS_unsplash_feed == '3' ) { echo ' selected="selected"'; } ?>><?php _e('Random Photo', 'cmp-coming-soon-maintenance');?></option>
80
+ </select>
81
+
82
+ <p class="unsplash-feed" id="unsplash-feed-0">
83
+ <label for="niteoCS_unsplash_0_<?php echo esc_attr($themeslug);?>"><?php _e('Enter Unsplash Photo URL or Photo ID', 'cmp-coming-soon-maintenance');?></label>
84
+ <input type="text" class="widefat" id="niteoCS-unsplash-0" name="niteoCS_unsplash_0_<?php echo esc_attr($themeslug);?>" type="text" value="<?php echo esc_attr($niteoCS_unsplash_0); ?>" />
85
+ </p>
86
+
87
+ <p class="unsplash-feed" id="unsplash-feed-1">
88
+ <label for="unsplash_category_<?php echo esc_attr($themeslug);?>"><?php _e('Select Category', 'cmp-coming-soon-maintenance');?></label></br>
89
+ <select name="unsplash_category_<?php echo esc_attr($themeslug);?>">
90
+ <option value="buildings" <?php if ( $niteoCS_unsplash_category == 'buildings') { echo ' selected="selected"'; } ?>><?php _e('Buildings', 'cmp-coming-soon-maintenance');?></option>
91
+ <option value="food" <?php if ( $niteoCS_unsplash_category == 'food') { echo ' selected="selected"'; } ?>><?php _e('Food', 'cmp-coming-soon-maintenance');?></option>
92
+ <option value="nature" <?php if ( $niteoCS_unsplash_category == 'nature') { echo ' selected="selected"'; } ?>><?php _e('Nature', 'cmp-coming-soon-maintenance');?></option>
93
+ <option value="people" <?php if ( $niteoCS_unsplash_category == 'people') { echo ' selected="selected"'; } ?>><?php _e('People', 'cmp-coming-soon-maintenance');?></option>
94
+ <option value="technology" <?php if ( $niteoCS_unsplash_category == 'technology') { echo ' selected="selected"'; } ?>><?php _e('Technology', 'cmp-coming-soon-maintenance');?></option>
95
+ <option value="objects" <?php if ( $niteoCS_unsplash_category == 'objects') { echo ' selected="selected"'; } ?>><?php _e('Objects', 'cmp-coming-soon-maintenance');?></option>
96
+ </select></br>
97
+
98
+ <label for="niteoCS_cat_keyword"><?php _e('You can limit Category to Specific Keyword', 'cmp-coming-soon-maintenance');?></label>
99
+ <input type="text" class="widefat" id="niteoCS-category-keyword" name="niteoCS_cat_keyword_<?php echo esc_attr($themeslug);?>" type="text" value="<?php echo esc_attr($niteoCS_cat_keyword); ?>" />
100
+ </p>
101
+
102
+ <p class="unsplash-feed" id="unsplash-feed-2">
103
+ <label for="niteoCS_unsplash_2_<?php echo esc_attr($themeslug);?>"><?php _e('Enter Unsplash Collection URL or Collection ID. Doesn`t work for Curated Collections.', 'cmp-coming-soon-maintenance');?></label>
104
+ <input type="text" class="widefat" id="niteoCS-unsplash-2" name="niteoCS_unsplash_2_<?php echo esc_attr($themeslug);?>" type="text" value="<?php echo esc_attr($niteoCS_unsplash_2); ?>" />
105
+ </p>
106
+
107
+ <div class="unsplash-feed" id="unsplash-feed-3">
108
+ <label for="niteoCS_unsplash_3_<?php echo esc_attr($themeslug);?>"><?php _e('Specify search terms', 'cmp-coming-soon-maintenance');?></label>
109
+ <input type="text" class="widefat" id="niteoCS-unsplash-3" name="niteoCS_unsplash_3_<?php echo esc_attr($themeslug);?>" type="text" value="<?php echo esc_attr($niteoCS_unsplash_3); ?>" />
110
+
111
+ <br><br>
112
+ <input type="checkbox" name="niteoCS_unsplash_feat_<?php echo esc_attr($themeslug);?>" id="niteoCS_unsplash_feat" value="1" <?php checked( '1', get_option( 'niteoCS_unsplash_feat', '0' ) ); ?> class="regular-text code"><label for="niteoCS_unsplash_feat"><?php _e('Limit search only to Featured/Curated Photos', 'cmp-coming-soon-maintenance');?></label>
113
+ </div><br>
114
+
115
+ <button id="test-unsplash" class="button" data-security="<?php echo esc_attr($ajax_nonce);?>"><?php _e('Test Unsplash', 'cmp-coming-soon-maintenance');?></button>
116
+ <div id="unsplash-media"></div>
117
+ </fieldset>
118
+
119
+ <fieldset id="default_banner">
120
+ <div class="banner-wrapper default">
121
+ <img src="<?php echo esc_url($this->cmp_themeURL($this->cmp_selectedTheme()).$this->cmp_selectedTheme().'/img/'.$this->cmp_selectedTheme().'_banner_large.jpg');?>" alt="Default Media">
122
+ </div>
123
+ </fieldset>
124
+
125
+ <fieldset id="graphic_pattern">
126
+ <div class="banner-wrapper default">
127
+ <label for="niteoCS_banner_pattern_<?php echo esc_attr($themeslug);?>"><?php _e('Select Pattern', 'cmp-coming-soon-maintenance');?></label></br>
128
+ <select name="niteoCS_banner_pattern_<?php echo esc_attr($themeslug);?>" data-url="<?php echo esc_url(WP_PLUGIN_URL . '/cmp-coming-soon-maintenance/img/patterns/');?>">
129
+ <?php
130
+ foreach ($patterns as $pattern) { ?>
131
+ <option value="<?php echo esc_attr($pattern);?>" <?php if ( $niteoCS_banner_pattern == $pattern ) { echo ' selected="selected"'; } ?>><?php echo esc_html(ucfirst(str_replace('_', ' ', $pattern)));?></option>
132
+ <?php
133
+ } ?>
134
+ <option value="custom" <?php if ( $niteoCS_banner_pattern == 'custom' ) { echo ' selected="selected"'; } ?>><?php _e('Custom Pattern...', 'cmp-coming-soon-maintenance');?></option>
135
+ </select><br>
136
+
137
+ <input type="hidden" class="widefat" id="niteoCS_banner_pattern_custom" name="niteoCS_banner_pattern_custom_<?php echo esc_attr($themeslug);?>" type="text" value="<?php echo esc_attr( $niteoCS_banner_pattern_custom ); ?>" />
138
+
139
+ <input id="add-pattern" type="button" class="button" value="Media Library" style="display:<?php echo ($niteoCS_banner_pattern == 'custom') ? 'block' : 'none'?>;"/>
140
+
141
+ <div class="pattern-preview" style="background-image: url('<?php echo esc_url($pattern_url);?>');"></div>
142
+ </div>
143
+ </fieldset>
144
+
145
+ <fieldset id="solid_color">
146
+ <div class="banner-wrapper default">
147
+ <label for="niteoCS_banner_color_<?php echo esc_attr($themeslug);?>"><?php _e('Select Color', 'cmp-coming-soon-maintenance');?></label><br>
148
+ <input type="text" name="niteoCS_banner_color_<?php echo esc_attr($themeslug);?>" id="niteoCS_banner_color" value="<?php echo esc_attr( $niteoCS_banner_color); ?>" data-default-color="#bdc3c7" class="regular-text code"><br>
149
+ <div class="color-preview" style="background-color:<?php echo esc_attr( $niteoCS_banner_color); ?>"></div>
150
+ </div>
151
+ </fieldset>
152
+
153
+ <fieldset id="video_banner">
154
+ <div class="banner-wrapper default">
155
+
156
+ <label for="niteoCS_banner_video_<?php echo esc_attr($themeslug);?>"><?php _e('Select Video Source', 'cmp-coming-soon-maintenance');?></label></br>
157
+ <select name="niteoCS_banner_video_<?php echo esc_attr($themeslug);?>" class="banner-video-source">
158
+ <option value="youtube" <?php if ( $niteoCS_banner_video == 'youtube' ) { echo ' selected="selected"'; } ?>><?php _e('Youtube', 'cmp-coming-soon-maintenance');?></option>
159
+ <option disabled value="vimeo" <?php if ( $niteoCS_banner_video == 'vimeo' ) { echo ' selected="selected"'; } ?>><?php _e('Vimeo (coming soon...)', 'cmp-coming-soon-maintenance');?></option>
160
+ </select><br>
161
+
162
+
163
+ <p class="youtube-source-input">
164
+ <label for="niteoCS_youtube_url_<?php echo esc_attr($themeslug);?>"><?php _e('Enter Youtube URL', 'cmp-coming-soon-maintenance');?></label>
165
+ <input type="text" class="widefat" id="niteoCS-youtube-url" name="niteoCS_youtube_url_<?php echo esc_attr($themeslug);?>" type="text" value="<?php echo esc_attr($niteoCS_youtube_url); ?>" />
166
+
167
+ </p>
168
+
169
+ <p class="vimeo-source-input">
170
+ <label for="niteoCS_vimeo_url_<?php echo esc_attr($themeslug);?>"><?php _e('Enter Vimeo URL', 'cmp-coming-soon-maintenance');?></label>
171
+ <input type="text" class="widefat" id="niteoCS-vimeo-url" name="niteoCS_vimeo_url_<?php echo esc_attr($themeslug);?>" type="text" value="<?php echo esc_attr($niteoCS_vimeo_url); ?>" />
172
+ </p>
173
+
174
+ <button id="test-video" class="button" data-security="<?php echo esc_attr($ajax_nonce);?>"><?php _e('Preview Video', 'cmp-coming-soon-maintenance');?></button>
175
+
176
+ <div class="video-preview"></div>
177
+
178
+ <p><?php _e('Video backgrounds doesn`t work on mobile devices therefore only thumbnail video image will be displayed on mobile devices. If you want to display custom image you can upload it by pressing button below. ', 'cmp-coming-soon-maintenance');?></p>
179
+ <input type="hidden" class="widefat" id="niteoCS-video-thumb" name="niteoCS_video_thumb_<?php echo esc_attr($themeslug);?>" type="text" value="<?php echo esc_attr( $niteoCS_video_thumb ); ?>" />
180
+ <input id="add-video-thumb" type="button" class="button" value="<?php _e('Use custom image from Media Library', 'cmp-coming-soon-maintenance');?>" /><br><br>
181
+
182
+ <div class="video-thumb-wrapper">
183
+ <?php
184
+ if ( isset( $niteoCS_video_thumb ) && $niteoCS_video_thumb != '' ) {
185
+ $img = wp_get_attachment_image_src($niteoCS_video_thumb, 'large');
186
+ if (isset($img[0])) {
187
+ echo '<img src="'.$img[0].'" alt="">';
188
+ }
189
+
190
+ }
191
+ ?>
192
+ </div>
193
+
194
+ <input id="delete-video-thumb" type="button" class="button" value="Remove Thumbnail" />
195
+
196
+ </div>
197
+ </fieldset>
198
+ </td>
199
+ </tr>
200
+ <tr><th>
201
+ <p class="cmp-submit">
202
+ <?php wp_nonce_field('save_options','save_options_field'); ?>
203
+ <input type="submit" name="Submit" class="button cmp-button submit" value="<?php _e('Save All Changes', 'cmp-coming-soon-maintenance'); ?>" id="submitChanges" />
204
+ </p>
205
+ </th></tr>
206
+ </tbody>
207
+ </table>
208
+
209
+ </div>
inc/settings-counter_disabled.php ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <div class="table-wrapper content">
2
+ <h3><?php _e('Countdown Timer Setup', 'cmp');?></h3>
3
+ <table class="content">
4
+ <tr>
5
+ <th>
6
+ <fieldset>
7
+ <legend class="screen-reader-text">
8
+ <span><?php _e('Counter setup', 'cmp');?></span>
9
+ </legend>
10
+
11
+ <p>
12
+ <label title="Enabled">
13
+ <input disabled type="radio" name="niteoCS_counter" value="1">&nbsp;<?php _e('Enabled', 'cmp');?>
14
+ </label>
15
+ </p>
16
+
17
+ <p>
18
+ <label title="Disabled">
19
+ <input disabled type="radio" name="niteoCS_counter" value="0" checked="checked">&nbsp;<?php _e('Disabled', 'cmp');?>
20
+ </label>
21
+ </p>
22
+
23
+ </fieldset>
24
+ </th>
25
+
26
+ <td id="counter-disabled">
27
+ <p><?php _e('Countdown Timer is disabled or is not supported by selected Theme.', 'cmp');?></p>
28
+ </td>
29
+
30
+ </tr>
31
+ </table>
32
+
33
+ </div>
inc/settings-logo.php ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
3
+ ?>
4
+ <div class="table-wrapper theme-setup">
5
+ <h3><?php _e('Logo Setup', 'cmp-coming-soon-maintenance');?></h3>
6
+ <table class="theme-setup">
7
+ <tbody>
8
+ <tr>
9
+ <th>
10
+ <fieldset>
11
+ <legend class="screen-reader-text">
12
+ <span><?php _e('Logo setup', 'cmp-coming-soon-maintenance');?></span>
13
+ </legend>
14
+
15
+ <p>
16
+ <label title="<?php _e('Text Logo', 'cmp-coming-soon-maintenance');?>">
17
+ <input type="radio" class="niteoCS-logo-type" name="niteoCS_logo_type_<?php echo esc_attr($themeslug);?>" value="text"<?php if ( $niteoCS_logo_type == 'text') { echo ' checked="checked"'; } ?>>&nbsp;<?php _e('Text Logo', 'cmp-coming-soon-maintenance');?>
18
+ </label>
19
+ </p>
20
+
21
+ <p>
22
+ <label title="<?php _e('Graphic Logo', 'cmp-coming-soon-maintenance');?>">
23
+ <input type="radio" class="niteoCS-logo-type" name="niteoCS_logo_type_<?php echo esc_attr($themeslug);?>" value="graphic"<?php if ( $niteoCS_logo_type == 'graphic') { echo ' checked="checked"'; } ?>>&nbsp;<?php _e('Graphic Logo', 'cmp-coming-soon-maintenance');?>
24
+ </label>
25
+ </p>
26
+
27
+ <p>
28
+ <label title="<?php _e('Disabled', 'cmp-coming-soon-maintenance');?>">
29
+ <input type="radio" class="niteoCS-logo-type" name="niteoCS_logo_type_<?php echo esc_attr($themeslug);?>" value="disabled"<?php if ( $niteoCS_logo_type == 'disabled') { echo ' checked="checked"'; } ?>>&nbsp;<?php _e('Disabled', 'cmp-coming-soon-maintenance');?>
30
+ </label>
31
+ </p>
32
+
33
+ </fieldset>
34
+ </th>
35
+
36
+ <td>
37
+ <fieldset class="text-logo" <?php echo ( $niteoCS_logo_type != 'text') ? 'style="display:none"' : '';?>>
38
+
39
+ <p>
40
+ <input type="text" class="widefat" id="niteoCS-text-logo" name="niteoCS_text_logo_<?php echo esc_attr($themeslug);?>" type="text" value="<?php echo esc_attr($niteoCS_text_logo); ?>" />
41
+ </p>
42
+ </fieldset>
43
+
44
+ <fieldset class="graphic-logo" <?php echo ( $niteoCS_logo_type != 'graphic') ? 'style="display:none"' : '';?>>
45
+
46
+ <input type="hidden" class="widefat" id="niteoCS-logo-id" name="niteoCS_logo_id_<?php echo esc_attr($themeslug);?>" type="text" value="<?php echo esc_attr( $niteoCS_logo_id ); ?>" />
47
+ <input id="add-logo" type="button" class="button" value="Select Logo" />
48
+
49
+ <div class="logo-wrapper">
50
+ <?php
51
+ if ( isset($logo_url) && $logo_url !== '' ) {
52
+ echo '<img src="'.esc_url($logo_url).'" alt="">';
53
+ } ?>
54
+ </div>
55
+ <input id="delete-logo" type="button" class="button" value="Remove Logo" />
56
+
57
+ </fieldset>
58
+
59
+ <p class="disabled-logo" <?php echo ( $niteoCS_logo_type != 'disabled') ? 'style="display:none"' : '';?>><?php _e('Logo is disabled', 'cmp-coming-soon-maintenance');?></p>
60
+ </td>
61
+ </tr>
62
+ <tr><th>
63
+ <p class="cmp-submit">
64
+ <?php wp_nonce_field('save_options','save_options_field'); ?>
65
+ <input type="submit" name="Submit" class="button cmp-button submit" value="<?php _e('Save All Changes', 'cmp-coming-soon-maintenance'); ?>" id="submitChanges" />
66
+ </p>
67
+ </th></tr>
68
+ </tbody>
69
+ </table>
70
+ </div>
inc/settings-logo_disabled.php ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
3
+ ?>
4
+ <div class="table-wrapper theme-setup">
5
+ <h3><?php _e('Logo Setup', 'cmp-coming-soon-maintenance');?></h3>
6
+ <table class="theme-setup">
7
+ <tbody>
8
+ <tr>
9
+ <th>
10
+ <fieldset>
11
+ <legend class="screen-reader-text">
12
+ <span><?php _e('Logo setup', 'cmp-coming-soon-maintenance');?></span>
13
+ </legend>
14
+
15
+ <p>
16
+ <label title="<?php _e('Text Logo', 'cmp-coming-soon-maintenance');?>">
17
+ <input type="radio" disabled class="niteoCS-logo-type" name="niteoCS_logo_type_<?php echo esc_attr($themeslug);?>" value="text">&nbsp;<?php _e('Text Logo', 'cmp-coming-soon-maintenance');?>
18
+ </label>
19
+ </p>
20
+
21
+ <p>
22
+ <label title="<?php _e('Graphic Logo', 'cmp-coming-soon-maintenance');?>">
23
+ <input type="radio" disabled class="niteoCS-logo-type" name="niteoCS_logo_type_<?php echo esc_attr($themeslug);?>" value="graphic">&nbsp;<?php _e('Graphic Logo', 'cmp-coming-soon-maintenance');?>
24
+ </label>
25
+ </p>
26
+
27
+ <p>
28
+ <label title="<?php _e('Disabled', 'cmp-coming-soon-maintenance');?>">
29
+ <input type="radio" disabled class="niteoCS-logo-type" name="niteoCS_logo_type_<?php echo esc_attr($themeslug);?>" value="disabled" checked="checked">&nbsp;<?php _e('Disabled', 'cmp-coming-soon-maintenance');?>
30
+ </label>
31
+ </p>
32
+
33
+ </fieldset>
34
+ </th>
35
+ <td>
36
+ <p class="disabled-logo"><?php _e('Logo settings is disabled or is not supported by selected Theme.', 'cmp-coming-soon-maintenance');?></p>
37
+ </td>
38
+
39
+ </tr>
40
+ </tbody>
41
+ </table>
42
+ </div>
inc/settings-slider.php CHANGED
@@ -38,7 +38,7 @@ $niteoCS_slider_auto = get_option('niteoCS_slider_auto['.$themeslug.']', '1');
38
  ?>
39
 
40
  <div class="table-wrapper theme-setup slider">
41
- <h3><?php _e('Slider Setup', 'cmp-coming-soon-maintenance');?></h3>
42
  <table class="theme-setup slider">
43
  <tr>
44
  <th>
38
  ?>
39
 
40
  <div class="table-wrapper theme-setup slider">
41
+ <h3><?php _e('Image Slider Setup', 'cmp-coming-soon-maintenance');?></h3>
42
  <table class="theme-setup slider">
43
  <tr>
44
  <th>
inc/settings-slider_disabled.php ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
3
+ ?>
4
+ <div class="table-wrapper theme-setup slider">
5
+ <h3><?php _e('Image Slider Setup', 'cmp-coming-soon-maintenance');?></h3>
6
+ <table class="theme-setup slider">
7
+ <tr>
8
+ <th>
9
+ <fieldset>
10
+ <legend class="screen-reader-text">
11
+ <span><?php _e('Slider setup', 'cmp-coming-soon-maintenance');?></span>
12
+ </legend>
13
+
14
+ <p>
15
+ <label title="Enabled">
16
+ <input type="radio" disabled name="niteoCS_slider_<?php echo esc_attr($themeslug);?>" value="1">&nbsp;<?php _e('Enabled', 'cmp-coming-soon-maintenance');?>
17
+ </label>
18
+ </p>
19
+
20
+ <p>
21
+ <label title="Disabled">
22
+ <input type="radio" disabled name="niteoCS_slider_<?php echo esc_attr($themeslug);?>" value="0" checked="checked">&nbsp;<?php _e('Disabled', 'cmp-coming-soon-maintenance');?>
23
+ </label>
24
+ </p>
25
+
26
+ </fieldset>
27
+ </th>
28
+
29
+ <td id="slider-disabled">
30
+ <p><?php _e('Slider settings is disabled or is not supported by selected Theme.', 'cmp-coming-soon-maintenance');?></p>
31
+ </td>
32
+
33
+ </table>
34
+ </div>
inc/settings-subscribe.php ADDED
@@ -0,0 +1,85 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
3
+ ?>
4
+
5
+ <div class="table-wrapper content" id="subscribe-section">
6
+ <h3><?php _e('Subscribe Form', 'cmp-coming-soon-maintenance');?></h3>
7
+ <table class="content">
8
+ <tbody>
9
+ <tr>
10
+ <th>
11
+ <fieldset>
12
+ <legend class="screen-reader-text">
13
+ <span><?php _e('Subscribe Form Options', 'cmp-coming-soon-maintenance');?></span>
14
+ </legend>
15
+
16
+ <p>
17
+ <label title="Niteo Subscribe">
18
+ <input type="radio" name="niteoCS_subscribe_type" value="2"<?php if ( $niteoCS_subscribe_type == 2) { echo ' checked="checked"'; } ?>>&nbsp;<?php _e('Niteo Subscribe', 'cmp-coming-soon-maintenance');?>
19
+ </label>
20
+ </p>
21
+
22
+ <p>
23
+ <label title="3rd Party Plugin">
24
+ <input type="radio" name="niteoCS_subscribe_type" value="1"<?php if ( $niteoCS_subscribe_type == 1) { echo ' checked="checked"'; } ?>>&nbsp;<?php _e('3rd Party Plugin', 'cmp-coming-soon-maintenance');?>
25
+ </label>
26
+ </p>
27
+
28
+ <p>
29
+ <label title="Disabled">
30
+ <input type="radio" name="niteoCS_subscribe_type" value="0"<?php if ( $niteoCS_subscribe_type == 0) { echo ' checked="checked"'; } ?>>&nbsp;<?php _e('Disabled', 'cmp-coming-soon-maintenance');?>
31
+ </label>
32
+ </p>
33
+
34
+ </fieldset>
35
+ </th>
36
+
37
+ <td id="subscribe-disabled">
38
+ <p><?php _e('Subscribe Form is disabled.', 'cmp-coming-soon-maintenance');?></p>
39
+ </td>
40
+
41
+ <td id="subscribe-3rdparty">
42
+ <fieldset>
43
+ <label class="subscribe" for="niteoCS_subscribe_code">3rd Party Plugin Shortcode
44
+ <input type="text" name="niteoCS_subscribe_code" id="niteoCS_subscribe_code" value="<?php echo stripslashes( esc_attr($niteoCS_subscribe_code ));?>" class="regular-text code">
45
+ </label>
46
+
47
+ <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>
48
+
49
+ <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>
50
+ <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>
51
+ <code>
52
+ &lt;p&gt
53
+ &lt;input type="email" name="EMAIL" placeholder="Your email address" required />
54
+ &lt;input type="submit" value="Sign up" />
55
+ &lt;/p&gt
56
+ </code>
57
+ </fieldset>
58
+ </td>
59
+
60
+ <td id="subscribe-niteo">
61
+ <fieldset>
62
+ <p><?php _e('Default subscribe form will be displayed to visitors. Only export of email addresses to .csv file is supported. Mailing List will be deleted after deletion of CMP plugin.', 'cmp-coming-soon-maintenance');?></p>
63
+
64
+ <label class="subscribe" for="niteoCS_subscribe_label">Subscribe form Label
65
+ <input type="text" name="niteoCS_subscribe_label" id="niteoCS_subscribe_label" value="<?php echo esc_attr($niteoCS_subscribe_label );?>" class="regular-text code">
66
+ </label>
67
+
68
+ <p><?php _e('Total Subscribers: ', 'cmp-coming-soon-maintenance'); echo $niteoCS_subscribers_list ? count( $niteoCS_subscribers_list ) : '0';?></p>
69
+ <p><?php _e('Since last export: ', 'cmp-coming-soon-maintenance'); echo $new_subs;?></p>
70
+ <p><?php _e('Last Export Date: ', 'cmp-coming-soon-maintenance'); echo $niteoCS_csv_export_time ? date('Y-m-d\ H:i:s\ ', $niteoCS_csv_export_time) : __('Never exported', 'cmp-coming-soon-maintenance');?></p>
71
+ <a href="#generate-mailinglist" id="csv-generate" class="button"><?php _e('Generate CSV', 'cmp-coming-soon-maintenance');?></a>
72
+
73
+ </fieldset>
74
+ </td>
75
+
76
+ </tr>
77
+ <tr><th>
78
+ <p class="cmp-submit">
79
+ <?php wp_nonce_field('save_options','save_options_field'); ?>
80
+ <input type="submit" name="Submit" class="button cmp-button submit" value="<?php _e('Save All Changes', 'cmp-coming-soon-maintenance'); ?>" id="submitChanges" />
81
+ </p>
82
+ </th></tr>
83
+ </tbody>
84
+ </table>
85
+ </div>
inc/settings-subscribe_disabled.php ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
3
+ ?>
4
+
5
+ <div class="table-wrapper content" id="subscribe-section">
6
+ <h3><?php _e('Subscribe Form', 'cmp-coming-soon-maintenance');?></h3>
7
+ <table class="content">
8
+ <tbody>
9
+ <tr>
10
+ <th>
11
+ <fieldset>
12
+ <legend class="screen-reader-text">
13
+ <span><?php _e('Subscribe Form Options', 'cmp-coming-soon-maintenance');?></span>
14
+ </legend>
15
+
16
+ <p>
17
+ <label title="Niteo Subscribe">
18
+ <input disabled type="radio" name="niteoCS_subscribe_type" value="2">&nbsp;<?php _e('Niteo Subscribe', 'cmp-coming-soon-maintenance');?>
19
+ </label>
20
+ </p>
21
+
22
+ <p>
23
+ <label title="3rd Party Plugin">
24
+ <input disabled type="radio" name="niteoCS_subscribe_type" value="1">&nbsp;<?php _e('3rd Party Plugin', 'cmp-coming-soon-maintenance');?>
25
+ </label>
26
+ </p>
27
+
28
+ <p>
29
+ <label title="Disabled">
30
+ <input disabled type="radio" name="niteoCS_subscribe_type" value="0" checked="checked">&nbsp;<?php _e('Disabled', 'cmp-coming-soon-maintenance');?>
31
+ </label>
32
+ </p>
33
+
34
+ </fieldset>
35
+ </th>
36
+
37
+ <td id="subscribe-disabled">
38
+ <p><?php _e('Subscribe Form is disabled or is not supported by selected Theme.', 'cmp-coming-soon-maintenance');?></p>
39
+ </td>
40
+
41
+ </tbody>
42
+ </table>
43
+ </div>
niteo-cmp.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: CMP - Coming Soon & Maintenance Plugin
4
  Plugin URI: https://wordpress.org/plugins/cmp-coming-soon-maintenance/
5
  Description: Display customizable landing page for Coming Soon, Maintenance & Under Construction page.
6
- Version: 1.9.0
7
  Author: NiteoThemes
8
  Author URI: https://www.niteothemes.com
9
  Text Domain: cmp-coming-soon-maintenance
@@ -15,6 +15,7 @@
15
 
16
  class niteo_cmp {
17
  var $installedFolder = '';
 
18
  var $version = '';
19
  var $dev;
20
  var $remoteServer = '';
@@ -22,26 +23,26 @@ class niteo_cmp {
22
  var $themes_standard = array();
23
  var $premium_installed = array();
24
  var $countdown_themes = array();
25
- var $slider_themes = array();
26
  var $minified = '';
27
 
28
  function __construct() {
29
- $this->version = '1.9.0';
30
  $this->dev = false;
31
  $this->installedFolder = basename(dirname(__FILE__));
 
 
 
 
32
 
33
  // set array of themes with countdown
34
- $this->countdown_themes = array('frame', 'countdown');
35
-
36
- // set array of themes with slider
37
- $this->slider_themes = array('hardwork_premium', 'fifty');
38
 
39
  // get all installed themes [folder names under /themes] and put them to array
40
  $this->themes_standard = array_map('basename', glob( plugin_dir_path( __FILE__ ) . 'themes/*', GLOB_ONLYDIR));
41
 
42
  // check for installed premium themes
43
- if ( file_exists(plugin_dir_path( __DIR__ ) . 'cmp-premium-themes/') ) {
44
- $this->premium_installed = array_map('basename', glob( plugin_dir_path( __DIR__ ) . 'cmp-premium-themes/*', GLOB_ONLYDIR));
45
  $this->theme_array = array_merge($this->themes_standard, $this->premium_installed);
46
  } else {
47
  $this->theme_array = $this->themes_standard;
@@ -86,7 +87,7 @@ class niteo_cmp {
86
  wp_enqueue_style('font_awesome');
87
 
88
  // check for them updates, not sure where else this to put
89
- $this->cmp_check_update();
90
  }
91
 
92
  function sdt_remove_ver_css_js( $src, $handle ) {
@@ -169,8 +170,8 @@ class niteo_cmp {
169
  $theme_preview = $_GET['theme'];
170
  // if premium
171
  if ( $this->niteo_in_array_r( $theme_preview, $this->cmp_plugin_premium() ) ) {
172
- if ( file_exists(plugin_dir_path( __DIR__ ) . 'cmp-premium-themes/'.$theme_preview.'/'.$theme_preview.'-theme.php') ) {
173
- require_once (plugin_dir_path( __DIR__ ) . 'cmp-premium-themes/'.$theme_preview.'/'.$theme_preview.'-theme.php');
174
  die();
175
  }
176
 
@@ -283,7 +284,7 @@ class niteo_cmp {
283
  // return installed theme path
284
  function cmp_themePath() {
285
  if ( $this->niteo_in_array_r($this->cmp_selectedTheme(), $this->cmp_plugin_premium() ) ) {
286
- return plugin_dir_path( __DIR__ ) . 'cmp-premium-themes/';
287
  } else {
288
 
289
  return dirname(__FILE__) . '/themes/';
@@ -292,16 +293,28 @@ class niteo_cmp {
292
  }
293
 
294
  // return installed theme dir
295
- function cmp_themeDirPath() {
296
- if ( $this->niteo_in_array_r($this->cmp_selectedTheme(), $this->cmp_plugin_premium() ) ) {
297
  return plugins_url( '/cmp-premium-themes/');
298
  } else {
299
  return plugins_url( '/themes/', __FILE__ );
300
 
301
  }
 
 
 
 
 
 
 
 
 
302
 
 
303
  }
304
 
 
 
305
  // display admin notice
306
  function cmp_admin_bar(){
307
  global $wp_admin_bar;
@@ -385,7 +398,7 @@ class niteo_cmp {
385
  }
386
 
387
  // theme updates function
388
- function cmp_check_update() {
389
 
390
  // check for current theme version
391
  $remote_version = '';
@@ -393,75 +406,72 @@ class niteo_cmp {
393
  $type = '';
394
  $headers = array('Version');
395
 
396
- foreach ( $this->theme_array as $theme_slug) {
397
-
398
- if ($this->dev == true) {
399
- delete_transient($theme_slug.'_updatecheck' );
400
- }
401
- // check if update check transient is set
402
- if ( false === ( $updatecheck_transient = get_transient( $theme_slug.'_updatecheck' ) ) ) {
403
 
404
- // if premium theme style.css exists get its version
405
- if ( in_array($theme_slug, $this->premium_installed) && file_exists(plugin_dir_path( __DIR__ ) . 'cmp-premium-themes/'.$theme_slug.'/style.css')) {
406
- $version = get_file_data( plugin_dir_path( __DIR__ ) . 'cmp-premium-themes/'.$theme_slug.'/style.css', $headers, '');
407
- $type = 'premium';
408
- }
409
 
410
- // if standard theme style.css exists get its version
411
- if ( in_array($theme_slug, $this->themes_standard) && file_exists(plugin_dir_path( __FILE__ ) . 'themes/'.$theme_slug.'/style.css')) {
412
- $version = get_file_data( plugin_dir_path( __FILE__ ) . 'themes/'.$theme_slug.'/style.css', $headers, '');
413
- $type = 'standard';
414
- }
415
 
416
- // if we have local version of theme and not in updating theme
417
- if ( isset($version[0]) ) {
418
- $current_version = $version[0];
419
-
420
- // get remote version from remote server
421
- $request = wp_remote_post($this->remoteServer.'?action=get_metadata&slug='.$theme_slug, array('body' => array('action' => 'version')));
422
- // if no error, retrivee body
423
- if ( !is_wp_error($request) ) {
424
- // decode to json
425
- $remote_version = json_decode($request['body'], true);
426
-
427
- // get remove version key
428
- if ( isset($remote_version['version']) ) {
429
- $remote_version = $remote_version['version'];
430
-
431
- // if remote version is bigger than current, display info about new version
432
- if ((float)$remote_version > (float)$current_version) {
433
- $title = ucwords(str_replace('_', ' ', $theme_slug));
434
- // create nonce
435
- $ajax_nonce = wp_create_nonce( 'cmp-coming-soon-ajax-secret' );
436
- // if admin screen is not in updating theme
437
- if (!isset($_GET['theme']) || (isset($_GET['theme']) && $_GET['theme'] != $theme_slug)) {
438
- $transient = '<div class="notice notice-warning is-dismissible"><p class="message">'.sprintf(__('There is a new version of %s theme available.', 'cmp-coming-soon-maintenance'), $title).' <a href="'.esc_url($this->remoteServer).'readme/'.esc_attr($theme_slug).'-readme.php" class="view-release">'.sprintf(__('View update %s notes','cmp-coming-soon-maintenance'), $remote_version).'</a> or <a href="'.admin_url().'options-general.php?page=cmp-settings&action=update-cmp-theme&theme='.esc_attr($theme_slug).'&type='.esc_attr($type).'" class="update-theme" data-type="'.esc_attr($type).'" data-security="'.esc_attr($ajax_nonce).'" data-slug="'.esc_attr($theme_slug).'" data-remote_url="'.esc_url($this->remoteServer).'">'.__('Update now.','cmp-coming-soon-maintenance').'</a></p><div class="release-note"></div></div>';
439
- // set transient with 24 hour expire
440
- set_transient( $theme_slug.'_updatecheck', $transient, 60*60*24 );
441
- echo $transient;
442
- }
443
- } else {
444
- // set transient no update available with 12 hours expire
445
- set_transient( $theme_slug.'_updatecheck', '', 60*60*12 );
446
- }
447
-
448
- } else {
449
  // set transient no update available with 12 hours expire
450
  set_transient( $theme_slug.'_updatecheck', '', 60*60*12 );
451
- echo '<div class="notice notice-error is-dismissible"><p>'.__('There has been error from remote server: ','cmp-coming-soon-maintenance').wp_remote_retrieve_response_code($request).' '.__('while checking for','cmp-coming-soon-maintenance').' '.esc_attr(ucwords(str_replace('_', ' ', $theme_slug))).' '.__('Theme update. Please try again later or contact us at info@niteo.cz if this error message keeps appearing.','cmp-coming-soon-maintenance').'</p></div>';
452
- }
453
 
454
- } else {
455
  // set transient no update available with 12 hours expire
456
  set_transient( $theme_slug.'_updatecheck', '', 60*60*12 );
457
- echo '<div class="notice notice-error is-dismissible"><p>'.__('There has been error: Internal server error:','cmp-coming-soon-maintenance').' '.$request->get_error_message().' '.__('while checking for Theme update. Please try again later or contact us at info@niteo.cz if this error message keeps appearing.','cmp-coming-soon-maintenance').'</p></div>';
 
458
 
459
- }
460
- }
 
 
461
 
462
- } else {
463
- echo $updatecheck_transient;
464
  }
 
 
 
465
  }
466
 
467
  return;
@@ -492,7 +502,7 @@ class niteo_cmp {
492
  WP_Filesystem();
493
  $source_path = $movefile['file'];
494
  $theme_name = str_replace('.zip', '', $filename);
495
- $destination_path = plugin_dir_path( __DIR__ ) . 'cmp-premium-themes/';
496
 
497
  // create new theme DIR
498
  if ( wp_mkdir_p( $destination_path ) ) {
@@ -567,7 +577,7 @@ class niteo_cmp {
567
  $theme_name = $file['name'];
568
 
569
  if ( $file['type'] == 'premium' ) {
570
- $destination_path = plugin_dir_path( __DIR__ ) . 'cmp-premium-themes/';
571
  }
572
 
573
  if ( $file['type'] == 'standard' ) {
@@ -990,7 +1000,7 @@ class niteo_cmp {
990
 
991
  } else {
992
  // send default image
993
- $banner_url = $this->cmp_themeDirPath().$themeslug.'/img/'.$themeslug.'_banner_'.$size.'.jpg';
994
  }
995
 
996
  return array( $background_class, $banner_url );
@@ -1033,7 +1043,7 @@ class niteo_cmp {
1033
  case '2':
1034
  // default image
1035
  $background_class = 'image';
1036
- $banner_url = $this->cmp_themeDirPath().$themeslug.'/img/'.$themeslug.'_banner_'.$size.'.jpg';
1037
  return array($background_class, $banner_url);
1038
 
1039
  case '3':
@@ -1053,7 +1063,7 @@ class niteo_cmp {
1053
  // Pattern
1054
  $background_class = 'color';
1055
  $niteoCS_banner_color = get_option('niteoCS_banner_color['.$themeslug.']', '#bdc3c7');
1056
- return array( $background_class, '<style>.banner.color{background-color:'.esc_attr($niteoCS_banner_color).';}</style>' );
1057
 
1058
  case '5':
1059
  // video
3
  Plugin Name: CMP - Coming Soon & Maintenance Plugin
4
  Plugin URI: https://wordpress.org/plugins/cmp-coming-soon-maintenance/
5
  Description: Display customizable landing page for Coming Soon, Maintenance & Under Construction page.
6
+ Version: 1.10.0
7
  Author: NiteoThemes
8
  Author URI: https://www.niteothemes.com
9
  Text Domain: cmp-coming-soon-maintenance
15
 
16
  class niteo_cmp {
17
  var $installedFolder = '';
18
+ var $plugins_dir_path = '';
19
  var $version = '';
20
  var $dev;
21
  var $remoteServer = '';
23
  var $themes_standard = array();
24
  var $premium_installed = array();
25
  var $countdown_themes = array();
 
26
  var $minified = '';
27
 
28
  function __construct() {
29
+ $this->version = '1.10.0';
30
  $this->dev = false;
31
  $this->installedFolder = basename(dirname(__FILE__));
32
+ $this->plugins_dir_path = plugin_dir_path( __DIR__ );
33
+ if ( $this->plugins_dir_path == './') {
34
+ $this->plugins_dir_path = WP_PLUGIN_DIR . '/';
35
+ }
36
 
37
  // set array of themes with countdown
38
+ $this->countdown_themes = array('frame', 'countdown', 'postery');
 
 
 
39
 
40
  // get all installed themes [folder names under /themes] and put them to array
41
  $this->themes_standard = array_map('basename', glob( plugin_dir_path( __FILE__ ) . 'themes/*', GLOB_ONLYDIR));
42
 
43
  // check for installed premium themes
44
+ if ( file_exists($this->plugins_dir_path . 'cmp-premium-themes/') ) {
45
+ $this->premium_installed = array_map('basename', glob( $this->plugins_dir_path . 'cmp-premium-themes/*', GLOB_ONLYDIR));
46
  $this->theme_array = array_merge($this->themes_standard, $this->premium_installed);
47
  } else {
48
  $this->theme_array = $this->themes_standard;
87
  wp_enqueue_style('font_awesome');
88
 
89
  // check for them updates, not sure where else this to put
90
+ $this->cmp_check_update( $this->cmp_selectedTheme() );
91
  }
92
 
93
  function sdt_remove_ver_css_js( $src, $handle ) {
170
  $theme_preview = $_GET['theme'];
171
  // if premium
172
  if ( $this->niteo_in_array_r( $theme_preview, $this->cmp_plugin_premium() ) ) {
173
+ if ( file_exists($this->plugins_dir_path . 'cmp-premium-themes/'.$theme_preview.'/'.$theme_preview.'-theme.php') ) {
174
+ require_once ($this->plugins_dir_path . 'cmp-premium-themes/'.$theme_preview.'/'.$theme_preview.'-theme.php');
175
  die();
176
  }
177
 
284
  // return installed theme path
285
  function cmp_themePath() {
286
  if ( $this->niteo_in_array_r($this->cmp_selectedTheme(), $this->cmp_plugin_premium() ) ) {
287
+ return $this->plugins_dir_path . 'cmp-premium-themes/';
288
  } else {
289
 
290
  return dirname(__FILE__) . '/themes/';
293
  }
294
 
295
  // return installed theme dir
296
+ function cmp_themeURL( $themeslug ) {
297
+ if ( $this->niteo_in_array_r( $themeslug, $this->cmp_plugin_premium() ) ) {
298
  return plugins_url( '/cmp-premium-themes/');
299
  } else {
300
  return plugins_url( '/themes/', __FILE__ );
301
 
302
  }
303
+ }
304
+
305
+ // older version of cmp_themeURL function - migration after 1.9 version.
306
+ //can be deleted in future...
307
+ function cmp_themeDirPath() {
308
+ if ( $this->niteo_in_array_r( $this->cmp_selectedTheme(), $this->cmp_plugin_premium() ) ) {
309
+ return plugins_url( '/cmp-premium-themes/');
310
+ } else {
311
+ return plugins_url( '/themes/', __FILE__ );
312
 
313
+ }
314
  }
315
 
316
+
317
+
318
  // display admin notice
319
  function cmp_admin_bar(){
320
  global $wp_admin_bar;
398
  }
399
 
400
  // theme updates function
401
+ function cmp_check_update($theme_slug) {
402
 
403
  // check for current theme version
404
  $remote_version = '';
406
  $type = '';
407
  $headers = array('Version');
408
 
409
+ if ($this->dev == true) {
410
+ delete_transient($theme_slug.'_updatecheck' );
411
+ }
412
+ // check if update check transient is set
413
+ if ( false === ( $updatecheck_transient = get_transient( $theme_slug.'_updatecheck' ) ) ) {
 
 
414
 
415
+ // if premium theme style.css exists get its version
416
+ if ( in_array($theme_slug, $this->premium_installed) && file_exists($this->plugins_dir_path . 'cmp-premium-themes/'.$theme_slug.'/style.css')) {
417
+ $version = get_file_data( $this->plugins_dir_path . 'cmp-premium-themes/'.$theme_slug.'/style.css', $headers, '');
418
+ $type = 'premium';
419
+ }
420
 
421
+ // if standard theme style.css exists get its version
422
+ if ( in_array($theme_slug, $this->themes_standard) && file_exists(plugin_dir_path( __FILE__ ) . 'themes/'.$theme_slug.'/style.css')) {
423
+ $version = get_file_data( plugin_dir_path( __FILE__ ) . 'themes/'.$theme_slug.'/style.css', $headers, '');
424
+ $type = 'standard';
425
+ }
426
 
427
+ // if we have local version of theme and not in updating theme
428
+ if ( isset($version[0]) ) {
429
+ $current_version = $version[0];
430
+
431
+ // get remote version from remote server
432
+ $request = wp_remote_post($this->remoteServer.'?action=get_metadata&slug='.$theme_slug, array('body' => array('action' => 'version')));
433
+ // if no error, retrivee body
434
+ if ( !is_wp_error($request) ) {
435
+ // decode to json
436
+ $remote_version = json_decode($request['body'], true);
437
+
438
+ // get remove version key
439
+ if ( isset($remote_version['version']) ) {
440
+ $remote_version = $remote_version['version'];
441
+
442
+ // if remote version is bigger than current, display info about new version
443
+ if ((float)$remote_version > (float)$current_version) {
444
+ $title = ucwords(str_replace('_', ' ', $theme_slug));
445
+ // create nonce
446
+ $ajax_nonce = wp_create_nonce( 'cmp-coming-soon-ajax-secret' );
447
+ // if admin screen is not in updating theme
448
+ if (!isset($_GET['theme']) || (isset($_GET['theme']) && $_GET['theme'] != $theme_slug)) {
449
+ $transient = '<div class="notice notice-warning is-dismissible"><p class="message">'.sprintf(__('There is a new version of %s theme available.', 'cmp-coming-soon-maintenance'), $title).' <a href="'.esc_url($this->remoteServer).'readme/'.esc_attr($theme_slug).'-readme.php" class="view-release">'.sprintf(__('View update %s notes','cmp-coming-soon-maintenance'), $remote_version).'</a> or <a href="'.admin_url().'options-general.php?page=cmp-settings&action=update-cmp-theme&theme='.esc_attr($theme_slug).'&type='.esc_attr($type).'" class="update-theme" data-type="'.esc_attr($type).'" data-security="'.esc_attr($ajax_nonce).'" data-slug="'.esc_attr($theme_slug).'" data-remote_url="'.esc_url($this->remoteServer).'">'.__('Update now.','cmp-coming-soon-maintenance').'</a></p><div class="release-note"></div></div>';
450
+ // set transient with 24 hour expire
451
+ set_transient( $theme_slug.'_updatecheck', $transient, 60*60*24 );
452
+ echo $transient;
453
+ }
454
+ } else {
 
 
 
 
 
455
  // set transient no update available with 12 hours expire
456
  set_transient( $theme_slug.'_updatecheck', '', 60*60*12 );
457
+ }
 
458
 
459
+ } else {
460
  // set transient no update available with 12 hours expire
461
  set_transient( $theme_slug.'_updatecheck', '', 60*60*12 );
462
+ echo '<div class="notice notice-error is-dismissible"><p>'.__('There has been error from remote server: ','cmp-coming-soon-maintenance').wp_remote_retrieve_response_code($request).' '.__('while checking for','cmp-coming-soon-maintenance').' '.esc_attr(ucwords(str_replace('_', ' ', $theme_slug))).' '.__('Theme update. Please try again later or contact us at info@niteo.cz if this error message keeps appearing.','cmp-coming-soon-maintenance').'</p></div>';
463
+ }
464
 
465
+ } else {
466
+ // set transient no update available with 12 hours expire
467
+ set_transient( $theme_slug.'_updatecheck', '', 60*60*12 );
468
+ echo '<div class="notice notice-error is-dismissible"><p>'.__('There has been error: Internal server error:','cmp-coming-soon-maintenance').' '.$request->get_error_message().' '.__('while checking for Theme update. Please try again later or contact us at info@niteo.cz if this error message keeps appearing.','cmp-coming-soon-maintenance').'</p></div>';
469
 
470
+ }
 
471
  }
472
+
473
+ } else {
474
+ echo $updatecheck_transient;
475
  }
476
 
477
  return;
502
  WP_Filesystem();
503
  $source_path = $movefile['file'];
504
  $theme_name = str_replace('.zip', '', $filename);
505
+ $destination_path = $this->plugins_dir_path . 'cmp-premium-themes/';
506
 
507
  // create new theme DIR
508
  if ( wp_mkdir_p( $destination_path ) ) {
577
  $theme_name = $file['name'];
578
 
579
  if ( $file['type'] == 'premium' ) {
580
+ $destination_path = $this->plugins_dir_path . 'cmp-premium-themes/';
581
  }
582
 
583
  if ( $file['type'] == 'standard' ) {
1000
 
1001
  } else {
1002
  // send default image
1003
+ $banner_url = $this->cmp_themeURL($themeslug).$themeslug.'/img/'.$themeslug.'_banner_'.$size.'.jpg';
1004
  }
1005
 
1006
  return array( $background_class, $banner_url );
1043
  case '2':
1044
  // default image
1045
  $background_class = 'image';
1046
+ $banner_url = $this->cmp_themeURL($themeslug).$themeslug.'/img/'.$themeslug.'_banner_'.$size.'.jpg';
1047
  return array($background_class, $banner_url);
1048
 
1049
  case '3':
1063
  // Pattern
1064
  $background_class = 'color';
1065
  $niteoCS_banner_color = get_option('niteoCS_banner_color['.$themeslug.']', '#bdc3c7');
1066
+ return array( $background_class, $niteoCS_banner_color );
1067
 
1068
  case '5':
1069
  // video
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=KV2JF
4
  Tags: under construction, construction page, maintenance mode, landing page, launch page, launching, security, coming soon, customizable, offline, offline page, unavailable, free, unsplash, subscribe form
5
  Requires at least: 3.0
6
  Tested up to: 4.8
7
- Stable tag: 1.9.0
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -17,20 +17,20 @@ Free plugin to create and customize your own Coming Soon or Maintenance landing
17
  <h3>Preview</h3>
18
  <a href="http://cmp.niteothemes.com/?cmp_preview=true&theme=hardwork&video=true" target="_blank">Click for preview of Hardwork Theme with video background>></a>
19
  <a href="http://cmp.niteothemes.com/?cmp_preview=true&theme=countdown" target="_blank">Click for preview of Countdown Theme >></a>
20
- <a href="http://cmp.niteothemes.com/?cmp_preview=true&theme=construct" target="_blank">Click for preview of Construct Theme >></a><br>
21
  <a href="http://cmp.niteothemes.com/?cmp_preview=true&theme=hardwork" target="_blank">Click for preview of Hardwork Theme >></a>
 
22
  <a href="http://cmp.niteothemes.com/?cmp_preview=true&theme=hardwork_premium" target="_blank">Click for preview of Hardwork Premium Theme >></a>
23
  <a href="http://cmp.niteothemes.com/?cmp_preview=true&theme=frame" target="_blank">Click for preview of Frame Theme >></a>
24
  <a href="http://cmp.niteothemes.com/?cmp_preview=true&theme=fifty" target="_blank">Click for preview of Fifty Theme >></a>
25
 
26
  <h3>Features</h3>
27
  <ul>
28
- <li>Works with any WordPress Theme</li>
29
  <li>Responsive and Retina ready</li>
30
- <li>Works on all devices</li>
31
- <li>Setup custom Social Icons</li>
32
  <li>Customize Logo, Fonts and Colors</li>
33
- <li>Subscribe form works with any 3rd party plugin(Mailchimp, etc)</li>
 
34
  <li>Custom Subscribe form to store emails in custom database with export to csv</li>
35
  <li>Select and Display random beautiful images from <a href="http://unsplash.com" target="_blank">Unsplash source</a> with built-in search API or use custom photos</li>
36
  <li>Video background options: Youtube or Vimeo</li>
@@ -112,6 +112,13 @@ Free plugin to create and customize your own Coming Soon or Maintenance landing
112
 
113
 
114
  == Changelog ==
 
 
 
 
 
 
 
115
  <h4>1.9.0</h4>
116
  <ul>
117
  <li>New Feature: Video background option</li>
4
  Tags: under construction, construction page, maintenance mode, landing page, launch page, launching, security, coming soon, customizable, offline, offline page, unavailable, free, unsplash, subscribe form
5
  Requires at least: 3.0
6
  Tested up to: 4.8
7
+ Stable tag: 1.10.0
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
10
 
17
  <h3>Preview</h3>
18
  <a href="http://cmp.niteothemes.com/?cmp_preview=true&theme=hardwork&video=true" target="_blank">Click for preview of Hardwork Theme with video background>></a>
19
  <a href="http://cmp.niteothemes.com/?cmp_preview=true&theme=countdown" target="_blank">Click for preview of Countdown Theme >></a>
20
+ <a href="http://cmp.niteothemes.com/?cmp_preview=true&theme=construct" target="_blank">Click for preview of Construct Theme >></a>
21
  <a href="http://cmp.niteothemes.com/?cmp_preview=true&theme=hardwork" target="_blank">Click for preview of Hardwork Theme >></a>
22
+ <a href="http://cmp.niteothemes.com/?cmp_preview=true&theme=postery" target="_blank">Click for preview of Postery Theme >></a>
23
  <a href="http://cmp.niteothemes.com/?cmp_preview=true&theme=hardwork_premium" target="_blank">Click for preview of Hardwork Premium Theme >></a>
24
  <a href="http://cmp.niteothemes.com/?cmp_preview=true&theme=frame" target="_blank">Click for preview of Frame Theme >></a>
25
  <a href="http://cmp.niteothemes.com/?cmp_preview=true&theme=fifty" target="_blank">Click for preview of Fifty Theme >></a>
26
 
27
  <h3>Features</h3>
28
  <ul>
29
+ <li>Works with any WordPress Theme and on all devices</li>
30
  <li>Responsive and Retina ready</li>
 
 
31
  <li>Customize Logo, Fonts and Colors</li>
32
+ <li>Setup custom Social Icons</li>
33
+ <li>Subscribe form works with any 3rd party plugin(Mailchimp, CF7, etc)</li>
34
  <li>Custom Subscribe form to store emails in custom database with export to csv</li>
35
  <li>Select and Display random beautiful images from <a href="http://unsplash.com" target="_blank">Unsplash source</a> with built-in search API or use custom photos</li>
36
  <li>Video background options: Youtube or Vimeo</li>
112
 
113
 
114
  == Changelog ==
115
+ <h4>1.10.0</h4>
116
+ <ul>
117
+ <li>New free theme: Postery! Enjoy new free Theme with modern design and 3D animation! We hope you like as we do :)</li>
118
+ <li>Bug fixes: an awkward bug when the settings for background color did not work.</li>
119
+ <li>Small UI changes in CMP Settings page.</li>
120
+ </ul>
121
+
122
  <h4>1.9.0</h4>
123
  <ul>
124
  <li>New Feature: Video background option</li>
sftp-config.json ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ // The tab key will cycle through the settings when first created
3
+ // Visit http://wbond.net/sublime_packages/sftp/settings for help
4
+
5
+ // sftp, ftp or ftps
6
+ "type": "ftp",
7
+
8
+ "save_before_upload": true,
9
+ "upload_on_save": true,
10
+ "sync_down_on_open": false,
11
+ "sync_skip_deletes": false,
12
+ "sync_same_age": true,
13
+ "confirm_downloads": false,
14
+ "confirm_sync": true,
15
+ "confirm_overwrite_newer": false,
16
+
17
+ "host": "ftp.cluster010.ovh.net",
18
+ "user": "noelamar",
19
+ "password": "Lapinbleu13",
20
+ "port": "21",
21
+
22
+ "remote_path": "/www/design/wp-content/plugins/1.10.0",
23
+ "ignore_regexes": [
24
+ "\\.sublime-(project|workspace)", "sftp-config(-alt\\d?)?\\.json",
25
+ "sftp-settings\\.json", "/venv/", "\\.svn/", "\\.hg/", "\\.git/",
26
+ "\\.bzr", "_darcs", "CVS", "\\.DS_Store", "Thumbs\\.db", "desktop\\.ini"
27
+ ],
28
+ //"file_permissions": "664",
29
+ //"dir_permissions": "775",
30
+
31
+ //"extra_list_connections": 0,
32
+
33
+ "connect_timeout": 30,
34
+ //"keepalive": 120,
35
+ //"ftp_passive_mode": true,
36
+ //"ftp_obey_passive_host": false,
37
+ //"ssh_key_file": "~/.ssh/id_rsa",
38
+ //"sftp_flags": ["-F", "/path/to/ssh_config"],
39
+
40
+ //"preserve_modification_times": false,
41
+ //"remote_time_offset_in_hours": 0,
42
+ //"remote_encoding": "utf-8",
43
+ //"remote_locale": "C",
44
+ //"allow_config_upload": false,
45
+ }
themes/construct/construct-defaults.php CHANGED
@@ -1,6 +1,15 @@
1
  <?php
2
  defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
3
 
 
 
 
 
 
 
 
 
 
4
  $niteoCS_banner = get_option('niteoCS_banner['.$themeslug.']', '2');
5
 
6
  $niteoCS_font_headings = get_option('niteoCS_font_headings['.$themeslug.']', 'Fjalla One');
1
  <?php
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
  $niteoCS_banner = get_option('niteoCS_banner['.$themeslug.']', '2');
14
 
15
  $niteoCS_font_headings = get_option('niteoCS_font_headings['.$themeslug.']', 'Fjalla One');
themes/construct/construct-settings.php CHANGED
@@ -8,16 +8,16 @@ if ( $_SERVER['REQUEST_METHOD'] == 'POST' ) {
8
  }
9
 
10
 
11
- if ( isset($_POST['niteoCS_active_color_construct']) ) {
12
- update_option('niteoCS_active_color[construct]', sanitize_hex_color( $_POST['niteoCS_active_color_construct']));
13
  }
14
 
15
- if ( isset($_POST['niteoCS_font_color_construct']) ) {
16
- update_option('niteoCS_font_color[construct]', sanitize_hex_color($_POST['niteoCS_font_color_construct']));
17
  }
18
 
19
- if ( isset($_POST['niteoCS_background_color_construct']) ) {
20
- update_option('niteoCS_background_color[construct]', sanitize_hex_color($_POST['niteoCS_background_color_construct']));
21
  }
22
 
23
  $niteoCS_active_color = get_option('niteoCS_active_color['.$themeslug.']', '#f37004');
@@ -32,7 +32,7 @@ $niteoCS_background_color = get_option('niteoCS_background_color['.$themeslug.
32
  <th><h4><?php _e('Active Color', 'cmp-coming-soon-maintenance');?></h4></th>
33
  <td>
34
  <fieldset>
35
- <input type="text" name="niteoCS_active_color_construct" id="niteoCS_active_color" value="<?php echo esc_attr( $niteoCS_active_color); ?>" data-default-color="#f37004" class="regular-text code"><br>
36
  <span><?php _e('Headings and active elements color (buttons, hover links, etc).', 'cmp-coming-soon-maintenance');?></span>
37
  </fieldset>
38
  </td>
@@ -41,7 +41,7 @@ $niteoCS_background_color = get_option('niteoCS_background_color['.$themeslug.
41
  <th><h4><?php _e('Font Color', 'cmp-coming-soon-maintenance');?></h4></th>
42
  <td>
43
  <fieldset>
44
- <input type="text" name="niteoCS_font_color_construct" id="niteoCS_font_color" value="<?php echo esc_attr( $niteoCS_font_color); ?>" data-default-color="#686868" class="regular-text code"><br>
45
  </fieldset>
46
  </td>
47
  </tr>
@@ -49,7 +49,7 @@ $niteoCS_background_color = get_option('niteoCS_background_color['.$themeslug.
49
  <th><h4><?php _e('Background Color', 'cmp-coming-soon-maintenance');?></h4></th>
50
  <td>
51
  <fieldset>
52
- <input type="text" name="niteoCS_background_color_construct" id="niteoCS_background_color" value="<?php echo esc_attr( $niteoCS_background_color); ?>" data-default-color="#ffffff" class="regular-text code"><br>
53
  </fieldset>
54
  </td>
55
  </tr>
8
  }
9
 
10
 
11
+ if ( isset($_POST['niteoCS_active_color_'.$themeslug]) ) {
12
+ update_option('niteoCS_active_color['.$themeslug.']', sanitize_hex_color( $_POST['niteoCS_active_color_'.$themeslug]));
13
  }
14
 
15
+ if ( isset($_POST['niteoCS_font_color_'.$themeslug]) ) {
16
+ update_option('niteoCS_font_color['.$themeslug.']', sanitize_hex_color($_POST['niteoCS_font_color_'.$themeslug]));
17
  }
18
 
19
+ if ( isset($_POST['niteoCS_background_color_'.$themeslug]) ) {
20
+ update_option('niteoCS_background_color['.$themeslug.']', sanitize_hex_color($_POST['niteoCS_background_color_'.$themeslug]));
21
  }
22
 
23
  $niteoCS_active_color = get_option('niteoCS_active_color['.$themeslug.']', '#f37004');
32
  <th><h4><?php _e('Active Color', 'cmp-coming-soon-maintenance');?></h4></th>
33
  <td>
34
  <fieldset>
35
+ <input type="text" name="niteoCS_active_color_<?php echo esc_attr($themeslug);?>" id="niteoCS_active_color" value="<?php echo esc_attr( $niteoCS_active_color); ?>" data-default-color="#f37004" class="regular-text code"><br>
36
  <span><?php _e('Headings and active elements color (buttons, hover links, etc).', 'cmp-coming-soon-maintenance');?></span>
37
  </fieldset>
38
  </td>
41
  <th><h4><?php _e('Font Color', 'cmp-coming-soon-maintenance');?></h4></th>
42
  <td>
43
  <fieldset>
44
+ <input type="text" name="niteoCS_font_color_<?php echo esc_attr($themeslug);?>" id="niteoCS_font_color" value="<?php echo esc_attr( $niteoCS_font_color); ?>" data-default-color="#686868" class="regular-text code"><br>
45
  </fieldset>
46
  </td>
47
  </tr>
49
  <th><h4><?php _e('Background Color', 'cmp-coming-soon-maintenance');?></h4></th>
50
  <td>
51
  <fieldset>
52
+ <input type="text" name="niteoCS_background_color_<?php echo esc_attr($themeslug);?>" id="niteoCS_background_color" value="<?php echo esc_attr( $niteoCS_background_color); ?>" data-default-color="#ffffff" class="regular-text code"><br>
53
  </fieldset>
54
  </td>
55
  </tr>
themes/construct/construct-theme.php CHANGED
@@ -3,8 +3,7 @@
3
  $subscribe_response = $this->niteo_subscribe( $_POST['EMAIL'] );
4
  }
5
 
6
- $ver = '1.8';
7
- $themeslug = 'construct';
8
 
9
  ?>
10
 
@@ -18,7 +17,11 @@
18
  <!-- SEO -->
19
  <meta name="description" content="<?php echo esc_html( stripslashes(get_option('niteoCS_descr', 'Just another Coming Soon Page')) ); ?>">
20
  <title><?php echo esc_html( stripslashes(get_option('niteoCS_title', get_bloginfo('name').' Coming soon!')) ); ?></title>
 
21
  <?php
 
 
 
22
  // get theme related settings
23
  $active_color = get_option('niteoCS_active_color['.$themeslug.']', '#f37004');
24
  $font_color = get_option('niteoCS_font_color['.$themeslug.']', '#686868');
@@ -27,8 +30,6 @@
27
  $content_font = get_option('niteoCS_font_content['.$themeslug.']', 'Average Sans');
28
  $logo_type = get_option('niteoCS_logo_type['.$themeslug.']', 'text');
29
 
30
- $niteoCS_banner = get_option('niteoCS_banner['.$themeslug.']', '2');
31
-
32
  if ( $heading_font == 'custom' ) {
33
  $heading_font = get_option('niteoCS_font_headings_custom['.$themeslug.']');
34
  }
@@ -46,6 +47,7 @@
46
  $favicon_id = get_option('niteoCS_favicon_id');
47
 
48
  // get background media
 
49
  if ( method_exists ( $this, 'get_background_media' ) ) {
50
  $background_media = $this->get_background_media( $niteoCS_banner, $themeslug);
51
  $background_class = $background_media[0];
@@ -152,11 +154,6 @@
152
  </script>
153
  <?php
154
  }
155
- // echo solid color style if $banner_url is set to color
156
- if ( $niteoCS_banner == 4) {
157
- echo $banner_url;
158
- }
159
-
160
  // echo pattern copyright
161
  if ( $niteoCS_banner == 3 ) {
162
  echo '<!-- Background pattern from Subtle Patterns --!>';
@@ -171,27 +168,27 @@
171
  <body>
172
  <section class="section section-logo">
173
  <?php
174
- switch ( $logo_type ) {
175
- case 'graphic':
176
- // get logo id
177
- $logo_id = get_option('niteoCS_logo_id['.$themeslug.']');
178
- // get logo
179
- if ( $logo_id != '' ) {
180
- $logo_url = wp_get_attachment_image_src( $logo_id, $size);
181
- }
182
- if ( isset($logo_url[0]) ) { ?>
183
- <img src="<?php echo esc_url( $logo_url[0] ); ?>" alt="logo">
184
- <?php
185
- }
186
- break;
187
- case 'text':
188
- $text_logo = get_option('niteoCS_text_logo['.$themeslug.']', get_bloginfo( 'name', 'display' )); ?>
189
- <h1><?php echo esc_html($text_logo); ?></h1>
190
- <?php
191
- case 'disabled':
192
- default:
193
- break;
194
- } ?>
195
  </section>
196
 
197
  <section class="section section-banner" id="banner-wrapper">
@@ -201,12 +198,14 @@
201
  // custom media / default / pattern / color
202
  case '0':
203
  case '2':
204
- case '3':
205
- case '4': ?>
206
  <div class="banner <?php echo esc_attr($background_class);?>" style="background-image:url('<?php echo esc_url( $banner_url ); ?>')"></div>
207
  <?php
208
  break;
209
-
 
 
 
210
  // unsplash media
211
  case '1': ?>
212
  <script>
@@ -308,7 +307,7 @@
308
  <?php
309
  }
310
 
311
- if ( $niteoCS_banner != 5 ) { ?>
312
  <script type='text/javascript' src='<?php echo plugin_dir_url( dirname( __FILE__ ) ) . $themeslug .'/paraxify.min.js';?>'></script>
313
  <?php
314
 
3
  $subscribe_response = $this->niteo_subscribe( $_POST['EMAIL'] );
4
  }
5
 
6
+
 
7
 
8
  ?>
9
 
17
  <!-- SEO -->
18
  <meta name="description" content="<?php echo esc_html( stripslashes(get_option('niteoCS_descr', 'Just another Coming Soon Page')) ); ?>">
19
  <title><?php echo esc_html( stripslashes(get_option('niteoCS_title', get_bloginfo('name').' Coming soon!')) ); ?></title>
20
+
21
  <?php
22
+ $ver = '1.8';
23
+ $themeslug = 'construct';
24
+ $size = $this->isMobile() ? 'large' : 'full';
25
  // get theme related settings
26
  $active_color = get_option('niteoCS_active_color['.$themeslug.']', '#f37004');
27
  $font_color = get_option('niteoCS_font_color['.$themeslug.']', '#686868');
30
  $content_font = get_option('niteoCS_font_content['.$themeslug.']', 'Average Sans');
31
  $logo_type = get_option('niteoCS_logo_type['.$themeslug.']', 'text');
32
 
 
 
33
  if ( $heading_font == 'custom' ) {
34
  $heading_font = get_option('niteoCS_font_headings_custom['.$themeslug.']');
35
  }
47
  $favicon_id = get_option('niteoCS_favicon_id');
48
 
49
  // get background media
50
+ $niteoCS_banner = get_option('niteoCS_banner['.$themeslug.']', '2');
51
  if ( method_exists ( $this, 'get_background_media' ) ) {
52
  $background_media = $this->get_background_media( $niteoCS_banner, $themeslug);
53
  $background_class = $background_media[0];
154
  </script>
155
  <?php
156
  }
 
 
 
 
 
157
  // echo pattern copyright
158
  if ( $niteoCS_banner == 3 ) {
159
  echo '<!-- Background pattern from Subtle Patterns --!>';
168
  <body>
169
  <section class="section section-logo">
170
  <?php
171
+ switch ( $logo_type ) {
172
+ case 'graphic':
173
+ // get logo id
174
+ $logo_id = get_option('niteoCS_logo_id['.$themeslug.']');
175
+ // get logo
176
+ if ( $logo_id != '' ) {
177
+ $logo_url = wp_get_attachment_image_src( $logo_id, $size );
178
+ }
179
+ if ( isset($logo_url[0]) ) { ?>
180
+ <img src="<?php echo esc_url( $logo_url[0] ); ?>" alt="logo">
181
+ <?php
182
+ }
183
+ break;
184
+ case 'text':
185
+ $text_logo = get_option('niteoCS_text_logo['.$themeslug.']', get_bloginfo( 'name', 'display' )); ?>
186
+ <h1><?php echo esc_html($text_logo); ?></h1>
187
+ <?php
188
+ case 'disabled':
189
+ default:
190
+ break;
191
+ } ?>
192
  </section>
193
 
194
  <section class="section section-banner" id="banner-wrapper">
198
  // custom media / default / pattern / color
199
  case '0':
200
  case '2':
201
+ case '3': ?>
 
202
  <div class="banner <?php echo esc_attr($background_class);?>" style="background-image:url('<?php echo esc_url( $banner_url ); ?>')"></div>
203
  <?php
204
  break;
205
+ case '4': ?>
206
+ <div class="banner <?php echo esc_attr($background_class);?>" style="background-color:<?php echo esc_url( $banner_url ); ?>"></div>
207
+ <?php
208
+ break;
209
  // unsplash media
210
  case '1': ?>
211
  <script>
307
  <?php
308
  }
309
 
310
+ if ( $niteoCS_banner != 5 && $niteoCS_banner != 4 ) { ?>
311
  <script type='text/javascript' src='<?php echo plugin_dir_url( dirname( __FILE__ ) ) . $themeslug .'/paraxify.min.js';?>'></script>
312
  <?php
313
 
themes/construct/style.css CHANGED
@@ -3,7 +3,7 @@ Theme Name: Construct
3
  Theme URI: http://cmp.niteothemes.com/?cmp_preview=true&theme=construct
4
  Author: Niteo
5
  Author URI: https://niteothemes.com
6
- Version: 1.8
7
  Details URI: {"1": "https:\/\/niteothemes.com\/cmp-screenshots\/construct\/screenshot1.jpg"}
8
  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>Custom paralax banner</li><li>Subscribe form</li><li>Responsive design</li></ul>
9
 
@@ -49,11 +49,12 @@ h1,h2,h3,h4,h5,h6{font-weight: 400;font-size:2em;}
49
  .social-list li{list-style: none;display: inline-block; padding: 0 5px;}
50
  .section-body form{max-width: 400px;margin: 0 auto;margin-top: 70px;margin-bottom: 30px;text-align:left;}
51
  .section-body form br {display: none;}
52
- label {display: block;padding-bottom: 5px;text-indent: 15px;}
53
- input[type="email"] {width:280px;background-color: #f8f8f8;text-indent: 15px;font-style: italic;border: 1px solid #dcdcdc; border-top-left-radius:5px;border-bottom-left-radius:5px;}
54
- input[type="submit"] {padding: 0;margin-left:-7px;width: 120px;color: white;font-weight:700;border: none;border-top-right-radius:5px;border-bottom-right-radius:5px;letter-spacing: 1px;cursor:pointer;}
55
  input[type="email"],
56
- input[type="submit"] {display: inline-block;line-height: 4em;height: 4em;box-sizing: border-box;vertical-align: middle;}
 
 
57
  .social-list a{display: block;height: 3em;width: 3em;line-height: 3em;background: transparent;-webkit-transition: background 300ms linear;-o-transition: background 300ms linear;transition: background 300ms linear;border-radius: 5px;}
58
  .social-list i{font-size: 2em;-webkit-transition: all 300ms linear;-o-transition: all 300ms linear;transition: all 300ms linear;vertical-align: middle;}
59
  .social-list a:hover i {-webkit-animation: spin 300ms linear;-moz-animation: spin 300ms linear;animation: spin 300ms linear;color:#fff;}
3
  Theme URI: http://cmp.niteothemes.com/?cmp_preview=true&theme=construct
4
  Author: Niteo
5
  Author URI: https://niteothemes.com
6
+ Version: 1.9
7
  Details URI: {"1": "https:\/\/niteothemes.com\/cmp-screenshots\/construct\/screenshot1.jpg"}
8
  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>Custom paralax banner</li><li>Subscribe form</li><li>Responsive design</li></ul>
9
 
49
  .social-list li{list-style: none;display: inline-block; padding: 0 5px;}
50
  .section-body form{max-width: 400px;margin: 0 auto;margin-top: 70px;margin-bottom: 30px;text-align:left;}
51
  .section-body form br {display: none;}
52
+ label {display: block;padding-bottom: 5px;text-indent: 15px;font-size:.8em;}
53
+ input {display: inline-block;line-height: 4em;height: 4em;box-sizing: border-box;vertical-align: middle;margin-bottom: 10px;}
 
54
  input[type="email"],
55
+ input[type="text"] {width:280px;background-color: #f8f8f8;text-indent: 15px;font-style: italic;border: 1px solid #dcdcdc; border-top-left-radius:5px;border-bottom-left-radius:5px;}
56
+ input[type="submit"] {padding: 0;margin-left:-7px;width: 120px;color: white;font-weight:700;border: none;border-top-right-radius:5px;border-bottom-right-radius:5px;letter-spacing: 1px;cursor:pointer;}
57
+ input[type="text"] {width: calc(100% - 2px);border-radius:5px;}
58
  .social-list a{display: block;height: 3em;width: 3em;line-height: 3em;background: transparent;-webkit-transition: background 300ms linear;-o-transition: background 300ms linear;transition: background 300ms linear;border-radius: 5px;}
59
  .social-list i{font-size: 2em;-webkit-transition: all 300ms linear;-o-transition: all 300ms linear;transition: all 300ms linear;vertical-align: middle;}
60
  .social-list a:hover i {-webkit-animation: spin 300ms linear;-moz-animation: spin 300ms linear;animation: spin 300ms linear;color:#fff;}
themes/countdown/countdown-defaults.php CHANGED
@@ -1,6 +1,15 @@
1
  <?php
2
  defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
3
 
 
 
 
 
 
 
 
 
 
4
  $niteoCS_banner = get_option('niteoCS_banner['.$themeslug.']', '1');
5
  $niteoCS_font_headings = get_option('niteoCS_font_headings['.$themeslug.']', 'Raleway');
6
  $niteoCS_font_content = get_option('niteoCS_font_content['.$themeslug.']', 'Raleway');
1
  <?php
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
  $niteoCS_banner = get_option('niteoCS_banner['.$themeslug.']', '1');
14
  $niteoCS_font_headings = get_option('niteoCS_font_headings['.$themeslug.']', 'Raleway');
15
  $niteoCS_font_content = get_option('niteoCS_font_content['.$themeslug.']', 'Raleway');
themes/countdown/countdown-settings.php CHANGED
@@ -9,20 +9,20 @@ if ( $_SERVER['REQUEST_METHOD'] == 'POST' ) {
9
  }
10
 
11
 
12
- if (isset($_POST['niteoCS_active_color_countdown'])) {
13
- update_option('niteoCS_active_color[countdown]', sanitize_hex_color($_POST['niteoCS_active_color_countdown']));
14
  }
15
 
16
- if (isset($_POST['niteoCS_font_color_countdown'])) {
17
- update_option('niteoCS_font_color[countdown]', sanitize_hex_color($_POST['niteoCS_font_color_countdown']));
18
  }
19
 
20
- if (isset($_POST['niteoCS_overlay_color_countdown'])) {
21
- update_option('niteoCS_overlay_color[countdown]', sanitize_hex_color($_POST['niteoCS_overlay_color_countdown']));
22
  }
23
 
24
- if (isset($_POST['niteoCS_overlay_opacity_countdown'])) {
25
- update_option('niteoCS_overlay_opacity[countdown]', sanitize_text_field($_POST['niteoCS_overlay_opacity_countdown']));
26
  }
27
 
28
 
@@ -48,7 +48,7 @@ $niteoCS_overlay_opacity = get_option('niteoCS_overlay_opacity['.$themeslug.']'
48
  <td>
49
 
50
  <fieldset>
51
- <input type="text" name="niteoCS_active_color_countdown" id="niteoCS_active_color" value="<?php echo esc_attr( $niteoCS_active_color); ?>" data-default-color="#e82e1e" class="regular-text code"><br>
52
  </fieldset>
53
 
54
  </td>
@@ -58,7 +58,7 @@ $niteoCS_overlay_opacity = get_option('niteoCS_overlay_opacity['.$themeslug.']'
58
  <td>
59
 
60
  <fieldset>
61
- <input type="text" name="niteoCS_font_color_countdown" id="niteoCS_font_color" value="<?php echo esc_attr( $niteoCS_font_color); ?>" data-default-color="#ffffff" class="regular-text code"><br>
62
  </fieldset>
63
  </td>
64
  </tr>
@@ -67,10 +67,10 @@ $niteoCS_overlay_opacity = get_option('niteoCS_overlay_opacity['.$themeslug.']'
67
  <td>
68
 
69
  <fieldset id="overlay-color">
70
- <input type="text" name="niteoCS_overlay_color_countdown" id="niteoCS_overlay_color" value="<?php echo esc_attr( $niteoCS_overlay_color); ?>" data-default-color="#0a0a0a" class="regular-text code"><br>
71
 
72
  <label for="niteoCS_overlay_opacity"><?php _e('Overlay Opacity', 'cmp');?> <span id="current-opacity">: <?php echo esc_attr( $niteoCS_overlay_opacity); ?></span></label><br>
73
- <input type="range" id="niteoCS_overlay_opacity" name="niteoCS_overlay_opacity_countdown" min="0" max="1" step="0.1"value="<?php echo esc_attr( $niteoCS_overlay_opacity); ?>" />
74
 
75
  </fieldset>
76
  </td>
9
  }
10
 
11
 
12
+ if (isset($_POST['niteoCS_active_color_'.$themeslug])) {
13
+ update_option('niteoCS_active_color['.$themeslug.']', sanitize_hex_color($_POST['niteoCS_active_color_'.$themeslug]));
14
  }
15
 
16
+ if (isset($_POST['niteoCS_font_color_'.$themeslug])) {
17
+ update_option('niteoCS_font_color['.$themeslug.']', sanitize_hex_color($_POST['niteoCS_font_color_'.$themeslug]));
18
  }
19
 
20
+ if (isset($_POST['niteoCS_overlay_color_'.$themeslug])) {
21
+ update_option('niteoCS_overlay_color['.$themeslug.']', sanitize_hex_color($_POST['niteoCS_overlay_color_'.$themeslug]));
22
  }
23
 
24
+ if (isset($_POST['niteoCS_overlay_opacity_'.$themeslug])) {
25
+ update_option('niteoCS_overlay_opacity['.$themeslug.']', sanitize_text_field($_POST['niteoCS_overlay_opacity_'.$themeslug]));
26
  }
27
 
28
 
48
  <td>
49
 
50
  <fieldset>
51
+ <input type="text" name="niteoCS_active_color_<?php echo esc_attr($themeslug);?>" id="niteoCS_active_color" value="<?php echo esc_attr( $niteoCS_active_color); ?>" data-default-color="#e82e1e" class="regular-text code"><br>
52
  </fieldset>
53
 
54
  </td>
58
  <td>
59
 
60
  <fieldset>
61
+ <input type="text" name="niteoCS_font_color_<?php echo esc_attr($themeslug);?>" id="niteoCS_font_color" value="<?php echo esc_attr( $niteoCS_font_color); ?>" data-default-color="#ffffff" class="regular-text code"><br>
62
  </fieldset>
63
  </td>
64
  </tr>
67
  <td>
68
 
69
  <fieldset id="overlay-color">
70
+ <input type="text" name="niteoCS_overlay_color_<?php echo esc_attr($themeslug);?>" id="niteoCS_overlay_color" value="<?php echo esc_attr( $niteoCS_overlay_color); ?>" data-default-color="#0a0a0a" class="regular-text code"><br>
71
 
72
  <label for="niteoCS_overlay_opacity"><?php _e('Overlay Opacity', 'cmp');?> <span id="current-opacity">: <?php echo esc_attr( $niteoCS_overlay_opacity); ?></span></label><br>
73
+ <input type="range" id="niteoCS_overlay_opacity" name="niteoCS_overlay_opacity_<?php echo esc_attr($themeslug);?>" min="0" max="1" step="0.1"value="<?php echo esc_attr( $niteoCS_overlay_opacity); ?>" />
74
 
75
  </fieldset>
76
  </td>
themes/countdown/countdown-theme.php CHANGED
@@ -17,7 +17,7 @@
17
  <?php
18
  $ver = '1.4';
19
  $themeslug = 'countdown';
20
-
21
  // get theme related settings
22
  $niteoCS_active_color = get_option('niteoCS_active_color['.$themeslug.']', '#E85C4F');
23
  $niteoCS_font_color = get_option('niteoCS_font_color['.$themeslug.']', '#ffffff');
@@ -181,12 +181,15 @@
181
  // custom media / default / pattern / color
182
  case '0':
183
  case '2':
184
- case '3':
185
- case '4': ?>
186
  <div id="background-image" class="<?php echo esc_attr($background_class);?>" style="background-image:url('<?php echo esc_url( $banner_url ); ?>')"></div>
187
  <?php
188
  break;
189
 
 
 
 
 
190
  // unsplash media
191
  case '1': ?>
192
  <script>
@@ -221,13 +224,14 @@
221
  <div class="inner-content">
222
  <div class="logo">
223
  <?php
 
224
  switch ($logo_type) {
225
  case 'graphic':
226
  // get logo id
227
  $logo_id = get_option('niteoCS_logo_id['.$themeslug.']');
228
  // get logo
229
  if ( $logo_id != '' ) {
230
- $logo_url = wp_get_attachment_image_src( $logo_id, $size);
231
  }
232
  if ( isset($logo_url[0]) ) { ?>
233
  <img src="<?php echo esc_url( $logo_url[0] ); ?>" alt="logo">
17
  <?php
18
  $ver = '1.4';
19
  $themeslug = 'countdown';
20
+ $size = $this->isMobile() ? 'large' : 'full';
21
  // get theme related settings
22
  $niteoCS_active_color = get_option('niteoCS_active_color['.$themeslug.']', '#E85C4F');
23
  $niteoCS_font_color = get_option('niteoCS_font_color['.$themeslug.']', '#ffffff');
181
  // custom media / default / pattern / color
182
  case '0':
183
  case '2':
184
+ case '3': ?>
 
185
  <div id="background-image" class="<?php echo esc_attr($background_class);?>" style="background-image:url('<?php echo esc_url( $banner_url ); ?>')"></div>
186
  <?php
187
  break;
188
 
189
+ case '4': ?>
190
+ <div id="background-image" class="<?php echo esc_attr($background_class);?>" style="background-color:<?php echo esc_url( $banner_url ); ?>"></div>
191
+ <?php
192
+ break;
193
  // unsplash media
194
  case '1': ?>
195
  <script>
224
  <div class="inner-content">
225
  <div class="logo">
226
  <?php
227
+
228
  switch ($logo_type) {
229
  case 'graphic':
230
  // get logo id
231
  $logo_id = get_option('niteoCS_logo_id['.$themeslug.']');
232
  // get logo
233
  if ( $logo_id != '' ) {
234
+ $logo_url = wp_get_attachment_image_src( $logo_id, $size );
235
  }
236
  if ( isset($logo_url[0]) ) { ?>
237
  <img src="<?php echo esc_url( $logo_url[0] ); ?>" alt="logo">
themes/countdown/style.css CHANGED
@@ -445,10 +445,20 @@ footer {
445
  display: none;
446
  }
447
 
 
 
 
 
 
 
 
 
 
448
  label {
449
  display: block;
450
  text-align: left;
451
- padding-bottom: 10px;
 
452
  }
453
 
454
  .input-icon {
@@ -470,7 +480,8 @@ input[type="email"].subscribe-input {
470
  input:focus {
471
  border: 1px solid #ffffff;
472
  }
473
- input[type="email"] {
 
474
  width: 75%;
475
  background-color: #ffffff;
476
  text-indent: 15px;
@@ -478,6 +489,10 @@ input[type="email"] {
478
  border: 1px solid #dcdcdc;
479
 
480
  }
 
 
 
 
481
  input[type="submit"] {
482
  width: 25%;
483
  padding: 0;
@@ -489,13 +504,17 @@ input[type="submit"] {
489
  cursor:pointer;
490
  text-transform: uppercase;
491
  }
492
- input[type="email"],
493
- input[type="submit"] {
 
 
494
  display: inline-block;
495
- line-height: 3em;
496
- height: 3em;
497
- box-sizing: border-box;
498
- vertical-align: middle;
 
 
499
  }
500
 
501
  #counter {
445
  display: none;
446
  }
447
 
448
+ input {
449
+ display: inline-block;
450
+ line-height: 3em;
451
+ height: 3em;
452
+ box-sizing: border-box;
453
+ vertical-align: middle;
454
+ margin-bottom: 10px;
455
+ }
456
+
457
  label {
458
  display: block;
459
  text-align: left;
460
+ font-size: .8em;
461
+ padding: 0 0 5px 15px;
462
  }
463
 
464
  .input-icon {
480
  input:focus {
481
  border: 1px solid #ffffff;
482
  }
483
+ input[type="email"],
484
+ input[type="text"] {
485
  width: 75%;
486
  background-color: #ffffff;
487
  text-indent: 15px;
489
  border: 1px solid #dcdcdc;
490
 
491
  }
492
+
493
+ input[type="text"] {
494
+ width: 100%;
495
+ }
496
  input[type="submit"] {
497
  width: 25%;
498
  padding: 0;
504
  cursor:pointer;
505
  text-transform: uppercase;
506
  }
507
+
508
+
509
+ /* wpcf7-form */
510
+ .wpcf7-form label {
511
  display: inline-block;
512
+ width: 75%;
513
+ }
514
+
515
+ .wpcf7-form input[type="email"] {
516
+ width: 100%;
517
+ border-right: none!important;
518
  }
519
 
520
  #counter {
themes/hardwork/hardwork-defaults.php CHANGED
@@ -1,9 +1,19 @@
1
  <?php
2
  defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
3
 
 
 
 
 
 
 
 
 
 
 
4
  $niteoCS_banner = get_option('niteoCS_banner['.$themeslug.']', '4');
5
  $niteoCS_font_headings = get_option('niteoCS_font_headings['.$themeslug.']', 'Playfair Display');
6
- $niteoCS_font_content = get_option('niteoCS_font_content['.$themeslug.']', 'Montserrat');
7
  $niteoCS_banner_color = get_option('niteoCS_banner_color['.$themeslug.']', '#ffffff');
8
 
9
  $niteoCS_font_color = get_option('niteoCS_font_color['.$themeslug.']', '#494949');
1
  <?php
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
+
14
  $niteoCS_banner = get_option('niteoCS_banner['.$themeslug.']', '4');
15
  $niteoCS_font_headings = get_option('niteoCS_font_headings['.$themeslug.']', 'Playfair Display');
16
+ $niteoCS_font_content = get_option('niteoCS_font_content['.$themeslug.']', 'Roboto Slab');
17
  $niteoCS_banner_color = get_option('niteoCS_banner_color['.$themeslug.']', '#ffffff');
18
 
19
  $niteoCS_font_color = get_option('niteoCS_font_color['.$themeslug.']', '#494949');
themes/hardwork/hardwork-settings.php CHANGED
@@ -9,25 +9,25 @@ if ( $_SERVER['REQUEST_METHOD'] == 'POST' ) {
9
  }
10
 
11
 
12
- if (isset($_POST['niteoCS_font_color_hardwork'])) {
13
- update_option('niteoCS_font_color[hardwork]', sanitize_hex_color($_POST['niteoCS_font_color_hardwork']));
14
- $niteoCS_font_color = get_option('niteoCS_font_color[hardwork]');
15
  }
16
 
17
 
18
- if (isset($_POST['niteoCS_overlay_color_hardwork'])) {
19
- update_option('niteoCS_overlay_color[hardwork]', sanitize_hex_color($_POST['niteoCS_overlay_color_hardwork']));
20
- $niteoCS_overlay_color = get_option('niteoCS_overlay_color[hardwork]');
21
  }
22
 
23
- if (isset($_POST['niteoCS_overlay_opacity_hardwork'])) {
24
- update_option('niteoCS_overlay_opacity[hardwork]', sanitize_text_field($_POST['niteoCS_overlay_opacity_hardwork']));
25
- $niteoCS_overlay_opacity = get_option('niteoCS_overlay_opacity[hardwork]');
26
  }
27
 
28
  $niteoCS_font_color = get_option('niteoCS_font_color['.$themeslug.']', '#494949');
29
  $niteoCS_overlay_color = get_option('niteoCS_overlay_color['.$themeslug.']', '#0a0a0a');
30
- $niteoCS_overlay_opacity_hardwork = get_option('niteoCS_overlay_opacity['.$themeslug.']', '0.0');
31
 
32
  ?>
33
 
@@ -45,7 +45,7 @@ $niteoCS_overlay_opacity_hardwork = get_option('niteoCS_overlay_opacity['.$theme
45
  <th><h4><?php _e('Font Color', 'cmp-coming-soon-maintenance');?></h4></th>
46
  <td>
47
  <fieldset>
48
- <input type="text" name="niteoCS_font_color_hardwork" id="niteoCS_font_color" value="<?php echo esc_attr( $niteoCS_font_color); ?>" data-default-color="#ffffff" class="regular-text code"><br>
49
  </fieldset>
50
  </td>
51
  </tr>
@@ -53,10 +53,10 @@ $niteoCS_overlay_opacity_hardwork = get_option('niteoCS_overlay_opacity['.$theme
53
  <th><h4><?php _e('Overlay Color', 'cmp-coming-soon-maintenance');?></h4></th>
54
  <td>
55
  <fieldset id="overlay-color">
56
- <input type="text" name="niteoCS_overlay_color_hardwork" id="niteoCS_overlay_color" value="<?php echo esc_attr( $niteoCS_overlay_color); ?>" data-default-color="#0a0a0a" class="regular-text code"><br>
57
 
58
- <label for="niteoCS_overlay_opacity_hardwork"><?php _e('Overlay Opacity', 'cmp-coming-soon-maintenance');?> <span id="current-opacity">: <?php echo esc_attr( $niteoCS_overlay_opacity_hardwork); ?></span></label><br>
59
- <input type="range" id="niteoCS_overlay_opacity" name="niteoCS_overlay_opacity_hardwork" min="0" max="1" step="0.1"value="<?php echo esc_attr( $niteoCS_overlay_opacity_hardwork); ?>" />
60
  </fieldset>
61
  </td>
62
  </tr>
9
  }
10
 
11
 
12
+ if (isset($_POST['niteoCS_font_color_'.$themeslug])) {
13
+ update_option('niteoCS_font_color['.$themeslug.']', sanitize_hex_color($_POST['niteoCS_font_color_'.$themeslug]));
14
+ $niteoCS_font_color = get_option('niteoCS_font_color[<?php echo esc_attr($themeslug);?>]');
15
  }
16
 
17
 
18
+ if (isset($_POST['niteoCS_overlay_color_'.$themeslug])) {
19
+ update_option('niteoCS_overlay_color['.$themeslug.']', sanitize_hex_color($_POST['niteoCS_overlay_color_'.$themeslug]));
20
+ $niteoCS_overlay_color = get_option('niteoCS_overlay_color['.$themeslug.']');
21
  }
22
 
23
+ if (isset($_POST['niteoCS_overlay_opacity_'.$themeslug])) {
24
+ update_option('niteoCS_overlay_opacity['.$themeslug.']', sanitize_text_field($_POST['niteoCS_overlay_opacity_'.$themeslug]));
25
+ $niteoCS_overlay_opacity = get_option('niteoCS_overlay_opacity['.$themeslug.']');
26
  }
27
 
28
  $niteoCS_font_color = get_option('niteoCS_font_color['.$themeslug.']', '#494949');
29
  $niteoCS_overlay_color = get_option('niteoCS_overlay_color['.$themeslug.']', '#0a0a0a');
30
+ $niteoCS_overlay_opacity = get_option('niteoCS_overlay_opacity['.$themeslug.']', '0.0');
31
 
32
  ?>
33
 
45
  <th><h4><?php _e('Font Color', 'cmp-coming-soon-maintenance');?></h4></th>
46
  <td>
47
  <fieldset>
48
+ <input type="text" name="niteoCS_font_color_<?php echo esc_attr($themeslug);?>" id="niteoCS_font_color" value="<?php echo esc_attr( $niteoCS_font_color); ?>" data-default-color="#ffffff" class="regular-text code"><br>
49
  </fieldset>
50
  </td>
51
  </tr>
53
  <th><h4><?php _e('Overlay Color', 'cmp-coming-soon-maintenance');?></h4></th>
54
  <td>
55
  <fieldset id="overlay-color">
56
+ <input type="text" name="niteoCS_overlay_color_<?php echo esc_attr($themeslug);?>" id="niteoCS_overlay_color" value="<?php echo esc_attr( $niteoCS_overlay_color); ?>" data-default-color="#0a0a0a" class="regular-text code"><br>
57
 
58
+ <label for="niteoCS_overlay_opacity_<?php echo esc_attr($themeslug);?>"><?php _e('Overlay Opacity', 'cmp-coming-soon-maintenance');?> <span id="current-opacity">: <?php echo esc_attr( $niteoCS_overlay_opacity); ?></span></label><br>
59
+ <input type="range" id="niteoCS_overlay_opacity" name="niteoCS_overlay_opacity_<?php echo esc_attr($themeslug);?>" min="0" max="1" step="0.1"value="<?php echo esc_attr( $niteoCS_overlay_opacity); ?>" />
60
  </fieldset>
61
  </td>
62
  </tr>
themes/hardwork/hardwork-theme.php CHANGED
@@ -12,6 +12,7 @@
12
  <?php
13
  $ver = '1.9';
14
  $themeslug = 'hardwork';
 
15
  // get theme related settings
16
  $font_color = get_option('niteoCS_font_color['.$themeslug.']', '#494949');
17
  $background_color = get_option('niteoCS_overlay_color['.$themeslug.']', '#0a0a0a');
@@ -42,6 +43,15 @@
42
 
43
  }
44
 
 
 
 
 
 
 
 
 
 
45
  // migrade social media to new option after update 1.4.0
46
  if ( !get_option('niteoCS_socialmedia') ) {
47
  $social_media = array('facebook', 'google-plus', 'twitter', 'instagram', 'skype', '500px', 'deviantart', 'behance', 'dribbble', 'pinterest', 'linkedin', 'tumblr', 'youtube', 'vimeo', 'flickr', 'vk','envelope-o');
@@ -162,12 +172,14 @@
162
  // custom media / default / pattern / color
163
  case '0':
164
  case '2':
165
- case '3':
166
- case '4': ?>
167
  <div id="background-image" class="<?php echo esc_attr( $background_class );?>" style="background-image:url('<?php echo esc_url( $banner_url ); ?>')"></div>
168
  <?php
169
  break;
170
-
 
 
 
171
  // unsplash media
172
  case '1': ?>
173
  <script>
@@ -203,7 +215,7 @@
203
  $logo_id = get_option('niteoCS_logo_id['.$themeslug.']');
204
  // get logo
205
  if ( $logo_id != '' ) {
206
- $logo_url = wp_get_attachment_image_src( $logo_id, $size);
207
  }
208
  if ( isset($logo_url[0]) ) { ?>
209
  <img src="<?php echo esc_url( $logo_url[0] ); ?>" alt="logo">
@@ -278,6 +290,7 @@
278
  </script>
279
  <?php
280
  } ?>
 
281
  </body>
282
 
283
  </html>
12
  <?php
13
  $ver = '1.9';
14
  $themeslug = 'hardwork';
15
+ $size = $this->isMobile() ? 'large' : 'full';
16
  // get theme related settings
17
  $font_color = get_option('niteoCS_font_color['.$themeslug.']', '#494949');
18
  $background_color = get_option('niteoCS_overlay_color['.$themeslug.']', '#0a0a0a');
43
 
44
  }
45
 
46
+ if ( isset($_GET['video']) && !empty($_GET['video']) && $_GET['video'] == 'true') {
47
+ $logo_type = 'text';
48
+ $niteoCS_banner = '5';
49
+ $font_color = '#ffffff';
50
+ $background_color = '#000000';
51
+ $background_opa = '0.5';
52
+
53
+ }
54
+
55
  // migrade social media to new option after update 1.4.0
56
  if ( !get_option('niteoCS_socialmedia') ) {
57
  $social_media = array('facebook', 'google-plus', 'twitter', 'instagram', 'skype', '500px', 'deviantart', 'behance', 'dribbble', 'pinterest', 'linkedin', 'tumblr', 'youtube', 'vimeo', 'flickr', 'vk','envelope-o');
172
  // custom media / default / pattern / color
173
  case '0':
174
  case '2':
175
+ case '3':?>
 
176
  <div id="background-image" class="<?php echo esc_attr( $background_class );?>" style="background-image:url('<?php echo esc_url( $banner_url ); ?>')"></div>
177
  <?php
178
  break;
179
+ case '4': ?>
180
+ <div id="background-image" class="<?php echo esc_attr($background_class);?>" style="background-color:<?php echo esc_url( $banner_url ); ?>"></div>
181
+ <?php
182
+ break;
183
  // unsplash media
184
  case '1': ?>
185
  <script>
215
  $logo_id = get_option('niteoCS_logo_id['.$themeslug.']');
216
  // get logo
217
  if ( $logo_id != '' ) {
218
+ $logo_url = wp_get_attachment_image_src( $logo_id, $size );
219
  }
220
  if ( isset($logo_url[0]) ) { ?>
221
  <img src="<?php echo esc_url( $logo_url[0] ); ?>" alt="logo">
290
  </script>
291
  <?php
292
  } ?>
293
+
294
  </body>
295
 
296
  </html>
themes/hardwork/style.css CHANGED
@@ -109,6 +109,10 @@ h1,h2,h3,h4,h5,h6{
109
  z-index: -1;
110
  }
111
 
 
 
 
 
112
  .social-list {
113
  display: inline-block;
114
  padding:0;
109
  z-index: -1;
110
  }
111
 
112
+ .video-banner iframe {
113
+ transition: opacity 1500ms;
114
+ }
115
+
116
  .social-list {
117
  display: inline-block;
118
  padding:0;
themes/postery/img/postery_banner_full.jpg ADDED
Binary file
themes/postery/img/postery_banner_large.jpg ADDED
Binary file
themes/postery/img/postery_thumbnail.jpg ADDED
Binary file
themes/postery/js/jquery.slabtext.min.js ADDED
@@ -0,0 +1,2 @@
 
 
1
+ /*! jQuery slabtext plugin v2.4.0 MIT/GPL2 @freqdec */
2
+ !function(a){a.fn.slabText=function(b){return a("body").addClass("slabtexted"),this.each(function(){b&&a.extend(e,b);var c=a(this),d=this,e=a.extend({},a.fn.slabText.defaults,b),f=a("span.slabtext",c).length,g=f?[]:String(a.trim(c.text())).replace(/\s{2,}/g," ").split(" "),h=null,i=null,j=null,k=a(window).width(),l=c.find("a:first").attr("href")||c.attr("href"),m=l?c.find("a:first").attr("title"):"";if(!(!f&&e.minCharsPerLine&&g.join(" ").length<e.minCharsPerLine)){var n=function(){var a=jQuery('<div style="display:none;font-size:1em;margin:0;padding:0;height:auto;line-height:1;border:0;">&nbsp;</div>').appendTo(c),b=a.height();return a.remove(),b},o=function(){var j,b=c.width();if(0!=b){if(c.removeClass("slabtextdone slabtextinactive"),e.viewportBreakpoint&&e.viewportBreakpoint>k||e.headerBreakpoint&&e.headerBreakpoint>b)return void c.addClass("slabtextinactive");if(j=n(),f||!e.forceNewCharCount&&j==h)h=j;else{h=j;var v,w,x,y,o=Math.min(60,Math.floor(b/(h*e.fontRatio))),p=0,q=[],s="",t="",u="";if(0!=o&&o!=i){for(i=o;p<g.length;){for(t="";t.length<i&&(s=t,t+=g[p]+" ",!(++p>=g.length)););e.minCharsPerLine&&(w=g.slice(p).join(" "),w.length<e.minCharsPerLine&&(t+=w,s=t,p=g.length+2)),x=i-s.length,y=t.length-i,y>x&&s.length>=(e.minCharsPerLine||2)?(u=s,p--):u=t,v=a.trim(u).length,u=a("<div/>").text(u).html(),e.wrapAmpersand&&(u=u.replace(/&amp;/g,'<span class="amp">&amp;</span>')),u=a.trim(u),q.push('<span class="slabtext slabtext-linesize-'+Math.floor(v/10)+" slabtext-linelength-"+v+'">'+u+"</span>")}c.html(q.join(" ")),l&&c.wrapInner('<a href="'+l+'" '+(m?'title="'+m+'" ':"")+"/>")}}a("span.slabtext",c).each(function(){var g,i,j,c=a(this),d=c.text(),f=d.split(" ").length>1;e.postTweak&&c.css({"word-spacing":0,"letter-spacing":0}),i=b/c.width(),j=parseFloat(this.style.fontSize)||h,c.css("font-size",Math.min((j*i).toFixed(e.precision),e.maxFontSize)+"px"),g=e.postTweak?b-c.width():!1,g&&c.css((f?"word":"letter")+"-spacing",(g/(f?d.split(" ").length-1:d.length)).toFixed(e.precision)+"px")}),c.addClass("slabtextdone"),"function"==typeof e.onRender&&e.onRender.call(d)}};o(),e.noResizeEvent||a(window).resize(function(){a(window).width()!=k&&(k=a(window).width(),clearTimeout(j),j=setTimeout(o,e.resizeThrottleTime))})}})},a.fn.slabText.defaults={fontRatio:.78,forceNewCharCount:!0,wrapAmpersand:!0,headerBreakpoint:null,viewportBreakpoint:null,noResizeEvent:!1,resizeThrottleTime:300,maxFontSize:999,postTweak:!0,precision:3,minCharsPerLine:0,onRender:null}}(jQuery);
themes/postery/postery-defaults.php ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
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' => false,
11
+ );
12
+
13
+ $niteoCS_banner = get_option('niteoCS_banner['.$themeslug.']', '1');
14
+ $niteoCS_font_headings = get_option('niteoCS_font_headings['.$themeslug.']', 'Fjalla One');
15
+ $niteoCS_font_content = get_option('niteoCS_font_content['.$themeslug.']', 'Fjalla One');
16
+
17
+ // get options
18
+ $niteoCS_active_color = get_option('niteoCS_active_color['.$themeslug.']', '#E85C4F');
19
+ $niteoCS_font_color = get_option('niteoCS_font_color['.$themeslug.']', '#ffffff');
20
+ $niteoCS_overlay_color = get_option('niteoCS_overlay_color['.$themeslug.']', '#0a0a0a');
21
+ $niteoCS_overlay_opacity = get_option('niteoCS_overlay_opacity['.$themeslug.']', '0.7');
22
+
23
+
themes/postery/postery-settings.php ADDED
@@ -0,0 +1,109 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
3
+
4
+ // check onces and wordpress rights, else DIE
5
+ if ( $_SERVER['REQUEST_METHOD'] == 'POST' ) {
6
+ if( !wp_verify_nonce($_POST['save_options_field'], 'save_options') || !current_user_can('publish_pages') ) {
7
+ die('Sorry, but this request is invalid');
8
+ }
9
+ }
10
+
11
+
12
+ if (isset($_POST['niteoCS_active_color_'.$themeslug])) {
13
+ update_option('niteoCS_active_color['.$themeslug.']', sanitize_hex_color($_POST['niteoCS_active_color_'.$themeslug]));
14
+ }
15
+
16
+ if (isset($_POST['niteoCS_font_color_'.$themeslug])) {
17
+ update_option('niteoCS_font_color['.$themeslug.']', sanitize_hex_color($_POST['niteoCS_font_color_'.$themeslug]));
18
+ }
19
+
20
+ if (isset($_POST['niteoCS_overlay_color_'.$themeslug])) {
21
+ update_option('niteoCS_overlay_color['.$themeslug.']', sanitize_hex_color($_POST['niteoCS_overlay_color_'.$themeslug]));
22
+ }
23
+
24
+ if (isset($_POST['niteoCS_overlay_opacity_'.$themeslug])) {
25
+ update_option('niteoCS_overlay_opacity['.$themeslug.']', sanitize_text_field($_POST['niteoCS_overlay_opacity_'.$themeslug]));
26
+ }
27
+
28
+
29
+ // get options
30
+ $niteoCS_active_color = get_option('niteoCS_active_color['.$themeslug.']', '#E85C4F');
31
+ $niteoCS_font_color = get_option('niteoCS_font_color['.$themeslug.']', '#ffffff');
32
+ $niteoCS_overlay_color = get_option('niteoCS_overlay_color['.$themeslug.']', '#0a0a0a');
33
+ $niteoCS_overlay_opacity = get_option('niteoCS_overlay_opacity['.$themeslug.']', '0.4');
34
+
35
+ ?>
36
+
37
+ <style>
38
+ #social-section tr:first-of-type {display: none!important;}
39
+ .flatpickr-input {width: 50%;margin-bottom: 1em;}
40
+ </style>
41
+
42
+
43
+ <div class="table-wrapper theme-setup">
44
+ <h3><?php _e('Customize Colors', 'cmp');?></h3>
45
+ <table class="theme-setup">
46
+ <tr>
47
+ <th><h4><?php _e('Active Color', 'cmp');?></h4></th>
48
+ <td>
49
+
50
+ <fieldset>
51
+ <input type="text" name="niteoCS_active_color_<?php echo esc_attr($themeslug);?>" id="niteoCS_active_color" value="<?php echo esc_attr( $niteoCS_active_color); ?>" data-default-color="#e82e1e" class="regular-text code"><br>
52
+ </fieldset>
53
+
54
+ </td>
55
+ </tr>
56
+ <tr>
57
+ <th><h4><?php _e('Font Color', 'cmp');?></h4></th>
58
+ <td>
59
+
60
+ <fieldset>
61
+ <input type="text" name="niteoCS_font_color_<?php echo esc_attr($themeslug);?>" id="niteoCS_font_color" value="<?php echo esc_attr( $niteoCS_font_color); ?>" data-default-color="#ffffff" class="regular-text code"><br>
62
+ </fieldset>
63
+ </td>
64
+ </tr>
65
+ <tr>
66
+ <th><h4><?php _e('Overlay Color', 'cmp');?></h4></th>
67
+ <td>
68
+
69
+ <fieldset id="overlay-color">
70
+ <input type="text" name="niteoCS_overlay_color_<?php echo esc_attr($themeslug);?>" id="niteoCS_overlay_color" value="<?php echo esc_attr( $niteoCS_overlay_color); ?>" data-default-color="#0a0a0a" class="regular-text code"><br>
71
+
72
+ <label for="niteoCS_overlay_opacity"><?php _e('Overlay Opacity', 'cmp');?> <span id="current-opacity">: <?php echo esc_attr( $niteoCS_overlay_opacity); ?></span></label><br>
73
+ <input type="range" id="niteoCS_overlay_opacity" name="niteoCS_overlay_opacity_<?php echo esc_attr($themeslug);?>" min="0" max="1" step="0.1"value="<?php echo esc_attr( $niteoCS_overlay_opacity); ?>" />
74
+
75
+ </fieldset>
76
+ </td>
77
+ </tr>
78
+ <tr><th>
79
+ <p class="cmp-submit">
80
+ <?php wp_nonce_field('save_options','save_options_field'); ?>
81
+ <input type="submit" name="Submit" class="button cmp-button submit" value="<?php _e('Save All Changes', 'cmp-coming-soon-maintenance'); ?>" id="submitChanges" />
82
+ </p>
83
+ </th></tr>
84
+ </table>
85
+
86
+ </div>
87
+
88
+
89
+ <script>
90
+ jQuery(document).ready(function($){
91
+
92
+ // ini color picker
93
+ jQuery('#niteoCS_font_color').wpColorPicker();
94
+ jQuery('#niteoCS_background_color').wpColorPicker();
95
+ jQuery('#niteoCS_active_color').wpColorPicker();
96
+ jQuery('#niteoCS_overlay_color').wpColorPicker();
97
+
98
+ var currentValue = jQuery('#current-opacity');
99
+
100
+ jQuery('#niteoCS_overlay_opacity').change(function(){
101
+ if (this.value == 0) {
102
+ currentValue.html(': disabled');
103
+ } else {
104
+ currentValue.html(': '+this.value);
105
+ }
106
+ });
107
+
108
+ });
109
+ </script>
themes/postery/postery-theme.php ADDED
@@ -0,0 +1,526 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ if ( $_SERVER['REQUEST_METHOD'] == 'POST' && isset($_POST['form_honeypot']) && $_POST['form_honeypot'] === '' && isset( $_POST['EMAIL'] ) && is_email( $_POST['EMAIL'] ) ) {
3
+ $subscribe_response = $this->niteo_subscribe( $_POST['EMAIL'] );
4
+ }
5
+ ?>
6
+ <!DOCTYPE html>
7
+
8
+ <html <?php language_attributes(); ?>>
9
+ <head>
10
+ <meta charset="<?php bloginfo( 'charset' ); ?>">
11
+ <meta name="viewport" content="width=device-width, initial-scale=1">
12
+
13
+ <!-- SEO -->
14
+ <meta name="description" content="<?php echo esc_attr( stripslashes(get_option('niteoCS_descr', 'Just another Coming Soon Page')) ); ?>">
15
+ <title><?php echo esc_html( stripslashes(get_option('niteoCS_title', get_bloginfo('name').' is coming soon!')) ); ?></title>
16
+
17
+ <?php
18
+ $ver = '1.0';
19
+ $themeslug = 'postery';
20
+ $size = $this->isMobile() ? 'large' : 'full';
21
+ // get theme related settings
22
+ $niteoCS_active_color = get_option('niteoCS_active_color['.$themeslug.']', '#E85C4F');
23
+ $niteoCS_font_color = get_option('niteoCS_font_color['.$themeslug.']', '#ffffff');
24
+ $niteoCS_overlay_color = get_option('niteoCS_overlay_color['.$themeslug.']', '#0a0a0a');
25
+ $niteoCS_overlay_opacity = get_option('niteoCS_overlay_opacity['.$themeslug.']', '0.4');
26
+ $background_overlay = $this->hex2rgba($niteoCS_overlay_color, $niteoCS_overlay_opacity);
27
+ $content_font = get_option('niteoCS_font_content['.$themeslug.']', 'Raleway');
28
+ $heading_font = get_option('niteoCS_font_headings['.$themeslug.']', 'Raleway');
29
+ $logo_type = get_option('niteoCS_logo_type['.$themeslug.']', 'text');
30
+ $niteoCS_banner = get_option('niteoCS_banner['.$themeslug.']', '1');
31
+ $unplash_feed = get_option('niteoCS_unsplash_feed['.$themeslug.']', '0');
32
+
33
+ if ( $heading_font == 'custom' ) {
34
+ $heading_font = get_option('niteoCS_font_headings_custom['.$themeslug.']');
35
+ }
36
+
37
+ if ( $content_font == 'custom' ) {
38
+ $content_font = get_option('niteoCS_font_content_custom['.$themeslug.']');
39
+ }
40
+ // get global settings
41
+ $subscribe = get_option('niteoCS_subscribe_type', '2');
42
+ $niteoCS_subscribe_label = get_option('niteoCS_subscribe_label', 'Type your email and get notified');
43
+ $niteoCS_counter = get_option('niteoCS_counter', '1');
44
+ $niteoCS_counter_date = get_option('niteoCS_counter_date', time()+86400);
45
+ $countdown_action = get_option('niteoCS_countdown_action', 'no-action');
46
+ $body_title = get_option('niteoCS_body_title', 'SOMETHING IS HAPPENING!');
47
+ $body = get_option('niteoCS_body');
48
+ $copyright = get_option('niteoCS_copyright', 'Copyright 2017 NiteoThemes. All rights reserved.');
49
+ $favicon_id = get_option('niteoCS_favicon_id');
50
+
51
+ $socialmedia = stripslashes(get_option('niteoCS_socialmedia'));
52
+ $socialmedia = json_decode($socialmedia, true);
53
+ $enable_social = false;
54
+
55
+ if ( is_array($socialmedia) ) {
56
+ foreach ( $socialmedia as $social ) {
57
+
58
+ if ( $social['hidden'] == '0' && $social['active'] == '1') {
59
+ $enable_social = true;
60
+ //sort array by hidden, then order key
61
+ uasort( $socialmedia , array($this,'sort_social') );
62
+ break;
63
+ }
64
+ }
65
+ }
66
+
67
+ // override options if theme preview isset
68
+ if ( isset( $theme_preview ) && $theme_preview == 'postery' ) {
69
+ $body_title = 'OUR NEW WEBSITE';
70
+ $body = 'IS COMING
71
+ SOON!';
72
+ }
73
+
74
+ // get background media
75
+ if ( method_exists ( $this, 'get_background_media' ) ) {
76
+ $background_media = $this->get_background_media( $niteoCS_banner, $themeslug);
77
+ $background_class = $background_media[0];
78
+ $banner_url = $background_media[1];
79
+ if ( $background_class == 'video' ) {
80
+ $source = $background_media[2];
81
+ }
82
+ } else {
83
+ $background_class = 'error';
84
+ $banner_url = '';
85
+ }
86
+
87
+ // display favicon
88
+ if ( $favicon_id && $favicon_id != '' ) {
89
+ $favicon_url = wp_get_attachment_image_src($favicon_id, 'thumbnail');
90
+ if ( isset($favicon_url[0]) ){
91
+ echo '<link id="favicon" rel="shortcut icon" href="'.$favicon_url[0].'" type="image/x-icon"/>';
92
+ }
93
+ } else {
94
+ wp_site_icon();
95
+ }
96
+
97
+ if ( get_option( 'blog_public' ) == 0 ) {
98
+ echo "<meta name='robots' content='noindex,nofollow' />";
99
+ } ?>
100
+
101
+ <?php
102
+ if ( $enable_social === true || $subscribe == '2') { ?>
103
+ <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
104
+ <?php
105
+ } ?>
106
+ <link rel="stylesheet" href="<?php echo plugin_dir_url( dirname( __FILE__ ) ) . $themeslug.'/style.css?v='.$ver;?>" type="text/css" media="all">
107
+
108
+
109
+ <style>
110
+ body,input {font-family:'<?php echo esc_attr($content_font);?>', 'sans-serif';color:<?php echo esc_attr( $niteoCS_font_color ); ?>;}
111
+ h1, h2, h3, h4, h5, h6 {font-family:'<?php echo esc_attr($heading_font);?>', 'sans-serif';}
112
+ a {color:<?php echo esc_attr( $niteoCS_font_color ); ?>;}
113
+ input[type="submit"] {background-color: <?php echo esc_attr($niteoCS_font_color);?>;}
114
+ ::-webkit-input-placeholder {color: <?php echo esc_attr($niteoCS_font_color);?>;}
115
+ ::-moz-placeholder {color: <?php echo esc_attr($niteoCS_font_color);?>;}
116
+ :-ms-input-placeholder {color: <?php echo esc_attr($niteoCS_font_color);?>;}
117
+ ::-moz-placeholder {color: <?php echo esc_attr($niteoCS_font_color);?>;}
118
+ .input-icon:before,input[type="email"],input[type="text"]{color: <?php echo esc_attr($niteoCS_font_color);?>;}
119
+ .counter-wrap,
120
+ .social-list a,
121
+ input[type="email"], input[type="text"] {background-color:<?php echo esc_attr( $this->hex2rgba($niteoCS_overlay_color, '0.2') );?>;}
122
+ input[type="submit"] {background-color:<?php echo esc_attr($niteoCS_active_color);?>;}
123
+ .social-list a {color: <?php echo esc_attr($niteoCS_font_color ); ?>;}
124
+ .content{background-color:<?php echo esc_attr($background_overlay);?>;}
125
+
126
+ <?php
127
+ // if solid color banner, set social icons to same background color
128
+ if ( $niteoCS_banner == 4) { ?>
129
+ .social-list a {color: <?php echo esc_attr($banner_url ); ?>;background-color: <?php echo $this->hex2rgba($niteoCS_font_color, '0.2'); ?>;}
130
+ .social-list a:hover {background-color: <?php echo esc_attr($niteoCS_font_color ); ?>;}
131
+ <?php
132
+ } ?>
133
+
134
+ </style>
135
+
136
+ <?php
137
+ // custom CSS
138
+ if ( get_option('niteoCS_custom_css', '') !== '' ) { ?>
139
+ <!-- custom CSS -->
140
+ <style>
141
+ <?php
142
+
143
+ echo stripslashes(wp_filter_nohtml_kses(get_option('niteoCS_custom_css'))); ?>
144
+ </style>
145
+ <?php
146
+ }
147
+
148
+ // GOOGLE ANALYTICS
149
+ if ( get_option('niteoCS_analytics', '') !== '' ) { ?>
150
+ <!-- Google analytics code -->
151
+ <script>
152
+ (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
153
+ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
154
+ m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
155
+ })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
156
+
157
+ ga('create', '<?php echo esc_attr(get_option('niteoCS_analytics'));?>', 'auto');
158
+ ga('send', 'pageview');
159
+
160
+ </script>
161
+ <?php
162
+ } ?>
163
+
164
+ </head>
165
+
166
+ <!-- start body tag -->
167
+ <body id="body">
168
+
169
+ <div id="background-wrapper">
170
+ <?php
171
+ if ( $background_class != 'error' ) {
172
+ switch ( $niteoCS_banner ) {
173
+ // custom media / default / pattern / color
174
+ case '0':
175
+ case '2':
176
+ case '3': ?>
177
+ <div id="background-image" class="<?php echo esc_attr($background_class);?>" style="background-image:url('<?php echo esc_url( $banner_url ); ?>')"></div>
178
+ <?php
179
+ break;
180
+ case '4': ?>
181
+ <div id="background-image" class="loaded <?php echo esc_attr($background_class);?>" style="background-color:<?php echo esc_url( $banner_url ); ?>"></div>
182
+ <?php
183
+ break;
184
+ // unsplash media
185
+ case '1': ?>
186
+ <script>
187
+ var screenWidth = Math.round(screen.width*window.devicePixelRatio);
188
+ var screenHeight = screenWidth / 1.77777;
189
+ screenHeight = screenHeight.toFixed(0);
190
+
191
+ var banner = '<div id="background-image" style="background-image:url(\'<?php echo esc_url( $banner_url ); ?>\')"></div>';
192
+ banner = banner.replace('WIDTHxHEIGHT', screenWidth + 'x' + screenHeight);
193
+ document.getElementById('background-wrapper').innerHTML = banner;
194
+ </script>
195
+ <?php
196
+ // video media
197
+ case '5': ?>
198
+ <div id="player" class="video-banner"></div>
199
+ <?php
200
+ default:
201
+ break;
202
+ }
203
+
204
+ } else { ?>
205
+ <p class="error"><?php _e('To Display Graphic Media please upgrade CMP Plugin to latest version. You can download latest version on ', 'cmp-coming-soon-maintenance');?><a href="https://wordpress.org/plugins/cmp-coming-soon-maintenance/">Wordpress website</a> <?php _e('or you can use automatic plugin update in WP-Admin > Plugins > CMP - Coming Soon & Maintenance Plugin > Update Now.', 'cmp-coming-soon-maintenance');?></p>
206
+ <?php
207
+ } ?>
208
+
209
+
210
+ <div class="inner-content">
211
+ <div class="content">
212
+ <!-- logo -->
213
+ <div class="logo">
214
+ <?php
215
+ switch ($logo_type) {
216
+ case 'graphic':
217
+ // get logo id
218
+ $logo_id = get_option('niteoCS_logo_id['.$themeslug.']');
219
+ // get logo
220
+ if ( $logo_id != '' ) {
221
+ $logo_url = wp_get_attachment_image_src( $logo_id, $size );
222
+ }
223
+ if ( isset($logo_url[0]) ) { ?>
224
+ <img src="<?php echo esc_url( $logo_url[0] ); ?>" alt="logo">
225
+ <?php
226
+ }
227
+ break;
228
+ case 'text':
229
+ $text_logo = get_option('niteoCS_text_logo['.$themeslug.']', get_bloginfo( 'name', 'display' )); ?>
230
+ <h1 class="slab"><span class="slabtext"><?php echo esc_html($text_logo); ?></span></h1>
231
+ <?php
232
+ case 'disabled':
233
+ default:
234
+ break;
235
+ } ?>
236
+ </div>
237
+
238
+ <!-- body content -->
239
+ <?php
240
+ // display title if not empty
241
+ if ( $body_title != '' ) { ?>
242
+ <h2 class="title slab">
243
+ <span class="slabtext heading"><?php echo esc_html( $body_title );?></span>
244
+ </h2>
245
+ <?php
246
+ }
247
+ // display body content if not empty
248
+ if ( $body != '' ) {
249
+
250
+ $body = explode(PHP_EOL, $body ); ?>
251
+ <p class="slab">
252
+ <?php
253
+ foreach ( $body as $body_part ) {
254
+ echo '<span class="slabtext">'.$body_part.'</span>';
255
+ } ?>
256
+ </p>
257
+ <?php
258
+ }
259
+
260
+ // display countdown timer if set
261
+ if ( $niteoCS_counter == '1') { ?>
262
+ <div id="counter" data-date="<?php echo esc_attr($niteoCS_counter_date);?>">
263
+ <div class="counter-wrap">
264
+ <div class="inner-counter">
265
+ <span id="counter-day">00</span>
266
+ <p><?php _e('DAYS', 'cmp');?></p>
267
+ </div>
268
+ </div>
269
+
270
+ <div class="counter-wrap">
271
+ <div class="inner-counter">
272
+ <span id="counter-hour">00</span>
273
+ <p><?php _e('HOURS', 'cmp');?></p>
274
+ </div>
275
+ </div>
276
+
277
+ <div class="counter-wrap">
278
+ <div class="inner-counter">
279
+ <span id="counter-minute">00</span>
280
+ <p><?php _e('MINUTES', 'cmp');?></p>
281
+ </div>
282
+ </div>
283
+
284
+ <div class="counter-wrap">
285
+ <div class="inner-counter">
286
+ <span id="counter-second">00</span>
287
+ <p><?php _e('SECONDS', 'cmp');?></p>
288
+ </div>
289
+ </div>
290
+ </div>
291
+ <?php
292
+ }
293
+
294
+
295
+ // if subscribers is 3rd party plugin, render form by shortcode
296
+ if ( $subscribe == '1' ) {
297
+ $replace = array('<p>', '</p>' );
298
+ echo '<div class="subscribe">';
299
+ echo str_replace($replace, '', do_shortcode( stripslashes( get_option('niteoCS_subscribe_code') ))) ;
300
+ echo '</div>';
301
+
302
+ // if subsctbiers is niteo, render our html form
303
+ } else if ( $subscribe == '2' ) { ?>
304
+ <div class="subscribe">
305
+ <form id="subscribe-form" method="post">
306
+
307
+ <?php wp_nonce_field('save_options','save_options_field'); ?>
308
+ <?php
309
+ if ( $niteoCS_subscribe_label != '' ) { ?>
310
+ <label for="EMAIL"><?php echo esc_html($niteoCS_subscribe_label);?></label>
311
+ <?php
312
+ } ?>
313
+ <div class="input-icon"></div>
314
+ <input type="email" name="EMAIL" class="subscribe-input" placeholder="<?php _e('Insert your email address', 'cmp');?>" required>
315
+
316
+ <input type="submit" value="&#xf1d9;">
317
+
318
+ <div style="display: none;">
319
+ <input type="text" name="form_honeypot" value="" tabindex="-1" autocomplete="off">
320
+ </div>
321
+
322
+ <div class="subsribe-response"><?php echo isset( $subscribe_response ) ? $subscribe_response : '';?></div>
323
+ </form>
324
+ </div>
325
+ <?php
326
+ }
327
+
328
+ // display social icons if set
329
+ if ( $enable_social ) { ?>
330
+ <div class="social-wrapper">
331
+
332
+ <ul class="social-list">
333
+ <?php
334
+ foreach ( $socialmedia as $social ) {
335
+ if ($social['active'] == '1' && $social['hidden'] == '0') {
336
+ if ( $social['name'] == 'envelope-o' ) {
337
+ echo '<li><a href="mailto:'.antispambot(esc_html($social['url'])).'" target="_blank"><i class="fa fa-'.$social['name'].'" aria-hidden="true"></i></a></li>';
338
+
339
+ } else {
340
+ echo '<li><a href="'.esc_url($social['url']).'" target="top"><i class="fa fa-'.$social['name'].'" aria-hidden="true"></i></a></li>';
341
+ }
342
+ }
343
+
344
+ } //end foreach socialmedia
345
+ ?>
346
+ </ul>
347
+ </div>
348
+ <?php
349
+ } ?>
350
+ </div>
351
+
352
+ </div> <!-- .inner-content -->
353
+
354
+ </div> <!-- #background-wrapper -->
355
+
356
+ <script>
357
+ window.onload = function() {
358
+ var image = document.getElementById('background-image');
359
+ image.className += " loaded";
360
+ }
361
+ </script>
362
+
363
+ <?php
364
+ // if video thumbnail attach video scripts
365
+ if ( $niteoCS_banner == 5 ) {
366
+ $niteoCS_video_thumb = get_option('niteoCS_video_thumb['.$themeslug.']');
367
+ if ( $niteoCS_video_thumb != '' ) {
368
+ $thumb_id = wp_get_attachment_image_src($niteoCS_video_thumb, 'large');
369
+
370
+ if ( isset($thumb_id[0]) ) {
371
+ $thumb = $thumb_id[0];
372
+ }
373
+ } ?>
374
+
375
+ <script type='text/javascript' src='<?php echo plugins_url('cmp-coming-soon-maintenance/js/vidim.min.js');?>'></script>
376
+
377
+ <script>
378
+ var myBackground = new vidim( '#player', {
379
+ src: '<?php echo esc_url( $banner_url ); ?>',
380
+ type: 'YouTube',
381
+ poster: '<?php echo ( $niteoCS_video_thumb == '' ) ? $this->get_youtube_img($banner_url) : esc_url($thumb);?>',
382
+ }
383
+ );
384
+
385
+ </script>
386
+ <?php
387
+ }
388
+
389
+ // if counter is enabled attach counter script
390
+ if ( $niteoCS_counter == '1') { ?>
391
+ <script>
392
+ // Set the date we're counting down to
393
+ var counter = document.getElementById('counter');
394
+ var unixtime = counter.getAttribute('data-date');
395
+ var date = new Date(unixtime*1000);
396
+ var countDownDate = new Date(date).getTime();
397
+
398
+ // Update the count down every 1 second
399
+ var x = setInterval(function() {
400
+
401
+ // Get todays date and time
402
+ var now = new Date().getTime();
403
+
404
+ // Find the distance between now an the count down date
405
+ var distance = countDownDate - now;
406
+
407
+ // Time calculations for days, hours, minutes and seconds
408
+ var days = Math.floor(distance / (1000 * 60 * 60 * 24));
409
+ var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
410
+ var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
411
+ var seconds = Math.floor((distance % (1000 * 60)) / 1000);
412
+
413
+ if (days < 10) {
414
+ days = '0' + days;
415
+ }
416
+ if (hours < 10) {
417
+ hours = '0' + hours;
418
+ }
419
+ if (minutes < 10) {
420
+ minutes = '0' + minutes;
421
+ }
422
+ if (seconds < 10) {
423
+ seconds = '0' + seconds;
424
+ }
425
+ if (distance >= 0) {
426
+ document.getElementById('counter-day').innerHTML = days;
427
+ document.getElementById('counter-hour').innerHTML = hours;
428
+ document.getElementById('counter-minute').innerHTML = minutes;
429
+ document.getElementById('counter-second').innerHTML = seconds;
430
+ }
431
+
432
+ <?php
433
+ if ( $countdown_action != 'no-action' && $countdown_action != 'display-text') { ?>
434
+
435
+ // If the count down is over, write some text
436
+ if (distance < 0) {
437
+ clearInterval(x);
438
+ window.location.reload();
439
+ }
440
+ <?php
441
+ } ?>
442
+
443
+ }, 1000);
444
+ </script>
445
+ <?php
446
+ } ?>
447
+ <!-- scripts needed for slabtext -->
448
+ <script type='text/javascript' src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.slim.min.js'></script>
449
+ <script type='text/javascript' src='<?php echo plugins_url('cmp-coming-soon-maintenance/themes/'.$themeslug.'/js/jquery.slabtext.min.js');?>'></script>
450
+ <!-- slabtext script -->
451
+ <script>
452
+ // Function to slabtext the H1 headings
453
+ function slabText() {
454
+ $(".slab").slabText({
455
+ 'maxFontSize': 450,
456
+ // Don't slabtext the headers if the viewport is under 380px
457
+ 'onRender': function() {
458
+ setTimeout( function () {
459
+ var a =[];
460
+ $(".slabtextdone .slabtext").each( function(index){
461
+ a[index] = $(this);
462
+ setTimeout( function () {
463
+ a[index].addClass('hover');
464
+ }, index * 800);
465
+ });
466
+ }, 500);
467
+
468
+ }
469
+ });
470
+ };
471
+
472
+ // Load fonts using google font loader
473
+ var WebFontConfig = {
474
+ google: { families: [ '<?php echo esc_attr(str_replace(' ', '+', $heading_font));?>', '<?php echo esc_attr(str_replace(' ', '+', $content_font));?>:400,400i,700' ] },
475
+ // slabText the headers when the font has finished loading (or not)
476
+ fontactive: slabText,
477
+ fontinactive: slabText
478
+ };
479
+ (function() {
480
+ var wf = document.createElement('script');
481
+ wf.src = 'https://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js';
482
+ wf.type = 'text/javascript';
483
+ wf.async = 'true';
484
+ var s = document.getElementsByTagName('script')[0];
485
+ s.parentNode.insertBefore(wf, s);
486
+ })();
487
+ </script>
488
+
489
+ </script>
490
+ <?php
491
+ if ( !$this->isMobile() ) { ?>
492
+
493
+ <!-- 3d rotating script -->
494
+ <script>
495
+ var moveForce = 30; // max popup movement in pixels
496
+ var rotateForce = 20; // max popup rotation in deg
497
+
498
+ $(document).mousemove(function(e) {
499
+ var docX = $(document).width();
500
+ var docY = $(document).height();
501
+
502
+ var moveX = (e.pageX - docX/2) / (docX/2) * -moveForce;
503
+ var moveY = (e.pageY - docY/2) / (docY/2) * -moveForce;
504
+
505
+ var rotateY = (e.pageX / docX * rotateForce*2) - rotateForce;
506
+ var rotateX = -((e.pageY / docY * rotateForce*2) - rotateForce);
507
+
508
+ $('.content')
509
+ .css('left', moveX+'px')
510
+ .css('top', moveY+'px')
511
+ .css('transform', 'rotateX('+rotateX+'deg) rotateY('+rotateY+'deg)');
512
+ });
513
+
514
+ $('input[type="email"]').hover(
515
+ function() {
516
+ $('.input-icon').addClass('hover');
517
+ },
518
+ function() {
519
+ $('.input-icon').removeClass('hover');
520
+ }
521
+ );
522
+ </script>
523
+ <?php
524
+ } ?>
525
+ </body>
526
+ </html>
themes/postery/style.css ADDED
@@ -0,0 +1,685 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ Theme Name: Postery
3
+ Theme URI: http://cmp.niteothemes.com/?cmp_preview=true&theme=postery
4
+ Author: Niteo
5
+ Author URI: https//niteothemes.com
6
+ Version: 1.0
7
+ Details URI: {"1": "https:\/\/niteothemes.com\/cmp-screenshots\/postery\/screenshot1.jpg","2":"https:\/\/niteothemes.com\/cmp-screenshots\/postery\/screenshot2.jpg", "3":"https:\/\/niteothemes.com\/cmp-screenshots\/postery\/screenshot3.jpg"}
8
+ 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>"Newspaper" typography and 3D animation.</li><li>Counter setup with three predefined actions.</li><li>Subscribe Form</li><li>Responsive design</li></ul>
9
+
10
+
11
+ Normalizing styles have been helped along thanks to the fine work of
12
+ Nicolas Gallagher and Jonathan Neal http://necolas.github.com/normaalize.css/
13
+ */
14
+ /*--------------------------------------------------------------
15
+ # Normalize
16
+ --------------------------------------------------------------*/
17
+
18
+ html {
19
+ -webkit-text-size-adjust: 100%;
20
+ -ms-text-size-adjust: 100%;
21
+ }
22
+
23
+
24
+ article,
25
+ aside,
26
+ details,
27
+ figcaption,
28
+ figure,
29
+ footer,
30
+ header,
31
+ main,
32
+ menu,
33
+ nav,
34
+ section,
35
+ summary {
36
+ display: block;
37
+ }
38
+
39
+ article {
40
+ margin: 0;
41
+ }
42
+
43
+
44
+ article:last-of-type {
45
+ margin-bottom: 0;
46
+ }
47
+
48
+
49
+ audio,
50
+ canvas,
51
+ progress,
52
+ video {
53
+ display: inline-block;
54
+ vertical-align: baseline;
55
+ }
56
+
57
+ audio:not([controls]) {
58
+ display: none;
59
+ height: 0;
60
+ }
61
+
62
+ [hidden],
63
+ template {
64
+ display: none;
65
+ }
66
+
67
+ p {
68
+ margin: 0;
69
+ }
70
+
71
+ a {
72
+ background-color: transparent;
73
+ text-decoration: none;
74
+ -webkit-transition: color .3s ease-in-out;
75
+ -o-transition: color .3s ease-in-out;
76
+ transition: color .3s ease-in-out;
77
+
78
+ }
79
+
80
+ a:active,
81
+ a:hover {
82
+ outline: 0;
83
+ }
84
+
85
+ abbr[title] {
86
+ border-bottom: 1px dotted;
87
+ }
88
+
89
+ b,
90
+ strong {
91
+ font-weight: bold;
92
+ }
93
+
94
+ dfn {
95
+ font-style: italic;
96
+ }
97
+
98
+
99
+ small {
100
+ font-size: 80%;
101
+ }
102
+
103
+ sub,
104
+ sup {
105
+ font-size: 75%;
106
+ line-height: 0;
107
+ position: relative;
108
+ vertical-align: baseline;
109
+ }
110
+
111
+ sup {
112
+ top: -0.5em;
113
+ }
114
+
115
+ sub {
116
+ bottom: -0.25em;
117
+ }
118
+
119
+ img {
120
+ border: 0;
121
+ }
122
+
123
+ svg:not(:root) {
124
+ overflow: hidden;
125
+ }
126
+
127
+ figure {
128
+ margin: 0;
129
+ width: auto!important;
130
+ }
131
+
132
+ hr {
133
+ box-sizing: content-box;
134
+ height: 0;
135
+ }
136
+
137
+ pre {
138
+ overflow: auto;
139
+ }
140
+
141
+ code,
142
+ kbd,
143
+ pre,
144
+ samp {
145
+ font-family: monospace, monospace;
146
+ font-size: 1em;
147
+ }
148
+
149
+ code {
150
+ background-color: #BEFFE9;
151
+ }
152
+
153
+ button,
154
+ input,
155
+ optgroup,
156
+ select,
157
+ textarea {
158
+ color: inherit;
159
+ font: inherit;
160
+ margin: 0;
161
+ box-shadow: inset 0 0 0 0 !important;
162
+ -webkit-box-shadow: inset 0 0 0 0 !important;
163
+ -webkit-appearance: none;
164
+ outline: none;
165
+ }
166
+
167
+ textarea {
168
+ text-indent: 5px;
169
+ }
170
+
171
+ button {
172
+ overflow: visible;
173
+ }
174
+
175
+ button,
176
+ select {
177
+ text-transform: none;
178
+ }
179
+
180
+ button,
181
+ html input[type="button"],
182
+ input[type="reset"],
183
+ input[type="submit"] {
184
+ -webkit-appearance: button;
185
+ cursor: pointer;
186
+ text-indent: 0;
187
+ }
188
+
189
+ button[disabled],
190
+ html input[disabled] {
191
+ cursor: default;
192
+ }
193
+
194
+ button::-moz-focus-inner,
195
+ input::-moz-focus-inner {
196
+ border: 0;
197
+ padding: 0;
198
+ }
199
+
200
+ input {
201
+ line-height: normal;
202
+ text-indent: 5px;
203
+ }
204
+
205
+ input[type="checkbox"],
206
+ input[type="radio"] {
207
+ box-sizing: border-box;
208
+ padding: 0;
209
+ }
210
+
211
+ input[type="number"]::-webkit-inner-spin-button,
212
+ input[type="number"]::-webkit-outer-spin-button {
213
+ height: auto;
214
+ }
215
+
216
+ input[type="search"] {
217
+ -webkit-appearance: textfield;
218
+ box-sizing: content-box;
219
+ }
220
+
221
+ input[type="search"]::-webkit-search-cancel-button,
222
+ input[type="search"]::-webkit-search-decoration {
223
+ -webkit-appearance: none;
224
+ }
225
+
226
+ fieldset {
227
+ border: 1px solid #c0c0c0;
228
+ margin: 0 2px;
229
+ padding: 0.35em 0.625em 0.75em;
230
+ }
231
+
232
+ legend {
233
+ border: 0;
234
+ padding: 0;
235
+ }
236
+
237
+ textarea {
238
+ overflow: auto;
239
+ padding: 5px;
240
+ }
241
+
242
+ optgroup {
243
+ font-weight: bold;
244
+ }
245
+
246
+ table {
247
+ border-collapse: collapse;
248
+ border-spacing: 0;
249
+ }
250
+
251
+ td,
252
+ th {
253
+ padding: 0;
254
+ }
255
+
256
+ body{
257
+ margin:0;
258
+ min-height: 100vh;
259
+ position: relative;
260
+ display: flex;
261
+ justify-content: center;
262
+ align-items: center;
263
+ perspective: 2000px;
264
+ }
265
+
266
+ h1 {
267
+ font-weight: 700;
268
+ font-size: 1em;
269
+ }
270
+
271
+
272
+
273
+ h2,h3,h4,h5,h6 {
274
+ font-weight: 700;
275
+ font-size: 2em;
276
+ margin: 0;
277
+ }
278
+
279
+
280
+ .container.particle {
281
+ position: absolute;
282
+ top: 0;
283
+ left: 0;
284
+ right: 0;
285
+ bottom: 0;
286
+ overflow: hidden;
287
+ }
288
+
289
+ #background-wrapper {
290
+ text-align: center;
291
+ }
292
+
293
+
294
+ #background-image,
295
+ .video-banner {
296
+ position: absolute;
297
+ top: 0;
298
+ right: 0;
299
+ bottom: 0;
300
+ left: 0;
301
+ background-position: center center;
302
+ background-repeat: no-repeat;
303
+ background-size: cover;
304
+ z-index: -1;
305
+ }
306
+
307
+ #background-image {
308
+ opacity: 0;
309
+ transition: opacity 400ms;
310
+ }
311
+
312
+ #background-image.loaded {
313
+ opacity: 1;
314
+ }
315
+
316
+ .video-banner iframe {
317
+ transition: opacity 1500ms;
318
+ }
319
+
320
+ .background-overlay {
321
+ position: absolute;
322
+ top: 0;
323
+ right: 0;
324
+ bottom: 0;
325
+ left: 0;
326
+ z-index: -1;
327
+ }
328
+
329
+ #background-image.pattern {
330
+ background-repeat: repeat;
331
+ background-size: initial;
332
+ }
333
+
334
+ .inner-content {
335
+ width: 100%;
336
+ max-width: 600px;
337
+ margin: 0 auto;
338
+ }
339
+
340
+
341
+ .logo {
342
+ padding-bottom: 0;
343
+ }
344
+
345
+ .logo h1 {
346
+ margin: 0;
347
+ }
348
+
349
+
350
+ .logo span {
351
+ display: block;
352
+ }
353
+
354
+ .logo img {
355
+ max-width: 100%;
356
+ margin-bottom: 20px;
357
+ }
358
+
359
+ .body p {
360
+ font-size: 1.1em;
361
+ }
362
+
363
+ .social-list {
364
+ display: inline-block;
365
+ padding:0;
366
+ margin: 0;
367
+ }
368
+
369
+ .social-list li{
370
+ position: relative;
371
+ list-style: none;
372
+ display: inline-block;
373
+ }
374
+
375
+ .social-list a {
376
+ display: block;
377
+ margin: 10px;
378
+ margin-top: 0;
379
+ width: 87px;
380
+ height: 87px;
381
+ font-size: 45px;
382
+ line-height: 87px;
383
+ border-radius: 15px;
384
+ background: transparent;
385
+ background-color: rgba(0,0,0,0.1);
386
+ text-align: center;
387
+ -webkit-transition: background 300ms linear;
388
+ -o-transition: background 300ms linear;
389
+ transition: background 300ms linear;
390
+ }
391
+ .social-list i{
392
+ font-size: 1em;
393
+ -webkit-transition: all 300ms linear;
394
+ -o-transition: all 300ms linear;
395
+ transition: all 300ms linear;
396
+ }
397
+
398
+ .social-list.body li {
399
+ padding: 5px 10px;
400
+ }
401
+
402
+ .social-list.body i {
403
+ color: #ffffff;
404
+ }
405
+
406
+
407
+ #counter,
408
+ .subscribe,
409
+ .social-wrapper {
410
+ margin: 1em 0;
411
+ }
412
+
413
+ .copyright {
414
+ margin-top: 0;
415
+ }
416
+
417
+ .inner-content h1 {
418
+ margin: 0;
419
+ /* transform: translateZ(30px); */
420
+ }
421
+
422
+
423
+ .social-wrapper li,
424
+ input,
425
+ .input-icon {
426
+ transform: translateZ(0);
427
+ transition: transform 500ms, opacity 500ms;
428
+ }
429
+
430
+ .social-wrapper li:hover,
431
+ input:hover,
432
+ .input-icon.hover {
433
+ transition: transform 500ms, opacity 300ms;
434
+ transform: translateZ(20px);
435
+ }
436
+
437
+ .slabtext{
438
+ display:block;
439
+ line-height: 1;
440
+ opacity:.3;
441
+ }
442
+
443
+ .slabtextdone .slabtext.hover{
444
+ opacity:1;
445
+ }
446
+
447
+
448
+
449
+ .social-wrapper li {
450
+ /* transform: translateZ(30px); */
451
+ }
452
+
453
+ .inner-content form {
454
+ text-align: left;
455
+ }
456
+
457
+ .inner-content form br {
458
+ display: none;
459
+ }
460
+
461
+ input {
462
+ display: inline-block;
463
+ line-height: 3em;
464
+ height: 3em;
465
+ box-sizing: border-box;
466
+ vertical-align: middle;
467
+ margin-bottom: 10px;
468
+ }
469
+
470
+ label {
471
+ display: block;
472
+ text-align: left;
473
+ font-size: .8em;
474
+ padding: 0 0 5px 15px;
475
+ }
476
+
477
+ .input-icon {
478
+ position: relative;
479
+ }
480
+
481
+ .input-icon:before {
482
+ font-family: 'fontAwesome';
483
+ content: '\f003';
484
+ position: absolute;
485
+ line-height: 72px;
486
+ padding-left: 16px;
487
+ }
488
+
489
+ input {
490
+ height: 75px;
491
+ line-height: 75px;
492
+ }
493
+
494
+ input[type="email"].subscribe-input {
495
+ text-indent: 40px;
496
+ }
497
+
498
+ input:focus {
499
+ border: 1px solid #ffffff;
500
+ }
501
+ input[type="email"],
502
+ input[type="text"] {
503
+ width: calc(100% - 75px);
504
+ /* background-color: rgba(255,255,255,0.21); */
505
+ text-indent: 15px;
506
+ font-style: italic;
507
+ border: none;
508
+ border-bottom-left-radius: 5px;
509
+ border-top-left-radius: 5px;
510
+
511
+ }
512
+
513
+ input[type="text"] {
514
+ width: 100%;
515
+ }
516
+ input[type="submit"] {
517
+ font-family: FontAwesome;
518
+ width: 75px;
519
+ padding: 0 10px;
520
+ margin-left:-6px;
521
+ font-size: 35px;
522
+ border: none;
523
+ cursor:pointer;
524
+ text-transform: uppercase;
525
+ border-bottom-right-radius: 5px;
526
+ border-top-right-radius: 5px;
527
+ }
528
+
529
+ /* Mailchimp css */
530
+ .mc4wp-form-fields {
531
+ display: -webkit-box; /* OLD - iOS 6-, Safari 3.1-6, BB7 */
532
+ display: -ms-flexbox; /* TWEENER - IE 10 */
533
+ display: -webkit-flex; /* NEW - Safari 6.1+. iOS 7.1+, BB10 */
534
+ display: flex; /* NEW, Spec - Firefox, Chrome, Opera */
535
+ -webkit-flex-wrap: wrap;
536
+ -moz-flex-wrap: wrap;
537
+ -ms-flex-wrap: wrap;
538
+ -o-flex-wrap: wrap;
539
+ flex-wrap: wrap;
540
+ }
541
+
542
+ .mc4wp-form input[type="email"],
543
+ .mc4wp-form input[type="text"] {
544
+ flex-grow: 1;
545
+ }
546
+
547
+ .mc4wp-form input[type="email"],
548
+ .mc4wp-form input[type="submit"] {
549
+ width: auto;
550
+ }
551
+
552
+ .counter-wrap {
553
+ position: relative;
554
+ display: inline-block;
555
+ margin: 5px;
556
+ width: 120px;
557
+ height: 120px;
558
+ border-radius: 15px;
559
+ }
560
+
561
+ .counter-wrap::before {
562
+ content: "";
563
+ display: block;
564
+ padding-top: 100%;
565
+ }
566
+
567
+
568
+ .inner-counter {
569
+ position: absolute;
570
+ top: 50%;
571
+ right: 0;
572
+ left: 0;
573
+ padding: 10px;
574
+ -webkit-transform: translateY(-50%);
575
+ -ms-transform: translateY(-50%);
576
+ -o-transform: translateY(-50%);
577
+ transform: translateY(-50%);
578
+ }
579
+
580
+ .counter-wrap p {
581
+ margin: 0;
582
+ font-weight: 700;
583
+ }
584
+
585
+ .counter-wrap span {
586
+ display: inline-block;
587
+ font-weight: 700;
588
+ font-size: 3em;
589
+ }
590
+
591
+
592
+
593
+ /* 3d animation */
594
+ .content {
595
+ transform-style: preserve-3d;
596
+ transform-style: preserve-3d;
597
+ background: rgba(0,0,0,.1);
598
+ padding: 30px;
599
+ border-radius: 10px;
600
+ }
601
+
602
+ .content:before {
603
+ content: '';
604
+ position: absolute;
605
+ left:5%; top:5%;
606
+ width:90%; height:90%;
607
+ border-radius: inherit;
608
+ background: rgba(0,0,0,.1);
609
+ box-shadow: 0 0 40px 20px rgba(0,0,0,.1);
610
+ transform: translateZ(-100px);
611
+ }
612
+
613
+
614
+ /* contact form 7 */
615
+ .wpcf7 .screen-reader-response, .wpcf7 .wpcf7-validation-errors {display: none;}
616
+ .wpcf7 .wpcf7-form-control-wrap {position: relative;}
617
+ .wpcf7-form .wpcf7-not-valid-tip {position: absolute;bottom: -3em;left: 15px;right: -100px;text-align: left;}
618
+
619
+
620
+ /* slabtext required */
621
+ .slabtexted .slabtext{display:-moz-inline-box;display:inline-block;white-space:nowrap}.slabtextinactive .slabtext{display:inline;white-space:normal;font-size:1em !important;letter-spacing:inherit !important;word-spacing:inherit !important;*letter-spacing:normal !important;*word-spacing:normal !important}
622
+
623
+
624
+
625
+
626
+ @media only screen and (max-width : 1024px) {
627
+
628
+
629
+ }
630
+
631
+
632
+
633
+ @media only screen and (max-width : 768px) {
634
+ .content {
635
+ padding: 60px;
636
+ }
637
+ .counter-wrap {
638
+ width: 105px;
639
+ height: 105px;
640
+ }
641
+
642
+ .social-list a {
643
+ width: 75px;
644
+ height: 75px;
645
+ line-height: 75px;
646
+ }
647
+ }
648
+
649
+ @media only screen and (max-width : 600px) {
650
+ .counter-wrap {
651
+ width: calc(50% - 15px);
652
+ height: calc(50% - 15px);
653
+ }
654
+ input {
655
+ height: 55px;
656
+ line-height: 55px;
657
+ }
658
+
659
+ .input-icon:before {
660
+ line-height: 53px;
661
+ }
662
+
663
+ .social-list a {
664
+ width: 55px;
665
+ height: 55px;
666
+ line-height: 55px;
667
+ font-size: 30px;
668
+ }
669
+
670
+
671
+ }
672
+
673
+ @media only screen and (max-width : 420px) {
674
+ input[type="submit"],
675
+ input[type="text"],
676
+ input[type="email"] {
677
+ display: block;
678
+ width: 100%;
679
+ border-radius: 5px;
680
+ margin-left: 0;
681
+ }
682
+ .content {
683
+ padding: 1em;
684
+ }
685
+ }