Version Description
- Add support to skip the page for subscriber role as well
- Add feature to use Custom CSS
- Improve preview feature
Download this release
Release Info
Developer | ceylonsystems |
Plugin | IgniteUp – Coming Soon and Maintenance Mode |
Version | 1.2.1 |
Comparing to | |
See all releases |
Code changes from version 1.2 to 1.2.1
- igniteup.php +1 -1
- includes/class-admin-options.php +5 -5
- includes/class-coming-soon-creator.php +5 -3
- includes/js/main.js +11 -4
- includes/views/temp-general-options.php +13 -1
- includes/views/temp-template-options.php +1 -1
- readme.txt +6 -1
igniteup.php
CHANGED
@@ -3,7 +3,7 @@
|
|
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
|
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.1
|
7 |
Author: Ceylon Systems
|
8 |
Author URI: http://ceylonsystems.com
|
9 |
License: GPLv2 or later
|
includes/class-admin-options.php
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
<?php
|
2 |
|
3 |
class CSAdminOptions {
|
4 |
-
|
5 |
-
public static $gener_options = array('enable', 'cs_page_title', 'skipfor','powered_by');
|
6 |
|
7 |
public static function registerGeneralOptions() {
|
8 |
foreach (self::$gener_options as $val) {
|
@@ -27,8 +27,8 @@ class CSAdminOptions {
|
|
27 |
public static function templatePage() {
|
28 |
include 'views/admin-templates.php';
|
29 |
}
|
30 |
-
|
31 |
-
public static function subscribersPage(){
|
32 |
include 'views/admin-subscribers.php';
|
33 |
}
|
34 |
|
@@ -42,7 +42,7 @@ class CSAdminOptions {
|
|
42 |
public static function getDefTemplate() {
|
43 |
$saved_ = get_option(CSCS_DEFTEMP_OPTION, 'launcher');
|
44 |
$file = glob(dirname(__FILE__) . '/templates/' . $saved_ . '/' . $saved_ . '.php');
|
45 |
-
if(count($file) < 1
|
46 |
update_option(CSCS_DEFTEMP_OPTION, 'launcher');
|
47 |
return 'launcher';
|
48 |
}
|
1 |
<?php
|
2 |
|
3 |
class CSAdminOptions {
|
4 |
+
|
5 |
+
public static $gener_options = array('enable', 'cs_page_title', 'skipfor', 'powered_by', 'customcss');
|
6 |
|
7 |
public static function registerGeneralOptions() {
|
8 |
foreach (self::$gener_options as $val) {
|
27 |
public static function templatePage() {
|
28 |
include 'views/admin-templates.php';
|
29 |
}
|
30 |
+
|
31 |
+
public static function subscribersPage() {
|
32 |
include 'views/admin-subscribers.php';
|
33 |
}
|
34 |
|
42 |
public static function getDefTemplate() {
|
43 |
$saved_ = get_option(CSCS_DEFTEMP_OPTION, 'launcher');
|
44 |
$file = glob(dirname(__FILE__) . '/templates/' . $saved_ . '/' . $saved_ . '.php');
|
45 |
+
if (count($file) < 1) {
|
46 |
update_option(CSCS_DEFTEMP_OPTION, 'launcher');
|
47 |
return 'launcher';
|
48 |
}
|
includes/class-coming-soon-creator.php
CHANGED
@@ -78,6 +78,9 @@ class CSComingSoonCreator {
|
|
78 |
|
79 |
do_action('cscs_theme_scripts_' . CSCS_DEFAULT_TEMPLATE);
|
80 |
wp_enqueue_style('igniteup-front', plugin_dir_url(CSCS_FILE) . 'includes/css/front.css');
|
|
|
|
|
|
|
81 |
}
|
82 |
|
83 |
public function dequeScripts() {
|
@@ -111,11 +114,10 @@ class CSComingSoonCreator {
|
|
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 |
-
|
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') {
|
78 |
|
79 |
do_action('cscs_theme_scripts_' . CSCS_DEFAULT_TEMPLATE);
|
80 |
wp_enqueue_style('igniteup-front', plugin_dir_url(CSCS_FILE) . 'includes/css/front.css');
|
81 |
+
|
82 |
+
$custom_css = get_option(CSCS_GENEROPTION_PREFIX . 'customcss', '');
|
83 |
+
wp_add_inline_style('igniteup-front', $custom_css);
|
84 |
}
|
85 |
|
86 |
public function dequeScripts() {
|
114 |
}
|
115 |
|
116 |
public function loadAdminScripts() {
|
117 |
+
wp_enqueue_style('igniteup', plugin_dir_url(CSCS_FILE) . 'includes/css/main.css', array(), '1.2.1');
|
118 |
wp_enqueue_style('wp-color-picker');
|
119 |
wp_enqueue_script('jquery');
|
120 |
+
wp_enqueue_script('igniteup', plugin_dir_url(CSCS_FILE) . 'includes/js/main.js', array('jquery', 'wp-color-picker'), '1.2.1', true);
|
|
|
121 |
wp_enqueue_style('rockyton-icon', plugin_dir_url(CSCS_FILE) . 'includes/css/icons/styles.css');
|
122 |
|
123 |
if (isset($_GET['page']) && $_GET['page'] == 'cscs_options') {
|
includes/js/main.js
CHANGED
@@ -56,15 +56,22 @@ jQuery(document).ready(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 |
-
|
|
|
|
|
64 |
},
|
65 |
-
timeout:
|
66 |
-
|
67 |
-
|
|
|
|
|
|
|
|
|
68 |
return false;
|
69 |
});
|
70 |
});
|
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 |
+
prwindow = window.open('', 'igniteup');
|
60 |
jQuery('#igniteup-template-options').ajaxSubmit({
|
61 |
success: function () {
|
62 |
jQuery('#saveMessage').html("<span>" + jQuery('#saveResult').data('text') + "</span>").show();
|
63 |
jQuery('body.igniteup_page_cscs_options .preview-igniteup, body.igniteup_page_cscs_options .submit').removeAttr('disabled');
|
64 |
+
var theurl = jQuery('body.igniteup_page_cscs_options .preview-igniteup').data('forward');
|
65 |
+
prwindow.location = theurl;
|
66 |
+
setTimeout("jQuery('#saveMessage').hide('slow');", 3000);
|
67 |
},
|
68 |
+
timeout: 10000,
|
69 |
+
error: function(){
|
70 |
+
jQuery('#saveMessage').hide('slow');
|
71 |
+
alert('Saving process reached timeout! Please try again.');
|
72 |
+
jQuery('body.igniteup_page_cscs_options .preview-igniteup, body.igniteup_page_cscs_options .submit').removeAttr('disabled');
|
73 |
+
}
|
74 |
+
});
|
75 |
return false;
|
76 |
});
|
77 |
});
|
includes/views/temp-general-options.php
CHANGED
@@ -28,6 +28,8 @@
|
|
28 |
<label><input type="checkbox" class="skip_checkbox" value="administrator" <?php check_checkboxes(in_array('administrator', $skip_for_array)); ?>><?php _e('Administrators', CSCS_TEXT_DOMAIN); ?></label>
|
29 |
<div class="clearfix"></div>
|
30 |
<label><input type="checkbox" class="skip_checkbox" value="editor" <?php check_checkboxes(in_array('editor', $skip_for_array)); ?>><?php _e('Editors', CSCS_TEXT_DOMAIN); ?></label>
|
|
|
|
|
31 |
<input type="hidden" name="<?php echo CSCS_GENEROPTION_PREFIX . 'skipfor'; ?>" id="skip_for_value" value='<?php echo $skipfor; ?>'>
|
32 |
</td>
|
33 |
</tr>
|
@@ -41,9 +43,19 @@
|
|
41 |
<tr>
|
42 |
<th><label><?php _e('Powered by IgniteUp', CSCS_TEXT_DOMAIN); ?></label></th>
|
43 |
<td>
|
44 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
45 |
</td>
|
46 |
</tr>
|
|
|
47 |
</table>
|
48 |
<p class="submit">
|
49 |
<input type="submit" name="submit" id="submit" class="button button-primary" value="Save Changes">
|
28 |
<label><input type="checkbox" class="skip_checkbox" value="administrator" <?php check_checkboxes(in_array('administrator', $skip_for_array)); ?>><?php _e('Administrators', CSCS_TEXT_DOMAIN); ?></label>
|
29 |
<div class="clearfix"></div>
|
30 |
<label><input type="checkbox" class="skip_checkbox" value="editor" <?php check_checkboxes(in_array('editor', $skip_for_array)); ?>><?php _e('Editors', CSCS_TEXT_DOMAIN); ?></label>
|
31 |
+
<div class="clearfix"></div>
|
32 |
+
<label><input type="checkbox" class="skip_checkbox" value="subscriber" <?php check_checkboxes(in_array('subscriber', $skip_for_array)); ?>><?php _e('Subscribers', CSCS_TEXT_DOMAIN); ?></label>
|
33 |
<input type="hidden" name="<?php echo CSCS_GENEROPTION_PREFIX . 'skipfor'; ?>" id="skip_for_value" value='<?php echo $skipfor; ?>'>
|
34 |
</td>
|
35 |
</tr>
|
43 |
<tr>
|
44 |
<th><label><?php _e('Powered by IgniteUp', CSCS_TEXT_DOMAIN); ?></label></th>
|
45 |
<td>
|
46 |
+
<?php $cs_powered_by = CSCS_GENEROPTION_PREFIX . 'powered_by'; ?>
|
47 |
+
<label><input type="checkbox" name="<?php echo $cs_powered_by; ?>" value="1" <?php check_checkboxes(get_option($cs_powered_by) == '1'); ?>><?php _e('Show "Powered by IgniteUp" in the page', CSCS_TEXT_DOMAIN); ?></label>
|
48 |
+
</td>
|
49 |
+
</tr>
|
50 |
+
|
51 |
+
|
52 |
+
<tr>
|
53 |
+
<th><label><?php _e('Custom CSS', CSCS_TEXT_DOMAIN); ?></label></th>
|
54 |
+
<td>
|
55 |
+
<textarea name="<?php echo CSCS_GENEROPTION_PREFIX . 'customcss'; ?>" cols="50" rows="7"><?php echo get_option(CSCS_GENEROPTION_PREFIX . 'customcss', ''); ?></textarea>
|
56 |
</td>
|
57 |
</tr>
|
58 |
+
|
59 |
</table>
|
60 |
<p class="submit">
|
61 |
<input type="submit" name="submit" id="submit" class="button button-primary" value="Save Changes">
|
includes/views/temp-template-options.php
CHANGED
@@ -78,7 +78,7 @@
|
|
78 |
</p>
|
79 |
<p class="submit">
|
80 |
<input type="submit" name="save" class="button button-primary submit" value="Save Changes">
|
81 |
-
<
|
82 |
<span id="saveResult" data-text="<?php echo htmlentities(__('Settings Saved Successfully', 'wp'), ENT_QUOTES); ?>"></span>
|
83 |
</p>
|
84 |
</form>
|
78 |
</p>
|
79 |
<p class="submit">
|
80 |
<input type="submit" name="save" class="button button-primary submit" value="Save Changes">
|
81 |
+
<a href="#" class="button preview-igniteup" data-forward="<?php echo esc_url(home_url('/?igniteup=force')); ?>">Preview</a>
|
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.2
|
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.2 =
|
97 |
* Feature to preview template without going live
|
98 |
* Feature to reset template options to defaults
|
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.1
|
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.1 =
|
97 |
+
* Add support to skip the page for subscriber role as well
|
98 |
+
* Add feature to use Custom CSS
|
99 |
+
* Improve preview feature
|
100 |
+
|
101 |
= 1.2 =
|
102 |
* Feature to preview template without going live
|
103 |
* Feature to reset template options to defaults
|