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

Version Description

Download this release

Release Info

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

Code changes from version 3.6.12 to 3.6.13

Files changed (3) hide show
  1. inc/render/javascripts.php +8 -8
  2. niteo-cmp.php +2 -2
  3. readme.txt +6 -1
inc/render/javascripts.php CHANGED
@@ -78,25 +78,25 @@ switch ( $background ) {
78
  }
79
 
80
  switch ( $source ) {
81
- case 'YouTube':
82
- $banner_url = get_option('niteoCS_youtube_url'); ?>
83
-
84
  var myBackground = new vidim( '#player', {
85
- src: '<?php echo esc_url( $banner_url ); ?>',
86
  type: 'YouTube',
87
  poster: '<?php echo esc_url( $video_poster ); ?>',
88
  quality: 'hd1080',
89
  muted: true,
90
- loop: <?php echo $video_autoloop ? 'true' : 'false' ; ?>
 
91
  });
92
 
93
  <?php
94
  break;
95
 
96
- case 'vimeo':
97
- $banner_url = get_option('niteoCS_vimeo_url'); ?>
98
  var myBackground = new vidim( '#player', {
99
- src: '<?php echo esc_url( $banner_url ); ?>',
100
  type: 'vimeo',
101
  poster: '<?php echo esc_url( $video_poster ); ?>',
102
  loop: <?php echo $video_autoloop ? 'true' : 'false' ; ?>
78
  }
79
 
80
  switch ( $source ) {
81
+ case 'YouTube': ?>
82
+ var src = '<?php echo esc_url(get_option('niteoCS_youtube_url')); ?>'.split('?t=');
 
83
  var myBackground = new vidim( '#player', {
84
+ src: src[0],
85
  type: 'YouTube',
86
  poster: '<?php echo esc_url( $video_poster ); ?>',
87
  quality: 'hd1080',
88
  muted: true,
89
+ loop: <?php echo $video_autoloop ? 'true' : 'false' ; ?>,
90
+ startAt: src.length > 1 ? src[1] : '0'
91
  });
92
 
93
  <?php
94
  break;
95
 
96
+ case 'vimeo': ?>
97
+ var src = <?php esc_url(get_option('niteoCS_vimeo_url')); ?>
98
  var myBackground = new vidim( '#player', {
99
+ src: src,
100
  type: 'vimeo',
101
  poster: '<?php echo esc_url( $video_poster ); ?>',
102
  loop: <?php echo $video_autoloop ? 'true' : 'false' ; ?>
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.12
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.12' );
68
  $this->define( 'CMP_DEBUG', FALSE );
69
  $this->define( 'CMP_AUTHOR', 'NiteoThemes' );
70
  $this->define( 'CMP_AUTHOR_HOMEPAGE', 'https://niteothemes.com' );
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.13
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.13' );
68
  $this->define( 'CMP_DEBUG', FALSE );
69
  $this->define( 'CMP_AUTHOR', 'NiteoThemes' );
70
  $this->define( 'CMP_AUTHOR_HOMEPAGE', 'https://niteothemes.com' );
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.6
7
  Tested up to: 5.3
8
- Stable tag: 3.6.12
9
  License: GPLv2 or later
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -149,6 +149,11 @@ https://www.youtube.com/watch?v=uxuJfHzwdtE
149
  <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>
150
 
151
  == Changelog ==
 
 
 
 
 
152
  <h4>CMP 3.6.12 - 08-Jan-20</h4>
153
  <ul>
154
  <li>Resolved issue with spamming emails about expired Countdown Timer.</li>
5
  Requires at least: 3.0
6
  Requires PHP: 5.6
7
  Tested up to: 5.3
8
+ Stable tag: 3.6.13
9
  License: GPLv2 or later
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
11
 
149
  <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>
150
 
151
  == Changelog ==
152
+ <h4>CMP 3.6.13 - 09-Jan-20</h4>
153
+ <ul>
154
+ <li>Background YouTube video now supports starting time parameter.</li>
155
+ </ul>
156
+
157
  <h4>CMP 3.6.12 - 08-Jan-20</h4>
158
  <ul>
159
  <li>Resolved issue with spamming emails about expired Countdown Timer.</li>