Version Description
Download this release
Release Info
Developer | niteo |
Plugin | CMP – Coming Soon & Maintenance Plugin by NiteoThemes |
Version | 2.5.1 |
Comparing to | |
See all releases |
Code changes from version 2.5 to 2.5.1
- js/settings.js +5 -1
- js/settings.min.js +2 -1
- niteo-cmp.php +7 -3
- readme.txt +6 -1
js/settings.js
CHANGED
@@ -5,7 +5,11 @@ jQuery(document).ready(function($){
|
|
5 |
var action = jQuery('#csoptions').attr('action');
|
6 |
|
7 |
// ini custom css textarea to codeEditor
|
8 |
-
|
|
|
|
|
|
|
|
|
9 |
|
10 |
// function to tab navigation
|
11 |
navtab = function(tab) {
|
5 |
var action = jQuery('#csoptions').attr('action');
|
6 |
|
7 |
// ini custom css textarea to codeEditor
|
8 |
+
|
9 |
+
if ( wp.codeEditor ) {
|
10 |
+
wp.codeEditor.initialize('niteoCS_custom_css');
|
11 |
+
}
|
12 |
+
|
13 |
|
14 |
// function to tab navigation
|
15 |
navtab = function(tab) {
|
js/settings.min.js
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
-
jQuery(document).ready(function($){var formChanged=!1;var tab=document.location.hash.substring(1);var action=jQuery('#csoptions').attr('action');wp.codeEditor
|
|
|
2 |
if(tab!=''){navtab(tab)}else{jQuery('.table-wrapper-css').css('display','none')}
|
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});update_range('.blur-range');update_range('.overlay-opacity');media_upload_button('logo',!1,'image');media_upload_button('favicon',!1,'image');media_upload_button('images',!0,'image');media_upload_button('pattern',!1,'image');media_upload_button('video-thumb',!1,'image');media_upload_button('video',!1,'video');toggle_settings('analytics');toggle_settings('contact-form');toggle_settings('subscribe');toggle_settings('background-effect');toggle_settings('cmp-logo');jQuery('select:not(.headings-google-font):not(.content-google-font )').select2({width:'100%',minimumResultsForSearch:-1,});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}
|
1 |
+
jQuery(document).ready(function($){var formChanged=!1;var tab=document.location.hash.substring(1);var action=jQuery('#csoptions').attr('action');if(wp.codeEditor){wp.codeEditor.initialize('niteoCS_custom_css')}
|
2 |
+
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('.table-wrapper-css.'+tab).css('display','block');jQuery('.comingsoon.'+tab).css('display','block');jQuery('.table-wrapper:not(.'+tab+')').css('display','none');jQuery('.table-wrapper-css: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)}}
|
3 |
if(tab!=''){navtab(tab)}else{jQuery('.table-wrapper-css').css('display','none')}
|
4 |
window.onhashchange=function(){tab=document.location.hash.substring(1);navtab(tab)}
|
5 |
$('.nav-tab:not(.theme-preview)').click(function(e){e.preventDefault();tab=$(this).data('tab');document.location.hash=tab});update_range('.blur-range');update_range('.overlay-opacity');media_upload_button('logo',!1,'image');media_upload_button('favicon',!1,'image');media_upload_button('images',!0,'image');media_upload_button('pattern',!1,'image');media_upload_button('video-thumb',!1,'image');media_upload_button('video',!1,'video');toggle_settings('analytics');toggle_settings('contact-form');toggle_settings('subscribe');toggle_settings('background-effect');toggle_settings('cmp-logo');jQuery('select:not(.headings-google-font):not(.content-google-font )').select2({width:'100%',minimumResultsForSearch:-1,});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}
|
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: 2.5
|
7 |
Author: NiteoThemes
|
8 |
Author URI: https://www.niteothemes.com
|
9 |
Text Domain: cmp-coming-soon-maintenance
|
@@ -18,7 +18,7 @@ class niteo_cmp {
|
|
18 |
public function __construct() {
|
19 |
$this->author = 'NiteoThemes';
|
20 |
$this->author_homepage = 'https://niteothemes.com';
|
21 |
-
$this->version = '2.5';
|
22 |
$this->dev = false;
|
23 |
$this->plugins_dir_path = plugin_dir_path( __DIR__ );
|
24 |
if ( $this->plugins_dir_path == './') {
|
@@ -86,7 +86,11 @@ class niteo_cmp {
|
|
86 |
// ini render-settings class
|
87 |
require_once('inc/class-cmp-render_settings.php');
|
88 |
$this->render_settings = new cmp_render_settings();
|
89 |
-
|
|
|
|
|
|
|
|
|
90 |
wp_register_style( 'cmp-style', plugins_url('/css/cmp-settings-style'.$this->minified.'.css', __FILE__),'', $this->version);
|
91 |
wp_enqueue_style('cmp-style');
|
92 |
wp_register_style( 'font_awesome', plugins_url('/css/font-awesome.min.css', __FILE__) );
|
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.5.1
|
7 |
Author: NiteoThemes
|
8 |
Author URI: https://www.niteothemes.com
|
9 |
Text Domain: cmp-coming-soon-maintenance
|
18 |
public function __construct() {
|
19 |
$this->author = 'NiteoThemes';
|
20 |
$this->author_homepage = 'https://niteothemes.com';
|
21 |
+
$this->version = '2.5.1';
|
22 |
$this->dev = false;
|
23 |
$this->plugins_dir_path = plugin_dir_path( __DIR__ );
|
24 |
if ( $this->plugins_dir_path == './') {
|
86 |
// ini render-settings class
|
87 |
require_once('inc/class-cmp-render_settings.php');
|
88 |
$this->render_settings = new cmp_render_settings();
|
89 |
+
|
90 |
+
if ( function_exists( 'wp_enqueue_code_editor' ) ) {
|
91 |
+
wp_enqueue_code_editor( array( 'type' => 'text/css' ) );
|
92 |
+
}
|
93 |
+
|
94 |
wp_register_style( 'cmp-style', plugins_url('/css/cmp-settings-style'.$this->minified.'.css', __FILE__),'', $this->version);
|
95 |
wp_enqueue_style('cmp-style');
|
96 |
wp_register_style( 'font_awesome', plugins_url('/css/font-awesome.min.css', __FILE__) );
|
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: 2.5
|
8 |
License: GPLv2 or later
|
9 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -112,6 +112,11 @@ CMP plugin offers premium features for free, no PRO versions! With blazing speed
|
|
112 |
<p>Everyone loves supports and great feedback! If you find our plugin helpful, you can go to wordpress.org and rate it! alternatively you can click on Donate button :)</p>
|
113 |
|
114 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
115 |
<h4>CMP 2.5 - user driven update with new requested features :)</h4>
|
116 |
<ul>
|
117 |
<li>New Theme: Stylo - modern, animated full-page background graphics for your landing, coming soon or maintenance page!</li>
|
4 |
Tags: under construction, construction page, maintenance mode, landing page, launch page, launching, security, coming soon, customizable, offline, offline page, unavailable, free, unsplash, subscribe form
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 4.9
|
7 |
+
Stable tag: 2.5.1
|
8 |
License: GPLv2 or later
|
9 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
112 |
<p>Everyone loves supports and great feedback! If you find our plugin helpful, you can go to wordpress.org and rate it! alternatively you can click on Donate button :)</p>
|
113 |
|
114 |
== Changelog ==
|
115 |
+
<h4>CMP 2.5.1 - maintenance update</h4>
|
116 |
+
<ul>
|
117 |
+
<li>Fixed issue call to undefined function wp_enqueue_code_editor after 2.5 update on older WordPress versions.</li>
|
118 |
+
</ul>
|
119 |
+
|
120 |
<h4>CMP 2.5 - user driven update with new requested features :)</h4>
|
121 |
<ul>
|
122 |
<li>New Theme: Stylo - modern, animated full-page background graphics for your landing, coming soon or maintenance page!</li>
|