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

Version Description

Download this release

Release Info

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

Code changes from version 3.6.1 to 3.6.2

cmp-settings.php CHANGED
@@ -465,7 +465,6 @@ if ( $page_filter == '1' ) {
465
  if ( !get_option('niteoCS_socialmedia') ) {
466
  $social_icons = array(
467
  'facebook',
468
- 'google-plus',
469
  'twitter',
470
  'instagram',
471
  'skype',
465
  if ( !get_option('niteoCS_socialmedia') ) {
466
  $social_icons = array(
467
  'facebook',
 
468
  'twitter',
469
  'instagram',
470
  'skype',
img/thumbnails/libra/screenshot1.jpg ADDED
Binary file
img/thumbnails/libra/screenshot2.jpg ADDED
Binary file
img/thumbnails/libra_thumbnail.jpg ADDED
Binary file
inc/class-cmp-render_html.php CHANGED
@@ -99,8 +99,8 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
99
  <script>
100
  var unsplash_download = '<?php echo esc_url( $unsplash_download );?>';
101
 
102
- var width = document.documentElement.clientWidth * <?php echo esc_attr( $width );?>;
103
- var height = document.documentElement.clientHeight * <?php echo esc_attr( $height );?>;
104
  var dimension = 'w=' + width;
105
  if ( width < height ) {
106
  dimension = 'h=' + height;
@@ -333,8 +333,8 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
333
  <script>
334
  var imgs = <?php echo $imgs;?>;
335
 
336
- var width = document.documentElement.clientWidth * <?php echo $width;?>;
337
- var height = document.documentElement.clientHeight * <?php echo $height;?>;
338
  var dimension = 'w=' + width;
339
  if ( width < height ) {
340
  dimension = 'h=' + height;
@@ -501,28 +501,45 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
501
  foreach ( $socialmedia as $social ) {
502
 
503
  if ( $social['hidden'] == '0' && $social['active'] == '1') {
504
-
 
 
505
  switch ($social['name']) {
506
  case 'envelope-o':
507
- echo ( $mode == 'text' ) ? '<li class="social-child' . $liclass . '"><a href="mailto:'.antispambot(esc_html($social['url'])).'" target="_blank" class="social-'.$social['name'].'">Email</a></li>' : '<li class="social-child' . $liclass . '"><a href="mailto:'.antispambot(esc_html($social['url'])).'" target="_blank" class="social-'.$social['name'].'">'.$theme_html.'<i class="fa fa-'.$social['name'].'" aria-hidden="true"></i></a></li>';
 
508
  break;
509
-
510
  case 'phone':
511
- echo ( $mode == 'text' ) ? '<li class="social-child' . $liclass . '"><a href="tel:'.esc_attr($social['url']).'" target="_blank" class="social-'.$social['name'].'">'.__('Phone', 'cmp-coming-soon-maintenance').'</a></li>' : '<li class="social-child' . $liclass . '"><a href="tel:'.esc_html($social['url']).'" target="_blank" class="social-'.$social['name'].'">'.$theme_html.'<i class="fa fa-'.$social['name'].'" aria-hidden="true"></i></a></li>';
 
512
  break;
513
-
514
  case 'whatsapp':
515
- echo ( $mode == 'text' ) ? '<li class="social-child' . $liclass . '"><a href="https://api.whatsapp.com/send?phone='.esc_html(str_replace('+', '', $social['url'])).'" target="_blank" class="social-'.$social['name'].'">'.ucfirst($social['name']).'</a></li>' : '<li class="social-child' . $liclass . '"><a href="https://api.whatsapp.com/send?phone='.esc_html(str_replace('+', '', $social['url'])).'" target="_blank" class="social-'.$social['name'].'">'.$theme_html.'<i class="fa fa-'.$social['name'].'" aria-hidden="true"></i></a></li>';
 
516
  break;
517
-
518
  case 'youtube':
519
- echo ( $mode == 'text' ) ? '<li class="social-child' . $liclass . '"><a href="'.esc_url($social['url']).'" target="top" class="social-'.$social['name'].'">YouTube</a></li>' : '<li class="social-child' . $liclass . '"><a href="'.esc_url($social['url']).'" target="top" class="social-'.$social['name'].'">'.$theme_html.'<i class="fa fa-'.$social['name'].'" aria-hidden="true"></i></a></li>';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
520
  break;
521
-
522
  default:
523
- echo ( $mode == 'text' ) ? '<li class="social-child' . $liclass . '"><a href="'.esc_url($social['url']).'" target="top" class="social-'.$social['name'].'">'.ucfirst($social['name']).'</a></li>' : '<li class="social-child' . $liclass . '"><a href="'.esc_url($social['url']).'" target="top" class="social-'.$social['name'].'">'.$theme_html.'<i class="fa fa-'.$social['name'].'" aria-hidden="true"></i></a></li>';
524
  break;
525
  }
 
 
526
  }
527
  }
528
 
@@ -621,6 +638,7 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
621
  $submit = ( $this->cmp_selectedTheme() == 'postery' ) ? '&#xf1d9;' : $submit;
622
  $submit = ( $this->cmp_selectedTheme() == 'juno' ) ? '&#xf1d8;' : $submit;
623
  $submit = ( $this->cmp_selectedTheme() == 'agency' ) ? '&#xf105;' : $submit;
 
624
 
625
  ?>
626
 
@@ -1219,7 +1237,10 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
1219
  }
1220
 
1221
  if ( $slider == '1' && ($banner_type == '0' || $banner_type == '1') ) {
1222
- echo '<link href="https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.6.0/slick.min.css" rel="stylesheet">' . PHP_EOL;
 
 
 
1223
  }
1224
 
1225
  if ( $fa === true ) {
@@ -1467,6 +1488,10 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
1467
 
1468
  <?php
1469
  break;
 
 
 
 
1470
  // default (true, false) means slick carousel scripts
1471
  default:
1472
  if ( !$jquery ) {
@@ -1590,7 +1615,17 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
1590
  <script src="//cdn.jsdelivr.net/particles.js/2.0.0/particles.min.js"></script>
1591
  <!-- INI particles -->
1592
  <script>
1593
- var wrapper=document.getElementById("background-wrapper"),background=null===wrapper?"slider-wrapper":"background-wrapper";particlesJS(background,{particles:{number:{value:100,density:{enable:!0,value_area:1e3}},color:{value:"<?php echo esc_attr( get_option('niteoCS_special_effect[constellation][color]', '#ffffff') );?>"},shape:{type:"circle",stroke:{width:0,color:"#fff"},polygon:{nb_sides:5}},opacity:{value:.6,random:!1,anim:{enable:!1,speed:1,opacity_min:.1,sync:!1}},size:{value:2,random:!0,anim:{enable:!1,speed:40,size_min:.1,sync:!1}},line_linked:{enable:!0,distance:120,color:"<?php echo esc_attr( get_option('niteoCS_special_effect[constellation][color]', '#ffffff') );?>",opacity:.4,width:1}},interactivity:{detect_on:"canvas",events:{onhover:{enable:!0,mode:"grab"},onclick:{enable:!1},resize:!0},modes:{grab:{distance:140,line_linked:{opacity:1}},bubble:{distance:400,size:40,duration:2,opacity:8,speed:3},repulse:{distance:200,duration:.4},push:{particles_nb:4},remove:{particles_nb:2}}},retina_detect:!0});
 
 
 
 
 
 
 
 
 
 
1594
  </script>
1595
  <?php
1596
  break;
@@ -1603,7 +1638,15 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
1603
  } ?>
1604
  <!-- INI bubbles -->
1605
  <script>
1606
- var $wrapper=$("#background-wrapper").length?$("#background-wrapper"):$("#slider-wrapper");$wrapper.append("<canvas></canvas><canvas></canvas><canvas></canvas>"),function(a){var e=$wrapper.children("canvas"),n=e[0],r=e[1],i=e[2],o={circle:{amount:18,layer:3,color:[<?php echo $this->hex2rgba( get_option('niteoCS_special_effect[constellation][color]', '#ffffff') );?>],alpha:.3},line:{amount:12,layer:3,color:[<?php echo $this->hex2rgba( get_option('niteoCS_special_effect[constellation][color]', '#ffffff') );?>],alpha:.3},speed:.5,angle:20};if(n.getContext){n.getContext("2d");var t,l,c,d=r.getContext("2d"),m=i.getContext("2d"),w=window.Math,s=o.angle/360*w.PI*2,p=[],u=[];requestAnimationFrame=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame||function(a,e){setTimeout(a,1e3/60)},cancelAnimationFrame=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||window.oCancelAnimationFrame||clearTimeout;var h=function(){t=a(window).width(),l=a(window).height(),e.each(function(){this.width=t,this.height=l})},v=function(){var a,e,n,r,i,h,f,y,g,A,F,C,b,x,q=w.sin(s),R=w.cos(s);if(o.circle.amount>0&&o.circle.layer>0){d.clearRect(0,0,t,l);for(var k=0,S=p.length;k<S;k++){var $=(I=p[k]).x,P=I.y,T=I.radius,z=I.speed;$>t+T?$=-T:$<-T?$=t+T:$+=q*z,P>l+T?P=-T:P<-T?P=l+T:P-=R*z,I.x=$,I.y=P,a=$,e=P,n=T,r=I.color,i=I.alpha,h=void 0,(h=d.createRadialGradient(a,e,n,a,e,0)).addColorStop(0,"rgba("+r[0]+","+r[1]+","+r[2]+","+i+")"),h.addColorStop(1,"rgba("+r[0]+","+r[1]+","+r[2]+","+(i-.1)+")"),d.beginPath(),d.arc(a,e,n,0,2*w.PI,!0),d.fillStyle=h,d.fill()}}if(o.line.amount>0&&o.line.layer>0){m.clearRect(0,0,t,l);var G=0;for(S=u.length;G<S;G++){$=(I=u[G]).x,P=I.y;var I,j=I.width;z=I.speed;$>t+j*q?$=-j*q:$<-j*q?$=t+j*q:$+=q*z,P>l+j*R?P=-j*R:P<-j*R?P=l+j*R:P-=R*z,I.x=$,I.y=P,f=$,y=P,g=j,A=I.color,F=I.alpha,void 0,void 0,x=void 0,C=f+w.sin(s)*g,b=y-w.cos(s)*g,(x=m.createLinearGradient(f,y,C,b)).addColorStop(0,"rgba("+A[0]+","+A[1]+","+A[2]+","+F+")"),x.addColorStop(1,"rgba("+A[0]+","+A[1]+","+A[2]+","+(F-.1)+")"),m.beginPath(),m.moveTo(f,y),m.lineTo(C,b),m.lineWidth=3,m.lineCap="round",m.strokeStyle=x,m.stroke()}}c=requestAnimationFrame(v)},f=function(){if(p=[],u=[],o.circle.amount>0&&o.circle.layer>0)for(var a=0;a<o.circle.amount/o.circle.layer;a++)for(var e=0;e<o.circle.layer;e++)p.push({x:w.random()*t,y:w.random()*l,radius:w.random()*(20+5*e)+(20+5*e),color:o.circle.color,alpha:.2*w.random()+(o.circle.alpha-.1*e),speed:o.speed*(1+.5*e)});if(o.line.amount>0&&o.line.layer>0)for(var n=0;n<o.line.amount/o.line.layer;n++)for(var r=0;r<o.line.layer;r++)u.push({x:w.random()*t,y:w.random()*l,width:w.random()*(20+5*r)+(20+5*r),color:o.line.color,alpha:.2*w.random()+(o.line.alpha-.1*r),speed:o.speed*(1+.5*r)});cancelAnimationFrame(c),c=requestAnimationFrame(v)};a(document).ready(function(){h(),f()}),a(window).resize(function(){h(),f()})}}(jQuery);
 
 
 
 
 
 
 
 
1607
  </script>
1608
  <?php
1609
  break;
99
  <script>
100
  var unsplash_download = '<?php echo esc_url( $unsplash_download );?>';
101
 
102
+ var width = document.getElementById('background-wrapper').offsetWidth * <?php echo esc_attr( $width );?>;
103
+ var height = document.getElementById('background-wrapper').offsetHeight * <?php echo esc_attr( $height );?>;
104
  var dimension = 'w=' + width;
105
  if ( width < height ) {
106
  dimension = 'h=' + height;
333
  <script>
334
  var imgs = <?php echo $imgs;?>;
335
 
336
+ var width = document.getElementById('slider-wrapper').offsetWidth * <?php echo $width;?>;
337
+ var height = document.getElementById('slider-wrapper').offsetHeight * <?php echo $height;?>;
338
  var dimension = 'w=' + width;
339
  if ( width < height ) {
340
  dimension = 'h=' + height;
501
  foreach ( $socialmedia as $social ) {
502
 
503
  if ( $social['hidden'] == '0' && $social['active'] == '1') {
504
+ $href = '';
505
+ $name = ucfirst($social['name']);
506
+
507
  switch ($social['name']) {
508
  case 'envelope-o':
509
+ $href = 'mailto:';
510
+ $name = __('Email', 'cmp-coming-soon-maintenance');
511
  break;
 
512
  case 'phone':
513
+ $href = 'tel:';
514
+ $name = __('Phone', 'cmp-coming-soon-maintenance');
515
  break;
 
516
  case 'whatsapp':
517
+ $name = 'WhatsApp';
518
+ $href = 'https://api.whatsapp.com/send?phone=';
519
  break;
 
520
  case 'youtube':
521
+ $name = 'YouTube';
522
+ break;
523
+ case 'linkedin':
524
+ $name = 'LinkedIn';
525
+ break;
526
+ case 'deviantart':
527
+ $name = 'DeviantArt';
528
+ break;
529
+ case 'soundcloud':
530
+ $name = 'SoundCloud';
531
+ break;
532
+ case 'vk':
533
+ $name = 'VK';
534
+ break;
535
+ case 'github':
536
+ $name = 'GitHub';
537
  break;
 
538
  default:
 
539
  break;
540
  }
541
+
542
+ echo ( $mode == 'text' ) ? '<li class="social-child' . $liclass . '"><a href="'.$href.esc_url($social['url']).'" target="top" class="social-'.$social['name'].'">'.$name.'</a></li>' : '<li class="social-child' . $liclass . '"><a href="'.$href.esc_url($social['url']).'" target="top" class="social-'.$social['name'].'">'.$theme_html.'<i class="fa fa-'.$social['name'].'" aria-hidden="true"></i></a></li>';
543
  }
544
  }
545
 
638
  $submit = ( $this->cmp_selectedTheme() == 'postery' ) ? '&#xf1d9;' : $submit;
639
  $submit = ( $this->cmp_selectedTheme() == 'juno' ) ? '&#xf1d8;' : $submit;
640
  $submit = ( $this->cmp_selectedTheme() == 'agency' ) ? '&#xf105;' : $submit;
641
+ $submit = ( $this->cmp_selectedTheme() == 'libra' ) ? '&#xf1d9;' : $submit;
642
 
643
  ?>
644
 
1237
  }
1238
 
1239
  if ( $slider == '1' && ($banner_type == '0' || $banner_type == '1') ) {
1240
+ $slider_effect = get_option('niteoCS_slider_effect', 'true');
1241
+ if ( $slider_effect == 'true' || $slider_effect == 'false' ) {
1242
+ echo '<link href="https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.6.0/slick.min.css" rel="stylesheet">' . PHP_EOL;
1243
+ }
1244
  }
1245
 
1246
  if ( $fa === true ) {
1488
 
1489
  <?php
1490
  break;
1491
+
1492
+ case 'train':
1493
+ break;
1494
+
1495
  // default (true, false) means slick carousel scripts
1496
  default:
1497
  if ( !$jquery ) {
1615
  <script src="//cdn.jsdelivr.net/particles.js/2.0.0/particles.min.js"></script>
1616
  <!-- INI particles -->
1617
  <script>
1618
+ <?php
1619
+ if ( $themeslug === 'libra' ) { ?>
1620
+ var wrapper = document.getElementById('body');
1621
+ var background= 'body';
1622
+ <?php
1623
+ } else { ?>
1624
+ var wrapper=document.getElementById("background-wrapper");
1625
+ var background=(null===wrapper)?"slider-wrapper":"background-wrapper";
1626
+ <?php
1627
+ } ?>
1628
+ particlesJS(background,{particles:{number:{value:100,density:{enable:!0,value_area:1e3}},color:{value:"<?php echo esc_attr( get_option('niteoCS_special_effect[constellation][color]', '#ffffff') );?>"},shape:{type:"circle",stroke:{width:0,color:"#fff"},polygon:{nb_sides:5}},opacity:{value:.6,random:!1,anim:{enable:!1,speed:1,opacity_min:.1,sync:!1}},size:{value:2,random:!0,anim:{enable:!1,speed:40,size_min:.1,sync:!1}},line_linked:{enable:!0,distance:120,color:"<?php echo esc_attr( get_option('niteoCS_special_effect[constellation][color]', '#ffffff') );?>",opacity:.4,width:1}},interactivity:{detect_on:"canvas",events:{onhover:{enable:!0,mode:"grab"},onclick:{enable:!1},resize:!0},modes:{grab:{distance:140,line_linked:{opacity:1}},bubble:{distance:400,size:40,duration:2,opacity:8,speed:3},repulse:{distance:200,duration:.4},push:{particles_nb:4},remove:{particles_nb:2}}},retina_detect:!0});
1629
  </script>
1630
  <?php
1631
  break;
1638
  } ?>
1639
  <!-- INI bubbles -->
1640
  <script>
1641
+ <?php
1642
+ if ( $themeslug === 'libra' ) { ?>
1643
+ var $wrapper = $('#body');
1644
+ <?php
1645
+ } else { ?>
1646
+ var $wrapper=$("#background-wrapper").length?$("#background-wrapper"):$("#slider-wrapper")
1647
+ <?php
1648
+ } ?>
1649
+ $wrapper.append("<canvas></canvas><canvas></canvas><canvas></canvas>"),function(a){var e=$wrapper.children("canvas"),n=e[0],r=e[1],i=e[2],o={circle:{amount:18,layer:3,color:[<?php echo $this->hex2rgba( get_option('niteoCS_special_effect[constellation][color]', '#ffffff') );?>],alpha:.3},line:{amount:12,layer:3,color:[<?php echo $this->hex2rgba( get_option('niteoCS_special_effect[constellation][color]', '#ffffff') );?>],alpha:.3},speed:.5,angle:20};if(n.getContext){n.getContext("2d");var t,l,c,d=r.getContext("2d"),m=i.getContext("2d"),w=window.Math,s=o.angle/360*w.PI*2,p=[],u=[];requestAnimationFrame=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame||function(a,e){setTimeout(a,1e3/60)},cancelAnimationFrame=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||window.oCancelAnimationFrame||clearTimeout;var h=function(){t=a(window).width(),l=a(window).height(),e.each(function(){this.width=t,this.height=l})},v=function(){var a,e,n,r,i,h,f,y,g,A,F,C,b,x,q=w.sin(s),R=w.cos(s);if(o.circle.amount>0&&o.circle.layer>0){d.clearRect(0,0,t,l);for(var k=0,S=p.length;k<S;k++){var $=(I=p[k]).x,P=I.y,T=I.radius,z=I.speed;$>t+T?$=-T:$<-T?$=t+T:$+=q*z,P>l+T?P=-T:P<-T?P=l+T:P-=R*z,I.x=$,I.y=P,a=$,e=P,n=T,r=I.color,i=I.alpha,h=void 0,(h=d.createRadialGradient(a,e,n,a,e,0)).addColorStop(0,"rgba("+r[0]+","+r[1]+","+r[2]+","+i+")"),h.addColorStop(1,"rgba("+r[0]+","+r[1]+","+r[2]+","+(i-.1)+")"),d.beginPath(),d.arc(a,e,n,0,2*w.PI,!0),d.fillStyle=h,d.fill()}}if(o.line.amount>0&&o.line.layer>0){m.clearRect(0,0,t,l);var G=0;for(S=u.length;G<S;G++){$=(I=u[G]).x,P=I.y;var I,j=I.width;z=I.speed;$>t+j*q?$=-j*q:$<-j*q?$=t+j*q:$+=q*z,P>l+j*R?P=-j*R:P<-j*R?P=l+j*R:P-=R*z,I.x=$,I.y=P,f=$,y=P,g=j,A=I.color,F=I.alpha,void 0,void 0,x=void 0,C=f+w.sin(s)*g,b=y-w.cos(s)*g,(x=m.createLinearGradient(f,y,C,b)).addColorStop(0,"rgba("+A[0]+","+A[1]+","+A[2]+","+F+")"),x.addColorStop(1,"rgba("+A[0]+","+A[1]+","+A[2]+","+(F-.1)+")"),m.beginPath(),m.moveTo(f,y),m.lineTo(C,b),m.lineWidth=3,m.lineCap="round",m.strokeStyle=x,m.stroke()}}c=requestAnimationFrame(v)},f=function(){if(p=[],u=[],o.circle.amount>0&&o.circle.layer>0)for(var a=0;a<o.circle.amount/o.circle.layer;a++)for(var e=0;e<o.circle.layer;e++)p.push({x:w.random()*t,y:w.random()*l,radius:w.random()*(20+5*e)+(20+5*e),color:o.circle.color,alpha:.2*w.random()+(o.circle.alpha-.1*e),speed:o.speed*(1+.5*e)});if(o.line.amount>0&&o.line.layer>0)for(var n=0;n<o.line.amount/o.line.layer;n++)for(var r=0;r<o.line.layer;r++)u.push({x:w.random()*t,y:w.random()*l,width:w.random()*(20+5*r)+(20+5*r),color:o.line.color,alpha:.2*w.random()+(o.line.alpha-.1*r),speed:o.speed*(1+.5*r)});cancelAnimationFrame(c),c=requestAnimationFrame(v)};a(document).ready(function(){h(),f()}),a(window).resize(function(){h(),f()})}}(jQuery);
1650
  </script>
1651
  <?php
1652
  break;
inc/settings/settings-background.php CHANGED
@@ -203,7 +203,7 @@ $gradient_array = array(
203
  <input type="text" class="widefat" id="niteoCS-unsplash-3" name="niteoCS_unsplash_3" value="<?php echo esc_attr( $niteoCS_unsplash_3 ); ?>" />
204
  </label>
205
  <br><br>
206
- <input type="checkbox" name="niteoCS_unsplash_feat" id="niteoCS_unsplash_feat" value="1" <?php checked( '1', get_option( 'niteoCS_unsplash_feat', '0' ) ); ?> class="regular-text code"><label for="niteoCS_unsplash_feat"><?php _e('Limit to Unsplash Featured Photos', 'cmp-coming-soon-maintenance');?></label>
207
  </p>
208
 
209
  <p class="unsplash-feed unsplash-feed-1">
203
  <input type="text" class="widefat" id="niteoCS-unsplash-3" name="niteoCS_unsplash_3" value="<?php echo esc_attr( $niteoCS_unsplash_3 ); ?>" />
204
  </label>
205
  <br><br>
206
+ <input type="checkbox" name="niteoCS_unsplash_feat" id="niteoCS_unsplash_feat" value="1" <?php checked( '1', get_option( 'niteoCS_unsplash_feat', '0' ) ); ?> class="regular-text code"><label for="niteoCS_unsplash_feat"><?php _e('Select Unsplash Featured Photos only', 'cmp-coming-soon-maintenance');?></label>
207
  </p>
208
 
209
  <p class="unsplash-feed unsplash-feed-1">
inc/settings/settings-slider.php CHANGED
@@ -88,6 +88,14 @@ $niteoCS_slider_auto = get_option('niteoCS_slider_auto', '1');
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">
88
  <?php
89
  }
90
 
91
+ // Train option for selected themes
92
+ if ( $this->cmp_selectedTheme() == 'libra' ) { ?>
93
+ <label title="Train Effect">
94
+ <input type="radio" name="niteoCS_slider_effect" <?php echo ( $niteoCS_banner == '1' || $niteoCS_banner == '0' ) ? '' : 'disabled';?> value="train"<?php checked ( 'train', $niteoCS_slider_effect );?>>&nbsp;<?php _e('Train', 'cmp-coming-soon-maintenance');?>
95
+ </label><br>
96
+ <?php
97
+ }
98
+
99
  // Mask Transition option for selected themes
100
  if ( $this->cmp_selectedTheme() == 'apollo' || $this->cmp_selectedTheme() == 'ares' ) { ?>
101
  <label title="Mask Transition Effect">
inc/settings/settings-social-media.php CHANGED
@@ -78,10 +78,6 @@ defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
78
  $title = __('Email Address', 'cmp-coming-soon-maintenance');
79
  $url = 'email@example.com';
80
  break;
81
- case 'google-plus':
82
- $title = ucfirst( $social['name'] );
83
- $url = 'https://plus.google.com/profile';
84
- break;
85
  case 'youtube':
86
  $title = 'YouTube';
87
  $url = 'https://youtube.com/user/username';
@@ -95,7 +91,7 @@ defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
95
  $url = '+123456789';
96
  break;
97
  case 'whatsapp':
98
- $title = __('Whatsapp Phone Number', 'cmp-coming-soon-maintenance');
99
  $url = '+123456789';
100
  break;
101
  case 'telegram':
78
  $title = __('Email Address', 'cmp-coming-soon-maintenance');
79
  $url = 'email@example.com';
80
  break;
 
 
 
 
81
  case 'youtube':
82
  $title = 'YouTube';
83
  $url = 'https://youtube.com/user/username';
91
  $url = '+123456789';
92
  break;
93
  case 'whatsapp':
94
+ $title = __('WhatsApp Phone Number', 'cmp-coming-soon-maintenance');
95
  $url = '+123456789';
96
  break;
97
  case 'telegram':
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.6.1
7
  Author: NiteoThemes
8
  Author URI: https://www.niteothemes.com
9
  Text Domain: cmp-coming-soon-maintenance
@@ -64,7 +64,7 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
64
 
65
  private function constants() {
66
  // define constants
67
- $this->define( 'CMP_VERSION', '3.6.1' );
68
  $this->define( 'CMP_DEBUG', FALSE );
69
  $this->define( 'CMP_AUTHOR', 'NiteoThemes' );
70
  $this->define( 'CMP_AUTHOR_HOMEPAGE', 'https://niteothemes.com' );
@@ -225,6 +225,8 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
225
 
226
  $premium_themes = array();
227
 
 
 
228
  array_push( $premium_themes, array('name' => 'tempie', 'url' => 'https://niteothemes.com/downloads/cmp-tempie-theme/?utm_source=cmp&utm_medium=referral&utm_campaign=tempie', 'price' => '10') );
229
 
230
  array_push( $premium_themes, array('name' => 'mercury', 'url' => 'https://niteothemes.com/downloads/cmp-mercury-theme/?utm_source=cmp&utm_medium=referral&utm_campaign=mercury', 'price' => '10') );
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.6.2
7
  Author: NiteoThemes
8
  Author URI: https://www.niteothemes.com
9
  Text Domain: cmp-coming-soon-maintenance
64
 
65
  private function constants() {
66
  // define constants
67
+ $this->define( 'CMP_VERSION', '3.6.2' );
68
  $this->define( 'CMP_DEBUG', FALSE );
69
  $this->define( 'CMP_AUTHOR', 'NiteoThemes' );
70
  $this->define( 'CMP_AUTHOR_HOMEPAGE', 'https://niteothemes.com' );
225
 
226
  $premium_themes = array();
227
 
228
+ array_push( $premium_themes, array('name' => 'libra', 'url' => 'https://niteothemes.com/downloads/cmp-libra-theme/?utm_source=cmp&utm_medium=referral&utm_campaign=libra', 'price' => '10') );
229
+
230
  array_push( $premium_themes, array('name' => 'tempie', 'url' => 'https://niteothemes.com/downloads/cmp-tempie-theme/?utm_source=cmp&utm_medium=referral&utm_campaign=tempie', 'price' => '10') );
231
 
232
  array_push( $premium_themes, array('name' => 'mercury', 'url' => 'https://niteothemes.com/downloads/cmp-mercury-theme/?utm_source=cmp&utm_medium=referral&utm_campaign=mercury', 'price' => '10') );
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: coming soon, landing page, launch page, maintenance mode, under constructi
5
  Requires at least: 3.0
6
  Requires PHP: 5.3
7
  Tested up to: 5.2
8
- Stable tag: 3.6.1
9
  License: GPLv2 or later
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -145,6 +145,13 @@ https://www.youtube.com/watch?v=uxuJfHzwdtE
145
  <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>
146
 
147
  == Changelog ==
 
 
 
 
 
 
 
148
  <h4>CMP 3.6.1 - 26-Sept-19</h4>
149
  <ul>
150
  <li>Changes in Custom Analytics code: it can contain any Javascript code now. It also requires code wrapped in '<script>' tags. Make sure to test your analytics after this update.</li>
5
  Requires at least: 3.0
6
  Requires PHP: 5.3
7
  Tested up to: 5.2
8
+ Stable tag: 3.6.2
9
  License: GPLv2 or later
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
11
 
145
  <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>
146
 
147
  == Changelog ==
148
+ <h4>CMP 3.6.2 - 09-Oct-19</h4>
149
+ <ul>
150
+ <li>New CMP Theme Libra!</li>
151
+ <li>Updated social networks names with correct letter capitalization.</li>
152
+ <li>Removed Google+ from social networks.</li>
153
+ </ul>
154
+
155
  <h4>CMP 3.6.1 - 26-Sept-19</h4>
156
  <ul>
157
  <li>Changes in Custom Analytics code: it can contain any Javascript code now. It also requires code wrapped in '<script>' tags. Make sure to test your analytics after this update.</li>
themes/libra.txt ADDED
@@ -0,0 +1,4 @@
 
 
 
 
1
+ /*
2
+ Theme Name: Libra
3
+ Description: <p>CMP Libra is designed as a coming soon, maintenance and landing page. It utilizies a unique slider, called as a “train” effect. All major functionalities are available, such as the ability to display an image, video, pattern, gradient or solid color. Also all elements such as background, logo, subscribe form, countdown, fonts and special effects are editable.</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 with special Train Effect</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
+