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

Version Description

Download this release

Release Info

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

Code changes from version 3.4.7 to 3.4.8

img/thumbnails/ares/screenshot1.jpg ADDED
Binary file
img/thumbnails/ares/screenshot2.jpg ADDED
Binary file
img/thumbnails/ares_thumbnail.jpg ADDED
Binary file
inc/class-cmp-render_html.php CHANGED
@@ -19,6 +19,7 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
19
  case 'stylo':
20
  case 'apollo':
21
  case 'hardwork_premium':
 
22
  $this->cmp_slider( $theme );
23
  return;
24
 
@@ -58,11 +59,11 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
58
  switch ( $niteoCS_banner ) {
59
  // custom media
60
  case '0':
61
- $banner_id = get_option('niteoCS_banner_id');
62
 
63
- if ( $banner_id != '' ) {
64
- $banner_ids = explode(',', $banner_id);
65
  $banner_url = wp_get_attachment_image_src( $banner_ids[mt_rand(0, count( $banner_ids ) - 1)], $size);
 
66
  if ( isset($banner_url[0]) ) {
67
  $banner_url = $banner_url[0];
68
  }
@@ -290,42 +291,31 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
290
  $slider_effect = get_option('niteoCS_slider_effect', 'true');
291
  $slider_autoplay = get_option('niteoCS_slider_auto', '1');
292
  $size = $this->isMobile() ? 'large' : 'full';
293
-
294
- $banner_id = get_option('niteoCS_banner_id');
295
-
296
- if ( $banner_id != '' ) {
297
- $banner_ids = explode(',', $banner_id);
298
- }
299
 
300
  // change slider images for theme preview
301
  if ( isset($_GET['theme']) && !empty($_GET['theme']) ) {
302
  $theme = esc_attr( $_GET['theme'] );
 
303
  switch ( $theme ) {
304
  case 'fifty':
305
  $niteoCS_banner = '0';
306
- $banner_ids = array(21, 22, 23);
307
  $slider_effect = 'slice';
308
  break;
309
  case 'stylo':
310
  $niteoCS_banner = '0';
311
- $banner_ids = array(28, 29, 30, 31, 32);
312
  $slider_effect = 'true';
313
  break;
314
  case 'apollo':
 
315
  $niteoCS_banner = '0';
316
- $banner_ids = array(35, 36, 37);
317
  $slider_effect = 'mask-transition';
318
  break;
319
  case 'hardwork_premium':
320
  $niteoCS_banner = '0';
321
- $banner_ids = array(63, 64, 65);
322
  $slider_effect = 'true';
323
  break;
324
- // case 'vega':
325
- // $niteoCS_banner = '0';
326
- // $banner_ids = array(52, 53);
327
- // $slider_effect = 'true';
328
- // break;
329
  default:
330
  $slider_effect = 'true';
331
  break;
@@ -344,10 +334,8 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
344
  <div id="slider" class="slides effect-<?php echo esc_attr( $slider_effect );?>" data-autoplay="<?php echo esc_attr( $slider_autoplay );?>">
345
  <?php
346
  switch ( $niteoCS_banner ) {
347
-
348
  // custom media
349
  case '0':
350
-
351
  if ( isset( $banner_ids ) ) {
352
  foreach ( $banner_ids as $id ) {
353
  $slide_url = wp_get_attachment_image_src( $id, $size);
@@ -361,7 +349,6 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
361
  <?php
362
  }
363
  }
364
-
365
  break;
366
 
367
  // unsplash
@@ -475,7 +462,7 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
475
  if ( $themeslug == 'apollo' ) {
476
 
477
  if ( $niteoCS_banner == '0') {
478
- $slider_count = count( explode(',', $banner_id) );
479
  }
480
 
481
  echo '<div class="dot-nav">';
@@ -672,6 +659,7 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
672
  case 'countdown':
673
  case 'pluto':
674
  case 'juno':
 
675
  $logo_type = 'graphic';
676
  break;
677
 
@@ -700,6 +688,10 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
700
  $logo_id = '72';
701
  break;
702
 
 
 
 
 
703
  default:
704
  break;
705
  }
@@ -789,6 +781,7 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
789
  break;
790
  case 'mercury':
791
  case 'juno':
 
792
  $niteoCS_subscribe_label = 'Yes, take me there. We HATE spam!';
793
  break;
794
  default:
@@ -1009,6 +1002,7 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
1009
 
1010
  case 'fifty':
1011
  case 'element':
 
1012
  $body = '<p>Everti labores cu sea, ea eam choro semper, usu an quot vocibus euripidis. An vis porro insolens, ea graeci vulputate qui. Qui vidisse evertitur et, ea vis habemus fabellas.</p>';
1013
  break;
1014
 
@@ -1099,6 +1093,10 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
1099
  case 'mercury':
1100
  $title = 'WE WILL BE ONINE AS SOON AS POSSIBLE!';
1101
  break;
 
 
 
 
1102
 
1103
  default:
1104
  break;
@@ -1249,8 +1247,9 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
1249
  .video-banner {filter:blur(<?php echo esc_attr($blur);?>px);}
1250
  #background-image,
1251
  .video-banner,
1252
- .background-overlay {transform:scale(1.1);}
1253
- #background-wrapper, .slick-slider {overflow:hidden;}
 
1254
  #background-image:not(.slide) {background-attachment: initial;}
1255
  </style>
1256
 
@@ -1631,11 +1630,13 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
1631
  // change slider images for theme preview
1632
  if ( isset($_GET['theme']) && !empty($_GET['theme']) ) {
1633
  $theme = esc_attr( $_GET['theme'] );
 
1634
  switch ( $theme ) {
1635
  case 'fifty':
1636
  $slider_effect = 'slice';
1637
  break;
1638
  case 'apollo':
 
1639
  $slider_effect = 'mask-transition';
1640
  break;
1641
  default:
@@ -1908,4 +1909,45 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
1908
  return $html;
1909
  }
1910
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1911
  }
19
  case 'stylo':
20
  case 'apollo':
21
  case 'hardwork_premium':
22
+ case 'ares':
23
  $this->cmp_slider( $theme );
24
  return;
25
 
59
  switch ( $niteoCS_banner ) {
60
  // custom media
61
  case '0':
62
+ $banner_ids = $this->cmp_get_banner_ids();
63
 
64
+ if ( !empty($banner_ids) ) {
 
65
  $banner_url = wp_get_attachment_image_src( $banner_ids[mt_rand(0, count( $banner_ids ) - 1)], $size);
66
+
67
  if ( isset($banner_url[0]) ) {
68
  $banner_url = $banner_url[0];
69
  }
291
  $slider_effect = get_option('niteoCS_slider_effect', 'true');
292
  $slider_autoplay = get_option('niteoCS_slider_auto', '1');
293
  $size = $this->isMobile() ? 'large' : 'full';
294
+ $banner_ids = $this->cmp_get_banner_ids();
295
+
 
 
 
 
296
 
297
  // change slider images for theme preview
298
  if ( isset($_GET['theme']) && !empty($_GET['theme']) ) {
299
  $theme = esc_attr( $_GET['theme'] );
300
+ $slider_autoplay = '1';
301
  switch ( $theme ) {
302
  case 'fifty':
303
  $niteoCS_banner = '0';
 
304
  $slider_effect = 'slice';
305
  break;
306
  case 'stylo':
307
  $niteoCS_banner = '0';
 
308
  $slider_effect = 'true';
309
  break;
310
  case 'apollo':
311
+ case 'ares':
312
  $niteoCS_banner = '0';
 
313
  $slider_effect = 'mask-transition';
314
  break;
315
  case 'hardwork_premium':
316
  $niteoCS_banner = '0';
 
317
  $slider_effect = 'true';
318
  break;
 
 
 
 
 
319
  default:
320
  $slider_effect = 'true';
321
  break;
334
  <div id="slider" class="slides effect-<?php echo esc_attr( $slider_effect );?>" data-autoplay="<?php echo esc_attr( $slider_autoplay );?>">
335
  <?php
336
  switch ( $niteoCS_banner ) {
 
337
  // custom media
338
  case '0':
 
339
  if ( isset( $banner_ids ) ) {
340
  foreach ( $banner_ids as $id ) {
341
  $slide_url = wp_get_attachment_image_src( $id, $size);
349
  <?php
350
  }
351
  }
 
352
  break;
353
 
354
  // unsplash
462
  if ( $themeslug == 'apollo' ) {
463
 
464
  if ( $niteoCS_banner == '0') {
465
+ $slider_count = count( $banner_ids );
466
  }
467
 
468
  echo '<div class="dot-nav">';
659
  case 'countdown':
660
  case 'pluto':
661
  case 'juno':
662
+ case 'ares':
663
  $logo_type = 'graphic';
664
  break;
665
 
688
  $logo_id = '72';
689
  break;
690
 
691
+ case 'ares':
692
+ $logo_id = '101';
693
+ break;
694
+
695
  default:
696
  break;
697
  }
781
  break;
782
  case 'mercury':
783
  case 'juno':
784
+ case 'ares':
785
  $niteoCS_subscribe_label = 'Yes, take me there. We HATE spam!';
786
  break;
787
  default:
1002
 
1003
  case 'fifty':
1004
  case 'element':
1005
+ case 'ares':
1006
  $body = '<p>Everti labores cu sea, ea eam choro semper, usu an quot vocibus euripidis. An vis porro insolens, ea graeci vulputate qui. Qui vidisse evertitur et, ea vis habemus fabellas.</p>';
1007
  break;
1008
 
1093
  case 'mercury':
1094
  $title = 'WE WILL BE ONINE AS SOON AS POSSIBLE!';
1095
  break;
1096
+
1097
+ case 'ares':
1098
+ $title = '';
1099
+ break;
1100
 
1101
  default:
1102
  break;
1247
  .video-banner {filter:blur(<?php echo esc_attr($blur);?>px);}
1248
  #background-image,
1249
  .video-banner,
1250
+ .background-overlay,
1251
+ .slide-background {transform:scale(1.1);}
1252
+ #background-wrapper, #slider-wrapper {overflow:hidden;}
1253
  #background-image:not(.slide) {background-attachment: initial;}
1254
  </style>
1255
 
1630
  // change slider images for theme preview
1631
  if ( isset($_GET['theme']) && !empty($_GET['theme']) ) {
1632
  $theme = esc_attr( $_GET['theme'] );
1633
+ $slider_autoplay = '1';
1634
  switch ( $theme ) {
1635
  case 'fifty':
1636
  $slider_effect = 'slice';
1637
  break;
1638
  case 'apollo':
1639
+ case 'ares':
1640
  $slider_effect = 'mask-transition';
1641
  break;
1642
  default:
1909
  return $html;
1910
  }
1911
 
1912
+ /**
1913
+ * get array of banner ids
1914
+ *
1915
+ * @since 3.4.8
1916
+ * @return array
1917
+ **/
1918
+ public function cmp_get_banner_ids() {
1919
+
1920
+ $banner_id = get_option('niteoCS_banner_id');
1921
+ $banner_ids = array();
1922
+
1923
+ if ( $banner_id != '' ) {
1924
+ $banner_ids = explode(',', $banner_id);
1925
+ }
1926
+
1927
+ if ( isset($_GET['theme']) && !empty($_GET['theme']) ) {
1928
+ $theme = esc_attr( $_GET['theme'] );
1929
+ switch ( $theme ) {
1930
+ case 'fifty':
1931
+ $banner_ids = array(21, 22, 23);
1932
+ break;
1933
+ case 'stylo':
1934
+ $banner_ids = array(28, 29, 30, 31, 32);
1935
+ break;
1936
+ case 'apollo':
1937
+ $banner_ids = array(35, 36, 37);
1938
+ break;
1939
+ case 'hardwork_premium':
1940
+ $banner_ids = array(63, 64, 65);
1941
+ break;
1942
+ case 'ares':
1943
+ $banner_ids = array(98, 99, 100);
1944
+ break;
1945
+ default:
1946
+ break;
1947
+ }
1948
+ }
1949
+ return $banner_ids;
1950
+ }
1951
+
1952
+
1953
  }
inc/settings/settings-slider.php CHANGED
@@ -68,30 +68,29 @@ $niteoCS_slider_auto = get_option('niteoCS_slider_auto', '1');
68
  <p>
69
  <label for="niteoCS_slider_effect"><?php _e('Slider Effect', 'cmp-coming-soon-maintenance');?></label><br>
70
  <?php
71
- // include Slice option for slider
72
- if ( $this->cmp_selectedTheme() !== 'apollo' ) { ?>
73
- <label title="Slide Effect">
74
- <input type="radio" name="niteoCS_slider_effect" <?php echo ( $niteoCS_banner == '1' || $niteoCS_banner == '0' ) ? '' : 'disabled';?> value="false"<?php checked ( 'false', $niteoCS_slider_effect );?>>&nbsp;<?php _e('Slide', 'cmp-coming-soon-maintenance');?>
75
- </label><br>
76
- <?php
77
- } ?>
78
-
79
- <label title="Fade Effect">
80
- <input type="radio" name="niteoCS_slider_effect" <?php echo ( $niteoCS_banner == '1' || $niteoCS_banner == '0' ) ? '' : 'disabled';?> value="true"<?php checked ( 'true', $niteoCS_slider_effect );?>>&nbsp;<?php _e('Fade', 'cmp-coming-soon-maintenance');?>
81
- </label>
82
-
83
- <?php
84
- // include Slice option for slider
85
  if ( $this->cmp_selectedTheme() == 'fifty' ) { ?>
86
- <br><label title="Slice Effect">
87
  <input type="radio" name="niteoCS_slider_effect" <?php echo ( $niteoCS_banner == '1' || $niteoCS_banner == '0' ) ? '' : 'disabled';?> value="slice"<?php checked ( 'slice', $niteoCS_slider_effect );?>>&nbsp;<?php _e('Slice', 'cmp-coming-soon-maintenance');?>
88
- </label>
89
  <?php
90
  }
91
 
92
- // include Slice option for slider
93
- if ( $this->cmp_selectedTheme() == 'apollo' ) { ?>
94
- <br><label title="Mask Transition Effect">
95
  <input type="radio" name="niteoCS_slider_effect" <?php echo ( $niteoCS_banner == '1' || $niteoCS_banner == '0' ) ? '' : 'disabled';?> value="mask-transition"<?php checked ( 'mask-transition', $niteoCS_slider_effect );?>>&nbsp;<?php _e('Mask Transition Effect', 'cmp-coming-soon-maintenance');?>
96
  </label>
97
  <?php
68
  <p>
69
  <label for="niteoCS_slider_effect"><?php _e('Slider Effect', 'cmp-coming-soon-maintenance');?></label><br>
70
  <?php
71
+ if ( $this->cmp_selectedTheme() !== 'apollo' && $this->cmp_selectedTheme() !== 'ares' ) { ?>
72
+ <label title="Slide Effect">
73
+ <input type="radio" name="niteoCS_slider_effect" <?php echo ( $niteoCS_banner == '1' || $niteoCS_banner == '0' ) ? '' : 'disabled';?> value="false"<?php checked ( 'false', $niteoCS_slider_effect );?>>&nbsp;<?php _e('Slide', 'cmp-coming-soon-maintenance');?>
74
+ </label><br>
75
+ <?php
76
+ }
77
+ if ( $this->cmp_selectedTheme() !== 'ares' ) { ?>
78
+ <label title="Fade Effect">
79
+ <input type="radio" name="niteoCS_slider_effect" <?php echo ( $niteoCS_banner == '1' || $niteoCS_banner == '0' ) ? '' : 'disabled';?> value="true"<?php checked ( 'true', $niteoCS_slider_effect );?>>&nbsp;<?php _e('Fade', 'cmp-coming-soon-maintenance');?>
80
+ </label><br>
81
+ <?php
82
+ }
83
+ // Slice option for selected themes
 
84
  if ( $this->cmp_selectedTheme() == 'fifty' ) { ?>
85
+ <label title="Slice Effect">
86
  <input type="radio" name="niteoCS_slider_effect" <?php echo ( $niteoCS_banner == '1' || $niteoCS_banner == '0' ) ? '' : 'disabled';?> value="slice"<?php checked ( 'slice', $niteoCS_slider_effect );?>>&nbsp;<?php _e('Slice', 'cmp-coming-soon-maintenance');?>
87
+ </label><br>
88
  <?php
89
  }
90
 
91
+ // Mask Transition option for selected themes
92
+ if ( $this->cmp_selectedTheme() == 'apollo' || $this->cmp_selectedTheme() == 'ares' ) { ?>
93
+ <label title="Mask Transition Effect">
94
  <input type="radio" name="niteoCS_slider_effect" <?php echo ( $niteoCS_banner == '1' || $niteoCS_banner == '0' ) ? '' : 'disabled';?> value="mask-transition"<?php checked ( 'mask-transition', $niteoCS_slider_effect );?>>&nbsp;<?php _e('Mask Transition Effect', 'cmp-coming-soon-maintenance');?>
95
  </label>
96
  <?php
inc/settings/settings-theme-selector.php CHANGED
@@ -122,7 +122,7 @@ if ( !empty( $downloadable_themes ) ) { ?>
122
 
123
  <a href="<?php echo esc_url ( $premium_theme['url'] );?>" target="_blank" class="theme-purchase button hide"><i class="fa fa-download" aria-hidden="true"></i><?php echo sprintf(__('Get %s', 'cmp-coming-soon-maintenance'), ucwords( esc_html( str_replace('_', ' ', $theme_slug) ) ));?></a>
124
 
125
- <a href="<?php echo 'http://cmp.niteothemes.com/?cmp_preview=true&selector=true&theme='.$theme_slug.'&background='.$background.'&utm_source=cmp&utm_medium=referral&utm_campaign='.$theme_slug.'';?>" target="_blank" class="theme-preview button hide"><i class="fa fa-external-link" aria-hidden="true"></i><?php _e('PREVIEW', 'cmp-coming-soon-maintenance');?></a>
126
 
127
  <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>
128
 
122
 
123
  <a href="<?php echo esc_url ( $premium_theme['url'] );?>" target="_blank" class="theme-purchase button hide"><i class="fa fa-download" aria-hidden="true"></i><?php echo sprintf(__('Get %s', 'cmp-coming-soon-maintenance'), ucwords( esc_html( str_replace('_', ' ', $theme_slug) ) ));?></a>
124
 
125
+ <a href="<?php echo 'https://cmp.niteothemes.com/?cmp_preview=true&selector=true&theme='.$theme_slug.'&background='.$background.'&utm_source=cmp&utm_medium=referral&utm_campaign='.$theme_slug.'';?>" target="_blank" class="theme-preview button hide"><i class="fa fa-external-link" aria-hidden="true"></i><?php _e('PREVIEW', 'cmp-coming-soon-maintenance');?></a>
126
 
127
  <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>
128
 
js/preview-iframe.js CHANGED
@@ -26,7 +26,8 @@ $( document ).ready(function() {
26
  "stylo" : '1',
27
  "vega" : '1',
28
  "juno" : '1',
29
- "pluto" : '4'
 
30
  }
31
 
32
  slider(defaultBackground);
26
  "stylo" : '1',
27
  "vega" : '1',
28
  "juno" : '1',
29
+ "pluto" : '4',
30
+ "ares" : '1'
31
  }
32
 
33
  slider(defaultBackground);
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: 3.4.7
7
  Author: NiteoThemes
8
  Author URI: https://www.niteothemes.com
9
  Text Domain: cmp-coming-soon-maintenance
@@ -65,7 +65,7 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
65
 
66
  private function constants() {
67
  // define constants
68
- $this->define( 'CMP_VERSION', '3.4.7' );
69
  $this->define( 'CMP_DEBUG', FALSE );
70
  $this->define( 'CMP_AUTHOR', 'NiteoThemes' );
71
  $this->define( 'CMP_AUTHOR_HOMEPAGE', 'https://niteothemes.com' );
@@ -81,7 +81,7 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
81
  public function init() {
82
  add_action( 'admin_notices', array( $this, 'cmp_admin_notice' ) );
83
  add_action( 'template_redirect', array( $this, 'cmp_displayPage' ), 0 );
84
- add_action( 'wp_login', array( $this, 'cmp_admin_override' ) );
85
  add_action( 'wp_before_admin_bar_render', array( $this, 'cmp_admin_bar' ) );
86
  add_action( 'wp_ajax_niteo_themeinfo', array( $this, 'niteo_themeinfo' ) );
87
  add_action( 'wp_ajax_niteo_unsplash', array( $this, 'niteo_unsplash' ) );
@@ -226,6 +226,8 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
226
 
227
  $premium_themes = array();
228
 
 
 
229
  array_push( $premium_themes, array('name' => 'juno', 'url' => 'https://niteothemes.com/downloads/cmp-juno-theme/?utm_source=cmp&utm_medium=referral&utm_campaign=juno', 'price' => '10') );
230
 
231
  array_push( $premium_themes, array('name' => 'pluto', 'url' => 'https://niteothemes.com/downloads/cmp-pluto-theme/?utm_source=cmp&utm_medium=referral&utm_campaign=pluto', 'price' => '10') );
@@ -539,8 +541,6 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
539
  }
540
  }
541
 
542
-
543
-
544
  // bypass CMP and set cookie for user defined period of time, if bypass is enabled, bypass ID is set, and match CMP bypass settings
545
  if ( isset( $_GET['cmp_bypass'] ) && $_GET['cmp_bypass'] == get_option('niteoCS_bypass_id', md5( get_home_url() )) && get_option('niteoCS_bypass', '0') == '1' ) {
546
  nocache_headers();
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: 3.4.8
7
  Author: NiteoThemes
8
  Author URI: https://www.niteothemes.com
9
  Text Domain: cmp-coming-soon-maintenance
65
 
66
  private function constants() {
67
  // define constants
68
+ $this->define( 'CMP_VERSION', '3.4.8' );
69
  $this->define( 'CMP_DEBUG', FALSE );
70
  $this->define( 'CMP_AUTHOR', 'NiteoThemes' );
71
  $this->define( 'CMP_AUTHOR_HOMEPAGE', 'https://niteothemes.com' );
81
  public function init() {
82
  add_action( 'admin_notices', array( $this, 'cmp_admin_notice' ) );
83
  add_action( 'template_redirect', array( $this, 'cmp_displayPage' ), 0 );
84
+ add_action( 'login_init', array( $this, 'cmp_admin_override' ) );
85
  add_action( 'wp_before_admin_bar_render', array( $this, 'cmp_admin_bar' ) );
86
  add_action( 'wp_ajax_niteo_themeinfo', array( $this, 'niteo_themeinfo' ) );
87
  add_action( 'wp_ajax_niteo_unsplash', array( $this, 'niteo_unsplash' ) );
226
 
227
  $premium_themes = array();
228
 
229
+ array_push( $premium_themes, array('name' => 'ares', 'url' => 'https://niteothemes.com/downloads/cmp-ares-theme/?utm_source=cmp&utm_medium=referral&utm_campaign=ares', 'price' => '10') );
230
+
231
  array_push( $premium_themes, array('name' => 'juno', 'url' => 'https://niteothemes.com/downloads/cmp-juno-theme/?utm_source=cmp&utm_medium=referral&utm_campaign=juno', 'price' => '10') );
232
 
233
  array_push( $premium_themes, array('name' => 'pluto', 'url' => 'https://niteothemes.com/downloads/cmp-pluto-theme/?utm_source=cmp&utm_medium=referral&utm_campaign=pluto', 'price' => '10') );
541
  }
542
  }
543
 
 
 
544
  // bypass CMP and set cookie for user defined period of time, if bypass is enabled, bypass ID is set, and match CMP bypass settings
545
  if ( isset( $_GET['cmp_bypass'] ) && $_GET['cmp_bypass'] == get_option('niteoCS_bypass_id', md5( get_home_url() )) && get_option('niteoCS_bypass', '0') == '1' ) {
546
  nocache_headers();
readme.txt CHANGED
@@ -4,8 +4,8 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=KV2JF
4
  Tags: coming soon, landing page, launch page, maintenance mode, under construction
5
  Requires at least: 3.0
6
  Requires PHP: 5.3
7
- Tested up to: 5.1
8
- Stable tag: 3.4.7
9
  License: GPLv2 or later
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -17,7 +17,7 @@ CMP – Coming Soon & Maintenance plugin has all premium features you ever wishe
17
  Packed with functions like Whitelist/Blacklist to enable CMP only on specific pages, User Roles Management, custom URL Bypass, Translation strings, custom Subscribers option and many more you would not believe it is free. No ADS too, guaranteed!
18
 
19
  <h3>Live Preview</h3>
20
- <a href="http://cmp.niteothemes.com/?cmp_preview=true&selector=true&utm_source=wordpress.org&utm_medium=referral" target="_blank">Click for CMP preview>></a>
21
 
22
  <p>TIP! You can change to different CMP Theme or change the background in the right sidebar by clicking on "settings icon".</p>
23
 
@@ -47,27 +47,35 @@ Packed with functions like Whitelist/Blacklist to enable CMP only on specific pa
47
  https://www.youtube.com/watch?v=uxuJfHzwdtE
48
 
49
  == Screenshots ==
50
- 1. CMP - Postery Theme
51
- 2. CMP - Hardwork Theme
52
- 3. CMP - Countdown Theme
53
- 4. CMP - Fifty Theme
54
- 5. CMP - Fifty Theme
55
- 6. CMP - Construct Theme
56
- 7. CMP - Frame Theme
57
- 8. CMP - Hardwork Theme
58
- 9. CMP - Theme detail selector
59
- 10. CMP - Content Settings
60
- 11. CMP - Content Settings
61
- 12. CMP - Variables translation
62
- 13. CMP - Orbit Theme
63
- 14. CMP - Stylo Theme
64
- 15. CMP - Element Theme
65
  16. CMP - Apollo Theme
66
- 17. CMP - Vega Theme
67
- 18. CMP - Agency Theme
68
- 19. CMP - Mercury Theme
69
- 20. CMP - Pluto Theme
70
- 21. CMP - Juno Theme
 
 
 
 
 
 
 
 
71
 
72
  == Installation ==
73
 
@@ -127,6 +135,13 @@ https://www.youtube.com/watch?v=uxuJfHzwdtE
127
  <p>Nothing is better than a good feedback! Please go to <a href="https://wordpress.org/support/plugin/cmp-coming-soon-maintenance/reviews/">Plugin reviews</a> and rate it! Alternatively you can click on a Donate button too!:)</p>
128
 
129
  == Changelog ==
 
 
 
 
 
 
 
130
  <h4>CMP 3.4.7 - 16-April-19</h4>
131
  <ul>
132
  <li>Resolved issue with re-enabling the Whitelist if Blacklist was set when saving basic settings in some specific cases. Big thanks to Linus for noticing!</li>
4
  Tags: coming soon, landing page, launch page, maintenance mode, under construction
5
  Requires at least: 3.0
6
  Requires PHP: 5.3
7
+ Tested up to: 5.2
8
+ Stable tag: 3.4.8
9
  License: GPLv2 or later
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
11
 
17
  Packed with functions like Whitelist/Blacklist to enable CMP only on specific pages, User Roles Management, custom URL Bypass, Translation strings, custom Subscribers option and many more you would not believe it is free. No ADS too, guaranteed!
18
 
19
  <h3>Live Preview</h3>
20
+ <a href="https://cmp.niteothemes.com/?cmp_preview=true&selector=true&utm_source=wordpress.org&utm_medium=referral" target="_blank">Click for CMP preview>></a>
21
 
22
  <p>TIP! You can change to different CMP Theme or change the background in the right sidebar by clicking on "settings icon".</p>
23
 
47
  https://www.youtube.com/watch?v=uxuJfHzwdtE
48
 
49
  == Screenshots ==
50
+ 1. CMP - Hardwork responsive
51
+ 2. CMP - Mercury Theme
52
+ 3. CMP - Mercury Theme
53
+ 4. CMP - Mercury Theme
54
+ 5. CMP - Hardwork Theme
55
+ 6. CMP - Apollo Theme
56
+ 7. CMP - Hardwork Theme
57
+ 8. CMP - Element Theme
58
+ 9. CMP - Element Theme
59
+ 10. CMP - Fifty Theme
60
+ 11. CMP - Hardwork Premium Theme
61
+ 12. CMP - Fifty Theme
62
+ 13. CMP - Fifty Theme
63
+ 14. CMP - Orbit Theme
64
+ 15. CMP - Hardwork Premium Theme
65
  16. CMP - Apollo Theme
66
+ 17. CMP - Hardwork Theme
67
+ 18. CMP - Postery Theme
68
+ 19. CMP - Hardwork Premium Theme
69
+ 20. CMP - Frame Theme
70
+ 21. CMP - Countdown Theme
71
+ 22. CMP - Frame Theme
72
+ 23. CMP - Stylo Theme
73
+ 24. CMP - Vega Theme
74
+ 25. CMP - Vega Theme
75
+ 26. CMP - Agency Theme
76
+ 27. CMP - Eclipse Theme
77
+ 28. CMP - Juno Theme
78
+ 29. CMP - Juno Theme
79
 
80
  == Installation ==
81
 
135
  <p>Nothing is better than a good feedback! Please go to <a href="https://wordpress.org/support/plugin/cmp-coming-soon-maintenance/reviews/">Plugin reviews</a> and rate it! Alternatively you can click on a Donate button too!:)</p>
136
 
137
  == Changelog ==
138
+ <h4>CMP 3.4.8 - 07-May-19</h4>
139
+ <ul>
140
+ <li>New CMP Theme: Ares! Check it out guys.</li>
141
+ <li>New wp.org plugin screenshots.</li>
142
+ <li>Minor tweaks and bug fixes in the code.</li>
143
+ </ul>
144
+
145
  <h4>CMP 3.4.7 - 16-April-19</h4>
146
  <ul>
147
  <li>Resolved issue with re-enabling the Whitelist if Blacklist was set when saving basic settings in some specific cases. Big thanks to Linus for noticing!</li>
themes/ares.txt ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
1
+ /*
2
+ Theme Name: Ares
3
+ Description: <p>This CMP template allows you to stylishly display image slide shows. The template also supports countdown and subscribe form. You can even improve the design by activating bubble or constellation effects. Possibility to change the logo, information text, icons on social networks and footer text is must have too.</p><h4>Main Features</h4><ul><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Logo</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Content</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Graphic Background including videos</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Graphic Image Slider Background</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Countdown Timer</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Subscribe Form</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Social Media</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Colors</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Fonts</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Background Blur Effect</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Background Special Effects</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Responsive Design</li></ul>
4
+
5
+