Version Description
Download this release
Release Info
Developer | niteo |
Plugin | CMP – Coming Soon & Maintenance Plugin by NiteoThemes |
Version | 1.4.1 |
Comparing to | |
See all releases |
Code changes from version 1.4.0 to 1.4.1
- comingsoon.js +8 -1
- comingsoon.min.js +1 -1
- niteo-cmp.php +11 -7
- readme.txt +7 -3
comingsoon.js
CHANGED
@@ -414,6 +414,12 @@ jQuery(document).ready(function($){
|
|
414 |
};
|
415 |
})(jQuery);
|
416 |
|
|
|
|
|
|
|
|
|
|
|
|
|
417 |
jQuery('.social-inputs input[type="checkbox"]').click(function(e){
|
418 |
var $this = $(this).siblings('input[type="text"]');
|
419 |
$this.toggleDisabled();
|
@@ -429,8 +435,9 @@ jQuery(document).ready(function($){
|
|
429 |
} else {
|
430 |
update_social(name, 'hidden', '1');
|
431 |
}
|
432 |
-
|
433 |
});
|
434 |
|
|
|
|
|
435 |
});
|
436 |
|
414 |
};
|
415 |
})(jQuery);
|
416 |
|
417 |
+
jQuery('.social-inputs input[type="text"]').focusout(function(){
|
418 |
+
var name = jQuery(this).data('name');
|
419 |
+
var socialurl = jQuery(this).attr('value');
|
420 |
+
update_social(name, 'url', socialurl);
|
421 |
+
});
|
422 |
+
|
423 |
jQuery('.social-inputs input[type="checkbox"]').click(function(e){
|
424 |
var $this = $(this).siblings('input[type="text"]');
|
425 |
$this.toggleDisabled();
|
435 |
} else {
|
436 |
update_social(name, 'hidden', '1');
|
437 |
}
|
|
|
438 |
});
|
439 |
|
440 |
+
|
441 |
+
|
442 |
});
|
443 |
|
comingsoon.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
jQuery(document).ready(function(a){function e(a){return(a+"").replace(/^([a-z])|\s+([a-z])/g,function(a){return a.toUpperCase()})}function f(a){return(a+"").toLowerCase()}navtab=function(a){jQuery(".nav-tab-wrapper .nav-tab").removeClass("nav-tab-active"),jQuery(".nav-tab-wrapper ."+a).addClass("nav-tab-active"),jQuery(".table-wrapper."+a).css("display","block"),jQuery(".table-wrapper:not(."+a+")").css("display","none"),jQuery(".comingsoon."+a).css("display","block"),jQuery(".comingsoon:not(."+a+")").css("display","none"),"install"==a?jQuery(".submit").css("display","none"):jQuery(".submit").css("display","block")};var b=localStorage.getItem("sc_tab");b&&navtab(b),a(".nav-tab:not(.theme-preview)").click(function(c){c.preventDefault(),b=a(this).data("tab"),navtab(b),localStorage.setItem("sc_tab",b)});var c=jQuery('#unsplash_banner select[name="unsplash_feed"] option:selected').val();jQuery("#unsplash-feed-"+c).css("display","block"),jQuery('#unsplash_banner select[name="unsplash_feed"]').on("change",function(){c=jQuery('#unsplash_banner select[name="unsplash_feed"] option:selected').val(),jQuery(".unsplash-feed").css("display","none"),jQuery("#unsplash-feed-"+c).css("display","block")});var d=jQuery(".logo-wrapper");""!=jQuery("#niteoCS-logo-id").val()&&(jQuery("#add-logo").val("Change Logo"),jQuery("#delete-logo").css("display","block")),jQuery("#add-logo").click(function(a){if(a.preventDefault(),b)return void b.open();var b=wp.media({title:"Select Logo",button:{text:"Insert Logo"},multiple:!1,type:"image"}).on("select",function(){var a=b.state().get("selection").first().toJSON();jQuery(".logo-wrapper").empty(),d.append('<img src="'+a.url+'" alt="" style="max-width:588px"/>'),jQuery("#add-logo").val("Change Logo"),jQuery("#delete-logo").css("display","block"),jQuery("#niteoCS-logo-id").val(a.id)}).open()}),jQuery("#delete-logo").click(function(a){jQuery(".logo-wrapper").empty(),jQuery("#add-logo").val("Select Logo"),jQuery(this).css("display","none"),jQuery("#niteoCS-logo-id").val("")}),""!=jQuery("#niteoCS-banner-id").val()&&jQuery("#delete-banner").css("display","block"),jQuery("#add-banner").click(function(a){var b=jQuery(".banner-wrapper");if(a.preventDefault(),c)return void c.open();var c=wp.media({title:"Select Photos",button:{text:"Insert Photos"},multiple:!0,type:"image"}).on("select",function(){var a=c.state().get("selection").toJSON(),d="";a.length>0&&(jQuery(".banner-wrapper").empty(),jQuery(a).each(function(c){b.append('<img src="'+a[c].url+'" alt="" style="max-width:588px;"/>'),jQuery("#delete-banner").css("display","block"),d+=(0===c?"":",")+a[c].id}),jQuery("#niteoCS-banner-id").val(d))}).open()}),jQuery("#delete-banner").click(function(a){jQuery(".banner-wrapper").empty(),jQuery(this).css("display","none"),jQuery("#niteoCS-banner-id").val("")}),0==jQuery('#csoptions input[name="niteoCS_banner"]:checked').val()?(jQuery("#custom_banner").css("display","block"),jQuery("#unsplash_banner").css("display","none"),jQuery("#default_banner").css("display","none")):1==jQuery('#csoptions input[name="niteoCS_banner"]:checked').val()?(jQuery("#custom_banner").css("display","none"),jQuery("#default_banner").css("display","none"),jQuery("#unsplash_banner").css("display","block")):(jQuery("#custom_banner").css("display","none"),jQuery("#default_banner").css("display","block"),jQuery("#unsplash_banner").css("display","none")),jQuery('#csoptions input[name="niteoCS_banner"]').change(function(){0==jQuery('#csoptions input[name="niteoCS_banner"]:checked').val()?(jQuery("#custom_banner").css("display","block"),jQuery("#unsplash_banner").css("display","none"),jQuery("#default_banner").css("display","none")):1==jQuery('#csoptions input[name="niteoCS_banner"]:checked').val()?(jQuery("#custom_banner").css("display","none"),jQuery("#default_banner").css("display","none"),jQuery("#unsplash_banner").css("display","block")):(jQuery("#custom_banner").css("display","none"),jQuery("#default_banner").css("display","block"),jQuery("#unsplash_banner").css("display","none"))}),1==jQuery("#niteoCS_subscribe").prop("checked")&&jQuery(".subscribe").css("display","block"),jQuery("#niteoCS_subscribe").change(function(){jQuery(this)[0].checked?jQuery(".subscribe").css("display","block"):jQuery(".subscribe").css("display","none")}),0==jQuery('#csoptions input[name="niteoCS_subscribe_type"]:checked').val()?(jQuery("#subscribe-disabled").css("display","block"),jQuery("#subscribe-3rdparty").css("display","none"),jQuery("#subscribe-niteo").css("display","none")):1==jQuery('#csoptions input[name="niteoCS_subscribe_type"]:checked').val()?(jQuery("#subscribe-disabled").css("display","none"),jQuery("#subscribe-3rdparty").css("display","block"),jQuery("#subscribe-niteo").css("display","none")):(jQuery("#subscribe-disabled").css("display","none"),jQuery("#subscribe-3rdparty").css("display","none"),jQuery("#subscribe-niteo").css("display","block")),jQuery('#csoptions input[name="niteoCS_subscribe_type"]').change(function(){0==jQuery('#csoptions input[name="niteoCS_subscribe_type"]:checked').val()?(jQuery("#subscribe-disabled").css("display","block"),jQuery("#subscribe-3rdparty").css("display","none"),jQuery("#subscribe-niteo").css("display","none")):1==jQuery('#csoptions input[name="niteoCS_subscribe_type"]:checked').val()?(jQuery("#subscribe-disabled").css("display","none"),jQuery("#subscribe-3rdparty").css("display","block"),jQuery("#subscribe-niteo").css("display","none")):(jQuery("#subscribe-disabled").css("display","none"),jQuery("#subscribe-3rdparty").css("display","none"),jQuery("#subscribe-niteo").css("display","block"))}),jQuery("#csv-generate").click(function(b){b.preventDefault(),jQuery("#csv-download").length&&jQuery("#csv-download").remove(),jQuery.ajax({type:"POST",url:ajaxurl,data:{action:"niteo_export_csv"},success:function(b){b=b.slice(0,-1);var c=a("<a />",{id:"csv-download",href:"data:text/plain;charset=UTF-8,"+encodeURIComponent(b),text:"Download CSV",download:"subscriber_list.csv"});jQuery("#subscribe-niteo").append(c)}})});var g="",h="";g="custom"==jQuery('select[name="niteoCS_font_headings"] option:selected').val()?e(f(jQuery("#niteoCS_font_headings_custom").val())):jQuery('select[name="niteoCS_font_headings"] option:selected').val(),h="custom"==jQuery('select[name="niteoCS_font_content"] option:selected').val()?e(f(jQuery("#niteoCS_font_content_custom").val())):jQuery('select[name="niteoCS_font_content"] option:selected').val(),WebFont.load({google:{families:[e(f(g)),e(f(h))]},active:function(){a("#heading-example").css("font-family",g),a("#content-example").css("font-family",h)}}),jQuery('select[name="niteoCS_font_headings"]').on("change",function(){niteoCS_font_headings=jQuery('select[name="niteoCS_font_headings"] option:selected').val(),"custom"==niteoCS_font_headings?(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:[e(f(jQuery("#niteoCS_font_headings_custom").val()))]},active:function(){a("#heading-example").css("font-family",jQuery("#niteoCS_font_headings_custom").val())}})},1e3))})):(jQuery("#custom_headings_font").css("display","none"),WebFont.load({google:{families:[niteoCS_font_headings]},active:function(){a("#heading-example").css("font-family",niteoCS_font_headings||"")}}))}),jQuery('select[name="niteoCS_font_content"]').on("change",function(){niteoCS_font_content=jQuery('select[name="niteoCS_font_content"] option:selected').val(),"custom"==niteoCS_font_content?(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:[e(f(jQuery("#niteoCS_font_content_custom").val()))]},active:function(){a("#content-example").css("font-family",jQuery("#niteoCS_font_content_custom").val())}})},1e3))})):(jQuery("#custom_content_font").css("display","none"),WebFont.load({google:{families:[niteoCS_font_content]},active:function(){a("#content-example").css("font-family",niteoCS_font_content||"")}}))});var i=function(b,c,d){var e=a("#niteoCS_socialmedia").attr("value");e=a.parseJSON(e),a.each(e,function(a,e){e.name==b&&(e[c]=d)}),a("#niteoCS_socialmedia").attr("value",JSON.stringify(e))},j=a(".social-inputs"),k=function(b,c){var d=j.find('input[type="text"]');c.item.index();d.each(function(b,c){var d=a(c).data("name");i(d,"order",b)})};j.sortable({stop:k}),j.on("sortchange",k),function(a){a.fn.toggleDisabled=function(){return this.each(function(){var c,b=a(this),d=b.data("name");b.attr("disabled")?(b.prop("disabled",!1),c="1"):(b.prop("disabled",!0),c="0"),i(d,"active",c)})}}(jQuery),jQuery('.social-inputs input[type="checkbox"]').click(function(b){a(this).siblings('input[type="text"]').toggleDisabled()}),jQuery(".social-media i").click(function(){var a=jQuery(this).data("name");jQuery(this).toggleClass("active"),jQuery(".social-inputs li."+a).toggleClass("active"),jQuery(this).hasClass("active")?i(a,"hidden","0"):i(a,"hidden","1")})});
|
1 |
+
jQuery(document).ready(function(a){function e(a){return(a+"").replace(/^([a-z])|\s+([a-z])/g,function(a){return a.toUpperCase()})}function f(a){return(a+"").toLowerCase()}navtab=function(a){jQuery(".nav-tab-wrapper .nav-tab").removeClass("nav-tab-active"),jQuery(".nav-tab-wrapper ."+a).addClass("nav-tab-active"),jQuery(".table-wrapper."+a).css("display","block"),jQuery(".table-wrapper:not(."+a+")").css("display","none"),jQuery(".comingsoon."+a).css("display","block"),jQuery(".comingsoon:not(."+a+")").css("display","none"),"install"==a?jQuery(".submit").css("display","none"):jQuery(".submit").css("display","block")};var b=localStorage.getItem("sc_tab");b&&navtab(b),a(".nav-tab:not(.theme-preview)").click(function(c){c.preventDefault(),b=a(this).data("tab"),navtab(b),localStorage.setItem("sc_tab",b)});var c=jQuery('#unsplash_banner select[name="unsplash_feed"] option:selected').val();jQuery("#unsplash-feed-"+c).css("display","block"),jQuery('#unsplash_banner select[name="unsplash_feed"]').on("change",function(){c=jQuery('#unsplash_banner select[name="unsplash_feed"] option:selected').val(),jQuery(".unsplash-feed").css("display","none"),jQuery("#unsplash-feed-"+c).css("display","block")});var d=jQuery(".logo-wrapper");""!=jQuery("#niteoCS-logo-id").val()&&(jQuery("#add-logo").val("Change Logo"),jQuery("#delete-logo").css("display","block")),jQuery("#add-logo").click(function(a){if(a.preventDefault(),b)return void b.open();var b=wp.media({title:"Select Logo",button:{text:"Insert Logo"},multiple:!1,type:"image"}).on("select",function(){var a=b.state().get("selection").first().toJSON();jQuery(".logo-wrapper").empty(),d.append('<img src="'+a.url+'" alt="" style="max-width:588px"/>'),jQuery("#add-logo").val("Change Logo"),jQuery("#delete-logo").css("display","block"),jQuery("#niteoCS-logo-id").val(a.id)}).open()}),jQuery("#delete-logo").click(function(a){jQuery(".logo-wrapper").empty(),jQuery("#add-logo").val("Select Logo"),jQuery(this).css("display","none"),jQuery("#niteoCS-logo-id").val("")}),""!=jQuery("#niteoCS-banner-id").val()&&jQuery("#delete-banner").css("display","block"),jQuery("#add-banner").click(function(a){var b=jQuery(".banner-wrapper");if(a.preventDefault(),c)return void c.open();var c=wp.media({title:"Select Photos",button:{text:"Insert Photos"},multiple:!0,type:"image"}).on("select",function(){var a=c.state().get("selection").toJSON(),d="";a.length>0&&(jQuery(".banner-wrapper").empty(),jQuery(a).each(function(c){b.append('<img src="'+a[c].url+'" alt="" style="max-width:588px;"/>'),jQuery("#delete-banner").css("display","block"),d+=(0===c?"":",")+a[c].id}),jQuery("#niteoCS-banner-id").val(d))}).open()}),jQuery("#delete-banner").click(function(a){jQuery(".banner-wrapper").empty(),jQuery(this).css("display","none"),jQuery("#niteoCS-banner-id").val("")}),0==jQuery('#csoptions input[name="niteoCS_banner"]:checked').val()?(jQuery("#custom_banner").css("display","block"),jQuery("#unsplash_banner").css("display","none"),jQuery("#default_banner").css("display","none")):1==jQuery('#csoptions input[name="niteoCS_banner"]:checked').val()?(jQuery("#custom_banner").css("display","none"),jQuery("#default_banner").css("display","none"),jQuery("#unsplash_banner").css("display","block")):(jQuery("#custom_banner").css("display","none"),jQuery("#default_banner").css("display","block"),jQuery("#unsplash_banner").css("display","none")),jQuery('#csoptions input[name="niteoCS_banner"]').change(function(){0==jQuery('#csoptions input[name="niteoCS_banner"]:checked').val()?(jQuery("#custom_banner").css("display","block"),jQuery("#unsplash_banner").css("display","none"),jQuery("#default_banner").css("display","none")):1==jQuery('#csoptions input[name="niteoCS_banner"]:checked').val()?(jQuery("#custom_banner").css("display","none"),jQuery("#default_banner").css("display","none"),jQuery("#unsplash_banner").css("display","block")):(jQuery("#custom_banner").css("display","none"),jQuery("#default_banner").css("display","block"),jQuery("#unsplash_banner").css("display","none"))}),1==jQuery("#niteoCS_subscribe").prop("checked")&&jQuery(".subscribe").css("display","block"),jQuery("#niteoCS_subscribe").change(function(){jQuery(this)[0].checked?jQuery(".subscribe").css("display","block"):jQuery(".subscribe").css("display","none")}),0==jQuery('#csoptions input[name="niteoCS_subscribe_type"]:checked').val()?(jQuery("#subscribe-disabled").css("display","block"),jQuery("#subscribe-3rdparty").css("display","none"),jQuery("#subscribe-niteo").css("display","none")):1==jQuery('#csoptions input[name="niteoCS_subscribe_type"]:checked').val()?(jQuery("#subscribe-disabled").css("display","none"),jQuery("#subscribe-3rdparty").css("display","block"),jQuery("#subscribe-niteo").css("display","none")):(jQuery("#subscribe-disabled").css("display","none"),jQuery("#subscribe-3rdparty").css("display","none"),jQuery("#subscribe-niteo").css("display","block")),jQuery('#csoptions input[name="niteoCS_subscribe_type"]').change(function(){0==jQuery('#csoptions input[name="niteoCS_subscribe_type"]:checked').val()?(jQuery("#subscribe-disabled").css("display","block"),jQuery("#subscribe-3rdparty").css("display","none"),jQuery("#subscribe-niteo").css("display","none")):1==jQuery('#csoptions input[name="niteoCS_subscribe_type"]:checked').val()?(jQuery("#subscribe-disabled").css("display","none"),jQuery("#subscribe-3rdparty").css("display","block"),jQuery("#subscribe-niteo").css("display","none")):(jQuery("#subscribe-disabled").css("display","none"),jQuery("#subscribe-3rdparty").css("display","none"),jQuery("#subscribe-niteo").css("display","block"))}),jQuery("#csv-generate").click(function(b){b.preventDefault(),jQuery("#csv-download").length&&jQuery("#csv-download").remove(),jQuery.ajax({type:"POST",url:ajaxurl,data:{action:"niteo_export_csv"},success:function(b){b=b.slice(0,-1);var c=a("<a />",{id:"csv-download",href:"data:text/plain;charset=UTF-8,"+encodeURIComponent(b),text:"Download CSV",download:"subscriber_list.csv"});jQuery("#subscribe-niteo").append(c)}})});var g="",h="";g="custom"==jQuery('select[name="niteoCS_font_headings"] option:selected').val()?e(f(jQuery("#niteoCS_font_headings_custom").val())):jQuery('select[name="niteoCS_font_headings"] option:selected').val(),h="custom"==jQuery('select[name="niteoCS_font_content"] option:selected').val()?e(f(jQuery("#niteoCS_font_content_custom").val())):jQuery('select[name="niteoCS_font_content"] option:selected').val(),WebFont.load({google:{families:[e(f(g)),e(f(h))]},active:function(){a("#heading-example").css("font-family",g),a("#content-example").css("font-family",h)}}),jQuery('select[name="niteoCS_font_headings"]').on("change",function(){niteoCS_font_headings=jQuery('select[name="niteoCS_font_headings"] option:selected').val(),"custom"==niteoCS_font_headings?(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:[e(f(jQuery("#niteoCS_font_headings_custom").val()))]},active:function(){a("#heading-example").css("font-family",jQuery("#niteoCS_font_headings_custom").val())}})},1e3))})):(jQuery("#custom_headings_font").css("display","none"),WebFont.load({google:{families:[niteoCS_font_headings]},active:function(){a("#heading-example").css("font-family",niteoCS_font_headings||"")}}))}),jQuery('select[name="niteoCS_font_content"]').on("change",function(){niteoCS_font_content=jQuery('select[name="niteoCS_font_content"] option:selected').val(),"custom"==niteoCS_font_content?(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:[e(f(jQuery("#niteoCS_font_content_custom").val()))]},active:function(){a("#content-example").css("font-family",jQuery("#niteoCS_font_content_custom").val())}})},1e3))})):(jQuery("#custom_content_font").css("display","none"),WebFont.load({google:{families:[niteoCS_font_content]},active:function(){a("#content-example").css("font-family",niteoCS_font_content||"")}}))});var i=function(b,c,d){var e=a("#niteoCS_socialmedia").attr("value");e=a.parseJSON(e),a.each(e,function(a,e){e.name==b&&(e[c]=d)}),a("#niteoCS_socialmedia").attr("value",JSON.stringify(e))},j=a(".social-inputs"),k=function(b,c){var d=j.find('input[type="text"]');c.item.index();d.each(function(b,c){var d=a(c).data("name");i(d,"order",b)})};j.sortable({stop:k}),j.on("sortchange",k),function(a){a.fn.toggleDisabled=function(){return this.each(function(){var c,b=a(this),d=b.data("name");b.attr("disabled")?(b.prop("disabled",!1),c="1"):(b.prop("disabled",!0),c="0"),i(d,"active",c)})}}(jQuery),jQuery('.social-inputs input[type="text"]').focusout(function(){var a=jQuery(this).data("name"),b=jQuery(this).attr("value");i(a,"url",b)}),jQuery('.social-inputs input[type="checkbox"]').click(function(b){a(this).siblings('input[type="text"]').toggleDisabled()}),jQuery(".social-media i").click(function(){var a=jQuery(this).data("name");jQuery(this).toggleClass("active"),jQuery(".social-inputs li."+a).toggleClass("active"),jQuery(this).hasClass("active")?i(a,"hidden","0"):i(a,"hidden","1")})});
|
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.4.
|
7 |
Author: NiteoThemes
|
8 |
Author URI: http://www.niteo.cz
|
9 |
Text Domain: cmp
|
@@ -14,6 +14,8 @@
|
|
14 |
|
15 |
class niteo_cmp {
|
16 |
var $installedFolder = '';
|
|
|
|
|
17 |
function __construct() {
|
18 |
$this->installedFolder = basename(dirname(__FILE__));
|
19 |
}
|
@@ -23,26 +25,28 @@ class niteo_cmp {
|
|
23 |
}
|
24 |
|
25 |
function cmp_adminInit() {
|
26 |
-
wp_register_script('cmp_mainjs', plugins_url().'/'.$this->installedFolder.'/comingsoon.min.js','',
|
27 |
wp_register_style( 'font_awesome', '//maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css' );
|
28 |
-
wp_register_style( 'cmp_style', plugins_url().'/'.$this->installedFolder.'/cs_style.css','',
|
29 |
wp_register_script( 'webfont', 'https://ajax.googleapis.com/ajax/libs/webfont/1.5.18/webfont.js', array(), false, true);
|
30 |
}
|
31 |
|
32 |
function cmp_add_admin_style() {
|
33 |
-
wp_register_style( 'cmp_admin_style', plugins_url().'/'.$this->installedFolder.'/cs_admin.css','',
|
34 |
wp_enqueue_style( 'cmp_admin_style' );
|
35 |
}
|
36 |
|
37 |
function cmp_enqueueScripts() {
|
38 |
// enqueue required admin scripts and styles
|
39 |
wp_enqueue_style('cmp_style');
|
40 |
-
wp_enqueue_script('cmp_mainjs');
|
41 |
-
wp_enqueue_media();
|
42 |
-
wp_enqueue_script( 'wp-color-picker');
|
43 |
wp_enqueue_style( 'wp-color-picker');
|
44 |
wp_enqueue_style('font_awesome');
|
45 |
wp_enqueue_script( 'webfont' );
|
|
|
|
|
|
|
|
|
|
|
46 |
}
|
47 |
|
48 |
|
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.4.1
|
7 |
Author: NiteoThemes
|
8 |
Author URI: http://www.niteo.cz
|
9 |
Text Domain: cmp
|
14 |
|
15 |
class niteo_cmp {
|
16 |
var $installedFolder = '';
|
17 |
+
private static $version = '1.4.1';
|
18 |
+
|
19 |
function __construct() {
|
20 |
$this->installedFolder = basename(dirname(__FILE__));
|
21 |
}
|
25 |
}
|
26 |
|
27 |
function cmp_adminInit() {
|
28 |
+
wp_register_script('cmp_mainjs', plugins_url().'/'.$this->installedFolder.'/comingsoon.min.js','webfont',self::$version);
|
29 |
wp_register_style( 'font_awesome', '//maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css' );
|
30 |
+
wp_register_style( 'cmp_style', plugins_url().'/'.$this->installedFolder.'/cs_style.css','',self::$version);
|
31 |
wp_register_script( 'webfont', 'https://ajax.googleapis.com/ajax/libs/webfont/1.5.18/webfont.js', array(), false, true);
|
32 |
}
|
33 |
|
34 |
function cmp_add_admin_style() {
|
35 |
+
wp_register_style( 'cmp_admin_style', plugins_url().'/'.$this->installedFolder.'/cs_admin.css','',self::$version);
|
36 |
wp_enqueue_style( 'cmp_admin_style' );
|
37 |
}
|
38 |
|
39 |
function cmp_enqueueScripts() {
|
40 |
// enqueue required admin scripts and styles
|
41 |
wp_enqueue_style('cmp_style');
|
|
|
|
|
|
|
42 |
wp_enqueue_style( 'wp-color-picker');
|
43 |
wp_enqueue_style('font_awesome');
|
44 |
wp_enqueue_script( 'webfont' );
|
45 |
+
wp_enqueue_script('cmp_mainjs');
|
46 |
+
wp_enqueue_media();
|
47 |
+
wp_enqueue_script( 'wp-color-picker');
|
48 |
+
|
49 |
+
|
50 |
}
|
51 |
|
52 |
|
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.7.2
|
7 |
-
Stable tag: 1.4.
|
8 |
License: GPLv2 or later
|
9 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -100,11 +100,15 @@ Free plugin to create and customize your own Coming Soon or Maintenance landing
|
|
100 |
|
101 |
|
102 |
== Changelog ==
|
|
|
|
|
|
|
|
|
103 |
<h4>1.4.0</h4>
|
104 |
<ul>
|
105 |
-
<li>New Feature: It is now possible to drag&drop the social menu icons position and enable/disable
|
106 |
<li>New Feature: Fifty theme can have two position of social icons: Footer and Body content.</li>
|
107 |
-
<li>
|
108 |
</ul>
|
109 |
<h4>1.3.0</h4>
|
110 |
<ul>
|
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.7.2
|
7 |
+
Stable tag: 1.4.1
|
8 |
License: GPLv2 or later
|
9 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
100 |
|
101 |
|
102 |
== Changelog ==
|
103 |
+
<h4>1.4.1</h4>
|
104 |
+
<ul>
|
105 |
+
<li>Resolved bug : Not possible to save Social profiles URLs after release of update 1.4.0.</li>
|
106 |
+
</ul>
|
107 |
<h4>1.4.0</h4>
|
108 |
<ul>
|
109 |
+
<li>New Feature: It is now possible to drag&drop the social menu icons position and enable/disable them.</li>
|
110 |
<li>New Feature: Fifty theme can have two position of social icons: Footer and Body content.</li>
|
111 |
+
<li>Resolved bug : Specific Theme options are now always correctly displayed right after Theme selection change.</li>
|
112 |
</ul>
|
113 |
<h4>1.3.0</h4>
|
114 |
<ul>
|