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

Version Description

Download this release

Release Info

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

Code changes from version 1.13.1 to 2.0

Files changed (53) hide show
  1. cmp-settings.php +153 -52
  2. cmp-translate.php +12 -0
  3. css/animate.min.css +154 -0
  4. css/cmp-admin-head.css +36 -16
  5. css/cmp-settings-style.css +113 -6
  6. css/cmp-settings-style.min.css +1 -0
  7. css/fastselect.min.css +0 -232
  8. css/select2.min.css +1 -0
  9. img/thumbnails/eclipse/screenshot1.jpg +0 -0
  10. img/thumbnails/eclipse/screenshot2.jpg +0 -0
  11. img/thumbnails/eclipse_thumbnail.jpg +0 -0
  12. img/thumbnails/fifty/screenshot1.jpg +0 -0
  13. img/thumbnails/fifty/screenshot3.jpg +0 -0
  14. inc/class-cmp-render_html.php +36 -15
  15. inc/preview-iframe.php +24 -20
  16. inc/settings-counter.php +15 -0
  17. inc/settings-footer.php +78 -1
  18. inc/settings-slider.php +1 -1
  19. inc/webfonts.php +5 -0
  20. js/fastsearch.min.js +0 -1
  21. js/fastselect.min.js +0 -773
  22. js/select2.min.js +1 -0
  23. js/settings.js +39 -91
  24. js/settings.min.js +31 -34
  25. js/typography.js +293 -0
  26. js/typography.min.js +9 -0
  27. languages/coming-soon-default.mo +0 -0
  28. languages/coming-soon-default.po +50 -15
  29. niteo-cmp.php +191 -104
  30. readme.txt +26 -16
  31. themes/construct.txt +1 -5
  32. themes/construct/construct-theme.php +17 -1
  33. themes/construct/img/construct_thumbnail.jpg +0 -0
  34. themes/construct/style.css +22 -14
  35. themes/countdown.txt +1 -5
  36. themes/countdown/countdown-settings.php +0 -10
  37. themes/countdown/countdown-theme.php +17 -8
  38. themes/countdown/img/countdown_thumbnail.jpg +0 -0
  39. themes/countdown/style.css +14 -22
  40. themes/eclipse.txt +3 -0
  41. themes/fifty.txt +1 -5
  42. themes/frame.txt +1 -5
  43. themes/hardwork.txt +1 -5
  44. themes/hardwork/hardwork-settings.php +0 -11
  45. themes/hardwork/hardwork-theme.php +21 -15
  46. themes/hardwork/img/hardwork_thumbnail.jpg +0 -0
  47. themes/hardwork/style.css +30 -16
  48. themes/hardwork_premium.txt +1 -5
  49. themes/postery.txt +1 -5
  50. themes/postery/img/postery_thumbnail.jpg +0 -0
  51. themes/postery/postery-settings.php +0 -11
  52. themes/postery/postery-theme.php +13 -9
  53. themes/postery/style.css +42 -48
cmp-settings.php CHANGED
@@ -12,6 +12,8 @@ if ( isset($_POST['select_theme']) && in_array($_POST['select_theme'], $this->th
12
  update_option('niteoCS_theme', sanitize_text_field($_POST['select_theme']));
13
  }
14
 
 
 
15
  $themeslug = $this->cmp_selectedTheme();
16
 
17
  if (isset($_POST['niteoCS_logo_id_'.$themeslug]) && ( is_numeric($_POST['niteoCS_logo_id_'.$themeslug]) || empty($_POST['niteoCS_logo_id_'.$themeslug]))) {
@@ -30,18 +32,49 @@ if (isset($_POST['niteoCS_font_headings_'.$themeslug])) {
30
  update_option('niteoCS_font_headings['.$themeslug.']', sanitize_text_field($_POST['niteoCS_font_headings_'.$themeslug]));
31
  }
32
 
 
 
 
 
 
 
 
 
 
 
 
 
 
33
  if (isset($_POST['niteoCS_font_content_'.$themeslug])) {
34
  update_option('niteoCS_font_content['.$themeslug.']', sanitize_text_field($_POST['niteoCS_font_content_'.$themeslug]));
35
  }
36
- if (isset($_POST['niteoCS_font_headings_custom_'.$themeslug])) {
37
- update_option('niteoCS_font_headings_custom['.$themeslug.']', ucwords( sanitize_text_field($_POST['niteoCS_font_headings_custom_'.$themeslug]) ) );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
38
  }
39
 
40
- if (isset($_POST['niteoCS_font_content_custom_'.$themeslug])) {
41
- update_option('niteoCS_font_content_custom['.$themeslug.']', ucwords( sanitize_text_field($_POST['niteoCS_font_content_custom_'.$themeslug]) ) );
42
  }
43
 
44
 
 
45
  if (isset($_POST['niteoCS_banner_'.$themeslug]) && is_numeric($_POST['niteoCS_banner_'.$themeslug])) {
46
  update_option('niteoCS_banner['.$themeslug.']', sanitize_text_field($_POST['niteoCS_banner_'.$themeslug]));
47
  }
@@ -258,8 +291,8 @@ $niteoCS_custom_css = stripslashes(get_option('niteoCS_custom_css', ''));
258
  $niteoCS_logo_type = get_option('niteoCS_logo_type['.$themeslug.']', 'text');
259
  $niteoCS_logo_id = get_option('niteoCS_logo_id['.$themeslug.']');
260
  $niteoCS_text_logo = stripslashes(get_option('niteoCS_text_logo['.$themeslug.']', get_bloginfo( 'name', 'display' )));
261
- $niteoCS_font_content_custom = get_option('niteoCS_font_content_custom['.$themeslug.']', '');
262
- $niteoCS_font_headings_custom = get_option('niteoCS_font_headings_custom['.$themeslug.']', '');
263
 
264
  $niteoCS_banner_custom_id = get_option('niteoCS_banner_id['.$themeslug.']');
265
  $niteoCS_unsplash_feed = get_option('niteoCS_unsplash_feed['.$themeslug.']', '3');
@@ -290,6 +323,15 @@ $niteoCS_vimeo_url = get_option('niteoCS_vimeo_url['.$themeslug.']');
290
  $niteoCS_video_thumb = get_option('niteoCS_video_thumb['.$themeslug.']');
291
  $niteoCS_video_file_url = get_option('niteoCS_video_file_url['.$themeslug.']');
292
 
 
 
 
 
 
 
 
 
 
293
  // create default social media if they do not exists
294
  if ( !get_option('niteoCS_socialmedia') ) {
295
  $social_icons = array('facebook', 'google-plus', 'twitter', 'instagram', 'skype', '500px', 'deviantart', 'behance', 'dribbble', 'pinterest', 'linkedin', 'tumblr', 'youtube', 'vimeo', 'flickr', 'soundcloud', 'vk','envelope-o');
@@ -372,11 +414,6 @@ if ( $niteoCS_banner_pattern == 'custom' && $niteoCS_banner_pattern_custom != ''
372
  // define patterns array
373
  $patterns = array('fabric', 'gray_sand', 'green_dust_scratch', 'mirrored_squares', 'noisy', 'photography', 'playstation', 'sakura', 'white_sand', 'white_texture');
374
 
375
- // define fonts array
376
- $fonts = array('Fjalla One', 'Average Sans', 'Playfair Display', 'Work Sans', 'Rubik', 'Libre Franklin', 'Space Mono', 'Fira Sans', 'Eczar', 'Alegreya Sans', 'Chivo', 'Lora', 'Source Sans Pro', 'Source Serif Pro', 'Roboto Slab', 'Raleway');
377
-
378
-
379
-
380
  // Handle ZIP UPLOAD
381
  if( isset($_POST['submit_theme']) ) {
382
  $this->cmp_theme_upload($_FILES['fileToUpload']);
@@ -577,10 +614,21 @@ add_thickbox();
577
  foreach ( $premium_themes as $premium_theme ) {
578
  $theme_slug = $premium_theme['name'];
579
  $thumbnail = plugins_url('/img/thumbnails/'. $theme_slug . '_thumbnail.jpg', __FILE__);
580
- // if premium theme is not in themes array, display buy button
581
- if ( !in_array( $theme_slug, $this->theme_array) ) {
582
- $purchased = 'false';
583
- $version = '';
 
 
 
 
 
 
 
 
 
 
 
584
  }
585
 
586
  // if premium theme has been installed
@@ -592,10 +640,9 @@ add_thickbox();
592
  $version = get_file_data( $this->plugins_dir_path . 'cmp-premium-themes/'.$theme_slug.'/style.css', $headers, '');
593
  if ( isset($version[0])) { $version = $version[0] ;}
594
  }
595
- }
596
- ?>
597
 
598
- <div class="theme-wrapper<?php if ( $this->cmp_selectedTheme() == $theme_slug ) { echo ' active'; } ?> premium" data-security="<?php echo esc_attr($ajax_nonce);?>" data-slug="<?php echo esc_attr($theme_slug);?>" data-type="premium" data-purchased="<?php echo esc_attr($purchased);?>" data-slug="<?php echo esc_attr($theme_slug);?>" data-version="<?php echo esc_html($version);?>" data-remote_url="<?php echo esc_url($this->remoteServer);?>">
599
 
600
  <div class="thumbnail-holder theme-details" style="background-image:url('<?php echo esc_url( $thumbnail ); ?>')"></div>
601
 
@@ -612,13 +659,16 @@ add_thickbox();
612
  <span class="input-label"><?php if ( $this->cmp_selectedTheme() == $theme_slug ) { _e('Active', 'cmp-coming-soon-maintenance'); } else { _e('Select', 'cmp-coming-soon-maintenance'); }?></span>
613
  </div>
614
  <?php
615
- // if not purchased, display buy button
616
- } else { ?>
617
 
618
  <button type="button" class="theme-purchase button hide"><a href="<?php echo esc_url($premium_theme['url']);?>" target="_blank"><i class="fa fa-cart-arrow-down" aria-hidden="true"></i><?php _e('Buy', 'cmp-coming-soon-maintenance');?></a></button>
619
  <?php
 
 
 
 
620
  } ?>
621
-
622
  <button type="button" class="theme-details button hide"><i class="fa fa-eye" aria-hidden="true"></i><?php _e('DETAILS', 'cmp-coming-soon-maintenance');?></button>
623
 
624
  </div>
@@ -829,17 +879,14 @@ add_thickbox();
829
  }
830
 
831
  }
832
- ?>
833
 
834
- <?php
835
  // include theme related settings
836
  if (file_exists($this->cmp_themePath($this->cmp_selectedTheme()).$this->cmp_selectedTheme().'/'.$this->cmp_selectedTheme().'-settings.php')) {
837
  require ( $this->cmp_themePath($this->cmp_selectedTheme()).$this->cmp_selectedTheme().'/'.$this->cmp_selectedTheme().'-settings.php' );
838
  }
839
-
840
  ?>
841
 
842
- <div class="table-wrapper theme-setup">
843
  <h3><?php _e('Customize Fonts', 'cmp-coming-soon-maintenance');?></h3>
844
  <table class="theme-setup">
845
  <tbody>
@@ -847,49 +894,103 @@ add_thickbox();
847
  <th><h4><?php _e('Headings Font', 'cmp-coming-soon-maintenance');?></h4></th>
848
  <td>
849
  <fieldset>
850
- <label for="niteoCS_font_headings_<?php echo esc_attr($themeslug);?>"><?php _e('Select from predefined Google Fonts or insert Custom font', 'cmp-coming-soon-maintenance');?></label></br>
851
- <select name="niteoCS_font_headings_<?php echo esc_attr($themeslug);?>" class="niteoCS_font_headings">
852
- <?php
853
- foreach ($fonts as $font) { ?>
854
- <option value="<?php echo esc_attr($font);?>" <?php if ( $niteoCS_font_headings == $font ) { echo ' selected="selected"'; } ?>><?php echo esc_html($font);?></option>
855
- <?php
856
- } ?>
857
- <option value="custom" <?php if ( $niteoCS_font_headings == 'custom' ) { echo ' selected="selected"'; } ?>><?php _e('Custom font...', 'cmp-coming-soon-maintenance');?></option>
858
- </select><br>
 
 
859
  </fieldset>
860
 
861
- <fieldset id="custom_headings_font" <?php if ( $niteoCS_font_headings == 'custom' ) { echo 'style="display:block"'; } ?>>
862
- <label for="niteoCS_font_headings_custom_<?php echo esc_attr($themeslug);?>"><?php _e('Enter name of ', 'cmp-coming-soon-maintenance');?><a href="https://fonts.google.com/" target="_blank">Google font</a></label>
863
- <input type="text" name="niteoCS_font_headings_custom_<?php echo esc_attr($themeslug);?>" id="niteoCS_font_headings_custom" value="<?php echo esc_attr( $niteoCS_font_headings_custom); ?>" class="regular-text code">
864
  </fieldset>
865
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
866
  </td>
867
  </tr>
868
 
869
  <tr>
870
  <th><h4><?php _e('Content Font', 'cmp-coming-soon-maintenance');?></h4></th>
871
  <td>
 
872
  <fieldset>
873
- <label for="niteoCS_font_content_<?php echo esc_attr($themeslug);?>"><?php _e('Select from predefined Google Fonts or insert Custom font', 'cmp-coming-soon-maintenance');?></label></br>
874
- <select name="niteoCS_font_content_<?php echo esc_attr($themeslug);?>" class="niteoCS_font_content">
875
- <?php
876
- foreach ($fonts as $font) { ?>
877
- <option value="<?php echo esc_attr($font);?>" <?php if ( $niteoCS_font_content == $font ) { echo ' selected="selected"'; } ?>><?php echo esc_html($font);?></option>
878
- <?php
879
- } ?>
880
- <option value="custom" <?php if ( $niteoCS_font_content == 'custom' ) { echo ' selected="selected"'; } ?>><?php _e('Custom font...', 'cmp-coming-soon-maintenance');?></option>
881
- </select><br>
 
 
 
 
 
 
 
 
882
  </fieldset>
883
 
884
- <fieldset id="custom_content_font" <?php if ( $niteoCS_font_content == 'custom' ) { echo 'style="display:block"'; } ?>>
885
- <label for="niteoCS_font_content_custom_<?php echo esc_attr($themeslug);?>"><?php _e('Enter name of ', 'cmp-coming-soon-maintenance');?><a href="https://fonts.google.com/" target="_blank">Google font</a></label>
886
- <input type="text" name="niteoCS_font_content_custom_<?php echo esc_attr($themeslug);?>" id="niteoCS_font_content_custom" value="<?php echo esc_attr( $niteoCS_font_content_custom); ?>" class="regular-text code">
 
 
 
 
 
887
  </fieldset>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
888
 
889
- <span>Fonts preview</span>
890
  <div id="font-example-wrapper">
891
- <h3 id="heading-example">Hello, I am your Headings font!</h3>
892
- <p id="content-example">And this is a long paragraph. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
893
  </div>
894
 
895
  </td>
12
  update_option('niteoCS_theme', sanitize_text_field($_POST['select_theme']));
13
  }
14
 
15
+
16
+
17
  $themeslug = $this->cmp_selectedTheme();
18
 
19
  if (isset($_POST['niteoCS_logo_id_'.$themeslug]) && ( is_numeric($_POST['niteoCS_logo_id_'.$themeslug]) || empty($_POST['niteoCS_logo_id_'.$themeslug]))) {
32
  update_option('niteoCS_font_headings['.$themeslug.']', sanitize_text_field($_POST['niteoCS_font_headings_'.$themeslug]));
33
  }
34
 
35
+ if (isset($_POST['niteoCS_font_headings_variant_'.$themeslug])) {
36
+ update_option('niteoCS_font_headings_variant['.$themeslug.']', sanitize_text_field($_POST['niteoCS_font_headings_variant_'.$themeslug]));
37
+ }
38
+
39
+ if (isset($_POST['niteoCS_font_headings_size_'.$themeslug])) {
40
+ update_option('niteoCS_font_headings_size['.$themeslug.']', sanitize_text_field($_POST['niteoCS_font_headings_size_'.$themeslug]));
41
+ }
42
+
43
+
44
+ if (isset($_POST['niteoCS_font_headings_spacing_'.$themeslug])) {
45
+ update_option('niteoCS_font_headings_spacing['.$themeslug.']', sanitize_text_field($_POST['niteoCS_font_headings_spacing_'.$themeslug]));
46
+ }
47
+
48
  if (isset($_POST['niteoCS_font_content_'.$themeslug])) {
49
  update_option('niteoCS_font_content['.$themeslug.']', sanitize_text_field($_POST['niteoCS_font_content_'.$themeslug]));
50
  }
51
+
52
+ if (isset($_POST['niteoCS_font_content_variant_'.$themeslug])) {
53
+ update_option('niteoCS_font_content_variant['.$themeslug.']', sanitize_text_field($_POST['niteoCS_font_content_variant_'.$themeslug]));
54
+ }
55
+
56
+ if (isset($_POST['niteoCS_font_content_size_'.$themeslug])) {
57
+ update_option('niteoCS_font_content_size['.$themeslug.']', sanitize_text_field($_POST['niteoCS_font_content_size_'.$themeslug]));
58
+ }
59
+
60
+ if (isset($_POST['niteoCS_font_content_lineheight_'.$themeslug])) {
61
+ update_option('niteoCS_font_content_lineheight['.$themeslug.']', sanitize_text_field($_POST['niteoCS_font_content_lineheight_'.$themeslug]));
62
+ }
63
+
64
+ if (isset($_POST['niteoCS_font_content_spacing_'.$themeslug])) {
65
+ update_option('niteoCS_font_content_spacing['.$themeslug.']', sanitize_text_field($_POST['niteoCS_font_content_spacing_'.$themeslug]));
66
+ }
67
+
68
+ if (isset($_POST['niteoCS_heading_animation_'.$themeslug])) {
69
+ update_option('niteoCS_heading_animation['.$themeslug.']', sanitize_text_field($_POST['niteoCS_heading_animation_'.$themeslug]) );
70
  }
71
 
72
+ if (isset($_POST['niteoCS_content_animation_'.$themeslug])) {
73
+ update_option('niteoCS_content_animation['.$themeslug.']', sanitize_text_field($_POST['niteoCS_content_animation_'.$themeslug]) );
74
  }
75
 
76
 
77
+
78
  if (isset($_POST['niteoCS_banner_'.$themeslug]) && is_numeric($_POST['niteoCS_banner_'.$themeslug])) {
79
  update_option('niteoCS_banner['.$themeslug.']', sanitize_text_field($_POST['niteoCS_banner_'.$themeslug]));
80
  }
291
  $niteoCS_logo_type = get_option('niteoCS_logo_type['.$themeslug.']', 'text');
292
  $niteoCS_logo_id = get_option('niteoCS_logo_id['.$themeslug.']');
293
  $niteoCS_text_logo = stripslashes(get_option('niteoCS_text_logo['.$themeslug.']', get_bloginfo( 'name', 'display' )));
294
+ $niteoCS_heading_animation = get_option('niteoCS_heading_animation['.$themeslug.']', 'fadeInDown');
295
+ $niteoCS_content_animation = get_option('niteoCS_content_animation['.$themeslug.']', 'fadeInUp');
296
 
297
  $niteoCS_banner_custom_id = get_option('niteoCS_banner_id['.$themeslug.']');
298
  $niteoCS_unsplash_feed = get_option('niteoCS_unsplash_feed['.$themeslug.']', '3');
323
  $niteoCS_video_thumb = get_option('niteoCS_video_thumb['.$themeslug.']');
324
  $niteoCS_video_file_url = get_option('niteoCS_video_file_url['.$themeslug.']');
325
 
326
+ $niteoCS_font_headings_variant = get_option('niteoCS_font_headings_variant['.$themeslug.']', '700');
327
+ $niteoCS_font_headings_size = get_option('niteoCS_font_headings_size['.$themeslug.']', '40');
328
+ $niteoCS_font_headings_spacing = get_option('niteoCS_font_headings_spacing['.$themeslug.']', '0');
329
+ $niteoCS_font_content_variant = get_option('niteoCS_font_content_variant['.$themeslug.']', 'regular');
330
+ $niteoCS_font_content_lineheight = get_option('niteoCS_font_content_lineheight['.$themeslug.']', '1.5');
331
+ $niteoCS_font_content_size = get_option('niteoCS_font_content_size['.$themeslug.']', '17');
332
+ $niteoCS_font_content_spacing = get_option('niteoCS_font_content_spacing['.$themeslug.']', '0');
333
+
334
+
335
  // create default social media if they do not exists
336
  if ( !get_option('niteoCS_socialmedia') ) {
337
  $social_icons = array('facebook', 'google-plus', 'twitter', 'instagram', 'skype', '500px', 'deviantart', 'behance', 'dribbble', 'pinterest', 'linkedin', 'tumblr', 'youtube', 'vimeo', 'flickr', 'soundcloud', 'vk','envelope-o');
414
  // define patterns array
415
  $patterns = array('fabric', 'gray_sand', 'green_dust_scratch', 'mirrored_squares', 'noisy', 'photography', 'playstation', 'sakura', 'white_sand', 'white_texture');
416
 
 
 
 
 
 
417
  // Handle ZIP UPLOAD
418
  if( isset($_POST['submit_theme']) ) {
419
  $this->cmp_theme_upload($_FILES['fileToUpload']);
614
  foreach ( $premium_themes as $premium_theme ) {
615
  $theme_slug = $premium_theme['name'];
616
  $thumbnail = plugins_url('/img/thumbnails/'. $theme_slug . '_thumbnail.jpg', __FILE__);
617
+ $freebie = 'false';
618
+ $purchased = 'false';
619
+ $version = '';
620
+
621
+ // if premium theme is not in installed themes array
622
+ if ( !in_array( $theme_slug, $this->theme_array) ) {
623
+ // check if theme is freebie [price-0] and display download button
624
+ if ( $premium_theme['price'] == 0 ) {
625
+ $freebie = 'true';
626
+ // get theme version
627
+ if ( file_exists($this->plugins_dir_path . 'cmp-premium-themes/'.$theme_slug.'/style.css') ) {
628
+ $version = get_file_data( $this->plugins_dir_path . 'cmp-premium-themes/'.$theme_slug.'/style.css', $headers, '');
629
+ if ( isset($version[0])) { $version = $version[0] ;}
630
+ }
631
+ }
632
  }
633
 
634
  // if premium theme has been installed
640
  $version = get_file_data( $this->plugins_dir_path . 'cmp-premium-themes/'.$theme_slug.'/style.css', $headers, '');
641
  if ( isset($version[0])) { $version = $version[0] ;}
642
  }
643
+ }?>
 
644
 
645
+ <div class="theme-wrapper<?php if ( $this->cmp_selectedTheme() == $theme_slug ) { echo ' active'; } ?> premium" data-security="<?php echo esc_attr($ajax_nonce);?>" data-slug="<?php echo esc_attr($theme_slug);?>" data-type="premium" data-purchased="<?php echo esc_attr($purchased);?>" data-slug="<?php echo esc_attr($theme_slug);?>" data-version="<?php echo esc_html($version);?>" data-remote_url="<?php echo esc_url($this->remoteServer);?>" data-freebie="<?php echo esc_attr( $freebie );?>">
646
 
647
  <div class="thumbnail-holder theme-details" style="background-image:url('<?php echo esc_url( $thumbnail ); ?>')"></div>
648
 
659
  <span class="input-label"><?php if ( $this->cmp_selectedTheme() == $theme_slug ) { _e('Active', 'cmp-coming-soon-maintenance'); } else { _e('Select', 'cmp-coming-soon-maintenance'); }?></span>
660
  </div>
661
  <?php
662
+ // if not purchased and is not freebie, display buy button
663
+ } else if ( $freebie !== 'true' ) { ?>
664
 
665
  <button type="button" class="theme-purchase button hide"><a href="<?php echo esc_url($premium_theme['url']);?>" target="_blank"><i class="fa fa-cart-arrow-down" aria-hidden="true"></i><?php _e('Buy', 'cmp-coming-soon-maintenance');?></a></button>
666
  <?php
667
+ // if freebie, dislay download
668
+ } else if ( $freebie == 'true' ) { ?>
669
+ <button type="button" class="theme-purchase button hide"><a href="<?php echo esc_url($premium_theme['url']);?>" target="_blank"><i class="fa fa-download" aria-hidden="true"></i><?php _e('FREE Download', 'cmp-coming-soon-maintenance');?></a></button>
670
+ <?php
671
  } ?>
 
672
  <button type="button" class="theme-details button hide"><i class="fa fa-eye" aria-hidden="true"></i><?php _e('DETAILS', 'cmp-coming-soon-maintenance');?></button>
673
 
674
  </div>
879
  }
880
 
881
  }
 
882
 
 
883
  // include theme related settings
884
  if (file_exists($this->cmp_themePath($this->cmp_selectedTheme()).$this->cmp_selectedTheme().'/'.$this->cmp_selectedTheme().'-settings.php')) {
885
  require ( $this->cmp_themePath($this->cmp_selectedTheme()).$this->cmp_selectedTheme().'/'.$this->cmp_selectedTheme().'-settings.php' );
886
  }
 
887
  ?>
888
 
889
+ <div class="table-wrapper theme-setup font-selector">
890
  <h3><?php _e('Customize Fonts', 'cmp-coming-soon-maintenance');?></h3>
891
  <table class="theme-setup">
892
  <tbody>
894
  <th><h4><?php _e('Headings Font', 'cmp-coming-soon-maintenance');?></h4></th>
895
  <td>
896
  <fieldset>
897
+ <label for="niteoCS_font_headings_<?php echo esc_attr($themeslug);?>"><?php _e('Font Family from ', 'cmp-coming-soon-maintenance');?><a href="https://fonts.google.com" target="_blank">Google Fonts</a></label></br>
898
+ <select class="headings-google-font" name ="niteoCS_font_headings_<?php echo esc_attr($themeslug);?>">
899
+ <option value="<?php echo esc_attr( $niteoCS_font_headings); ?>" selected="selected"><?php echo esc_html( $niteoCS_font_headings); ?></option>
900
+ </select>
901
+ </fieldset>
902
+
903
+ <fieldset>
904
+ <label for="niteoCS_font_headings_variant_<?php echo esc_attr($themeslug);?>"><?php _e('Variant', 'cmp-coming-soon-maintenance');?></label></br>
905
+ <select class="headings-google-font-variant" name ="niteoCS_font_headings_variant_<?php echo esc_attr($themeslug);?>">
906
+ <option value="<?php echo esc_attr( $niteoCS_font_headings_variant); ?>" selected="selected"><?php echo esc_html( $this->cmp_google_variant_title($niteoCS_font_headings_variant) ); ?></option>
907
+ </select>
908
  </fieldset>
909
 
910
+ <fieldset>
911
+ <label for="niteoCS_font_headings_size_<?php echo esc_attr($themeslug);?>"><?php _e('Font Size', 'cmp-coming-soon-maintenance');?>: <span><?php echo esc_attr( $niteoCS_font_headings_size ); ?></span>px</label></br>
912
+ <input type="range" name="niteoCS_font_headings_size_<?php echo esc_attr($themeslug);?>" min="10" max="75" step="1" value="<?php echo esc_attr( $niteoCS_font_headings_size ); ?>" data-css="font-size" data-type="heading" />
913
  </fieldset>
914
 
915
+ <fieldset>
916
+ <label for="niteoCS_font_headings_spacing_<?php echo esc_attr($themeslug);?>"><?php _e('Letter Spacing', 'cmp-coming-soon-maintenance');?>: <span><?php echo esc_attr( $niteoCS_font_headings_spacing ); ?></span>px</label></br>
917
+ <input type="range" name="niteoCS_font_headings_spacing_<?php echo esc_attr($themeslug);?>" min="0" max="10" step="0.5" value="<?php echo esc_attr( $niteoCS_font_headings_spacing ); ?>" data-css="letter-spacing" data-type="heading" />
918
+ </fieldset>
919
+
920
+ <?php
921
+ // include theme animation settings
922
+ if ( $this->cmp_selectedTheme() == 'hardwork_premium' || $this->cmp_selectedTheme() == 'fifty' ) { ?>
923
+
924
+ <fieldset>
925
+ <label for="niteoCS_heading_animation_<?php echo esc_attr($themeslug);?>"><?php _e('Animation', 'cmp-coming-soon-maintenance');?></label></br>
926
+ <select name="niteoCS_heading_animation_<?php echo esc_attr($themeslug);?>" class="heading-animation">
927
+ <option value="none" <?php if ( $niteoCS_heading_animation == 'none' ) { echo ' selected="selected"'; } ?>><?php _e('No animation', 'cmp-coming-soon-maintenance');?></option>
928
+ <option value="fadeInDown" <?php if ( $niteoCS_heading_animation == 'fadeInDown' ) { echo ' selected="selected"'; } ?>><?php _e('Fade In Down', 'cmp-coming-soon-maintenance');?></option>
929
+ <option value="fadeInUp" <?php if ( $niteoCS_heading_animation == 'fadeInUp' ) { echo ' selected="selected"'; } ?>><?php _e('Fade In Up', 'cmp-coming-soon-maintenance');?></option>
930
+ <option value="fadeInLeft" <?php if ( $niteoCS_heading_animation == 'fadeInLeft' ) { echo ' selected="selected"'; } ?>><?php _e('Fade In Left', 'cmp-coming-soon-maintenance');?></option>
931
+ <option value="fadeInRight" <?php if ( $niteoCS_heading_animation == 'fadeInRight' ) { echo ' selected="selected"'; } ?>><?php _e('Fade In Right', 'cmp-coming-soon-maintenance');?></option>
932
+ </select><br>
933
+ </fieldset>
934
+ <?php
935
+ } ?>
936
+
937
  </td>
938
  </tr>
939
 
940
  <tr>
941
  <th><h4><?php _e('Content Font', 'cmp-coming-soon-maintenance');?></h4></th>
942
  <td>
943
+
944
  <fieldset>
945
+ <label for="niteoCS_font_content_<?php echo esc_attr($themeslug);?>"><?php _e('Select Font Family from ', 'cmp-coming-soon-maintenance');?><a href="https://fonts.google.com" target="_blank">Google Fonts</a></label></br>
946
+
947
+ <select class="content-google-font" name ="niteoCS_font_content_<?php echo esc_attr($themeslug);?>">
948
+ <option value="<?php echo esc_attr( $niteoCS_font_content ); ?>" selected="selected"><?php echo esc_html( $niteoCS_font_content ); ?></option>
949
+ </select>
950
+ </fieldset>
951
+
952
+ <fieldset>
953
+ <label for="niteoCS_font_content_variant_<?php echo esc_attr($themeslug);?>"><?php _e('Variant', 'cmp-coming-soon-maintenance');?></label></br>
954
+ <select class="content-google-font-variant" name ="niteoCS_font_content_variant_<?php echo esc_attr($themeslug);?>">
955
+ <option value="<?php echo esc_attr( $niteoCS_font_content_variant); ?>" selected="selected"><?php echo esc_html( $this->cmp_google_variant_title($niteoCS_font_content_variant) ); ?></option>
956
+ </select>
957
+ </fieldset>
958
+
959
+ <fieldset>
960
+ <label for="niteoCS_font_content_size_<?php echo esc_attr($themeslug);?>"><?php _e('Font Size', 'cmp-coming-soon-maintenance');?>: <span><?php echo esc_attr( $niteoCS_font_content_size ); ?></span>px</label></br>
961
+ <input type="range" name="niteoCS_font_content_size_<?php echo esc_attr($themeslug);?>" min="10" max="50" step="1" value="<?php echo esc_attr( $niteoCS_font_content_size ); ?>" data-css="font-size" data-type="content" />
962
  </fieldset>
963
 
964
+ <fieldset>
965
+ <label for="niteoCS_font_content_spacing_<?php echo esc_attr($themeslug);?>"><?php _e('Letter Spacing', 'cmp-coming-soon-maintenance');?>: <span><?php echo esc_attr( $niteoCS_font_content_spacing ); ?></span>px</label></br>
966
+ <input type="range" name="niteoCS_font_content_spacing_<?php echo esc_attr($themeslug);?>" min="0" max="10" step="0.5" value="<?php echo esc_attr( $niteoCS_font_content_spacing ); ?>" data-css="letter-spacing" data-type="content" />
967
+ </fieldset>
968
+
969
+ <fieldset>
970
+ <label for="niteoCS_font_content_lineheight_<?php echo esc_attr($themeslug);?>"><?php _e('Line Height', 'cmp-coming-soon-maintenance');?>: <span><?php echo esc_attr( $niteoCS_font_content_lineheight ); ?></span></label></br>
971
+ <input type="range" name="niteoCS_font_content_lineheight_<?php echo esc_attr($themeslug);?>" min="1.3" max="3" step="0.1" value="<?php echo esc_attr( $niteoCS_font_content_lineheight ); ?>" data-css="line-height" data-type="content" />
972
  </fieldset>
973
+ <?php
974
+ // include theme animation settings
975
+ if ( $this->cmp_selectedTheme() == 'hardwork_premium' || $this->cmp_selectedTheme() == 'fifty' ) { ?>
976
+
977
+ <fieldset>
978
+ <label for="niteoCS_content_animation_<?php echo esc_attr($themeslug);?>"><?php _e('Select Animation', 'cmp-coming-soon-maintenance');?></label></br>
979
+ <select name="niteoCS_content_animation_<?php echo esc_attr($themeslug);?>" class="content-animation">
980
+ <option value="none" <?php if ( $niteoCS_content_animation == 'none' ) { echo ' selected="selected"'; } ?>><?php _e('No animation', 'cmp-coming-soon-maintenance');?></option>
981
+ <option value="fadeInDown" <?php if ( $niteoCS_content_animation == 'fadeInDown' ) { echo ' selected="selected"'; } ?>><?php _e('Fade In Down', 'cmp-coming-soon-maintenance');?></option>
982
+ <option value="fadeInUp" <?php if ( $niteoCS_content_animation == 'fadeInUp' ) { echo ' selected="selected"'; } ?>><?php _e('Fade In Up', 'cmp-coming-soon-maintenance');?></option>
983
+ <option value="fadeInLeft" <?php if ( $niteoCS_content_animation == 'fadeInLeft' ) { echo ' selected="selected"'; } ?>><?php _e('Fade In Left', 'cmp-coming-soon-maintenance');?></option>
984
+ <option value="fadeInRight" <?php if ( $niteoCS_content_animation == 'fadeInRight' ) { echo ' selected="selected"'; } ?>><?php _e('Fade In Right', 'cmp-coming-soon-maintenance');?></option>
985
+ </select><br>
986
+ </fieldset>
987
+ <?php
988
+ } ?>
989
 
990
+ <p style="margin-bottom:0">Fonts preview</p>
991
  <div id="font-example-wrapper">
992
+ <h3 id="heading-example" class="animated <?php echo esc_attr($niteoCS_heading_animation);?>" style="font-size:<?php echo esc_attr($niteoCS_font_headings_size);?>px;letter-spacing:<?php echo esc_attr($niteoCS_font_headings_spacing);?>px">Hello, I am your Headings font!</h3>
993
+ <p id="content-example" class="animated <?php echo esc_attr($niteoCS_content_animation);?>" style="font-size:<?php echo esc_attr($niteoCS_font_content_size);?>px;letter-spacing:<?php echo esc_attr($niteoCS_font_content_spacing);?>px;line-height:<?php echo esc_attr($niteoCS_font_content_lineheight);?>">And this is a long paragraph. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
994
  </div>
995
 
996
  </td>
cmp-translate.php CHANGED
@@ -17,6 +17,7 @@ if ( $_SERVER['REQUEST_METHOD'] == 'POST' ) {
17
  6 => array('id' => 6, 'string' => 'Please insert valid email.', 'translation' => sanitize_text_field( $_POST['niteoCS_translate_6'] )),
18
  7 => array('id' => 7, 'string' => 'Thank you, your sign-up request was successful!', 'translation' => sanitize_text_field( $_POST['niteoCS_translate_7'] )),
19
  8 => array('id' => 8, 'string' => 'Submit', 'translation' => sanitize_text_field( $_POST['niteoCS_translate_8'] )),
 
20
  );
21
 
22
  update_option('niteoCS_translation', wp_json_encode($translation));
@@ -34,11 +35,22 @@ if ( !get_option('niteoCS_translation') ) {
34
  6 => array('id' => 6, 'string' => 'Please insert valid email.', 'translation' => 'Please insert valid email.'),
35
  7 => array('id' => 7, 'string' => 'Thank you, your sign-up request was successful!', 'translation' => 'Thank you, your sign-up request was successful!'),
36
  8 => array('id' => 8, 'string' => 'Submit', 'translation' => 'Submit'),
 
37
  );
38
 
39
  update_option('niteoCS_translation', wp_json_encode($translation));
40
  }
41
 
 
 
 
 
 
 
 
 
 
 
42
  // WP_List_Table is not loaded automatically so we need to load it in our application
43
  if( ! class_exists( 'WP_List_Table' ) ) {
44
  require( ABSPATH . 'wp-admin/includes/class-wp-list-table.php' );
17
  6 => array('id' => 6, 'string' => 'Please insert valid email.', 'translation' => sanitize_text_field( $_POST['niteoCS_translate_6'] )),
18
  7 => array('id' => 7, 'string' => 'Thank you, your sign-up request was successful!', 'translation' => sanitize_text_field( $_POST['niteoCS_translate_7'] )),
19
  8 => array('id' => 8, 'string' => 'Submit', 'translation' => sanitize_text_field( $_POST['niteoCS_translate_8'] )),
20
+ 9 => array('id' => 9, 'string' => 'Scroll', 'translation' => sanitize_text_field( $_POST['niteoCS_translate_9'] )),
21
  );
22
 
23
  update_option('niteoCS_translation', wp_json_encode($translation));
35
  6 => array('id' => 6, 'string' => 'Please insert valid email.', 'translation' => 'Please insert valid email.'),
36
  7 => array('id' => 7, 'string' => 'Thank you, your sign-up request was successful!', 'translation' => 'Thank you, your sign-up request was successful!'),
37
  8 => array('id' => 8, 'string' => 'Submit', 'translation' => 'Submit'),
38
+ 9 => array('id' => 9, 'string' => 'Scroll', 'translation' => 'Scroll'),
39
  );
40
 
41
  update_option('niteoCS_translation', wp_json_encode($translation));
42
  }
43
 
44
+ // add scroll to translation list - v2.0
45
+ if ( get_option('niteoCS_translation') ) {
46
+ $translation = json_decode( get_option('niteoCS_translation'), true );
47
+ if ( !isset($translation[9]) ) {
48
+ array_push( $translation, array('id' => 9, 'string' => 'Scroll', 'translation' => 'Scroll') );
49
+ }
50
+
51
+ update_option('niteoCS_translation', wp_json_encode($translation));
52
+ }
53
+
54
  // WP_List_Table is not loaded automatically so we need to load it in our application
55
  if( ! class_exists( 'WP_List_Table' ) ) {
56
  require( ABSPATH . 'wp-admin/includes/class-wp-list-table.php' );
css/animate.min.css ADDED
@@ -0,0 +1,154 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ @charset "UTF-8";
2
+
3
+ /*!
4
+ * animate.css -http://daneden.me/animate
5
+ * Version - 3.5.2
6
+ * Licensed under the MIT license - http://opensource.org/licenses/MIT
7
+ *
8
+ * Copyright (c) 2017 Daniel Eden
9
+ */
10
+
11
+ .animated {
12
+ -webkit-animation-duration: 1s;
13
+ animation-duration: 1s;
14
+ -webkit-animation-fill-mode: both;
15
+ animation-fill-mode: both;
16
+ }
17
+
18
+
19
+
20
+
21
+ @-webkit-keyframes fadeInDown {
22
+ from {
23
+ opacity: 0;
24
+ -webkit-transform: translate3d(0, -100%, 0);
25
+ transform: translate3d(0, -100%, 0);
26
+ }
27
+
28
+ to {
29
+ opacity: 1;
30
+ -webkit-transform: none;
31
+ transform: none;
32
+ }
33
+ }
34
+
35
+ @keyframes fadeInDown {
36
+ from {
37
+ opacity: 0;
38
+ -webkit-transform: translate3d(0, -100%, 0);
39
+ transform: translate3d(0, -100%, 0);
40
+ }
41
+
42
+ to {
43
+ opacity: 1;
44
+ -webkit-transform: none;
45
+ transform: none;
46
+ }
47
+ }
48
+
49
+ .fadeInDown {
50
+ -webkit-animation-name: fadeInDown;
51
+ animation-name: fadeInDown;
52
+ }
53
+
54
+
55
+ @-webkit-keyframes fadeInLeft {
56
+ from {
57
+ opacity: 0;
58
+ -webkit-transform: translate3d(-100%, 0, 0);
59
+ transform: translate3d(-100%, 0, 0);
60
+ }
61
+
62
+ to {
63
+ opacity: 1;
64
+ -webkit-transform: none;
65
+ transform: none;
66
+ }
67
+ }
68
+
69
+ @keyframes fadeInLeft {
70
+ from {
71
+ opacity: 0;
72
+ -webkit-transform: translate3d(-100%, 0, 0);
73
+ transform: translate3d(-100%, 0, 0);
74
+ }
75
+
76
+ to {
77
+ opacity: 1;
78
+ -webkit-transform: none;
79
+ transform: none;
80
+ }
81
+ }
82
+
83
+ .fadeInLeft {
84
+ -webkit-animation-name: fadeInLeft;
85
+ animation-name: fadeInLeft;
86
+ }
87
+
88
+
89
+ @-webkit-keyframes fadeInRight {
90
+ from {
91
+ opacity: 0;
92
+ -webkit-transform: translate3d(100%, 0, 0);
93
+ transform: translate3d(100%, 0, 0);
94
+ }
95
+
96
+ to {
97
+ opacity: 1;
98
+ -webkit-transform: none;
99
+ transform: none;
100
+ }
101
+ }
102
+
103
+ @keyframes fadeInRight {
104
+ from {
105
+ opacity: 0;
106
+ -webkit-transform: translate3d(100%, 0, 0);
107
+ transform: translate3d(100%, 0, 0);
108
+ }
109
+
110
+ to {
111
+ opacity: 1;
112
+ -webkit-transform: none;
113
+ transform: none;
114
+ }
115
+ }
116
+
117
+ .fadeInRight {
118
+ -webkit-animation-name: fadeInRight;
119
+ animation-name: fadeInRight;
120
+ }
121
+
122
+ @-webkit-keyframes fadeInUp {
123
+ from {
124
+ opacity: 0;
125
+ -webkit-transform: translate3d(0, 100%, 0);
126
+ transform: translate3d(0, 100%, 0);
127
+ }
128
+
129
+ to {
130
+ opacity: 1;
131
+ -webkit-transform: none;
132
+ transform: none;
133
+ }
134
+ }
135
+
136
+ @keyframes fadeInUp {
137
+ from {
138
+ opacity: 0;
139
+ -webkit-transform: translate3d(0, 100%, 0);
140
+ transform: translate3d(0, 100%, 0);
141
+ }
142
+
143
+ to {
144
+ opacity: 1;
145
+ -webkit-transform: none;
146
+ transform: none;
147
+ }
148
+ }
149
+
150
+ .fadeInUp {
151
+ -webkit-animation-name: fadeInUp;
152
+ animation-name: fadeInUp;
153
+ }
154
+
css/cmp-admin-head.css CHANGED
@@ -7,7 +7,7 @@
7
 
8
  #wpadminbar .cmp-logo {
9
  position: absolute;
10
- display: inline-block;
11
  height: 20px;
12
  padding-right: 5px;
13
  top: 6px;
@@ -15,18 +15,18 @@
15
  }
16
 
17
  #wpadminbar #wp-admin-bar-cmp-admin-notice a {
18
- padding-left: 30px;
19
  }
20
 
21
- #wpadminbar .toggle-wrapper {
22
  display: inline-block;
23
  }
24
- #wpadminbar .toggle {
25
  cursor: pointer;
26
  display: inline-block;
27
  position: relative;
28
  width: 88px;
29
- height: 32px;
30
  margin-top: -2px;
31
  font-weight: 600;
32
  background: transparent;
@@ -35,7 +35,7 @@
35
  border: none;
36
  }
37
 
38
- #wpadminbar .toggle:before, #wpadminbar .toggle:after {
39
  position: absolute;
40
  line-height: 32px;
41
  font-size: 11px;
@@ -44,17 +44,17 @@
44
  transition: all 200ms ease-in-out;
45
  }
46
 
47
- #wpadminbar input[type=checkbox].toggle-checkbox {
48
  display: none;
49
  }
50
 
51
- #wpadminbar .toggle_handler {
52
  display: inline-block;
53
  position: relative;
54
  z-index: 1;
55
  background: #c0392b;
56
  width: 40px;
57
- height: 20px;
58
  top: 5px;
59
  left: 5px;
60
  -webkit-transition: all 200ms ease-in-out;
@@ -63,37 +63,57 @@
63
  transform: translateX(0px);
64
  }
65
 
66
- #wpadminbar .toggle-checkbox:checked + .toggle .toggle_handler {
67
  -webkit-transform: translateX(40px);
68
  transform: translateX(40px);
69
  background: #27ae60;
70
  }
71
 
72
- #wpadminbar .toggle-wrapper:hover .toggle_handler {
73
  background: #e74c3c;
74
  }
75
 
76
- #wpadminbar .toggle-wrapper:hover .toggle-checkbox:checked + .toggle .toggle_handler {
77
  background: #2ecc71;
78
  }
79
 
80
 
81
- #wpadminbar .toggle:before {
82
  content: "OFF";
83
  left: 15px;
84
  color: #ffffff;
85
  }
86
 
87
- #wpadminbar .toggle:after {
88
  content: "ON";
89
  right: 16px;
90
  color: #ffffff;
91
  }
92
 
93
- #wpadminbar .toggle-checkbox:checked + .toggle:before {
94
  color: #ffffff;
95
  }
96
 
97
- #wpadminbar .toggle-checkbox:checked + .toggle:after {
98
  color: #ffffff;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
99
  }
7
 
8
  #wpadminbar .cmp-logo {
9
  position: absolute;
10
+ display: inline-block;
11
  height: 20px;
12
  padding-right: 5px;
13
  top: 6px;
15
  }
16
 
17
  #wpadminbar #wp-admin-bar-cmp-admin-notice a {
18
+ padding-left: 30px;
19
  }
20
 
21
+ #wpadminbar #wp-admin-bar-cmp-admin-notice .toggle-wrapper {
22
  display: inline-block;
23
  }
24
+ #wpadminbar #wp-admin-bar-cmp-admin-notice .toggle {
25
  cursor: pointer;
26
  display: inline-block;
27
  position: relative;
28
  width: 88px;
29
+ height: 32px;
30
  margin-top: -2px;
31
  font-weight: 600;
32
  background: transparent;
35
  border: none;
36
  }
37
 
38
+ #wpadminbar #wp-admin-bar-cmp-admin-notice .toggle:before, #wpadminbar .toggle:after {
39
  position: absolute;
40
  line-height: 32px;
41
  font-size: 11px;
44
  transition: all 200ms ease-in-out;
45
  }
46
 
47
+ #wpadminbar #wp-admin-bar-cmp-admin-notice input[type=checkbox].toggle-checkbox {
48
  display: none;
49
  }
50
 
51
+ #wpadminbar #wp-admin-bar-cmp-admin-notice .toggle_handler {
52
  display: inline-block;
53
  position: relative;
54
  z-index: 1;
55
  background: #c0392b;
56
  width: 40px;
57
+ height: 20px;
58
  top: 5px;
59
  left: 5px;
60
  -webkit-transition: all 200ms ease-in-out;
63
  transform: translateX(0px);
64
  }
65
 
66
+ #wpadminbar #wp-admin-bar-cmp-admin-notice .toggle-checkbox:checked + .toggle .toggle_handler {
67
  -webkit-transform: translateX(40px);
68
  transform: translateX(40px);
69
  background: #27ae60;
70
  }
71
 
72
+ #wpadminbar #wp-admin-bar-cmp-admin-notice .toggle-wrapper:hover .toggle_handler {
73
  background: #e74c3c;
74
  }
75
 
76
+ #wpadminbar #wp-admin-bar-cmp-admin-notice .toggle-wrapper:hover .toggle-checkbox:checked + .toggle .toggle_handler {
77
  background: #2ecc71;
78
  }
79
 
80
 
81
+ #wpadminbar #wp-admin-bar-cmp-admin-notice .toggle:before {
82
  content: "OFF";
83
  left: 15px;
84
  color: #ffffff;
85
  }
86
 
87
+ #wpadminbar #wp-admin-bar-cmp-admin-notice .toggle:after {
88
  content: "ON";
89
  right: 16px;
90
  color: #ffffff;
91
  }
92
 
93
+ #wpadminbar #wp-admin-bar-cmp-admin-notice .toggle-checkbox:checked + .toggle:before {
94
  color: #ffffff;
95
  }
96
 
97
+ #wpadminbar #wp-admin-bar-cmp-admin-notice .toggle-checkbox:checked + .toggle:after {
98
  color: #ffffff;
99
+ }
100
+
101
+ @media screen and (max-width: 782px) {
102
+ #wpadminbar ul li#wp-admin-bar-cmp-admin-notice {
103
+ display: block;
104
+ }
105
+
106
+ #wpadminbar ul li#wp-admin-bar-cmp-admin-notice span {
107
+ display: none;
108
+ }
109
+
110
+ #wpadminbar #wp-admin-bar-cmp-admin-notice a {
111
+ padding-left: 40px;
112
+ }
113
+
114
+ #wpadminbar .cmp-logo {
115
+ height: 28px;
116
+ top: 9px;
117
+ left: 10px;
118
+ }
119
  }
css/cmp-settings-style.css CHANGED
@@ -27,6 +27,64 @@
27
 
28
  .padding-bottom {padding-bottom: 10px;}
29
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
30
  input[type="text"], textarea{width:100%;}
31
  .table-wrapper.content,
32
  .table-wrapper.theme-setup,
@@ -186,7 +244,7 @@ input[type="text"], textarea{width:100%;}
186
  left: 148px;
187
  }
188
 
189
- .social-media li {display: inline-block;padding-right:1em;padding-bottom: 1em;}
190
  .social-media i {font-size:1.65em;cursor:pointer;}
191
  .social-media i.active {color:#d54e21;}
192
 
@@ -198,19 +256,21 @@ input[type="text"], textarea{width:100%;}
198
  .social-inputs label {padding-left: 100px;}
199
  .social-inputs input[type="text"] {margin-left: 100px;width: calc(100% - 100px);}
200
  .social-inputs input[type="checkbox"] {position: absolute;width: 26px;height: 26px;top: 23px;left: 65px;}
201
- .social-inputs input[type=checkbox]:checked:before {margin: 3px 0 0 1px;}
202
 
203
 
204
  th label {font-weight: 600;}
205
  #unsplash_img{display: none;max-width: 100%;}
206
  #unsplash-media{padding-top: 1em;}
207
  .unsplash-feed{display: none;}
 
208
  .pattern-wrapper,
209
  .color-preview,
210
  .gradient-preview {
211
  background-repeat: repeat;
212
  height: 200px;
213
  border: 1px solid #ededed;
 
214
  }
215
 
216
  .video-wrapper {
@@ -219,6 +279,10 @@ th label {font-weight: 600;}
219
  margin-top: 1em;
220
  }
221
 
 
 
 
 
222
  #add-pattern {margin-bottom: 1em;}
223
  .info{font-size: 12px;}
224
  .nav-tab i {padding-right:3px}
@@ -236,11 +300,19 @@ th label {font-weight: 600;}
236
  padding-top: 1em;
237
  }
238
 
239
- #font-example-wrapper {padding:1em;border:1px solid #dedede;}
240
- #heading-example {padding-left: 0;border-bottom:none;}
241
  #custom_headings_font,
242
  #custom_content_font {display:none;}
243
 
 
 
 
 
 
 
 
 
244
  .theme-wrapper {
245
  display: inline-block;
246
  padding: 0.5em;
@@ -384,6 +456,11 @@ th label {font-weight: 600;}
384
  background-color: #2c3e50;
385
  }
386
 
 
 
 
 
 
387
  .cmp-preview {
388
  background-color: #2485bf!important;
389
  }
@@ -398,7 +475,8 @@ th label {font-weight: 600;}
398
  }
399
 
400
  .theme-info .theme-purchase {
401
- width: 40%;
 
402
  height: 55px;
403
  font-size: 2em;
404
  margin: 1em 0;
@@ -420,7 +498,9 @@ th label {font-weight: 600;}
420
  margin-right: 5px;
421
  }
422
 
423
- .theme-purchase a {
 
 
424
  color: #ffffff;
425
  text-decoration: none;
426
  }
@@ -588,6 +668,33 @@ input[type=checkbox].toggle-checkbox {
588
  color: #fff;
589
  }
590
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
591
 
592
 
593
  /* SIDEBAR */
27
 
28
  .padding-bottom {padding-bottom: 10px;}
29
 
30
+ input[type="text"],
31
+ .select2-container--default .select2-selection--single {
32
+ border: 1px solid #d4d4d4;
33
+ border-radius: 4px;
34
+ line-height: 2.5em;
35
+ height: 2.5em;
36
+ -webkit-box-shadow: inset 0 1px 2px rgba(0,0,0,0.03);
37
+ box-shadow: inset 0 1px 2px rgba(0,0,0,0.03);
38
+ }
39
+
40
+ .select2-container .select2-selection--single {
41
+ height: 35px;
42
+ }
43
+
44
+ .select2-container--default .select2-selection--single .select2-selection__rendered {
45
+ line-height: 35px;
46
+ }
47
+
48
+ .select2-container--default .select2-selection--single .select2-selection__arrow {
49
+ top: 4px;
50
+ }
51
+
52
+ /* .select2-container:not(.select2-container--open) {
53
+ min-width: 100%;
54
+ } */
55
+
56
+ input[type="range"] {
57
+ display: block;
58
+ -webkit-appearance: none;
59
+ background-color: #dedede;
60
+ width: 100%;
61
+ height: 5px;
62
+ border-radius: 5px;
63
+ margin: 0 auto;
64
+ outline: 0;
65
+ margin-top: 10px;
66
+ }
67
+ input[type="range"]::-webkit-slider-thumb {
68
+ -webkit-appearance: none;
69
+ background-color: #0085ba;
70
+ width: 17px;
71
+ height: 17px;
72
+ border-radius: 50%;
73
+ border: 1px solid #d4d4d4;
74
+ cursor: pointer;
75
+ -webkit-transition: 0.3s ease-in-out;
76
+ transition: 0.3s ease-in-out;
77
+ }
78
+
79
+ ​input[type="range"]::-webkit-slider-thumb:hover {
80
+ background-color: #006799;
81
+ border: 2px solid #0085ba;
82
+ }
83
+ input[type="range"]::-webkit-slider-thumb:active {
84
+ -webkit-transform: scale(1.2);
85
+ transform: scale(1.2);
86
+ }
87
+
88
  input[type="text"], textarea{width:100%;}
89
  .table-wrapper.content,
90
  .table-wrapper.theme-setup,
244
  left: 148px;
245
  }
246
 
247
+ .social-media li {display: inline-block;padding-right:0.8em;padding-bottom: 1em;}
248
  .social-media i {font-size:1.65em;cursor:pointer;}
249
  .social-media i.active {color:#d54e21;}
250
 
256
  .social-inputs label {padding-left: 100px;}
257
  .social-inputs input[type="text"] {margin-left: 100px;width: calc(100% - 100px);}
258
  .social-inputs input[type="checkbox"] {position: absolute;width: 26px;height: 26px;top: 23px;left: 65px;}
259
+ .social-inputs input[type=checkbox]:checked:before {margin: 3px 0 0 1px;}
260
 
261
 
262
  th label {font-weight: 600;}
263
  #unsplash_img{display: none;max-width: 100%;}
264
  #unsplash-media{padding-top: 1em;}
265
  .unsplash-feed{display: none;}
266
+
267
  .pattern-wrapper,
268
  .color-preview,
269
  .gradient-preview {
270
  background-repeat: repeat;
271
  height: 200px;
272
  border: 1px solid #ededed;
273
+ margin-top: 1em;
274
  }
275
 
276
  .video-wrapper {
279
  margin-top: 1em;
280
  }
281
 
282
+ .video-wrapper video {
283
+ margin-top: -35px;
284
+ }
285
+
286
  #add-pattern {margin-bottom: 1em;}
287
  .info{font-size: 12px;}
288
  .nav-tab i {padding-right:3px}
300
  padding-top: 1em;
301
  }
302
 
303
+ #font-example-wrapper {padding:1em;border:1px solid #dedede;overflow:hidden;}
304
+ #heading-example {padding-left: 0;border-bottom:none;line-height: 1.5;padding:0;}
305
  #custom_headings_font,
306
  #custom_content_font {display:none;}
307
 
308
+ .font-selector td:first-of-type {
309
+ padding-bottom: 2em;
310
+ }
311
+
312
+ .font-selector fieldset {
313
+ padding: 0.5em 0;
314
+ }
315
+
316
  .theme-wrapper {
317
  display: inline-block;
318
  padding: 0.5em;
456
  background-color: #2c3e50;
457
  }
458
 
459
+ .theme-wrapper .theme-purchase.button:hover,
460
+ .theme-wrapper .theme-purchase.button:focus {
461
+ background-color: #4f7090;
462
+ }
463
+
464
  .cmp-preview {
465
  background-color: #2485bf!important;
466
  }
475
  }
476
 
477
  .theme-info .theme-purchase {
478
+ width: auto;
479
+ min-width: 40%;
480
  height: 55px;
481
  font-size: 2em;
482
  margin: 1em 0;
498
  margin-right: 5px;
499
  }
500
 
501
+ .theme-purchase a,
502
+ .theme-purchase a:hover,
503
+ .theme-purchase a:visited {
504
  color: #ffffff;
505
  text-decoration: none;
506
  }
668
  color: #fff;
669
  }
670
 
671
+ .fifty-layout label {
672
+ display: block;
673
+ position: relative;
674
+ padding-bottom: 1em;
675
+ margin-top: 1em;
676
+ }
677
+
678
+ .fifty-layout input {
679
+ visibility: hidden;
680
+ position: absolute;
681
+ margin: 0;
682
+ }
683
+
684
+
685
+ .fifty-layout input:checked + img {
686
+ opacity: 1;
687
+ }
688
+
689
+ .fifty-layout img {
690
+ display: block;
691
+ opacity: 0.3;
692
+ outline: 1px solid;
693
+ padding: 2px;
694
+ margin-left: 5px;
695
+ margin-top: 5px;
696
+ background: #3ab53a;
697
+ }
698
 
699
 
700
  /* SIDEBAR */
css/cmp-settings-style.min.css ADDED
@@ -0,0 +1 @@
 
1
+ #wpwrap{overflow-x:hidden}.no-margin{margin:0}.cmp-settings-wrapper{position:relative;margin-top:1em}.wrapper-disabled{opacity:.4}.comingsoon-error,.comingsoon-success{padding:1em;width:calc(100% - 4em);border-left:4px solid red;background-color:white}.comingsoon-success{border-left:4px solid #00d221}.padding-bottom{padding-bottom:10px}input[type="text"],.select2-container--default .select2-selection--single{border:1px solid #d4d4d4;border-radius:4px;line-height:2.5em;height:2.5em;-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,.03);box-shadow:inset 0 1px 2px rgba(0,0,0,.03)}.select2-container .select2-selection--single{height:35px}.select2-container--default .select2-selection--single .select2-selection__rendered{line-height:35px}.select2-container--default .select2-selection--single .select2-selection__arrow{top:4px}input[type="range"]{display:block;-webkit-appearance:none;background-color:#dedede;width:100%;height:5px;border-radius:5px;margin:0 auto;outline:0;margin-top:10px}input[type="range"]::-webkit-slider-thumb{-webkit-appearance:none;background-color:#0085ba;width:17px;height:17px;border-radius:50%;border:1px solid #d4d4d4;cursor:pointer;-webkit-transition:0.3s ease-in-out;transition:0.3s ease-in-out}​input[type="range"]::-webkit-slider-thumb:hover{background-color:#006799;border:2px solid #0085ba}input[type="range"]::-webkit-slider-thumb:active{-webkit-transform:scale(1.2);transform:scale(1.2)}input[type="text"],textarea{width:100%}.table-wrapper.content,.table-wrapper.theme-setup,.table-wrapper.install,.table-wrapper.seo,.table-wrapper.custom_css,#niteoCS_countdown_text,#niteoCS_countdown_redirect{display:none}.upload-plugin.comingsoon .wp-upload-form{max-width:600px}.cmp-status legend{width:95%;padding:10px;cursor:pointer}.cmp-status .active{background-color:#ddd}.redirect{margin-bottom:0}.table-wrapper,.help-settings,.subscribers-settings,.translate-settings{background-color:#fff;border:1px solid #dedede;margin:1em 0;margin-top:0;max-width:920px}.cmp-inputs-wrapper{display:inline-block;max-width:920px;min-width:920px}.help-settings,.subscribers-settings,.translate-settings{max-width:calc(920px - 2em);min-width:calc(920px - 2em);padding:1em}.translate-settings tfoot{display:none}.table-wrapper h3{position:relative;padding:.5em 0;margin:0;padding-left:1em;border-bottom:1px solid #dedede;cursor:pointer;text-align:left}.table-wrapper h3:not(.no-icon):not(.notice-title):not(#heading-example)::after{font-family:fontAwesome;content:"\f147";position:absolute;right:10px;font-weight:400;opacity:.6;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.table-wrapper.closed h3:not(.no-icon):not(.notice-title)::after{content:"\f196"}.table-wrapper.closed table{display:none}.table-wrapper h4{margin:0}.table-wrapper table{padding:1em;height:100%}.table-wrapper table{width:90%}.table-wrapper .theme-selector{width:100%}.table-wrapper select{margin-bottom:10px;width:100%}.table-wrapper td{display:block;width:100%;max-width:600px;margin-bottom:1em}.table-wrapper td.theme-selector{max-width:100%}.table-wrapper td{display:block}.table-wrapper th{vertical-align:top;width:180px;text-align:left}#delete-logo,#delete-banner,#delete-favicon,#delete-video-thumb{display:none}.social-media{margin-top:0;margin-bottom:3em}.social-inputs{position:relative}.social-inputs .label{display:none;font-weight:600;position:absolute;top:-20px;left:-8px}#niteoCS-text-logo{border:none;-webkit-box-shadow:none;box-shadow:none;font-size:3em;font-weight:600}.social-description{margin-top:0}.social-inputs .label:nth-of-type(2){left:62px}.social-inputs .label:nth-of-type(3){left:148px}.social-media li{display:inline-block;padding-right:.8em;padding-bottom:1em}.social-media i{font-size:1.65em;cursor:pointer}.social-media i.active{color:#d54e21}.social-inputs li{display:none;width:100%}.social-inputs li.active{display:inline-block}.social-inputs p{position:relative;padding-left:50px;height:50px}.social-inputs p i{position:absolute;left:0;top:20px;font-size:30px;width:30px;cursor:move}.social-inputs label,.social-inputs label{padding-left:100px}.social-inputs input[type="text"]{margin-left:100px;width:calc(100% - 100px)}.social-inputs input[type="checkbox"]{position:absolute;width:26px;height:26px;top:23px;left:65px}.social-inputs input[type=checkbox]:checked:before{margin:3px 0 0 1px}th label{font-weight:600}#unsplash_img{display:none;max-width:100%}#unsplash-media{padding-top:1em}.unsplash-feed{display:none}.pattern-wrapper,.color-preview,.gradient-preview{background-repeat:repeat;height:200px;border:1px solid #ededed;margin-top:1em}.video-wrapper{position:relative;width:100%;margin-top:1em}.video-wrapper video{margin-top:-35px}#add-pattern{margin-bottom:1em}.info{font-size:12px}.nav-tab i{padding-right:3px}.logo-wrapper,.banner-wrapper,.favicon-wrapper{margin:1em 0}.logo-wrapper img,.favicon-wrapper img{background-color:#efefef;padding:1em}.favicon-wrapper img{max-width:32px}.logo-wrapper img,.background-media img{max-width:100%;width:100%}.logo-wrapper img{max-height:150px;width:auto}.background-media td fieldset{padding-top:1em}#font-example-wrapper{padding:1em;border:1px solid #dedede;overflow:hidden}#heading-example{padding-left:0;border-bottom:none;line-height:1.5;padding:0}#custom_headings_font,#custom_content_font{display:none}.font-selector td:first-of-type{padding-bottom:2em}.font-selector fieldset{padding:.5em 0}.theme-wrapper{display:inline-block;padding:.5em;margin:2em 2em 2em 0;width:calc(25% - 3em - 5px);text-align:center;border:1px solid #efefef;border-radius:6px}.theme-wrapper.premium{width:calc(33.33% - 3em - 5px)}.theme-wrapper.active{background-color:#ddd}.thumbnail-holder{position:relative;width:100%;margin-bottom:2em;background-repeat:no-repeat;background-size:cover;background-position:center;border-top-left-radius:5px;border-top-right-radius:5px}.thumbnail-holder::before{content:'';display:block;padding-top:56.25%}.theme-title{float:left;text-transform:uppercase;font-weight:600}.theme-version{float:right}.theme-wrapper .hide:not(.selected){opacity:0;-webkit-transition:opacity 300ms,background-color 500ms;transition:opacity 300ms,background-color 500ms}.theme-wrapper .hide.activated,.theme-wrapper:hover .hide{opacity:1;-webkit-transition:opacity 300ms,background-color 500ms;transition:opacity 300ms,background-color 500ms}.theme-inputs{clear:both;border-top:1px solid #efefef;padding-top:.5em}.theme-wrapper .button,.cmp-button,.cmp-preview{height:28px;line-height:28px;padding:0 10px;border-radius:3px;color:#ffffff!important;-moz-appearance:none;-webkit-appearance:none;-webkit-transition:background-color .5s;transition:background-color .5s;border:none!important;-webkit-box-shadow:none;box-shadow:none;-webkit-box-shadow:none;text-shadow:none}.cmp-button.submit,.theme-actions .activate{background-color:#c0392b;color:#fff;border:none;-webkit-transition:background-color .5s;transition:background-color .5s}.cmp-button.submit:hover,.cmp-button.submit:focus,.theme-actions .activate:hover,.theme-actions .activate:focus{background-color:#e74c3c;color:#fff;border:none}.theme-wrapper .button:hover{border:none;color:#ffffff!important}.theme-wrapper .theme-select,.theme-wrapper .theme-select{float:left;background-color:#27ae60}.theme-wrapper .theme-select:hover,.theme-wrapper .theme-select:focus{background-color:#2ecc71}.theme-wrapper .theme-details.button{float:right;background-color:#2980b9}.theme-wrapper .theme-details.button:hover,.theme-wrapper .theme-details.button:focus{background-color:#3498db}.theme-wrapper .theme-update{float:left;margin:0 5px;background-color:#d35400}.theme-wrapper .theme-update:hover,.theme-wrapper .theme-update:focus{background-color:#e67e22}.theme-wrapper .theme-purchase{float:left;background-color:#2c3e50}.theme-wrapper .theme-purchase.button:hover,.theme-wrapper .theme-purchase.button:focus{background-color:#4f7090}.cmp-preview{background-color:#2485bf!important}.theme-details{cursor:pointer}.cmp-preview:hover,.cmp-preview:active{background-color:#32b2ff!important}.theme-info .theme-purchase{width:auto;min-width:40%;height:55px;font-size:2em;margin:1em 0;background-color:#2c3e50;border:none}.theme-wrapper .theme-purchase:hover,.theme-wrapper .theme-purchase:focus,.theme-info .theme-purchase:hover,.theme-info .theme-purchase:focus{background-color:#34495e}.button i{margin-right:5px}.theme-purchase a,.theme-purchase a:hover,.theme-purchase a:visited{color:#fff;text-decoration:none}p.cmp-submit{margin:0;padding-top:0;font-weight:400;text-align:left}.theme-overlay .screenshot{position:relative;background-size:cover;background-repeat:no-repeat;background-position:center;-webkit-transition:background-image 0.2s ease-in-out;transition:background-image 0.2s ease-in-out}.theme-overlay .screenshots-nav{position:absolute;right:0;top:0;color:#fff;cursor:pointer}.theme-overlay .screenshots-nav div{width:40px;height:40px;background-color:black;line-height:40px;opacity:.7;-webkit-transition:opacity 500ms;transition:opacity 500ms}.theme-overlay .screenshots-nav div:hover{opacity:1}.theme-overlay .screenshots-nav .left{float:left}.theme-overlay .screenshots-nav .right{float:right}.theme-description ul{list-style:none;padding-left:2em}.theme-description h4,.theme-description li{font-size:13px}.theme-description .supported i{color:green}.theme-description .not-supported i{color:red}.wp-list-table .column-id{width:5%}.cmp-status{margin-bottom:3em}.toggle-wrapper{display:inline-block}.toggle{cursor:pointer;display:inline-block;position:relative;width:200px;height:30px;font-weight:600;background:transparent;border:2px solid #f1f1f1;-webkit-transition:all 200ms ease-in-out;transition:all 200ms ease-in-out;border-radius:15px}.toggle:before,.toggle:after{position:absolute;line-height:30px;font-size:14px;z-index:2;-webkit-transition:all 200ms ease-in-out;transition:all 200ms ease-in-out}input[type=checkbox].toggle-checkbox{display:none}.toggle_handler{display:inline-block;position:relative;z-index:1;background:#c0392b;width:90px;height:24px;top:3px;left:5px;-webkit-transition:all 200ms ease-in-out;transition:all 200ms ease-in-out;-webkit-transform:translateX(0);transform:translateX(0);border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:10px;border-bottom-left-radius:10px}.toggle-checkbox:checked + .toggle .toggle_handler{width:90px;-webkit-transform:translateX(100px);transform:translateX(100px);background:#27ae60;border-top-right-radius:10px;border-bottom-right-radius:10px;border-top-left-radius:0;border-bottom-left-radius:0}.toggle-wrapper:hover .toggle_handler{background:#e74c3c}.toggle-wrapper:hover .toggle-checkbox:checked + .toggle .toggle_handler{background:#2ecc71}.toggle:before{content:"Disabled";left:22px;color:#fff}.toggle:after{content:"Enabled";right:26px;color:#23282d}.toggle-checkbox:checked + .toggle:before{color:#23282d}.toggle-checkbox:checked + .toggle:after{color:#fff}.fifty-layout label{display:block;position:relative;padding-bottom:1em;margin-top:1em}.fifty-layout input{visibility:hidden;position:absolute;margin:0}.fifty-layout input:checked + img{opacity:1}.fifty-layout img{display:block;opacity:.3;outline:1px solid;padding:2px;margin-left:5px;margin-top:5px;background:#3ab53a}.cmp-sidebar-wrapper{display:inline-block;width:calc(100% - 6em - 920px);max-width:350px;min-width:300px;margin-left:1em;padding-top:0;vertical-align:top;text-align:center}.cmp-sidebar-wrapper .widget{padding:2em;border:1px solid #dedede;background:white}.widget.donate img{max-width:50px}.widget.donate img.niteo-logo{max-width:120px}.cmp-rate-us a,.cmp-rate-us .button{display:block;text-align:center}.cmp-rate-us a{padding:1em 0}.cmp-rate-us .button{max-width:150px;margin:0 auto;margin-bottom:1em}.cmp-rate-us form{text-align:center}.subscribers .column-id{width:5%}@media screen and (max-width:1450px){.cmp-inputs-wrapper{min-width:70%}.cmp-sidebar-wrapper{width:calc(30% - 2em + 7px)}.theme-wrapper,.theme-wrapper.premium{width:calc(50% - 3em - 5px)}}@media screen and (max-width:1110px){.theme-wrapper,.theme-wrapper.premium{margin-right:0;width:calc(100% - 5px)}.table-wrapper th{display:block}.cmp-sidebar-wrapper .widget{padding:1em}}@media screen and (max-width:1024px){.table-wrapper table{width:100%}.table-wrapper th{width:140px}}@media screen and (max-width:782px){.social-inputs input[type=checkbox]:checked:before{margin:-1px 0 0 -4px}.cmp-sidebar-wrapper,.cmp-inputs-wrapper{display:block;max-width:100%;width:100%;margin:0}.cmp-sidebar-wrapper .widget{padding:2em}.theme-wrapper.hide,.theme-wrapper .hide:not(.selected){opacity:1}.theme-overlay .theme-screenshots,.theme-overlay .theme-info{width:100%;float:none}}}
css/fastselect.min.css DELETED
@@ -1,232 +0,0 @@
1
- /*----------------------------------------------------------------------------------------------------
2
- General styling
3
- ----------------------------------------------------------------------------------------------------*/
4
- @-webkit-keyframes fstAnimationEnter {
5
- from {
6
- opacity: 0;
7
- -webkit-transform: translate3d(0, -1em, 0); }
8
- to {
9
- opacity: 1;
10
- -webkit-transform: translate3d(0, 0, 0); } }
11
-
12
- @-moz-keyframes fstAnimationEnter {
13
- from {
14
- opacity: 0;
15
- -moz-transform: translate3d(0, -1em, 0); }
16
- to {
17
- opacity: 1;
18
- -moz-transform: translate3d(0, 0, 0); } }
19
-
20
- @keyframes fstAnimationEnter {
21
- from {
22
- opacity: 0;
23
- -webkit-transform: translate3d(0, -1em, 0);
24
- -moz-transform: translate3d(0, -1em, 0);
25
- -ms-transform: translate3d(0, -1em, 0);
26
- -o-transform: translate3d(0, -1em, 0);
27
- transform: translate3d(0, -1em, 0); }
28
- to {
29
- opacity: 1;
30
- -webkit-transform: translate3d(0, 0, 0);
31
- -moz-transform: translate3d(0, 0, 0);
32
- -ms-transform: translate3d(0, 0, 0);
33
- -o-transform: translate3d(0, 0, 0);
34
- transform: translate3d(0, 0, 0); } }
35
-
36
- .fstElement {
37
- position: relative;
38
- border: 1px solid #dedede;
39
- box-sizing: border-box; }
40
- .fstElement > select,
41
- .fstElement > input {
42
- position: absolute;
43
- left: -999em; }
44
-
45
- .fstToggleBtn {
46
- font-size: 1.4em;
47
- display: block;
48
- position: relative;
49
- box-sizing: border-box;
50
- padding: 0.71429em 1.42857em 0.71429em 0.71429em;
51
- min-width: 14.28571em;
52
- cursor: pointer; }
53
- .fstToggleBtn:after {
54
- position: absolute;
55
- content: "";
56
- right: 0.71429em;
57
- top: 50%;
58
- margin-top: -0.17857em;
59
- border: 0.35714em solid transparent;
60
- border-top-color: #cacaca; }
61
-
62
- .fstQueryInput {
63
- -webkit-appearance: none;
64
- -moz-appearance: none;
65
- -ms-appearance: none;
66
- -o-appearance: none;
67
- appearance: none;
68
- outline: none;
69
- box-sizing: border-box;
70
- background: transparent;
71
- border: 0; }
72
-
73
- .fstResults {
74
- position: absolute;
75
- left: -1px;
76
- top: 100%;
77
- right: -1px;
78
- max-height: 30em;
79
- overflow-x: hidden;
80
- overflow-y: auto;
81
- -webkit-overflow-scrolling: touch;
82
- border: 1px solid #D7D7D7;
83
- border-top: 0;
84
- background-color: #FFF;
85
- display: none; }
86
-
87
- .fstResultItem {
88
- font-size: 1.4em;
89
- display: block;
90
- padding: 0.5em 0.71429em;
91
- margin: 0;
92
- cursor: pointer;
93
- border-top: 1px solid #fff; }
94
- .fstResultItem.fstUserOption {
95
- color: #707070; }
96
- .fstResultItem.fstFocused {
97
- color: #fff;
98
- background-color: #43A2F3;
99
- border-color: #73baf6; }
100
- .fstResultItem.fstSelected {
101
- color: #fff;
102
- background-color: #2694f1;
103
- border-color: #73baf6; }
104
-
105
- .fstGroupTitle {
106
- font-size: 1.4em;
107
- display: block;
108
- padding: 0.5em 0.71429em;
109
- margin: 0;
110
- font-weight: bold; }
111
-
112
- .fstGroup {
113
- padding-top: 1em; }
114
- .fstGroup:first-child {
115
- padding-top: 0; }
116
-
117
- .fstNoResults {
118
- font-size: 1.4em;
119
- display: block;
120
- padding: 0.71429em 0.71429em;
121
- margin: 0;
122
- color: #999; }
123
-
124
- /*----------------------------------------------------------------------------------------------------
125
- Single Mode
126
- ----------------------------------------------------------------------------------------------------*/
127
- .fstSingleMode .fstControls {
128
- position: absolute;
129
- left: -1px;
130
- right: -1px;
131
- top: 100%;
132
- padding: 0.5em;
133
- border: 1px solid #D7D7D7;
134
- background-color: #fff;
135
- display: none; }
136
-
137
- .fstSingleMode .fstQueryInput {
138
- font-size: 1.4em;
139
- display: block;
140
- width: 100%;
141
- padding: 0.5em 0.35714em;
142
- color: #999;
143
- border: 1px solid #D7D7D7; }
144
-
145
- .fstSingleMode.fstActive {
146
- z-index: 100; }
147
- .fstSingleMode.fstActive.fstElement,
148
- .fstSingleMode.fstActive .fstControls,
149
- .fstSingleMode.fstActive .fstResults {
150
- box-shadow: 0 0.2em 0.2em rgba(0, 0, 0, 0.1); }
151
- .fstSingleMode.fstActive .fstControls {
152
- display: block; }
153
- .fstSingleMode.fstActive .fstResults {
154
- display: block;
155
- z-index: 10;
156
- margin-top: -1px; }
157
-
158
- /*----------------------------------------------------------------------------------------------------
159
- Multiple mode
160
- ----------------------------------------------------------------------------------------------------*/
161
- .fstChoiceItem {
162
- display: inline-block;
163
- font-size: 1.2em;
164
- position: relative;
165
- margin: 0 0.41667em 0.41667em 0;
166
- padding: 0.33333em 0.33333em 0.33333em 1.5em;
167
- float: left;
168
- border-radius: 0.25em;
169
- border: 1px solid #43A2F3;
170
- cursor: auto;
171
- color: #fff;
172
- background-color: #43A2F3;
173
- -webkit-animation: fstAnimationEnter 0.2s;
174
- -moz-animation: fstAnimationEnter 0.2s;
175
- animation: fstAnimationEnter 0.2s; }
176
- .fstChoiceItem.mod1 {
177
- background-color: #F9F9F9;
178
- border: 1px solid #D7D7D7;
179
- color: #232323; }
180
- .fstChoiceItem.mod1 > .fstChoiceRemove {
181
- color: #a4a4a4; }
182
-
183
- .fstChoiceRemove {
184
- margin: 0;
185
- padding: 0;
186
- border: 0;
187
- cursor: pointer;
188
- background: none;
189
- font-size: 1.16667em;
190
- position: absolute;
191
- left: 0;
192
- top: 50%;
193
- width: 1.28571em;
194
- line-height: 1.28571em;
195
- margin-top: -0.64286em;
196
- text-align: center;
197
- color: #fff; }
198
- .fstChoiceRemove::-moz-focus-inner {
199
- padding: 0;
200
- border: 0; }
201
-
202
- .fstMultipleMode .fstControls {
203
- box-sizing: border-box;
204
- padding: 0.5em 0.5em 0em 0.5em;
205
- overflow: hidden;
206
- width: 100%;
207
- cursor: text; }
208
-
209
- .fstMultipleMode .fstQueryInput {
210
- font-size: 1.4em;
211
- float: left;
212
- padding: 0.28571em 0;
213
- margin: 0 0 0.35714em 0;
214
- width: 2em;
215
- color: #999; }
216
-
217
- .fstMultipleMode .fstQueryInputExpanded {
218
- float: none;
219
- width: 100%;
220
- padding: 0.28571em 0.35714em; }
221
-
222
- .fstMultipleMode .fstFakeInput {
223
- font-size: 1.4em; }
224
-
225
- .fstMultipleMode.fstActive,
226
- .fstMultipleMode.fstActive .fstResults {
227
- box-shadow: 0 0.2em 0.2em rgba(0, 0, 0, 0.1); }
228
-
229
- .fstMultipleMode.fstActive .fstResults {
230
- display: block;
231
- z-index: 10;
232
- border-top: 1px solid #D7D7D7; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
css/select2.min.css ADDED
@@ -0,0 +1 @@
 
1
+ .select2-container{-webkit-box-sizing:border-box;box-sizing:border-box;display:inline-block;margin:0;position:relative;vertical-align:middle}.select2-container .select2-selection--single{-webkit-box-sizing:border-box;box-sizing:border-box;cursor:pointer;display:block;height:35px;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-select:none}.select2-container .select2-selection--single .select2-selection__rendered{display:block;padding-left:8px;padding-right:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.select2-container .select2-selection--single .select2-selection__clear{position:relative}.select2-container[dir="rtl"] .select2-selection--single .select2-selection__rendered{padding-right:8px;padding-left:20px}.select2-container .select2-selection--multiple{-webkit-box-sizing:border-box;box-sizing:border-box;cursor:pointer;display:block;min-height:32px;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-select:none}.select2-container .select2-selection--multiple .select2-selection__rendered{display:inline-block;overflow:hidden;padding-left:8px;text-overflow:ellipsis;white-space:nowrap}.select2-container .select2-search--inline{float:left}.select2-container .select2-search--inline .select2-search__field{-webkit-box-sizing:border-box;box-sizing:border-box;border:none;font-size:100%;margin-top:5px;padding:0}.select2-container .select2-search--inline .select2-search__field::-webkit-search-cancel-button{-webkit-appearance:none}.select2-dropdown{background-color:white;border:1px solid #dedede;border-radius:4px;-webkit-box-sizing:border-box;box-sizing:border-box;display:block;position:absolute;left:-100000px;width:100%;z-index:1051}.select2-results{display:block}.select2-results__options{list-style:none;margin:0;padding:0}.select2-results__option{padding:6px;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-select:none}.select2-results__option[aria-selected]{cursor:pointer}.select2-container--open .select2-dropdown{left:0}.select2-container--open .select2-dropdown--above{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--open .select2-dropdown--below{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.select2-search--dropdown{display:block;padding:4px}.select2-search--dropdown .select2-search__field{padding:4px;width:100%;-webkit-box-sizing:border-box;box-sizing:border-box}.select2-search--dropdown .select2-search__field::-webkit-search-cancel-button{-webkit-appearance:none}.select2-search--dropdown.select2-search--hide{display:none}.select2-close-mask{border:0;margin:0;padding:0;display:block;position:fixed;left:0;top:0;min-height:100%;min-width:100%;height:auto;width:auto;opacity:0;z-index:99;background-color:#fff;filter:alpha(opacity=0)}.select2-hidden-accessible{border:0 !important;clip:rect(0 0 0 0) !important;height:1px !important;margin:-1px !important;overflow:hidden !important;padding:0 !important;position:absolute !important;width:1px !important}.select2-container--default .select2-selection--single{background-color:#fff;border-radius:4px}.select2-container--default .select2-selection--single .select2-selection__rendered{color:#444;}.select2-container--default .select2-selection--single .select2-selection__clear{cursor:pointer;float:right;font-weight:bold}.select2-container--default .select2-selection--single .select2-selection__placeholder{color:#999}.select2-container--default .select2-selection--single .select2-selection__arrow{height:26px;position:absolute;right:1px;width:20px}.select2-container--default .select2-selection--single .select2-selection__arrow b{border-color:#888 transparent transparent transparent;border-style:solid;border-width:5px 4px 0 4px;height:0;left:50%;margin-left:-4px;margin-top:-2px;position:absolute;top:50%;width:0}.select2-container--default[dir="rtl"] .select2-selection--single .select2-selection__clear{float:left}.select2-container--default[dir="rtl"] .select2-selection--single .select2-selection__arrow{left:1px;right:auto}.select2-container--default.select2-container--disabled .select2-selection--single{background-color:#eee;cursor:default}.select2-container--default.select2-container--disabled .select2-selection--single .select2-selection__clear{display:none}.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b{border-color:transparent transparent #888 transparent;border-width:0 4px 5px 4px}.select2-container--default .select2-selection--multiple{background-color:white;border:1px solid #aaa;border-radius:4px;cursor:text}.select2-container--default .select2-selection--multiple .select2-selection__rendered{-webkit-box-sizing:border-box;box-sizing:border-box;list-style:none;margin:0;padding:0 5px;width:100%}.select2-container--default .select2-selection--multiple .select2-selection__rendered li{list-style:none}.select2-container--default .select2-selection--multiple .select2-selection__placeholder{color:#999;margin-top:5px;float:left}.select2-container--default .select2-selection--multiple .select2-selection__clear{cursor:pointer;float:right;font-weight:bold;margin-top:5px;margin-right:10px}.select2-container--default .select2-selection--multiple .select2-selection__choice{background-color:#e4e4e4;border:1px solid #aaa;border-radius:4px;cursor:default;float:left;margin-right:5px;margin-top:5px;padding:0 5px}.select2-container--default .select2-selection--multiple .select2-selection__choice__remove{color:#999;cursor:pointer;display:inline-block;font-weight:bold;margin-right:2px}.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover{color:#333}.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice,.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__placeholder,.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-search--inline{float:right}.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice{margin-left:5px;margin-right:auto}.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice__remove{margin-left:2px;margin-right:auto}.select2-container--default.select2-container--focus .select2-selection--multiple{border:solid black 1px;outline:0}.select2-container--default.select2-container--disabled .select2-selection--multiple{background-color:#eee;cursor:default}.select2-container--default.select2-container--disabled .select2-selection__choice__remove{display:none}.select2-container--default.select2-container--open.select2-container--above .select2-selection--single,.select2-container--default.select2-container--open.select2-container--above .select2-selection--multiple{border-top-left-radius:0;border-top-right-radius:0}.select2-container--default.select2-container--open.select2-container--below .select2-selection--single,.select2-container--default.select2-container--open.select2-container--below .select2-selection--multiple{border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--default .select2-search--dropdown .select2-search__field{border:1px solid #dedede;border-radius: 4px;}.select2-container--default .select2-search--inline .select2-search__field{background:transparent;border:none;outline:0;-webkit-box-shadow:none;box-shadow:none;-webkit-appearance:textfield}.select2-container--default .select2-results>.select2-results__options{max-height:200px;overflow-y:auto}.select2-container--default .select2-results__option[role=group]{padding:0}.select2-container--default .select2-results__option[aria-disabled=true]{color:#999}.select2-container--default .select2-results__option[aria-selected=true]{background-color:#ddd}.select2-container--default .select2-results__option .select2-results__option{padding-left:1em}.select2-container--default .select2-results__option .select2-results__option .select2-results__group{padding-left:0}.select2-container--default .select2-results__option .select2-results__option .select2-results__option{margin-left:-1em;padding-left:2em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-2em;padding-left:3em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-3em;padding-left:4em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-4em;padding-left:5em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-5em;padding-left:6em}.select2-container--default .select2-results__option--highlighted[aria-selected]{background-color:#5897fb;color:white}.select2-container--default .select2-results__group{cursor:default;display:block;padding:6px}.select2-container--classic .select2-selection--single{background-color:#f7f7f7;border:1px solid #aaa;border-radius:4px;outline:0;background-image:-webkit-gradient(linear, left top, left bottom, color-stop(50%, #fff), to(#eee));background-image:linear-gradient(to bottom, #fff 50%, #eee 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0)}.select2-container--classic .select2-selection--single:focus{border:1px solid #5897fb}.select2-container--classic .select2-selection--single .select2-selection__rendered{color:#444;line-height:28px}.select2-container--classic .select2-selection--single .select2-selection__clear{cursor:pointer;float:right;font-weight:bold;margin-right:10px}.select2-container--classic .select2-selection--single .select2-selection__placeholder{color:#999}.select2-container--classic .select2-selection--single .select2-selection__arrow{background-color:#ddd;border:none;border-left:1px solid #aaa;border-top-right-radius:4px;border-bottom-right-radius:4px;height:26px;position:absolute;top:1px;right:1px;width:20px;background-image:-webkit-gradient(linear, left top, left bottom, color-stop(50%, #eee), to(#ccc));background-image:linear-gradient(to bottom, #eee 50%, #ccc 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFCCCCCC', GradientType=0)}.select2-container--classic .select2-selection--single .select2-selection__arrow b{border-color:#888 transparent transparent transparent;border-style:solid;border-width:5px 4px 0 4px;height:0;left:50%;margin-left:-4px;margin-top:-2px;position:absolute;top:50%;width:0}.select2-container--classic[dir="rtl"] .select2-selection--single .select2-selection__clear{float:left}.select2-container--classic[dir="rtl"] .select2-selection--single .select2-selection__arrow{border:none;border-right:1px solid #aaa;border-radius:0;border-top-left-radius:4px;border-bottom-left-radius:4px;left:1px;right:auto}.select2-container--classic.select2-container--open .select2-selection--single{border:1px solid #5897fb}.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow{background:transparent;border:none}.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow b{border-color:transparent transparent #888 transparent;border-width:0 4px 5px 4px}.select2-container--classic.select2-container--open.select2-container--above .select2-selection--single{border-top:none;border-top-left-radius:0;border-top-right-radius:0;background-image:-webkit-gradient(linear, left top, left bottom, from(#fff), color-stop(50%, #eee));background-image:linear-gradient(to bottom, #fff 0%, #eee 50%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0)}.select2-container--classic.select2-container--open.select2-container--below .select2-selection--single{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0;background-image:-webkit-gradient(linear, left top, left bottom, color-stop(50%, #eee), to(#fff));background-image:linear-gradient(to bottom, #eee 50%, #fff 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFFFFFFF', GradientType=0)}.select2-container--classic .select2-selection--multiple{background-color:white;border:1px solid #aaa;border-radius:4px;cursor:text;outline:0}.select2-container--classic .select2-selection--multiple:focus{border:1px solid #5897fb}.select2-container--classic .select2-selection--multiple .select2-selection__rendered{list-style:none;margin:0;padding:0 5px}.select2-container--classic .select2-selection--multiple .select2-selection__clear{display:none}.select2-container--classic .select2-selection--multiple .select2-selection__choice{background-color:#e4e4e4;border:1px solid #aaa;border-radius:4px;cursor:default;float:left;margin-right:5px;margin-top:5px;padding:0 5px}.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove{color:#888;cursor:pointer;display:inline-block;font-weight:bold;margin-right:2px}.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove:hover{color:#555}.select2-container--classic[dir="rtl"] .select2-selection--multiple .select2-selection__choice{float:right}.select2-container--classic[dir="rtl"] .select2-selection--multiple .select2-selection__choice{margin-left:5px;margin-right:auto}.select2-container--classic[dir="rtl"] .select2-selection--multiple .select2-selection__choice__remove{margin-left:2px;margin-right:auto}.select2-container--classic.select2-container--open .select2-selection--multiple{border:1px solid #5897fb}.select2-container--classic.select2-container--open.select2-container--above .select2-selection--multiple{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.select2-container--classic.select2-container--open.select2-container--below .select2-selection--multiple{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--classic .select2-search--dropdown .select2-search__field{border:1px solid #aaa;outline:0}.select2-container--classic .select2-search--inline .select2-search__field{outline:0;-webkit-box-shadow:none;box-shadow:none}.select2-container--classic .select2-dropdown{background-color:#fff;border:1px solid transparent}.select2-container--classic .select2-dropdown--above{border-bottom:none}.select2-container--classic .select2-dropdown--below{border-top:none}.select2-container--classic .select2-results>.select2-results__options{max-height:200px;overflow-y:auto}.select2-container--classic .select2-results__option[role=group]{padding:0}.select2-container--classic .select2-results__option[aria-disabled=true]{color:grey}.select2-container--classic .select2-results__option--highlighted[aria-selected]{background-color:#3875d7;color:#fff}.select2-container--classic .select2-results__group{cursor:default;display:block;padding:6px}.select2-container--classic.select2-container--open .select2-dropdown{border-color:#5897fb}
img/thumbnails/eclipse/screenshot1.jpg ADDED
Binary file
img/thumbnails/eclipse/screenshot2.jpg ADDED
Binary file
img/thumbnails/eclipse_thumbnail.jpg ADDED
Binary file
img/thumbnails/fifty/screenshot1.jpg CHANGED
Binary file
img/thumbnails/fifty/screenshot3.jpg ADDED
Binary file
inc/class-cmp-render_html.php CHANGED
@@ -118,7 +118,7 @@ class cmp_render_html extends niteo_cmp {
118
  case '4':
119
  // Color
120
  $color = get_option('niteoCS_banner_color['.$themeslug.']', '#bdc3c7');
121
- $html ='<div id="background-image" class="color" style="background-color:'.esc_url( $color ).'"></div>';
122
 
123
  return $html;
124
  break;
@@ -143,7 +143,7 @@ class cmp_render_html extends niteo_cmp {
143
  }
144
 
145
 
146
- $html = '<div id="background-image" class="gradient" style="background:-moz-linear-gradient(-45deg, '.esc_attr( $niteoCS_gradient_one ).' 0%, '.esc_attr( $niteoCS_gradient_two ).' 100%);background:-webkit-linear-gradient(-45deg, '.esc_attr( $niteoCS_gradient_one ).' 0%, '.esc_attr( $niteoCS_gradient_two ).' 100%);background:linear-gradient(135deg,'.esc_attr( $niteoCS_gradient_one ).' 0%, '.esc_attr( $niteoCS_gradient_two ).' 100%)"></div>';
147
 
148
  return $html;
149
  break;
@@ -162,7 +162,6 @@ class cmp_render_html extends niteo_cmp {
162
  $this->cmp_background($_GET['background'], $themeslug);
163
  return;
164
  }
165
-
166
  }
167
 
168
  $size = $this->isMobile() ? 'large' : 'full'; ?>
@@ -229,9 +228,14 @@ class cmp_render_html extends niteo_cmp {
229
  var screenHeight = screenWidth / 1.77777;
230
  screenHeight = screenHeight.toFixed(0);
231
 
232
- if ( !navigator.userAgent.match(/(iPad)|(iPhone)|(iPod)|(android)|(webOS)/i) && screenWidth > 1200 ) {
233
- screenWidth = screenWidth / 2;
234
- }
 
 
 
 
 
235
 
236
  for (i=0; i<<?php echo esc_attr($slider_count);?>; i++) {
237
  <?php $banner_url = $this->niteo_unsplash( $params ); ?>
@@ -339,7 +343,7 @@ class cmp_render_html extends niteo_cmp {
339
 
340
  case 'text':
341
  $text_logo = stripslashes(get_option('niteoCS_text_logo['.$themeslug.']', get_bloginfo( 'name', 'display' )));
342
- $html = '<h1 class="text-logo">'.esc_html( $text_logo ).'</h1>';
343
  break;
344
  case 'disabled':
345
  default:
@@ -414,13 +418,27 @@ class cmp_render_html extends niteo_cmp {
414
  // add loaded class to background media
415
  } else { ?>
416
  <script>
417
- window.onload = function() {
418
- var image = document.getElementById('background-image');
419
- if ( image != null ) {
420
- image.className += " loaded";
421
- }
422
-
423
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
424
  </script>
425
  <?php
426
  }
@@ -469,7 +487,10 @@ class cmp_render_html extends niteo_cmp {
469
  if ($this->cmp_selectedTheme() == 'postery' || (isset($_GET['theme']) && $_GET['theme'] == 'postery') ) {
470
  $submit = '&#xf1d9;';
471
  }
472
- ?>
 
 
 
473
 
474
  <form id="subscribe-form" method="post">
475
  <?php wp_nonce_field('save_options','save_options_field'); ?>
118
  case '4':
119
  // Color
120
  $color = get_option('niteoCS_banner_color['.$themeslug.']', '#bdc3c7');
121
+ $html ='<div id="background-image" class="color loaded" style="background-color:'.esc_url( $color ).'"></div>';
122
 
123
  return $html;
124
  break;
143
  }
144
 
145
 
146
+ $html = '<div id="background-image" class="gradient loaded" style="background:-moz-linear-gradient(-45deg, '.esc_attr( $niteoCS_gradient_one ).' 0%, '.esc_attr( $niteoCS_gradient_two ).' 100%);background:-webkit-linear-gradient(-45deg, '.esc_attr( $niteoCS_gradient_one ).' 0%, '.esc_attr( $niteoCS_gradient_two ).' 100%);background:linear-gradient(135deg,'.esc_attr( $niteoCS_gradient_one ).' 0%, '.esc_attr( $niteoCS_gradient_two ).' 100%)"></div>';
147
 
148
  return $html;
149
  break;
162
  $this->cmp_background($_GET['background'], $themeslug);
163
  return;
164
  }
 
165
  }
166
 
167
  $size = $this->isMobile() ? 'large' : 'full'; ?>
228
  var screenHeight = screenWidth / 1.77777;
229
  screenHeight = screenHeight.toFixed(0);
230
 
231
+ <?php
232
+ if ( get_option('niteoCS_overlay_opacity['.$themeslug.']', '1') == '1' ) { ?>
233
+
234
+ if ( !navigator.userAgent.match(/(iPad)|(iPhone)|(iPod)|(android)|(webOS)/i) && screenWidth > 1200 ) {
235
+ screenWidth = screenWidth / 2;
236
+ }
237
+ <?php
238
+ } ?>
239
 
240
  for (i=0; i<<?php echo esc_attr($slider_count);?>; i++) {
241
  <?php $banner_url = $this->niteo_unsplash( $params ); ?>
343
 
344
  case 'text':
345
  $text_logo = stripslashes(get_option('niteoCS_text_logo['.$themeslug.']', get_bloginfo( 'name', 'display' )));
346
+ $html = '<div class="text-logo-wrapper"><h1 class="text-logo">'.esc_html( $text_logo ).'</h1></div>';
347
  break;
348
  case 'disabled':
349
  default:
418
  // add loaded class to background media
419
  } else { ?>
420
  <script>
421
+
422
+ (function(window, document, undefined){
423
+
424
+ // code that should be taken care of right away
425
+
426
+ window.onload = init;
427
+
428
+ function init(){
429
+ var image = document.getElementById('background-image');
430
+
431
+ if ( image === null ) {
432
+ image = document.getElementById('body');
433
+ }
434
+
435
+ if ( image != null ) {
436
+ image.className += " loaded";
437
+ }
438
+ }
439
+
440
+ })(window, document, undefined);
441
+
442
  </script>
443
  <?php
444
  }
487
  if ($this->cmp_selectedTheme() == 'postery' || (isset($_GET['theme']) && $_GET['theme'] == 'postery') ) {
488
  $submit = '&#xf1d9;';
489
  }
490
+
491
+ if ( isset($_GET['theme']) && $_GET['theme'] == 'eclipse' ) {
492
+ $niteoCS_subscribe_label = 'SUBSCRIBE US';
493
+ } ?>
494
 
495
  <form id="subscribe-form" method="post">
496
  <?php wp_nonce_field('save_options','save_options_field'); ?>
inc/preview-iframe.php CHANGED
@@ -11,6 +11,7 @@
11
  $theme_slug = '';
12
  $buy = false;
13
  $buy_url = '#free';
 
14
  $premium_themes = $this->cmp_plugin_premium();
15
 
16
  if ( isset($_GET['theme']) ) {
@@ -28,16 +29,20 @@
28
 
29
  if ( isset($_GET['background']) && is_numeric($_GET['background'])) {
30
  $background = $_GET['background'];
31
- $background_attr = '&background='.esc_attr($_GET['background']);
32
- }
 
 
 
33
 
34
  // get buy URL if premium Theme
35
  if ( $this->niteo_in_array_r($theme_slug, $premium_themes) ) {
36
  $buy = true;
37
- foreach ($premium_themes as $premium) {
38
 
39
  if ( $premium['name'] == $theme_slug ) {
40
  $buy_url = $premium['url'];
 
41
  break;
42
  }
43
  }
@@ -54,9 +59,6 @@
54
  <link rel="stylesheet" href="https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css">
55
 
56
  <link href="https://fonts.googleapis.com/css?family=Open+Sans:400,600" rel="stylesheet">
57
- <script>
58
-
59
- </script>
60
  </head>
61
 
62
 
@@ -87,15 +89,15 @@
87
  </a>
88
  </div>
89
 
90
- <div class="panel purchase <?php echo ($buy == true) ? 'premium' : 'free';?>">
91
- <a href="<?php echo esc_url($buy_url);?>" target="_blank">
92
- <i class="ion ion-ios-cart" aria-hidden="true"></i>
93
- <span><?php _e('Purchase Theme', 'cmp-coming-soon-maintenance');?></span>
94
  </a>
95
  </div>
96
 
97
  <div class="panel homepage">
98
- <a href="https://niteothemes.com" target="_blank">
99
  <i class="ion ion-ios-home" aria-hidden="true"></i>
100
  <span><?php _e('Visit NiteoThemes', 'cmp-coming-soon-maintenance');?></span>
101
  </a>
@@ -107,25 +109,27 @@
107
  <div class="background-selector">
108
  <h3><?php _e('Background', 'cmp-coming-soon-maintenance');?></h3>
109
 
110
- <a href="<?php echo esc_url( get_site_url() ) . '/?cmp_preview=true&selector=true&theme='.esc_attr( $theme_slug );?>&background=1" class="thumbnail" data-background="1"><i class="ion ion-image" aria-hidden="true"></i><?php _e('Image', 'cmp-coming-soon-maintenance');?></a>
111
 
112
- <a href="<?php echo esc_url( get_site_url() ) . '/?cmp_preview=true&selector=true&theme='.esc_attr( $theme_slug );?>&background=5" class="thumbnail" data-background="5"><i class="ion ion-film-marker" aria-hidden="true"></i><?php _e('Video', 'cmp-coming-soon-maintenance');?></a>
113
 
114
- <a href="<?php echo esc_url( get_site_url() ) . '/?cmp_preview=true&selector=true&theme='.esc_attr( $theme_slug );?>&background=3" class="thumbnail" data-background="3"><i class="ion ion-grid" aria-hidden="true"></i><?php _e('Pattern', 'cmp-coming-soon-maintenance');?></a>
115
 
116
- <a href="<?php echo esc_url( get_site_url() ) . '/?cmp_preview=true&selector=true&theme='.esc_attr( $theme_slug );?>&background=6" class="thumbnail" data-background="6"><i class="ion ion-android-color-palette" aria-hidden="true"></i><?php _e('Gradient', 'cmp-coming-soon-maintenance');?></a>
117
 
118
- <a href="<?php echo esc_url( get_site_url() ) . '/?cmp_preview=true&selector=true&theme='.esc_attr( $theme_slug );?>&background=4" class="thumbnail" data-background="4"><i class="ion ion-paintbucket" aria-hidden="true"></i><?php _e('Color', 'cmp-coming-soon-maintenance');?></a>
119
 
120
  </div>
121
  <div class="theme-selector">
122
  <h3><?php _e('Theme', 'cmp-coming-soon-maintenance');?><span class="theme-name"></span></h3>
123
  <?php
124
  foreach ( $this->theme_array as $slug ) {
125
- $title = str_replace('_', ' ', ucwords($slug));
126
- echo '<a href="'.esc_url( get_site_url() ) . '/?cmp_preview=true&selector=true&theme='.esc_attr( $slug ).esc_attr( $background_attr ).'" class="thumbnail" data-name="'.$title.'" data-slug="'.$slug.'">';
127
- echo '<img src="'.plugin_dir_url( dirname( __FILE__ ) ) .'img/thumbnails/'.$slug.'_thumbnail.jpg" alt="CMP '.$title.'">';
128
- echo '</a>';
 
 
129
  } ?>
130
  </div>
131
  </div>
11
  $theme_slug = '';
12
  $buy = false;
13
  $buy_url = '#free';
14
+ $price = 0;
15
  $premium_themes = $this->cmp_plugin_premium();
16
 
17
  if ( isset($_GET['theme']) ) {
29
 
30
  if ( isset($_GET['background']) && is_numeric($_GET['background'])) {
31
  $background = $_GET['background'];
32
+ $background_attr = '&background='.esc_attr($background);
33
+ } else {
34
+ $background = '1';
35
+ $background_attr = '&background=1';
36
+ }
37
 
38
  // get buy URL if premium Theme
39
  if ( $this->niteo_in_array_r($theme_slug, $premium_themes) ) {
40
  $buy = true;
41
+ foreach ( $premium_themes as $premium ) {
42
 
43
  if ( $premium['name'] == $theme_slug ) {
44
  $buy_url = $premium['url'];
45
+ $price = $premium['price'];
46
  break;
47
  }
48
  }
59
  <link rel="stylesheet" href="https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css">
60
 
61
  <link href="https://fonts.googleapis.com/css?family=Open+Sans:400,600" rel="stylesheet">
 
 
 
62
  </head>
63
 
64
 
89
  </a>
90
  </div>
91
 
92
+ <div class="panel purchase <?php echo ( $buy == true ) ? 'premium' : 'free';?>">
93
+ <a href="<?php echo esc_url( $buy_url );?>" target="_blank">
94
+ <i class="ion <?php echo ( $price == '0' ) ? 'ion-ios-download' : 'ion-ios-cart';?>" aria-hidden="true"></i>
95
+ <span><?php if ( $price == '0' ) { _e('Free Download', 'cmp-coming-soon-maintenance'); } else { _e('Purchase Theme', 'cmp-coming-soon-maintenance'); };?></span>
96
  </a>
97
  </div>
98
 
99
  <div class="panel homepage">
100
+ <a href="https://niteothemes.com/?utm_source=selector&utm_medium=referral" target="_blank">
101
  <i class="ion ion-ios-home" aria-hidden="true"></i>
102
  <span><?php _e('Visit NiteoThemes', 'cmp-coming-soon-maintenance');?></span>
103
  </a>
109
  <div class="background-selector">
110
  <h3><?php _e('Background', 'cmp-coming-soon-maintenance');?></h3>
111
 
112
+ <a href="<?php echo esc_url( get_site_url() ) . '/?cmp_preview=true&selector=true&theme='.esc_attr( $theme_slug );?>&background=1&utm_source=selector&utm_medium=referral" class="thumbnail" data-background="1"><i class="ion ion-image" aria-hidden="true"></i><?php _e('Image', 'cmp-coming-soon-maintenance');?></a>
113
 
114
+ <a href="<?php echo esc_url( get_site_url() ) . '/?cmp_preview=true&selector=true&theme='.esc_attr( $theme_slug );?>&background=5&utm_source=selector&utm_medium=referral" class="thumbnail" data-background="5"><i class="ion ion-film-marker" aria-hidden="true"></i><?php _e('Video', 'cmp-coming-soon-maintenance');?></a>
115
 
116
+ <a href="<?php echo esc_url( get_site_url() ) . '/?cmp_preview=true&selector=true&theme='.esc_attr( $theme_slug );?>&background=3&utm_source=selector&utm_medium=referral" class="thumbnail" data-background="3"><i class="ion ion-grid" aria-hidden="true"></i><?php _e('Pattern', 'cmp-coming-soon-maintenance');?></a>
117
 
118
+ <a href="<?php echo esc_url( get_site_url() ) . '/?cmp_preview=true&selector=true&theme='.esc_attr( $theme_slug );?>&background=6&utm_source=selector&utm_medium=referral" class="thumbnail" data-background="6"><i class="ion ion-android-color-palette" aria-hidden="true"></i><?php _e('Gradient', 'cmp-coming-soon-maintenance');?></a>
119
 
120
+ <a href="<?php echo esc_url( get_site_url() ) . '/?cmp_preview=true&selector=true&theme='.esc_attr( $theme_slug );?>&background=4&utm_source=selector&utm_medium=referral" class="thumbnail" data-background="4"><i class="ion ion-paintbucket" aria-hidden="true"></i><?php _e('Color', 'cmp-coming-soon-maintenance');?></a>
121
 
122
  </div>
123
  <div class="theme-selector">
124
  <h3><?php _e('Theme', 'cmp-coming-soon-maintenance');?><span class="theme-name"></span></h3>
125
  <?php
126
  foreach ( $this->theme_array as $slug ) {
127
+ if ( $slug !== 'eclipse') {
128
+ $title = str_replace('_', ' ', ucwords($slug));
129
+ echo '<a href="'.esc_url( get_site_url() ) . '/?cmp_preview=true&selector=true&theme='.esc_attr( $slug ).esc_attr( $background_attr ).'&utm_source=selector&utm_medium=referral&utm_campaign='.esc_attr( $slug ).'" class="thumbnail" data-name="'.$title.'" data-slug="'.$slug.'">';
130
+ echo '<img src="'.plugin_dir_url( dirname( __FILE__ ) ) .'img/thumbnails/'.$slug.'_thumbnail.jpg" alt="CMP '.$title.'">';
131
+ echo '</a>';
132
+ }
133
  } ?>
134
  </div>
135
  </div>
inc/settings-counter.php CHANGED
@@ -28,6 +28,10 @@ if (isset($_POST['niteoCS_countdown_redirect'])) {
28
  update_option('niteoCS_countdown_redirect', esc_url_raw($_POST['niteoCS_countdown_redirect']));
29
  }
30
 
 
 
 
 
31
  // register and enqueue admin needed scripts
32
  wp_enqueue_script('countdown_flatpicker_js');
33
  wp_enqueue_style( 'countdown_flatpicker_css');
@@ -38,6 +42,7 @@ $niteoCS_counter_date = get_option('niteoCS_counter_date', time()+86400);
38
  $niteoCS_countdown_action = get_option('niteoCS_countdown_action', 'no-action');
39
  $niteoCS_countdown_text = get_option('niteoCS_countdown_text');
40
  $niteoCS_countdown_redirect = get_option('niteoCS_countdown_redirect');
 
41
 
42
  ?>
43
 
@@ -72,6 +77,16 @@ $niteoCS_countdown_redirect = get_option('niteoCS_countdown_redirect');
72
  </td>
73
 
74
  <td id="counter-enabled">
 
 
 
 
 
 
 
 
 
 
75
  <p><?php _e('Click on date input and set a date & time for a Countdown timer.', 'cmp-coming-soon-maintenance');?></p>
76
  <fieldset>
77
  <legend class="screen-reader-text">
28
  update_option('niteoCS_countdown_redirect', esc_url_raw($_POST['niteoCS_countdown_redirect']));
29
  }
30
 
31
+ if (isset($_POST['niteoCS_counter_heading'])) {
32
+ update_option('niteoCS_counter_heading', sanitize_text_field($_POST['niteoCS_counter_heading']));
33
+ }
34
+
35
  // register and enqueue admin needed scripts
36
  wp_enqueue_script('countdown_flatpicker_js');
37
  wp_enqueue_style( 'countdown_flatpicker_css');
42
  $niteoCS_countdown_action = get_option('niteoCS_countdown_action', 'no-action');
43
  $niteoCS_countdown_text = get_option('niteoCS_countdown_text');
44
  $niteoCS_countdown_redirect = get_option('niteoCS_countdown_redirect');
45
+ $niteoCS_counter_heading = get_option('niteoCS_counter_heading', 'STAY TUNED, WE ARE LAUNCHING SOON...');
46
 
47
  ?>
48
 
77
  </td>
78
 
79
  <td id="counter-enabled">
80
+
81
+ <?php if ( $this->cmp_selectedTheme() == 'eclipse' ) :
82
+ // heading used in Eclipse theme ?>
83
+ <fieldset>
84
+ <label for="niteoCS_counter_heading"><?php _e('Counter Heading', 'cmp-coming-soon-maintenance');?>
85
+ <input type="text" name="niteoCS_counter_heading" value="<?php echo esc_attr( $niteoCS_counter_heading ); ?>" class="regular-text code"><br>
86
+ </label>
87
+ </fieldset>
88
+ <?php endif;?>
89
+
90
  <p><?php _e('Click on date input and set a date & time for a Countdown timer.', 'cmp-coming-soon-maintenance');?></p>
91
  <fieldset>
92
  <legend class="screen-reader-text">
inc/settings-footer.php CHANGED
@@ -19,4 +19,81 @@
19
 
20
  </tbody>
21
  </table>
22
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19
 
20
  </tbody>
21
  </table>
22
+ </div>
23
+
24
+ <?php if ( $this->cmp_selectedTheme() == 'eclipse' ):
25
+
26
+ if (isset($_POST['niteoCS_contact_content_'.$themeslug])) {
27
+ update_option('niteoCS_contact_content['.$themeslug.']', sanitize_text_field($_POST['niteoCS_contact_content_'.$themeslug]));
28
+ }
29
+
30
+ if (isset($_POST['niteoCS_contact_title_'.$themeslug])) {
31
+ update_option('niteoCS_contact_title['.$themeslug.']', sanitize_text_field($_POST['niteoCS_contact_title_'.$themeslug]));
32
+ }
33
+
34
+ if (isset($_POST['niteoCS_contact_title_'.$themeslug])) {
35
+ update_option('niteoCS_contact_title['.$themeslug.']', sanitize_text_field($_POST['niteoCS_contact_title_'.$themeslug]));
36
+ }
37
+
38
+ if (isset($_POST['niteoCS_contact_email_'.$themeslug])) {
39
+ update_option('niteoCS_contact_email['.$themeslug.']', sanitize_text_field($_POST['niteoCS_contact_email_'.$themeslug]));
40
+ }
41
+
42
+ if (isset($_POST['niteoCS_contact_phone_'.$themeslug])) {
43
+ update_option('niteoCS_contact_phone['.$themeslug.']', sanitize_text_field($_POST['niteoCS_contact_phone_'.$themeslug]));
44
+ }
45
+
46
+ $niteoCS_contact_content = stripslashes(get_option('niteoCS_contact_content['.$themeslug.']', 'Lorem Ipsum is simply dummy text of the printing and typesetting industry.'));
47
+ $niteoCS_contact_title = get_option('niteoCS_contact_title['.$themeslug.']', 'Quick Contacts');
48
+ $niteoCS_contact_email = get_option('niteoCS_contact_email['.$themeslug.']', 'john.doe@email.com');
49
+ $niteoCS_contact_phone = get_option('niteoCS_contact_phone['.$themeslug.']', '+123456789'); ?>
50
+
51
+ <div class="table-wrapper content">
52
+ <h3><?php _e('Extended Footer Content', 'cmp-coming-soon-maintenance');?></h3>
53
+ <table class="theme-setup">
54
+
55
+ <tr>
56
+ <th><h4><?php _e('Content', 'cmp-coming-soon-maintenance');?></h4></th>
57
+ <td>
58
+ <fieldset>
59
+ <textarea name="niteoCS_contact_content_<?php echo esc_attr($themeslug);?>" rows="5"><?php echo esc_attr( $niteoCS_contact_content ); ?></textarea>
60
+ </fieldset>
61
+ </td>
62
+ </tr>
63
+
64
+ <tr>
65
+ <th><h4><?php _e('Contacts Title', 'cmp-coming-soon-maintenance');?></h4></th>
66
+ <td>
67
+ <fieldset>
68
+ <input type="text" name="niteoCS_contact_title_<?php echo esc_attr($themeslug);?>" value="<?php echo esc_attr( $niteoCS_contact_title );?>" class="regular-text code">
69
+ </fieldset>
70
+ </td>
71
+ </tr>
72
+
73
+ <tr>
74
+ <th><h4><?php _e('Contact Email', 'cmp-coming-soon-maintenance');?></h4></th>
75
+ <td>
76
+ <fieldset>
77
+ <input type="text" name="niteoCS_contact_email_<?php echo esc_attr($themeslug);?>" value="<?php echo esc_attr( $niteoCS_contact_email );?>" class="regular-text code">
78
+ </fieldset>
79
+ </td>
80
+ </tr>
81
+
82
+ <tr>
83
+ <th><h4><?php _e('Contact Phone', 'cmp-coming-soon-maintenance');?></h4></th>
84
+ <td>
85
+ <fieldset>
86
+ <input type="text" name="niteoCS_contact_phone_<?php echo esc_attr($themeslug);?>" value="<?php echo esc_attr( $niteoCS_contact_phone );?>" class="regular-text code">
87
+ </fieldset>
88
+ </td>
89
+ </tr>
90
+
91
+ <tr><th>
92
+ <p class="cmp-submit">
93
+ <?php wp_nonce_field('save_options','save_options_field'); ?>
94
+ <input type="submit" name="Submit" class="button cmp-button submit" value="<?php _e('Save All Changes', 'cmp-coming-soon-maintenance'); ?>" id="submitChanges" />
95
+ </p>
96
+ </th></tr>
97
+ </table>
98
+ </div>
99
+ <?php endif;?>
inc/settings-slider.php CHANGED
@@ -85,7 +85,7 @@ $niteoCS_slider_auto = get_option('niteoCS_slider_auto['.$themeslug.']', '1');
85
  </p>
86
 
87
  <p>
88
- <input type="checkbox" name="niteoCS_slider_auto_<?php echo esc_attr($themeslug);?>" id="niteoCS_slider_auto" value="1" <?php checked( '1', get_option( 'niteoCS_slider_auto', '0' ) ); ?> class="regular-text code"><label for="niteoCS_slider_auto"><?php _e('Slider Autostart', 'cmp-coming-soon-maintenance');?></label><br>
89
  </p>
90
 
91
  <label for="niteoCS_slider_count"><?php _e('Number of Unplash media Slides (applies only for Unsplash photos)', 'cmp-coming-soon-maintenance');?></label></br>
85
  </p>
86
 
87
  <p>
88
+ <input type="checkbox" name="niteoCS_slider_auto_<?php echo esc_attr($themeslug);?>" id="niteoCS_slider_auto" value="1" <?php checked( '1', get_option( 'niteoCS_slider_auto['.$themeslug.']', '0' ) ); ?> class="regular-text code"><label for="niteoCS_slider_auto"><?php _e('Slider Autostart', 'cmp-coming-soon-maintenance');?></label><br>
89
  </p>
90
 
91
  <label for="niteoCS_slider_count"><?php _e('Number of Unplash media Slides (applies only for Unsplash photos)', 'cmp-coming-soon-maintenance');?></label></br>
inc/webfonts.php ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
1
+ <?php
2
+
3
+ return '[{"id":"Roboto","text":"Roboto","variants":["100","100italic","300","300italic","regular","italic","500","500italic","700","700italic","900","900italic"]},{"id":"Open Sans","text":"Open Sans","variants":["300","300italic","regular","italic","600","600italic","700","700italic","800","800italic"]},{"id":"Lato","text":"Lato","variants":["100","100italic","300","300italic","regular","italic","700","700italic","900","900italic"]},{"id":"Roboto Condensed","text":"Roboto Condensed","variants":["300","300italic","regular","italic","700","700italic"]},{"id":"Oswald","text":"Oswald","variants":["200","300","regular","500","600","700"]},{"id":"Slabo 27px","text":"Slabo 27px","variants":["regular"]},{"id":"Montserrat","text":"Montserrat","variants":["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"]},{"id":"Source Sans Pro","text":"Source Sans Pro","variants":["200","200italic","300","300italic","regular","italic","600","600italic","700","700italic","900","900italic"]},{"id":"Raleway","text":"Raleway","variants":["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"]},{"id":"PT Sans","text":"PT Sans","variants":["regular","italic","700","700italic"]},{"id":"Roboto Slab","text":"Roboto Slab","variants":["100","300","regular","700"]},{"id":"Merriweather","text":"Merriweather","variants":["300","300italic","regular","italic","700","700italic","900","900italic"]},{"id":"Open Sans Condensed","text":"Open Sans Condensed","variants":["300","300italic","700"]},{"id":"Ubuntu","text":"Ubuntu","variants":["300","300italic","regular","italic","500","500italic","700","700italic"]},{"id":"Lora","text":"Lora","variants":["regular","italic","700","700italic"]},{"id":"Playfair Display","text":"Playfair Display","variants":["regular","italic","700","700italic","900","900italic"]},{"id":"Noto Sans","text":"Noto Sans","variants":["regular","italic","700","700italic"]},{"id":"PT Serif","text":"PT Serif","variants":["regular","italic","700","700italic"]},{"id":"Arimo","text":"Arimo","variants":["regular","italic","700","700italic"]},{"id":"Poppins","text":"Poppins","variants":["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"]},{"id":"Titillium Web","text":"Titillium Web","variants":["200","200italic","300","300italic","regular","italic","600","600italic","700","700italic","900"]},{"id":"Muli","text":"Muli","variants":["200","200italic","300","300italic","regular","italic","600","600italic","700","700italic","800","800italic","900","900italic"]},{"id":"PT Sans Narrow","text":"PT Sans Narrow","variants":["regular","700"]},{"id":"Indie Flower","text":"Indie Flower","variants":["regular"]},{"id":"Inconsolata","text":"Inconsolata","variants":["regular","700"]},{"id":"Dosis","text":"Dosis","variants":["200","300","regular","500","600","700","800"]},{"id":"Nunito","text":"Nunito","variants":["200","200italic","300","300italic","regular","italic","600","600italic","700","700italic","800","800italic","900","900italic"]},{"id":"Bitter","text":"Bitter","variants":["regular","italic","700"]},{"id":"Noto Serif","text":"Noto Serif","variants":["regular","italic","700","700italic"]},{"id":"Oxygen","text":"Oxygen","variants":["300","regular","700"]},{"id":"Crimson Text","text":"Crimson Text","variants":["regular","italic","600","600italic","700","700italic"]},{"id":"Anton","text":"Anton","variants":["regular"]},{"id":"Arvo","text":"Arvo","variants":["regular","italic","700","700italic"]},{"id":"Fira Sans","text":"Fira Sans","variants":["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"]},{"id":"Fjalla One","text":"Fjalla One","variants":["regular"]},{"id":"Josefin Sans","text":"Josefin Sans","variants":["100","100italic","300","300italic","regular","italic","600","600italic","700","700italic"]},{"id":"Cabin","text":"Cabin","variants":["regular","italic","500","500italic","600","600italic","700","700italic"]},{"id":"Exo 2","text":"Exo 2","variants":["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"]},{"id":"Quicksand","text":"Quicksand","variants":["300","regular","500","700"]},{"id":"Work Sans","text":"Work Sans","variants":["100","200","300","regular","500","600","700","800","900"]},{"id":"Hind","text":"Hind","variants":["300","regular","500","600","700"]},{"id":"Libre Baskerville","text":"Libre Baskerville","variants":["regular","italic","700"]},{"id":"Catamaran","text":"Catamaran","variants":["100","200","300","regular","500","600","700","800","900"]},{"id":"Lobster","text":"Lobster","variants":["regular"]},{"id":"Roboto Mono","text":"Roboto Mono","variants":["100","100italic","300","300italic","regular","italic","500","500italic","700","700italic"]},{"id":"Abril Fatface","text":"Abril Fatface","variants":["regular"]},{"id":"Yanone Kaffeesatz","text":"Yanone Kaffeesatz","variants":["200","300","regular","700"]},{"id":"Pacifico","text":"Pacifico","variants":["regular"]},{"id":"Karla","text":"Karla","variants":["regular","italic","700","700italic"]},{"id":"Abel","text":"Abel","variants":["regular"]},{"id":"Asap","text":"Asap","variants":["regular","italic","500","500italic","600","600italic","700","700italic"]},{"id":"Rubik","text":"Rubik","variants":["300","300italic","regular","italic","500","500italic","700","700italic","900","900italic"]},{"id":"Varela Round","text":"Varela Round","variants":["regular"]},{"id":"Gloria Hallelujah","text":"Gloria Hallelujah","variants":["regular"]},{"id":"Bree Serif","text":"Bree Serif","variants":["regular"]},{"id":"Ubuntu Condensed","text":"Ubuntu Condensed","variants":["regular"]},{"id":"Merriweather Sans","text":"Merriweather Sans","variants":["300","300italic","regular","italic","700","700italic","800","800italic"]},{"id":"Acme","text":"Acme","variants":["regular"]},{"id":"Shadows Into Light","text":"Shadows Into Light","variants":["regular"]},{"id":"Signika","text":"Signika","variants":["300","regular","600","700"]},{"id":"Archivo Narrow","text":"Archivo Narrow","variants":["regular","italic","500","500italic","600","600italic","700","700italic"]},{"id":"Dancing Script","text":"Dancing Script","variants":["regular","700"]},{"id":"Questrial","text":"Questrial","variants":["regular"]},{"id":"Archivo Black","text":"Archivo Black","variants":["regular"]},{"id":"Play","text":"Play","variants":["regular","700"]},{"id":"Francois One","text":"Francois One","variants":["regular"]},{"id":"Libre Franklin","text":"Libre Franklin","variants":["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"]},{"id":"Source Serif Pro","text":"Source Serif Pro","variants":["regular","600","700"]},{"id":"Maven Pro","text":"Maven Pro","variants":["regular","500","700","900"]},{"id":"Vollkorn","text":"Vollkorn","variants":["regular","italic","600","600italic","700","700italic","900","900italic"]},{"id":"Source Code Pro","text":"Source Code Pro","variants":["200","300","regular","500","600","700","900"]},{"id":"Cairo","text":"Cairo","variants":["200","300","regular","600","700","900"]},{"id":"Crete Round","text":"Crete Round","variants":["regular","italic"]},{"id":"Cuprum","text":"Cuprum","variants":["regular","italic","700","700italic"]},{"id":"PT Sans Caption","text":"PT Sans Caption","variants":["regular","700"]},{"id":"Amatic SC","text":"Amatic SC","variants":["regular","700"]},{"id":"Kanit","text":"Kanit","variants":["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"]},{"id":"EB Garamond","text":"EB Garamond","variants":["regular","italic","500","500italic","600","600italic","700","700italic","800","800italic"]},{"id":"Patua One","text":"Patua One","variants":["regular"]},{"id":"Exo","text":"Exo","variants":["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"]},{"id":"Rokkitt","text":"Rokkitt","variants":["100","200","300","regular","500","600","700","800","900"]},{"id":"Teko","text":"Teko","variants":["300","regular","500","600","700"]},{"id":"Russo One","text":"Russo One","variants":["regular"]},{"id":"Rajdhani","text":"Rajdhani","variants":["300","regular","500","600","700"]},{"id":"Passion One","text":"Passion One","variants":["regular","700","900"]},{"id":"Josefin Slab","text":"Josefin Slab","variants":["100","100italic","300","300italic","regular","italic","600","600italic","700","700italic"]},{"id":"Khula","text":"Khula","variants":["300","regular","600","700","800"]},{"id":"Comfortaa","text":"Comfortaa","variants":["300","regular","700"]},{"id":"Nunito Sans","text":"Nunito Sans","variants":["200","200italic","300","300italic","regular","italic","600","600italic","700","700italic","800","800italic","900","900italic"]},{"id":"Cormorant Garamond","text":"Cormorant Garamond","variants":["300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"]},{"id":"Pathway Gothic One","text":"Pathway Gothic One","variants":["regular"]},{"id":"Ropa Sans","text":"Ropa Sans","variants":["regular","italic"]},{"id":"Poiret One","text":"Poiret One","variants":["regular"]},{"id":"Yantramanav","text":"Yantramanav","variants":["100","300","regular","500","700","900"]},{"id":"Cinzel","text":"Cinzel","variants":["regular","700","900"]},{"id":"Quattrocento Sans","text":"Quattrocento Sans","variants":["regular","italic","700","700italic"]},{"id":"Old Standard TT","text":"Old Standard TT","variants":["regular","italic","700"]},{"id":"Alegreya","text":"Alegreya","variants":["regular","italic","500","500italic","700","700italic","800","800italic","900","900italic"]},{"id":"Satisfy","text":"Satisfy","variants":["regular"]},{"id":"Sanchez","text":"Sanchez","variants":["regular","italic"]},{"id":"News Cycle","text":"News Cycle","variants":["regular","700"]},{"id":"Monda","text":"Monda","variants":["regular","700"]},{"id":"Domine","text":"Domine","variants":["regular","700"]},{"id":"Noticia Text","text":"Noticia Text","variants":["regular","italic","700","700italic"]},{"id":"Courgette","text":"Courgette","variants":["regular"]},{"id":"Istok Web","text":"Istok Web","variants":["regular","italic","700","700italic"]},{"id":"ABeeZee","text":"ABeeZee","variants":["regular","italic"]},{"id":"Berkshire Swash","text":"Berkshire Swash","variants":["regular"]},{"id":"Julius Sans One","text":"Julius Sans One","variants":["regular"]},{"id":"Alegreya Sans","text":"Alegreya Sans","variants":["100","100italic","300","300italic","regular","italic","500","500italic","700","700italic","800","800italic","900","900italic"]},{"id":"Heebo","text":"Heebo","variants":["100","300","regular","500","700","800","900"]},{"id":"Permanent Marker","text":"Permanent Marker","variants":["regular"]},{"id":"Lobster Two","text":"Lobster Two","variants":["regular","italic","700","700italic"]},{"id":"Orbitron","text":"Orbitron","variants":["regular","500","700","900"]},{"id":"Cookie","text":"Cookie","variants":["regular"]},{"id":"Hind Siliguri","text":"Hind Siliguri","variants":["300","regular","500","600","700"]},{"id":"Righteous","text":"Righteous","variants":["regular"]},{"id":"Great Vibes","text":"Great Vibes","variants":["regular"]},{"id":"Shrikhand","text":"Shrikhand","variants":["regular"]},{"id":"Gudea","text":"Gudea","variants":["regular","italic","700"]},{"id":"Kaushan Script","text":"Kaushan Script","variants":["regular"]},{"id":"Coustard","text":"Coustard","variants":["regular","900"]},{"id":"Quattrocento","text":"Quattrocento","variants":["regular","700"]},{"id":"Cardo","text":"Cardo","variants":["regular","italic","700"]},{"id":"Ovo","text":"Ovo","variants":["regular"]},{"id":"Tinos","text":"Tinos","variants":["regular","italic","700","700italic"]},{"id":"Economica","text":"Economica","variants":["regular","italic","700","700italic"]},{"id":"Philosopher","text":"Philosopher","variants":["regular","italic","700","700italic"]},{"id":"Pontano Sans","text":"Pontano Sans","variants":["regular"]},{"id":"Cabin Condensed","text":"Cabin Condensed","variants":["regular","500","600","700"]},{"id":"Playfair Display SC","text":"Playfair Display SC","variants":["regular","italic","700","700italic","900","900italic"]},{"id":"Vidaloka","text":"Vidaloka","variants":["regular"]},{"id":"Alfa Slab One","text":"Alfa Slab One","variants":["regular"]},{"id":"Amiri","text":"Amiri","variants":["regular","italic","700","700italic"]},{"id":"Hammersmith One","text":"Hammersmith One","variants":["regular"]},{"id":"Didact Gothic","text":"Didact Gothic","variants":["regular"]},{"id":"Arapey","text":"Arapey","variants":["regular","italic"]},{"id":"Prompt","text":"Prompt","variants":["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"]},{"id":"Kalam","text":"Kalam","variants":["300","regular","700"]},{"id":"Armata","text":"Armata","variants":["regular"]},{"id":"BenchNine","text":"BenchNine","variants":["300","regular","700"]},{"id":"Boogaloo","text":"Boogaloo","variants":["regular"]},{"id":"Saira Extra Condensed","text":"Saira Extra Condensed","variants":["100","200","300","regular","500","600","700","800","900"]},{"id":"Caveat","text":"Caveat","variants":["regular","700"]},{"id":"Khand","text":"Khand","variants":["300","regular","500","600","700"]},{"id":"Neuton","text":"Neuton","variants":["200","300","regular","italic","700","800"]},{"id":"Volkhov","text":"Volkhov","variants":["regular","italic","700","700italic"]},{"id":"Audiowide","text":"Audiowide","variants":["regular"]},{"id":"Yellowtail","text":"Yellowtail","variants":["regular"]},{"id":"Handlee","text":"Handlee","variants":["regular"]},{"id":"Sacramento","text":"Sacramento","variants":["regular"]},{"id":"Tangerine","text":"Tangerine","variants":["regular","700"]},{"id":"Architects Daughter","text":"Architects Daughter","variants":["regular"]},{"id":"Cantarell","text":"Cantarell","variants":["regular","italic","700","700italic"]},{"id":"Concert One","text":"Concert One","variants":["regular"]},{"id":"PT Mono","text":"PT Mono","variants":["regular"]},{"id":"Shadows Into Light Two","text":"Shadows Into Light Two","variants":["regular"]},{"id":"Jura","text":"Jura","variants":["300","regular","500","600","700"]},{"id":"Ruda","text":"Ruda","variants":["regular","700","900"]},{"id":"Fredoka One","text":"Fredoka One","variants":["regular"]},{"id":"Pragati Narrow","text":"Pragati Narrow","variants":["regular","700"]},{"id":"Amaranth","text":"Amaranth","variants":["regular","italic","700","700italic"]},{"id":"Glegoo","text":"Glegoo","variants":["regular","700"]},{"id":"Assistant","text":"Assistant","variants":["200","300","regular","600","700","800"]},{"id":"Caveat Brush","text":"Caveat Brush","variants":["regular"]},{"id":"Marck Script","text":"Marck Script","variants":["regular"]},{"id":"Changa","text":"Changa","variants":["200","300","regular","500","600","700","800"]},{"id":"Antic Slab","text":"Antic Slab","variants":["regular"]},{"id":"Varela","text":"Varela","variants":["regular"]},{"id":"VT323","text":"VT323","variants":["regular"]},{"id":"Kreon","text":"Kreon","variants":["300","regular","700"]},{"id":"Bangers","text":"Bangers","variants":["regular"]},{"id":"Playball","text":"Playball","variants":["regular"]},{"id":"Bevan","text":"Bevan","variants":["regular"]},{"id":"Sorts Mill Goudy","text":"Sorts Mill Goudy","variants":["regular","italic"]},{"id":"Gentium Book Basic","text":"Gentium Book Basic","variants":["regular","italic","700","700italic"]},{"id":"Luckiest Guy","text":"Luckiest Guy","variants":["regular"]},{"id":"Nothing You Could Do","text":"Nothing You Could Do","variants":["regular"]},{"id":"Special Elite","text":"Special Elite","variants":["regular"]},{"id":"Rozha One","text":"Rozha One","variants":["regular"]},{"id":"Sarala","text":"Sarala","variants":["regular","700"]},{"id":"Coda","text":"Coda","variants":["regular","800"]},{"id":"Patrick Hand","text":"Patrick Hand","variants":["regular"]},{"id":"Gochi Hand","text":"Gochi Hand","variants":["regular"]},{"id":"Gentium Basic","text":"Gentium Basic","variants":["regular","italic","700","700italic"]},{"id":"Unica One","text":"Unica One","variants":["regular"]},{"id":"Chewy","text":"Chewy","variants":["regular"]},{"id":"Monoton","text":"Monoton","variants":["regular"]},{"id":"Bad Script","text":"Bad Script","variants":["regular"]},{"id":"Actor","text":"Actor","variants":["regular"]},{"id":"Sintony","text":"Sintony","variants":["regular","700"]},{"id":"Aldrich","text":"Aldrich","variants":["regular"]},{"id":"Homemade Apple","text":"Homemade Apple","variants":["regular"]},{"id":"Prata","text":"Prata","variants":["regular"]},{"id":"Magra","text":"Magra","variants":["regular","700"]},{"id":"Fira Sans Condensed","text":"Fira Sans Condensed","variants":["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"]},{"id":"Alice","text":"Alice","variants":["regular"]},{"id":"Fugaz One","text":"Fugaz One","variants":["regular"]},{"id":"Cabin Sketch","text":"Cabin Sketch","variants":["regular","700"]},{"id":"Damion","text":"Damion","variants":["regular"]},{"id":"Rock Salt","text":"Rock Salt","variants":["regular"]},{"id":"Yrsa","text":"Yrsa","variants":["300","regular","500","600","700"]},{"id":"Contrail One","text":"Contrail One","variants":["regular"]},{"id":"Enriqueta","text":"Enriqueta","variants":["regular","700"]},{"id":"Limelight","text":"Limelight","variants":["regular"]},{"id":"Arbutus Slab","text":"Arbutus Slab","variants":["regular"]},{"id":"Paytone One","text":"Paytone One","variants":["regular"]},{"id":"Neucha","text":"Neucha","variants":["regular"]},{"id":"Merienda","text":"Merienda","variants":["regular","700"]},{"id":"Scada","text":"Scada","variants":["regular","italic","700","700italic"]},{"id":"Kameron","text":"Kameron","variants":["regular","700"]},{"id":"Martel","text":"Martel","variants":["200","300","regular","600","700","800","900"]},{"id":"Frank Ruhl Libre","text":"Frank Ruhl Libre","variants":["300","regular","500","700","900"]},{"id":"Adamina","text":"Adamina","variants":["regular"]},{"id":"Rambla","text":"Rambla","variants":["regular","italic","700","700italic"]},{"id":"Electrolize","text":"Electrolize","variants":["regular"]},{"id":"Press Start 2P","text":"Press Start 2P","variants":["regular"]},{"id":"Sigmar One","text":"Sigmar One","variants":["regular"]},{"id":"Lalezar","text":"Lalezar","variants":["regular"]},{"id":"Signika Negative","text":"Signika Negative","variants":["300","regular","600","700"]},{"id":"Marmelad","text":"Marmelad","variants":["regular"]},{"id":"Just Another Hand","text":"Just Another Hand","variants":["regular"]},{"id":"Advent Pro","text":"Advent Pro","variants":["100","200","300","regular","500","600","700"]},{"id":"Hind Vadodara","text":"Hind Vadodara","variants":["300","regular","500","600","700"]},{"id":"Cantata One","text":"Cantata One","variants":["regular"]},{"id":"Share","text":"Share","variants":["regular","italic","700","700italic"]},{"id":"Oleo Script","text":"Oleo Script","variants":["regular","700"]},{"id":"Alegreya Sans SC","text":"Alegreya Sans SC","variants":["100","100italic","300","300italic","regular","italic","500","500italic","700","700italic","800","800italic","900","900italic"]},{"id":"Ubuntu Mono","text":"Ubuntu Mono","variants":["regular","italic","700","700italic"]},{"id":"Forum","text":"Forum","variants":["regular"]},{"id":"PT Serif Caption","text":"PT Serif Caption","variants":["regular","italic"]},{"id":"Carme","text":"Carme","variants":["regular"]},{"id":"Prosto One","text":"Prosto One","variants":["regular"]},{"id":"Montserrat Alternates","text":"Montserrat Alternates","variants":["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"]},{"id":"Alex Brush","text":"Alex Brush","variants":["regular"]},{"id":"Overlock","text":"Overlock","variants":["regular","italic","700","700italic","900","900italic"]},{"id":"Chivo","text":"Chivo","variants":["300","300italic","regular","italic","700","700italic","900","900italic"]},{"id":"Rancho","text":"Rancho","variants":["regular"]},{"id":"Fira Sans Extra Condensed","text":"Fira Sans Extra Condensed","variants":["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"]},{"id":"Arima Madurai","text":"Arima Madurai","variants":["100","200","300","regular","500","700","800","900"]},{"id":"Allura","text":"Allura","variants":["regular"]},{"id":"Covered By Your Grace","text":"Covered By Your Grace","variants":["regular"]},{"id":"Nobile","text":"Nobile","variants":["regular","italic","500","500italic","700","700italic"]},{"id":"Coming Soon","text":"Coming Soon","variants":["regular"]},{"id":"Days One","text":"Days One","variants":["regular"]},{"id":"Lustria","text":"Lustria","variants":["regular"]},{"id":"Marcellus","text":"Marcellus","variants":["regular"]},{"id":"Basic","text":"Basic","variants":["regular"]},{"id":"Lusitana","text":"Lusitana","variants":["regular","700"]},{"id":"Syncopate","text":"Syncopate","variants":["regular","700"]},{"id":"Rufina","text":"Rufina","variants":["regular","700"]},{"id":"Michroma","text":"Michroma","variants":["regular"]},{"id":"Copse","text":"Copse","variants":["regular"]},{"id":"Slabo 13px","text":"Slabo 13px","variants":["regular"]},{"id":"Hind Madurai","text":"Hind Madurai","variants":["300","regular","500","600","700"]},{"id":"Jaldi","text":"Jaldi","variants":["regular","700"]},{"id":"Arsenal","text":"Arsenal","variants":["regular","italic","700","700italic"]},{"id":"Pinyon Script","text":"Pinyon Script","variants":["regular"]},{"id":"Spinnaker","text":"Spinnaker","variants":["regular"]},{"id":"Ceviche One","text":"Ceviche One","variants":["regular"]},{"id":"Convergence","text":"Convergence","variants":["regular"]},{"id":"Space Mono","text":"Space Mono","variants":["regular","italic","700","700italic"]},{"id":"Reenie Beanie","text":"Reenie Beanie","variants":["regular"]},{"id":"Viga","text":"Viga","variants":["regular"]},{"id":"Prociono","text":"Prociono","variants":["regular"]},{"id":"Marvel","text":"Marvel","variants":["regular","italic","700","700italic"]},{"id":"Molengo","text":"Molengo","variants":["regular"]},{"id":"Quantico","text":"Quantico","variants":["regular","italic","700","700italic"]},{"id":"Freckle Face","text":"Freckle Face","variants":["regular"]},{"id":"Oranienbaum","text":"Oranienbaum","variants":["regular"]},{"id":"Niconne","text":"Niconne","variants":["regular"]},{"id":"Marcellus SC","text":"Marcellus SC","variants":["regular"]},{"id":"Telex","text":"Telex","variants":["regular"]},{"id":"Grand Hotel","text":"Grand Hotel","variants":["regular"]},{"id":"Radley","text":"Radley","variants":["regular","italic"]},{"id":"Squada One","text":"Squada One","variants":["regular"]},{"id":"Parisienne","text":"Parisienne","variants":["regular"]},{"id":"Cousine","text":"Cousine","variants":["regular","italic","700","700italic"]},{"id":"Ultra","text":"Ultra","variants":["regular"]},{"id":"Alef","text":"Alef","variants":["regular","700"]},{"id":"Hind Guntur","text":"Hind Guntur","variants":["300","regular","500","600","700"]},{"id":"Bubblegum Sans","text":"Bubblegum Sans","variants":["regular"]},{"id":"Overpass","text":"Overpass","variants":["100","100italic","200","200italic","300","300italic","regular","italic","600","600italic","700","700italic","800","800italic","900","900italic"]},{"id":"Carter One","text":"Carter One","variants":["regular"]},{"id":"Itim","text":"Itim","variants":["regular"]},{"id":"Goudy Bookletter 1911","text":"Goudy Bookletter 1911","variants":["regular"]},{"id":"Candal","text":"Candal","variants":["regular"]},{"id":"Average","text":"Average","variants":["regular"]},{"id":"Share Tech Mono","text":"Share Tech Mono","variants":["regular"]},{"id":"Rochester","text":"Rochester","variants":["regular"]},{"id":"Rosario","text":"Rosario","variants":["regular","italic","700","700italic"]},{"id":"Fauna One","text":"Fauna One","variants":["regular"]},{"id":"Voltaire","text":"Voltaire","variants":["regular"]},{"id":"Sue Ellen Francisco","text":"Sue Ellen Francisco","variants":["regular"]},{"id":"Homenaje","text":"Homenaje","variants":["regular"]},{"id":"Chelsea Market","text":"Chelsea Market","variants":["regular"]},{"id":"Changa One","text":"Changa One","variants":["regular","italic"]},{"id":"Cambay","text":"Cambay","variants":["regular","italic","700","700italic"]},{"id":"Antic","text":"Antic","variants":["regular"]},{"id":"Annie Use Your Telescope","text":"Annie Use Your Telescope","variants":["regular"]},{"id":"Leckerli One","text":"Leckerli One","variants":["regular"]},{"id":"Carrois Gothic","text":"Carrois Gothic","variants":["regular"]},{"id":"Artifika","text":"Artifika","variants":["regular"]},{"id":"Love Ya Like A Sister","text":"Love Ya Like A Sister","variants":["regular"]},{"id":"Cinzel Decorative","text":"Cinzel Decorative","variants":["regular","700","900"]},{"id":"Palanquin","text":"Palanquin","variants":["100","200","300","regular","500","600","700"]},{"id":"Yesteryear","text":"Yesteryear","variants":["regular"]},{"id":"Nixie One","text":"Nixie One","variants":["regular"]},{"id":"Aclonica","text":"Aclonica","variants":["regular"]},{"id":"Federo","text":"Federo","variants":["regular"]},{"id":"Jockey One","text":"Jockey One","variants":["regular"]},{"id":"Alegreya SC","text":"Alegreya SC","variants":["regular","italic","500","500italic","700","700italic","800","800italic","900","900italic"]},{"id":"Zilla Slab","text":"Zilla Slab","variants":["300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"]},{"id":"Karma","text":"Karma","variants":["300","regular","500","600","700"]},{"id":"Black Ops One","text":"Black Ops One","variants":["regular"]},{"id":"Metrophobic","text":"Metrophobic","variants":["regular"]},{"id":"Italianno","text":"Italianno","variants":["regular"]},{"id":"Fredericka the Great","text":"Fredericka the Great","variants":["regular"]},{"id":"Martel Sans","text":"Martel Sans","variants":["200","300","regular","600","700","800","900"]},{"id":"Lateef","text":"Lateef","variants":["regular"]},{"id":"Kurale","text":"Kurale","variants":["regular"]},{"id":"Halant","text":"Halant","variants":["300","regular","500","600","700"]},{"id":"Bowlby One SC","text":"Bowlby One SC","variants":["regular"]},{"id":"Allerta","text":"Allerta","variants":["regular"]},{"id":"Cutive Mono","text":"Cutive Mono","variants":["regular"]},{"id":"Tenor Sans","text":"Tenor Sans","variants":["regular"]},{"id":"Pridi","text":"Pridi","variants":["200","300","regular","500","600","700"]},{"id":"Doppio One","text":"Doppio One","variants":["regular"]},{"id":"Allerta Stencil","text":"Allerta Stencil","variants":["regular"]},{"id":"Cutive","text":"Cutive","variants":["regular"]},{"id":"Tauri","text":"Tauri","variants":["regular"]},{"id":"Baloo","text":"Baloo","variants":["regular"]},{"id":"Capriola","text":"Capriola","variants":["regular"]},{"id":"Kelly Slab","text":"Kelly Slab","variants":["regular"]},{"id":"Norican","text":"Norican","variants":["regular"]},{"id":"Reem Kufi","text":"Reem Kufi","variants":["regular"]},{"id":"Anonymous Pro","text":"Anonymous Pro","variants":["regular","italic","700","700italic"]},{"id":"Archivo","text":"Archivo","variants":["regular","italic","500","500italic","600","600italic","700","700italic"]},{"id":"Calligraffitti","text":"Calligraffitti","variants":["regular"]},{"id":"GFS Didot","text":"GFS Didot","variants":["regular"]},{"id":"Delius","text":"Delius","variants":["regular"]},{"id":"Taviraj","text":"Taviraj","variants":["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"]},{"id":"Puritan","text":"Puritan","variants":["regular","italic","700","700italic"]},{"id":"Fanwood Text","text":"Fanwood Text","variants":["regular","italic"]},{"id":"Six Caps","text":"Six Caps","variants":["regular"]},{"id":"Mr Dafoe","text":"Mr Dafoe","variants":["regular"]},{"id":"Give You Glory","text":"Give You Glory","variants":["regular"]},{"id":"Saira Semi Condensed","text":"Saira Semi Condensed","variants":["100","200","300","regular","500","600","700","800","900"]},{"id":"Caudex","text":"Caudex","variants":["regular","italic","700","700italic"]},{"id":"Schoolbell","text":"Schoolbell","variants":["regular"]},{"id":"Happy Monkey","text":"Happy Monkey","variants":["regular"]},{"id":"IM Fell Double Pica","text":"IM Fell Double Pica","variants":["regular","italic"]},{"id":"Merienda One","text":"Merienda One","variants":["regular"]},{"id":"Gilda Display","text":"Gilda Display","variants":["regular"]},{"id":"Bowlby One","text":"Bowlby One","variants":["regular"]},{"id":"Racing Sans One","text":"Racing Sans One","variants":["regular"]},{"id":"Patrick Hand SC","text":"Patrick Hand SC","variants":["regular"]},{"id":"Graduate","text":"Graduate","variants":["regular"]},{"id":"Inder","text":"Inder","variants":["regular"]},{"id":"Quando","text":"Quando","variants":["regular"]},{"id":"Baloo Paaji","text":"Baloo Paaji","variants":["regular"]},{"id":"Yeseva One","text":"Yeseva One","variants":["regular"]},{"id":"Lily Script One","text":"Lily Script One","variants":["regular"]},{"id":"Average Sans","text":"Average Sans","variants":["regular"]},{"id":"Trirong","text":"Trirong","variants":["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"]},{"id":"Lilita One","text":"Lilita One","variants":["regular"]},{"id":"Nosifer","text":"Nosifer","variants":["regular"]},{"id":"Abhaya Libre","text":"Abhaya Libre","variants":["regular","500","600","700","800"]},{"id":"Gravitas One","text":"Gravitas One","variants":["regular"]},{"id":"Pompiere","text":"Pompiere","variants":["regular"]},{"id":"Asap Condensed","text":"Asap Condensed","variants":["regular","italic","500","500italic","600","600italic","700","700italic"]},{"id":"Londrina Solid","text":"Londrina Solid","variants":["100","300","regular","900"]},{"id":"Balthazar","text":"Balthazar","variants":["regular"]},{"id":"Trocchi","text":"Trocchi","variants":["regular"]},{"id":"Lekton","text":"Lekton","variants":["regular","italic","700"]},{"id":"Titan One","text":"Titan One","variants":["regular"]},{"id":"The Girl Next Door","text":"The Girl Next Door","variants":["regular"]},{"id":"Strait","text":"Strait","variants":["regular"]},{"id":"Andika","text":"Andika","variants":["regular"]},{"id":"Petit Formal Script","text":"Petit Formal Script","variants":["regular"]},{"id":"Belleza","text":"Belleza","variants":["regular"]},{"id":"Andada","text":"Andada","variants":["regular"]},{"id":"Montez","text":"Montez","variants":["regular"]},{"id":"Biryani","text":"Biryani","variants":["200","300","regular","600","700","800","900"]},{"id":"Mako","text":"Mako","variants":["regular"]},{"id":"Wire One","text":"Wire One","variants":["regular"]},{"id":"Short Stack","text":"Short Stack","variants":["regular"]},{"id":"Herr Von Muellerhoff","text":"Herr Von Muellerhoff","variants":["regular"]},{"id":"Judson","text":"Judson","variants":["regular","italic","700"]},{"id":"Unna","text":"Unna","variants":["regular","italic","700","700italic"]},{"id":"Sumana","text":"Sumana","variants":["regular","700"]},{"id":"Cormorant","text":"Cormorant","variants":["300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"]},{"id":"Bungee Inline","text":"Bungee Inline","variants":["regular"]},{"id":"Duru Sans","text":"Duru Sans","variants":["regular"]},{"id":"Mr De Haviland","text":"Mr De Haviland","variants":["regular"]},{"id":"Mate","text":"Mate","variants":["regular","italic"]},{"id":"Miriam Libre","text":"Miriam Libre","variants":["regular","700"]},{"id":"Mada","text":"Mada","variants":["200","300","regular","500","600","700","900"]},{"id":"NTR","text":"NTR","variants":["regular"]},{"id":"Allan","text":"Allan","variants":["regular","700"]},{"id":"Mitr","text":"Mitr","variants":["200","300","regular","500","600","700"]},{"id":"Walter Turncoat","text":"Walter Turncoat","variants":["regular"]},{"id":"Rasa","text":"Rasa","variants":["300","regular","500","600","700"]},{"id":"Crushed","text":"Crushed","variants":["regular"]},{"id":"Zeyada","text":"Zeyada","variants":["regular"]},{"id":"Megrim","text":"Megrim","variants":["regular"]},{"id":"Knewave","text":"Knewave","variants":["regular"]},{"id":"Alike","text":"Alike","variants":["regular"]},{"id":"Lemon","text":"Lemon","variants":["regular"]},{"id":"Waiting for the Sunrise","text":"Waiting for the Sunrise","variants":["regular"]},{"id":"Gruppo","text":"Gruppo","variants":["regular"]},{"id":"El Messiri","text":"El Messiri","variants":["regular","500","600","700"]},{"id":"Spirax","text":"Spirax","variants":["regular"]},{"id":"Oregano","text":"Oregano","variants":["regular","italic"]},{"id":"Anaheim","text":"Anaheim","variants":["regular"]},{"id":"Bilbo Swash Caps","text":"Bilbo Swash Caps","variants":["regular"]},{"id":"Gabriela","text":"Gabriela","variants":["regular"]},{"id":"Scheherazade","text":"Scheherazade","variants":["regular","700"]},{"id":"Rammetto One","text":"Rammetto One","variants":["regular"]},{"id":"La Belle Aurore","text":"La Belle Aurore","variants":["regular"]},{"id":"Vast Shadow","text":"Vast Shadow","variants":["regular"]},{"id":"Baumans","text":"Baumans","variants":["regular"]},{"id":"Loved by the King","text":"Loved by the King","variants":["regular"]},{"id":"Fenix","text":"Fenix","variants":["regular"]},{"id":"Poly","text":"Poly","variants":["regular","italic"]},{"id":"Palanquin Dark","text":"Palanquin Dark","variants":["regular","500","600","700"]},{"id":"Kranky","text":"Kranky","variants":["regular"]},{"id":"Athiti","text":"Athiti","variants":["200","300","regular","500","600","700"]},{"id":"Fira Mono","text":"Fira Mono","variants":["regular","500","700"]},{"id":"Hanuman","text":"Hanuman","variants":["regular","700"]},{"id":"Gafata","text":"Gafata","variants":["regular"]},{"id":"Kristi","text":"Kristi","variants":["regular"]},{"id":"Rouge Script","text":"Rouge Script","variants":["regular"]},{"id":"Frijole","text":"Frijole","variants":["regular"]},{"id":"Fontdiner Swanky","text":"Fontdiner Swanky","variants":["regular"]},{"id":"Qwigley","text":"Qwigley","variants":["regular"]},{"id":"Voces","text":"Voces","variants":["regular"]},{"id":"Brawler","text":"Brawler","variants":["regular"]},{"id":"Orienta","text":"Orienta","variants":["regular"]},{"id":"Arizonia","text":"Arizonia","variants":["regular"]},{"id":"IM Fell English","text":"IM Fell English","variants":["regular","italic"]},{"id":"Imprima","text":"Imprima","variants":["regular"]},{"id":"Crafty Girls","text":"Crafty Girls","variants":["regular"]},{"id":"Buenard","text":"Buenard","variants":["regular","700"]},{"id":"Creepster","text":"Creepster","variants":["regular"]},{"id":"Belgrano","text":"Belgrano","variants":["regular"]},{"id":"Eczar","text":"Eczar","variants":["regular","500","600","700","800"]},{"id":"Tienne","text":"Tienne","variants":["regular","700","900"]},{"id":"Baloo Bhaina","text":"Baloo Bhaina","variants":["regular"]},{"id":"Fondamento","text":"Fondamento","variants":["regular","italic"]},{"id":"Cherry Swash","text":"Cherry Swash","variants":["regular","700"]},{"id":"Saira","text":"Saira","variants":["100","200","300","regular","500","600","700","800","900"]},{"id":"IM Fell DW Pica","text":"IM Fell DW Pica","variants":["regular","italic"]},{"id":"Aladin","text":"Aladin","variants":["regular"]},{"id":"Oleo Script Swash Caps","text":"Oleo Script Swash Caps","variants":["regular","700"]},{"id":"Averia Serif Libre","text":"Averia Serif Libre","variants":["300","300italic","regular","italic","700","700italic"]},{"id":"Just Me Again Down Here","text":"Just Me Again Down Here","variants":["regular"]},{"id":"Amethysta","text":"Amethysta","variants":["regular"]},{"id":"Sofia","text":"Sofia","variants":["regular"]},{"id":"Port Lligat Slab","text":"Port Lligat Slab","variants":["regular"]},{"id":"Cedarville Cursive","text":"Cedarville Cursive","variants":["regular"]},{"id":"Oxygen Mono","text":"Oxygen Mono","variants":["regular"]},{"id":"Expletus Sans","text":"Expletus Sans","variants":["regular","italic","500","500italic","600","600italic","700","700italic"]},{"id":"Carrois Gothic SC","text":"Carrois Gothic SC","variants":["regular"]},{"id":"Over the Rainbow","text":"Over the Rainbow","variants":["regular"]},{"id":"Clicker Script","text":"Clicker Script","variants":["regular"]},{"id":"Denk One","text":"Denk One","variants":["regular"]},{"id":"Corben","text":"Corben","variants":["regular","700"]},{"id":"UnifrakturMaguntia","text":"UnifrakturMaguntia","variants":["regular"]},{"id":"Secular One","text":"Secular One","variants":["regular"]},{"id":"Headland One","text":"Headland One","variants":["regular"]},{"id":"Mouse Memoirs","text":"Mouse Memoirs","variants":["regular"]},{"id":"Sniglet","text":"Sniglet","variants":["regular","800"]},{"id":"Dawning of a New Day","text":"Dawning of a New Day","variants":["regular"]},{"id":"Mukta Vaani","text":"Mukta Vaani","variants":["200","300","regular","500","600","700","800"]},{"id":"Barlow Condensed","text":"Barlow Condensed","variants":["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"]},{"id":"Iceland","text":"Iceland","variants":["regular"]},{"id":"Delius Swash Caps","text":"Delius Swash Caps","variants":["regular"]},{"id":"Seaweed Script","text":"Seaweed Script","variants":["regular"]},{"id":"Chau Philomene One","text":"Chau Philomene One","variants":["regular","italic"]},{"id":"Holtwood One SC","text":"Holtwood One SC","variants":["regular"]},{"id":"Metamorphous","text":"Metamorphous","variants":["regular"]},{"id":"Stardos Stencil","text":"Stardos Stencil","variants":["regular","700"]},{"id":"Gurajada","text":"Gurajada","variants":["regular"]},{"id":"Stalemate","text":"Stalemate","variants":["regular"]},{"id":"Meddon","text":"Meddon","variants":["regular"]},{"id":"Podkova","text":"Podkova","variants":["regular","500","600","700","800"]},{"id":"Skranji","text":"Skranji","variants":["regular","700"]},{"id":"Life Savers","text":"Life Savers","variants":["regular","700"]},{"id":"IM Fell English SC","text":"IM Fell English SC","variants":["regular"]},{"id":"Euphoria Script","text":"Euphoria Script","variants":["regular"]},{"id":"Salsa","text":"Salsa","variants":["regular"]},{"id":"Unkempt","text":"Unkempt","variants":["regular","700"]},{"id":"Bungee","text":"Bungee","variants":["regular"]},{"id":"Maitree","text":"Maitree","variants":["200","300","regular","500","600","700"]},{"id":"McLaren","text":"McLaren","variants":["regular"]},{"id":"Spectral","text":"Spectral","variants":["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic"]},{"id":"Bentham","text":"Bentham","variants":["regular"]},{"id":"Aguafina Script","text":"Aguafina Script","variants":["regular"]},{"id":"Engagement","text":"Engagement","variants":["regular"]},{"id":"Raleway Dots","text":"Raleway Dots","variants":["regular"]},{"id":"Vesper Libre","text":"Vesper Libre","variants":["regular","500","700","900"]},{"id":"Shojumaru","text":"Shojumaru","variants":["regular"]},{"id":"Geo","text":"Geo","variants":["regular","italic"]},{"id":"Italiana","text":"Italiana","variants":["regular"]},{"id":"Kotta One","text":"Kotta One","variants":["regular"]},{"id":"Simonetta","text":"Simonetta","variants":["regular","italic","900","900italic"]},{"id":"Suez One","text":"Suez One","variants":["regular"]},{"id":"Encode Sans Expanded","text":"Encode Sans Expanded","variants":["100","200","300","regular","500","600","700","800","900"]},{"id":"Nova Slim","text":"Nova Slim","variants":["regular"]},{"id":"Shanti","text":"Shanti","variants":["regular"]},{"id":"Cherry Cream Soda","text":"Cherry Cream Soda","variants":["regular"]},{"id":"Nova Square","text":"Nova Square","variants":["regular"]},{"id":"Averia Sans Libre","text":"Averia Sans Libre","variants":["300","300italic","regular","italic","700","700italic"]},{"id":"Rye","text":"Rye","variants":["regular"]},{"id":"Ledger","text":"Ledger","variants":["regular"]},{"id":"Ranga","text":"Ranga","variants":["regular","700"]},{"id":"Medula One","text":"Medula One","variants":["regular"]},{"id":"Englebert","text":"Englebert","variants":["regular"]},{"id":"Suranna","text":"Suranna","variants":["regular"]},{"id":"Sriracha","text":"Sriracha","variants":["regular"]},{"id":"Mountains of Christmas","text":"Mountains of Christmas","variants":["regular","700"]},{"id":"Amiko","text":"Amiko","variants":["regular","600","700"]},{"id":"David Libre","text":"David Libre","variants":["regular","500","700"]},{"id":"Slackey","text":"Slackey","variants":["regular"]},{"id":"Cambo","text":"Cambo","variants":["regular"]},{"id":"Nova Mono","text":"Nova Mono","variants":["regular"]},{"id":"Bubbler One","text":"Bubbler One","variants":["regular"]},{"id":"Finger Paint","text":"Finger Paint","variants":["regular"]},{"id":"Codystar","text":"Codystar","variants":["300","regular"]},{"id":"Sail","text":"Sail","variants":["regular"]},{"id":"Vampiro One","text":"Vampiro One","variants":["regular"]},{"id":"Kadwa","text":"Kadwa","variants":["regular","700"]},{"id":"Germania One","text":"Germania One","variants":["regular"]},{"id":"Bungee Shade","text":"Bungee Shade","variants":["regular"]},{"id":"Quintessential","text":"Quintessential","variants":["regular"]},{"id":"Kite One","text":"Kite One","variants":["regular"]},{"id":"Mallanna","text":"Mallanna","variants":["regular"]},{"id":"Ramabhadra","text":"Ramabhadra","variants":["regular"]},{"id":"Montserrat Subrayada","text":"Montserrat Subrayada","variants":["regular","700"]},{"id":"Sansita","text":"Sansita","variants":["regular","italic","700","700italic","800","800italic","900","900italic"]},{"id":"Dynalight","text":"Dynalight","variants":["regular"]},{"id":"Poller One","text":"Poller One","variants":["regular"]},{"id":"Sancreek","text":"Sancreek","variants":["regular"]},{"id":"Harmattan","text":"Harmattan","variants":["regular"]},{"id":"League Script","text":"League Script","variants":["regular"]},{"id":"Macondo","text":"Macondo","variants":["regular"]},{"id":"Amarante","text":"Amarante","variants":["regular"]},{"id":"Ruslan Display","text":"Ruslan Display","variants":["regular"]},{"id":"Averia Libre","text":"Averia Libre","variants":["300","300italic","regular","italic","700","700italic"]},{"id":"Maiden Orange","text":"Maiden Orange","variants":["regular"]},{"id":"Numans","text":"Numans","variants":["regular"]},{"id":"Londrina Outline","text":"Londrina Outline","variants":["regular"]},{"id":"Faster One","text":"Faster One","variants":["regular"]},{"id":"Donegal One","text":"Donegal One","variants":["regular"]},{"id":"Share Tech","text":"Share Tech","variants":["regular"]},{"id":"Pangolin","text":"Pangolin","variants":["regular"]},{"id":"Mystery Quest","text":"Mystery Quest","variants":["regular"]},{"id":"Mate SC","text":"Mate SC","variants":["regular"]},{"id":"Condiment","text":"Condiment","variants":["regular"]},{"id":"Mandali","text":"Mandali","variants":["regular"]},{"id":"Milonga","text":"Milonga","variants":["regular"]},{"id":"Tulpen One","text":"Tulpen One","variants":["regular"]},{"id":"Fjord One","text":"Fjord One","variants":["regular"]},{"id":"Aref Ruqaa","text":"Aref Ruqaa","variants":["regular","700"]},{"id":"Pirata One","text":"Pirata One","variants":["regular"]},{"id":"Khmer","text":"Khmer","variants":["regular"]},{"id":"Pattaya","text":"Pattaya","variants":["regular"]},{"id":"Baloo Tamma","text":"Baloo Tamma","variants":["regular"]},{"id":"Flamenco","text":"Flamenco","variants":["300","regular"]},{"id":"Habibi","text":"Habibi","variants":["regular"]},{"id":"Wallpoet","text":"Wallpoet","variants":["regular"]},{"id":"Cantora One","text":"Cantora One","variants":["regular"]},{"id":"Chonburi","text":"Chonburi","variants":["regular"]},{"id":"Alike Angular","text":"Alike Angular","variants":["regular"]},{"id":"Lemonada","text":"Lemonada","variants":["300","regular","600","700"]},{"id":"Coda Caption","text":"Coda Caption","variants":["800"]},{"id":"Cormorant SC","text":"Cormorant SC","variants":["300","regular","500","600","700"]},{"id":"Proza Libre","text":"Proza Libre","variants":["regular","italic","500","500italic","600","600italic","700","700italic","800","800italic"]},{"id":"Esteban","text":"Esteban","variants":["regular"]},{"id":"Dorsa","text":"Dorsa","variants":["regular"]},{"id":"Krona One","text":"Krona One","variants":["regular"]},{"id":"Buda","text":"Buda","variants":["300"]},{"id":"Miniver","text":"Miniver","variants":["regular"]},{"id":"Rosarivo","text":"Rosarivo","variants":["regular","italic"]},{"id":"Vibur","text":"Vibur","variants":["regular"]},{"id":"Port Lligat Sans","text":"Port Lligat Sans","variants":["regular"]},{"id":"Rationale","text":"Rationale","variants":["regular"]},{"id":"Sarpanch","text":"Sarpanch","variants":["regular","500","600","700","800","900"]},{"id":"IM Fell French Canon","text":"IM Fell French Canon","variants":["regular","italic"]},{"id":"Rubik Mono One","text":"Rubik Mono One","variants":["regular"]},{"id":"Saira Condensed","text":"Saira Condensed","variants":["100","200","300","regular","500","600","700","800","900"]},{"id":"Trade Winds","text":"Trade Winds","variants":["regular"]},{"id":"Antic Didone","text":"Antic Didone","variants":["regular"]},{"id":"Rhodium Libre","text":"Rhodium Libre","variants":["regular"]},{"id":"Mirza","text":"Mirza","variants":["regular","500","600","700"]},{"id":"Swanky and Moo Moo","text":"Swanky and Moo Moo","variants":["regular"]},{"id":"Stint Ultra Expanded","text":"Stint Ultra Expanded","variants":["regular"]},{"id":"Fresca","text":"Fresca","variants":["regular"]},{"id":"Almendra","text":"Almendra","variants":["regular","italic","700","700italic"]},{"id":"Stoke","text":"Stoke","variants":["300","regular"]},{"id":"Baloo Thambi","text":"Baloo Thambi","variants":["regular"]},{"id":"Ruluko","text":"Ruluko","variants":["regular"]},{"id":"Jim Nightshade","text":"Jim Nightshade","variants":["regular"]},{"id":"Delius Unicase","text":"Delius Unicase","variants":["regular","700"]},{"id":"Asul","text":"Asul","variants":["regular","700"]},{"id":"Dekko","text":"Dekko","variants":["regular"]},{"id":"Encode Sans","text":"Encode Sans","variants":["100","200","300","regular","500","600","700","800","900"]},{"id":"Wendy One","text":"Wendy One","variants":["regular"]},{"id":"Bilbo","text":"Bilbo","variants":["regular"]},{"id":"Junge","text":"Junge","variants":["regular"]},{"id":"Elsie","text":"Elsie","variants":["regular","900"]},{"id":"Overlock SC","text":"Overlock SC","variants":["regular"]},{"id":"Mrs Saint Delafield","text":"Mrs Saint Delafield","variants":["regular"]},{"id":"Rum Raisin","text":"Rum Raisin","variants":["regular"]},{"id":"Peralta","text":"Peralta","variants":["regular"]},{"id":"UnifrakturCook","text":"UnifrakturCook","variants":["700"]},{"id":"Ribeye","text":"Ribeye","variants":["regular"]},{"id":"Paprika","text":"Paprika","variants":["regular"]},{"id":"Croissant One","text":"Croissant One","variants":["regular"]},{"id":"Battambang","text":"Battambang","variants":["regular","700"]},{"id":"Cagliostro","text":"Cagliostro","variants":["regular"]},{"id":"Inika","text":"Inika","variants":["regular","700"]},{"id":"Linden Hill","text":"Linden Hill","variants":["regular","italic"]},{"id":"Katibeh","text":"Katibeh","variants":["regular"]},{"id":"Iceberg","text":"Iceberg","variants":["regular"]},{"id":"Text Me One","text":"Text Me One","variants":["regular"]},{"id":"IM Fell DW Pica SC","text":"IM Fell DW Pica SC","variants":["regular"]},{"id":"Meie Script","text":"Meie Script","variants":["regular"]},{"id":"Sarina","text":"Sarina","variants":["regular"]},{"id":"Scope One","text":"Scope One","variants":["regular"]},{"id":"Sonsie One","text":"Sonsie One","variants":["regular"]},{"id":"IM Fell Great Primer SC","text":"IM Fell Great Primer SC","variants":["regular"]},{"id":"Nova Round","text":"Nova Round","variants":["regular"]},{"id":"Stint Ultra Condensed","text":"Stint Ultra Condensed","variants":["regular"]},{"id":"IM Fell Great Primer","text":"IM Fell Great Primer","variants":["regular","italic"]},{"id":"New Rocker","text":"New Rocker","variants":["regular"]},{"id":"Laila","text":"Laila","variants":["300","regular","500","600","700"]},{"id":"Kavoon","text":"Kavoon","variants":["regular"]},{"id":"MedievalSharp","text":"MedievalSharp","variants":["regular"]},{"id":"Glass Antiqua","text":"Glass Antiqua","variants":["regular"]},{"id":"Montaga","text":"Montaga","variants":["regular"]},{"id":"Cormorant Infant","text":"Cormorant Infant","variants":["300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"]},{"id":"Barlow","text":"Barlow","variants":["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"]},{"id":"Offside","text":"Offside","variants":["regular"]},{"id":"IM Fell Double Pica SC","text":"IM Fell Double Pica SC","variants":["regular"]},{"id":"Princess Sofia","text":"Princess Sofia","variants":["regular"]},{"id":"Timmana","text":"Timmana","variants":["regular"]},{"id":"IM Fell French Canon SC","text":"IM Fell French Canon SC","variants":["regular"]},{"id":"Nova Flat","text":"Nova Flat","variants":["regular"]},{"id":"Julee","text":"Julee","variants":["regular"]},{"id":"Fascinate Inline","text":"Fascinate Inline","variants":["regular"]},{"id":"Bigshot One","text":"Bigshot One","variants":["regular"]},{"id":"Emilys Candy","text":"Emilys Candy","variants":["regular"]},{"id":"Arya","text":"Arya","variants":["regular","700"]},{"id":"Henny Penny","text":"Henny Penny","variants":["regular"]},{"id":"Diplomata","text":"Diplomata","variants":["regular"]},{"id":"Monsieur La Doulaise","text":"Monsieur La Doulaise","variants":["regular"]},{"id":"Underdog","text":"Underdog","variants":["regular"]},{"id":"Della Respira","text":"Della Respira","variants":["regular"]},{"id":"Angkor","text":"Angkor","variants":["regular"]},{"id":"Asset","text":"Asset","variants":["regular"]},{"id":"Sunshiney","text":"Sunshiney","variants":["regular"]},{"id":"Redressed","text":"Redressed","variants":["regular"]},{"id":"Ramaraja","text":"Ramaraja","variants":["regular"]},{"id":"Snippet","text":"Snippet","variants":["regular"]},{"id":"Galindo","text":"Galindo","variants":["regular"]},{"id":"Ranchers","text":"Ranchers","variants":["regular"]},{"id":"Ruthie","text":"Ruthie","variants":["regular"]},{"id":"Griffy","text":"Griffy","variants":["regular"]},{"id":"Autour One","text":"Autour One","variants":["regular"]},{"id":"Monofett","text":"Monofett","variants":["regular"]},{"id":"BioRhyme","text":"BioRhyme","variants":["200","300","regular","700","800"]},{"id":"Mogra","text":"Mogra","variants":["regular"]},{"id":"Molle","text":"Molle","variants":["italic"]},{"id":"Baloo Chettan","text":"Baloo Chettan","variants":["regular"]},{"id":"Sahitya","text":"Sahitya","variants":["regular","700"]},{"id":"Bellefair","text":"Bellefair","variants":["regular"]},{"id":"Lovers Quarrel","text":"Lovers Quarrel","variants":["regular"]},{"id":"Mukta","text":"Mukta","variants":["200","300","regular","500","600","700","800"]},{"id":"Trykker","text":"Trykker","variants":["regular"]},{"id":"Petrona","text":"Petrona","variants":["regular"]},{"id":"Pavanam","text":"Pavanam","variants":["regular"]},{"id":"Amita","text":"Amita","variants":["regular","700"]},{"id":"Dr Sugiyama","text":"Dr Sugiyama","variants":["regular"]},{"id":"Joti One","text":"Joti One","variants":["regular"]},{"id":"Eagle Lake","text":"Eagle Lake","variants":["regular"]},{"id":"Akronim","text":"Akronim","variants":["regular"]},{"id":"Spicy Rice","text":"Spicy Rice","variants":["regular"]},{"id":"Averia Gruesa Libre","text":"Averia Gruesa Libre","variants":["regular"]},{"id":"Wellfleet","text":"Wellfleet","variants":["regular"]},{"id":"Purple Purse","text":"Purple Purse","variants":["regular"]},{"id":"Baloo Bhaijaan","text":"Baloo Bhaijaan","variants":["regular"]},{"id":"Revalia","text":"Revalia","variants":["regular"]},{"id":"Snowburst One","text":"Snowburst One","variants":["regular"]},{"id":"Rakkas","text":"Rakkas","variants":["regular"]},{"id":"Miltonian Tattoo","text":"Miltonian Tattoo","variants":["regular"]},{"id":"Modak","text":"Modak","variants":["regular"]},{"id":"Plaster","text":"Plaster","variants":["regular"]},{"id":"Irish Grover","text":"Irish Grover","variants":["regular"]},{"id":"Oldenburg","text":"Oldenburg","variants":["regular"]},{"id":"Ewert","text":"Ewert","variants":["regular"]},{"id":"Astloch","text":"Astloch","variants":["regular","700"]},{"id":"Caesar Dressing","text":"Caesar Dressing","variants":["regular"]},{"id":"Smythe","text":"Smythe","variants":["regular"]},{"id":"Encode Sans Condensed","text":"Encode Sans Condensed","variants":["100","200","300","regular","500","600","700","800","900"]},{"id":"Chango","text":"Chango","variants":["regular"]},{"id":"Keania One","text":"Keania One","variants":["regular"]},{"id":"Content","text":"Content","variants":["regular","700"]},{"id":"Margarine","text":"Margarine","variants":["regular"]},{"id":"Inknut Antiqua","text":"Inknut Antiqua","variants":["300","regular","500","600","700","800","900"]},{"id":"Lancelot","text":"Lancelot","variants":["regular"]},{"id":"Modern Antiqua","text":"Modern Antiqua","variants":["regular"]},{"id":"Farsan","text":"Farsan","variants":["regular"]},{"id":"Jacques Francois","text":"Jacques Francois","variants":["regular"]},{"id":"Londrina Shadow","text":"Londrina Shadow","variants":["regular"]},{"id":"Uncial Antiqua","text":"Uncial Antiqua","variants":["regular"]},{"id":"Kenia","text":"Kenia","variants":["regular"]},{"id":"Stalinist One","text":"Stalinist One","variants":["regular"]},{"id":"Jolly Lodger","text":"Jolly Lodger","variants":["regular"]},{"id":"Odor Mean Chey","text":"Odor Mean Chey","variants":["regular"]},{"id":"Goblin One","text":"Goblin One","variants":["regular"]},{"id":"Galdeano","text":"Galdeano","variants":["regular"]},{"id":"Metal Mania","text":"Metal Mania","variants":["regular"]},{"id":"Almendra SC","text":"Almendra SC","variants":["regular"]},{"id":"Sura","text":"Sura","variants":["regular","700"]},{"id":"Miltonian","text":"Miltonian","variants":["regular"]},{"id":"Lakki Reddy","text":"Lakki Reddy","variants":["regular"]},{"id":"Original Surfer","text":"Original Surfer","variants":["regular"]},{"id":"Ribeye Marrow","text":"Ribeye Marrow","variants":["regular"]},{"id":"Tillana","text":"Tillana","variants":["regular","500","600","700","800"]},{"id":"Marko One","text":"Marko One","variants":["regular"]},{"id":"Fascinate","text":"Fascinate","variants":["regular"]},{"id":"Atomic Age","text":"Atomic Age","variants":["regular"]},{"id":"Seymour One","text":"Seymour One","variants":["regular"]},{"id":"Cormorant Upright","text":"Cormorant Upright","variants":["300","regular","500","600","700"]},{"id":"Yatra One","text":"Yatra One","variants":["regular"]},{"id":"Romanesco","text":"Romanesco","variants":["regular"]},{"id":"Nova Oval","text":"Nova Oval","variants":["regular"]},{"id":"Elsie Swash Caps","text":"Elsie Swash Caps","variants":["regular","900"]},{"id":"Passero One","text":"Passero One","variants":["regular"]},{"id":"Diplomata SC","text":"Diplomata SC","variants":["regular"]},{"id":"Piedra","text":"Piedra","variants":["regular"]},{"id":"Baloo Bhai","text":"Baloo Bhai","variants":["regular"]},{"id":"Warnes","text":"Warnes","variants":["regular"]},{"id":"Koulen","text":"Koulen","variants":["regular"]},{"id":"Smokum","text":"Smokum","variants":["regular"]},{"id":"Jomhuria","text":"Jomhuria","variants":["regular"]},{"id":"Gorditas","text":"Gorditas","variants":["regular","700"]},{"id":"Nokora","text":"Nokora","variants":["regular","700"]},{"id":"Jacques Francois Shadow","text":"Jacques Francois Shadow","variants":["regular"]},{"id":"GFS Neohellenic","text":"GFS Neohellenic","variants":["regular","italic","700","700italic"]},{"id":"Ravi Prakash","text":"Ravi Prakash","variants":["regular"]},{"id":"Atma","text":"Atma","variants":["300","regular","500","600","700"]},{"id":"Arbutus","text":"Arbutus","variants":["regular"]},{"id":"Galada","text":"Galada","variants":["regular"]},{"id":"Encode Sans Semi Condensed","text":"Encode Sans Semi Condensed","variants":["100","200","300","regular","500","600","700","800","900"]},{"id":"Freehand","text":"Freehand","variants":["regular"]},{"id":"Almendra Display","text":"Almendra Display","variants":["regular"]},{"id":"Sirin Stencil","text":"Sirin Stencil","variants":["regular"]},{"id":"Chicle","text":"Chicle","variants":["regular"]},{"id":"Mrs Sheppards","text":"Mrs Sheppards","variants":["regular"]},{"id":"Bonbon","text":"Bonbon","variants":["regular"]},{"id":"Geostar Fill","text":"Geostar Fill","variants":["regular"]},{"id":"Bayon","text":"Bayon","variants":["regular"]},{"id":"Nova Cut","text":"Nova Cut","variants":["regular"]},{"id":"Felipa","text":"Felipa","variants":["regular"]},{"id":"Barrio","text":"Barrio","variants":["regular"]},{"id":"Asar","text":"Asar","variants":["regular"]},{"id":"Padauk","text":"Padauk","variants":["regular","700"]},{"id":"Sedgwick Ave","text":"Sedgwick Ave","variants":["regular"]},{"id":"Trochut","text":"Trochut","variants":["regular","italic","700"]},{"id":"Coiny","text":"Coiny","variants":["regular"]},{"id":"Moul","text":"Moul","variants":["regular"]},{"id":"Miss Fajardose","text":"Miss Fajardose","variants":["regular"]},{"id":"Ruge Boogie","text":"Ruge Boogie","variants":["regular"]},{"id":"Flavors","text":"Flavors","variants":["regular"]},{"id":"Devonshire","text":"Devonshire","variants":["regular"]},{"id":"Bokor","text":"Bokor","variants":["regular"]},{"id":"Nova Script","text":"Nova Script","variants":["regular"]},{"id":"Sree Krushnadevaraya","text":"Sree Krushnadevaraya","variants":["regular"]},{"id":"Manuale","text":"Manuale","variants":["regular","italic","500","500italic","600","600italic","700","700italic"]},{"id":"Baloo Da","text":"Baloo Da","variants":["regular"]},{"id":"Butcherman","text":"Butcherman","variants":["regular"]},{"id":"Metal","text":"Metal","variants":["regular"]},{"id":"Suwannaphum","text":"Suwannaphum","variants":["regular"]},{"id":"Londrina Sketch","text":"Londrina Sketch","variants":["regular"]},{"id":"Faustina","text":"Faustina","variants":["regular","italic","500","500italic","600","600italic","700","700italic"]},{"id":"Overpass Mono","text":"Overpass Mono","variants":["300","regular","600","700"]},{"id":"Bigelow Rules","text":"Bigelow Rules","variants":["regular"]},{"id":"Eater","text":"Eater","variants":["regular"]},{"id":"Butterfly Kids","text":"Butterfly Kids","variants":["regular"]},{"id":"Risque","text":"Risque","variants":["regular"]},{"id":"Macondo Swash Caps","text":"Macondo Swash Caps","variants":["regular"]},{"id":"Sevillana","text":"Sevillana","variants":["regular"]},{"id":"Dangrek","text":"Dangrek","variants":["regular"]},{"id":"Combo","text":"Combo","variants":["regular"]},{"id":"Fruktur","text":"Fruktur","variants":["regular"]},{"id":"Aubrey","text":"Aubrey","variants":["regular"]},{"id":"Sofadi One","text":"Sofadi One","variants":["regular"]},{"id":"Siemreap","text":"Siemreap","variants":["regular"]},{"id":"Cormorant Unicase","text":"Cormorant Unicase","variants":["300","regular","500","600","700"]},{"id":"Chela One","text":"Chela One","variants":["regular"]},{"id":"Taprom","text":"Taprom","variants":["regular"]},{"id":"Geostar","text":"Geostar","variants":["regular"]},{"id":"Emblema One","text":"Emblema One","variants":["regular"]},{"id":"Zilla Slab Highlight","text":"Zilla Slab Highlight","variants":["regular","700"]},{"id":"Federant","text":"Federant","variants":["regular"]},{"id":"Supermercado One","text":"Supermercado One","variants":["regular"]},{"id":"Erica One","text":"Erica One","variants":["regular"]},{"id":"Mukta Malar","text":"Mukta Malar","variants":["200","300","regular","500","600","700","800"]},{"id":"Hanalei","text":"Hanalei","variants":["regular"]},{"id":"Kumar One","text":"Kumar One","variants":["regular"]},{"id":"Bahiana","text":"Bahiana","variants":["regular"]},{"id":"Meera Inimai","text":"Meera Inimai","variants":["regular"]},{"id":"Chathura","text":"Chathura","variants":["100","300","regular","700","800"]},{"id":"Mr Bedfort","text":"Mr Bedfort","variants":["regular"]},{"id":"Hanalei Fill","text":"Hanalei Fill","variants":["regular"]},{"id":"Kavivanar","text":"Kavivanar","variants":["regular"]},{"id":"Libre Barcode 39 Text","text":"Libre Barcode 39 Text","variants":["regular"]},{"id":"Tenali Ramakrishna","text":"Tenali Ramakrishna","variants":["regular"]},{"id":"Preahvihear","text":"Preahvihear","variants":["regular"]},{"id":"Kantumruy","text":"Kantumruy","variants":["300","regular","700"]},{"id":"Baloo Tammudu","text":"Baloo Tammudu","variants":["regular"]},{"id":"Fasthand","text":"Fasthand","variants":["regular"]},{"id":"Peddana","text":"Peddana","variants":["regular"]},{"id":"Moulpali","text":"Moulpali","variants":["regular"]},{"id":"Chenla","text":"Chenla","variants":["regular"]},{"id":"Spectral SC","text":"Spectral SC","variants":["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic"]},{"id":"Sedgwick Ave Display","text":"Sedgwick Ave Display","variants":["regular"]},{"id":"Bungee Hairline","text":"Bungee Hairline","variants":["regular"]},{"id":"Gidugu","text":"Gidugu","variants":["regular"]},{"id":"Barlow Semi Condensed","text":"Barlow Semi Condensed","variants":["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"]},{"id":"Bungee Outline","text":"Bungee Outline","variants":["regular"]},{"id":"Unlock","text":"Unlock","variants":["regular"]},{"id":"Mukta Mahee","text":"Mukta Mahee","variants":["200","300","regular","500","600","700","800"]},{"id":"Dhurjati","text":"Dhurjati","variants":["regular"]},{"id":"Kdam Thmor","text":"Kdam Thmor","variants":["regular"]},{"id":"Vollkorn SC","text":"Vollkorn SC","variants":["regular","600","700","900"]},{"id":"Suravaram","text":"Suravaram","variants":["regular"]},{"id":"Kumar One Outline","text":"Kumar One Outline","variants":["regular"]},{"id":"BioRhyme Expanded","text":"BioRhyme Expanded","variants":["200","300","regular","700","800"]},{"id":"Encode Sans Semi Expanded","text":"Encode Sans Semi Expanded","variants":["100","200","300","regular","500","600","700","800","900"]},{"id":"Libre Barcode 128 Text","text":"Libre Barcode 128 Text","variants":["regular"]},{"id":"Libre Barcode 128","text":"Libre Barcode 128","variants":["regular"]},{"id":"Libre Barcode 39 Extended Text","text":"Libre Barcode 39 Extended Text","variants":["regular"]},{"id":"Libre Barcode 39 Extended","text":"Libre Barcode 39 Extended","variants":["regular"]},{"id":"Libre Barcode 39","text":"Libre Barcode 39","variants":["regular"]}]';
4
+
5
+ ?>
js/fastsearch.min.js DELETED
@@ -1 +0,0 @@
1
- !function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof module&&module.exports?module.exports=a(require("jquery")):a(jQuery)}(function(a){function b(a,b){this.init.apply(this,arguments)}var c=a(window.document),d=0,e=/\w\b/g,f={13:"enter",27:"escape",40:"downArrow",38:"upArrow"};return a.extend(b.prototype,{init:function(c,e){e=this.options=a.extend(!0,{},b.defaults,e),this.$input=a(c),this.$el=e.wrapSelector instanceof a?e.wrapSelector:this.$input.closest(e.wrapSelector),b.pickTo(e,this.$el.data(),["url","onItemSelect","noResultsText","inputIdName","apiInputName"]),e.url=e.url||this.$el.attr("action"),this.ens=".fastsearch"+ ++d,this.itemSelector=b.selectorFromClass(e.itemClass),this.focusedItemSelector=b.selectorFromClass(e.focusedItemClass),this.events()},namespaceEvents:function(a){var b=this.ens;return a.replace(e,function(a){return a+b})},events:function(){var b=this,c=this.options;this.$input.on(this.namespaceEvents("keyup focus click"),function(a){"enter"!==f[a.keyCode]&&b.handleTyping()}).on(this.namespaceEvents("keydown"),function(a){if("enter"===f[a.keyCode]&&c.preventSubmit&&a.preventDefault(),b.hasResults&&b.resultsOpened)switch(f[a.keyCode]){case"downArrow":a.preventDefault(),b.navigateItem("down");break;case"upArrow":a.preventDefault(),b.navigateItem("up");break;case"enter":b.onEnter(a)}}),this.$el.on(this.namespaceEvents("click"),this.itemSelector,function(c){c.preventDefault(),b.handleItemSelect(a(this))}),c.mouseEvents&&this.$el.on(this.namespaceEvents("mouseleave"),this.itemSelector,function(b){a(this).removeClass(c.focusedItemClass)}).on(this.namespaceEvents("mouseenter"),this.itemSelector,function(d){b.$resultItems.removeClass(c.focusedItemClass),a(this).addClass(c.focusedItemClass)})},handleTyping:function(){var b=a.trim(this.$input.val()),c=this;b.length<this.options.minQueryLength?this.hideResults():b===this.query?this.showResults():(clearTimeout(this.keyupTimeout),this.keyupTimeout=setTimeout(function(){c.$el.addClass(c.options.loadingClass),c.query=b,c.getResults(function(a){c.showResults(c.storeResponse(a).generateResults(a))})},this.options.typeTimeout))},getResults:function(b){var c=this,d=this.options,e=this.$el.find("input, textarea, select").serializeArray();d.apiInputName&&e.push({name:d.apiInputName,value:this.$input.val()}),a.get(d.url,e,function(a){b(d.parseResponse?d.parseResponse.call(c,a,c):a)})},storeResponse:function(a){return this.responseData=a,this.hasResults=0!==a.length,this},generateResults:function(b){var c=a("<div>"),d=this.options;return d.template?a(d.template(b,this)):(0===b.length?c.html('<p class="'+d.noResultsClass+'">'+("function"==typeof d.noResultsText?d.noResultsText.call(this):d.noResultsText)+"</p>"):"html"===this.options.responseType?c.html(b):this["generate"+(b[0][d.responseFormat.groupItems]?"GroupedResults":"SimpleResults")](b,c),c.children())},generateSimpleResults:function(b,c){var d=this;this.itemModels=b,a.each(b,function(a,b){c.append(d.generateItem(b))})},generateGroupedResults:function(b,c){var d=this,e=this.options,f=e.responseFormat;this.itemModels=[],a.each(b,function(b,g){var h=a('<div class="'+e.groupClass+'">').appendTo(c);g[f.groupCaption]&&h.append('<h3 class="'+e.groupTitleClass+'">'+g[f.groupCaption]+"</h3>"),a.each(g.items,function(a,b){d.itemModels.push(b),h.append(d.generateItem(b))}),e.onGroupCreate&&e.onGroupCreate.call(d,h,g,d)})},generateItem:function(b){var c=this.options,d=c.responseFormat,e=b[d.url],f=b[d.html]||b[d.label],g=a("<"+(e?"a":"span")+">").html(f).addClass(c.itemClass);return e&&g.attr("href",e),c.onItemCreate&&c.onItemCreate.call(this,g,b,this),g},showResults:function(b){!b&&this.resultsOpened||(this.$el.removeClass(this.options.loadingClass).addClass(this.options.resultsOpenedClass),this.options.flipOnBottom&&this.checkDropdownPosition(),this.$resultsCont=this.$resultsCont||a("<div>").addClass(this.options.resultsContClass).appendTo(this.$el),b&&(this.$resultsCont.html(b),this.$resultItems=this.$resultsCont.find(this.itemSelector),this.options.onResultsCreate&&this.options.onResultsCreate.call(this,this.$resultsCont,this.responseData,this)),this.resultsOpened||(this.documentCancelEvents("on"),this.$input.trigger("openingResults")),this.options.focusFirstItem&&this.$resultItems&&this.$resultItems.length&&this.navigateItem("down"),this.resultsOpened=!0)},checkDropdownPosition:function(){var a=this.options.flipOnBottom,b="boolean"==typeof a&&a?400:a,d=this.$input.offset().top+b>c.height();this.$el.toggleClass(this.options.resultsFlippedClass,d)},documentCancelEvents:function(b,d){var e=this;return"off"===b&&this.closeEventsSetuped?(c.off(this.ens),void(this.closeEventsSetuped=!1)):void("on"!==b||this.closeEventsSetuped||(c.on(this.namespaceEvents("click keyup"),function(b){("escape"===f[b.keyCode]||!a(b.target).is(e.$el)&&!a.contains(e.$el.get(0),b.target)&&a.contains(document.documentElement,b.target))&&(d?d.call(e):e.hideResults())}),this.closeEventsSetuped=!0))},navigateItem:function(a){var b=this.$resultItems.filter(this.focusedItemSelector),c=this.$resultItems.length-1;if(0===b.length)return void this.$resultItems.eq("up"===a?c:0).addClass(this.options.focusedItemClass);var d=this.$resultItems.index(b),e="up"===a?d-1:d+1;e>c&&(e=0),e<0&&(e=c),b.removeClass(this.options.focusedItemClass),this.$resultItems.eq(e).addClass(this.options.focusedItemClass)},navigateDown:function(){this.navigateItem("down")},navigateUp:function(){this.navigateItem("up")},onEnter:function(a){var b=this.$resultItems.filter(this.focusedItemSelector);b.length&&(a.preventDefault(),this.handleItemSelect(b))},handleItemSelect:function(a){var b=this.options.onItemSelect,c=this.itemModels.length?this.itemModels[this.$resultItems.index(a)]:{};this.$input.trigger("itemSelected"),"fillInput"===b?this.fillInput(c):"follow"===b?window.location.href=a.attr("href"):"function"==typeof b&&b.call(this,a,c,this)},fillInput:function(b){var c=this.options,d=c.responseFormat;if(this.query=b[d.label],this.$input.val(b[d.label]).trigger("change"),c.fillInputId&&b.id){if(!this.$inputId){var e=c.inputIdName||this.$input.attr("name")+"_id";this.$inputId=this.$el.find('input[name="'+e+'"]'),this.$inputId.length||(this.$inputId=a('<input type="hidden" name="'+e+'" />').appendTo(this.$el))}this.$inputId.val(b.id).trigger("change")}this.hideResults()},hideResults:function(){return this.resultsOpened&&(this.resultsOpened=!1,this.$el.removeClass(this.options.resultsOpenedClass),this.$input.trigger("closingResults"),this.documentCancelEvents("off")),this},clear:function(){return this.hideResults(),this.$input.val("").trigger("change"),this},destroy:function(){c.off(this.ens),this.$input.off(this.ens),this.$el.off(this.ens).removeClass(this.options.resultsOpenedClass).removeClass(this.options.loadingClass),this.$resultsCont&&(this.$resultsCont.remove(),delete this.$resultsCont),delete this.$el.data().fastsearch}}),a.extend(b,{pickTo:function(b,c,d){return a.each(d,function(a,d){b[d]=c&&c[d]||b[d]}),b},selectorFromClass:function(a){return"."+a.replace(/\s/g,".")}}),b.defaults={wrapSelector:"form",url:null,responseType:"JSON",preventSubmit:!1,resultsContClass:"fs_results",resultsOpenedClass:"fsr_opened",resultsFlippedClass:"fsr_flipped",groupClass:"fs_group",itemClass:"fs_result_item",groupTitleClass:"fs_group_title",loadingClass:"loading",noResultsClass:"fs_no_results",focusedItemClass:"focused",typeTimeout:140,minQueryLength:2,template:null,mouseEvents:!("ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0),focusFirstItem:!1,flipOnBottom:!1,responseFormat:{url:"url",html:"html",label:"label",groupCaption:"caption",groupItems:"items"},fillInputId:!0,inputIdName:null,apiInputName:null,noResultsText:"No results found",onItemSelect:"follow",parseResponse:null,onResultsCreate:null,onGroupCreate:null,onItemCreate:null},a.fastsearch=b,a.fn.fastsearch=function(c){return this.each(function(){a.data(this,"fastsearch")||a.data(this,"fastsearch",new b(this,c))})},a});
 
js/fastselect.min.js DELETED
@@ -1,773 +0,0 @@
1
- (function(root, factory) {
2
-
3
- if (typeof define === 'function' && define.amd) {
4
- define(['jquery', 'fastsearch'], factory);
5
- } else if (typeof module === 'object' && module.exports) {
6
- module.exports = factory(require('jquery'), require('fastsearch'));
7
- } else {
8
- factory(root.jQuery);
9
- }
10
-
11
- }(this, function($) {
12
-
13
- var $document = $(document),
14
- instanceNum = 0,
15
- Fastsearch = $.fastsearch,
16
- pickTo = Fastsearch.pickTo,
17
- selectorFromClass = Fastsearch.selectorFromClass;
18
-
19
- function Fastselect(inputElement, options) {
20
-
21
- this.init.apply(this, arguments);
22
-
23
- }
24
-
25
- $.extend(Fastselect.prototype, {
26
-
27
- init: function(inputElement, options) {
28
-
29
- this.$input = $(inputElement);
30
-
31
- this.options = pickTo($.extend(true, {}, Fastselect.defaults, options, {
32
- placeholder: this.$input.attr('placeholder')
33
- }), this.$input.data(), [
34
- 'url', 'loadOnce', 'apiParam', 'initialValue', 'userOptionAllowed'
35
- ]);
36
-
37
- this.ens = '.fastselect' + (++instanceNum);
38
- this.hasCustomLoader = this.$input.is('input');
39
- this.isMultiple = !!this.$input.attr('multiple');
40
- this.userOptionAllowed = this.hasCustomLoader && this.isMultiple && this.options.userOptionAllowed;
41
-
42
- this.optionsCollection = new OptionsCollection(pickTo({multipleValues: this.isMultiple}, this.options, [
43
- 'url', 'loadOnce', 'parseData', 'matcher'
44
- ]));
45
-
46
- this.setupDomElements();
47
- this.setupFastsearch();
48
- this.setupEvents();
49
-
50
- },
51
-
52
- setupDomElements: function() {
53
-
54
- this.$el = $('<div>').addClass(this.options.elementClass);
55
-
56
- this[this.isMultiple ? 'setupMultipleElement' : 'setupSingleElement'](function() {
57
-
58
- this.updateDomElements();
59
- this.$controls.appendTo(this.$el);
60
- this.$el.insertAfter(this.$input);
61
- this.$input.detach().appendTo(this.$el);
62
-
63
- });
64
-
65
- },
66
-
67
- setupSingleElement: function(onDone) {
68
-
69
- var initialOptions = this.processInitialOptions(),
70
- toggleBtnText = initialOptions && initialOptions.length ? initialOptions[0].text : this.options.placeholder;
71
-
72
- this.$el.addClass(this.options.singleModeClass);
73
- this.$controls = $('<div>').addClass(this.options.controlsClass);
74
- this.$toggleBtn = $('<div>').addClass(this.options.toggleButtonClass).text(toggleBtnText).appendTo(this.$el);
75
- this.$queryInput = $('<input>').attr('placeholder', this.options.searchPlaceholder).addClass(this.options.queryInputClass).appendTo(this.$controls);
76
-
77
- onDone.call(this);
78
-
79
- },
80
-
81
- setupMultipleElement: function(onDone) {
82
-
83
- var self = this,
84
- options = self.options,
85
- initialOptions = this.processInitialOptions();
86
-
87
- this.$el.addClass(options.multipleModeClass);
88
- this.$controls = $('<div>').addClass(options.controlsClass);
89
- this.$queryInput = $('<input>').addClass(options.queryInputClass).appendTo(this.$controls);
90
-
91
- initialOptions && $.each(initialOptions, function(i, option) {
92
-
93
- self.addChoiceItem(option);
94
-
95
- });
96
-
97
- onDone.call(this);
98
-
99
- },
100
-
101
- updateDomElements: function() {
102
-
103
- this.$el.toggleClass(this.options.noneSelectedClass, !this.optionsCollection.hasSelectedValues());
104
- this.adjustQueryInputLayout();
105
-
106
- },
107
-
108
- processInitialOptions: function() {
109
-
110
- var self = this, options;
111
-
112
- if (this.hasCustomLoader) {
113
-
114
- options = this.options.initialValue;
115
-
116
- $.isPlainObject(options) && (options = [options]);
117
-
118
- } else {
119
-
120
- options = $.map(this.$input.find('option:selected').get(), function(option) {
121
-
122
- var $option = $(option);
123
-
124
- return {
125
- text: $option.text(),
126
- value: $option.attr('value')
127
- };
128
-
129
- });
130
-
131
- }
132
-
133
- options && $.each(options, function(i, option) {
134
- self.optionsCollection.setSelected(option);
135
- });
136
-
137
- return options;
138
-
139
- },
140
-
141
- addChoiceItem: function(optionModel) {
142
-
143
- $(
144
- '<div data-text="' + optionModel.text + '" data-value="' + optionModel.value + '" class="' + this.options.choiceItemClass + '">' +
145
- $('<div>').html(optionModel.text).text() +
146
- '<button class="' + this.options.choiceRemoveClass + '" type="button">×</button>' +
147
- '</div>'
148
- ).insertBefore(this.$queryInput);
149
-
150
- },
151
-
152
- setupFastsearch: function() {
153
-
154
- var self = this,
155
- options = this.options,
156
- fastSearchParams = {};
157
-
158
- pickTo(fastSearchParams, options, [
159
- 'resultsContClass', 'resultsOpenedClass', 'resultsFlippedClass', 'groupClass', 'itemClass', 'focusFirstItem',
160
- 'groupTitleClass', 'loadingClass', 'noResultsClass', 'noResultsText', 'focusedItemClass', 'flipOnBottom'
161
- ]);
162
-
163
- this.fastsearch = new Fastsearch(this.$queryInput.get(0), $.extend(fastSearchParams, {
164
-
165
- wrapSelector: this.isMultiple ? this.$el : this.$controls,
166
-
167
- minQueryLength: 0,
168
- typeTimeout: this.hasCustomLoader ? options.typeTimeout : 0,
169
- preventSubmit: true,
170
- fillInputId: false,
171
-
172
- responseFormat: {
173
- label: 'text',
174
- groupCaption: 'label'
175
- },
176
-
177
- onItemSelect: function($item, model, fastsearch) {
178
-
179
- var maxItems = options.maxItems;
180
-
181
- if (self.isMultiple && maxItems && (self.optionsCollection.getValues().length > (maxItems - 1))) {
182
-
183
- options.onMaxItemsReached && options.onMaxItemsReached(this);
184
-
185
- } else {
186
-
187
- self.setSelectedOption(model);
188
- self.writeToInput();
189
- !self.isMultiple && self.hide();
190
- options.clearQueryOnSelect && fastsearch.clear();
191
-
192
- if (self.userOptionAllowed && model.isUserOption) {
193
- fastsearch.$resultsCont.remove();
194
- delete fastsearch.$resultsCont;
195
- self.hide();
196
- }
197
-
198
- options.onItemSelect && options.onItemSelect.call(self, $item, model, self, fastsearch);
199
-
200
- }
201
-
202
- },
203
-
204
- onItemCreate: function($item, model) {
205
-
206
- model.$item = $item;
207
- model.selected && $item.addClass(options.itemSelectedClass);
208
-
209
- if (self.userOptionAllowed && model.isUserOption) {
210
- $item.text(self.options.userOptionPrefix + $item.text()).addClass(self.options.userOptionClass);
211
- }
212
-
213
- options.onItemCreate && options.onItemCreate.call(self, $item, model, self);
214
-
215
- }
216
-
217
- }));
218
-
219
- this.fastsearch.getResults = function() {
220
-
221
- if (self.userOptionAllowed && self.$queryInput.val().length > 1) {
222
- self.renderOptions();
223
- }
224
-
225
- self.getOptions(function() {
226
- self.renderOptions(true);
227
- });
228
-
229
- };
230
-
231
- },
232
-
233
- getOptions: function(onDone) {
234
-
235
- var options = this.options,
236
- self = this,
237
- params = {};
238
-
239
- if (this.hasCustomLoader) {
240
-
241
- var query = $.trim(this.$queryInput.val());
242
-
243
- if (query && options.apiParam) {
244
- params[options.apiParam] = query;
245
- }
246
-
247
- this.optionsCollection.fetch(params, onDone);
248
-
249
- } else {
250
-
251
- !this.optionsCollection.models && this.optionsCollection.reset(this.gleanSelectData(this.$input));
252
- onDone();
253
-
254
- }
255
-
256
- },
257
-
258
- namespaceEvents: function(events) {
259
-
260
- return Fastsearch.prototype.namespaceEvents.call(this, events);
261
-
262
- },
263
-
264
- setupEvents: function() {
265
-
266
- var self = this,
267
- options = this.options;
268
-
269
- if (this.isMultiple) {
270
-
271
- this.$el.on(this.namespaceEvents('click'), function(e) {
272
-
273
- $(e.target).is(selectorFromClass(options.controlsClass)) && self.$queryInput.focus();
274
-
275
- });
276
-
277
- this.$queryInput.on(this.namespaceEvents('keyup'), function(e) {
278
-
279
- // if (self.$queryInput.val().length === 0 && e.keyCode === 8) {
280
- // console.log('TODO implement delete');
281
- // }
282
-
283
- self.adjustQueryInputLayout();
284
- self.show();
285
-
286
- }).on(this.namespaceEvents('focus'), function() {
287
-
288
- self.show();
289
-
290
- });
291
-
292
- this.$el.on(this.namespaceEvents('click'), selectorFromClass(options.choiceRemoveClass), function(e) {
293
-
294
- var $choice = $(e.currentTarget).closest(selectorFromClass(options.choiceItemClass));
295
-
296
- self.removeSelectedOption({
297
- value: $choice.attr('data-value'),
298
- text: $choice.attr('data-text')
299
- }, $choice);
300
-
301
- });
302
-
303
- } else {
304
-
305
- this.$el.on(this.namespaceEvents('click'), selectorFromClass(options.toggleButtonClass), function() {
306
-
307
- self.$el.hasClass(options.activeClass) ? self.hide() : self.show(true);
308
-
309
- });
310
-
311
- }
312
-
313
- },
314
-
315
- adjustQueryInputLayout: function() {
316
-
317
- if (this.isMultiple && this.$queryInput) {
318
-
319
- var noneSelected = this.$el.hasClass(this.options.noneSelectedClass);
320
-
321
- this.$queryInput.toggleClass(this.options.queryInputExpandedClass, noneSelected);
322
-
323
- if (noneSelected) {
324
-
325
- this.$queryInput.attr({
326
- style: '',
327
- placeholder: this.options.placeholder
328
- });
329
-
330
- } else {
331
-
332
- this.$fakeInput = this.$fakeInput || $('<span>').addClass(this.options.fakeInputClass);
333
- this.$fakeInput.text(this.$queryInput.val().replace(/\s/g, '&nbsp;'));
334
- this.$queryInput.removeAttr('placeholder').css('width', this.$fakeInput.insertAfter(this.$queryInput).width() + 20);
335
- this.$fakeInput.detach();
336
-
337
- }
338
-
339
- }
340
-
341
- },
342
-
343
- show: function(focus) {
344
-
345
- this.$el.addClass(this.options.activeClass);
346
- focus ? this.$queryInput.focus() : this.fastsearch.handleTyping();
347
-
348
- this.documentCancelEvents('on');
349
-
350
- },
351
-
352
- hide: function() {
353
-
354
- this.$el.removeClass(this.options.activeClass);
355
-
356
- this.documentCancelEvents('off');
357
-
358
- },
359
-
360
- documentCancelEvents: function(setup) {
361
-
362
- Fastsearch.prototype.documentCancelEvents.call(this, setup, this.hide);
363
-
364
- },
365
-
366
- setSelectedOption: function(option) {
367
-
368
- if (this.optionsCollection.isSelected(option.value)) {
369
- return;
370
- }
371
-
372
- this.optionsCollection.setSelected(option);
373
-
374
- var selectedModel = this.optionsCollection.findWhere(function(model) {
375
- return model.value === option.value;
376
- });
377
-
378
- if (this.isMultiple) {
379
-
380
- this.$controls && this.addChoiceItem(option);
381
-
382
- } else {
383
-
384
- this.fastsearch && this.fastsearch.$resultItems.removeClass(this.options.itemSelectedClass);
385
- this.$toggleBtn && this.$toggleBtn.text(option.text);
386
-
387
- }
388
-
389
- selectedModel && selectedModel.$item.addClass(this.options.itemSelectedClass);
390
-
391
- this.updateDomElements();
392
-
393
- },
394
-
395
- removeSelectedOption: function(option, $choiceItem) {
396
-
397
- var removedModel = this.optionsCollection.removeSelected(option);
398
-
399
- if (removedModel && removedModel.$item) {
400
-
401
- removedModel.$item.removeClass(this.options.itemSelectedClass);
402
-
403
- }
404
-
405
- if ($choiceItem) {
406
- $choiceItem.remove();
407
- } else {
408
- this.$el.find(selectorFromClass(this.options.choiceItemClass) + '[data-value="' + option.value + '"]').remove();
409
- }
410
-
411
- this.updateDomElements();
412
- this.writeToInput();
413
-
414
- },
415
-
416
- writeToInput: function() {
417
-
418
- var values = this.optionsCollection.getValues(),
419
- delimiter = this.options.valueDelimiter,
420
- formattedValue = this.isMultiple ? (this.hasCustomLoader ? values.join(delimiter) : values) : values[0];
421
-
422
- this.$input.val(formattedValue).trigger('change');
423
-
424
- },
425
-
426
- renderOptions: function(filter) {
427
-
428
- var query = this.$queryInput.val();
429
- var data;
430
-
431
- if (this.optionsCollection.models) {
432
- data = (filter ? this.optionsCollection.filter(query) : this.optionsCollection.models).slice(0);
433
- } else {
434
- data = [];
435
- }
436
-
437
- if (this.userOptionAllowed) {
438
-
439
- var queryInList = this.optionsCollection.models && this.optionsCollection.findWhere(function(model) {
440
- return model.value === query;
441
- });
442
-
443
- query && !queryInList && data.unshift({
444
- text: query,
445
- value: query,
446
- isUserOption: true
447
- });
448
-
449
- }
450
-
451
- this.fastsearch.showResults(this.fastsearch.storeResponse(data).generateResults(data));
452
-
453
- },
454
-
455
- gleanSelectData: function($select) {
456
-
457
- var self = this,
458
- $elements = $select.children();
459
-
460
- if ($elements.eq(0).is('optgroup')) {
461
-
462
- return $.map($elements.get(), function(optgroup) {
463
-
464
- var $optgroup = $(optgroup);
465
-
466
- return {
467
- label: $optgroup.attr('label'),
468
- items: self.gleanOptionsData($optgroup.children())
469
- };
470
-
471
- });
472
-
473
- } else {
474
-
475
- return this.gleanOptionsData($elements);
476
-
477
- }
478
-
479
- },
480
-
481
- gleanOptionsData: function($options) {
482
-
483
- return $.map($options.get(), function(option) {
484
- var $option = $(option);
485
- return {
486
- text: $option.text(),
487
- value: $option.attr('value'),
488
- selected: $option.is(':selected')
489
- };
490
- });
491
-
492
- },
493
-
494
- destroy: function() {
495
-
496
- $document.off(this.ens);
497
- this.fastsearch.destroy();
498
- this.$input.off(this.ens).detach().insertAfter(this.$el);
499
- this.$el.off(this.ens).remove();
500
-
501
- this.$input.data() && delete this.$input.data().fastselect;
502
-
503
- }
504
-
505
- });
506
-
507
- function OptionsCollection(options) {
508
-
509
- this.init(options);
510
-
511
- }
512
-
513
- $.extend(OptionsCollection.prototype, {
514
-
515
- defaults: {
516
- loadOnce: false,
517
- url: null,
518
- parseData: null,
519
- multipleValues: false,
520
- matcher: function(text, query) {
521
-
522
- return text.toLowerCase().indexOf(query.toLowerCase()) > -1;
523
-
524
- }
525
- },
526
-
527
- init: function(options) {
528
-
529
- this.options = $.extend({}, this.defaults, options);
530
- this.selectedValues = {};
531
-
532
- },
533
-
534
- fetch: function(fetchParams, onDone) {
535
-
536
- var self = this,
537
- afterFetch = function() {
538
- self.applySelectedValues(onDone);
539
- };
540
-
541
- if (this.options.loadOnce) {
542
-
543
- this.fetchDeferred = this.fetchDeferred || this.load(fetchParams);
544
- this.fetchDeferred.done(afterFetch);
545
-
546
- } else {
547
- this.load(fetchParams, afterFetch);
548
- }
549
-
550
- },
551
-
552
- reset: function(models) {
553
-
554
- this.models = this.options.parseData ? this.options.parseData(models) : models;
555
- this.applySelectedValues();
556
-
557
- },
558
-
559
- applySelectedValues: function(onDone) {
560
-
561
- this.each(function(option) {
562
-
563
- if (this.options.multipleValues && option.selected) {
564
-
565
- this.selectedValues[option.value] = true;
566
-
567
- } else {
568
-
569
- option.selected = !!this.selectedValues[option.value];
570
-
571
- }
572
-
573
- });
574
-
575
- onDone && onDone.call(this);
576
-
577
- },
578
-
579
- load: function(params, onDone) {
580
-
581
- var self = this,
582
- options = this.options;
583
-
584
- return $.get(options.url, params, function(data) {
585
-
586
- self.models = options.parseData ? options.parseData(data) : data;
587
-
588
- onDone && onDone.call(self);
589
-
590
- });
591
-
592
- },
593
-
594
- setSelected: function(option) {
595
-
596
- if (!this.options.multipleValues) {
597
- this.selectedValues = {};
598
- }
599
-
600
- this.selectedValues[option.value] = true;
601
- this.applySelectedValues();
602
-
603
- },
604
-
605
- removeSelected: function(option) {
606
-
607
- var model = this.findWhere(function(model) {
608
- return option.value === model.value;
609
- });
610
-
611
- model && (model.selected = false);
612
-
613
- delete this.selectedValues[option.value];
614
-
615
- return model;
616
-
617
- },
618
-
619
- isSelected: function(value) {
620
-
621
- return !!this.selectedValues[value];
622
-
623
- },
624
-
625
- hasSelectedValues: function() {
626
-
627
- return this.getValues().length > 0;
628
-
629
- },
630
-
631
- each: function(iterator) {
632
-
633
- var self = this;
634
-
635
- this.models && $.each(this.models, function(i, option) {
636
-
637
- option.items ? $.each(option.items, function(i, nestedOption) {
638
- iterator.call(self, nestedOption);
639
- }) : iterator.call(self, option);
640
-
641
- });
642
-
643
- },
644
-
645
- where: function(predicate) {
646
-
647
- var temp = [];
648
-
649
- this.each(function(option) {
650
- predicate(option) && temp.push(option);
651
- });
652
-
653
- return temp;
654
-
655
- },
656
-
657
- findWhere: function(predicate) {
658
-
659
- var models = this.where(predicate);
660
-
661
- return models.length ? models[0] : undefined;
662
-
663
- },
664
-
665
- filter: function(query) {
666
-
667
- var self = this;
668
-
669
- function checkItem(item) {
670
- return self.options.matcher(item.text, query) ? item : null;
671
- }
672
-
673
- if (!query || query.length === 0) {
674
- return this.models;
675
- }
676
-
677
- return $.map(this.models, function(item) {
678
-
679
- if (item.items) {
680
-
681
- var filteredItems = $.map(item.items, checkItem);
682
-
683
- return filteredItems.length ? {
684
- label: item.label,
685
- items: filteredItems
686
- } : null;
687
-
688
- } else {
689
- return checkItem(item);
690
- }
691
-
692
- });
693
-
694
- },
695
-
696
- getValues: function() {
697
-
698
- return $.map(this.selectedValues, function(prop, key) {
699
- return prop ? key : null;
700
- });
701
-
702
- }
703
-
704
- });
705
-
706
- Fastselect.defaults = {
707
-
708
- elementClass: 'fstElement',
709
- singleModeClass: 'fstSingleMode',
710
- noneSelectedClass: 'fstNoneSelected',
711
- multipleModeClass: 'fstMultipleMode',
712
- queryInputClass: 'fstQueryInput',
713
- queryInputExpandedClass: 'fstQueryInputExpanded',
714
- fakeInputClass: 'fstFakeInput',
715
- controlsClass: 'fstControls',
716
- toggleButtonClass: 'fstToggleBtn',
717
- activeClass: 'fstActive',
718
- itemSelectedClass: 'fstSelected',
719
- choiceItemClass: 'fstChoiceItem',
720
- choiceRemoveClass: 'fstChoiceRemove',
721
- userOptionClass: 'fstUserOption',
722
-
723
- resultsContClass: 'fstResults',
724
- resultsOpenedClass: 'fstResultsOpened',
725
- resultsFlippedClass: 'fstResultsFilpped',
726
- groupClass: 'fstGroup',
727
- itemClass: 'fstResultItem',
728
- groupTitleClass: 'fstGroupTitle',
729
- loadingClass: 'fstLoading',
730
- noResultsClass: 'fstNoResults',
731
- focusedItemClass: 'fstFocused',
732
-
733
- matcher: null,
734
-
735
- url: null,
736
- loadOnce: false,
737
- apiParam: 'query',
738
- initialValue: null,
739
- clearQueryOnSelect: true,
740
- minQueryLength: 1,
741
- focusFirstItem: false,
742
- flipOnBottom: true,
743
- typeTimeout: 150,
744
- userOptionAllowed: false,
745
- valueDelimiter: ',',
746
- maxItems: null,
747
-
748
- parseData: null,
749
- onItemSelect: null,
750
- onItemCreate: null,
751
- onMaxItemsReached: null,
752
-
753
- placeholder: 'Choose option',
754
- searchPlaceholder: 'Search options',
755
- noResultsText: 'No results',
756
- userOptionPrefix: 'Add '
757
-
758
- };
759
-
760
- $.Fastselect = Fastselect;
761
- $.Fastselect.OptionsCollection = OptionsCollection;
762
-
763
- $.fn.fastselect = function(options) {
764
- return this.each(function() {
765
- if (!$.data(this, 'fastselect')) {
766
- $.data(this, 'fastselect', new Fastselect(this, options));
767
- }
768
- });
769
- };
770
-
771
- return $;
772
-
773
- }));
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
js/select2.min.js ADDED
@@ -0,0 +1 @@
 
1
+ /*! Select2 4.0.4 | https://github.com/select2/select2/blob/master/LICENSE.md */!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof module&&module.exports?module.exports=function(b,c){return void 0===c&&(c="undefined"!=typeof window?require("jquery"):require("jquery")(b)),a(c),c}:a(jQuery)}(function(a){var b=function(){if(a&&a.fn&&a.fn.select2&&a.fn.select2.amd)var b=a.fn.select2.amd;var b;return function(){if(!b||!b.requirejs){b?c=b:b={};var a,c,d;!function(b){function e(a,b){return v.call(a,b)}function f(a,b){var c,d,e,f,g,h,i,j,k,l,m,n,o=b&&b.split("/"),p=t.map,q=p&&p["*"]||{};if(a){for(a=a.split("/"),g=a.length-1,t.nodeIdCompat&&x.test(a[g])&&(a[g]=a[g].replace(x,"")),"."===a[0].charAt(0)&&o&&(n=o.slice(0,o.length-1),a=n.concat(a)),k=0;k<a.length;k++)if("."===(m=a[k]))a.splice(k,1),k-=1;else if(".."===m){if(0===k||1===k&&".."===a[2]||".."===a[k-1])continue;k>0&&(a.splice(k-1,2),k-=2)}a=a.join("/")}if((o||q)&&p){for(c=a.split("/"),k=c.length;k>0;k-=1){if(d=c.slice(0,k).join("/"),o)for(l=o.length;l>0;l-=1)if((e=p[o.slice(0,l).join("/")])&&(e=e[d])){f=e,h=k;break}if(f)break;!i&&q&&q[d]&&(i=q[d],j=k)}!f&&i&&(f=i,h=j),f&&(c.splice(0,h,f),a=c.join("/"))}return a}function g(a,c){return function(){var d=w.call(arguments,0);return"string"!=typeof d[0]&&1===d.length&&d.push(null),o.apply(b,d.concat([a,c]))}}function h(a){return function(b){return f(b,a)}}function i(a){return function(b){r[a]=b}}function j(a){if(e(s,a)){var c=s[a];delete s[a],u[a]=!0,n.apply(b,c)}if(!e(r,a)&&!e(u,a))throw new Error("No "+a);return r[a]}function k(a){var b,c=a?a.indexOf("!"):-1;return c>-1&&(b=a.substring(0,c),a=a.substring(c+1,a.length)),[b,a]}function l(a){return a?k(a):[]}function m(a){return function(){return t&&t.config&&t.config[a]||{}}}var n,o,p,q,r={},s={},t={},u={},v=Object.prototype.hasOwnProperty,w=[].slice,x=/\.js$/;p=function(a,b){var c,d=k(a),e=d[0],g=b[1];return a=d[1],e&&(e=f(e,g),c=j(e)),e?a=c&&c.normalize?c.normalize(a,h(g)):f(a,g):(a=f(a,g),d=k(a),e=d[0],a=d[1],e&&(c=j(e))),{f:e?e+"!"+a:a,n:a,pr:e,p:c}},q={require:function(a){return g(a)},exports:function(a){var b=r[a];return void 0!==b?b:r[a]={}},module:function(a){return{id:a,uri:"",exports:r[a],config:m(a)}}},n=function(a,c,d,f){var h,k,m,n,o,t,v,w=[],x=typeof d;if(f=f||a,t=l(f),"undefined"===x||"function"===x){for(c=!c.length&&d.length?["require","exports","module"]:c,o=0;o<c.length;o+=1)if(n=p(c[o],t),"require"===(k=n.f))w[o]=q.require(a);else if("exports"===k)w[o]=q.exports(a),v=!0;else if("module"===k)h=w[o]=q.module(a);else if(e(r,k)||e(s,k)||e(u,k))w[o]=j(k);else{if(!n.p)throw new Error(a+" missing "+k);n.p.load(n.n,g(f,!0),i(k),{}),w[o]=r[k]}m=d?d.apply(r[a],w):void 0,a&&(h&&h.exports!==b&&h.exports!==r[a]?r[a]=h.exports:m===b&&v||(r[a]=m))}else a&&(r[a]=d)},a=c=o=function(a,c,d,e,f){if("string"==typeof a)return q[a]?q[a](c):j(p(a,l(c)).f);if(!a.splice){if(t=a,t.deps&&o(t.deps,t.callback),!c)return;c.splice?(a=c,c=d,d=null):a=b}return c=c||function(){},"function"==typeof d&&(d=e,e=f),e?n(b,a,c,d):setTimeout(function(){n(b,a,c,d)},4),o},o.config=function(a){return o(a)},a._defined=r,d=function(a,b,c){if("string"!=typeof a)throw new Error("See almond README: incorrect module build, no module name");b.splice||(c=b,b=[]),e(r,a)||e(s,a)||(s[a]=[a,b,c])},d.amd={jQuery:!0}}(),b.requirejs=a,b.require=c,b.define=d}}(),b.define("almond",function(){}),b.define("jquery",[],function(){var b=a||$;return null==b&&console&&console.error&&console.error("Select2: An instance of jQuery or a jQuery-compatible library was not found. Make sure that you are including jQuery before Select2 on your web page."),b}),b.define("select2/utils",["jquery"],function(a){function b(a){var b=a.prototype,c=[];for(var d in b){"function"==typeof b[d]&&("constructor"!==d&&c.push(d))}return c}var c={};c.Extend=function(a,b){function c(){this.constructor=a}var d={}.hasOwnProperty;for(var e in b)d.call(b,e)&&(a[e]=b[e]);return c.prototype=b.prototype,a.prototype=new c,a.__super__=b.prototype,a},c.Decorate=function(a,c){function d(){var b=Array.prototype.unshift,d=c.prototype.constructor.length,e=a.prototype.constructor;d>0&&(b.call(arguments,a.prototype.constructor),e=c.prototype.constructor),e.apply(this,arguments)}function e(){this.constructor=d}var f=b(c),g=b(a);c.displayName=a.displayName,d.prototype=new e;for(var h=0;h<g.length;h++){var i=g[h];d.prototype[i]=a.prototype[i]}for(var j=(function(a){var b=function(){};a in d.prototype&&(b=d.prototype[a]);var e=c.prototype[a];return function(){return Array.prototype.unshift.call(arguments,b),e.apply(this,arguments)}}),k=0;k<f.length;k++){var l=f[k];d.prototype[l]=j(l)}return d};var d=function(){this.listeners={}};return d.prototype.on=function(a,b){this.listeners=this.listeners||{},a in this.listeners?this.listeners[a].push(b):this.listeners[a]=[b]},d.prototype.trigger=function(a){var b=Array.prototype.slice,c=b.call(arguments,1);this.listeners=this.listeners||{},null==c&&(c=[]),0===c.length&&c.push({}),c[0]._type=a,a in this.listeners&&this.invoke(this.listeners[a],b.call(arguments,1)),"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},d.prototype.invoke=function(a,b){for(var c=0,d=a.length;c<d;c++)a[c].apply(this,b)},c.Observable=d,c.generateChars=function(a){for(var b="",c=0;c<a;c++){b+=Math.floor(36*Math.random()).toString(36)}return b},c.bind=function(a,b){return function(){a.apply(b,arguments)}},c._convertData=function(a){for(var b in a){var c=b.split("-"),d=a;if(1!==c.length){for(var e=0;e<c.length;e++){var f=c[e];f=f.substring(0,1).toLowerCase()+f.substring(1),f in d||(d[f]={}),e==c.length-1&&(d[f]=a[b]),d=d[f]}delete a[b]}}return a},c.hasScroll=function(b,c){var d=a(c),e=c.style.overflowX,f=c.style.overflowY;return(e!==f||"hidden"!==f&&"visible"!==f)&&("scroll"===e||"scroll"===f||(d.innerHeight()<c.scrollHeight||d.innerWidth()<c.scrollWidth))},c.escapeMarkup=function(a){var b={"\\":"&#92;","&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#47;"};return"string"!=typeof a?a:String(a).replace(/[&<>"'\/\\]/g,function(a){return b[a]})},c.appendMany=function(b,c){if("1.7"===a.fn.jquery.substr(0,3)){var d=a();a.map(c,function(a){d=d.add(a)}),c=d}b.append(c)},c}),b.define("select2/results",["jquery","./utils"],function(a,b){function c(a,b,d){this.$element=a,this.data=d,this.options=b,c.__super__.constructor.call(this)}return b.Extend(c,b.Observable),c.prototype.render=function(){var b=a('<ul class="select2-results__options" role="tree"></ul>');return this.options.get("multiple")&&b.attr("aria-multiselectable","true"),this.$results=b,b},c.prototype.clear=function(){this.$results.empty()},c.prototype.displayMessage=function(b){var c=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var d=a('<li role="treeitem" aria-live="assertive" class="select2-results__option"></li>'),e=this.options.get("translations").get(b.message);d.append(c(e(b.args))),d[0].className+=" select2-results__message",this.$results.append(d)},c.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},c.prototype.append=function(a){this.hideLoading();var b=[];if(null==a.results||0===a.results.length)return void(0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"}));a.results=this.sort(a.results);for(var c=0;c<a.results.length;c++){var d=a.results[c],e=this.option(d);b.push(e)}this.$results.append(b)},c.prototype.position=function(a,b){b.find(".select2-results").append(a)},c.prototype.sort=function(a){return this.options.get("sorter")(a)},c.prototype.highlightFirstItem=function(){var a=this.$results.find(".select2-results__option[aria-selected]"),b=a.filter("[aria-selected=true]");b.length>0?b.first().trigger("mouseenter"):a.first().trigger("mouseenter"),this.ensureHighlightVisible()},c.prototype.setClasses=function(){var b=this;this.data.current(function(c){var d=a.map(c,function(a){return a.id.toString()});b.$results.find(".select2-results__option[aria-selected]").each(function(){var b=a(this),c=a.data(this,"data"),e=""+c.id;null!=c.element&&c.element.selected||null==c.element&&a.inArray(e,d)>-1?b.attr("aria-selected","true"):b.attr("aria-selected","false")})})},c.prototype.showLoading=function(a){this.hideLoading();var b=this.options.get("translations").get("searching"),c={disabled:!0,loading:!0,text:b(a)},d=this.option(c);d.className+=" loading-results",this.$results.prepend(d)},c.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},c.prototype.option=function(b){var c=document.createElement("li");c.className="select2-results__option";var d={role:"treeitem","aria-selected":"false"};b.disabled&&(delete d["aria-selected"],d["aria-disabled"]="true"),null==b.id&&delete d["aria-selected"],null!=b._resultId&&(c.id=b._resultId),b.title&&(c.title=b.title),b.children&&(d.role="group",d["aria-label"]=b.text,delete d["aria-selected"]);for(var e in d){var f=d[e];c.setAttribute(e,f)}if(b.children){var g=a(c),h=document.createElement("strong");h.className="select2-results__group";a(h);this.template(b,h);for(var i=[],j=0;j<b.children.length;j++){var k=b.children[j],l=this.option(k);i.push(l)}var m=a("<ul></ul>",{class:"select2-results__options select2-results__options--nested"});m.append(i),g.append(h),g.append(m)}else this.template(b,c);return a.data(c,"data",b),c},c.prototype.bind=function(b,c){var d=this,e=b.id+"-results";this.$results.attr("id",e),b.on("results:all",function(a){d.clear(),d.append(a.data),b.isOpen()&&(d.setClasses(),d.highlightFirstItem())}),b.on("results:append",function(a){d.append(a.data),b.isOpen()&&d.setClasses()}),b.on("query",function(a){d.hideMessages(),d.showLoading(a)}),b.on("select",function(){b.isOpen()&&(d.setClasses(),d.highlightFirstItem())}),b.on("unselect",function(){b.isOpen()&&(d.setClasses(),d.highlightFirstItem())}),b.on("open",function(){d.$results.attr("aria-expanded","true"),d.$results.attr("aria-hidden","false"),d.setClasses(),d.ensureHighlightVisible()}),b.on("close",function(){d.$results.attr("aria-expanded","false"),d.$results.attr("aria-hidden","true"),d.$results.removeAttr("aria-activedescendant")}),b.on("results:toggle",function(){var a=d.getHighlightedResults();0!==a.length&&a.trigger("mouseup")}),b.on("results:select",function(){var a=d.getHighlightedResults();if(0!==a.length){var b=a.data("data");"true"==a.attr("aria-selected")?d.trigger("close",{}):d.trigger("select",{data:b})}}),b.on("results:previous",function(){var a=d.getHighlightedResults(),b=d.$results.find("[aria-selected]"),c=b.index(a);if(0!==c){var e=c-1;0===a.length&&(e=0);var f=b.eq(e);f.trigger("mouseenter");var g=d.$results.offset().top,h=f.offset().top,i=d.$results.scrollTop()+(h-g);0===e?d.$results.scrollTop(0):h-g<0&&d.$results.scrollTop(i)}}),b.on("results:next",function(){var a=d.getHighlightedResults(),b=d.$results.find("[aria-selected]"),c=b.index(a),e=c+1;if(!(e>=b.length)){var f=b.eq(e);f.trigger("mouseenter");var g=d.$results.offset().top+d.$results.outerHeight(!1),h=f.offset().top+f.outerHeight(!1),i=d.$results.scrollTop()+h-g;0===e?d.$results.scrollTop(0):h>g&&d.$results.scrollTop(i)}}),b.on("results:focus",function(a){a.element.addClass("select2-results__option--highlighted")}),b.on("results:message",function(a){d.displayMessage(a)}),a.fn.mousewheel&&this.$results.on("mousewheel",function(a){var b=d.$results.scrollTop(),c=d.$results.get(0).scrollHeight-b+a.deltaY,e=a.deltaY>0&&b-a.deltaY<=0,f=a.deltaY<0&&c<=d.$results.height();e?(d.$results.scrollTop(0),a.preventDefault(),a.stopPropagation()):f&&(d.$results.scrollTop(d.$results.get(0).scrollHeight-d.$results.height()),a.preventDefault(),a.stopPropagation())}),this.$results.on("mouseup",".select2-results__option[aria-selected]",function(b){var c=a(this),e=c.data("data");if("true"===c.attr("aria-selected"))return void(d.options.get("multiple")?d.trigger("unselect",{originalEvent:b,data:e}):d.trigger("close",{}));d.trigger("select",{originalEvent:b,data:e})}),this.$results.on("mouseenter",".select2-results__option[aria-selected]",function(b){var c=a(this).data("data");d.getHighlightedResults().removeClass("select2-results__option--highlighted"),d.trigger("results:focus",{data:c,element:a(this)})})},c.prototype.getHighlightedResults=function(){return this.$results.find(".select2-results__option--highlighted")},c.prototype.destroy=function(){this.$results.remove()},c.prototype.ensureHighlightVisible=function(){var a=this.getHighlightedResults();if(0!==a.length){var b=this.$results.find("[aria-selected]"),c=b.index(a),d=this.$results.offset().top,e=a.offset().top,f=this.$results.scrollTop()+(e-d),g=e-d;f-=2*a.outerHeight(!1),c<=2?this.$results.scrollTop(0):(g>this.$results.outerHeight()||g<0)&&this.$results.scrollTop(f)}},c.prototype.template=function(b,c){var d=this.options.get("templateResult"),e=this.options.get("escapeMarkup"),f=d(b,c);null==f?c.style.display="none":"string"==typeof f?c.innerHTML=e(f):a(c).append(f)},c}),b.define("select2/keys",[],function(){return{BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46}}),b.define("select2/selection/base",["jquery","../utils","../keys"],function(a,b,c){function d(a,b){this.$element=a,this.options=b,d.__super__.constructor.call(this)}return b.Extend(d,b.Observable),d.prototype.render=function(){var b=a('<span class="select2-selection" role="combobox" aria-haspopup="true" aria-expanded="false"></span>');return this._tabindex=0,null!=this.$element.data("old-tabindex")?this._tabindex=this.$element.data("old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),b.attr("title",this.$element.attr("title")),b.attr("tabindex",this._tabindex),this.$selection=b,b},d.prototype.bind=function(a,b){var d=this,e=(a.id,a.id+"-results");this.container=a,this.$selection.on("focus",function(a){d.trigger("focus",a)}),this.$selection.on("blur",function(a){d._handleBlur(a)}),this.$selection.on("keydown",function(a){d.trigger("keypress",a),a.which===c.SPACE&&a.preventDefault()}),a.on("results:focus",function(a){d.$selection.attr("aria-activedescendant",a.data._resultId)}),a.on("selection:update",function(a){d.update(a.data)}),a.on("open",function(){d.$selection.attr("aria-expanded","true"),d.$selection.attr("aria-owns",e),d._attachCloseHandler(a)}),a.on("close",function(){d.$selection.attr("aria-expanded","false"),d.$selection.removeAttr("aria-activedescendant"),d.$selection.removeAttr("aria-owns"),d.$selection.focus(),d._detachCloseHandler(a)}),a.on("enable",function(){d.$selection.attr("tabindex",d._tabindex)}),a.on("disable",function(){d.$selection.attr("tabindex","-1")})},d.prototype._handleBlur=function(b){var c=this;window.setTimeout(function(){document.activeElement==c.$selection[0]||a.contains(c.$selection[0],document.activeElement)||c.trigger("blur",b)},1)},d.prototype._attachCloseHandler=function(b){a(document.body).on("mousedown.select2."+b.id,function(b){var c=a(b.target),d=c.closest(".select2");a(".select2.select2-container--open").each(function(){var b=a(this);this!=d[0]&&b.data("element").select2("close")})})},d.prototype._detachCloseHandler=function(b){a(document.body).off("mousedown.select2."+b.id)},d.prototype.position=function(a,b){b.find(".selection").append(a)},d.prototype.destroy=function(){this._detachCloseHandler(this.container)},d.prototype.update=function(a){throw new Error("The `update` method must be defined in child classes.")},d}),b.define("select2/selection/single",["jquery","./base","../utils","../keys"],function(a,b,c,d){function e(){e.__super__.constructor.apply(this,arguments)}return c.Extend(e,b),e.prototype.render=function(){var a=e.__super__.render.call(this);return a.addClass("select2-selection--single"),a.html('<span class="select2-selection__rendered"></span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span>'),a},e.prototype.bind=function(a,b){var c=this;e.__super__.bind.apply(this,arguments);var d=a.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",d),this.$selection.attr("aria-labelledby",d),this.$selection.on("mousedown",function(a){1===a.which&&c.trigger("toggle",{originalEvent:a})}),this.$selection.on("focus",function(a){}),this.$selection.on("blur",function(a){}),a.on("focus",function(b){a.isOpen()||c.$selection.focus()}),a.on("selection:update",function(a){c.update(a.data)})},e.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()},e.prototype.display=function(a,b){var c=this.options.get("templateSelection");return this.options.get("escapeMarkup")(c(a,b))},e.prototype.selectionContainer=function(){return a("<span></span>")},e.prototype.update=function(a){if(0===a.length)return void this.clear();var b=a[0],c=this.$selection.find(".select2-selection__rendered"),d=this.display(b,c);c.empty().append(d),c.prop("title",b.title||b.text)},e}),b.define("select2/selection/multiple",["jquery","./base","../utils"],function(a,b,c){function d(a,b){d.__super__.constructor.apply(this,arguments)}return c.Extend(d,b),d.prototype.render=function(){var a=d.__super__.render.call(this);return a.addClass("select2-selection--multiple"),a.html('<ul class="select2-selection__rendered"></ul>'),a},d.prototype.bind=function(b,c){var e=this;d.__super__.bind.apply(this,arguments),this.$selection.on("click",function(a){e.trigger("toggle",{originalEvent:a})}),this.$selection.on("click",".select2-selection__choice__remove",function(b){if(!e.options.get("disabled")){var c=a(this),d=c.parent(),f=d.data("data");e.trigger("unselect",{originalEvent:b,data:f})}})},d.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()},d.prototype.display=function(a,b){var c=this.options.get("templateSelection");return this.options.get("escapeMarkup")(c(a,b))},d.prototype.selectionContainer=function(){return a('<li class="select2-selection__choice"><span class="select2-selection__choice__remove" role="presentation">&times;</span></li>')},d.prototype.update=function(a){if(this.clear(),0!==a.length){for(var b=[],d=0;d<a.length;d++){var e=a[d],f=this.selectionContainer(),g=this.display(e,f);f.append(g),f.prop("title",e.title||e.text),f.data("data",e),b.push(f)}var h=this.$selection.find(".select2-selection__rendered");c.appendMany(h,b)}},d}),b.define("select2/selection/placeholder",["../utils"],function(a){function b(a,b,c){this.placeholder=this.normalizePlaceholder(c.get("placeholder")),a.call(this,b,c)}return b.prototype.normalizePlaceholder=function(a,b){return"string"==typeof b&&(b={id:"",text:b}),b},b.prototype.createPlaceholder=function(a,b){var c=this.selectionContainer();return c.html(this.display(b)),c.addClass("select2-selection__placeholder").removeClass("select2-selection__choice"),c},b.prototype.update=function(a,b){var c=1==b.length&&b[0].id!=this.placeholder.id;if(b.length>1||c)return a.call(this,b);this.clear();var d=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(d)},b}),b.define("select2/selection/allowClear",["jquery","../keys"],function(a,b){function c(){}return c.prototype.bind=function(a,b,c){var d=this;a.call(this,b,c),null==this.placeholder&&this.options.get("debug")&&window.console&&console.error&&console.error("Select2: The `allowClear` option should be used in combination with the `placeholder` option."),this.$selection.on("mousedown",".select2-selection__clear",function(a){d._handleClear(a)}),b.on("keypress",function(a){d._handleKeyboardClear(a,b)})},c.prototype._handleClear=function(a,b){if(!this.options.get("disabled")){var c=this.$selection.find(".select2-selection__clear");if(0!==c.length){b.stopPropagation();for(var d=c.data("data"),e=0;e<d.length;e++){var f={data:d[e]};if(this.trigger("unselect",f),f.prevented)return}this.$element.val(this.placeholder.id).trigger("change"),this.trigger("toggle",{})}}},c.prototype._handleKeyboardClear=function(a,c,d){d.isOpen()||c.which!=b.DELETE&&c.which!=b.BACKSPACE||this._handleClear(c)},c.prototype.update=function(b,c){if(b.call(this,c),!(this.$selection.find(".select2-selection__placeholder").length>0||0===c.length)){var d=a('<span class="select2-selection__clear">&times;</span>');d.data("data",c),this.$selection.find(".select2-selection__rendered").prepend(d)}},c}),b.define("select2/selection/search",["jquery","../utils","../keys"],function(a,b,c){function d(a,b,c){a.call(this,b,c)}return d.prototype.render=function(b){var c=a('<li class="select2-search select2-search--inline"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" role="textbox" aria-autocomplete="list" /></li>');this.$searchContainer=c,this.$search=c.find("input");var d=b.call(this);return this._transferTabIndex(),d},d.prototype.bind=function(a,b,d){var e=this;a.call(this,b,d),b.on("open",function(){e.$search.trigger("focus")}),b.on("close",function(){e.$search.val(""),e.$search.removeAttr("aria-activedescendant"),e.$search.trigger("focus")}),b.on("enable",function(){e.$search.prop("disabled",!1),e._transferTabIndex()}),b.on("disable",function(){e.$search.prop("disabled",!0)}),b.on("focus",function(a){e.$search.trigger("focus")}),b.on("results:focus",function(a){e.$search.attr("aria-activedescendant",a.id)}),this.$selection.on("focusin",".select2-search--inline",function(a){e.trigger("focus",a)}),this.$selection.on("focusout",".select2-search--inline",function(a){e._handleBlur(a)}),this.$selection.on("keydown",".select2-search--inline",function(a){if(a.stopPropagation(),e.trigger("keypress",a),e._keyUpPrevented=a.isDefaultPrevented(),a.which===c.BACKSPACE&&""===e.$search.val()){var b=e.$searchContainer.prev(".select2-selection__choice");if(b.length>0){var d=b.data("data");e.searchRemoveChoice(d),a.preventDefault()}}});var f=document.documentMode,g=f&&f<=11;this.$selection.on("input.searchcheck",".select2-search--inline",function(a){if(g)return void e.$selection.off("input.search input.searchcheck");e.$selection.off("keyup.search")}),this.$selection.on("keyup.search input.search",".select2-search--inline",function(a){if(g&&"input"===a.type)return void e.$selection.off("input.search input.searchcheck");var b=a.which;b!=c.SHIFT&&b!=c.CTRL&&b!=c.ALT&&b!=c.TAB&&e.handleSearch(a)})},d.prototype._transferTabIndex=function(a){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},d.prototype.createPlaceholder=function(a,b){this.$search.attr("placeholder",b.text)},d.prototype.update=function(a,b){var c=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),a.call(this,b),this.$selection.find(".select2-selection__rendered").append(this.$searchContainer),this.resizeSearch(),c&&this.$search.focus()},d.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var a=this.$search.val();this.trigger("query",{term:a})}this._keyUpPrevented=!1},d.prototype.searchRemoveChoice=function(a,b){this.trigger("unselect",{data:b}),this.$search.val(b.text),this.handleSearch()},d.prototype.resizeSearch=function(){this.$search.css("width","25px");var a="";if(""!==this.$search.attr("placeholder"))a=this.$selection.find(".select2-selection__rendered").innerWidth();else{a=.75*(this.$search.val().length+1)+"em"}this.$search.css("width",a)},d}),b.define("select2/selection/eventRelay",["jquery"],function(a){function b(){}return b.prototype.bind=function(b,c,d){var e=this,f=["open","opening","close","closing","select","selecting","unselect","unselecting"],g=["opening","closing","selecting","unselecting"];b.call(this,c,d),c.on("*",function(b,c){if(-1!==a.inArray(b,f)){c=c||{};var d=a.Event("select2:"+b,{params:c});e.$element.trigger(d),-1!==a.inArray(b,g)&&(c.prevented=d.isDefaultPrevented())}})},b}),b.define("select2/translation",["jquery","require"],function(a,b){function c(a){this.dict=a||{}}return c.prototype.all=function(){return this.dict},c.prototype.get=function(a){return this.dict[a]},c.prototype.extend=function(b){this.dict=a.extend({},b.all(),this.dict)},c._cache={},c.loadPath=function(a){if(!(a in c._cache)){var d=b(a);c._cache[a]=d}return new c(c._cache[a])},c}),b.define("select2/diacritics",[],function(){return{"Ⓐ":"A","A":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","B":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","C":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","D":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","DZ":"DZ","DŽ":"DZ","Dz":"Dz","Dž":"Dz","Ⓔ":"E","E":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","F":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","G":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","H":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","I":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","J":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","K":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","L":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","LJ":"LJ","Lj":"Lj","Ⓜ":"M","M":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","N":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","NJ":"NJ","Nj":"Nj","Ⓞ":"O","O":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","P":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Q":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","R":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","S":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","T":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","U":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","V":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","W":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","X":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Y":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Z":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","a":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","b":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","c":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","d":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","dz":"dz","dž":"dz","ⓔ":"e","e":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","f":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","g":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","h":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","i":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","j":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","k":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","l":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","lj":"lj","ⓜ":"m","m":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","n":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ʼn":"n","ꞑ":"n","ꞥ":"n","nj":"nj","ⓞ":"o","o":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","p":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","q":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","r":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","s":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","t":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","u":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","v":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","w":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","x":"x","ẋ":"x","ẍ":"x","ⓨ":"y","y":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","z":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ω":"ω","ς":"σ"}}),b.define("select2/data/base",["../utils"],function(a){function b(a,c){b.__super__.constructor.call(this)}return a.Extend(b,a.Observable),b.prototype.current=function(a){throw new Error("The `current` method must be defined in child classes.")},b.prototype.query=function(a,b){throw new Error("The `query` method must be defined in child classes.")},b.prototype.bind=function(a,b){},b.prototype.destroy=function(){},b.prototype.generateResultId=function(b,c){var d=b.id+"-result-";return d+=a.generateChars(4),null!=c.id?d+="-"+c.id.toString():d+="-"+a.generateChars(4),d},b}),b.define("select2/data/select",["./base","../utils","jquery"],function(a,b,c){function d(a,b){this.$element=a,this.options=b,d.__super__.constructor.call(this)}return b.Extend(d,a),d.prototype.current=function(a){var b=[],d=this;this.$element.find(":selected").each(function(){var a=c(this),e=d.item(a);b.push(e)}),a(b)},d.prototype.select=function(a){var b=this;if(a.selected=!0,c(a.element).is("option"))return a.element.selected=!0,void this.$element.trigger("change");if(this.$element.prop("multiple"))this.current(function(d){var e=[];a=[a],a.push.apply(a,d);for(var f=0;f<a.length;f++){var g=a[f].id;-1===c.inArray(g,e)&&e.push(g)}b.$element.val(e),b.$element.trigger("change")});else{var d=a.id;this.$element.val(d),this.$element.trigger("change")}},d.prototype.unselect=function(a){var b=this;if(this.$element.prop("multiple")){if(a.selected=!1,c(a.element).is("option"))return a.element.selected=!1,void this.$element.trigger("change");this.current(function(d){for(var e=[],f=0;f<d.length;f++){var g=d[f].id;g!==a.id&&-1===c.inArray(g,e)&&e.push(g)}b.$element.val(e),b.$element.trigger("change")})}},d.prototype.bind=function(a,b){var c=this;this.container=a,a.on("select",function(a){c.select(a.data)}),a.on("unselect",function(a){c.unselect(a.data)})},d.prototype.destroy=function(){this.$element.find("*").each(function(){c.removeData(this,"data")})},d.prototype.query=function(a,b){var d=[],e=this;this.$element.children().each(function(){var b=c(this);if(b.is("option")||b.is("optgroup")){var f=e.item(b),g=e.matches(a,f);null!==g&&d.push(g)}}),b({results:d})},d.prototype.addOptions=function(a){b.appendMany(this.$element,a)},d.prototype.option=function(a){var b;a.children?(b=document.createElement("optgroup"),b.label=a.text):(b=document.createElement("option"),void 0!==b.textContent?b.textContent=a.text:b.innerText=a.text),void 0!==a.id&&(b.value=a.id),a.disabled&&(b.disabled=!0),a.selected&&(b.selected=!0),a.title&&(b.title=a.title);var d=c(b),e=this._normalizeItem(a);return e.element=b,c.data(b,"data",e),d},d.prototype.item=function(a){var b={};if(null!=(b=c.data(a[0],"data")))return b;if(a.is("option"))b={id:a.val(),text:a.text(),disabled:a.prop("disabled"),selected:a.prop("selected"),title:a.prop("title")};else if(a.is("optgroup")){b={text:a.prop("label"),children:[],title:a.prop("title")};for(var d=a.children("option"),e=[],f=0;f<d.length;f++){var g=c(d[f]),h=this.item(g);e.push(h)}b.children=e}return b=this._normalizeItem(b),b.element=a[0],c.data(a[0],"data",b),b},d.prototype._normalizeItem=function(a){c.isPlainObject(a)||(a={id:a,text:a}),a=c.extend({},{text:""},a);var b={selected:!1,disabled:!1};return null!=a.id&&(a.id=a.id.toString()),null!=a.text&&(a.text=a.text.toString()),null==a._resultId&&a.id&&null!=this.container&&(a._resultId=this.generateResultId(this.container,a)),c.extend({},b,a)},d.prototype.matches=function(a,b){return this.options.get("matcher")(a,b)},d}),b.define("select2/data/array",["./select","../utils","jquery"],function(a,b,c){function d(a,b){var c=b.get("data")||[];d.__super__.constructor.call(this,a,b),this.addOptions(this.convertToOptions(c))}return b.Extend(d,a),d.prototype.select=function(a){var b=this.$element.find("option").filter(function(b,c){return c.value==a.id.toString()});0===b.length&&(b=this.option(a),this.addOptions(b)),d.__super__.select.call(this,a)},d.prototype.convertToOptions=function(a){function d(a){return function(){return c(this).val()==a.id}}for(var e=this,f=this.$element.find("option"),g=f.map(function(){return e.item(c(this)).id}).get(),h=[],i=0;i<a.length;i++){var j=this._normalizeItem(a[i]);if(c.inArray(j.id,g)>=0){var k=f.filter(d(j)),l=this.item(k),m=c.extend(!0,{},j,l),n=this.option(m);k.replaceWith(n)}else{var o=this.option(j);if(j.children){var p=this.convertToOptions(j.children);b.appendMany(o,p)}h.push(o)}}return h},d}),b.define("select2/data/ajax",["./array","../utils","jquery"],function(a,b,c){function d(a,b){this.ajaxOptions=this._applyDefaults(b.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),d.__super__.constructor.call(this,a,b)}return b.Extend(d,a),d.prototype._applyDefaults=function(a){var b={data:function(a){return c.extend({},a,{q:a.term})},transport:function(a,b,d){var e=c.ajax(a);return e.then(b),e.fail(d),e}};return c.extend({},b,a,!0)},d.prototype.processResults=function(a){return a},d.prototype.query=function(a,b){function d(){var d=f.transport(f,function(d){var f=e.processResults(d,a);e.options.get("debug")&&window.console&&console.error&&(f&&f.results&&c.isArray(f.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")),b(f)},function(){d.status&&"0"===d.status||e.trigger("results:message",{message:"errorLoading"})});e._request=d}var e=this;null!=this._request&&(c.isFunction(this._request.abort)&&this._request.abort(),this._request=null);var f=c.extend({type:"GET"},this.ajaxOptions);"function"==typeof f.url&&(f.url=f.url.call(this.$element,a)),"function"==typeof f.data&&(f.data=f.data.call(this.$element,a)),this.ajaxOptions.delay&&null!=a.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(d,this.ajaxOptions.delay)):d()},d}),b.define("select2/data/tags",["jquery"],function(a){function b(b,c,d){var e=d.get("tags"),f=d.get("createTag");void 0!==f&&(this.createTag=f);var g=d.get("insertTag");if(void 0!==g&&(this.insertTag=g),b.call(this,c,d),a.isArray(e))for(var h=0;h<e.length;h++){var i=e[h],j=this._normalizeItem(i),k=this.option(j);this.$element.append(k)}}return b.prototype.query=function(a,b,c){function d(a,f){for(var g=a.results,h=0;h<g.length;h++){var i=g[h],j=null!=i.children&&!d({results:i.children},!0);if((i.text||"").toUpperCase()===(b.term||"").toUpperCase()||j)return!f&&(a.data=g,void c(a))}if(f)return!0;var k=e.createTag(b);if(null!=k){var l=e.option(k);l.attr("data-select2-tag",!0),e.addOptions([l]),e.insertTag(g,k)}a.results=g,c(a)}var e=this;if(this._removeOldTags(),null==b.term||null!=b.page)return void a.call(this,b,c);a.call(this,b,d)},b.prototype.createTag=function(b,c){var d=a.trim(c.term);return""===d?null:{id:d,text:d}},b.prototype.insertTag=function(a,b,c){b.unshift(c)},b.prototype._removeOldTags=function(b){this._lastTag;this.$element.find("option[data-select2-tag]").each(function(){this.selected||a(this).remove()})},b}),b.define("select2/data/tokenizer",["jquery"],function(a){function b(a,b,c){var d=c.get("tokenizer");void 0!==d&&(this.tokenizer=d),a.call(this,b,c)}return b.prototype.bind=function(a,b,c){a.call(this,b,c),this.$search=b.dropdown.$search||b.selection.$search||c.find(".select2-search__field")},b.prototype.query=function(b,c,d){function e(b){var c=g._normalizeItem(b);if(!g.$element.find("option").filter(function(){return a(this).val()===c.id}).length){var d=g.option(c);d.attr("data-select2-tag",!0),g._removeOldTags(),g.addOptions([d])}f(c)}function f(a){g.trigger("select",{data:a})}var g=this;c.term=c.term||"";var h=this.tokenizer(c,this.options,e);h.term!==c.term&&(this.$search.length&&(this.$search.val(h.term),this.$search.focus()),c.term=h.term),b.call(this,c,d)},b.prototype.tokenizer=function(b,c,d,e){for(var f=d.get("tokenSeparators")||[],g=c.term,h=0,i=this.createTag||function(a){return{id:a.term,text:a.term}};h<g.length;){var j=g[h];if(-1!==a.inArray(j,f)){var k=g.substr(0,h),l=a.extend({},c,{term:k}),m=i(l);null!=m?(e(m),g=g.substr(h+1)||"",h=0):h++}else h++}return{term:g}},b}),b.define("select2/data/minimumInputLength",[],function(){function a(a,b,c){this.minimumInputLength=c.get("minimumInputLength"),a.call(this,b,c)}return a.prototype.query=function(a,b,c){if(b.term=b.term||"",b.term.length<this.minimumInputLength)return void this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:b.term,params:b}});a.call(this,b,c)},a}),b.define("select2/data/maximumInputLength",[],function(){function a(a,b,c){this.maximumInputLength=c.get("maximumInputLength"),a.call(this,b,c)}return a.prototype.query=function(a,b,c){if(b.term=b.term||"",this.maximumInputLength>0&&b.term.length>this.maximumInputLength)return void this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:b.term,params:b}});a.call(this,b,c)},a}),b.define("select2/data/maximumSelectionLength",[],function(){function a(a,b,c){this.maximumSelectionLength=c.get("maximumSelectionLength"),a.call(this,b,c)}return a.prototype.query=function(a,b,c){var d=this;this.current(function(e){var f=null!=e?e.length:0;if(d.maximumSelectionLength>0&&f>=d.maximumSelectionLength)return void d.trigger("results:message",{message:"maximumSelected",args:{maximum:d.maximumSelectionLength}});a.call(d,b,c)})},a}),b.define("select2/dropdown",["jquery","./utils"],function(a,b){function c(a,b){this.$element=a,this.options=b,c.__super__.constructor.call(this)}return b.Extend(c,b.Observable),c.prototype.render=function(){var b=a('<span class="select2-dropdown"><span class="select2-results"></span></span>');return b.attr("dir",this.options.get("dir")),this.$dropdown=b,b},c.prototype.bind=function(){},c.prototype.position=function(a,b){},c.prototype.destroy=function(){this.$dropdown.remove()},c}),b.define("select2/dropdown/search",["jquery","../utils"],function(a,b){function c(){}return c.prototype.render=function(b){var c=b.call(this),d=a('<span class="select2-search select2-search--dropdown"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" role="textbox" /></span>');return this.$searchContainer=d,this.$search=d.find("input"),c.prepend(d),c},c.prototype.bind=function(b,c,d){var e=this;b.call(this,c,d),this.$search.on("keydown",function(a){e.trigger("keypress",a),e._keyUpPrevented=a.isDefaultPrevented()}),this.$search.on("input",function(b){a(this).off("keyup")}),this.$search.on("keyup input",function(a){e.handleSearch(a)}),c.on("open",function(){e.$search.attr("tabindex",0),e.$search.focus(),window.setTimeout(function(){e.$search.focus()},0)}),c.on("close",function(){e.$search.attr("tabindex",-1),e.$search.val("")}),c.on("focus",function(){c.isOpen()||e.$search.focus()}),c.on("results:all",function(a){if(null==a.query.term||""===a.query.term){e.showSearch(a)?e.$searchContainer.removeClass("select2-search--hide"):e.$searchContainer.addClass("select2-search--hide")}})},c.prototype.handleSearch=function(a){if(!this._keyUpPrevented){var b=this.$search.val();this.trigger("query",{term:b})}this._keyUpPrevented=!1},c.prototype.showSearch=function(a,b){return!0},c}),b.define("select2/dropdown/hidePlaceholder",[],function(){function a(a,b,c,d){this.placeholder=this.normalizePlaceholder(c.get("placeholder")),a.call(this,b,c,d)}return a.prototype.append=function(a,b){b.results=this.removePlaceholder(b.results),a.call(this,b)},a.prototype.normalizePlaceholder=function(a,b){return"string"==typeof b&&(b={id:"",text:b}),b},a.prototype.removePlaceholder=function(a,b){for(var c=b.slice(0),d=b.length-1;d>=0;d--){var e=b[d];this.placeholder.id===e.id&&c.splice(d,1)}return c},a}),b.define("select2/dropdown/infiniteScroll",["jquery"],function(a){function b(a,b,c,d){this.lastParams={},a.call(this,b,c,d),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return b.prototype.append=function(a,b){this.$loadingMore.remove(),this.loading=!1,a.call(this,b),this.showLoadingMore(b)&&this.$results.append(this.$loadingMore)},b.prototype.bind=function(b,c,d){var e=this;b.call(this,c,d),c.on("query",function(a){e.lastParams=a,e.loading=!0}),c.on("query:append",function(a){e.lastParams=a,e.loading=!0}),this.$results.on("scroll",function(){var b=a.contains(document.documentElement,e.$loadingMore[0]);if(!e.loading&&b){e.$results.offset().top+e.$results.outerHeight(!1)+50>=e.$loadingMore.offset().top+e.$loadingMore.outerHeight(!1)&&e.loadMore()}})},b.prototype.loadMore=function(){this.loading=!0;var b=a.extend({},{page:1},this.lastParams);b.page++,this.trigger("query:append",b)},b.prototype.showLoadingMore=function(a,b){return b.pagination&&b.pagination.more},b.prototype.createLoadingMore=function(){var b=a('<li class="select2-results__option select2-results__option--load-more"role="treeitem" aria-disabled="true"></li>'),c=this.options.get("translations").get("loadingMore");return b.html(c(this.lastParams)),b},b}),b.define("select2/dropdown/attachBody",["jquery","../utils"],function(a,b){function c(b,c,d){this.$dropdownParent=d.get("dropdownParent")||a(document.body),b.call(this,c,d)}return c.prototype.bind=function(a,b,c){var d=this,e=!1;a.call(this,b,c),b.on("open",function(){d._showDropdown(),d._attachPositioningHandler(b),e||(e=!0,b.on("results:all",function(){d._positionDropdown(),d._resizeDropdown()}),b.on("results:append",function(){d._positionDropdown(),d._resizeDropdown()}))}),b.on("close",function(){d._hideDropdown(),d._detachPositioningHandler(b)}),this.$dropdownContainer.on("mousedown",function(a){a.stopPropagation()})},c.prototype.destroy=function(a){a.call(this),this.$dropdownContainer.remove()},c.prototype.position=function(a,b,c){b.attr("class",c.attr("class")),b.removeClass("select2"),b.addClass("select2-container--open"),b.css({position:"absolute",top:-999999}),this.$container=c},c.prototype.render=function(b){var c=a("<span></span>"),d=b.call(this);return c.append(d),this.$dropdownContainer=c,c},c.prototype._hideDropdown=function(a){this.$dropdownContainer.detach()},c.prototype._attachPositioningHandler=function(c,d){var e=this,f="scroll.select2."+d.id,g="resize.select2."+d.id,h="orientationchange.select2."+d.id,i=this.$container.parents().filter(b.hasScroll);i.each(function(){a(this).data("select2-scroll-position",{x:a(this).scrollLeft(),y:a(this).scrollTop()})}),i.on(f,function(b){var c=a(this).data("select2-scroll-position");a(this).scrollTop(c.y)}),a(window).on(f+" "+g+" "+h,function(a){e._positionDropdown(),e._resizeDropdown()})},c.prototype._detachPositioningHandler=function(c,d){var e="scroll.select2."+d.id,f="resize.select2."+d.id,g="orientationchange.select2."+d.id;this.$container.parents().filter(b.hasScroll).off(e),a(window).off(e+" "+f+" "+g)},c.prototype._positionDropdown=function(){var b=a(window),c=this.$dropdown.hasClass("select2-dropdown--above"),d=this.$dropdown.hasClass("select2-dropdown--below"),e=null,f=this.$container.offset();f.bottom=f.top+this.$container.outerHeight(!1);var g={height:this.$container.outerHeight(!1)};g.top=f.top,g.bottom=f.top+g.height;var h={height:this.$dropdown.outerHeight(!1)},i={top:b.scrollTop(),bottom:b.scrollTop()+b.height()},j=i.top<f.top-h.height,k=i.bottom>f.bottom+h.height,l={left:f.left,top:g.bottom},m=this.$dropdownParent;"static"===m.css("position")&&(m=m.offsetParent());var n=m.offset();l.top-=n.top,l.left-=n.left,c||d||(e="below"),k||!j||c?!j&&k&&c&&(e="below"):e="above",("above"==e||c&&"below"!==e)&&(l.top=g.top-n.top-h.height),null!=e&&(this.$dropdown.removeClass("select2-dropdown--below select2-dropdown--above").addClass("select2-dropdown--"+e),this.$container.removeClass("select2-container--below select2-container--above").addClass("select2-container--"+e)),this.$dropdownContainer.css(l)},c.prototype._resizeDropdown=function(){var a={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(a.minWidth=a.width,a.position="relative",a.width="auto"),this.$dropdown.css(a)},c.prototype._showDropdown=function(a){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},c}),b.define("select2/dropdown/minimumResultsForSearch",[],function(){function a(b){for(var c=0,d=0;d<b.length;d++){var e=b[d];e.children?c+=a(e.children):c++}return c}function b(a,b,c,d){this.minimumResultsForSearch=c.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),a.call(this,b,c,d)}return b.prototype.showSearch=function(b,c){return!(a(c.data.results)<this.minimumResultsForSearch)&&b.call(this,c)},b}),b.define("select2/dropdown/selectOnClose",[],function(){function a(){}return a.prototype.bind=function(a,b,c){var d=this;a.call(this,b,c),b.on("close",function(a){d._handleSelectOnClose(a)})},a.prototype._handleSelectOnClose=function(a,b){if(b&&null!=b.originalSelect2Event){var c=b.originalSelect2Event;if("select"===c._type||"unselect"===c._type)return}var d=this.getHighlightedResults();if(!(d.length<1)){var e=d.data("data");null!=e.element&&e.element.selected||null==e.element&&e.selected||this.trigger("select",{data:e})}},a}),b.define("select2/dropdown/closeOnSelect",[],function(){function a(){}return a.prototype.bind=function(a,b,c){var d=this;a.call(this,b,c),b.on("select",function(a){d._selectTriggered(a)}),b.on("unselect",function(a){d._selectTriggered(a)})},a.prototype._selectTriggered=function(a,b){var c=b.originalEvent;c&&c.ctrlKey||this.trigger("close",{originalEvent:c,originalSelect2Event:b})},a}),b.define("select2/i18n/en",[],function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(a){var b=a.input.length-a.maximum,c="Please delete "+b+" character";return 1!=b&&(c+="s"),c},inputTooShort:function(a){return"Please enter "+(a.minimum-a.input.length)+" or more characters"},loadingMore:function(){return"Loading more results…"},maximumSelected:function(a){var b="You can only select "+a.maximum+" item";return 1!=a.maximum&&(b+="s"),b},noResults:function(){return"No results found"},searching:function(){return"Searching…"}}}),b.define("select2/defaults",["jquery","require","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./selection/eventRelay","./utils","./translation","./diacritics","./data/select","./data/array","./data/ajax","./data/tags","./data/tokenizer","./data/minimumInputLength","./data/maximumInputLength","./data/maximumSelectionLength","./dropdown","./dropdown/search","./dropdown/hidePlaceholder","./dropdown/infiniteScroll","./dropdown/attachBody","./dropdown/minimumResultsForSearch","./dropdown/selectOnClose","./dropdown/closeOnSelect","./i18n/en"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C){function D(){this.reset()}return D.prototype.apply=function(l){if(l=a.extend(!0,{},this.defaults,l),null==l.dataAdapter){if(null!=l.ajax?l.dataAdapter=o:null!=l.data?l.dataAdapter=n:l.dataAdapter=m,l.minimumInputLength>0&&(l.dataAdapter=j.Decorate(l.dataAdapter,r)),l.maximumInputLength>0&&(l.dataAdapter=j.Decorate(l.dataAdapter,s)),l.maximumSelectionLength>0&&(l.dataAdapter=j.Decorate(l.dataAdapter,t)),l.tags&&(l.dataAdapter=j.Decorate(l.dataAdapter,p)),null==l.tokenSeparators&&null==l.tokenizer||(l.dataAdapter=j.Decorate(l.dataAdapter,q)),null!=l.query){var C=b(l.amdBase+"compat/query");l.dataAdapter=j.Decorate(l.dataAdapter,C)}if(null!=l.initSelection){var D=b(l.amdBase+"compat/initSelection");l.dataAdapter=j.Decorate(l.dataAdapter,D)}}if(null==l.resultsAdapter&&(l.resultsAdapter=c,null!=l.ajax&&(l.resultsAdapter=j.Decorate(l.resultsAdapter,x)),null!=l.placeholder&&(l.resultsAdapter=j.Decorate(l.resultsAdapter,w)),l.selectOnClose&&(l.resultsAdapter=j.Decorate(l.resultsAdapter,A))),null==l.dropdownAdapter){if(l.multiple)l.dropdownAdapter=u;else{var E=j.Decorate(u,v);l.dropdownAdapter=E}if(0!==l.minimumResultsForSearch&&(l.dropdownAdapter=j.Decorate(l.dropdownAdapter,z)),l.closeOnSelect&&(l.dropdownAdapter=j.Decorate(l.dropdownAdapter,B)),null!=l.dropdownCssClass||null!=l.dropdownCss||null!=l.adaptDropdownCssClass){var F=b(l.amdBase+"compat/dropdownCss");l.dropdownAdapter=j.Decorate(l.dropdownAdapter,F)}l.dropdownAdapter=j.Decorate(l.dropdownAdapter,y)}if(null==l.selectionAdapter){if(l.multiple?l.selectionAdapter=e:l.selectionAdapter=d,null!=l.placeholder&&(l.selectionAdapter=j.Decorate(l.selectionAdapter,f)),l.allowClear&&(l.selectionAdapter=j.Decorate(l.selectionAdapter,g)),l.multiple&&(l.selectionAdapter=j.Decorate(l.selectionAdapter,h)),null!=l.containerCssClass||null!=l.containerCss||null!=l.adaptContainerCssClass){var G=b(l.amdBase+"compat/containerCss");l.selectionAdapter=j.Decorate(l.selectionAdapter,G)}l.selectionAdapter=j.Decorate(l.selectionAdapter,i)}if("string"==typeof l.language)if(l.language.indexOf("-")>0){var H=l.language.split("-"),I=H[0];l.language=[l.language,I]}else l.language=[l.language];if(a.isArray(l.language)){var J=new k;l.language.push("en");for(var K=l.language,L=0;L<K.length;L++){var M=K[L],N={};try{N=k.loadPath(M)}catch(a){try{M=this.defaults.amdLanguageBase+M,N=k.loadPath(M)}catch(a){l.debug&&window.console&&console.warn&&console.warn('Select2: The language file for "'+M+'" could not be automatically loaded. A fallback will be used instead.');continue}}J.extend(N)}l.translations=J}else{var O=k.loadPath(this.defaults.amdLanguageBase+"en"),P=new k(l.language);P.extend(O),l.translations=P}return l},D.prototype.reset=function(){function b(a){function b(a){return l[a]||a}return a.replace(/[^\u0000-\u007E]/g,b)}function c(d,e){if(""===a.trim(d.term))return e;if(e.children&&e.children.length>0){for(var f=a.extend(!0,{},e),g=e.children.length-1;g>=0;g--){null==c(d,e.children[g])&&f.children.splice(g,1)}return f.children.length>0?f:c(d,f)}var h=b(e.text).toUpperCase(),i=b(d.term).toUpperCase();return h.indexOf(i)>-1?e:null}this.defaults={amdBase:"./",amdLanguageBase:"./i18n/",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:j.escapeMarkup,language:C,matcher:c,minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,sorter:function(a){return a},templateResult:function(a){return a.text},templateSelection:function(a){return a.text},theme:"default",width:"resolve"}},D.prototype.set=function(b,c){var d=a.camelCase(b),e={};e[d]=c;var f=j._convertData(e);a.extend(this.defaults,f)},new D}),b.define("select2/options",["require","jquery","./defaults","./utils"],function(a,b,c,d){function e(b,e){if(this.options=b,null!=e&&this.fromElement(e),this.options=c.apply(this.options),e&&e.is("input")){var f=a(this.get("amdBase")+"compat/inputData");this.options.dataAdapter=d.Decorate(this.options.dataAdapter,f)}}return e.prototype.fromElement=function(a){var c=["select2"];null==this.options.multiple&&(this.options.multiple=a.prop("multiple")),null==this.options.disabled&&(this.options.disabled=a.prop("disabled")),null==this.options.language&&(a.prop("lang")?this.options.language=a.prop("lang").toLowerCase():a.closest("[lang]").prop("lang")&&(this.options.language=a.closest("[lang]").prop("lang"))),null==this.options.dir&&(a.prop("dir")?this.options.dir=a.prop("dir"):a.closest("[dir]").prop("dir")?this.options.dir=a.closest("[dir]").prop("dir"):this.options.dir="ltr"),a.prop("disabled",this.options.disabled),a.prop("multiple",this.options.multiple),a.data("select2Tags")&&(this.options.debug&&window.console&&console.warn&&console.warn('Select2: The `data-select2-tags` attribute has been changed to use the `data-data` and `data-tags="true"` attributes and will be removed in future versions of Select2.'),a.data("data",a.data("select2Tags")),a.data("tags",!0)),a.data("ajaxUrl")&&(this.options.debug&&window.console&&console.warn&&console.warn("Select2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of Select2."),a.attr("ajax--url",a.data("ajaxUrl")),a.data("ajax--url",a.data("ajaxUrl")));var e={};e=b.fn.jquery&&"1."==b.fn.jquery.substr(0,2)&&a[0].dataset?b.extend(!0,{},a[0].dataset,a.data()):a.data();var f=b.extend(!0,{},e);f=d._convertData(f);for(var g in f)b.inArray(g,c)>-1||(b.isPlainObject(this.options[g])?b.extend(this.options[g],f[g]):this.options[g]=f[g]);return this},e.prototype.get=function(a){return this.options[a]},e.prototype.set=function(a,b){this.options[a]=b},e}),b.define("select2/core",["jquery","./options","./utils","./keys"],function(a,b,c,d){var e=function(a,c){null!=a.data("select2")&&a.data("select2").destroy(),this.$element=a,this.id=this._generateId(a),c=c||{},this.options=new b(c,a),e.__super__.constructor.call(this);var d=a.attr("tabindex")||0;a.data("old-tabindex",d),a.attr("tabindex","-1");var f=this.options.get("dataAdapter");this.dataAdapter=new f(a,this.options);var g=this.render();this._placeContainer(g);var h=this.options.get("selectionAdapter");this.selection=new h(a,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,g);var i=this.options.get("dropdownAdapter");this.dropdown=new i(a,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,g);var j=this.options.get("resultsAdapter");this.results=new j(a,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var k=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current(function(a){k.trigger("selection:update",{data:a})}),a.addClass("select2-hidden-accessible"),a.attr("aria-hidden","true"),this._syncAttributes(),a.data("select2",this)};return c.Extend(e,c.Observable),e.prototype._generateId=function(a){var b="";return b=null!=a.attr("id")?a.attr("id"):null!=a.attr("name")?a.attr("name")+"-"+c.generateChars(2):c.generateChars(4),b=b.replace(/(:|\.|\[|\]|,)/g,""),b="select2-"+b},e.prototype._placeContainer=function(a){a.insertAfter(this.$element);var b=this._resolveWidth(this.$element,this.options.get("width"));null!=b&&a.css("width",b)},e.prototype._resolveWidth=function(a,b){var c=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if("resolve"==b){var d=this._resolveWidth(a,"style");return null!=d?d:this._resolveWidth(a,"element")}if("element"==b){var e=a.outerWidth(!1);return e<=0?"auto":e+"px"}if("style"==b){var f=a.attr("style");if("string"!=typeof f)return null;for(var g=f.split(";"),h=0,i=g.length;h<i;h+=1){var j=g[h].replace(/\s/g,""),k=j.match(c);if(null!==k&&k.length>=1)return k[1]}return null}return b},e.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container),this.selection.bind(this,this.$container),this.dropdown.bind(this,this.$container),this.results.bind(this,this.$container)},e.prototype._registerDomEvents=function(){var b=this;this.$element.on("change.select2",function(){b.dataAdapter.current(function(a){b.trigger("selection:update",{data:a})})}),this.$element.on("focus.select2",function(a){b.trigger("focus",a)}),this._syncA=c.bind(this._syncAttributes,this),this._syncS=c.bind(this._syncSubtree,this),this.$element[0].attachEvent&&this.$element[0].attachEvent("onpropertychange",this._syncA);var d=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;null!=d?(this._observer=new d(function(c){a.each(c,b._syncA),a.each(c,b._syncS)}),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})):this.$element[0].addEventListener&&(this.$element[0].addEventListener("DOMAttrModified",b._syncA,!1),this.$element[0].addEventListener("DOMNodeInserted",b._syncS,!1),this.$element[0].addEventListener("DOMNodeRemoved",b._syncS,!1))},e.prototype._registerDataEvents=function(){var a=this;this.dataAdapter.on("*",function(b,c){a.trigger(b,c)})},e.prototype._registerSelectionEvents=function(){var b=this,c=["toggle","focus"];this.selection.on("toggle",function(){b.toggleDropdown()}),this.selection.on("focus",function(a){b.focus(a)}),this.selection.on("*",function(d,e){-1===a.inArray(d,c)&&b.trigger(d,e)})},e.prototype._registerDropdownEvents=function(){var a=this;this.dropdown.on("*",function(b,c){a.trigger(b,c)})},e.prototype._registerResultsEvents=function(){var a=this;this.results.on("*",function(b,c){a.trigger(b,c)})},e.prototype._registerEvents=function(){var a=this;this.on("open",function(){a.$container.addClass("select2-container--open")}),this.on("close",function(){a.$container.removeClass("select2-container--open")}),this.on("enable",function(){a.$container.removeClass("select2-container--disabled")}),this.on("disable",function(){a.$container.addClass("select2-container--disabled")}),this.on("blur",function(){a.$container.removeClass("select2-container--focus")}),this.on("query",function(b){a.isOpen()||a.trigger("open",{}),this.dataAdapter.query(b,function(c){a.trigger("results:all",{data:c,query:b})})}),this.on("query:append",function(b){this.dataAdapter.query(b,function(c){a.trigger("results:append",{data:c,query:b})})}),this.on("keypress",function(b){var c=b.which;a.isOpen()?c===d.ESC||c===d.TAB||c===d.UP&&b.altKey?(a.close(),b.preventDefault()):c===d.ENTER?(a.trigger("results:select",{}),b.preventDefault()):c===d.SPACE&&b.ctrlKey?(a.trigger("results:toggle",{}),b.preventDefault()):c===d.UP?(a.trigger("results:previous",{}),b.preventDefault()):c===d.DOWN&&(a.trigger("results:next",{}),b.preventDefault()):(c===d.ENTER||c===d.SPACE||c===d.DOWN&&b.altKey)&&(a.open(),b.preventDefault())})},e.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.options.get("disabled")?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},e.prototype._syncSubtree=function(a,b){var c=!1,d=this;if(!a||!a.target||"OPTION"===a.target.nodeName||"OPTGROUP"===a.target.nodeName){if(b)if(b.addedNodes&&b.addedNodes.length>0)for(var e=0;e<b.addedNodes.length;e++){var f=b.addedNodes[e];f.selected&&(c=!0)}else b.removedNodes&&b.removedNodes.length>0&&(c=!0);else c=!0;c&&this.dataAdapter.current(function(a){d.trigger("selection:update",{data:a})})}},e.prototype.trigger=function(a,b){var c=e.__super__.trigger,d={open:"opening",close:"closing",select:"selecting",unselect:"unselecting"};if(void 0===b&&(b={}),a in d){var f=d[a],g={prevented:!1,name:a,args:b};if(c.call(this,f,g),g.prevented)return void(b.prevented=!0)}c.call(this,a,b)},e.prototype.toggleDropdown=function(){this.options.get("disabled")||(this.isOpen()?this.close():this.open())},e.prototype.open=function(){this.isOpen()||this.trigger("query",{})},e.prototype.close=function(){this.isOpen()&&this.trigger("close",{})},e.prototype.isOpen=function(){return this.$container.hasClass("select2-container--open")},e.prototype.hasFocus=function(){return this.$container.hasClass("select2-container--focus")},e.prototype.focus=function(a){this.hasFocus()||(this.$container.addClass("select2-container--focus"),this.trigger("focus",{}))},e.prototype.enable=function(a){this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.'),null!=a&&0!==a.length||(a=[!0]);var b=!a[0];this.$element.prop("disabled",b)},e.prototype.data=function(){this.options.get("debug")&&arguments.length>0&&window.console&&console.warn&&console.warn('Select2: Data can no longer be set using `select2("data")`. You should consider setting the value instead using `$element.val()`.');var a=[];return this.dataAdapter.current(function(b){a=b}),a},e.prototype.val=function(b){if(this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.'),null==b||0===b.length)return this.$element.val();var c=b[0];a.isArray(c)&&(c=a.map(c,function(a){return a.toString()})),this.$element.val(c).trigger("change")},e.prototype.destroy=function(){this.$container.remove(),this.$element[0].detachEvent&&this.$element[0].detachEvent("onpropertychange",this._syncA),null!=this._observer?(this._observer.disconnect(),this._observer=null):this.$element[0].removeEventListener&&(this.$element[0].removeEventListener("DOMAttrModified",this._syncA,!1),this.$element[0].removeEventListener("DOMNodeInserted",this._syncS,!1),this.$element[0].removeEventListener("DOMNodeRemoved",this._syncS,!1)),this._syncA=null,this._syncS=null,this.$element.off(".select2"),this.$element.attr("tabindex",this.$element.data("old-tabindex")),this.$element.removeClass("select2-hidden-accessible"),this.$element.attr("aria-hidden","false"),this.$element.removeData("select2"),this.dataAdapter.destroy(),this.selection.destroy(),this.dropdown.destroy(),this.results.destroy(),this.dataAdapter=null,this.selection=null,this.dropdown=null,this.results=null},e.prototype.render=function(){var b=a('<span class="select2 select2-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>');return b.attr("dir",this.options.get("dir")),this.$container=b,this.$container.addClass("select2-container--"+this.options.get("theme")),b.data("element",this.$element),b},e}),b.define("jquery-mousewheel",["jquery"],function(a){return a}),b.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults"],function(a,b,c,d){if(null==a.fn.select2){var e=["open","close","destroy"];a.fn.select2=function(b){if("object"==typeof(b=b||{}))return this.each(function(){var d=a.extend(!0,{},b);new c(a(this),d)}),this;if("string"==typeof b){var d,f=Array.prototype.slice.call(arguments,1);return this.each(function(){var c=a(this).data("select2");null==c&&window.console&&console.error&&console.error("The select2('"+b+"') method was called on an element that is not using Select2."),d=c[b].apply(c,f)}),a.inArray(b,e)>-1?this:d}throw new Error("Invalid arguments for Select2: "+b)}}return null==a.fn.select2.defaults&&(a.fn.select2.defaults=d),c}),{define:b.define,require:b.require}}(),c=b.require("jquery.select2");return a.fn.select2.amd=b,c});
js/settings.js CHANGED
@@ -170,6 +170,13 @@ jQuery(document).ready(function($){
170
 
171
  });
172
 
 
 
 
 
 
 
 
173
  videoPreview = function() {
174
  var source = $('.banner-video-source').val();
175
  $('.video-wrapper').css('padding-top', '0');
@@ -263,13 +270,14 @@ jQuery(document).ready(function($){
263
  jQuery('.youtube-source-input').css('display','none');
264
  jQuery('.vimeo-source-input').css('display','none');
265
  jQuery('.file-source-input').css('display','block');
 
266
  break;
267
  default:
268
  jQuery('.file-source-input').css('display','block');
269
  jQuery('.youtube-source-input').css('display','none');
270
  jQuery('.vimeo-source-input').css('display','none');
271
  }
272
- videoPreview();
273
  });
274
  jQuery('#csoptions .banner-video-source').trigger('change');
275
 
@@ -419,96 +427,15 @@ jQuery(document).ready(function($){
419
  });
420
 
421
 
422
- // Google FONTS
423
- var heading_family = '';
424
- var content_family = '';
425
- if ( jQuery('.niteoCS_font_headings option:selected').val() == 'custom') {
426
- heading_family = ucwords(strtolower(jQuery('#niteoCS_font_headings_custom').val()));
427
- } else {
428
- heading_family = jQuery('.niteoCS_font_headings option:selected').val();
429
- }
430
-
431
- if ( jQuery('.niteoCS_font_content option:selected').val() == 'custom') {
432
- content_family = ucwords(strtolower(jQuery('#niteoCS_font_content_custom').val()));
433
- } else {
434
- content_family = jQuery('.niteoCS_font_contentoption:selected').val();
435
- }
436
-
437
- WebFont.load({
438
- google: {
439
- families: [ ucwords(strtolower(heading_family)), ucwords(strtolower(content_family)) ]
440
- },
441
- active: function() {
442
- $('#heading-example, #niteoCS-text-logo').css('font-family', heading_family );
443
- $('#content-example').css('font-family', content_family );
444
- },
445
- });
446
-
447
- // Font selector heading
448
- jQuery('.niteoCS_font_headings').on('change', function() {
449
- niteoCS_font_headings = jQuery('.niteoCS_font_headings option:selected').val();
450
- if ( niteoCS_font_headings == 'custom') {
451
- jQuery('#custom_headings_font').css('display', 'block');
452
- jQuery('#custom_headings_font').data('timeout', null).keyup(function(){
453
- clearTimeout(jQuery(this).data('timeout'));
454
- jQuery(this).data('timeout', setTimeout(function(){
455
-
456
- WebFont.load({
457
- google: {
458
- families: [ ucwords(strtolower(jQuery('#niteoCS_font_headings_custom').val())) ]
459
- },
460
- active: function() {
461
- $('#heading-example, #niteoCS-text-logo').css('font-family', jQuery('#niteoCS_font_headings_custom').val() );
462
- },
463
- });
464
- }, 1000));
465
- });
466
-
467
- } else {
468
- jQuery('#custom_headings_font').css('display', 'none');
469
- WebFont.load({
470
- google: {
471
- families: [niteoCS_font_headings]
472
- },
473
- active: function() {
474
- $('#heading-example, #niteoCS-text-logo').css('font-family', niteoCS_font_headings ? niteoCS_font_headings : '' );
475
- },
476
- });;
477
- }
478
  });
479
 
480
- // Font selector content
481
- jQuery('.niteoCS_font_content').on('change', function() {
482
- niteoCS_font_content = jQuery('.niteoCS_font_content option:selected').val();
483
- if ( niteoCS_font_content == 'custom') {
484
- jQuery('#custom_content_font').css('display', 'block');
485
- jQuery('#custom_content_font').data('timeout', null).keyup(function(){
486
- clearTimeout(jQuery(this).data('timeout'));
487
- jQuery(this).data('timeout', setTimeout(function(){
488
-
489
- WebFont.load({
490
- google: {
491
- families: [ ucwords(strtolower(jQuery('#niteoCS_font_content_custom').val())) ]
492
- },
493
- active: function() {
494
- $('#content-example').css('font-family', jQuery('#niteoCS_font_content_custom').val() );
495
- },
496
- });
497
- }, 1000));
498
- });
499
-
500
- } else {
501
- jQuery('#custom_content_font').css('display', 'none');
502
- WebFont.load({
503
- google: {
504
- families: [niteoCS_font_content]
505
- },
506
- active: function() {
507
- $('#content-example').css('font-family', niteoCS_font_content ? niteoCS_font_content : '' );
508
- },
509
- });
510
-
511
- }
512
  });
513
 
514
 
@@ -720,6 +647,7 @@ jQuery(document).ready(function($){
720
  remoteUrl = $wrapper.data('remote_url'),
721
  type = $wrapper.data('type'),
722
  purchased = $wrapper.data('purchased'),
 
723
  noticeHtml = '',
724
  security = jQuery('.update-theme').data('security'),
725
  i = 0;
@@ -760,7 +688,14 @@ jQuery(document).ready(function($){
760
  if ( purchased != '1' && type == 'premium' ){
761
  var buttonDisabled = 'disabled ';
762
  var buyURL = $wrapper.find('a').attr('href');
763
- var buyButton = '<button type="button" class="theme-purchase button hide"><a href="'+buyURL+'" target="_blank"><i class="fa fa-cart-arrow-down" aria-hidden="true"></i>Buy</a></button>';
 
 
 
 
 
 
 
764
  }
765
 
766
  // get screenshots
@@ -792,7 +727,7 @@ jQuery(document).ready(function($){
792
  ' </div>',
793
  ' <div class="theme-actions">',
794
  ' <button type="submit" '+buttonDisabled+'class="button activate" name="Submit" aria-label="Select '+response['name']+'">Activate</button>',
795
- ' <a href="http://cmp.niteothemes.com/?cmp_preview=true&theme='+slug+'&utm_source=cmp&utm_medium=referral&utm_campaign='+slug+'" class="button cmp-preview" target="_blank" aria-label="Preview '+response['name']+'">Live Preview</a>',
796
  ' </div>',
797
  ' </div>',
798
  '</div>',
@@ -878,6 +813,19 @@ jQuery(document).ready(function($){
878
  media_upload_button('video-thumb', false, 'image');
879
  media_upload_button('video', false, 'video');
880
 
 
 
 
 
 
 
 
 
 
 
 
 
 
881
 
882
  // define functions //
883
  function ucwords (str) {
170
 
171
  });
172
 
173
+ // change all selects to select2
174
+ jQuery('select:not(.headings-google-font):not(.content-google-font )').select2({
175
+ width: '100%',
176
+ minimumResultsForSearch: -1,
177
+
178
+ });
179
+
180
  videoPreview = function() {
181
  var source = $('.banner-video-source').val();
182
  $('.video-wrapper').css('padding-top', '0');
270
  jQuery('.youtube-source-input').css('display','none');
271
  jQuery('.vimeo-source-input').css('display','none');
272
  jQuery('.file-source-input').css('display','block');
273
+ videoPreview();
274
  break;
275
  default:
276
  jQuery('.file-source-input').css('display','block');
277
  jQuery('.youtube-source-input').css('display','none');
278
  jQuery('.vimeo-source-input').css('display','none');
279
  }
280
+
281
  });
282
  jQuery('#csoptions .banner-video-source').trigger('change');
283
 
427
  });
428
 
429
 
430
+ // preview animation
431
+ jQuery('.heading-animation').on('change', function() {
432
+ heading_anim = jQuery('.heading-animation option:selected').val();
433
+ jQuery('#heading-example').removeClass().addClass('animated ' + heading_anim);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
434
  });
435
 
436
+ jQuery('.content-animation').on('change', function() {
437
+ heading_anim = jQuery('.content-animation option:selected').val();
438
+ jQuery('#content-example').removeClass().addClass('animated ' + heading_anim);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
439
  });
440
 
441
 
647
  remoteUrl = $wrapper.data('remote_url'),
648
  type = $wrapper.data('type'),
649
  purchased = $wrapper.data('purchased'),
650
+ freebie = $wrapper.data('freebie'),
651
  noticeHtml = '',
652
  security = jQuery('.update-theme').data('security'),
653
  i = 0;
688
  if ( purchased != '1' && type == 'premium' ){
689
  var buttonDisabled = 'disabled ';
690
  var buyURL = $wrapper.find('a').attr('href');
691
+ // check for freebie
692
+ if ( !freebie ) {
693
+ var buyButton = '<button type="button" class="theme-purchase button hide"><a href="'+buyURL+'" target="_blank"><i class="fa fa-cart-arrow-down" aria-hidden="true"></i>Buy</a></button>';
694
+
695
+ } else if ( freebie ) {
696
+ var buyButton = '<button type="button" class="theme-purchase button hide"><a href="'+buyURL+'" target="_blank"><i class="fa fa-download" aria-hidden="true"></i>FREE Download</a></button>';
697
+ }
698
+
699
  }
700
 
701
  // get screenshots
727
  ' </div>',
728
  ' <div class="theme-actions">',
729
  ' <button type="submit" '+buttonDisabled+'class="button activate" name="Submit" aria-label="Select '+response['name']+'">Activate</button>',
730
+ ' <a href="http://cmp.niteothemes.com/?cmp_preview=true&selector=true&theme='+slug+'&utm_source=cmp&utm_medium=referral&utm_campaign='+slug+'" class="button cmp-preview" target="_blank" aria-label="Preview '+response['name']+'">Live Preview</a>',
731
  ' </div>',
732
  ' </div>',
733
  '</div>',
813
  media_upload_button('video-thumb', false, 'image');
814
  media_upload_button('video', false, 'video');
815
 
816
+ $('#niteoCS_overlay_opacity').on('input', function () {
817
+ $(this).trigger('change');
818
+ });
819
+
820
+ jQuery('#niteoCS_overlay_opacity').change(function(){
821
+ if (this.value == 0) {
822
+ jQuery('#current-opacity').html(': transparent');
823
+
824
+ } else {
825
+ jQuery('#current-opacity').html(': '+this.value);
826
+ }
827
+ });
828
+
829
 
830
  // define functions //
831
  function ucwords (str) {
js/settings.min.js CHANGED
@@ -1,35 +1,32 @@
1
- jQuery(document).ready(function($){var formChanged=!1;var tab=document.location.hash.substring(1);var action=jQuery('#csoptions').attr('action');navtab=function(tab){jQuery('.nav-tab-wrapper .nav-tab').removeClass('nav-tab-active');jQuery('.nav-tab-wrapper .'+tab).addClass('nav-tab-active');jQuery('.table-wrapper.'+tab).css('display','block');jQuery('.comingsoon.'+tab).css('display','block');jQuery('.table-wrapper:not(.'+tab+')').css('display','none');jQuery('.comingsoon:not(.'+tab+')').css('display','none');if(tab=='install'){jQuery('.submit').css('display','none');jQuery('#csoptions').attr('action',action)}else{jQuery('.submit').css('display','block');jQuery('#csoptions').attr('action',action+'#'+tab)}}
2
- if(tab!=''){navtab(tab)}
3
- window.onhashchange=function(){tab=document.location.hash.substring(1);navtab(tab)}
4
- $('.nav-tab:not(.theme-preview)').click(function(e){e.preventDefault();tab=$(this).data('tab');document.location.hash=tab});jQuery('#cmp-status').click(function(){jQuery('.cmp-status input[type=radio]').prop("disabled",(_,val)=>!val);jQuery('#cmp-status-menubar').prop("checked",(_,val)=>!val)});cmp_status_inputs();function cmp_status_inputs(){jQuery('.cmp-status legend:not(.disabled)').click(function(){if(jQuery('#cmp-status').prop('checked')==!1){return}
5
- var $children=jQuery(this).children('input');$children.prop("checked",!0);jQuery('.cmp-status legend').removeClass('active');jQuery(this).addClass('active');$children.trigger('change');if($children.val()=='3'){jQuery('.redirect-inputs').fadeIn('fast')}else{jQuery('.redirect-inputs').fadeOut('fast')}})}
6
- jQuery('.table-wrapper h3').click(function(){jQuery(this).parent().toggleClass('closed')});jQuery('.niteoCS-logo-type').change(function(){if(jQuery('.niteoCS-logo-type:checked').val()=='text'){jQuery('.text-logo').css('display','block');jQuery('.graphic-logo').css('display','none');jQuery('.disabled-logo').css('display','none')}else if(jQuery('.niteoCS-logo-type:checked').val()=='graphic'){jQuery('.text-logo').css('display','none');jQuery('.graphic-logo').css('display','block');jQuery('.disabled-logo').css('display','none')}else if(jQuery('.niteoCS-logo-type:checked').val()=='disabled'){jQuery('.text-logo').css('display','none');jQuery('.graphic-logo').css('display','none');jQuery('.disabled-logo').css('display','block')}});jQuery('#test-unsplash').click(function(e){e.preventDefault();var media_wrapper=jQuery('#unsplash-media'),unsplash_feed=jQuery('#unsplash_banner select[name^="unsplash_feed"] option:selected').val(),unsp_url='',cat='',custom_str='',security=jQuery(this).data('security');switch(unsplash_feed){case '0':unsp_url=jQuery('#niteoCS-unsplash-0').val();break;case '1':unsp_url=jQuery('#niteoCS-unsplash-1').val();cat=jQuery('#unsplash_banner select[name^="unsplash_category"] option:selected').val();custom_str=jQuery('#niteoCS-category-keyword').val();break;case '2':unsp_url=jQuery('#niteoCS-unsplash-2').val();break;case '3':unsp_url=jQuery('#niteoCS-unsplash-3').val();if(jQuery('#niteoCS_unsplash_feat').is(':checked')){cat='1'}else{cat='0'}
7
  break;default:}
8
- var params={feed:unsplash_feed,url:unsp_url,cat:cat,custom_str:custom_str};jQuery(this).prop('disabled',!0);jQuery(this).html('<i class="fa fa-cog fa-spin fa-1x fa-fw"></i><span> loading..</span>');media_wrapper.html('');var data={action:'niteo_unsplash',security:security,params:params};$.post(ajaxurl,data,function(response){jQuery('#unsplash_img').remove();img_url=response.replace('WIDTHxHEIGHT','588x330');var loadingTimeout=setTimeout(function(){jQuery('#test-unsplash').prop('disabled',!1);jQuery('#test-unsplash').text('Test Again');jQuery('#unsplash-media').html('<p>It seems <a href="http://source.unsplash.com" target="_blank">source.unsplash.com</a> is not responding. Please try again later.')},5000);jQuery('<img />',{src:img_url,id:'unsplash_img'}).one('load',function(){jQuery(this).appendTo(media_wrapper);jQuery(this).fadeIn();jQuery('#test-unsplash').prop('disabled',!1);jQuery('#test-unsplash').text('Test Unsplash');clearTimeout(loadingTimeout)})})});videoPreview=function(){var source=$('.banner-video-source').val();$('.video-wrapper').css('padding-top','0');if(source=='YouTube'){var youtubeLink=$('#niteoCS-youtube-url').val();if(youtubeLink.match(/(youtube.com)/)){var split_c='v=';var split_n=1}
9
- if(youtubeLink.match(/(youtu.be)/)||youtubeLink.match(/(vimeo.com\/)+[0-9]/)){var split_c='/';var split_n=3}
10
- if(source=='vimeo'){var youtubeLink=$('#niteoCS-vimeo-url').val();if(youtubeLink.match(/(vimeo.com\/)+[a-zA-Z]/)){var split_c='/';var split_n=5}}
11
- if(youtubeLink){var getYouTubeVideoID=youtubeLink.split(split_c)[split_n];if(getYouTubeVideoID!=undefined){var cleanVideoID=getYouTubeVideoID.replace(/(&)+(.*)/,'');if(source=='banner_youtube'&&youtubeLink.match(/(youtu.be)/)||youtubeLink.match(/(youtube.com)/)){var videoEmbedLink='https://www.youtube.com/embed/'+cleanVideoID+'?autoplay=0'}
12
- if(source=='banner_vimeo'&&youtubeLink.match(/(vimeo.com\/)+[0-9]/)||youtubeLink.match(/(vimeo.com\/)+[a-zA-Z]/)){var videoEmbedLink='https://player.vimeo.com/video/'+cleanVideoID+'?autoplay=0'}
13
- var $iframe=$('<iframe src="'+videoEmbedLink+'" allowfullscreen></iframe>');$('.video-wrapper').html($iframe);var videoRatio=($iframe.height()/$iframe.width())*100;$iframe.css('position','absolute');$iframe.css('top','0');$iframe.css('left','0');$iframe.css('width','100%');$iframe.css('height','100%');$('.video-wrapper').css('padding-top',videoRatio+'%');$('#niteoCS-vimeo-url').css('border','1px solid #ddd');$('#niteoCS-youtube-url').css('border','1px solid #ddd')}else{$('.video-wrapper').text('Please enter correct '+source+' URL.').css('padding-top','0');$('#niteoCS-vimeo-url').css('border','1px solid #d60000');$('#niteoCS-youtube-url').css('border','1px solid #d60000')}}else{$('.video-wrapper').text('Please enter '+source+' URL.').css('padding-top','0');$('#niteoCS-vimeo-url').css('border','1px solid #d60000');$('#niteoCS-youtube-url').css('border','1px solid #d60000')}}
14
- if(source=='video/mp4'){var videoURL=jQuery('#niteoCS-video-id').data('url');if(videoURL!=''){$('.video-wrapper').html('<video width="600" height="400" controls><source src="'+videoURL+'" type="video/mp4">Your browser does not support the video tag.</video>')}}};jQuery('#niteoCS-youtube-url').keyup(function(){videoPreview()});jQuery('#csoptions .banner-video-source').change(function(){switch(jQuery('#csoptions .banner-video-source').val()){case 'YouTube':jQuery('.youtube-source-input').css('display','block');jQuery('.vimeo-source-input').css('display','none');jQuery('.file-source-input').css('display','none');break;case 'vimeo':jQuery('.youtube-source-input').css('display','none');jQuery('.vimeo-source-input').css('display','block');jQuery('.file-source-input').css('display','none');break;case 'video/mp4':jQuery('.youtube-source-input').css('display','none');jQuery('.vimeo-source-input').css('display','none');jQuery('.file-source-input').css('display','block');break;default:jQuery('.file-source-input').css('display','block');jQuery('.youtube-source-input').css('display','none');jQuery('.vimeo-source-input').css('display','none')}
15
- videoPreview()});jQuery('#csoptions .banner-video-source').trigger('change');jQuery('#csoptions .niteoCS_banner').change(function(){switch(jQuery('#csoptions .niteoCS_banner:checked').val()){case '0':jQuery('#custom_banner').css('display','block');jQuery('.theme_background fieldset:not(#custom_banner)').css('display','none');break;case '1':jQuery('#unsplash_banner').css('display','block');jQuery('.theme_background fieldset:not(#unsplash_banner)').css('display','none');break;case '2':jQuery('#default_banner').css('display','block');jQuery('.theme_background fieldset:not(#default_banner)').css('display','none');break;case '3':jQuery('#graphic_pattern').css('display','block');jQuery('.theme_background fieldset:not(#graphic_pattern)').css('display','none');break;case '4':jQuery('#solid_color').css('display','block');jQuery('.theme_background fieldset:not(#solid_color)').css('display','none');break;case '5':jQuery('#video_banner').css('display','block');jQuery('.theme_background fieldset:not(#video_banner)').css('display','none');videoPreview();break;case '6':jQuery('#gradient_background').css('display','block');jQuery('.theme_background fieldset:not(#gradient_background)').css('display','none');break;default:jQuery('#custom_banner').css('display','block');jQuery('.theme_background fieldset:not(#custom_banner)').css('display','none')}});jQuery('#csoptions .niteoCS_banner').trigger('change');var unsplasfeed=jQuery('#unsplash_banner select[name^="unsplash_feed"] option:selected').val();jQuery('#unsplash-feed-'+unsplasfeed).css('display','block');jQuery('#unsplash_banner select[name^="unsplash_feed"]').on('change',function(){unsplasfeed=jQuery('#unsplash_banner select[name^="unsplash_feed"] option:selected').val();jQuery('.unsplash-feed').css('display','none');jQuery('#unsplash-feed-'+unsplasfeed).css('display','block')})
16
- jQuery('select.background-gradient').on('change',function(){var gradient=jQuery('select.background-gradient option:selected').val();if(gradient=='custom'){jQuery('.custom-gradient').css('display','block');jQuery('.gradient-preview').css({'background':'-moz-linear-gradient(-45deg, '+jQuery('#niteoCS_gradient_one').val()+' 0%, '+jQuery('#niteoCS_gradient_two').val()+' 100%)','background':'-webkit-linear-gradient(-45deg, '+jQuery('#niteoCS_gradient_one').val()+' 0%, '+jQuery('#niteoCS_gradient_two').val()+' 100%)','background':'linear-gradient(135deg, '+jQuery('#niteoCS_gradient_one').val()+' 0%, '+jQuery('#niteoCS_gradient_two').val()+' 100%)'})}else{colors=gradient.split(':');jQuery('.custom-gradient').css('display','none');jQuery('.gradient-preview').css({'background':'-moz-linear-gradient(-45deg, '+colors[0]+' 0%, '+colors[1]+' 100%)','background':'-webkit-linear-gradient(-45deg, '+colors[0]+' 0%, '+colors[1]+' 100%)','background':'linear-gradient(135deg, '+colors[0]+' 0%, '+colors[1]+' 100%)'})}});jQuery('#niteoCS_banner_color').wpColorPicker({change:function(event,ui){jQuery('.color-preview').css('background-color',ui.color.toString())}});jQuery('#niteoCS_gradient_one').wpColorPicker({change:function(event,ui){jQuery('.gradient-preview').css({'background':'-moz-linear-gradient(-45deg, '+ui.color.toString()+' 0%, '+jQuery('#niteoCS_gradient_two').val()+' 100%)','background':'-webkit-linear-gradient(-45deg, '+ui.color.toString()+' 0%, '+jQuery('#niteoCS_gradient_two').val()+' 100%)','background':'linear-gradient(135deg, '+ui.color.toString()+' 0%, '+jQuery('#niteoCS_gradient_two').val()+' 100%)'})}});jQuery('#niteoCS_gradient_two').wpColorPicker({change:function(event,ui){jQuery('.gradient-preview').css({'background':'-moz-linear-gradient(-45deg, '+jQuery('#niteoCS_gradient_one').val()+' 0%, '+ui.color.toString()+' 100%)','background':'-webkit-linear-gradient(-45deg, '+jQuery('#niteoCS_gradient_one').val()+' 0%, '+ui.color.toString()+' 100%)','background':'linear-gradient(135deg, '+jQuery('#niteoCS_gradient_one').val()+' 0%, '+ui.color.toString()+' 100%)'})}});jQuery('select[name^="niteoCS_banner_pattern"]').on('change',function(){var pattern=jQuery('select[name^="niteoCS_banner_pattern"] option:selected').val();if(pattern!='custom'){var pattern_url=jQuery(this).data('url');jQuery('#add-pattern').css('display','none');jQuery('.pattern-wrapper').css('background-image','url(\''+pattern_url+pattern+'.png\')')}else{var pattern_url=jQuery('#niteoCS_banner_pattern_custom').val();jQuery('#add-pattern').css('display','block');jQuery('.pattern-wrapper').css('background-image','url(\''+pattern_url+'\')')}});if(jQuery('#niteoCS_subscribe').prop('checked')==!0){jQuery('.subscribe').css('display','block')}
17
- jQuery('#niteoCS_subscribe').change(function(){if(jQuery(this)[0].checked){jQuery('.subscribe').css('display','block')}else{jQuery('.subscribe').css('display','none')}});jQuery('#csoptions input[name="niteoCS_subscribe_type"]').change(function(){if(jQuery('#csoptions input[name="niteoCS_subscribe_type"]:checked').val()==0){jQuery('#subscribe-disabled').css('display','block');jQuery('#subscribe-3rdparty').css('display','none');jQuery('#subscribe-niteo').css('display','none')}else if(jQuery('#csoptions input[name="niteoCS_subscribe_type"]:checked').val()==1){jQuery('#subscribe-disabled').css('display','none');jQuery('#subscribe-3rdparty').css('display','block');jQuery('#subscribe-niteo').css('display','none')}else{jQuery('#subscribe-disabled').css('display','none');jQuery('#subscribe-3rdparty').css('display','none');jQuery('#subscribe-niteo').css('display','block')}});var heading_family='';var content_family='';if(jQuery('.niteoCS_font_headings option:selected').val()=='custom'){heading_family=ucwords(strtolower(jQuery('#niteoCS_font_headings_custom').val()))}else{heading_family=jQuery('.niteoCS_font_headings option:selected').val()}
18
- if(jQuery('.niteoCS_font_content option:selected').val()=='custom'){content_family=ucwords(strtolower(jQuery('#niteoCS_font_content_custom').val()))}else{content_family=jQuery('.niteoCS_font_contentoption:selected').val()}
19
- WebFont.load({google:{families:[ucwords(strtolower(heading_family)),ucwords(strtolower(content_family))]},active:function(){$('#heading-example, #niteoCS-text-logo').css('font-family',heading_family);$('#content-example').css('font-family',content_family)},});jQuery('.niteoCS_font_headings').on('change',function(){niteoCS_font_headings=jQuery('.niteoCS_font_headings option:selected').val();if(niteoCS_font_headings=='custom'){jQuery('#custom_headings_font').css('display','block');jQuery('#custom_headings_font').data('timeout',null).keyup(function(){clearTimeout(jQuery(this).data('timeout'));jQuery(this).data('timeout',setTimeout(function(){WebFont.load({google:{families:[ucwords(strtolower(jQuery('#niteoCS_font_headings_custom').val()))]},active:function(){$('#heading-example, #niteoCS-text-logo').css('font-family',jQuery('#niteoCS_font_headings_custom').val())},})},1000))})}else{jQuery('#custom_headings_font').css('display','none');WebFont.load({google:{families:[niteoCS_font_headings]},active:function(){$('#heading-example, #niteoCS-text-logo').css('font-family',niteoCS_font_headings?niteoCS_font_headings:'')},})}});jQuery('.niteoCS_font_content').on('change',function(){niteoCS_font_content=jQuery('.niteoCS_font_content option:selected').val();if(niteoCS_font_content=='custom'){jQuery('#custom_content_font').css('display','block');jQuery('#custom_content_font').data('timeout',null).keyup(function(){clearTimeout(jQuery(this).data('timeout'));jQuery(this).data('timeout',setTimeout(function(){WebFont.load({google:{families:[ucwords(strtolower(jQuery('#niteoCS_font_content_custom').val()))]},active:function(){$('#content-example').css('font-family',jQuery('#niteoCS_font_content_custom').val())},})},1000))})}else{jQuery('#custom_content_font').css('display','none');WebFont.load({google:{families:[niteoCS_font_content]},active:function(){$('#content-example').css('font-family',niteoCS_font_content?niteoCS_font_content:'')},})}});var update_social=function(name,key,val){var socialmedia=$('#niteoCS_socialmedia').attr('value');socialmedia=$.parseJSON(socialmedia);$.each(socialmedia,function(i,ele){if(ele.name==name){ele[key]=val}});$('#niteoCS_socialmedia').attr('value',JSON.stringify(socialmedia))};var $sortableList=$('.social-inputs');var sortEventHandler=function(event,ui){var inputs=$sortableList.find('input[type="text"]');var order=ui.item.index();inputs.each(function(i,ele){var name=$(ele).data('name');update_social(name,'order',i)})};$sortableList.sortable({stop:sortEventHandler});$sortableList.on('sortchange',sortEventHandler);(function($){$.fn.toggleDisabled=function(){return this.each(function(){var $this=$(this);var active;var name=$this.data('name');if($this.attr('disabled')){$this.prop('disabled',!1);active='1'}else{$this.prop('disabled',!0);active='0'}
20
- update_social(name,'active',active)})}})(jQuery);jQuery('.social-inputs input[type="text"]').focusout(function(){var name=jQuery(this).data('name');var socialurl=jQuery(this).attr('value');update_social(name,'url',socialurl)});jQuery('.social-inputs input[type="checkbox"]').click(function(e){var $this=$(this).siblings('input[type="text"]');$this.toggleDisabled()});jQuery('.social-media i').click(function(){var name=jQuery(this).data('name');jQuery(this).toggleClass('active');jQuery('.social-inputs li.'+name).toggleClass('active');jQuery('.social-inputs li.'+name+' input').trigger('change');if(jQuery(this).hasClass('active')){update_social(name,'hidden','0')}else{update_social(name,'hidden','1')}
21
- if(jQuery('.social-media i.active').length){jQuery('.social-inputs .label').css('display','block')}else{jQuery('.social-inputs .label').css('display','none')}});if(jQuery('.social-media i.active').length){jQuery('.social-inputs .label').css('display','block')}
22
- jQuery('.view-release').click(function(e){e.preventDefault();$this=jQuery(this);var release_url=$this.attr('href');jQuery.get(release_url,function(release){$this.closest('.notice').find('.release-note .notes').remove();$this.closest('.notice').find('.release-note').append('<div class="notes">'+release+'</div>')}).fail(function(){$this.closest('.notice').find('.release-note p').remove();$this.closest('.notice').find('.release-note').append('<p>There was an error loading release notes. Please try again later.</p>')})});jQuery('.update-theme').click(function(e){e.preventDefault();var $this=$(this),$parent=$this.parents('.notice'),security=$this.data('security'),slug=$this.data('slug'),type=$this.data('type'),themeName=$parent.find('.theme-name').text(),remoteUrl=jQuery(this).data('remote_url');update={'name':slug,'tmp_name':'','type':type,'url':remoteUrl+'?action=download&slug='+slug,}
23
- var data={action:'cmp_theme_update_install',security:security,file:update};$parent.find('.message').html('<i class="fa fa-cog fa-spin fa-1x fa-fw"></i><span class="sr-only">Updating heme...</span><span> working hard on updating Theme...</span>');$.post(ajaxurl,data,function(response){if(response=='success'){setTimeout(function(){$parent.removeClass('notice-warning').addClass('notice-success');$parent.find('.message').html('<span> '+themeName+' Theme was updated sucessfully! </span><i class="fa fa-smile-o" aria-hidden="true"></i>')},1500)}else{response=response.slice(0,-1);var error=$('p',$(response)).text();$parent.removeClass('notice-warning').addClass('notice-error');$parent.find('.message').html('<i class="fa fa-frown-o" aria-hidden="true"></i><span> '+error+'</span>')}})});jQuery('.theme-select').click(function(){jQuery(this).parent().find('input[name="select_theme"]').prop("checked",!0).trigger('change');jQuery('.theme-select').removeClass('selected');jQuery(this).parent().find('.theme-select').addClass('selected')});jQuery('.theme-update.button').one('click',function(e){e.preventDefault();var $this=$(this),$wrapper=$this.closest('.theme-wrapper'),security=$wrapper.data('security'),slug=$wrapper.data('slug'),type=$wrapper.data('type'),remoteUrl=$wrapper.data('remote_url');var update={'name':slug,'tmp_name':'','type':type,'url':remoteUrl+'?action=download&slug='+slug,}
24
- var data={action:'cmp_theme_update_install',security:security,file:update};$this.html('<i class="fa fa-cog fa-spin fa-1x fa-fw"></i><span>Updating..</span>');$.post(ajaxurl,data,function(response){if(response=='success'){setTimeout(function(){$this.html('<i class="fa fa-smile-o" aria-hidden="true"></i><span>Updated!</span>');setTimeout(function(){$this.fadeOut()},1500)},1500)}else{response=response.slice(0,-1);$this.html('<i class="fa fa-frown-o" aria-hidden="true"></i><span>Update Failed!</span>')}})});jQuery('.theme-details').click(function(){var $this=$(this),$wrapper=$this.closest('.theme-wrapper'),slug=$wrapper.data('slug'),version=$wrapper.data('version'),remoteUrl=$wrapper.data('remote_url'),type=$wrapper.data('type'),purchased=$wrapper.data('purchased'),noticeHtml='',security=jQuery('.update-theme').data('security'),i=0;var data={action:'niteo_themeinfo',security:jQuery('.theme-wrapper').data('security'),theme_slug:jQuery(this).parents('.theme-wrapper').data('slug'),};$.post(ajaxurl,data,function(response){var buttonDisabled='';var buyButton='';var versionInfo='';var noticeHtml='';response=jQuery.parseJSON(response);if(response.result=='true'){jQuery('body').addClass('modal-open');if(purchased=='1'&&type=='premium'){versionInfo='<span class="theme-version">Version: '+version+'</span>';if(jQuery('.update-theme').length){var newVer=jQuery('.update-theme').data('new_ver');noticeHtml='<div class="notice notice-warning notice-alt notice-large"><h3 class="notice-title">Update Available</h3><p class="message"><strong>There is a new version of '+response.name+' theme available. <a href="'+remoteUrl+'readme/'+slug+'-readme.php" class="view-release">View update '+newVer+' notes</a> or <a href="'+window.location.href+'&action=update-cmp-theme&theme='+slug+'&type='+type+'" class="update-theme" data-type="'+type+'" data-security="'+security+'" data-slug="'+slug+'" data-remote_url="'+remoteUrl+'">Update now.</a></strong></p><div class="release-note"></div></div>'}else{noticeHtml='<div class="notice notice-success notice-alt notice-large"><p>Theme is up to date.</p></div>'}}
25
- if(purchased!='1'&&type=='premium'){var buttonDisabled='disabled ';var buyURL=$wrapper.find('a').attr('href');var buyButton='<button type="button" class="theme-purchase button hide"><a href="'+buyURL+'" target="_blank"><i class="fa fa-cart-arrow-down" aria-hidden="true"></i>Buy</a></button>'}
26
- var screenshots=response.screenshots;var arrows='';if(Object.keys(screenshots).length>1){arrows='<div class="screenshots-nav"><div class="left"><i class="fa fa-chevron-left" aria-hidden="true"></i></div><div class="right"><i class="fa fa-chevron-right" aria-hidden="true"></i></div></div>'}
27
- var html=$(['<div class="theme-backdrop">',' <div class="theme-wrap">',' <div class="theme-header">',' <button class="close dashicons dashicons-no"><span class="screen-reader-text">Close details dialog</span></button>',' </div>',' <div class="theme-about">',' <div class="theme-screenshots">',' <div class="screenshot" style="background-image:url(\''+screenshots['0']+'\')">'+arrows+'</div>',' </div>',' <div class="theme-info">',' <h2 class="theme-name">'+response.name+versionInfo+'</h2>',' <p class="theme-author">By <a href="'+response.author_homepage+'" target="_blank">'+response.author+'</a></p>',noticeHtml,' <div class="theme-description">'+response.description+'</div>',buyButton,' </div>',' </div>',' <div class="theme-actions">',' <button type="submit" '+buttonDisabled+'class="button activate" name="Submit" aria-label="Select '+response.name+'">Activate</button>',' <a href="http://cmp.niteothemes.com/?cmp_preview=true&theme='+slug+'&utm_source=cmp&utm_medium=referral&utm_campaign='+slug+'" class="button cmp-preview" target="_blank" aria-label="Preview '+response.name+'">Live Preview</a>',' </div>',' </div>','</div>',].join("\n"));jQuery('.theme-overlay.cmp').append(html);jQuery('.theme-overlay.cmp .view-release').click(function(e){e.preventDefault();$this=jQuery(this);var release_url=$this.attr('href');jQuery.get(release_url,function(release){$this.closest('.notice').find('.release-note .notes').remove();$this.closest('.notice').find('.release-note').append('<div class="notes">'+release+'</div>')}).fail(function(){$this.closest('.notice').find('.release-note p').remove();$this.closest('.notice').find('.release-note').append('<p>There was an error loading release notes. Please try again later.</p>')})});jQuery('.theme-overlay.cmp .close').click(function(e){e.preventDefault();jQuery('body').removeClass('modal-open');jQuery('.theme-overlay.cmp .theme-backdrop').fadeOut('fast')});jQuery('.theme-overlay.cmp .activate').click(function(e){e.preventDefault();jQuery('input[name="select_theme"]').each(function(){if(jQuery(this).val()==slug){jQuery(this).prop('checked',!0);jQuery('.theme-select').removeClass('selected');jQuery(this).parent().addClass('selected')}});jQuery('#csoptions').submit()});jQuery('.screenshots-nav .right').click(function(){i++;if(i==Object.keys(screenshots).length){i=0}
28
- if((i in screenshots)){jQuery('.screenshot').css('background-image','url(\''+screenshots[i]+'\')')}});jQuery('.screenshots-nav .left').click(function(){i--;if(i<0){i=Object.keys(screenshots).length-1}
29
- if((i in screenshots)){jQuery('.screenshot').css('background-image','url(\''+screenshots[i]+'\')')}})}})});jQuery('#csoptions input[name="niteoCS_banner"]').trigger('change');jQuery('#csoptions input[name="niteoCS_subscribe_type"]').trigger('change');media_upload_button('logo',!1,'image');media_upload_button('favicon',!1,'image');media_upload_button('banner',!0,'image');media_upload_button('pattern',!1,'image');media_upload_button('video-thumb',!1,'image');media_upload_button('video',!1,'video');function ucwords(str){return(str+'').replace(/^([a-z])|\s+([a-z])/g,function($1){return $1.toUpperCase()})}
30
- function strtolower(str){return(str+'').toLowerCase()}
31
- function media_upload_button(name,multiple,type){var $container=jQuery('.'+name+'-wrapper');var $add_button=jQuery('#add-'+name);var $delete_button=jQuery('#delete-'+name);var image;var imgID='';var title=name.replace('-',' ');title=title[0].toUpperCase()+title.slice(1);if(jQuery('#niteoCS-'+name+'-id').val()!=''){$delete_button.css('display','block')}
32
- $add_button.click(function(e){e.preventDefault();if(media_uploader){media_uploader.open();return}
33
- var media_uploader=wp.media({title:'Select '+title,button:{text:'Insert '+title},multiple:multiple,library:{type:[type]},}).on('select',function(){var attachment=media_uploader.state().get('selection').toJSON();if(attachment.length>0){$container.empty();jQuery(attachment).each(function(i){if(attachment[i].sizes&&attachment[i].sizes.large){image=attachment[i].sizes.large.url}else{image=attachment[i].url}
34
- var comma=i===0?'':',';imgID+=(comma+attachment[i].id);if(name=='pattern'){$container.css('background-image','url(\''+image+'\')')}else if(name=='video'){$container.append('<video width="600" height="400" controls><source src="'+image+'" type="video/mp4">Your browser does not support the video tag.</video>')}else{$container.append('<img src="'+image+'" alt="" style="max-width:588px"/>')}});$delete_button.css('display','block')}
35
- jQuery('#niteoCS-'+name+'-id').val(imgID).trigger('change')}).open();if(name=='pattern'){$container.css('background-image','url(\''+image+'\')')}});$delete_button.click(function(e){jQuery(this).css('display','none');$container.empty();jQuery('#niteoCS-'+name+'-id').val('');jQuery('#niteoCS-'+name+'-id').trigger('change')})}})
1
+ jQuery(document).ready(function($){var formChanged=false;var tab=document.location.hash.substring(1);var action=jQuery('#csoptions').attr('action');navtab=function(tab){jQuery('.nav-tab-wrapper .nav-tab').removeClass('nav-tab-active');jQuery('.nav-tab-wrapper .'+tab).addClass('nav-tab-active');jQuery('.table-wrapper.'+tab).css('display','block');jQuery('.comingsoon.'+tab).css('display','block');jQuery('.table-wrapper:not(.'+tab+')').css('display','none');jQuery('.comingsoon:not(.'+tab+')').css('display','none');if(tab=='install'){jQuery('.submit').css('display','none');jQuery('#csoptions').attr('action',action);}else{jQuery('.submit').css('display','block');jQuery('#csoptions').attr('action',action+'#'+tab);}}
2
+ if(tab!=''){navtab(tab);}
3
+ window.onhashchange=function(){tab=document.location.hash.substring(1);navtab(tab);}
4
+ $('.nav-tab:not(.theme-preview)').click(function(e){e.preventDefault();tab=$(this).data('tab');document.location.hash=tab;});jQuery('#cmp-status').click(function(){jQuery('.cmp-status input[type=radio]').prop("disabled",(_,val)=>!val);jQuery('#cmp-status-menubar').prop("checked",(_,val)=>!val);});cmp_status_inputs();function cmp_status_inputs(){jQuery('.cmp-status legend:not(.disabled)').click(function(){if(jQuery('#cmp-status').prop('checked')==false){return;}
5
+ var $children=jQuery(this).children('input');$children.prop("checked",true);jQuery('.cmp-status legend').removeClass('active');jQuery(this).addClass('active');$children.trigger('change');if($children.val()=='3'){jQuery('.redirect-inputs').fadeIn('fast');}else{jQuery('.redirect-inputs').fadeOut('fast');}});}
6
+ jQuery('.table-wrapper h3').click(function(){jQuery(this).parent().toggleClass('closed');});jQuery('.niteoCS-logo-type').change(function(){if(jQuery('.niteoCS-logo-type:checked').val()=='text'){jQuery('.text-logo').css('display','block');jQuery('.graphic-logo').css('display','none');jQuery('.disabled-logo').css('display','none');}else if(jQuery('.niteoCS-logo-type:checked').val()=='graphic'){jQuery('.text-logo').css('display','none');jQuery('.graphic-logo').css('display','block');jQuery('.disabled-logo').css('display','none');}else if(jQuery('.niteoCS-logo-type:checked').val()=='disabled'){jQuery('.text-logo').css('display','none');jQuery('.graphic-logo').css('display','none');jQuery('.disabled-logo').css('display','block');}});jQuery('#test-unsplash').click(function(e){e.preventDefault();var media_wrapper=jQuery('#unsplash-media'),unsplash_feed=jQuery('#unsplash_banner select[name^="unsplash_feed"] option:selected').val(),unsp_url='',cat='',custom_str='',security=jQuery(this).data('security');switch(unsplash_feed){case'0':unsp_url=jQuery('#niteoCS-unsplash-0').val();break;case'1':unsp_url=jQuery('#niteoCS-unsplash-1').val();cat=jQuery('#unsplash_banner select[name^="unsplash_category"] option:selected').val();custom_str=jQuery('#niteoCS-category-keyword').val();break;case'2':unsp_url=jQuery('#niteoCS-unsplash-2').val();break;case'3':unsp_url=jQuery('#niteoCS-unsplash-3').val();if(jQuery('#niteoCS_unsplash_feat').is(':checked')){cat='1';}else{cat='0';}
7
  break;default:}
8
+ var params={feed:unsplash_feed,url:unsp_url,cat:cat,custom_str:custom_str};jQuery(this).prop('disabled',true);jQuery(this).html('<i class="fa fa-cog fa-spin fa-1x fa-fw"></i><span> loading..</span>');media_wrapper.html('');var data={action:'niteo_unsplash',security:security,params:params};$.post(ajaxurl,data,function(response){jQuery('#unsplash_img').remove();img_url=response.replace('WIDTHxHEIGHT','588x330');var loadingTimeout=setTimeout(function(){jQuery('#test-unsplash').prop('disabled',false);jQuery('#test-unsplash').text('Test Again');jQuery('#unsplash-media').html('<p>It seems <a href="http://source.unsplash.com" target="_blank">source.unsplash.com</a> is not responding. Please try again later.');},5000);jQuery('<img />',{src:img_url,id:'unsplash_img'}).one('load',function(){jQuery(this).appendTo(media_wrapper);jQuery(this).fadeIn();jQuery('#test-unsplash').prop('disabled',false);jQuery('#test-unsplash').text('Test Unsplash');clearTimeout(loadingTimeout);});});});jQuery('select:not(.headings-google-font):not(.content-google-font )').select2({width:'100%',minimumResultsForSearch:-1,});videoPreview=function(){var source=$('.banner-video-source').val();$('.video-wrapper').css('padding-top','0');if(source=='YouTube'){var youtubeLink=$('#niteoCS-youtube-url').val();if(youtubeLink.match(/(youtube.com)/)){var split_c='v=';var split_n=1;}
9
+ if(youtubeLink.match(/(youtu.be)/)||youtubeLink.match(/(vimeo.com\/)+[0-9]/)){var split_c='/';var split_n=3;}
10
+ if(source=='vimeo'){var youtubeLink=$('#niteoCS-vimeo-url').val();if(youtubeLink.match(/(vimeo.com\/)+[a-zA-Z]/)){var split_c='/';var split_n=5;}}
11
+ if(youtubeLink){var getYouTubeVideoID=youtubeLink.split(split_c)[split_n];if(getYouTubeVideoID!=undefined){var cleanVideoID=getYouTubeVideoID.replace(/(&)+(.*)/,'');if(source=='banner_youtube'&&youtubeLink.match(/(youtu.be)/)||youtubeLink.match(/(youtube.com)/)){var videoEmbedLink='https://www.youtube.com/embed/'+cleanVideoID+'?autoplay=0';}
12
+ if(source=='banner_vimeo'&&youtubeLink.match(/(vimeo.com\/)+[0-9]/)||youtubeLink.match(/(vimeo.com\/)+[a-zA-Z]/)){var videoEmbedLink='https://player.vimeo.com/video/'+cleanVideoID+'?autoplay=0';}
13
+ var $iframe=$('<iframe src="'+videoEmbedLink+'" allowfullscreen></iframe>');$('.video-wrapper').html($iframe);var videoRatio=($iframe.height()/ $iframe.width())*100;$iframe.css('position','absolute');$iframe.css('top','0');$iframe.css('left','0');$iframe.css('width','100%');$iframe.css('height','100%');$('.video-wrapper').css('padding-top',videoRatio+'%');$('#niteoCS-vimeo-url').css('border','1px solid #ddd');$('#niteoCS-youtube-url').css('border','1px solid #ddd');}else{$('.video-wrapper').text('Please enter correct '+source+' URL.').css('padding-top','0');$('#niteoCS-vimeo-url').css('border','1px solid #d60000');$('#niteoCS-youtube-url').css('border','1px solid #d60000');}}else{$('.video-wrapper').text('Please enter '+source+' URL.').css('padding-top','0');$('#niteoCS-vimeo-url').css('border','1px solid #d60000');$('#niteoCS-youtube-url').css('border','1px solid #d60000');}}
14
+ if(source=='video/mp4'){var videoURL=jQuery('#niteoCS-video-id').data('url');if(videoURL!=''){$('.video-wrapper').html('<video width="600" height="400" controls><source src="'+videoURL+'" type="video/mp4">Your browser does not support the video tag.</video>');}}};jQuery('#niteoCS-youtube-url').keyup(function(){videoPreview();});jQuery('#csoptions .banner-video-source').change(function(){switch(jQuery('#csoptions .banner-video-source').val()){case'YouTube':jQuery('.youtube-source-input').css('display','block');jQuery('.vimeo-source-input').css('display','none');jQuery('.file-source-input').css('display','none');break;case'vimeo':jQuery('.youtube-source-input').css('display','none');jQuery('.vimeo-source-input').css('display','block');jQuery('.file-source-input').css('display','none');break;case'video/mp4':jQuery('.youtube-source-input').css('display','none');jQuery('.vimeo-source-input').css('display','none');jQuery('.file-source-input').css('display','block');videoPreview();break;default:jQuery('.file-source-input').css('display','block');jQuery('.youtube-source-input').css('display','none');jQuery('.vimeo-source-input').css('display','none');}});jQuery('#csoptions .banner-video-source').trigger('change');jQuery('#csoptions .niteoCS_banner').change(function(){switch(jQuery('#csoptions .niteoCS_banner:checked').val()){case'0':jQuery('#custom_banner').css('display','block');jQuery('.theme_background fieldset:not(#custom_banner)').css('display','none');break;case'1':jQuery('#unsplash_banner').css('display','block');jQuery('.theme_background fieldset:not(#unsplash_banner)').css('display','none');break;case'2':jQuery('#default_banner').css('display','block');jQuery('.theme_background fieldset:not(#default_banner)').css('display','none');break;case'3':jQuery('#graphic_pattern').css('display','block');jQuery('.theme_background fieldset:not(#graphic_pattern)').css('display','none');break;case'4':jQuery('#solid_color').css('display','block');jQuery('.theme_background fieldset:not(#solid_color)').css('display','none');break;case'5':jQuery('#video_banner').css('display','block');jQuery('.theme_background fieldset:not(#video_banner)').css('display','none');videoPreview();break;case'6':jQuery('#gradient_background').css('display','block');jQuery('.theme_background fieldset:not(#gradient_background)').css('display','none');break;default:jQuery('#custom_banner').css('display','block');jQuery('.theme_background fieldset:not(#custom_banner)').css('display','none');}});jQuery('#csoptions .niteoCS_banner').trigger('change');var unsplasfeed=jQuery('#unsplash_banner select[name^="unsplash_feed"] option:selected').val();jQuery('#unsplash-feed-'+unsplasfeed).css('display','block');jQuery('#unsplash_banner select[name^="unsplash_feed"]').on('change',function(){unsplasfeed=jQuery('#unsplash_banner select[name^="unsplash_feed"] option:selected').val();jQuery('.unsplash-feed').css('display','none');jQuery('#unsplash-feed-'+unsplasfeed).css('display','block');})
15
+ jQuery('select.background-gradient').on('change',function(){var gradient=jQuery('select.background-gradient option:selected').val();if(gradient=='custom'){jQuery('.custom-gradient').css('display','block');jQuery('.gradient-preview').css({'background':'-moz-linear-gradient(-45deg, '+jQuery('#niteoCS_gradient_one').val()+' 0%, '+jQuery('#niteoCS_gradient_two').val()+' 100%)','background':'-webkit-linear-gradient(-45deg, '+jQuery('#niteoCS_gradient_one').val()+' 0%, '+jQuery('#niteoCS_gradient_two').val()+' 100%)','background':'linear-gradient(135deg, '+jQuery('#niteoCS_gradient_one').val()+' 0%, '+jQuery('#niteoCS_gradient_two').val()+' 100%)'});}else{colors=gradient.split(':');jQuery('.custom-gradient').css('display','none');jQuery('.gradient-preview').css({'background':'-moz-linear-gradient(-45deg, '+colors[0]+' 0%, '+colors[1]+' 100%)','background':'-webkit-linear-gradient(-45deg, '+colors[0]+' 0%, '+colors[1]+' 100%)','background':'linear-gradient(135deg, '+colors[0]+' 0%, '+colors[1]+' 100%)'});}});jQuery('#niteoCS_banner_color').wpColorPicker({change:function(event,ui){jQuery('.color-preview').css('background-color',ui.color.toString());}});jQuery('#niteoCS_gradient_one').wpColorPicker({change:function(event,ui){jQuery('.gradient-preview').css({'background':'-moz-linear-gradient(-45deg, '+ui.color.toString()+' 0%, '+jQuery('#niteoCS_gradient_two').val()+' 100%)','background':'-webkit-linear-gradient(-45deg, '+ui.color.toString()+' 0%, '+jQuery('#niteoCS_gradient_two').val()+' 100%)','background':'linear-gradient(135deg, '+ui.color.toString()+' 0%, '+jQuery('#niteoCS_gradient_two').val()+' 100%)'});}});jQuery('#niteoCS_gradient_two').wpColorPicker({change:function(event,ui){jQuery('.gradient-preview').css({'background':'-moz-linear-gradient(-45deg, '+jQuery('#niteoCS_gradient_one').val()+' 0%, '+ui.color.toString()+' 100%)','background':'-webkit-linear-gradient(-45deg, '+jQuery('#niteoCS_gradient_one').val()+' 0%, '+ui.color.toString()+' 100%)','background':'linear-gradient(135deg, '+jQuery('#niteoCS_gradient_one').val()+' 0%, '+ui.color.toString()+' 100%)'});}});jQuery('select[name^="niteoCS_banner_pattern"]').on('change',function(){var pattern=jQuery('select[name^="niteoCS_banner_pattern"] option:selected').val();if(pattern!='custom'){var pattern_url=jQuery(this).data('url');jQuery('#add-pattern').css('display','none');jQuery('.pattern-wrapper').css('background-image','url(\''+pattern_url+pattern+'.png\')');}else{var pattern_url=jQuery('#niteoCS_banner_pattern_custom').val();jQuery('#add-pattern').css('display','block');jQuery('.pattern-wrapper').css('background-image','url(\''+pattern_url+'\')');}});if(jQuery('#niteoCS_subscribe').prop('checked')==true){jQuery('.subscribe').css('display','block')}
16
+ jQuery('#niteoCS_subscribe').change(function(){if(jQuery(this)[0].checked){jQuery('.subscribe').css('display','block')}else{jQuery('.subscribe').css('display','none')}});jQuery('#csoptions input[name="niteoCS_subscribe_type"]').change(function(){if(jQuery('#csoptions input[name="niteoCS_subscribe_type"]:checked').val()==0){jQuery('#subscribe-disabled').css('display','block');jQuery('#subscribe-3rdparty').css('display','none');jQuery('#subscribe-niteo').css('display','none');}else if(jQuery('#csoptions input[name="niteoCS_subscribe_type"]:checked').val()==1){jQuery('#subscribe-disabled').css('display','none');jQuery('#subscribe-3rdparty').css('display','block');jQuery('#subscribe-niteo').css('display','none');}else{jQuery('#subscribe-disabled').css('display','none');jQuery('#subscribe-3rdparty').css('display','none');jQuery('#subscribe-niteo').css('display','block');}});jQuery('.heading-animation').on('change',function(){heading_anim=jQuery('.heading-animation option:selected').val();jQuery('#heading-example').removeClass().addClass('animated '+heading_anim);});jQuery('.content-animation').on('change',function(){heading_anim=jQuery('.content-animation option:selected').val();jQuery('#content-example').removeClass().addClass('animated '+heading_anim);});var update_social=function(name,key,val){var socialmedia=$('#niteoCS_socialmedia').attr('value');socialmedia=$.parseJSON(socialmedia);$.each(socialmedia,function(i,ele){if(ele['name']==name){ele[key]=val;}});$('#niteoCS_socialmedia').attr('value',JSON.stringify(socialmedia));};var $sortableList=$('.social-inputs');var sortEventHandler=function(event,ui){var inputs=$sortableList.find('input[type="text"]');var order=ui.item.index();inputs.each(function(i,ele){var name=$(ele).data('name');update_social(name,'order',i);});};$sortableList.sortable({stop:sortEventHandler});$sortableList.on('sortchange',sortEventHandler);(function($){$.fn.toggleDisabled=function(){return this.each(function(){var $this=$(this);var active;var name=$this.data('name');if($this.attr('disabled')){$this.prop('disabled',false);active='1';}else{$this.prop('disabled',true);active='0';}
17
+ update_social(name,'active',active);});};})(jQuery);jQuery('.social-inputs input[type="text"]').focusout(function(){var name=jQuery(this).data('name');var socialurl=jQuery(this).attr('value');update_social(name,'url',socialurl);});jQuery('.social-inputs input[type="checkbox"]').click(function(e){var $this=$(this).siblings('input[type="text"]');$this.toggleDisabled();});jQuery('.social-media i').click(function(){var name=jQuery(this).data('name');jQuery(this).toggleClass('active');jQuery('.social-inputs li.'+name).toggleClass('active');jQuery('.social-inputs li.'+name+' input').trigger('change');if(jQuery(this).hasClass('active')){update_social(name,'hidden','0');}else{update_social(name,'hidden','1');}
18
+ if(jQuery('.social-media i.active').length){jQuery('.social-inputs .label').css('display','block');}else{jQuery('.social-inputs .label').css('display','none');}});if(jQuery('.social-media i.active').length){jQuery('.social-inputs .label').css('display','block');}
19
+ jQuery('.view-release').click(function(e){e.preventDefault();$this=jQuery(this);var release_url=$this.attr('href');jQuery.get(release_url,function(release){$this.closest('.notice').find('.release-note .notes').remove();$this.closest('.notice').find('.release-note').append('<div class="notes">'+release+'</div>');}).fail(function(){$this.closest('.notice').find('.release-note p').remove();$this.closest('.notice').find('.release-note').append('<p>There was an error loading release notes. Please try again later.</p>');});});jQuery('.update-theme').click(function(e){e.preventDefault();var $this=$(this),$parent=$this.parents('.notice'),security=$this.data('security'),slug=$this.data('slug'),type=$this.data('type'),themeName=$parent.find('.theme-name').text(),remoteUrl=jQuery(this).data('remote_url');update={'name':slug,'tmp_name':'','type':type,'url':remoteUrl+'?action=download&slug='+slug,}
20
+ var data={action:'cmp_theme_update_install',security:security,file:update};$parent.find('.message').html('<i class="fa fa-cog fa-spin fa-1x fa-fw"></i><span class="sr-only">Updating heme...</span><span> working hard on updating Theme...</span>');$.post(ajaxurl,data,function(response){if(response=='success'){setTimeout(function(){$parent.removeClass('notice-warning').addClass('notice-success');$parent.find('.message').html('<span> '+themeName+' Theme was updated sucessfully! </span><i class="fa fa-smile-o" aria-hidden="true"></i>');},1500);}else{response=response.slice(0,-1);var error=$('p',$(response)).text();$parent.removeClass('notice-warning').addClass('notice-error');$parent.find('.message').html('<i class="fa fa-frown-o" aria-hidden="true"></i><span> '+error+'</span>');}});});jQuery('.theme-select').click(function(){jQuery(this).parent().find('input[name="select_theme"]').prop("checked",true).trigger('change');jQuery('.theme-select').removeClass('selected');jQuery(this).parent().find('.theme-select').addClass('selected');});jQuery('.theme-update.button').one('click',function(e){e.preventDefault();var $this=$(this),$wrapper=$this.closest('.theme-wrapper'),security=$wrapper.data('security'),slug=$wrapper.data('slug'),type=$wrapper.data('type'),remoteUrl=$wrapper.data('remote_url');var update={'name':slug,'tmp_name':'','type':type,'url':remoteUrl+'?action=download&slug='+slug,}
21
+ var data={action:'cmp_theme_update_install',security:security,file:update};$this.html('<i class="fa fa-cog fa-spin fa-1x fa-fw"></i><span>Updating..</span>');$.post(ajaxurl,data,function(response){if(response=='success'){setTimeout(function(){$this.html('<i class="fa fa-smile-o" aria-hidden="true"></i><span>Updated!</span>');setTimeout(function(){$this.fadeOut();},1500);},1500);}else{response=response.slice(0,-1);$this.html('<i class="fa fa-frown-o" aria-hidden="true"></i><span>Update Failed!</span>');}});});jQuery('.theme-details').click(function(){var $this=$(this),$wrapper=$this.closest('.theme-wrapper'),slug=$wrapper.data('slug'),version=$wrapper.data('version'),remoteUrl=$wrapper.data('remote_url'),type=$wrapper.data('type'),purchased=$wrapper.data('purchased'),freebie=$wrapper.data('freebie'),noticeHtml='',security=jQuery('.update-theme').data('security'),i=0;var data={action:'niteo_themeinfo',security:jQuery('.theme-wrapper').data('security'),theme_slug:jQuery(this).parents('.theme-wrapper').data('slug'),};$.post(ajaxurl,data,function(response){var buttonDisabled='';var buyButton='';var versionInfo='';var noticeHtml='';response=jQuery.parseJSON(response);if(response.result=='true'){jQuery('body').addClass('modal-open');if(purchased=='1'&&type=='premium'){versionInfo='<span class="theme-version">Version: '+version+'</span>';if(jQuery('.update-theme').length){var newVer=jQuery('.update-theme').data('new_ver');noticeHtml='<div class="notice notice-warning notice-alt notice-large"><h3 class="notice-title">Update Available</h3><p class="message"><strong>There is a new version of '+response['name']+' theme available. <a href="'+remoteUrl+'readme/'+slug+'-readme.php" class="view-release">View update '+newVer+' notes</a> or <a href="'+window.location.href+'&action=update-cmp-theme&theme='+slug+'&type='+type+'" class="update-theme" data-type="'+type+'" data-security="'+security+'" data-slug="'+slug+'" data-remote_url="'+remoteUrl+'">Update now.</a></strong></p><div class="release-note"></div></div>';}else{noticeHtml='<div class="notice notice-success notice-alt notice-large"><p>Theme is up to date.</p></div>';}}
22
+ if(purchased!='1'&&type=='premium'){var buttonDisabled='disabled ';var buyURL=$wrapper.find('a').attr('href');if(!freebie){var buyButton='<button type="button" class="theme-purchase button hide"><a href="'+buyURL+'" target="_blank"><i class="fa fa-cart-arrow-down" aria-hidden="true"></i>Buy</a></button>';}else if(freebie){var buyButton='<button type="button" class="theme-purchase button hide"><a href="'+buyURL+'" target="_blank"><i class="fa fa-download" aria-hidden="true"></i>FREE Download</a></button>';}}
23
+ var screenshots=response.screenshots;var arrows='';if(Object.keys(screenshots).length>1){arrows='<div class="screenshots-nav"><div class="left"><i class="fa fa-chevron-left" aria-hidden="true"></i></div><div class="right"><i class="fa fa-chevron-right" aria-hidden="true"></i></div></div>';}
24
+ var html=$(['<div class="theme-backdrop">',' <div class="theme-wrap">',' <div class="theme-header">',' <button class="close dashicons dashicons-no"><span class="screen-reader-text">Close details dialog</span></button>',' </div>',' <div class="theme-about">',' <div class="theme-screenshots">',' <div class="screenshot" style="background-image:url(\''+screenshots['0']+'\')">'+arrows+'</div>',' </div>',' <div class="theme-info">',' <h2 class="theme-name">'+response['name']+versionInfo+'</h2>',' <p class="theme-author">By <a href="'+response['author_homepage']+'" target="_blank">'+response['author']+'</a></p>',noticeHtml,' <div class="theme-description">'+response['description']+'</div>',buyButton,' </div>',' </div>',' <div class="theme-actions">',' <button type="submit" '+buttonDisabled+'class="button activate" name="Submit" aria-label="Select '+response['name']+'">Activate</button>',' <a href="http://cmp.niteothemes.com/?cmp_preview=true&selector=true&theme='+slug+'&utm_source=cmp&utm_medium=referral&utm_campaign='+slug+'" class="button cmp-preview" target="_blank" aria-label="Preview '+response['name']+'">Live Preview</a>',' </div>',' </div>','</div>',].join("\n"));jQuery('.theme-overlay.cmp').append(html);jQuery('.theme-overlay.cmp .view-release').click(function(e){e.preventDefault();$this=jQuery(this);var release_url=$this.attr('href');jQuery.get(release_url,function(release){$this.closest('.notice').find('.release-note .notes').remove();$this.closest('.notice').find('.release-note').append('<div class="notes">'+release+'</div>');}).fail(function(){$this.closest('.notice').find('.release-note p').remove();$this.closest('.notice').find('.release-note').append('<p>There was an error loading release notes. Please try again later.</p>');});});jQuery('.theme-overlay.cmp .close').click(function(e){e.preventDefault();jQuery('body').removeClass('modal-open');jQuery('.theme-overlay.cmp .theme-backdrop').fadeOut('fast');});jQuery('.theme-overlay.cmp .activate').click(function(e){e.preventDefault();jQuery('input[name="select_theme"]').each(function(){if(jQuery(this).val()==slug){jQuery(this).prop('checked',true);jQuery('.theme-select').removeClass('selected');jQuery(this).parent().addClass('selected');}});jQuery('#csoptions').submit();});jQuery('.screenshots-nav .right').click(function(){i++;if(i==Object.keys(screenshots).length){i=0;}
25
+ if((i in screenshots)){jQuery('.screenshot').css('background-image','url(\''+screenshots[i]+'\')');}});jQuery('.screenshots-nav .left').click(function(){i--;if(i<0){i=Object.keys(screenshots).length-1;}
26
+ if((i in screenshots)){jQuery('.screenshot').css('background-image','url(\''+screenshots[i]+'\')');}});}});});jQuery('#csoptions input[name="niteoCS_banner"]').trigger('change');jQuery('#csoptions input[name="niteoCS_subscribe_type"]').trigger('change');media_upload_button('logo',false,'image');media_upload_button('favicon',false,'image');media_upload_button('banner',true,'image');media_upload_button('pattern',false,'image');media_upload_button('video-thumb',false,'image');media_upload_button('video',false,'video');$('#niteoCS_overlay_opacity').on('input',function(){$(this).trigger('change');});jQuery('#niteoCS_overlay_opacity').change(function(){if(this.value==0){jQuery('#current-opacity').html(': transparent');}else{jQuery('#current-opacity').html(': '+this.value);}});function ucwords(str){return(str+'').replace(/^([a-z])|\s+([a-z])/g,function($1){return $1.toUpperCase();});}
27
+ function strtolower(str){return(str+'').toLowerCase();}
28
+ function media_upload_button(name,multiple,type){var $container=jQuery('.'+name+'-wrapper');var $add_button=jQuery('#add-'+name);var $delete_button=jQuery('#delete-'+name);var image;var imgID='';var title=name.replace('-',' ');title=title[0].toUpperCase()+title.slice(1);if(jQuery('#niteoCS-'+name+'-id').val()!=''){$delete_button.css('display','block');}
29
+ $add_button.click(function(e){e.preventDefault();if(media_uploader){media_uploader.open();return;}
30
+ var media_uploader=wp.media({title:'Select '+title,button:{text:'Insert '+title},multiple:multiple,library:{type:[type]},}).on('select',function(){var attachment=media_uploader.state().get('selection').toJSON();if(attachment.length>0){$container.empty();jQuery(attachment).each(function(i){if(attachment[i].sizes&&attachment[i].sizes.large){image=attachment[i].sizes.large.url;}else{image=attachment[i].url;}
31
+ var comma=i===0?'':',';imgID+=(comma+attachment[i].id);if(name=='pattern'){$container.css('background-image','url(\''+image+'\')');}else if(name=='video'){$container.append('<video width="600" height="400" controls><source src="'+image+'" type="video/mp4">Your browser does not support the video tag.</video>');}else{$container.append('<img src="'+image+'" alt="" style="max-width:588px"/>');}});$delete_button.css('display','block');}
32
+ jQuery('#niteoCS-'+name+'-id').val(imgID).trigger('change');}).open();if(name=='pattern'){$container.css('background-image','url(\''+image+'\')');}});$delete_button.click(function(e){jQuery(this).css('display','none');$container.empty();jQuery('#niteoCS-'+name+'-id').val('');jQuery('#niteoCS-'+name+'-id').trigger('change');});}});
 
 
 
js/typography.js ADDED
@@ -0,0 +1,293 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ headingVariant = jQuery('.headings-google-font-variant').val();
2
+ contentVariant = jQuery('.content-google-font-variant').val();
3
+
4
+ fontVariant = function( variant ) {
5
+ switch(variant) {
6
+ case '100':
7
+ return 'Thin 100';
8
+ break;
9
+ case '100italic':
10
+ return 'Thin 100 Italic';
11
+ break;
12
+ case '200':
13
+ return 'Extra-light 200';
14
+ break;
15
+ case '200italic':
16
+ return 'Extra-light 200 Italic';
17
+ break;
18
+ case '300':
19
+ return 'Light 300';
20
+ break;
21
+ case '300italic':
22
+ return 'Light 300 Italic';
23
+ break;
24
+ case '400':
25
+ return 'Regular 400';
26
+ break;
27
+ case '400italic':
28
+ return 'Regular 400 Italic';
29
+ break;
30
+ case '500':
31
+ return 'Medium 500';
32
+ break;
33
+ case '500italic':
34
+ return 'Meidum 500 Italic';
35
+ break;
36
+ case '600':
37
+ return 'Semi-Bold 600';
38
+ break;
39
+ case '600italic':
40
+ return 'Semi-Bold 600 Italic';
41
+ break;
42
+ case '700':
43
+ return 'Bold 700';
44
+ break;
45
+ case '700italic':
46
+ return 'Bold 700 Italic';
47
+ break;
48
+ case '800':
49
+ return 'Extra-Bold 800';
50
+ break;
51
+ case '800italic':
52
+ return 'Extra-Bold Italic';
53
+ break;
54
+ case '900':
55
+ return 'Black 900';
56
+ break;
57
+ case '900italic':
58
+ return 'Black 900 Italic';
59
+ break;
60
+ case 'regular':
61
+ return 'Regular 400';
62
+ break;
63
+ case 'italic':
64
+ return 'Regular 400 Italic';
65
+ break;
66
+ default:
67
+ break;
68
+ }
69
+ }
70
+
71
+ var heading_font = fonts.google.filter(function (element) {
72
+ return element.id === jQuery('.headings-google-font option:selected').val();
73
+ });
74
+
75
+
76
+
77
+ var content_font = fonts.google.filter(function (element) {
78
+ return element.id === jQuery('.content-google-font option:selected').val();
79
+ });
80
+
81
+ var heading_font_variant = jQuery.map( heading_font[0].variants, function(obj) {
82
+ return { id: obj, text: fontVariant(obj) };
83
+ });
84
+
85
+ var content_font_variant = jQuery.map( content_font[0].variants, function(obj) {
86
+ return { id: obj, text: fontVariant(obj) };
87
+ })
88
+
89
+
90
+
91
+ // ini select2
92
+ $HeadingFont = jQuery( '.headings-google-font' ).select2({
93
+ data: fonts.google,
94
+ width: '100%',
95
+ });
96
+
97
+ // ini select2
98
+ $contentFont = jQuery( '.content-google-font' ).select2({
99
+ data: fonts.google,
100
+ width: '100%',
101
+ });
102
+
103
+ // ini select2
104
+ $HeadingFontVariant = jQuery('.headings-google-font-variant').select2({
105
+ data: heading_font_variant,
106
+ })
107
+
108
+ // ini select2
109
+ $contentFontVariant = jQuery('.content-google-font-variant').select2({
110
+ data: content_font_variant,
111
+ })
112
+
113
+
114
+ // change preview fonts on select2 selection
115
+ $HeadingFont.on('select2:select', function(e){
116
+ // get current variant value
117
+ var selected = $HeadingFontVariant.select2('data');
118
+
119
+ var heading_font_variant = jQuery.map( e.params.data.variants, function(obj) {
120
+ return { id: obj, text: fontVariant(obj) };
121
+ });
122
+
123
+ // empty select variant
124
+ $HeadingFontVariant.empty();
125
+ // populate select with new variants
126
+ $HeadingFontVariant.select2({
127
+ data: heading_font_variant
128
+ });
129
+
130
+ // set same variant as before selection if variant is in array, else set regular
131
+ if ( selected[0].id ) {
132
+
133
+ if ( jQuery.inArray(selected[0].id, e.params.data.variants ) == '-1' ) {
134
+ jQuery('#heading-example, #niteoCS-text-logo').css('font-weight', '400' ).css('font-style', 'normal' );
135
+ } else {
136
+ $HeadingFontVariant.val(selected[0].id).trigger('change.select2');
137
+ }
138
+ }
139
+
140
+ // load fonts and set css
141
+ WebFont.load({
142
+ google: {
143
+ families: [ e.params.data.text+':100,200,300,400,500,600,700,900,100italic,300italic,400italic,500italic,600italic,700italic,900italic' ]
144
+ },
145
+ active: function() {
146
+ jQuery('#heading-example, #niteoCS-text-logo').css('font-family', e.params.data.text );
147
+ },
148
+ });
149
+ });
150
+
151
+
152
+ $HeadingFontVariant.on('select2:select', function(e){
153
+
154
+ headingVariant = e.params.data.id;
155
+
156
+ if ( jQuery.isNumeric(headingVariant) ) {
157
+ jQuery('#heading-example, #niteoCS-text-logo').css('font-weight', headingVariant ).css('font-style', 'normal' );
158
+
159
+ } else if ( headingVariant == 'regular' ) {
160
+ jQuery('#heading-example, #niteoCS-text-logo').css('font-weight', '400' ).css('font-style', 'normal' );
161
+
162
+ } else if ( headingVariant == 'italic' ) {
163
+ jQuery('#heading-example, #niteoCS-text-logo').css('font-style', 'italic' ).css('font-weight', '400' );
164
+
165
+ } else {
166
+ fontweight = parseInt(headingVariant, 10);
167
+ jQuery('#heading-example, #niteoCS-text-logo').css('font-weight', fontweight ).css('font-style', 'italic' );
168
+ }
169
+
170
+ });
171
+
172
+
173
+ // change content preview fonts on font select
174
+ $contentFont.on('select2:select', function(e){
175
+ // get current variant value
176
+ var selected = $contentFontVariant.select2('data');
177
+
178
+ var content_font_variant = jQuery.map( e.params.data.variants, function(obj) {
179
+ return { id: obj, text: fontVariant(obj) };
180
+ });
181
+
182
+ // empty select variant
183
+ $contentFontVariant.empty();
184
+ // populate select with new variants
185
+ $contentFontVariant.select2({
186
+ data: content_font_variant
187
+ });
188
+
189
+ // set same variant as before selection if variant is in array, else set regular
190
+ if ( selected[0].id ) {
191
+
192
+ if ( jQuery.inArray(selected[0].id, e.params.data.variants ) == '-1' ) {
193
+ jQuery('#content-example').css('font-weight', '400' ).css('font-style', 'normal' );
194
+ } else {
195
+ $contentFontVariant.val(selected[0].id).trigger('change.select2');
196
+ }
197
+ }
198
+
199
+ // load fonts and set css
200
+ WebFont.load({
201
+ google: {
202
+ families: [ e.params.data.text+':100,200,300,400,500,600,700,900,100italic,300italic,400italic,500italic,600italic,700italic,900italic' ]
203
+ },
204
+ active: function() {
205
+ jQuery('#content-example').css('font-family', e.params.data.text );
206
+ },
207
+ });
208
+ });
209
+
210
+ $contentFontVariant.on('select2:select', function(e){
211
+
212
+ contentVariant = e.params.data.id;
213
+
214
+ if ( jQuery.isNumeric(contentVariant) ) {
215
+ jQuery('#content-example').css('font-weight', contentVariant ).css('font-style', 'normal' );
216
+
217
+ } else if ( contentVariant == 'regular' ) {
218
+ jQuery('#content-example').css('font-weight', '400' ).css('font-style', 'normal' );
219
+
220
+ } else if ( contentVariant == 'italic' ) {
221
+ jQuery('#content-example').css('font-style', 'italic' ).css('font-weight', '400' );
222
+
223
+ } else {
224
+ fontweight = parseInt(contentVariant, 10);
225
+ jQuery('#content-example').css('font-weight', fontweight ).css('font-style', 'italic' );
226
+ }
227
+
228
+ });
229
+
230
+ jQuery('.font-selector input[type=range]').change(function(){
231
+ var type = jQuery(this).data('type');
232
+ var css = jQuery(this).data('css');
233
+ var value = jQuery(this).val();
234
+
235
+ // change label value
236
+ jQuery(this).parent().find('span').html(value);
237
+
238
+ // add px if css requires it
239
+ value = (css == 'line-height') ? value : value+'px';
240
+
241
+ // change example css
242
+ if ( type == 'heading' ) {
243
+ jQuery('#heading-example').css(css, value);
244
+
245
+ } else {
246
+ jQuery('#content-example').css(css, value);
247
+ }
248
+ });
249
+
250
+ jQuery('.font-selector input[type=range]').on('input', function () {
251
+ jQuery(this).trigger('change');
252
+ });
253
+
254
+ // change fonts families upon a load
255
+ WebFont.load({
256
+ google: {
257
+ families: [ heading_font[0]['id']+':100,200,300,400,500,600,700,900,100italic,300italic,400italic,500italic,600italic,700italic,900italic', content_font[0]['id']+':100,200,300,400,500,600,700,900,100italic,300italic,400italic,500italic,600italic,700italic,900italic' ]
258
+ },
259
+ active: function() {
260
+
261
+ if ( jQuery.isNumeric(headingVariant) ) {
262
+ jQuery('#heading-example').css('font-weight', headingVariant ).css('font-style', 'normal' );
263
+
264
+ } else if ( headingVariant == 'regular' ) {
265
+ jQuery('#heading-example').css('font-weight', '400' ).css('font-style', 'normal' );
266
+
267
+ } else if ( headingVariant == 'italic' ) {
268
+ jQuery('#heading-example').css('font-style', 'italic' ).css('font-weight', '400' );
269
+
270
+ } else {
271
+ fontweight = parseInt(headingVariant, 10);
272
+ jQuery('#heading-example').css('font-weight', fontweight ).css('font-style', 'italic' );
273
+ }
274
+
275
+ if ( jQuery.isNumeric(contentVariant) ) {
276
+ jQuery('#content-example').css('font-weight', contentVariant ).css('font-style', 'normal' );
277
+
278
+ } else if ( contentVariant == 'regular' ) {
279
+ jQuery('#content-example').css('font-weight', '400' ).css('font-style', 'normal' );
280
+
281
+ } else if ( contentVariant == 'italic' ) {
282
+ jQuery('#content-example').css('font-style', 'italic' ).css('font-weight', '400' );
283
+
284
+ } else {
285
+ fontweight = parseInt(contentVariant, 10);
286
+ jQuery('#content-example').css('font-weight', fontweight ).css('font-style', 'italic' );
287
+ }
288
+
289
+ jQuery('#heading-example, #niteoCS-text-logo').css('font-family', heading_font[0]['id'] );
290
+ jQuery('#content-example').css('font-family', content_font[0]['id'] );
291
+ },
292
+ });
293
+
js/typography.min.js ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
1
+ headingVariant=jQuery('.headings-google-font-variant').val();contentVariant=jQuery('.content-google-font-variant').val();fontVariant=function(variant){switch(variant){case'100':return'Thin 100';break;case'100italic':return'Thin 100 Italic';break;case'200':return'Extra-light 200';break;case'200italic':return'Extra-light 200 Italic';break;case'300':return'Light 300';break;case'300italic':return'Light 300 Italic';break;case'400':return'Regular 400';break;case'400italic':return'Regular 400 Italic';break;case'500':return'Medium 500';break;case'500italic':return'Meidum 500 Italic';break;case'600':return'Semi-Bold 600';break;case'600italic':return'Semi-Bold 600 Italic';break;case'700':return'Bold 700';break;case'700italic':return'Bold 700 Italic';break;case'800':return'Extra-Bold 800';break;case'800italic':return'Extra-Bold Italic';break;case'900':return'Black 900';break;case'900italic':return'Black 900 Italic';break;case'regular':return'Regular 400';break;case'italic':return'Regular 400 Italic';break;default:break;}}
2
+ var heading_font=fonts.google.filter(function(element){return element.id===jQuery('.headings-google-font option:selected').val();});var content_font=fonts.google.filter(function(element){return element.id===jQuery('.content-google-font option:selected').val();});var heading_font_variant=jQuery.map(heading_font[0].variants,function(obj){return{id:obj,text:fontVariant(obj)};});var content_font_variant=jQuery.map(content_font[0].variants,function(obj){return{id:obj,text:fontVariant(obj)};})
3
+ $HeadingFont=jQuery('.headings-google-font').select2({data:fonts.google,width:'100%',});$contentFont=jQuery('.content-google-font').select2({data:fonts.google,width:'100%',});$HeadingFontVariant=jQuery('.headings-google-font-variant').select2({data:heading_font_variant,})
4
+ $contentFontVariant=jQuery('.content-google-font-variant').select2({data:content_font_variant,})
5
+ $HeadingFont.on('select2:select',function(e){var selected=$HeadingFontVariant.select2('data');var heading_font_variant=jQuery.map(e.params.data.variants,function(obj){return{id:obj,text:fontVariant(obj)};});$HeadingFontVariant.empty();$HeadingFontVariant.select2({data:heading_font_variant});if(selected[0].id){if(jQuery.inArray(selected[0].id,e.params.data.variants)=='-1'){jQuery('#heading-example, #niteoCS-text-logo').css('font-weight','400').css('font-style','normal');}else{$HeadingFontVariant.val(selected[0].id).trigger('change.select2');}}
6
+ WebFont.load({google:{families:[e.params.data.text+':100,200,300,400,500,600,700,900,100italic,300italic,400italic,500italic,600italic,700italic,900italic']},active:function(){jQuery('#heading-example, #niteoCS-text-logo').css('font-family',e.params.data.text);},});});$HeadingFontVariant.on('select2:select',function(e){headingVariant=e.params.data.id;if(jQuery.isNumeric(headingVariant)){jQuery('#heading-example, #niteoCS-text-logo').css('font-weight',headingVariant).css('font-style','normal');}else if(headingVariant=='regular'){jQuery('#heading-example, #niteoCS-text-logo').css('font-weight','400').css('font-style','normal');}else if(headingVariant=='italic'){jQuery('#heading-example, #niteoCS-text-logo').css('font-style','italic').css('font-weight','400');}else{fontweight=parseInt(headingVariant,10);jQuery('#heading-example, #niteoCS-text-logo').css('font-weight',fontweight).css('font-style','italic');}});$contentFont.on('select2:select',function(e){var selected=$contentFontVariant.select2('data');var content_font_variant=jQuery.map(e.params.data.variants,function(obj){return{id:obj,text:fontVariant(obj)};});$contentFontVariant.empty();$contentFontVariant.select2({data:content_font_variant});if(selected[0].id){if(jQuery.inArray(selected[0].id,e.params.data.variants)=='-1'){jQuery('#content-example').css('font-weight','400').css('font-style','normal');}else{$contentFontVariant.val(selected[0].id).trigger('change.select2');}}
7
+ WebFont.load({google:{families:[e.params.data.text+':100,200,300,400,500,600,700,900,100italic,300italic,400italic,500italic,600italic,700italic,900italic']},active:function(){jQuery('#content-example').css('font-family',e.params.data.text);},});});$contentFontVariant.on('select2:select',function(e){contentVariant=e.params.data.id;if(jQuery.isNumeric(contentVariant)){jQuery('#content-example').css('font-weight',contentVariant).css('font-style','normal');}else if(contentVariant=='regular'){jQuery('#content-example').css('font-weight','400').css('font-style','normal');}else if(contentVariant=='italic'){jQuery('#content-example').css('font-style','italic').css('font-weight','400');}else{fontweight=parseInt(contentVariant,10);jQuery('#content-example').css('font-weight',fontweight).css('font-style','italic');}});jQuery('.font-selector input[type=range]').change(function(){var type=jQuery(this).data('type');var css=jQuery(this).data('css');var value=jQuery(this).val();jQuery(this).parent().find('span').html(value);value=(css=='line-height')?value:value+'px';if(type=='heading'){jQuery('#heading-example').css(css,value);}else{jQuery('#content-example').css(css,value);}});jQuery('.font-selector input[type=range]').on('input',function(){jQuery(this).trigger('change');});WebFont.load({google:{families:[heading_font[0]['id']+':100,200,300,400,500,600,700,900,100italic,300italic,400italic,500italic,600italic,700italic,900italic',content_font[0]['id']+':100,200,300,400,500,600,700,900,100italic,300italic,400italic,500italic,600italic,700italic,900italic']},active:function(){if(jQuery.isNumeric(headingVariant)){jQuery('#heading-example').css('font-weight',headingVariant).css('font-style','normal');}else if(headingVariant=='regular'){jQuery('#heading-example').css('font-weight','400').css('font-style','normal');}else if(headingVariant=='italic'){jQuery('#heading-example').css('font-style','italic').css('font-weight','400');}else{fontweight=parseInt(headingVariant,10);jQuery('#heading-example').css('font-weight',fontweight).css('font-style','italic');}
8
+ if(jQuery.isNumeric(contentVariant)){jQuery('#content-example').css('font-weight',contentVariant).css('font-style','normal');}else if(contentVariant=='regular'){jQuery('#content-example').css('font-weight','400').css('font-style','normal');}else if(contentVariant=='italic'){jQuery('#content-example').css('font-style','italic').css('font-weight','400');}else{fontweight=parseInt(contentVariant,10);jQuery('#content-example').css('font-weight',fontweight).css('font-style','italic');}
9
+ jQuery('#heading-example, #niteoCS-text-logo').css('font-family',heading_font[0]['id']);jQuery('#content-example').css('font-family',content_font[0]['id']);},});
languages/coming-soon-default.mo CHANGED
Binary file
languages/coming-soon-default.po CHANGED
@@ -1,8 +1,8 @@
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: cmp\n"
4
- "POT-Creation-Date: 2017-09-28 22:25+0200\n"
5
- "PO-Revision-Date: 2017-09-28 22:25+0200\n"
6
  "Last-Translator: \n"
7
  "Language-Team: \n"
8
  "Language: en\n"
@@ -395,14 +395,15 @@ msgstr ""
395
 
396
  #: cmp-coming-soon-maintenance/tags/1.4.0/themes/construct/construct-settings.php:37
397
  #: cmp-coming-soon-maintenance/tags/1.4.0/themes/hardwork/hardwork-settings.php:52
398
- #: cmp-premium-themes/fifty/fifty-settings.php:33
 
399
  #: cmp-premium-themes/frame/frame-settings.php:48
400
  #: cmp-premium-themes/hardwork_premium/hardwork_premium-settings.php:36
401
  msgid "Customize Colors"
402
  msgstr ""
403
 
404
  #: cmp-coming-soon-maintenance/tags/1.4.0/themes/construct/construct-settings.php:40
405
- #: cmp-premium-themes/fifty/fifty-settings.php:55
406
  #: cmp-premium-themes/frame/frame-settings.php:51
407
  msgid "Active Color"
408
  msgstr ""
@@ -413,18 +414,19 @@ msgstr ""
413
 
414
  #: cmp-coming-soon-maintenance/tags/1.4.0/themes/construct/construct-settings.php:49
415
  #: cmp-coming-soon-maintenance/tags/1.4.0/themes/hardwork/hardwork-settings.php:56
416
- #: cmp-premium-themes/fifty/fifty-settings.php:37
 
417
  #: cmp-premium-themes/frame/frame-settings.php:61
418
  #: cmp-premium-themes/hardwork_premium/hardwork_premium-settings.php:40
419
  msgid "Font Color"
420
  msgstr ""
421
 
422
  #: cmp-coming-soon-maintenance/tags/1.4.0/themes/construct/construct-settings.php:57
423
- #: cmp-premium-themes/fifty/fifty-settings.php:46
424
  msgid "Background Color"
425
  msgstr ""
426
 
427
  #: cmp-coming-soon-maintenance/tags/1.4.0/themes/hardwork/hardwork-settings.php:64
 
428
  #: cmp-premium-themes/frame/frame-settings.php:80
429
  #: cmp-premium-themes/hardwork_premium/hardwork_premium-settings.php:48
430
  msgid "Overlay Color"
@@ -435,17 +437,50 @@ msgid "Enable Overlay Color"
435
  msgstr ""
436
 
437
  #: cmp-coming-soon-maintenance/tags/1.4.0/themes/hardwork/hardwork-settings.php:73
 
438
  #: cmp-premium-themes/frame/frame-settings.php:86
439
  #: cmp-premium-themes/hardwork_premium/hardwork_premium-settings.php:53
440
  msgid "Overlay Opacity"
441
  msgstr ""
442
 
443
- #: cmp-premium-themes/fifty/fifty-settings.php:65
 
 
444
  #: cmp-premium-themes/frame/frame-settings.php:94
445
  #: cmp-premium-themes/hardwork_premium/hardwork_premium-settings.php:62
446
  msgid "Save All Changes"
447
  msgstr ""
448
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
449
  #: cmp-premium-themes/fifty/fifty-social_settings.php:20
450
  msgid "Social Icons Location"
451
  msgstr ""
@@ -458,19 +493,19 @@ msgstr ""
458
  msgid "Footer (small icons)"
459
  msgstr ""
460
 
461
- #: cmp-premium-themes/fifty/fifty-theme.php:194
462
- #: cmp-premium-themes/fifty/fifty-theme.php:206
463
- #: cmp-premium-themes/hardwork_premium/hardwork_premium-theme.php:138
464
- #: cmp-premium-themes/hardwork_premium/hardwork_premium-theme.php:150
465
  msgid ""
466
  "To Display Graphic Media please upgrade CMP Plugin to latest version. You "
467
  "can download latest version on "
468
  msgstr ""
469
 
470
- #: cmp-premium-themes/fifty/fifty-theme.php:194
471
- #: cmp-premium-themes/fifty/fifty-theme.php:206
472
- #: cmp-premium-themes/hardwork_premium/hardwork_premium-theme.php:138
473
- #: cmp-premium-themes/hardwork_premium/hardwork_premium-theme.php:150
474
  msgid ""
475
  "or you can use automatic plugin update in WP-Admin > Plugins > CMP - Coming "
476
  "Soon & Maintenance Plugin > Update Now."
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: cmp\n"
4
+ "POT-Creation-Date: 2017-11-24 19:27+0100\n"
5
+ "PO-Revision-Date: 2017-11-24 19:27+0100\n"
6
  "Last-Translator: \n"
7
  "Language-Team: \n"
8
  "Language: en\n"
395
 
396
  #: cmp-coming-soon-maintenance/tags/1.4.0/themes/construct/construct-settings.php:37
397
  #: cmp-coming-soon-maintenance/tags/1.4.0/themes/hardwork/hardwork-settings.php:52
398
+ #: cmp-premium-themes/eclipse/eclipse-settings.php:45
399
+ #: cmp-premium-themes/fifty/fifty-settings.php:71
400
  #: cmp-premium-themes/frame/frame-settings.php:48
401
  #: cmp-premium-themes/hardwork_premium/hardwork_premium-settings.php:36
402
  msgid "Customize Colors"
403
  msgstr ""
404
 
405
  #: cmp-coming-soon-maintenance/tags/1.4.0/themes/construct/construct-settings.php:40
406
+ #: cmp-premium-themes/eclipse/eclipse-settings.php:48
407
  #: cmp-premium-themes/frame/frame-settings.php:51
408
  msgid "Active Color"
409
  msgstr ""
414
 
415
  #: cmp-coming-soon-maintenance/tags/1.4.0/themes/construct/construct-settings.php:49
416
  #: cmp-coming-soon-maintenance/tags/1.4.0/themes/hardwork/hardwork-settings.php:56
417
+ #: cmp-premium-themes/eclipse/eclipse-settings.php:58
418
+ #: cmp-premium-themes/fifty/fifty-settings.php:75
419
  #: cmp-premium-themes/frame/frame-settings.php:61
420
  #: cmp-premium-themes/hardwork_premium/hardwork_premium-settings.php:40
421
  msgid "Font Color"
422
  msgstr ""
423
 
424
  #: cmp-coming-soon-maintenance/tags/1.4.0/themes/construct/construct-settings.php:57
 
425
  msgid "Background Color"
426
  msgstr ""
427
 
428
  #: cmp-coming-soon-maintenance/tags/1.4.0/themes/hardwork/hardwork-settings.php:64
429
+ #: cmp-premium-themes/eclipse/eclipse-settings.php:67
430
  #: cmp-premium-themes/frame/frame-settings.php:80
431
  #: cmp-premium-themes/hardwork_premium/hardwork_premium-settings.php:48
432
  msgid "Overlay Color"
437
  msgstr ""
438
 
439
  #: cmp-coming-soon-maintenance/tags/1.4.0/themes/hardwork/hardwork-settings.php:73
440
+ #: cmp-premium-themes/eclipse/eclipse-settings.php:73
441
  #: cmp-premium-themes/frame/frame-settings.php:86
442
  #: cmp-premium-themes/hardwork_premium/hardwork_premium-settings.php:53
443
  msgid "Overlay Opacity"
444
  msgstr ""
445
 
446
+ #: cmp-premium-themes/eclipse/eclipse-settings.php:82
447
+ #: cmp-premium-themes/fifty/fifty-settings.php:64
448
+ #: cmp-premium-themes/fifty/fifty-settings.php:108
449
  #: cmp-premium-themes/frame/frame-settings.php:94
450
  #: cmp-premium-themes/hardwork_premium/hardwork_premium-settings.php:62
451
  msgid "Save All Changes"
452
  msgstr ""
453
 
454
+ #: cmp-premium-themes/fifty/fifty-settings.php:41
455
+ msgid "Layout"
456
+ msgstr ""
457
+
458
+ #: cmp-premium-themes/fifty/fifty-settings.php:45
459
+ msgid "Select Layout"
460
+ msgstr ""
461
+
462
+ #: cmp-premium-themes/fifty/fifty-settings.php:48
463
+ #: cmp-premium-themes/fifty/fifty-settings.php:49
464
+ msgid "Vertical Layout"
465
+ msgstr ""
466
+
467
+ #: cmp-premium-themes/fifty/fifty-settings.php:53
468
+ #: cmp-premium-themes/fifty/fifty-settings.php:54
469
+ msgid "Skewed Layout"
470
+ msgstr ""
471
+
472
+ #: cmp-premium-themes/fifty/fifty-settings.php:84
473
+ msgid "Content Background Color"
474
+ msgstr ""
475
+
476
+ #: cmp-premium-themes/fifty/fifty-settings.php:89
477
+ msgid "Background opacity"
478
+ msgstr ""
479
+
480
+ #: cmp-premium-themes/fifty/fifty-settings.php:96
481
+ msgid "Active Color (button)"
482
+ msgstr ""
483
+
484
  #: cmp-premium-themes/fifty/fifty-social_settings.php:20
485
  msgid "Social Icons Location"
486
  msgstr ""
493
  msgid "Footer (small icons)"
494
  msgstr ""
495
 
496
+ #: cmp-premium-themes/fifty/fifty-theme.php:258
497
+ #: cmp-premium-themes/fifty/fifty-theme.php:270
498
+ #: cmp-premium-themes/hardwork_premium/hardwork_premium-theme.php:160
499
+ #: cmp-premium-themes/hardwork_premium/hardwork_premium-theme.php:172
500
  msgid ""
501
  "To Display Graphic Media please upgrade CMP Plugin to latest version. You "
502
  "can download latest version on "
503
  msgstr ""
504
 
505
+ #: cmp-premium-themes/fifty/fifty-theme.php:258
506
+ #: cmp-premium-themes/fifty/fifty-theme.php:270
507
+ #: cmp-premium-themes/hardwork_premium/hardwork_premium-theme.php:160
508
+ #: cmp-premium-themes/hardwork_premium/hardwork_premium-theme.php:172
509
  msgid ""
510
  "or you can use automatic plugin update in WP-Admin > Plugins > CMP - Coming "
511
  "Soon & Maintenance Plugin > Update Now."
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.13.1
7
  Author: NiteoThemes
8
  Author URI: https://www.niteothemes.com
9
  Text Domain: cmp-coming-soon-maintenance
@@ -17,16 +17,15 @@ class niteo_cmp {
17
  public function __construct() {
18
  $this->author = 'NiteoThemes';
19
  $this->author_homepage = 'https://niteothemes.com';
20
- $this->version = '1.13.1';
21
  $this->dev = false;
22
- $this->installedFolder = basename(dirname(__FILE__));
23
  $this->plugins_dir_path = plugin_dir_path( __DIR__ );
24
  if ( $this->plugins_dir_path == './') {
25
  $this->plugins_dir_path = WP_PLUGIN_DIR . '/';
26
  }
27
  $this->premium_installed = array();
28
  // set array of themes with countdown
29
- $this->countdown_themes = array('frame', 'countdown', 'postery');
30
 
31
  // get all installed themes [folder names under /themes] and put them to array
32
  $this->themes_standard = array_map('basename', glob( plugin_dir_path( __FILE__ ) . 'themes/*', GLOB_ONLYDIR));
@@ -41,10 +40,7 @@ class niteo_cmp {
41
 
42
  // set remote server URL for updates
43
  $this->remoteServer = ($this->dev == true) ? 'https://niteothemes.com/updates-test/' : 'https://niteothemes.com/updates/';
44
- $this->minified = ($this->dev == true) ? '.js' : '.min.js';
45
-
46
-
47
-
48
  }
49
 
50
 
@@ -53,16 +49,19 @@ class niteo_cmp {
53
  }
54
 
55
  public function cmp_adminInit() {
56
- wp_register_style( 'cmp_style', plugins_url('/css/cmp-settings-style.css', __FILE__),'',$this->version);
57
- wp_enqueue_style('cmp_style');
58
- wp_register_script('cmp_settings_js', plugins_url('/js/settings'.$this->minified, __FILE__), array('webfont'), $this->version);
59
  wp_register_style( 'font_awesome', '//maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css' );
60
- wp_register_script( 'webfont', 'https://ajax.googleapis.com/ajax/libs/webfont/1.5.18/webfont.js', array(), false, true);
61
- wp_register_script('countdown_flatpicker_js', plugins_url('/js/flatpickr.min.js', __FILE__) );
62
  wp_register_style( 'countdown_flatpicker_css', plugins_url('/css/flatpickr.min.css', __FILE__) );
63
- // wp_register_script('fastselect_js', plugins_url('/js/fastselect.min.js', __FILE__), array('fastsearch_js') );
64
- // wp_register_script('fastsearch_js', plugins_url('/js/fastsearch.min.js', __FILE__) );
65
- // wp_register_style( 'fastselect_css', plugins_url('/css/fastselect.min.css', __FILE__) );
 
 
 
 
 
 
66
  }
67
 
68
  // enqueue admin css and scripts only if admin is logged in
@@ -77,26 +76,28 @@ class niteo_cmp {
77
 
78
  }
79
 
80
- public function enqueue_admin_js($hook) {
 
81
 
82
- if ( 'toplevel_page_cmp-settings' == $hook ) {
83
  wp_enqueue_script('cmp_settings_js');
84
- }
85
-
86
- }
87
-
88
- public function cmp_enqueueScripts() {
89
- // enqueue required admin scripts and styles
90
- wp_enqueue_script( 'wp-color-picker');
91
- wp_enqueue_script( 'webfont' );
92
- wp_enqueue_media();
93
- wp_enqueue_style( 'wp-color-picker');
94
- wp_enqueue_style('font_awesome');
95
 
96
  }
97
 
 
98
  public function sdt_remove_ver_css_js( $src, $handle ) {
99
- $handles_remove_ver = array('font_awesome', 'webfont', 'countdown_flatpicker_js', 'countdown_flatpicker_css', 'fastselect'); // <-- Adjust to your needs!
100
  if ( in_array( $handle, $handles_remove_ver, true ) && strpos( $src, 'ver=' ) )
101
  $src = remove_query_arg( 'ver', $src );
102
 
@@ -106,14 +107,19 @@ class niteo_cmp {
106
 
107
  //register scripts and load styles
108
  public function cmp_adminMenu() {
109
-
110
  /* Register our plugin page */
111
  $page = add_menu_page('CMP Settings', __('CMP Settings','cmp-coming-soon-maintenance'), 'activate_plugins', 'cmp-settings', array($this, 'cmp_settings_page'), plugins_url('/img/cmp.png', __FILE__));
 
112
  add_submenu_page('cmp-settings', 'Content Settings', __('Content Settings','cmp-coming-soon-maintenance'), 'manage_options', 'cmp-settings' );
 
113
  // add_submenu_page('cmp-settings', 'Advanced Settings', 'Advanced Settings', 'manage_options', 'cmp-advanced', array($this, 'cmp_advanced_page') );
 
114
  add_submenu_page('cmp-settings', 'Subscribers', __('Subscribers','cmp-coming-soon-maintenance'), 'manage_options', 'cmp-subscribers', array($this, 'cmp_subs_page') );
 
115
  add_submenu_page('cmp-settings', 'Translation', __('Translation','cmp-coming-soon-maintenance'), 'manage_options', 'cmp-translate', array($this, 'cmp_translate_page') );
 
116
  add_submenu_page('cmp-settings', 'Upload New Theme', __('Upload New Theme','cmp-coming-soon-maintenance'), 'manage_options', 'cmp-upload-theme', array($this, 'cmp_upload_page') );
 
117
  add_submenu_page('cmp-settings', 'Help', __('Help','cmp-coming-soon-maintenance'), 'manage_options', 'cmp-help', array($this, 'cmp_help_page') );
118
 
119
  /* Using registered $page handle to hook script load */
@@ -128,14 +134,12 @@ class niteo_cmp {
128
  // check for them updates, not sure where else this to put
129
  $this->cmp_check_update( $this->cmp_selectedTheme() );
130
  require_once ('cmp-settings.php');
131
-
132
  }
133
 
134
  public function cmp_subs_page() {
135
  require_once ('cmp-subscribers.php');
136
  }
137
 
138
-
139
  public function cmp_translate_page() {
140
  require_once ('cmp-translate.php');
141
  }
@@ -148,21 +152,17 @@ class niteo_cmp {
148
  require_once ('cmp-help.php');
149
  }
150
 
151
- // public function cmp_advanced_page() {
152
- // // include default options page
153
- // wp_enqueue_script('fastsearch_js');
154
- // wp_enqueue_script('fastselect_js');
155
- // wp_enqueue_style( 'fastselect_css');
156
- // require_once ('cmp-advanced.php');
157
- // }
158
 
 
 
 
159
 
160
  public function cmp_displayPage() {
161
- // register html class for rendering of HTML elements in Themes
162
- require ( dirname( __FILE__) . '/inc/class-cmp-render_html.php' );
163
- $html = new cmp_render_html();
164
 
165
  if ( isset($_GET['cmp_preview']) && $_GET['cmp_preview'] == 'true' ) {
 
 
 
166
 
167
  // iframe preview with sidebar controls
168
  if ( isset($_GET['selector']) && $_GET['selector'] == 'true' ) {
@@ -201,51 +201,57 @@ class niteo_cmp {
201
  }
202
  }
203
 
204
- // for users: render CMP Theme if set in Settings
205
  if ( $this->cmp_status() == 1 || $this->cmp_status() == 2 ) {
 
206
  // check if user logged in
207
  if ( !is_user_logged_in() ) {
208
- //
209
- // $id = get_the_id();
210
- // if ($id == '295') {
211
- // if themes with countdown timer
212
- if ( in_array($this->cmp_selectedTheme(), $this->countdown_themes) ){
213
- // if counter is enabled
214
- if ( get_option('niteoCS_counter', '1') == '1' ) {
215
- // if countdown date is set
216
- if ( get_option('niteoCS_counter_date' ) && get_option('niteoCS_counter_date' ) != '' ) {
217
- // if timer < timestamp do set action
218
- if ( get_option('niteoCS_counter_date' ) < time() ) {
219
- // if action set to disable cmp
220
- if (get_option('niteoCS_countdown_action') == 'disable-cmp') {
221
- update_option('niteoCS_activation', '0');
222
- }
223
-
224
- // if action set to redirect
225
- if (get_option('niteoCS_countdown_action') == 'redirect') {
226
- $redirect_url = esc_url(get_option('niteoCS_countdown_redirect'));
227
- header('Location: '.$redirect_url);
228
- die();
229
- }
 
 
 
 
 
230
  }
231
  }
232
  }
233
  }
 
234
 
235
- // if maintanance mode send correct 503 headers
236
- if ( $this->cmp_status() == '1' ){
237
- header('HTTP/1.1 503 Service Temporarily Unavailable');
238
- header('Status: 503 Service Temporarily Unavailable');
239
- header('Retry-After: 86400'); // retry in a day
240
- }
241
 
242
- // render selected CMP theme
243
- if ( file_exists( $this->cmp_themePath( $this->cmp_selectedTheme() ).$this->cmp_selectedTheme().'/'.$this->cmp_selectedTheme().'-theme.php') ) {
244
- require_once ( $this->cmp_themePath( $this->cmp_selectedTheme() ).$this->cmp_selectedTheme().'/'.$this->cmp_selectedTheme().'-theme.php' );
245
- die();
246
- }
247
  }
248
- // }
249
  }
250
 
251
  // if CMP in redirect mode
@@ -257,7 +263,6 @@ class niteo_cmp {
257
  die();
258
  }
259
  }
260
-
261
  }
262
 
263
  public function cmp_admin_override(){
@@ -309,9 +314,7 @@ class niteo_cmp {
309
  echo 'success';
310
  wp_die();
311
  return;
312
-
313
  }
314
-
315
  }
316
 
317
  // check selected theme
@@ -331,7 +334,6 @@ class niteo_cmp {
331
  } else {
332
  return dirname(__FILE__) . '/themes/';
333
  }
334
-
335
  }
336
 
337
  // return installed theme dir
@@ -341,7 +343,6 @@ class niteo_cmp {
341
 
342
  } else {
343
  return plugins_url( '/themes/', __FILE__ );
344
-
345
  }
346
  }
347
 
@@ -353,12 +354,13 @@ class niteo_cmp {
353
 
354
  } else {
355
  return plugins_url( '/themes/', __FILE__ );
356
-
357
  }
358
  }
359
 
360
  // display admin notice
361
  public function cmp_admin_bar(){
 
 
362
  $current_user = wp_get_current_user();
363
 
364
  if (!user_can( $current_user, 'administrator' )) {
@@ -370,7 +372,7 @@ class niteo_cmp {
370
  $msg= '';
371
 
372
  // check onces and wordpress rights, else DIE
373
- if ( $_SERVER['REQUEST_METHOD'] == 'POST' && get_current_screen()->id == 'toplevel_page_cmp-settings' ) {
374
  //verify nonce and user rights
375
  if ( !wp_verify_nonce($_POST['save_options_field'], 'save_options') || !current_user_can('publish_pages') ) {
376
  die('Sorry, but this request is invalid');
@@ -390,7 +392,6 @@ class niteo_cmp {
390
  }
391
 
392
  switch ( get_option( 'niteoCS_activation', '2' ) ) {
393
-
394
  case '1':
395
  $msg = __('Maintenance Mode:','cmp-coming-soon-maintenance');
396
  $class = ' maintenance';
@@ -409,7 +410,7 @@ class niteo_cmp {
409
 
410
  $ajax_nonce = wp_create_nonce( 'cmp-coming-soon-ajax-secret' );
411
 
412
- $msg = '<img src="'.plugins_url('/img/cmp.png', __FILE__).'" alt="CMP Logo" class="cmp-logo">'.$msg;
413
  $msg .='<div class="toggle-wrapper">
414
  <input type="checkbox" id="cmp-status-menubar" class="toggle-checkbox"'.checked( '1', get_option('niteoCS_status', false), false ).' name="cmp_status_menu" data-security="'. esc_attr($ajax_nonce).'">
415
  <label for="cmp-status-menubar" class="toggle"><span class="toggle_handler"></span></label>
@@ -421,7 +422,7 @@ class niteo_cmp {
421
  'href' => admin_url().'admin.php?page=cmp-settings',
422
  'parent' => 'top-secondary',
423
  'title' => $msg,
424
- 'meta' => array( 'class' => 'coming-soon-notice'.$class ),
425
  ) );
426
  $wp_admin_bar->add_node( array(
427
  'id' => 'cmp-settings',
@@ -489,6 +490,7 @@ class niteo_cmp {
489
  array_push( $premium_themes, array('name' => 'frame', 'url' => 'https://creativemarket.com/NiteoThemes/1373921-CMP-Frame-Coming-Soon-WP-Theme?u=NiteoThemes', 'price' => '10') );
490
  array_push( $premium_themes, array('name' => 'hardwork_premium', 'url' => 'https://creativemarket.com/NiteoThemes/1385251-CMP-Hardwork-Premium-Maintenance?u=NiteoThemes', 'price' => '10') );
491
  array_push( $premium_themes, array('name' => 'fifty', 'url' => 'https://creativemarket.com/NiteoThemes/1395745-CMP-Fifty-Maintenance-Landing-Page?u=NiteoThemes', 'price' => '10') );
 
492
  return $premium_themes;
493
  }
494
 
@@ -551,13 +553,13 @@ class niteo_cmp {
551
  } else {
552
  // set transient no update available with 12 hours expire
553
  set_transient( $theme_slug.'_updatecheck', '', 60*60*12 );
554
- 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>';
555
  }
556
 
557
  } else {
558
  // set transient no update available with 12 hours expire
559
  set_transient( $theme_slug.'_updatecheck', '', 60*60*12 );
560
- 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>';
561
 
562
  }
563
  }
@@ -767,27 +769,28 @@ class niteo_cmp {
767
  array_key_exists ('cat', $params) ? $cat = $params['cat'] : $cat = '';
768
  array_key_exists ('custom_str', $params) ? $custom_str = $params['custom_str'] : $custom_str = '';
769
 
770
- $sig = 'sig='.time();
771
 
772
  switch ( $feed ) {
773
  case '0':
 
774
  // check if $query contains unsplash.com url
775
  if ( strpos( $url, 'unsplash.com' ) !== false ) {
776
  $parts = parse_url( $url );
777
-
778
  // check for photo parameter in URL
779
- parse_str($parts['query'], $query);
780
- $id = $query['photo'];
781
-
 
782
  // if no ID found, get last part of URL containing ID
783
- if ( is_null( $id ) ) {
784
 
785
- $pathFragments = explode('/', $parts);
786
  $id = end($pathFragments);
 
787
  }
788
  // $query is ID
789
  } else {
790
-
791
  $id = $url;
792
  }
793
 
@@ -796,9 +799,12 @@ class niteo_cmp {
796
 
797
  case '1':
798
  if ($custom_str != '') {
799
- $custom_str = $custom_str . '&';
 
 
800
  }
801
- $unsplash_img = 'https://source.unsplash.com/category/'.$cat.'/WIDTHxHEIGHT/?'.$custom_str.$sig;
 
802
  break;
803
 
804
  case '2':
@@ -821,7 +827,12 @@ class niteo_cmp {
821
 
822
  $url = str_replace(' ', ',', $url);
823
 
824
- $unsplash_img = 'https://source.unsplash.com/'.$featured.'/WIDTHxHEIGHT/?'.$url.'&'.$sig;
 
 
 
 
 
825
  break;
826
 
827
  default:
@@ -1081,15 +1092,16 @@ class niteo_cmp {
1081
 
1082
  public function get_youtube_img( $youtube_url ) {
1083
  $youtube = preg_match('/.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#\&\?]*).*/', $youtube_url, $url);
 
1084
  if ( isset( $url[7] ) && $url[7] != '') {
1085
  $youtube_image = 'http://img.youtube.com/vi/' . $url[7] . '/hqdefault.jpg';
1086
- return $youtube_image;
1087
  }
1088
  }
1089
 
1090
  public function cmp_get_pages() {
1091
  $page_titles = array();
1092
- $pages = array();
1093
  $page_ids = get_all_page_ids();
1094
 
1095
  foreach ($page_ids as $page_id ) {
@@ -1143,6 +1155,82 @@ class niteo_cmp {
1143
  return;
1144
  }
1145
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1146
  }
1147
 
1148
 
@@ -1171,7 +1259,6 @@ add_action('admin_init', array($cmpPlugin, 'cmp_admin_override'));
1171
  add_action( 'admin_enqueue_scripts', array($cmpPlugin,'cmp_add_admin_style') );
1172
  add_action( 'wp_enqueue_scripts', array($cmpPlugin,'cmp_add_admin_style') );
1173
 
1174
- add_action( 'admin_enqueue_scripts', array($cmpPlugin, 'enqueue_admin_js' ) );
1175
  register_activation_hook(__FILE__, array($cmpPlugin, 'cmp_activate'));
1176
  register_deactivation_hook(__FILE__, array($cmpPlugin, 'cmp_deactivate'));
1177
  register_uninstall_hook(__FILE__, 'cmp_plugin_delete');
3
  Plugin Name: CMP - Coming Soon & Maintenance Plugin
4
  Plugin URI: https://wordpress.org/plugins/cmp-coming-soon-maintenance/
5
  Description: Display customizable landing page for Coming Soon, Maintenance & Under Construction page.
6
+ Version: 2.0
7
  Author: NiteoThemes
8
  Author URI: https://www.niteothemes.com
9
  Text Domain: cmp-coming-soon-maintenance
17
  public function __construct() {
18
  $this->author = 'NiteoThemes';
19
  $this->author_homepage = 'https://niteothemes.com';
20
+ $this->version = '2.0';
21
  $this->dev = false;
 
22
  $this->plugins_dir_path = plugin_dir_path( __DIR__ );
23
  if ( $this->plugins_dir_path == './') {
24
  $this->plugins_dir_path = WP_PLUGIN_DIR . '/';
25
  }
26
  $this->premium_installed = array();
27
  // set array of themes with countdown
28
+ $this->countdown_themes = array('frame', 'countdown', 'postery', 'countdown2');
29
 
30
  // get all installed themes [folder names under /themes] and put them to array
31
  $this->themes_standard = array_map('basename', glob( plugin_dir_path( __FILE__ ) . 'themes/*', GLOB_ONLYDIR));
40
 
41
  // set remote server URL for updates
42
  $this->remoteServer = ($this->dev == true) ? 'https://niteothemes.com/updates-test/' : 'https://niteothemes.com/updates/';
43
+ $this->minified = ($this->dev == true) ? '' : '.min';
 
 
 
44
  }
45
 
46
 
49
  }
50
 
51
  public function cmp_adminInit() {
52
+ wp_register_style( 'cmp-style', plugins_url('/css/cmp-settings-style'.$this->minified.'.css', __FILE__),'',$this->version);
53
+ wp_enqueue_style('cmp-style');
 
54
  wp_register_style( 'font_awesome', '//maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css' );
 
 
55
  wp_register_style( 'countdown_flatpicker_css', plugins_url('/css/flatpickr.min.css', __FILE__) );
56
+ wp_register_style( 'animate-css', plugins_url('/css/animate.min.css', __FILE__) );
57
+ wp_register_style( 'select2', plugins_url('/css/select2.min.css', __FILE__) );
58
+
59
+ wp_register_script( 'webfont', 'https://ajax.googleapis.com/ajax/libs/webfont/1.5.18/webfont.js', array(), false, true);
60
+ wp_register_script( 'select2', plugins_url('/js/select2.min.js', __FILE__) );
61
+ wp_register_script( 'cmp-typography', plugins_url('/js/typography'.$this->minified.'.js', __FILE__), array('select2' ), false, $this->version );
62
+ wp_register_script( 'cmp_settings_js', plugins_url('/js/settings'.$this->minified.'.js', __FILE__), array('webfont'), $this->version);
63
+ wp_register_script('countdown_flatpicker_js', plugins_url('/js/flatpickr.min.js', __FILE__) );
64
+
65
  }
66
 
67
  // enqueue admin css and scripts only if admin is logged in
76
 
77
  }
78
 
79
+ // enqueue styles and scripts when navigated to CMP Settings
80
+ public function cmp_enqueueScripts() {
81
 
82
+ wp_localize_script( 'cmp-typography', 'fonts', array( 'google' => $this->cmp_get_google_fonts(), ) );
83
  wp_enqueue_script('cmp_settings_js');
84
+ wp_enqueue_script('cmp-typography');
85
+ wp_enqueue_script('select2-js');
86
+ wp_enqueue_script( 'wp-color-picker');
87
+ wp_enqueue_script( 'webfont' );
88
+ wp_enqueue_media();
89
+ wp_enqueue_style( 'wp-color-picker');
90
+ wp_enqueue_style( 'select2');
91
+ wp_enqueue_style( 'font_awesome');
92
+ if (in_array( $this->cmp_selectedTheme(), $this->premium_installed ) ) {
93
+ wp_enqueue_style('animate-css');
94
+ }
95
 
96
  }
97
 
98
+ // remove default wp version from handles
99
  public function sdt_remove_ver_css_js( $src, $handle ) {
100
+ $handles_remove_ver = array('font_awesome', 'webfont', 'countdown_flatpicker_js', 'countdown_flatpicker_css', 'select2'); // <-- Adjust to your needs!
101
  if ( in_array( $handle, $handles_remove_ver, true ) && strpos( $src, 'ver=' ) )
102
  $src = remove_query_arg( 'ver', $src );
103
 
107
 
108
  //register scripts and load styles
109
  public function cmp_adminMenu() {
 
110
  /* Register our plugin page */
111
  $page = add_menu_page('CMP Settings', __('CMP Settings','cmp-coming-soon-maintenance'), 'activate_plugins', 'cmp-settings', array($this, 'cmp_settings_page'), plugins_url('/img/cmp.png', __FILE__));
112
+
113
  add_submenu_page('cmp-settings', 'Content Settings', __('Content Settings','cmp-coming-soon-maintenance'), 'manage_options', 'cmp-settings' );
114
+
115
  // add_submenu_page('cmp-settings', 'Advanced Settings', 'Advanced Settings', 'manage_options', 'cmp-advanced', array($this, 'cmp_advanced_page') );
116
+
117
  add_submenu_page('cmp-settings', 'Subscribers', __('Subscribers','cmp-coming-soon-maintenance'), 'manage_options', 'cmp-subscribers', array($this, 'cmp_subs_page') );
118
+
119
  add_submenu_page('cmp-settings', 'Translation', __('Translation','cmp-coming-soon-maintenance'), 'manage_options', 'cmp-translate', array($this, 'cmp_translate_page') );
120
+
121
  add_submenu_page('cmp-settings', 'Upload New Theme', __('Upload New Theme','cmp-coming-soon-maintenance'), 'manage_options', 'cmp-upload-theme', array($this, 'cmp_upload_page') );
122
+
123
  add_submenu_page('cmp-settings', 'Help', __('Help','cmp-coming-soon-maintenance'), 'manage_options', 'cmp-help', array($this, 'cmp_help_page') );
124
 
125
  /* Using registered $page handle to hook script load */
134
  // check for them updates, not sure where else this to put
135
  $this->cmp_check_update( $this->cmp_selectedTheme() );
136
  require_once ('cmp-settings.php');
 
137
  }
138
 
139
  public function cmp_subs_page() {
140
  require_once ('cmp-subscribers.php');
141
  }
142
 
 
143
  public function cmp_translate_page() {
144
  require_once ('cmp-translate.php');
145
  }
152
  require_once ('cmp-help.php');
153
  }
154
 
 
 
 
 
 
 
 
155
 
156
+ public function cmp_asset_url($filepath) {
157
+ return plugins_url( $filepath,__FILE__ );
158
+ }
159
 
160
  public function cmp_displayPage() {
 
 
 
161
 
162
  if ( isset($_GET['cmp_preview']) && $_GET['cmp_preview'] == 'true' ) {
163
+ // register html class for rendering of HTML elements in Themes
164
+ require ( dirname( __FILE__) . '/inc/class-cmp-render_html.php' );
165
+ $html = new cmp_render_html();
166
 
167
  // iframe preview with sidebar controls
168
  if ( isset($_GET['selector']) && $_GET['selector'] == 'true' ) {
201
  }
202
  }
203
 
204
+ // Render CMP Theme if is activated
205
  if ( $this->cmp_status() == 1 || $this->cmp_status() == 2 ) {
206
+
207
  // check if user logged in
208
  if ( !is_user_logged_in() ) {
209
+
210
+ // if ( isset($_GET['bypass']) && $_GET['bypass'] == 'true' || !is_home() ) {
211
+ // return;
212
+ // }
213
+
214
+ // register html class for rendering of HTML elements in Themes
215
+ require ( dirname( __FILE__) . '/inc/class-cmp-render_html.php' );
216
+ $html = new cmp_render_html();
217
+
218
+ // if themes with countdown timer
219
+ if ( in_array($this->cmp_selectedTheme(), $this->countdown_themes) ){
220
+ // if counter is enabled
221
+ if ( get_option('niteoCS_counter', '1') == '1' ) {
222
+ // if countdown date is set
223
+ if ( get_option('niteoCS_counter_date' ) && get_option('niteoCS_counter_date' ) != '' ) {
224
+ // if timer < timestamp do set action
225
+ if ( get_option('niteoCS_counter_date' ) < time() ) {
226
+ // if action set to disable cmp
227
+ if ( get_option('niteoCS_countdown_action') == 'disable-cmp' ) {
228
+ update_option('niteoCS_activation', '0');
229
+ }
230
+
231
+ // if action set to redirect
232
+ if ( get_option('niteoCS_countdown_action') == 'redirect' ) {
233
+ $redirect_url = esc_url(get_option('niteoCS_countdown_redirect'));
234
+ header('Location: '.$redirect_url);
235
+ die();
236
  }
237
  }
238
  }
239
  }
240
+ }
241
 
242
+ // if maintanance mode send correct 503 headers
243
+ if ( $this->cmp_status() == '1' ){
244
+ header('HTTP/1.1 503 Service Temporarily Unavailable');
245
+ header('Status: 503 Service Temporarily Unavailable');
246
+ header('Retry-After: 86400'); // retry in a day
247
+ }
248
 
249
+ // render selected CMP theme
250
+ if ( file_exists( $this->cmp_themePath( $this->cmp_selectedTheme() ).$this->cmp_selectedTheme().'/'.$this->cmp_selectedTheme().'-theme.php') ) {
251
+ require_once ( $this->cmp_themePath( $this->cmp_selectedTheme() ).$this->cmp_selectedTheme().'/'.$this->cmp_selectedTheme().'-theme.php' );
252
+ die();
 
253
  }
254
+ }
255
  }
256
 
257
  // if CMP in redirect mode
263
  die();
264
  }
265
  }
 
266
  }
267
 
268
  public function cmp_admin_override(){
314
  echo 'success';
315
  wp_die();
316
  return;
 
317
  }
 
318
  }
319
 
320
  // check selected theme
334
  } else {
335
  return dirname(__FILE__) . '/themes/';
336
  }
 
337
  }
338
 
339
  // return installed theme dir
343
 
344
  } else {
345
  return plugins_url( '/themes/', __FILE__ );
 
346
  }
347
  }
348
 
354
 
355
  } else {
356
  return plugins_url( '/themes/', __FILE__ );
 
357
  }
358
  }
359
 
360
  // display admin notice
361
  public function cmp_admin_bar(){
362
+ require_once(ABSPATH . 'wp-admin/includes/screen.php');
363
+
364
  $current_user = wp_get_current_user();
365
 
366
  if (!user_can( $current_user, 'administrator' )) {
372
  $msg= '';
373
 
374
  // check onces and wordpress rights, else DIE
375
+ if ( $_SERVER['REQUEST_METHOD'] == 'POST' && (get_current_screen() && get_current_screen()->id == 'toplevel_page_cmp-settings' ) ) {
376
  //verify nonce and user rights
377
  if ( !wp_verify_nonce($_POST['save_options_field'], 'save_options') || !current_user_can('publish_pages') ) {
378
  die('Sorry, but this request is invalid');
392
  }
393
 
394
  switch ( get_option( 'niteoCS_activation', '2' ) ) {
 
395
  case '1':
396
  $msg = __('Maintenance Mode:','cmp-coming-soon-maintenance');
397
  $class = ' maintenance';
410
 
411
  $ajax_nonce = wp_create_nonce( 'cmp-coming-soon-ajax-secret' );
412
 
413
+ $msg = '<img src="'.plugins_url('/img/cmp.png', __FILE__).'" alt="CMP Logo" class="cmp-logo"><span class="cmp-status-msg">'.$msg.'</span>';
414
  $msg .='<div class="toggle-wrapper">
415
  <input type="checkbox" id="cmp-status-menubar" class="toggle-checkbox"'.checked( '1', get_option('niteoCS_status', false), false ).' name="cmp_status_menu" data-security="'. esc_attr($ajax_nonce).'">
416
  <label for="cmp-status-menubar" class="toggle"><span class="toggle_handler"></span></label>
422
  'href' => admin_url().'admin.php?page=cmp-settings',
423
  'parent' => 'top-secondary',
424
  'title' => $msg,
425
+ 'meta' => array( 'class' => 'cmp-notice'.$class ),
426
  ) );
427
  $wp_admin_bar->add_node( array(
428
  'id' => 'cmp-settings',
490
  array_push( $premium_themes, array('name' => 'frame', 'url' => 'https://creativemarket.com/NiteoThemes/1373921-CMP-Frame-Coming-Soon-WP-Theme?u=NiteoThemes', 'price' => '10') );
491
  array_push( $premium_themes, array('name' => 'hardwork_premium', 'url' => 'https://creativemarket.com/NiteoThemes/1385251-CMP-Hardwork-Premium-Maintenance?u=NiteoThemes', 'price' => '10') );
492
  array_push( $premium_themes, array('name' => 'fifty', 'url' => 'https://creativemarket.com/NiteoThemes/1395745-CMP-Fifty-Maintenance-Landing-Page?u=NiteoThemes', 'price' => '10') );
493
+ array_push( $premium_themes, array('name' => 'eclipse', 'url' => 'https://niteothemes.com/projects/cmp-eclipse-theme/?utm_source=cmp&utm_medium=referral&utm_campaign=eclipse', 'price' => '0') );
494
  return $premium_themes;
495
  }
496
 
553
  } else {
554
  // set transient no update available with 12 hours expire
555
  set_transient( $theme_slug.'_updatecheck', '', 60*60*12 );
556
+ 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@niteothemes.com if this error message keeps appearing.','cmp-coming-soon-maintenance').'</p></div>';
557
  }
558
 
559
  } else {
560
  // set transient no update available with 12 hours expire
561
  set_transient( $theme_slug.'_updatecheck', '', 60*60*12 );
562
+ 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@niteothemes.com if this error message keeps appearing.','cmp-coming-soon-maintenance').'</p></div>';
563
 
564
  }
565
  }
769
  array_key_exists ('cat', $params) ? $cat = $params['cat'] : $cat = '';
770
  array_key_exists ('custom_str', $params) ? $custom_str = $params['custom_str'] : $custom_str = '';
771
 
772
+ $sig = 'sig='.rand(10000,99999);
773
 
774
  switch ( $feed ) {
775
  case '0':
776
+ $id = '';
777
  // check if $query contains unsplash.com url
778
  if ( strpos( $url, 'unsplash.com' ) !== false ) {
779
  $parts = parse_url( $url );
 
780
  // check for photo parameter in URL
781
+ if ( isset($parts['query'])) {
782
+ parse_str($parts['query'], $query);
783
+ $id = $query['photo'];
784
+ }
785
  // if no ID found, get last part of URL containing ID
786
+ if ( $id == '' ) {
787
 
788
+ $pathFragments = explode('/', $parts['path']);
789
  $id = end($pathFragments);
790
+
791
  }
792
  // $query is ID
793
  } else {
 
794
  $id = $url;
795
  }
796
 
799
 
800
  case '1':
801
  if ($custom_str != '') {
802
+ $custom_str = ',' .$custom_str . '&';
803
+ } else {
804
+ $custom_str = '&';
805
  }
806
+
807
+ $unsplash_img = 'https://source.unsplash.com/WIDTHxHEIGHT/?'.$cat.$custom_str.$sig;
808
  break;
809
 
810
  case '2':
827
 
828
  $url = str_replace(' ', ',', $url);
829
 
830
+
831
+ if ( $url !== '' ) {
832
+ $url = $url . '&';
833
+ }
834
+
835
+ $unsplash_img = 'https://source.unsplash.com/'.$featured.'/WIDTHxHEIGHT/?'.$url.$sig;
836
  break;
837
 
838
  default:
1092
 
1093
  public function get_youtube_img( $youtube_url ) {
1094
  $youtube = preg_match('/.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#\&\?]*).*/', $youtube_url, $url);
1095
+
1096
  if ( isset( $url[7] ) && $url[7] != '') {
1097
  $youtube_image = 'http://img.youtube.com/vi/' . $url[7] . '/hqdefault.jpg';
1098
+ return $youtube_image;
1099
  }
1100
  }
1101
 
1102
  public function cmp_get_pages() {
1103
  $page_titles = array();
1104
+ $pages = array();
1105
  $page_ids = get_all_page_ids();
1106
 
1107
  foreach ($page_ids as $page_id ) {
1155
  return;
1156
  }
1157
 
1158
+ // returns array of google fonts from /inc/webfonts.php
1159
+ public function cmp_get_google_fonts() {
1160
+ $fonts = include_once wp_normalize_path( dirname( __FILE__ ) . '/inc/webfonts.php' );
1161
+ $google_fonts = json_decode( $fonts, true);
1162
+
1163
+ return $google_fonts;
1164
+ }
1165
+
1166
+
1167
+ public function cmp_google_variant_title( $variant ) {
1168
+
1169
+ switch( $variant ) {
1170
+ case '100':
1171
+ return 'Thin 100';
1172
+ break;
1173
+ case '100italic':
1174
+ return 'Thin 100 Italic';
1175
+ break;
1176
+ case '200':
1177
+ return 'Extra-light 200';
1178
+ break;
1179
+ case '200italic':
1180
+ return 'Extra-light 200 Italic';
1181
+ break;
1182
+ case '300':
1183
+ return 'Light 300';
1184
+ break;
1185
+ case '300italic':
1186
+ return 'Light 300 Italic';
1187
+ break;
1188
+ case '400':
1189
+ return 'Regular 400';
1190
+ break;
1191
+ case '400italic':
1192
+ return 'Regular 400 Italic';
1193
+ break;
1194
+ case '500':
1195
+ return 'Medium 500';
1196
+ break;
1197
+ case '500italic':
1198
+ return 'Meidum 500 Italic';
1199
+ break;
1200
+ case '600':
1201
+ return 'Semi-Bold 600';
1202
+ break;
1203
+ case '600italic':
1204
+ return 'Semi-Bold 600 Italic';
1205
+ break;
1206
+ case '700':
1207
+ return 'Bold 700';
1208
+ break;
1209
+ case '700italic':
1210
+ return 'Bold 700 Italic';
1211
+ break;
1212
+ case '800':
1213
+ return 'Extra-Bold 800';
1214
+ break;
1215
+ case '800italic':
1216
+ return 'Extra-Bold Italic';
1217
+ break;
1218
+ case '900':
1219
+ return 'Black 900';
1220
+ break;
1221
+ case '900italic':
1222
+ return 'Black 900 Italic';
1223
+ break;
1224
+ case 'regular':
1225
+ return 'Regular 400';
1226
+ break;
1227
+ case 'italic':
1228
+ return 'Regular 400 Italic';
1229
+ break;
1230
+ default:
1231
+ break;
1232
+ }
1233
+ }
1234
  }
1235
 
1236
 
1259
  add_action( 'admin_enqueue_scripts', array($cmpPlugin,'cmp_add_admin_style') );
1260
  add_action( 'wp_enqueue_scripts', array($cmpPlugin,'cmp_add_admin_style') );
1261
 
 
1262
  register_activation_hook(__FILE__, array($cmpPlugin, 'cmp_activate'));
1263
  register_deactivation_hook(__FILE__, array($cmpPlugin, 'cmp_deactivate'));
1264
  register_uninstall_hook(__FILE__, 'cmp_plugin_delete');
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.9
7
- Stable tag: 1.13.1
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -26,9 +26,11 @@ CMP brings premium features for free, no PRO versions! It is very user friendly
26
  <li>Fully responsive and Retina ready</li>
27
  <li>Customize Logo, Fonts and Colors</li>
28
  <li>Setup custom Social Icons</li>
 
29
  <li>Predefined subscribe form to store emails in custom database with export to CSV or you can use any 3rd party plugin(Mailchimp, CF7, etc)</li>
30
  <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>
31
  <li>Fullscreen background options includes videos (YouTube, custom file video), images (Unsplash library, custom images), Patterns, color Gradients or solid Colors</li>
 
32
  <li>Configurable Countdown Action - disable plugin or redirect to another webpage.</li>
33
  <li>Customize SEO meta tags to search engines and editable favicon</li>
34
  <li>Set response code to search engines (200, 503)</li>
@@ -41,20 +43,18 @@ CMP brings premium features for free, no PRO versions! It is very user friendly
41
  </ul>
42
 
43
  == Screenshots ==
44
- 1. CMP - Coming Soon Plugin
45
- 2. CMP - Theme Selector
46
- 3. CMP - Subscriber List
47
- 4. CMP - Theme Selector detail
48
- 5. CMP - Global Settings
49
- 6. CMP - Theme Content Settings
50
- 7. CMP - SEO Settings
51
- 8. CMP - Construct Theme
52
- 9. CMP - Countdown Theme
53
- 10. CMP - Fifty Theme
54
- 11. CMP - Fifty Theme
55
- 12. CMP - Frame Theme
56
- 13. CMP - Hardwork Theme
57
- 14. CMP - Hardwork Premium Theme
58
 
59
 
60
 
@@ -109,10 +109,20 @@ CMP brings premium features for free, no PRO versions! It is very user friendly
109
 
110
 
111
  == Changelog ==
 
 
 
 
 
 
 
 
 
 
 
112
  <h4>1.13.1</h4>
113
  <ul>
114
  <li>Fixed bug with Soundcloud icon issues from previous update. Sorry folks!</li>
115
-
116
  </ul>
117
 
118
  <h4>1.13.0</h4>
4
  Tags: under construction, construction page, maintenance mode, landing page, launch page, launching, security, coming soon, customizable, offline, offline page, unavailable, free, unsplash, subscribe form
5
  Requires at least: 3.0
6
  Tested up to: 4.9
7
+ Stable tag: 2.0
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
10
 
26
  <li>Fully responsive and Retina ready</li>
27
  <li>Customize Logo, Fonts and Colors</li>
28
  <li>Setup custom Social Icons</li>
29
+ <li>Selection of 800+ Google fonts Families and Font customization like Weight, Style, Letter Spacing and Line Height</li>
30
  <li>Predefined subscribe form to store emails in custom database with export to CSV or you can use any 3rd party plugin(Mailchimp, CF7, etc)</li>
31
  <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>
32
  <li>Fullscreen background options includes videos (YouTube, custom file video), images (Unsplash library, custom images), Patterns, color Gradients or solid Colors</li>
33
+ <li>Setup Font animations on selected Themes</li>
34
  <li>Configurable Countdown Action - disable plugin or redirect to another webpage.</li>
35
  <li>Customize SEO meta tags to search engines and editable favicon</li>
36
  <li>Set response code to search engines (200, 503)</li>
43
  </ul>
44
 
45
  == Screenshots ==
46
+ 1. CMP - Postery Theme
47
+ 2. CMP - Hardwork Theme
48
+ 3. CMP - Countdown Theme
49
+ 4. CMP - Fifty Theme
50
+ 5. CMP - Fifty Theme
51
+ 6. CMP - Construct Theme
52
+ 7. CMP - Frame Theme
53
+ 8. CMP - Hardwork Theme
54
+ 9. CMP - Theme Details
55
+ 10. CMP - Admin screen
56
+ 11. CMP - Admin screen
57
+ 12. CMP - Admin screene
 
 
58
 
59
 
60
 
109
 
110
 
111
  == Changelog ==
112
+ <h4>2.0</h4>
113
+ <ul>
114
+ <li>New free CMP theme Eclipse available for download with beautiful Counter, extended Footer and Welcome hero screen animation. Check it out <a href="https://niteothemes.com/?filter=freebies">CMP Freebies</a></li>
115
+ <li>New and awesome Font Selector - Select any Google Font - 800+ Font Families - and customize Contect and Headings font styles (Weight, Line height, Letter Spacing) </li>
116
+ <li>Replaced all default HTML select boxes by Select2 add-on.</li>
117
+ <li>Fixed: updated compatibility with all themes and plugins - sometime it happened the CMP content was over-ruled by another plugin or Theme.</li>
118
+ <li>Added support for new modern text effects in selected themes (Fade in from top, bottom, left and right).</li>
119
+ <li>Updated all CMP Theme`s design for mobile devices</li>
120
+ <li>Changed CMP Plugin version numbering from 1.xx to 2.x</li>
121
+ </ul>
122
+
123
  <h4>1.13.1</h4>
124
  <ul>
125
  <li>Fixed bug with Soundcloud icon issues from previous update. Sorry folks!</li>
 
126
  </ul>
127
 
128
  <h4>1.13.0</h4>
themes/construct.txt CHANGED
@@ -1,8 +1,4 @@
1
  /*
2
  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.9
7
- Description: <p>Construct is clean and modern designed theme for CMP plugin. Construct features big paralax banner which can be set to any custom graphic, pattern or Unsplash library media. Add subscribe form, your customized social media icons and it can be used both Coming soon or Under Construction landing page.</p><h4>Main Features</h4><ul><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Graphic Parallax Effect</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Logo</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Content</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Graphic Background including videos</li><li class="not-supported"><i class="fa fa-times" aria-hidden="true"></i> Graphic Image Slider Background</li><li class="not-supported"><i class="fa fa-times" aria-hidden="true"></i> Countdown Timer</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Subscribe Form</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Social Media</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Colors</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Fonts</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Footer Content</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Responsive Design</li></ul>
8
 
1
  /*
2
  Theme Name: Construct
3
+ Description: <p>Construct is clean and modern designed theme for CMP plugin. Construct features big paralax banner which can be set to any custom graphic, pattern or Unsplash library media. Add subscribe form, your customized social media icons and it can be used both Coming soon or Under Construction landing page.</p><h4>Main Features</h4><ul><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Graphic Parallax Effect</li><li class="not-supported"><i class="fa fa-times" aria-hidden="true"></i> Fade in/out Text Effects</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Logo</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Content</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Graphic Background including videos</li><li class="not-supported"><i class="fa fa-times" aria-hidden="true"></i> Graphic Image Slider Background</li><li class="not-supported"><i class="fa fa-times" aria-hidden="true"></i> Countdown Timer</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Subscribe Form</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Social Media</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Colors</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Fonts</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Footer Content</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Responsive Design</li></ul>
 
 
 
 
4
 
themes/construct/construct-theme.php CHANGED
@@ -28,6 +28,17 @@ if ( $_SERVER['REQUEST_METHOD'] == 'POST'
28
  $background_color = get_option('niteoCS_background_color['.$themeslug.']', '#ffffff');
29
  $heading_font = get_option('niteoCS_font_headings['.$themeslug.']', 'Fjalla One');
30
  $content_font = get_option('niteoCS_font_content['.$themeslug.']', 'Average Sans');
 
 
 
 
 
 
 
 
 
 
 
31
  $logo_type = get_option('niteoCS_logo_type['.$themeslug.']', 'text');
32
  $niteoCS_banner = get_option('niteoCS_banner['.$themeslug.']', '2');
33
 
@@ -41,6 +52,7 @@ if ( $_SERVER['REQUEST_METHOD'] == 'POST'
41
 
42
  // get global settings
43
  $body_title = get_option('niteoCS_body_title', 'SOMETHING IS HAPPENING!');
 
44
  $copyright = get_option('niteoCS_copyright', 'Copyright 2017 NiteoThemes. All rights reserved.');
45
  $social_title = get_option('niteoCS_soc_title', 'GET SOCIAL WITH US');
46
  $favicon_id = get_option('niteoCS_favicon_id');
@@ -74,6 +86,10 @@ if ( $_SERVER['REQUEST_METHOD'] == 'POST'
74
  input[type="email"]:focus {border:1px solid <?php echo esc_attr( $active_color ); ?>;}
75
  input[type="submit"]{background-color: <?php echo esc_attr( $active_color ); ?>;}
76
  .social-list a:hover{background:<?php echo esc_attr( $active_color ); ?>;}
 
 
 
 
77
  </style>
78
 
79
  <?php
@@ -138,7 +154,7 @@ if ( $_SERVER['REQUEST_METHOD'] == 'POST'
138
  } ?>
139
 
140
 
141
- <?php echo apply_filters('the_content', stripslashes(get_option('niteoCS_body')));?>
142
 
143
  <?php
144
  if ( method_exists ( $html, 'cmp_subscribe_form' ) ) {
28
  $background_color = get_option('niteoCS_background_color['.$themeslug.']', '#ffffff');
29
  $heading_font = get_option('niteoCS_font_headings['.$themeslug.']', 'Fjalla One');
30
  $content_font = get_option('niteoCS_font_content['.$themeslug.']', 'Average Sans');
31
+
32
+ $headings_size = get_option('niteoCS_font_headings_size['.$themeslug.']', '40');
33
+ $heading_variant = get_option('niteoCS_font_headings_variant['.$themeslug.']', '700');
34
+ $headings_spacing = get_option('niteoCS_font_headings_spacing['.$themeslug.']', '0');
35
+ $content_size = get_option('niteoCS_font_content_size['.$themeslug.']', '17');
36
+ $content_variant = get_option('niteoCS_font_content_variant['.$themeslug.']', 'regular');
37
+ $content_lineheight = get_option('niteoCS_font_content_lineheight['.$themeslug.']', '1.5');
38
+ $content_spacing = get_option('niteoCS_font_content_spacing['.$themeslug.']', '0');
39
+ $content_variant = ($content_variant =='regular') ? '400' : $content_variant;
40
+ $heading_variant = ($heading_variant =='regular') ? '400' : $heading_variant;
41
+
42
  $logo_type = get_option('niteoCS_logo_type['.$themeslug.']', 'text');
43
  $niteoCS_banner = get_option('niteoCS_banner['.$themeslug.']', '2');
44
 
52
 
53
  // get global settings
54
  $body_title = get_option('niteoCS_body_title', 'SOMETHING IS HAPPENING!');
55
+ $body = get_option('niteoCS_body');
56
  $copyright = get_option('niteoCS_copyright', 'Copyright 2017 NiteoThemes. All rights reserved.');
57
  $social_title = get_option('niteoCS_soc_title', 'GET SOCIAL WITH US');
58
  $favicon_id = get_option('niteoCS_favicon_id');
86
  input[type="email"]:focus {border:1px solid <?php echo esc_attr( $active_color ); ?>;}
87
  input[type="submit"]{background-color: <?php echo esc_attr( $active_color ); ?>;}
88
  .social-list a:hover{background:<?php echo esc_attr( $active_color ); ?>;}
89
+
90
+ body {font-size:<?php echo esc_attr($content_size);?>px;}
91
+ .section-body p {line-height: <?php echo esc_attr($content_lineheight);?>; letter-spacing: <?php echo esc_attr($content_spacing);?>px;font-weight:<?php echo esc_attr($content_variant);?>;}
92
+ h1:not(.text-logo),h2, h3,h4,h5,h6,.text-logo-wrapper {font-size:<?php echo esc_attr($headings_size / $content_size);?>em;letter-spacing: <?php echo esc_attr($headings_spacing);?>px; font-weight:<?php echo esc_attr($heading_variant);?>; }
93
  </style>
94
 
95
  <?php
154
  } ?>
155
 
156
 
157
+ <?php echo wpautop( stripslashes( $body ) ); ?>
158
 
159
  <?php
160
  if ( method_exists ( $html, 'cmp_subscribe_form' ) ) {
themes/construct/img/construct_thumbnail.jpg DELETED
Binary file
themes/construct/style.css CHANGED
@@ -21,7 +21,8 @@ body {
21
  }
22
 
23
  :focus {outline:none;}
24
- h1,h2,h3,h4,h5,h6{font-weight: 400;font-size:2em;}
 
25
  .section {padding: 50px 2em;text-align: center;
26
  position: relative;
27
  display: -moz-flex;
@@ -45,30 +46,29 @@ h1,h2,h3,h4,h5,h6{font-weight: 400;font-size:2em;}
45
  flex-grow: 1;
46
  -webkit-flex-grow: 1;
47
  -moz-flex-grow: 1;}
48
- .section-logo {width: 500px;max-width:100%; margin: 0 auto;}
49
  .section-logo img {max-width: 100%;max-height: 300px;}
50
- .section-logo h1 {font-size: 2.5em; text-transform: uppercase;}
51
  .section-banner{height: 700px;}
52
- .section-body p{width:70%;max-width: 900px;margin:1em auto;}
53
  .section-social{background-color: #f8f8f8;}
54
- .section-footer{background-color: #2a2829;color:#a3a1a2;padding: 1em;}
55
  #background-image, .video-banner{position: absolute;top: 0;right: 0;bottom: 0;left: 0;background-attachment: fixed;background-position: center center;background-repeat: no-repeat;background-size: cover;}
56
  #background-image {opacity: 0; -webkit-transition: opacity 400ms; transition: opacity 400ms;}
57
  #background-image.loaded {opacity: 1;}
58
 
59
  #background-image.pattern{background-size: initial; background-repeat: repeat;}
60
- .social-list{padding:0;margin-bottom: 0;}
61
  .social-list li{list-style: none;display: inline-block; padding: 0 5px;}
62
  .section-body form{width: 400px;max-width:100%;margin: 0 auto;margin-top: 70px;margin-bottom: 30px;text-align:left;}
63
  .section-body form br {display: none;}
64
- label {display: block;padding-bottom: 5px;text-indent: 15px;font-size:.8em;}
65
- input {display: inline-block;line-height: 4em;height: 4em;-webkit-box-sizing: border-box;box-sizing: border-box;vertical-align: middle;margin-bottom: 10px;}
66
  input[type="email"],
67
  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;}
68
  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;}
69
  input[type="text"] {width: calc(100% - 2px);border-radius:5px;}
70
  .social-list a{display: block;height: 3em;width: 3em;line-height: 3em;background: transparent;-webkit-transition: background 300ms linear;transition: background 300ms linear;border-radius: 5px;}
71
- .social-list i{font-size: 2em;-webkit-transition: all 300ms linear;transition: all 300ms linear;vertical-align: middle;}
72
  .social-list a:hover i {-webkit-animation: spin 300ms linear;animation: spin 300ms linear;color:#fff;}
73
  /* contact form 7 */
74
  .wpcf7 .screen-reader-response, .wpcf7 .wpcf7-validation-errors {display: none;}
@@ -110,22 +110,30 @@ input[type="text"] {width: calc(100% - 2px);border-radius:5px;}
110
  }
111
  }
112
 
113
- @media only screen and (max-width : 680px) {
114
- .section-banner {
115
- height: 400px;
116
- }
117
  }
118
 
119
 
 
 
 
 
 
 
120
  @media only screen and (max-width : 480px) {
121
  .section:not(.section-banner) {padding: 20px 10px;}
122
  .section-banner {
123
  height: 250px;
124
  }
 
 
 
125
  input[type="email"],
126
  input[type="submit"] {line-height: 3em;height: 3em;}
127
  input[type="email"] {width: 70%;}
128
  input[type="submit"] {width: 30%;}
129
  .section-body p {width:90%;}
130
- }
131
 
 
21
  }
22
 
23
  :focus {outline:none;}
24
+ h1,h2,h3,h4,h5,h6{font-weight: 400;}
25
+ .text-logo {font-size: 1.8em;}
26
  .section {padding: 50px 2em;text-align: center;
27
  position: relative;
28
  display: -moz-flex;
46
  flex-grow: 1;
47
  -webkit-flex-grow: 1;
48
  -moz-flex-grow: 1;}
49
+ .section-logo {max-width:100%; margin: 0 auto;}
50
  .section-logo img {max-width: 100%;max-height: 300px;}
 
51
  .section-banner{height: 700px;}
52
+ .section-body p{width:70%;max-width: 900px;margin:0.5em auto;}
53
  .section-social{background-color: #f8f8f8;}
54
+ .section-footer{background-color: #2a2829;color:#a3a1a2;padding: 1em;font-size:1em;}
55
  #background-image, .video-banner{position: absolute;top: 0;right: 0;bottom: 0;left: 0;background-attachment: fixed;background-position: center center;background-repeat: no-repeat;background-size: cover;}
56
  #background-image {opacity: 0; -webkit-transition: opacity 400ms; transition: opacity 400ms;}
57
  #background-image.loaded {opacity: 1;}
58
 
59
  #background-image.pattern{background-size: initial; background-repeat: repeat;}
60
+ .social-list{padding:0;margin: 0;}
61
  .social-list li{list-style: none;display: inline-block; padding: 0 5px;}
62
  .section-body form{width: 400px;max-width:100%;margin: 0 auto;margin-top: 70px;margin-bottom: 30px;text-align:left;}
63
  .section-body form br {display: none;}
64
+ label {display: block;padding-bottom: 5px;text-indent: 5px;font-size:.9em;}
65
+ input {display: inline-block;font-size: 0.9em;line-height: 3em;height: 3em;-webkit-box-sizing: border-box;box-sizing: border-box;vertical-align: middle;margin-bottom: 10px;}
66
  input[type="email"],
67
  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;}
68
  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;}
69
  input[type="text"] {width: calc(100% - 2px);border-radius:5px;}
70
  .social-list a{display: block;height: 3em;width: 3em;line-height: 3em;background: transparent;-webkit-transition: background 300ms linear;transition: background 300ms linear;border-radius: 5px;}
71
+ .social-list i{-webkit-transition: all 300ms linear;transition: all 300ms linear;}
72
  .social-list a:hover i {-webkit-animation: spin 300ms linear;animation: spin 300ms linear;color:#fff;}
73
  /* contact form 7 */
74
  .wpcf7 .screen-reader-response, .wpcf7 .wpcf7-validation-errors {display: none;}
110
  }
111
  }
112
 
113
+ @media only screen and (max-width : 1024px) {
114
+ body {font-size: 16px!important;}
115
+ h1:not(.text-logo),h2, h3,h4,h5,h6,.text-logo-wrapper {font-size: 1.8em!important;}
 
116
  }
117
 
118
 
119
+ @media only screen and (max-width : 680px) {
120
+ body {font-size: 15px!important;}
121
+ .section-banner {height: 400px;}
122
+ .social-list a {height: 2em; width: 2em;line-height: 2em;}
123
+ }
124
+
125
  @media only screen and (max-width : 480px) {
126
  .section:not(.section-banner) {padding: 20px 10px;}
127
  .section-banner {
128
  height: 250px;
129
  }
130
+
131
+ body {font-size: 14px!important;}
132
+ h1:not(.text-logo), h2, h3, h4, h5, h6, .text-logo-wrapper {font-size: 1.7em!important;}
133
  input[type="email"],
134
  input[type="submit"] {line-height: 3em;height: 3em;}
135
  input[type="email"] {width: 70%;}
136
  input[type="submit"] {width: 30%;}
137
  .section-body p {width:90%;}
 
138
 
139
+ }
themes/countdown.txt CHANGED
@@ -1,7 +1,3 @@
1
  /*
2
  Theme Name: Countdown
3
- Theme URI: http://cmp.niteothemes.com/?cmp_preview=true&theme=countdown
4
- Author: Niteo
5
- Author URI: https//niteothemes.com
6
- Version: 1.5
7
- Description: <p>Countdown theme attracts attention with big counting clocks, which you can set to any expiration date. When timer hits zero you can set following actions: do-nothing, redirect to set URL or disable CMP plugin and display your normal page to visitors.</p><p>Social icons can be set to a footer with transparent icons or inside Countdown body with big beautiful eye attacting icons.</p><h4>Main Features</h4><ul><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Logo</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Content</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Graphic Background including videos</li><li class="not-supported"><i class="fa fa-times" aria-hidden="true"></i> Graphic Image Slider Background</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Countdown Timer</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Subscribe Form</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Social Media</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Colors</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Fonts</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Footer Content</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Responsive Design</li></ul>
1
  /*
2
  Theme Name: Countdown
3
+ Description: <p>Countdown theme attracts attention with big counting clocks, which you can set to any expiration date. When timer hits zero you can set following actions: do-nothing, redirect to set URL or disable CMP plugin and display your normal page to visitors.</p><p>Social icons can be set to a footer with transparent icons or inside Countdown body with big beautiful eye attacting icons.</p><h4>Main Features</h4><ul><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Logo</li><li class="not-supported"><i class="fa fa-times" aria-hidden="true"></i> Fade in/out Text Effects</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Content</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Graphic Background including videos</li><li class="not-supported"><i class="fa fa-times" aria-hidden="true"></i> Graphic Image Slider Background</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Countdown Timer</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Subscribe Form</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Social Media</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Colors</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Fonts</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Footer Content</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Responsive Design</li></ul>
 
 
 
 
themes/countdown/countdown-settings.php CHANGED
@@ -95,15 +95,5 @@ jQuery(document).ready(function($){
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>
95
  jQuery('#niteoCS_active_color').wpColorPicker();
96
  jQuery('#niteoCS_overlay_color').wpColorPicker();
97
 
 
 
 
 
 
 
 
 
 
 
98
  });
99
  </script>
themes/countdown/countdown-theme.php CHANGED
@@ -30,15 +30,19 @@ if ( $_SERVER['REQUEST_METHOD'] == 'POST'
30
  $background_overlay = $this->hex2rgba($niteoCS_overlay_color, $niteoCS_overlay_opacity);
31
  $content_font = get_option('niteoCS_font_content['.$themeslug.']', 'Raleway');
32
  $heading_font = get_option('niteoCS_font_headings['.$themeslug.']', 'Raleway');
33
- $niteoCS_banner = get_option('niteoCS_banner['.$themeslug.']', '1');
34
 
35
- if ( $heading_font == 'custom' ) {
36
- $heading_font = get_option('niteoCS_font_headings_custom['.$themeslug.']');
37
- }
 
 
 
 
 
 
 
 
38
 
39
- if ( $content_font == 'custom' ) {
40
- $content_font = get_option('niteoCS_font_content_custom['.$themeslug.']');
41
- }
42
  // get global settings
43
  $niteoCS_counter = get_option('niteoCS_counter', '1');
44
  $niteoCS_counter_date = get_option('niteoCS_counter_date', time()+86400);
@@ -77,6 +81,7 @@ if ( $_SERVER['REQUEST_METHOD'] == 'POST'
77
 
78
  <style>
79
  body,input {font-family:'<?php echo esc_attr($content_font);?>', 'sans-serif';color:<?php echo esc_attr( $niteoCS_font_color ); ?>;}
 
80
  h1,h2,h3,h4,h5,h6 {font-family:'<?php echo esc_attr($heading_font);?>', 'sans-serif';}
81
  a {color:<?php echo esc_attr( $niteoCS_font_color ); ?>;}
82
  input[type="submit"] {background-color: <?php echo esc_attr($niteoCS_active_color);?>;}
@@ -92,6 +97,10 @@ if ( $_SERVER['REQUEST_METHOD'] == 'POST'
92
  .social-list.body a:hover {background-color: <?php echo esc_attr( $niteoCS_active_color ); ?>;}
93
  .social-list.footer a:hover {color: <?php echo esc_attr( $niteoCS_active_color ); ?>;}
94
  .social-list.footer li:not(:last-of-type)::after {background-color: <?php echo esc_attr( $niteoCS_font_color_light ); ?>;}
 
 
 
 
95
  </style>
96
 
97
  <?php
@@ -206,7 +215,7 @@ if ( $_SERVER['REQUEST_METHOD'] == 'POST'
206
  // display body content
207
  if ( $body != '' ) { ?>
208
  <div class="content">
209
- <?php echo apply_filters('the_content', stripslashes($body));?>
210
  </div>
211
  <?php
212
  }
30
  $background_overlay = $this->hex2rgba($niteoCS_overlay_color, $niteoCS_overlay_opacity);
31
  $content_font = get_option('niteoCS_font_content['.$themeslug.']', 'Raleway');
32
  $heading_font = get_option('niteoCS_font_headings['.$themeslug.']', 'Raleway');
 
33
 
34
+ $headings_size = get_option('niteoCS_font_headings_size['.$themeslug.']', '40');
35
+ $heading_variant = get_option('niteoCS_font_headings_variant['.$themeslug.']', '700');
36
+ $headings_spacing = get_option('niteoCS_font_headings_spacing['.$themeslug.']', '0');
37
+ $content_size = get_option('niteoCS_font_content_size['.$themeslug.']', '17');
38
+ $content_variant = get_option('niteoCS_font_content_variant['.$themeslug.']', 'regular');
39
+ $content_lineheight = get_option('niteoCS_font_content_lineheight['.$themeslug.']', '1.5');
40
+ $content_spacing = get_option('niteoCS_font_content_spacing['.$themeslug.']', '0');
41
+ $content_variant = ($content_variant =='regular') ? '400' : $content_variant;
42
+ $heading_variant = ($heading_variant =='regular') ? '400' : $heading_variant;
43
+
44
+ $niteoCS_banner = get_option('niteoCS_banner['.$themeslug.']', '1');
45
 
 
 
 
46
  // get global settings
47
  $niteoCS_counter = get_option('niteoCS_counter', '1');
48
  $niteoCS_counter_date = get_option('niteoCS_counter_date', time()+86400);
81
 
82
  <style>
83
  body,input {font-family:'<?php echo esc_attr($content_font);?>', 'sans-serif';color:<?php echo esc_attr( $niteoCS_font_color ); ?>;}
84
+ body {font-size:<?php echo esc_attr($content_size);?>px;}
85
  h1,h2,h3,h4,h5,h6 {font-family:'<?php echo esc_attr($heading_font);?>', 'sans-serif';}
86
  a {color:<?php echo esc_attr( $niteoCS_font_color ); ?>;}
87
  input[type="submit"] {background-color: <?php echo esc_attr($niteoCS_active_color);?>;}
97
  .social-list.body a:hover {background-color: <?php echo esc_attr( $niteoCS_active_color ); ?>;}
98
  .social-list.footer a:hover {color: <?php echo esc_attr( $niteoCS_active_color ); ?>;}
99
  .social-list.footer li:not(:last-of-type)::after {background-color: <?php echo esc_attr( $niteoCS_font_color_light ); ?>;}
100
+
101
+ .inner-content p {line-height: <?php echo esc_attr($content_lineheight);?>; letter-spacing: <?php echo esc_attr($content_spacing);?>px;font-weight:<?php echo esc_attr($content_variant);?>;}
102
+ h1:not(.text-logo),h2, h3,h4,h5,h6,.text-logo-wrapper {font-size:<?php echo esc_attr($headings_size / $content_size);?>em;letter-spacing: <?php echo esc_attr($headings_spacing);?>px; font-weight:<?php echo esc_attr($heading_variant);?>; }
103
+
104
  </style>
105
 
106
  <?php
215
  // display body content
216
  if ( $body != '' ) { ?>
217
  <div class="content">
218
+ <?php echo wpautop( stripslashes( $body ) ); ?>
219
  </div>
220
  <?php
221
  }
themes/countdown/img/countdown_thumbnail.jpg DELETED
Binary file
themes/countdown/style.css CHANGED
@@ -252,20 +252,8 @@ body{
252
  position: relative;
253
  }
254
 
255
- h1 {
256
- font-size: 2em;
257
- }
258
-
259
-
260
-
261
  h1,h2,h3,h4,h5,h6 {
262
- font-weight: 700;
263
- font-size: 2em;
264
- margin-bottom: .3em;
265
- }
266
-
267
- h3,h4,h5,h6 {
268
- font-size: 1.3em;
269
  }
270
 
271
  #background-wrapper {
@@ -400,13 +388,11 @@ footer {
400
  max-height: 270px;
401
  }
402
 
403
- .text-logo {
404
- font-size: 3em;
 
405
  }
406
 
407
- .body p {
408
- font-size: 1.1em;
409
- }
410
 
411
  .social-list {
412
  display: inline-block;
@@ -432,7 +418,6 @@ footer {
432
  transition: background 300ms linear;
433
  }
434
  .social-list i{
435
- font-size: 1em;
436
  -webkit-transition: all 300ms linear;
437
  transition: all 300ms linear;
438
  }
@@ -501,7 +486,7 @@ label {
501
  display: block;
502
  text-align: left;
503
  font-size: .8em;
504
- padding: 0 0 5px 15px;
505
  }
506
 
507
  .input-icon {
@@ -633,8 +618,8 @@ input[type="submit"] {
633
  }
634
 
635
  @media only screen and (max-width : 1024px) {
636
-
637
-
638
  }
639
 
640
  @media only screen and (max-width : 820px) {
@@ -646,6 +631,8 @@ input[type="submit"] {
646
  @media only screen and (max-width : 768px) {
647
  .logo-wrapper img {max-width: 100%; }
648
  .inner-content, footer {width:auto;}
 
 
649
  }
650
 
651
  @media only screen and (max-width : 620px) {
@@ -662,4 +649,9 @@ input[type="submit"] {
662
  input[type="email"], input[type="submit"] {display:block;width:100%;}
663
  input[type="submit"] {margin:0;}
664
  input[type="email"]{margin-bottom: 5px;}
 
 
 
 
 
665
  }
252
  position: relative;
253
  }
254
 
 
 
 
 
 
 
255
  h1,h2,h3,h4,h5,h6 {
256
+ margin-bottom: .5em;
 
 
 
 
 
 
257
  }
258
 
259
  #background-wrapper {
388
  max-height: 270px;
389
  }
390
 
391
+ .social-wrapper.body {
392
+ margin-top: -3em;
393
+ margin-bottom: 3em;
394
  }
395
 
 
 
 
396
 
397
  .social-list {
398
  display: inline-block;
418
  transition: background 300ms linear;
419
  }
420
  .social-list i{
 
421
  -webkit-transition: all 300ms linear;
422
  transition: all 300ms linear;
423
  }
486
  display: block;
487
  text-align: left;
488
  font-size: .8em;
489
+ padding: 0 0 5px 5px;
490
  }
491
 
492
  .input-icon {
618
  }
619
 
620
  @media only screen and (max-width : 1024px) {
621
+ .text-logo { font-size: 1.6em;}
622
+ body {font-size: 16px!important;}
623
  }
624
 
625
  @media only screen and (max-width : 820px) {
631
  @media only screen and (max-width : 768px) {
632
  .logo-wrapper img {max-width: 100%; }
633
  .inner-content, footer {width:auto;}
634
+ .text-logo { font-size: 1.3em;}
635
+ body {font-size: 15px!important;}
636
  }
637
 
638
  @media only screen and (max-width : 620px) {
649
  input[type="email"], input[type="submit"] {display:block;width:100%;}
650
  input[type="submit"] {margin:0;}
651
  input[type="email"]{margin-bottom: 5px;}
652
+ input[type="email"] {border-top-right-radius: 5px;border-bottom-right-radius: 5px;}
653
+ input[type="submit"] {border-top-left-radius: 5px;border-bottom-left-radius: 5px;border-left: 1px solid rgba(255,255,255,0.3);}
654
+ .text-logo { font-size: 1.2em;}
655
+ body {font-size: 14px!important;}
656
+
657
  }
themes/eclipse.txt ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ /*
2
+ Theme Name: Countdown
3
+ Description: <p>Countdown theme attracts attention with big counting clocks, which you can set to any expiration date. When timer hits zero you can set following actions: do-nothing, redirect to set URL or disable CMP plugin and display your normal page to visitors.</p><p>Social icons can be set to a footer with transparent icons or inside Countdown body with big beautiful eye attacting icons.</p><h4>Main Features</h4><ul><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Logo</li><li class="not-supported"><i class="fa fa-times" aria-hidden="true"></i> Fade in/out Text Effects</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Content</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Graphic Background including videos</li><li class="not-supported"><i class="fa fa-times" aria-hidden="true"></i> Graphic Image Slider Background</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Countdown Timer</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Subscribe Form</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Social Media</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Colors</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Fonts</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Footer Content</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Responsive Design</li></ul>
themes/fifty.txt CHANGED
@@ -1,8 +1,4 @@
1
  /*
2
  Theme Name: Fifty
3
- Theme URI: http://cmp.niteothemes.com/?cmp_preview=true&theme=fifty
4
- Author: Niteo
5
- Author URI: https://niteothemes.com
6
- Version: 1.9
7
- Description: <p>Fifty is Premium theme for CMP Plugin. As name suggests it divides page into two equal halfs. On the left half you can set custom logo, any text content, subscribe form and Social icons with two predefined desings: bigger colorful icons in body or smaller icons in Fifty`s footer.</p><p>Second half is predefined for your media. It can be a single image, random images per each website load or image slider.</p><h4>Main Features</h4><ul><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Logo</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Content</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Graphic Background including videos</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Graphic Image Slider Background</li><li class="not-supported"><i class="fa fa-times" aria-hidden="true"></i> Countdown Timer</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Subscribe Form</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Social Media</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Colors</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Fonts</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Footer Content</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Responsive Design</li></ul>
8
 
1
  /*
2
  Theme Name: Fifty
3
+ Description: <p>Fifty is Premium theme for CMP Plugin. As name suggests it divides page into two equal halfs. On the left half you can set custom logo, any text content, subscribe form and Social icons with two predefined desings: bigger colorful icons in body or smaller icons in Fifty`s footer.</p><p>Second half is predefined for your media. It can be a single image, random images per each website load or image slider.</p><h4>Main Features</h4><ul><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Logo</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Fade in/out Text Effects</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Content</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Graphic Background including videos</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Graphic Image Slider Background</li><li class="not-supported"><i class="fa fa-times" aria-hidden="true"></i> Countdown Timer</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Subscribe Form</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Social Media</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Colors</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Fonts</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Footer Content</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Responsive Design</li></ul>
 
 
 
 
4
 
themes/frame.txt CHANGED
@@ -1,7 +1,3 @@
1
  /*
2
  Theme Name: Frame
3
- Theme URI: http://cmp.niteothemes.com/?cmp_preview=true&theme=frame
4
- Author: Niteo
5
- Author URI: https://niteothemes.com
6
- Version: 1.8
7
- Description: <p>Frame is Premium theme for CMP plugin. Frame can be configured with outside and inside frame on your landing page where you can set beautiful digital counter with three predefined actions when timer hits zero: do-nothing, redirect to custom URL or disable CMP plugin and display your normal page to visitors.</p><p>Frame is usually used as Coming soon page but can serve as Maintenance landing page too. You can set custom image background, use any from predefined patterns or just plain color to keep things simple.</p><h4>Main Features</h4><ul><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Logo</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Content</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Graphic Background including videos</li><li class="not-supported"><i class="fa fa-times" aria-hidden="true"></i> Graphic Image Slider Background</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Countdown Timer</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Subscribe Form</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Social Media</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Colors</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Fonts</li><li class="not-supported"><i class="fa fa-times" aria-hidden="true"></i> Footer Content</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Responsive Design</li></ul>
1
  /*
2
  Theme Name: Frame
3
+ Description: <p>Frame is Premium theme for CMP plugin. Frame can be configured with outside and inside frame on your landing page where you can set beautiful digital counter with three predefined actions when timer hits zero: do-nothing, redirect to custom URL or disable CMP plugin and display your normal page to visitors.</p><p>Frame is usually used as Coming soon page but can serve as Maintenance landing page too. You can set custom image background, use any from predefined patterns or just plain color to keep things simple.</p><h4>Main Features</h4><ul><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Logo</li><li class="not-supported"><i class="fa fa-times" aria-hidden="true"></i> Fade in/out Text Effects</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Content</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Graphic Background including videos</li><li class="not-supported"><i class="fa fa-times" aria-hidden="true"></i> Graphic Image Slider Background</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Countdown Timer</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Subscribe Form</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Social Media</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Colors</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Fonts</li><li class="not-supported"><i class="fa fa-times" aria-hidden="true"></i> Footer Content</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Responsive Design</li></ul>
 
 
 
 
themes/hardwork.txt CHANGED
@@ -1,10 +1,6 @@
1
  /*
2
  Theme Name: Hardwork
3
- Theme URI: http://cmp.niteothemes.com/?cmp_preview=true&theme=hardwork
4
- Author: Niteo
5
- Author URI: https://niteothemes.com
6
- Version: 1.9.1
7
- Description: <p>Hardwork is our default theme for CMP plugin. By default it is set to modern white screen with only one heading to display clear message: "This website is under construction, please come back later".</p><p>Set a fullscreen custom image or use any from thousands Unsplash Library media, set social icons, add custom texts with overlay color and you have beautiful colorful landing page both for Under construction or Coming soon page.</p><h4>Supported Features</h4><ul><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Logo</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Content</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Graphic Background including videos</li><li class="not-supported"><i class="fa fa-times" aria-hidden="true"></i> Graphic Image Slider Background</li><li class="not-supported"><i class="fa fa-times" aria-hidden="true"></i> Countdown Timer</li><li class="not-supported"><i class="fa fa-times" aria-hidden="true"></i> Subscribe Form</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Social Media</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Colors</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Fonts</li><li class="not-supported"><i class="fa fa-times" aria-hidden="true"></i> Footer Content</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Responsive Design</li></ul>
8
 
9
 
10
 
1
  /*
2
  Theme Name: Hardwork
3
+ Description: <p>Hardwork is our default theme for CMP plugin. By default it is set to modern white screen with only one heading to display clear message: "This website is under construction, please come back later".</p><p>Set a fullscreen custom image or use any from thousands Unsplash Library media, set social icons, add custom texts with overlay color and you have beautiful colorful landing page both for Under construction or Coming soon page.</p><h4>Supported Features</h4><ul><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Logo</li><li class="not-supported"><i class="fa fa-times" aria-hidden="true"></i> Fade in/out Text Effects</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Content</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Graphic Background including videos</li><li class="not-supported"><i class="fa fa-times" aria-hidden="true"></i> Graphic Image Slider Background</li><li class="not-supported"><i class="fa fa-times" aria-hidden="true"></i> Countdown Timer</li><li class="not-supported"><i class="fa fa-times" aria-hidden="true"></i> Subscribe Form</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Social Media</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Colors</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Fonts</li><li class="not-supported"><i class="fa fa-times" aria-hidden="true"></i> Footer Content</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Responsive Design</li></ul>
 
 
 
 
4
 
5
 
6
 
themes/hardwork/hardwork-settings.php CHANGED
@@ -84,16 +84,5 @@ jQuery(document).ready(function($){
84
  jQuery('#overlay-color').css('display','none')
85
  }
86
  });
87
-
88
- var currentValue = jQuery('#current-opacity');
89
-
90
- jQuery('#niteoCS_overlay_opacity').change(function(){
91
- if (this.value == 0) {
92
- currentValue.html(': disabled');
93
- } else {
94
- currentValue.html(': '+this.value);
95
- }
96
- });
97
-
98
  });
99
  </script>
84
  jQuery('#overlay-color').css('display','none')
85
  }
86
  });
 
 
 
 
 
 
 
 
 
 
 
87
  });
88
  </script>
themes/hardwork/hardwork-theme.php CHANGED
@@ -17,17 +17,21 @@
17
  $background_opa = get_option('niteoCS_overlay_opacity['.$themeslug.']', '0.0');
18
  $heading_font = get_option('niteoCS_font_headings['.$themeslug.']', 'Playfair Display');
19
  $content_font = get_option('niteoCS_font_content['.$themeslug.']', 'Montserrat');
 
 
 
 
 
 
 
 
 
 
 
20
  $niteoCS_background = get_option('niteoCS_banner['.$themeslug.']', '4');
21
  $unplash_feed = get_option('niteoCS_unsplash_feed['.$themeslug.']', '0');
22
 
23
- if ( $heading_font == 'custom' ) {
24
- $heading_font = get_option('niteoCS_font_headings_custom['.$themeslug.']');
25
- }
26
 
27
- if ( $content_font == 'custom' ) {
28
- $content_font = get_option('niteoCS_font_content_custom['.$themeslug.']');
29
- }
30
-
31
  // get global settings
32
  $body_title = get_option('niteoCS_body_title', 'SOMETHING IS HAPPENING!');
33
  $body = get_option('niteoCS_body');
@@ -65,7 +69,7 @@
65
 
66
  <link rel="stylesheet" href="<?php echo plugin_dir_url( dirname( __FILE__ ) ) . $themeslug.'/style.css?ver='.$this->version ;?>" type="text/css" media="all">
67
 
68
- <link href="https://fonts.googleapis.com/css?family=<?php echo esc_attr(str_replace(' ', '+', $heading_font));?>|<?php echo esc_attr(str_replace(' ', '+', $content_font));?>:400,400i,700" rel="stylesheet">
69
 
70
  <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
71
 
@@ -80,6 +84,8 @@
80
  } ?>
81
  a{color:<?php echo esc_attr( $font_color ); ?>;}
82
  h1,h2,h3,h4,h5,h6 {font-family:'<?php echo esc_attr($heading_font);?>', 'sans-serif';}
 
 
83
  </style>
84
 
85
  <?php
@@ -143,15 +149,15 @@
143
  }
144
 
145
  // display body
146
- echo apply_filters( 'the_content', stripslashes( $body ) );
147
-
148
- // display social icons
149
- if ( method_exists ( $html, 'cmp_social_icons' ) ) {
150
- echo $html->cmp_social_icons();
151
- } ?>
152
  </section>
153
-
154
  <?php
 
 
 
 
 
155
  // render javascripts
156
  if ( method_exists ( $html, 'cmp_javascripts' ) ) {
157
  $html->cmp_javascripts( $niteoCS_background, $themeslug );
17
  $background_opa = get_option('niteoCS_overlay_opacity['.$themeslug.']', '0.0');
18
  $heading_font = get_option('niteoCS_font_headings['.$themeslug.']', 'Playfair Display');
19
  $content_font = get_option('niteoCS_font_content['.$themeslug.']', 'Montserrat');
20
+
21
+ $headings_size = get_option('niteoCS_font_headings_size['.$themeslug.']', '40');
22
+ $heading_variant = get_option('niteoCS_font_headings_variant['.$themeslug.']', '700');
23
+ $headings_spacing = get_option('niteoCS_font_headings_spacing['.$themeslug.']', '0');
24
+ $content_size = get_option('niteoCS_font_content_size['.$themeslug.']', '17');
25
+ $content_variant = get_option('niteoCS_font_content_variant['.$themeslug.']', 'regular');
26
+ $content_lineheight = get_option('niteoCS_font_content_lineheight['.$themeslug.']', '1.5');
27
+ $content_spacing = get_option('niteoCS_font_content_spacing['.$themeslug.']', '0');
28
+ $content_variant = ($content_variant =='regular') ? '400' : $content_variant;
29
+ $heading_variant = ($heading_variant =='regular') ? '400' : $heading_variant;
30
+
31
  $niteoCS_background = get_option('niteoCS_banner['.$themeslug.']', '4');
32
  $unplash_feed = get_option('niteoCS_unsplash_feed['.$themeslug.']', '0');
33
 
 
 
 
34
 
 
 
 
 
35
  // get global settings
36
  $body_title = get_option('niteoCS_body_title', 'SOMETHING IS HAPPENING!');
37
  $body = get_option('niteoCS_body');
69
 
70
  <link rel="stylesheet" href="<?php echo plugin_dir_url( dirname( __FILE__ ) ) . $themeslug.'/style.css?ver='.$this->version ;?>" type="text/css" media="all">
71
 
72
+ <link href="https://fonts.googleapis.com/css?family=<?php echo esc_attr(str_replace(' ', '+', $heading_font));?>:<?php echo esc_attr($heading_variant);?>|<?php echo esc_attr(str_replace(' ', '+', $content_font));?>:400,400i,700,<?php echo esc_attr($content_variant);?>" rel="stylesheet">
73
 
74
  <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
75
 
84
  } ?>
85
  a{color:<?php echo esc_attr( $font_color ); ?>;}
86
  h1,h2,h3,h4,h5,h6 {font-family:'<?php echo esc_attr($heading_font);?>', 'sans-serif';}
87
+ body {font-size:<?php echo esc_attr($content_size);?>px;letter-spacing: <?php echo esc_attr($content_spacing);?>px;font-weight:<?php echo esc_attr($content_variant);?>;}
88
+ h1:not(.text-logo),h2, h3,h4,h5,h6,.text-logo-wrapper {font-size:<?php echo esc_attr($headings_size / $content_size);?>em;letter-spacing: <?php echo esc_attr($headings_spacing);?>px; font-weight:<?php echo esc_attr($heading_variant);?>;}
89
  </style>
90
 
91
  <?php
149
  }
150
 
151
  // display body
152
+ echo wpautop( stripslashes( $body ) ); ?>
153
+
 
 
 
 
154
  </section>
 
155
  <?php
156
+ // display social icons
157
+ if ( method_exists ( $html, 'cmp_social_icons' ) ) {
158
+ echo $html->cmp_social_icons();
159
+ }
160
+
161
  // render javascripts
162
  if ( method_exists ( $html, 'cmp_javascripts' ) ) {
163
  $html->cmp_javascripts( $niteoCS_background, $themeslug );
themes/hardwork/img/hardwork_thumbnail.jpg DELETED
Binary file
themes/hardwork/style.css CHANGED
@@ -24,7 +24,8 @@ body{
24
  h1,h2,h3,h4,h5,h6{
25
  font-weight: 400;
26
  font-size: 2.5em;
27
- margin-bottom: .3em;
 
28
  }
29
  .section {
30
  -webkit-box-flex: 1;
@@ -39,7 +40,6 @@ h1,h2,h3,h4,h5,h6{
39
  display: -webkit-box;
40
  display: -ms-flexbox;
41
  display: flex;
42
- min-height: 100vh;
43
  -webkit-box-pack: center;
44
  -ms-flex-pack: center;
45
  justify-content: center;
@@ -50,6 +50,9 @@ h1,h2,h3,h4,h5,h6{
50
  -webkit-box-flex: 10;
51
  -ms-flex-positive: 10;
52
  flex-grow: 10;
 
 
 
53
  }
54
 
55
 
@@ -62,14 +65,13 @@ h1,h2,h3,h4,h5,h6{
62
  }
63
 
64
  .text-logo {
65
- font-size: 4em;
66
  }
67
 
68
  .section-body p {
69
- width: 70%;
70
- max-width: 1170px;
71
- margin:1em auto;
72
- font-size: 1.1em;
73
  }
74
 
75
  #background-wrapper,
@@ -129,13 +131,12 @@ h1,h2,h3,h4,h5,h6{
129
 
130
 
131
  .social-list {
132
- display: inline-block;
133
  padding:0;
134
- position: absolute;
135
- bottom: 0;
136
- left: 0;
137
- right: 0;
138
  margin: 0;
 
 
 
139
  }
140
 
141
  .social-list li{
@@ -175,14 +176,27 @@ h1,h2,h3,h4,h5,h6{
175
  to {-webkit-transform:rotate(360deg);transform:rotate(360deg);}
176
  }
177
 
 
178
  @media only screen and (max-width : 1024px) {
179
  .graphic-logo { padding: 20px 0;}
 
 
 
 
 
 
 
 
 
 
 
180
  }
181
 
182
  @media only screen and (max-width : 560px) {
183
- .section {padding: 0 10px;}
184
- h2 {font-size: 2.5em;}
185
- .section-body p {font-size: 1em;}
186
-
 
187
 
188
  }
24
  h1,h2,h3,h4,h5,h6{
25
  font-weight: 400;
26
  font-size: 2.5em;
27
+ margin-bottom: .5em;
28
+ margin-top: 0;
29
  }
30
  .section {
31
  -webkit-box-flex: 1;
40
  display: -webkit-box;
41
  display: -ms-flexbox;
42
  display: flex;
 
43
  -webkit-box-pack: center;
44
  -ms-flex-pack: center;
45
  justify-content: center;
50
  -webkit-box-flex: 10;
51
  -ms-flex-positive: 10;
52
  flex-grow: 10;
53
+ width: 70%;
54
+ max-width: 1170px;
55
+ margin: 0 auto;
56
  }
57
 
58
 
65
  }
66
 
67
  .text-logo {
68
+ font-size: 2em;
69
  }
70
 
71
  .section-body p {
72
+ margin: 0.5em auto 0.5em auto;
73
+ font-size: 1em;
74
+ line-height: 1.5em;
 
75
  }
76
 
77
  #background-wrapper,
131
 
132
 
133
  .social-list {
134
+ height: 3em;
135
  padding:0;
 
 
 
 
136
  margin: 0;
137
+ z-index: 100;
138
+ text-align: center;
139
+
140
  }
141
 
142
  .social-list li{
176
  to {-webkit-transform:rotate(360deg);transform:rotate(360deg);}
177
  }
178
 
179
+
180
  @media only screen and (max-width : 1024px) {
181
  .graphic-logo { padding: 20px 0;}
182
+ .section-body,
183
+ .social-list {font-size: 16px!important;}
184
+ .section-body h1:not(.text-logo), .section-body h2, .section-body h3, .section-body h4, .section-body h5, .section-body h6, .text-logo-wrapper {
185
+ font-size: 1.8em!important;
186
+ }
187
+ }
188
+
189
+ @media only screen and (max-width : 680px) {
190
+ .section-body,
191
+ .social-list {font-size: 15px!important;}
192
+ .text-logo {font-size: 1.6em;}
193
  }
194
 
195
  @media only screen and (max-width : 560px) {
196
+ .section {padding: 4em 1em;}
197
+ .section-body {width: auto;}
198
+ .graphic-logo {max-height: 200px;padding-bottom: 0;}
199
+ .section-body,
200
+ .social-list {font-size: 14px!important;}
201
 
202
  }
themes/hardwork_premium.txt CHANGED
@@ -1,7 +1,3 @@
1
  /*
2
  Theme Name: Hardwork Premium
3
- Theme URI: http://cmp.niteothemes.com/?cmp_preview=true&theme=hardwork_premium
4
- Author: Niteo
5
- Author URI: https://niteothemes.com/
6
- Version: 2.3
7
- Description: <p>Hardwork Premium is our first Premium theme for CMP Plugin. Premium version extends free Hardwork theme with fullscreen image Slider. It is a best choice for Photographers who want to display teaser photos while their website is cooking up or is under maintenance.</p><h4>Main Features</h4><ul><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Logo</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Content</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Graphic Background including videos</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Graphic Image Slider Background</li><li class="not-supported"><i class="fa fa-times" aria-hidden="true"></i> Countdown Timer</li><li class="not-supported"><i class="fa fa-times" aria-hidden="true"></i> Subscribe Form</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Social Media</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Colors</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Fonts</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Footer Content</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Responsive Design</li></ul>
1
  /*
2
  Theme Name: Hardwork Premium
3
+ Description: <p>Hardwork Premium is our first Premium theme for CMP Plugin. Premium version extends free Hardwork theme with fullscreen image Slider. It is a best choice for Photographers who want to display teaser photos while their website is cooking up or is under maintenance.</p><h4>Main Features</h4><ul><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Logo</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Content</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Fade in/out Text Effects</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Graphic Background including videos</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Graphic Image Slider Background</li><li class="not-supported"><i class="fa fa-times" aria-hidden="true"></i> Countdown Timer</li><li class="not-supported"><i class="fa fa-times" aria-hidden="true"></i> Subscribe Form</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Social Media</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Colors</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Fonts</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Footer Content</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Responsive Design</li></ul>
 
 
 
 
themes/postery.txt CHANGED
@@ -1,7 +1,3 @@
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
- Description: <p>Postery is modern theme with trendy 3D animation and "poster-like" typography. You can set countdown timer, subscriber form, custom social icons or just insert custom text to keep things simple.</p><h4>Main Features</h4><ul><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Logo</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Content</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Graphic Background including videos</li><li class="not-supported"><i class="fa fa-times" aria-hidden="true"></i> Graphic Image Slider Background</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Countdown Timer</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Subscribe Form</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Social Media</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Colors</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Fonts</li><li class="not-supported"><i class="fa fa-times" aria-hidden="true"></i> Footer Content</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Responsive Design</li></ul>
1
  /*
2
  Theme Name: Postery
3
+ Description: <p>Postery is modern theme with trendy 3D animation and "poster-like" typography. You can set countdown timer, subscriber form, custom social icons or just insert custom text to keep things simple.</p><h4>Main Features</h4><ul><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Logo</li><li class="not-supported"><i class="fa fa-times" aria-hidden="true"></i> Fade in/out Text Effects</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Content</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Graphic Background including videos</li><li class="not-supported"><i class="fa fa-times" aria-hidden="true"></i> Graphic Image Slider Background</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Countdown Timer</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Subscribe Form</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Social Media</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Colors</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Fonts</li><li class="not-supported"><i class="fa fa-times" aria-hidden="true"></i> Footer Content</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Responsive Design</li></ul>
 
 
 
 
themes/postery/img/postery_thumbnail.jpg DELETED
Binary file
themes/postery/postery-settings.php CHANGED
@@ -88,22 +88,11 @@ $niteoCS_overlay_opacity = get_option('niteoCS_overlay_opacity['.$themeslug.']'
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>
88
 
89
  <script>
90
  jQuery(document).ready(function($){
 
91
  // ini color picker
92
  jQuery('#niteoCS_font_color').wpColorPicker();
93
  jQuery('#niteoCS_background_color').wpColorPicker();
94
  jQuery('#niteoCS_active_color').wpColorPicker();
95
  jQuery('#niteoCS_overlay_color').wpColorPicker();
96
 
 
 
 
 
 
 
 
 
 
 
97
  });
98
  </script>
themes/postery/postery-theme.php CHANGED
@@ -28,6 +28,15 @@ if ( $_SERVER['REQUEST_METHOD'] == 'POST'
28
  $background_overlay = $this->hex2rgba($niteoCS_overlay_color, $niteoCS_overlay_opacity);
29
  $content_font = get_option('niteoCS_font_content['.$themeslug.']', 'Raleway');
30
  $heading_font = get_option('niteoCS_font_headings['.$themeslug.']', 'Raleway');
 
 
 
 
 
 
 
 
 
31
  $niteoCS_banner = get_option('niteoCS_banner['.$themeslug.']', '1');
32
 
33
  if ( $heading_font == 'custom' ) {
@@ -80,7 +89,7 @@ if ( $_SERVER['REQUEST_METHOD'] == 'POST'
80
  ::-moz-placeholder {color: <?php echo esc_attr($niteoCS_font_color);?>;}
81
  :-ms-input-placeholder {color: <?php echo esc_attr($niteoCS_font_color);?>;}
82
  ::-moz-placeholder {color: <?php echo esc_attr($niteoCS_font_color);?>;}
83
- .input-icon:before,input[type="email"],input[type="text"]{color: <?php echo esc_attr($niteoCS_font_color);?>;}
84
  .counter-wrap,
85
  .social-list a,
86
  input[type="email"], input[type="text"] {background-color:<?php echo esc_attr( $this->hex2rgba($niteoCS_overlay_color, '0.2') );?>;}
@@ -95,6 +104,9 @@ if ( $_SERVER['REQUEST_METHOD'] == 'POST'
95
  .social-list a:hover {background-color: <?php echo esc_attr($niteoCS_font_color ); ?>;}
96
  <?php
97
  } ?>
 
 
 
98
 
99
  </style>
100
 
@@ -377,14 +389,6 @@ if ( $_SERVER['REQUEST_METHOD'] == 'POST'
377
  .css('-webkit-transform', 'rotateX('+rotateX+'deg) rotateY('+rotateY+'deg)');
378
  });
379
 
380
- $('input[type="email"]').hover(
381
- function() {
382
- $('.input-icon').addClass('hover');
383
- },
384
- function() {
385
- $('.input-icon').removeClass('hover');
386
- }
387
- );
388
  </script>
389
  <?php
390
  } ?>
28
  $background_overlay = $this->hex2rgba($niteoCS_overlay_color, $niteoCS_overlay_opacity);
29
  $content_font = get_option('niteoCS_font_content['.$themeslug.']', 'Raleway');
30
  $heading_font = get_option('niteoCS_font_headings['.$themeslug.']', 'Raleway');
31
+ $headings_size = get_option('niteoCS_font_headings_size['.$themeslug.']', '40');
32
+ $heading_variant = get_option('niteoCS_font_headings_variant['.$themeslug.']', '700');
33
+ $headings_spacing = get_option('niteoCS_font_headings_spacing['.$themeslug.']', '0');
34
+ $content_size = get_option('niteoCS_font_content_size['.$themeslug.']', '17');
35
+ $content_variant = get_option('niteoCS_font_content_variant['.$themeslug.']', 'regular');
36
+ $content_lineheight = get_option('niteoCS_font_content_lineheight['.$themeslug.']', '1.5');
37
+ $content_spacing = get_option('niteoCS_font_content_spacing['.$themeslug.']', '0');
38
+ $content_variant = ($content_variant =='regular') ? '400' : $content_variant;
39
+ $heading_variant = ($heading_variant =='regular') ? '400' : $heading_variant;
40
  $niteoCS_banner = get_option('niteoCS_banner['.$themeslug.']', '1');
41
 
42
  if ( $heading_font == 'custom' ) {
89
  ::-moz-placeholder {color: <?php echo esc_attr($niteoCS_font_color);?>;}
90
  :-ms-input-placeholder {color: <?php echo esc_attr($niteoCS_font_color);?>;}
91
  ::-moz-placeholder {color: <?php echo esc_attr($niteoCS_font_color);?>;}
92
+ input[type="email"],input[type="text"]{color: <?php echo esc_attr($niteoCS_font_color);?>;}
93
  .counter-wrap,
94
  .social-list a,
95
  input[type="email"], input[type="text"] {background-color:<?php echo esc_attr( $this->hex2rgba($niteoCS_overlay_color, '0.2') );?>;}
104
  .social-list a:hover {background-color: <?php echo esc_attr($niteoCS_font_color ); ?>;}
105
  <?php
106
  } ?>
107
+
108
+ body {font-size:<?php echo esc_attr($content_size);?>px;letter-spacing: <?php echo esc_attr($content_spacing);?>px;font-weight:<?php echo esc_attr($content_variant);?>;}
109
+ h1:not(.text-logo),h2, h3,h4,h5,h6,.text-logo-wrapper {font-size:<?php echo esc_attr($headings_size / $content_size);?>em;letter-spacing: <?php echo esc_attr($headings_spacing);?>px; font-weight:<?php echo esc_attr($heading_variant);?>;}
110
 
111
  </style>
112
 
389
  .css('-webkit-transform', 'rotateX('+rotateX+'deg) rotateY('+rotateY+'deg)');
390
  });
391
 
 
 
 
 
 
 
 
 
392
  </script>
393
  <?php
394
  } ?>
themes/postery/style.css CHANGED
@@ -372,6 +372,8 @@ h2,h3,h4,h5,h6 {
372
  display: inline-block;
373
  padding:0;
374
  margin: 0;
 
 
375
  }
376
 
377
  .social-list li{
@@ -384,10 +386,10 @@ h2,h3,h4,h5,h6 {
384
  display: block;
385
  margin: 10px;
386
  margin-top: 0;
387
- width: 87px;
388
- height: 87px;
389
- font-size: 45px;
390
- line-height: 87px;
391
  border-radius: 15px;
392
  background: transparent;
393
  background-color: rgba(0,0,0,0.1);
@@ -395,6 +397,11 @@ h2,h3,h4,h5,h6 {
395
  -webkit-transition: background 300ms linear;
396
  transition: background 300ms linear;
397
  }
 
 
 
 
 
398
  .social-list i{
399
  font-size: 1em;
400
  -webkit-transition: all 300ms linear;
@@ -413,7 +420,7 @@ h2,h3,h4,h5,h6 {
413
  #counter,
414
  .subscribe,
415
  .social-list {
416
- margin: 1em 0;
417
  }
418
 
419
  .copyright {
@@ -474,8 +481,8 @@ input:hover,
474
 
475
  input {
476
  display: inline-block;
477
- line-height: 3em;
478
- height: 3em;
479
  -webkit-box-sizing: border-box;
480
  box-sizing: border-box;
481
  vertical-align: middle;
@@ -486,24 +493,7 @@ label {
486
  display: block;
487
  text-align: left;
488
  font-size: .8em;
489
- padding: 0 0 5px 15px;
490
- }
491
-
492
- .input-icon {
493
- position: relative;
494
- }
495
-
496
- .input-icon:before {
497
- font-family: 'fontAwesome';
498
- content: '\f003';
499
- position: absolute;
500
- line-height: 72px;
501
- padding-left: 16px;
502
- }
503
-
504
- input {
505
- height: 75px;
506
- line-height: 75px;
507
  }
508
 
509
  input[type="email"].subscribe-input {
@@ -515,7 +505,7 @@ input:focus {
515
  }
516
  input[type="email"],
517
  input[type="text"] {
518
- width: calc(100% - 75px);
519
  /* background-color: rgba(255,255,255,0.21); */
520
  text-indent: 15px;
521
  font-style: italic;
@@ -530,10 +520,11 @@ input[type="text"] {
530
  }
531
  input[type="submit"] {
532
  font-family: FontAwesome;
533
- width: 75px;
534
  padding: 0 10px;
535
  margin-left:-6px;
536
- font-size: 35px;
 
537
  border: none;
538
  cursor:pointer;
539
  text-transform: uppercase;
@@ -640,15 +631,16 @@ input[type="submit"] {
640
 
641
 
642
  @media only screen and (max-width : 1024px) {
643
-
644
 
645
  }
646
 
647
 
648
 
649
  @media only screen and (max-width : 768px) {
 
650
  .content {
651
- padding: 60px;
652
  }
653
  .counter-wrap {
654
  width: 105px;
@@ -656,34 +648,36 @@ input[type="submit"] {
656
  }
657
 
658
  .social-list a {
659
- width: 75px;
660
- height: 75px;
661
- line-height: 75px;
662
  }
663
- }
664
 
665
- @media only screen and (max-width : 600px) {
666
- .counter-wrap {
667
- width: calc(50% - 15px);
668
- height: calc(50% - 15px);
669
  }
670
- input {
671
- height: 55px;
672
- line-height: 55px;
 
673
  }
674
 
675
- .input-icon:before {
676
- line-height: 53px;
 
 
677
  }
678
 
679
- .social-list a {
680
- width: 55px;
681
- height: 55px;
682
- line-height: 55px;
683
- font-size: 30px;
684
  }
685
 
 
 
 
686
 
 
687
  }
688
 
689
  @media only screen and (max-width : 420px) {
372
  display: inline-block;
373
  padding:0;
374
  margin: 0;
375
+ width: 100%;
376
+ text-align: center;
377
  }
378
 
379
  .social-list li{
386
  display: block;
387
  margin: 10px;
388
  margin-top: 0;
389
+ width: 2.5em;
390
+ height: 2.5em;
391
+ font-size: 2em;
392
+ line-height: 2.5em;
393
  border-radius: 15px;
394
  background: transparent;
395
  background-color: rgba(0,0,0,0.1);
397
  -webkit-transition: background 300ms linear;
398
  transition: background 300ms linear;
399
  }
400
+
401
+ .social-list a:first-of-type {
402
+ margin-left: 0;
403
+ }
404
+
405
  .social-list i{
406
  font-size: 1em;
407
  -webkit-transition: all 300ms linear;
420
  #counter,
421
  .subscribe,
422
  .social-list {
423
+ margin: 3em 0;
424
  }
425
 
426
  .copyright {
481
 
482
  input {
483
  display: inline-block;
484
+ height: 4em;
485
+ line-height: 4em;
486
  -webkit-box-sizing: border-box;
487
  box-sizing: border-box;
488
  vertical-align: middle;
493
  display: block;
494
  text-align: left;
495
  font-size: .8em;
496
+ padding: 0 0 5px 5px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
497
  }
498
 
499
  input[type="email"].subscribe-input {
505
  }
506
  input[type="email"],
507
  input[type="text"] {
508
+ width: calc(100% - 4em);
509
  /* background-color: rgba(255,255,255,0.21); */
510
  text-indent: 15px;
511
  font-style: italic;
520
  }
521
  input[type="submit"] {
522
  font-family: FontAwesome;
523
+ width: 4em;
524
  padding: 0 10px;
525
  margin-left:-6px;
526
+ line-height: 4em;
527
+ height: 4em;
528
  border: none;
529
  cursor:pointer;
530
  text-transform: uppercase;
631
 
632
 
633
  @media only screen and (max-width : 1024px) {
634
+ body {font-size:16px!important;}
635
 
636
  }
637
 
638
 
639
 
640
  @media only screen and (max-width : 768px) {
641
+ body {font-size:15px!important;}
642
  .content {
643
+ padding: 3em
644
  }
645
  .counter-wrap {
646
  width: 105px;
648
  }
649
 
650
  .social-list a {
651
+ width: 3em;
652
+ height: 3em;
653
+ line-height: 3em;
654
  }
 
655
 
656
+ .social-list a {
657
+ font-size: 1em;
 
 
658
  }
659
+
660
+ input {
661
+ height: 3em;
662
+ line-height: 3em;
663
  }
664
 
665
+ input[type="submit"] {
666
+ font-size: 1em;
667
+ line-height: 1em;
668
+ height: 3em;
669
  }
670
 
671
+ .counter-wrap {
672
+ width: calc(40% - 15px);
673
+ height: calc(40% - 15px);
 
 
674
  }
675
 
676
+ .counter-wrap span {
677
+ font-size: 2.3em;
678
+ }
679
 
680
+ #counter, .subscribe, .social-list {text-align: center;}
681
  }
682
 
683
  @media only screen and (max-width : 420px) {