Version Description
- Feature to preview template without going live
- Feature to reset template options to defaults
- Fix font mismatch on Internet Explorer
Download this release
Release Info
Developer | ceylonsystems |
Plugin | IgniteUp – Coming Soon and Maintenance Mode |
Version | 1.2 |
Comparing to | |
See all releases |
Code changes from version 1.1.1 to 1.2
- igniteup.php +2 -3
- includes/class-coming-soon-creator.php +23 -13
- includes/css/font-biryani.css +5 -5
- includes/css/font-montserrat.css +1 -1
- includes/css/font-opensans.css +1 -1
- includes/css/main.css +16 -10
- includes/fonts/biryani-light.ttf +0 -0
- includes/fonts/biryani/e2qWBhmcwG_j1k44Tm68dRsxEYwM7FgeyaSgU71cLG0.woff +0 -0
- includes/fonts/biryani/e2qWBhmcwG_j1k44Tm68dfk_vArhqVIZ0nv9q090hN8.woff2 +0 -0
- includes/fonts/montserrat-regular.ttf +0 -0
- includes/fonts/montserrat/zhcz-_WihjSQC0oHJ9TCYBsxEYwM7FgeyaSgU71cLG0.woff +0 -0
- includes/fonts/montserrat/zhcz-_WihjSQC0oHJ9TCYPk_vArhqVIZ0nv9q090hN8.woff2 +0 -0
- includes/fonts/opensans-light.ttf +0 -0
- includes/fonts/opensans/DXI1ORHCpsQm3Vp6mXoaTXhCUOGz7vYGh680lGh-uXM.woff +0 -0
- includes/fonts/opensans/DXI1ORHCpsQm3Vp6mXoaTegdm0LZdjqr5-oayXSOefg.woff2 +0 -0
- includes/js/main.js +51 -16
- includes/templates/believe/css/main.css +4 -5
- includes/templates/launcher/launcher.php +14 -8
- includes/templates/offline/css/main.css +1 -1
- includes/views/temp-template-options.php +16 -10
- readme.txt +6 -1
igniteup.php
CHANGED
@@ -1,10 +1,9 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
/*
|
4 |
Plugin Name: IgniteUp
|
5 |
Plugin URI: http://plugins.ceylonsystems.com
|
6 |
Description: IgniteUp is a powerful plugin which allows you to keep your site on launchpad till ignite-up and to build amazing coming soon pages.
|
7 |
-
Version: 1.
|
8 |
Author: Ceylon Systems
|
9 |
Author URI: http://ceylonsystems.com
|
10 |
License: GPLv2 or later
|
1 |
+
<?php
|
|
|
2 |
/*
|
3 |
Plugin Name: IgniteUp
|
4 |
Plugin URI: http://plugins.ceylonsystems.com
|
5 |
Description: IgniteUp is a powerful plugin which allows you to keep your site on launchpad till ignite-up and to build amazing coming soon pages.
|
6 |
+
Version: 1.2
|
7 |
Author: Ceylon Systems
|
8 |
Author URI: http://ceylonsystems.com
|
9 |
License: GPLv2 or later
|
includes/class-coming-soon-creator.php
CHANGED
@@ -62,10 +62,18 @@ class CSComingSoonCreator {
|
|
62 |
add_submenu_page('cscs_templates', 'Options', __('Options', CSCS_TEXT_DOMAIN), 'manage_options', 'cscs_options', array('CSAdminOptions', 'optionsPage'));
|
63 |
}
|
64 |
|
65 |
-
|
|
|
|
|
66 |
if (!$this->checkIfEnabled())
|
67 |
-
return;
|
68 |
if ($this->checkForSkipping())
|
|
|
|
|
|
|
|
|
|
|
|
|
69 |
return;
|
70 |
|
71 |
do_action('cscs_theme_scripts_' . CSCS_DEFAULT_TEMPLATE);
|
@@ -73,13 +81,13 @@ class CSComingSoonCreator {
|
|
73 |
}
|
74 |
|
75 |
public function dequeScripts() {
|
76 |
-
if (!$this->
|
77 |
-
return;
|
78 |
-
if ($this->checkForSkipping())
|
79 |
return;
|
80 |
|
81 |
$skip_scr = array('colors', 'wp-admin', 'login', 'install', 'wp-color-picker', 'customize-controls', 'customize-widgets', 'press-this', 'ie', 'admin-bar');
|
82 |
global $wp_styles;
|
|
|
|
|
83 |
$registered_array = $wp_styles->registered;
|
84 |
if (!is_array($registered_array))
|
85 |
$registered_array = array();
|
@@ -92,9 +100,7 @@ class CSComingSoonCreator {
|
|
92 |
}
|
93 |
|
94 |
public function myThemeRedirect($original_template) {
|
95 |
-
if (!$this->
|
96 |
-
return $original_template;
|
97 |
-
if ($this->checkForSkipping())
|
98 |
return $original_template;
|
99 |
|
100 |
global $wp;
|
@@ -105,14 +111,18 @@ class CSComingSoonCreator {
|
|
105 |
}
|
106 |
|
107 |
public function loadAdminScripts() {
|
108 |
-
wp_enqueue_style('
|
109 |
wp_enqueue_style('wp-color-picker');
|
110 |
wp_enqueue_script('jquery');
|
111 |
-
wp_register_script('
|
112 |
-
wp_enqueue_script('
|
113 |
-
wp_enqueue_script('jquery-ui-datepicker');
|
114 |
-
wp_enqueue_style('jquery-style', plugin_dir_url(CSCS_FILE) . 'includes/css/jquery-ui.css');
|
115 |
wp_enqueue_style('rockyton-icon', plugin_dir_url(CSCS_FILE) . 'includes/css/icons/styles.css');
|
|
|
|
|
|
|
|
|
|
|
|
|
116 |
}
|
117 |
|
118 |
public static function getDefaultTemplateList() {
|
62 |
add_submenu_page('cscs_templates', 'Options', __('Options', CSCS_TEXT_DOMAIN), 'manage_options', 'cscs_options', array('CSAdminOptions', 'optionsPage'));
|
63 |
}
|
64 |
|
65 |
+
private function greenToPublishTheme() {
|
66 |
+
if (isset($_REQUEST['igniteup']) && $_REQUEST['igniteup'] == 'force')
|
67 |
+
return TRUE;
|
68 |
if (!$this->checkIfEnabled())
|
69 |
+
return FALSE;
|
70 |
if ($this->checkForSkipping())
|
71 |
+
return FALSE;
|
72 |
+
return TRUE;
|
73 |
+
}
|
74 |
+
|
75 |
+
public function loadThemeScripts() {
|
76 |
+
if (!$this->greenToPublishTheme())
|
77 |
return;
|
78 |
|
79 |
do_action('cscs_theme_scripts_' . CSCS_DEFAULT_TEMPLATE);
|
81 |
}
|
82 |
|
83 |
public function dequeScripts() {
|
84 |
+
if (!$this->greenToPublishTheme())
|
|
|
|
|
85 |
return;
|
86 |
|
87 |
$skip_scr = array('colors', 'wp-admin', 'login', 'install', 'wp-color-picker', 'customize-controls', 'customize-widgets', 'press-this', 'ie', 'admin-bar');
|
88 |
global $wp_styles;
|
89 |
+
if (!is_a($wp_styles, 'WP_Styles'))
|
90 |
+
return;
|
91 |
$registered_array = $wp_styles->registered;
|
92 |
if (!is_array($registered_array))
|
93 |
$registered_array = array();
|
100 |
}
|
101 |
|
102 |
public function myThemeRedirect($original_template) {
|
103 |
+
if (!$this->greenToPublishTheme())
|
|
|
|
|
104 |
return $original_template;
|
105 |
|
106 |
global $wp;
|
111 |
}
|
112 |
|
113 |
public function loadAdminScripts() {
|
114 |
+
wp_enqueue_style('igniteup', plugin_dir_url(CSCS_FILE) . 'includes/css/main.css');
|
115 |
wp_enqueue_style('wp-color-picker');
|
116 |
wp_enqueue_script('jquery');
|
117 |
+
wp_register_script('igniteup', plugin_dir_url(CSCS_FILE) . 'includes/js/main.js', array('jquery', 'wp-color-picker'), false, true);
|
118 |
+
wp_enqueue_script('igniteup');
|
|
|
|
|
119 |
wp_enqueue_style('rockyton-icon', plugin_dir_url(CSCS_FILE) . 'includes/css/icons/styles.css');
|
120 |
+
|
121 |
+
if (isset($_GET['page']) && $_GET['page'] == 'cscs_options') {
|
122 |
+
wp_enqueue_script('jquery-form', false, array('jquery'));
|
123 |
+
wp_enqueue_script('jquery-ui-datepicker');
|
124 |
+
wp_enqueue_style('jquery-style', plugin_dir_url(CSCS_FILE) . 'includes/css/jquery-ui.css');
|
125 |
+
}
|
126 |
}
|
127 |
|
128 |
public static function getDefaultTemplateList() {
|
includes/css/font-biryani.css
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
@font-face {
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
}
|
1 |
@font-face {
|
2 |
+
font-family: 'Biryani';
|
3 |
+
font-style: normal;
|
4 |
+
font-weight: 300;
|
5 |
+
src: local('Biryani Light'), local('Biryani-Light'), url(../fonts/biryani/e2qWBhmcwG_j1k44Tm68dfk_vArhqVIZ0nv9q090hN8.woff2) format('woff2'), url(../fonts/biryani/e2qWBhmcwG_j1k44Tm68dRsxEYwM7FgeyaSgU71cLG0.woff) format('woff');
|
6 |
+
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215, U+E0FF, U+EFFD, U+F000;
|
7 |
}
|
includes/css/font-montserrat.css
CHANGED
@@ -2,6 +2,6 @@
|
|
2 |
font-family: 'Montserrat';
|
3 |
font-style: normal;
|
4 |
font-weight: 400;
|
5 |
-
src: local('Montserrat-Regular'), url(../fonts/montserrat-
|
6 |
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215, U+E0FF, U+EFFD, U+F000;
|
7 |
}
|
2 |
font-family: 'Montserrat';
|
3 |
font-style: normal;
|
4 |
font-weight: 400;
|
5 |
+
src: local('Montserrat-Regular'), url(../fonts/montserrat/zhcz-_WihjSQC0oHJ9TCYPk_vArhqVIZ0nv9q090hN8.woff2) format('woff2'), url(../fonts/montserrat/zhcz-_WihjSQC0oHJ9TCYBsxEYwM7FgeyaSgU71cLG0.woff) format('woff');
|
6 |
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215, U+E0FF, U+EFFD, U+F000;
|
7 |
}
|
includes/css/font-opensans.css
CHANGED
@@ -2,6 +2,6 @@
|
|
2 |
font-family: 'Open Sans';
|
3 |
font-style: normal;
|
4 |
font-weight: 300;
|
5 |
-
src: local('Open Sans Light'), local('OpenSans-Light'), url(../fonts/opensans-
|
6 |
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215, U+E0FF, U+EFFD, U+F000;
|
7 |
}
|
2 |
font-family: 'Open Sans';
|
3 |
font-style: normal;
|
4 |
font-weight: 300;
|
5 |
+
src: local('Open Sans Light'), local('OpenSans-Light'), url(../fonts/opensans/DXI1ORHCpsQm3Vp6mXoaTegdm0LZdjqr5-oayXSOefg.woff2) format('woff2'), url(../fonts/opensans/DXI1ORHCpsQm3Vp6mXoaTXhCUOGz7vYGh680lGh-uXM.woff) format('woff');
|
6 |
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215, U+E0FF, U+EFFD, U+F000;
|
7 |
}
|
includes/css/main.css
CHANGED
@@ -1,21 +1,27 @@
|
|
1 |
#cscs-templates{margin-top: 20px;}
|
2 |
-
|
3 |
-
.template-box:
|
4 |
-
.template-box
|
5 |
-
.template-box
|
6 |
-
.template-box .template-
|
7 |
-
.template-box .template-footer
|
8 |
-
.template-box .template-footer .button-
|
9 |
-
.template-box .template-footer
|
|
|
|
|
10 |
.cscs_message{padding: 20px !important; margin: 5px 0 15px;background: #fff; border-left: 4px solid #7ad03a; -webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,.1); box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);}
|
11 |
.cscs-nav{border-bottom: 1px solid #ccc;padding-bottom: 0;padding-left: 10px;}
|
12 |
.cscs-nav-tabs{border: 1px solid #ccc;border-bottom: none;background: #e4e4e4;color: #555;display: inline-block;text-decoration: none;margin: -4px 4px -1px 0;padding: 6px 10px;font-weight: 700;font-size: 15px;line-height: 24px;}
|
13 |
.cscs-nav-tabs:hover{background-color: #fff;color: #464646;}
|
14 |
.cscs-nav-tabs.active, .cscs-nav-tabs.active:hover{border-bottom: 1px solid #f1f1f1;background: #f1f1f1;color: #000;}
|
15 |
.clearfix{clear:both;}
|
|
|
16 |
#toplevel_page_cscs_templates .wp-menu-image:before {font-family: "rockyton" !important;content: 'm' !important;}
|
17 |
|
|
|
|
|
|
|
18 |
@media screen and (max-width:767px){
|
19 |
-
.template-box{width: 80%;position: relative; margin: 0 auto 20px auto; float: inherit;}
|
20 |
-
.template-box:nth-child(3n) {margin-right: auto;}
|
21 |
}
|
1 |
#cscs-templates{margin-top: 20px;}
|
2 |
+
|
3 |
+
#cscs-templates .template-box{width: 30.6%;float: left;position: relative; margin: 0 4% 4% 0;}
|
4 |
+
#cscs-templates .template-box:nth-child(3n) {margin-right: 0;}
|
5 |
+
#cscs-templates .template-box img{width: 100%;}
|
6 |
+
#cscs-templates .template-box .template-title{position: absolute; top:0; left:0; right: 0; background-color: rgba(0, 0, 0, 0.38); padding: 10px;color: #fff;font-size: 15px;}
|
7 |
+
#cscs-templates .template-box .template-footer{position: absolute; bottom:0; left:0; right: 0; background-color: #23282d ;padding: 10px;color: #fff;font-size: 15px;text-align: right;}
|
8 |
+
#cscs-templates .template-box .template-footer .button-customize, .template-box .template-footer .button-activate{float:right;}
|
9 |
+
#cscs-templates .template-box .template-footer .button-delete{float:left;}
|
10 |
+
#cscs-templates .template-box .template-footer form{display: inline;}
|
11 |
+
|
12 |
.cscs_message{padding: 20px !important; margin: 5px 0 15px;background: #fff; border-left: 4px solid #7ad03a; -webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,.1); box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);}
|
13 |
.cscs-nav{border-bottom: 1px solid #ccc;padding-bottom: 0;padding-left: 10px;}
|
14 |
.cscs-nav-tabs{border: 1px solid #ccc;border-bottom: none;background: #e4e4e4;color: #555;display: inline-block;text-decoration: none;margin: -4px 4px -1px 0;padding: 6px 10px;font-weight: 700;font-size: 15px;line-height: 24px;}
|
15 |
.cscs-nav-tabs:hover{background-color: #fff;color: #464646;}
|
16 |
.cscs-nav-tabs.active, .cscs-nav-tabs.active:hover{border-bottom: 1px solid #f1f1f1;background: #f1f1f1;color: #000;}
|
17 |
.clearfix{clear:both;}
|
18 |
+
|
19 |
#toplevel_page_cscs_templates .wp-menu-image:before {font-family: "rockyton" !important;content: 'm' !important;}
|
20 |
|
21 |
+
body.igniteup_page_cscs_options #saveResult{margin-left: 20px;}
|
22 |
+
body.igniteup_page_cscs_options .reset-igniteup{margin-left: 0;}
|
23 |
+
|
24 |
@media screen and (max-width:767px){
|
25 |
+
#cscs-templates .template-box{width: 80%;position: relative; margin: 0 auto 20px auto; float: inherit;}
|
26 |
+
#cscs-templates .template-box:nth-child(3n) {margin-right: auto;}
|
27 |
}
|
includes/fonts/biryani-light.ttf
DELETED
Binary file
|
includes/fonts/biryani/e2qWBhmcwG_j1k44Tm68dRsxEYwM7FgeyaSgU71cLG0.woff
ADDED
Binary file
|
includes/fonts/biryani/e2qWBhmcwG_j1k44Tm68dfk_vArhqVIZ0nv9q090hN8.woff2
ADDED
Binary file
|
includes/fonts/montserrat-regular.ttf
DELETED
Binary file
|
includes/fonts/montserrat/zhcz-_WihjSQC0oHJ9TCYBsxEYwM7FgeyaSgU71cLG0.woff
ADDED
Binary file
|
includes/fonts/montserrat/zhcz-_WihjSQC0oHJ9TCYPk_vArhqVIZ0nv9q090hN8.woff2
ADDED
Binary file
|
includes/fonts/opensans-light.ttf
DELETED
Binary file
|
includes/fonts/opensans/DXI1ORHCpsQm3Vp6mXoaTXhCUOGz7vYGh680lGh-uXM.woff
ADDED
Binary file
|
includes/fonts/opensans/DXI1ORHCpsQm3Vp6mXoaTegdm0LZdjqr5-oayXSOefg.woff2
ADDED
Binary file
|
includes/js/main.js
CHANGED
@@ -23,24 +23,59 @@ jQuery(document).ready(function ($) {
|
|
23 |
jQuery('.add_media').on('click', function () {
|
24 |
_custom_media = false;
|
25 |
});
|
26 |
-
|
27 |
jQuery('.cs-color-picker').wpColorPicker();
|
28 |
jQuery('.cs-date-picker').datepicker({
|
29 |
-
dateFormat
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
30 |
});
|
31 |
});
|
32 |
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
jQuery(document).on('click','.downbcc',function(){
|
44 |
-
window.open("index.php?rockython_createbcc=mailsubs&sub=true", '_blank');
|
45 |
-
});
|
46 |
-
|
23 |
jQuery('.add_media').on('click', function () {
|
24 |
_custom_media = false;
|
25 |
});
|
26 |
+
|
27 |
jQuery('.cs-color-picker').wpColorPicker();
|
28 |
jQuery('.cs-date-picker').datepicker({
|
29 |
+
dateFormat: 'mm/dd/yy'
|
30 |
+
});
|
31 |
+
});
|
32 |
+
|
33 |
+
/*
|
34 |
+
*
|
35 |
+
* Create and let user to download subscriber list CSV.
|
36 |
+
*
|
37 |
+
*/
|
38 |
+
|
39 |
+
jQuery(document).on('click', '.downcsv', function () {
|
40 |
+
window.open("index.php?rockython_createcsv=mailsubs&sub=true", '_blank');
|
41 |
+
});
|
42 |
+
|
43 |
+
jQuery(document).on('click', '.downbcc', function () {
|
44 |
+
window.open("index.php?rockython_createbcc=mailsubs&sub=true", '_blank');
|
45 |
+
});
|
46 |
+
|
47 |
+
|
48 |
+
/*
|
49 |
+
*
|
50 |
+
* Template options saving
|
51 |
+
*
|
52 |
+
*/
|
53 |
+
|
54 |
+
jQuery(document).ready(function () {
|
55 |
+
jQuery('body.igniteup_page_cscs_options .preview-igniteup').on('click', function () {
|
56 |
+
jQuery('body.igniteup_page_cscs_options .preview-igniteup, body.igniteup_page_cscs_options .submit').attr('disabled', 'disabled');
|
57 |
+
jQuery('#saveResult').html("<span id='saveMessage' class='successModal'></span>");
|
58 |
+
jQuery('#saveMessage').append("<span>Saving . . .</span>").show();
|
59 |
+
jQuery('#igniteup-template-options').ajaxSubmit({
|
60 |
+
success: function () {
|
61 |
+
jQuery('#saveMessage').html("<span>" + jQuery('#saveResult').data('text') + "</span>").show();
|
62 |
+
jQuery('body.igniteup_page_cscs_options .preview-igniteup, body.igniteup_page_cscs_options .submit').removeAttr('disabled');
|
63 |
+
prwindow = window.open(jQuery('body.igniteup_page_cscs_options .preview-igniteup').data('forward'), 'igniteup').focus();
|
64 |
+
},
|
65 |
+
timeout: 5000
|
66 |
+
});
|
67 |
+
setTimeout("jQuery('#saveMessage').hide('slow');", 5000);
|
68 |
+
return false;
|
69 |
});
|
70 |
});
|
71 |
|
72 |
+
jQuery(document).on('click', 'body.igniteup_page_cscs_options .reset-igniteup', function (e) {
|
73 |
+
if(!confirm("Are you sure to reset template options to defaults?"))
|
74 |
+
return false;
|
75 |
+
jQuery('.reset-supported').each(function () {
|
76 |
+
var defval_ = jQuery(this).data('defval');
|
77 |
+
jQuery(this).val(defval_);
|
78 |
+
});
|
79 |
+
jQuery('#igniteup-template-options').submit();
|
80 |
+
e.preventDefault();
|
81 |
+
});
|
|
|
|
|
|
|
|
includes/templates/believe/css/main.css
CHANGED
@@ -1,4 +1,3 @@
|
|
1 |
-
|
2 |
body{
|
3 |
background-color: #19bd9b;
|
4 |
width: 100%;
|
@@ -21,18 +20,18 @@ body{
|
|
21 |
font-size:32pt ;
|
22 |
font-weight: 300;
|
23 |
text-transform: uppercase;
|
24 |
-
font-family:
|
25 |
margin-bottom: -28px;
|
26 |
}
|
27 |
.title-bottom{
|
28 |
font-size: 47pt;
|
29 |
font-weight: bold;
|
30 |
text-transform: uppercase;
|
31 |
-
font-family:
|
32 |
}
|
33 |
.paragraph{
|
34 |
font-size:20pt ;
|
35 |
-
font-family:
|
36 |
font-weight: 300;
|
37 |
}
|
38 |
.social>ul>li{
|
@@ -55,7 +54,7 @@ body{
|
|
55 |
}
|
56 |
#powered-by {
|
57 |
margin-top: 50px;
|
58 |
-
font-family:
|
59 |
font-weight: 300;
|
60 |
font-size: 12px;
|
61 |
}
|
|
|
1 |
body{
|
2 |
background-color: #19bd9b;
|
3 |
width: 100%;
|
20 |
font-size:32pt ;
|
21 |
font-weight: 300;
|
22 |
text-transform: uppercase;
|
23 |
+
font-family: 'Biryani', sans-serif;
|
24 |
margin-bottom: -28px;
|
25 |
}
|
26 |
.title-bottom{
|
27 |
font-size: 47pt;
|
28 |
font-weight: bold;
|
29 |
text-transform: uppercase;
|
30 |
+
font-family: 'Montserrat', sans-serif;
|
31 |
}
|
32 |
.paragraph{
|
33 |
font-size:20pt ;
|
34 |
+
font-family: 'Biryani', sans-serif;
|
35 |
font-weight: 300;
|
36 |
}
|
37 |
.social>ul>li{
|
54 |
}
|
55 |
#powered-by {
|
56 |
margin-top: 50px;
|
57 |
+
font-family: 'Biryani', sans-serif;
|
58 |
font-weight: 300;
|
59 |
font-size: 12px;
|
60 |
}
|
includes/templates/launcher/launcher.php
CHANGED
@@ -142,7 +142,7 @@
|
|
142 |
|
143 |
</div>
|
144 |
<script type="text/javascript">
|
145 |
-
|
146 |
$countdown = "<?php
|
147 |
echo $the_cs_template_options['launch_date'];
|
148 |
echo ' ';
|
@@ -214,13 +214,15 @@
|
|
214 |
jQuery('#secs').countdown($countdown).on('finish.countdown', function () {
|
215 |
jQuery('#countdown').hide();
|
216 |
jQuery(".main-container").css('margin-top', '120px');
|
|
|
|
|
217 |
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
-
|
224 |
});
|
225 |
<?php endif; ?>
|
226 |
});
|
@@ -265,7 +267,11 @@
|
|
265 |
$('#rocket').hover(function () {
|
266 |
$(this).animate({'margin-top': "-=50"});
|
267 |
}, function () {
|
268 |
-
|
|
|
|
|
|
|
|
|
269 |
});
|
270 |
});
|
271 |
</script>
|
142 |
|
143 |
</div>
|
144 |
<script type="text/javascript">
|
145 |
+
var count_completed = false;
|
146 |
$countdown = "<?php
|
147 |
echo $the_cs_template_options['launch_date'];
|
148 |
echo ' ';
|
214 |
jQuery('#secs').countdown($countdown).on('finish.countdown', function () {
|
215 |
jQuery('#countdown').hide();
|
216 |
jQuery(".main-container").css('margin-top', '120px');
|
217 |
+
jQuery("#rocket").css('margin-top', '-=120');
|
218 |
+
count_completed = true;
|
219 |
|
220 |
+
jQuery('#rocket').addClass('animated bounceOutUp');
|
221 |
+
setTimeout(function () {
|
222 |
+
jQuery("#rocket").css('margin-top', '-75px');
|
223 |
+
jQuery('#rocket').removeClass('bounceOutUp');
|
224 |
+
jQuery('#rocket').addClass('bounceInUp');
|
225 |
+
}, 3000);
|
226 |
});
|
227 |
<?php endif; ?>
|
228 |
});
|
267 |
$('#rocket').hover(function () {
|
268 |
$(this).animate({'margin-top': "-=50"});
|
269 |
}, function () {
|
270 |
+
if (count_completed) {
|
271 |
+
$(this).animate({'margin-top': "30px"});
|
272 |
+
} else {
|
273 |
+
$(this).animate({'margin-top': "150px"});
|
274 |
+
}
|
275 |
});
|
276 |
});
|
277 |
</script>
|
includes/templates/offline/css/main.css
CHANGED
@@ -39,7 +39,7 @@ body{
|
|
39 |
}
|
40 |
@media(min-width:768px){
|
41 |
.main-container{
|
42 |
-
margin-top:
|
43 |
}
|
44 |
}
|
45 |
@media(max-width:768px){
|
39 |
}
|
40 |
@media(min-width:768px){
|
41 |
.main-container{
|
42 |
+
margin-top: 120px;
|
43 |
}
|
44 |
}
|
45 |
@media(max-width:768px){
|
includes/views/temp-template-options.php
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
<form action="options.php" method="post">
|
2 |
<?php settings_fields('cscs_temp_options'); ?>
|
3 |
<?php
|
4 |
do_settings_sections('cscs_temp_options');
|
@@ -22,7 +22,8 @@
|
|
22 |
foreach ($temp_options as $key => $field) {
|
23 |
$option_key = CSCS_TEMPLATEOPTION_PREFIX . CSCS_DEFAULT_TEMPLATE . '_' . $key;
|
24 |
$option_id = CSCS_DEFAULT_TEMPLATE . '_' . $key;
|
25 |
-
$
|
|
|
26 |
?>
|
27 |
<tr>
|
28 |
<th>
|
@@ -32,24 +33,24 @@
|
|
32 |
<?php
|
33 |
switch ($field['type']) {
|
34 |
case 'text':
|
35 |
-
echo "<input type='text' class='regular-text' id='$option_id' value='$saved_value' name='$option_key' placeholder='" . (isset($field['placeholder']) ? $field['placeholder'] : '' ) . "'>";
|
36 |
break;
|
37 |
case 'email':
|
38 |
-
echo "<input type='email' class='regular-text' id='$option_id' value='$saved_value' name='$option_key' placeholder='" . (isset($field['placeholder']) ? $field['placeholder'] : '' ) . "'>";
|
39 |
break;
|
40 |
case 'color-picker':
|
41 |
-
echo "<input type='text' class='cs-color-picker' id='$option_id' value='$saved_value' name='$option_key' placeholder='" . (isset($field['placeholder']) ? $field['placeholder'] : '' ) . "'>";
|
42 |
break;
|
43 |
case 'date':
|
44 |
-
echo "<input type='text' class='cs-date-picker regular-text' id='$option_id' value='$saved_value' name='$option_key' placeholder='" . (isset($field['placeholder']) ? $field['placeholder'] : '' ) . "'>";
|
45 |
break;
|
46 |
case 'textarea':
|
47 |
-
echo "<textarea rows='5' cols='46' class='regular-text' id='$option_id' name='$option_key' placeholder='" . (isset($field['placeholder']) ? $field['placeholder'] : '' ) . "'>$saved_value</textarea>";
|
48 |
break;
|
49 |
case 'image':
|
50 |
?>
|
51 |
<div class="uploader">
|
52 |
-
<input id="<?php echo $option_id; ?>" class="regular-text" name="<?php echo $option_key; ?>" type="text" value="<?php echo $saved_value; ?>" />
|
53 |
<input id="<?php echo $option_id; ?>_button" class="button cscs_uploadbutton" data-input="<?php echo $option_id; ?>" type="submit" value="Upload" />
|
54 |
</div>
|
55 |
<?php
|
@@ -72,7 +73,12 @@
|
|
72 |
?>
|
73 |
|
74 |
</table>
|
75 |
-
<p
|
76 |
-
<
|
77 |
</p>
|
|
|
|
|
|
|
|
|
|
|
78 |
</form>
|
1 |
+
<form action="options.php" method="post" id="igniteup-template-options">
|
2 |
<?php settings_fields('cscs_temp_options'); ?>
|
3 |
<?php
|
4 |
do_settings_sections('cscs_temp_options');
|
22 |
foreach ($temp_options as $key => $field) {
|
23 |
$option_key = CSCS_TEMPLATEOPTION_PREFIX . CSCS_DEFAULT_TEMPLATE . '_' . $key;
|
24 |
$option_id = CSCS_DEFAULT_TEMPLATE . '_' . $key;
|
25 |
+
$def_val = isset($field['def']) ? $field['def'] : '';
|
26 |
+
$saved_value = get_option($option_key, $def_val);
|
27 |
?>
|
28 |
<tr>
|
29 |
<th>
|
33 |
<?php
|
34 |
switch ($field['type']) {
|
35 |
case 'text':
|
36 |
+
echo "<input type='text' class='regular-text reset-supported' id='$option_id' value='$saved_value' name='$option_key' placeholder='" . (isset($field['placeholder']) ? $field['placeholder'] : '' ) . "' data-defval='" . $def_val . "'>";
|
37 |
break;
|
38 |
case 'email':
|
39 |
+
echo "<input type='email' class='regular-text reset-supported' id='$option_id' value='$saved_value' name='$option_key' placeholder='" . (isset($field['placeholder']) ? $field['placeholder'] : '' ) . "' data-defval='" . $def_val . "'>";
|
40 |
break;
|
41 |
case 'color-picker':
|
42 |
+
echo "<input type='text' class='cs-color-picker reset-supported' id='$option_id' value='$saved_value' name='$option_key' placeholder='" . (isset($field['placeholder']) ? $field['placeholder'] : '' ) . "' data-defval='" . $def_val . "'>";
|
43 |
break;
|
44 |
case 'date':
|
45 |
+
echo "<input type='text' class='cs-date-picker regular-text reset-supported' id='$option_id' value='$saved_value' name='$option_key' placeholder='" . (isset($field['placeholder']) ? $field['placeholder'] : '' ) . "' data-defval='" . $def_val . "'>";
|
46 |
break;
|
47 |
case 'textarea':
|
48 |
+
echo "<textarea rows='5' cols='46' class='regular-text reset-supported' id='$option_id' name='$option_key' placeholder='" . (isset($field['placeholder']) ? $field['placeholder'] : '' ) . "' data-defval='" . $def_val . "'>$saved_value</textarea>";
|
49 |
break;
|
50 |
case 'image':
|
51 |
?>
|
52 |
<div class="uploader">
|
53 |
+
<input id="<?php echo $option_id; ?>" class="regular-text reset-supported" name="<?php echo $option_key; ?>" type="text" value="<?php echo $saved_value; ?>" data-defval='<?php echo $def_val; ?>' />
|
54 |
<input id="<?php echo $option_id; ?>_button" class="button cscs_uploadbutton" data-input="<?php echo $option_id; ?>" type="submit" value="Upload" />
|
55 |
</div>
|
56 |
<?php
|
73 |
?>
|
74 |
|
75 |
</table>
|
76 |
+
<p>
|
77 |
+
<a class="reset-igniteup add-new-h2" href="#">Reset to Defaults</a>
|
78 |
</p>
|
79 |
+
<p class="submit">
|
80 |
+
<input type="submit" name="save" class="button button-primary submit" value="Save Changes">
|
81 |
+
<input type="submit" name="preview" class="button preview-igniteup" value="Preview" data-forward="<?php echo esc_url(home_url('/?igniteup=force')); ?>">
|
82 |
+
<span id="saveResult" data-text="<?php echo htmlentities(__('Settings Saved Successfully', 'wp'), ENT_QUOTES); ?>"></span>
|
83 |
+
</p>
|
84 |
</form>
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
|
|
4 |
Tags: coming soon, coming soon page, construction, landing page, launch, launch page, maintenance, maintenance mode, newsletter, subscribe, offline, unavailable, under construction, wordpress coming soon, wordpress maintenance mode, wordpress under construction, igniter
|
5 |
Requires at least: 3.0.1
|
6 |
Tested up to: 4.2.2
|
7 |
-
Stable tag: 1.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -93,6 +93,11 @@ You can post your question / suggestion in the [IgniteUp forums](https://wordpre
|
|
93 |
|
94 |
== Changelog ==
|
95 |
|
|
|
|
|
|
|
|
|
|
|
96 |
= 1.1.1 =
|
97 |
* Fix a bug occurred on network installations
|
98 |
|
4 |
Tags: coming soon, coming soon page, construction, landing page, launch, launch page, maintenance, maintenance mode, newsletter, subscribe, offline, unavailable, under construction, wordpress coming soon, wordpress maintenance mode, wordpress under construction, igniter
|
5 |
Requires at least: 3.0.1
|
6 |
Tested up to: 4.2.2
|
7 |
+
Stable tag: 1.2
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
93 |
|
94 |
== Changelog ==
|
95 |
|
96 |
+
= 1.2 =
|
97 |
+
* Feature to preview template without going live
|
98 |
+
* Feature to reset template options to defaults
|
99 |
+
* Fix font mismatch on Internet Explorer
|
100 |
+
|
101 |
= 1.1.1 =
|
102 |
* Fix a bug occurred on network installations
|
103 |
|