Version Description
- Fixed coming soon mode option
- Fixed coming soon page render html tags issue
Download this release
Release Info
Developer | adamskaat |
Plugin | Countdown, Coming Soon – Countdown & Clock |
Version | 2.4.6 |
Comparing to | |
See all releases |
Code changes from version 2.4.5 to 2.4.6
- assets/views/admin/comingSoon/comingSoonSettings.php +1 -0
- assets/views/front/comingSoonTempleate.php +9 -8
- classes/Filters.php +2 -1
- config/config.php +6 -6
- countdown-builder.php +1 -1
- helpers/AdminHelper.php +2 -1
- readme.txt +5 -1
assets/views/admin/comingSoon/comingSoonSettings.php
CHANGED
@@ -36,6 +36,7 @@ $allowed_html = AdminHelper::getAllowedTags();
|
|
36 |
<div class="ycd-sub-options-wrapper">
|
37 |
<?php
|
38 |
$multipleChoiceButton = new MultipleChoiceButton($defaultData['comingSoonModes'], esc_attr($this->getOptionValue('ycd-coming-soon-mode')));
|
|
|
39 |
?>
|
40 |
</div>
|
41 |
<div class="row form-group">
|
36 |
<div class="ycd-sub-options-wrapper">
|
37 |
<?php
|
38 |
$multipleChoiceButton = new MultipleChoiceButton($defaultData['comingSoonModes'], esc_attr($this->getOptionValue('ycd-coming-soon-mode')));
|
39 |
+
echo wp_kses($multipleChoiceButton, $allowed_html);
|
40 |
?>
|
41 |
</div>
|
42 |
<div class="row form-group">
|
assets/views/front/comingSoonTempleate.php
CHANGED
@@ -1,20 +1,21 @@
|
|
1 |
<!DOCTYPE html>
|
2 |
<html lang="en">
|
3 |
<head>
|
|
|
4 |
<meta charset="utf-8">
|
5 |
-
<title><?php echo
|
6 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
7 |
-
<?php echo
|
8 |
<?php wp_head(); ?>
|
9 |
</head>
|
10 |
<body class="ycd-body">
|
11 |
<div style="text-align: center">
|
12 |
-
<div class="ycd-coming-soon-before-header"><?php echo
|
13 |
-
<div class="ycd-coming-soon-header"><?php echo
|
14 |
-
<div class="ycd-coming-soon-after-header"><?php echo
|
15 |
-
<div class="ycd-coming-soon-before-message"><?php echo
|
16 |
-
<div class="ycd-coming-soon-message"><?php echo
|
17 |
-
<div class="ycd-coming-soon-after-message"><?php echo
|
18 |
</div>
|
19 |
<?php wp_footer(); ?>
|
20 |
</body>
|
1 |
<!DOCTYPE html>
|
2 |
<html lang="en">
|
3 |
<head>
|
4 |
+
<?php $allowed_html = ycd\AdminHelper::getAllowedTags();?>
|
5 |
<meta charset="utf-8">
|
6 |
+
<title><?php echo wp_kses(apply_filters('YcdComingSoonPageTitle', ''), $allowed_html); ?></title>
|
7 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
8 |
+
<?php echo wp_kses(apply_filters('YcdComingSoonPageHeaderContent', ''), $allowed_html); ?>
|
9 |
<?php wp_head(); ?>
|
10 |
</head>
|
11 |
<body class="ycd-body">
|
12 |
<div style="text-align: center">
|
13 |
+
<div class="ycd-coming-soon-before-header"><?php echo wp_kses(apply_filters('YcdComingSoonPageBeforeHeader', '', $comingSoonThis), $allowed_html); ?></div>
|
14 |
+
<div class="ycd-coming-soon-header"><?php echo wp_kses(apply_filters('YcdComingSoonPageHeader', '', $comingSoonThis), $allowed_html); ?></div>
|
15 |
+
<div class="ycd-coming-soon-after-header"><?php echo wp_kses(apply_filters('YcdComingSoonPageAfterHeader', '', $comingSoonThis), $allowed_html); ?></div>
|
16 |
+
<div class="ycd-coming-soon-before-message"><?php echo wp_kses(apply_filters('YcdComingSoonPageBeforeMessage', '', $comingSoonThis), $allowed_html); ?></div>
|
17 |
+
<div class="ycd-coming-soon-message"><?php echo wp_kses(apply_filters('YcdComingSoonPageMessage', '', $comingSoonThis), $allowed_html); ?></div>
|
18 |
+
<div class="ycd-coming-soon-after-message"><?php echo wp_kses(apply_filters('YcdComingSoonPageAfterMessage', '', $comingSoonThis), $allowed_html); ?></div>
|
19 |
</div>
|
20 |
<?php wp_footer(); ?>
|
21 |
</body>
|
classes/Filters.php
CHANGED
@@ -95,7 +95,8 @@ class Filters {
|
|
95 |
public function theContent() {
|
96 |
$comingSoon = new ComingSoon();
|
97 |
if ($comingSoon->allowComingSoon()) {
|
98 |
-
|
|
|
99 |
exit;
|
100 |
}
|
101 |
}
|
95 |
public function theContent() {
|
96 |
$comingSoon = new ComingSoon();
|
97 |
if ($comingSoon->allowComingSoon()) {
|
98 |
+
$allowed_html = AdminHelper::getAllowedTags();
|
99 |
+
echo wp_kses($comingSoon->render(), $allowed_html);
|
100 |
exit;
|
101 |
}
|
102 |
}
|
config/config.php
CHANGED
@@ -76,8 +76,8 @@ class YcdCountdownConfig
|
|
76 |
self::addDefine('YCD_CRON_REPEAT_INTERVAL', 1);
|
77 |
self::addDefine('YCD_AJAX_SUCCESS', 1);
|
78 |
self::addDefine('YCD_TABLE_LIMIT', 15);
|
79 |
-
self::addDefine('YCD_VERSION_PRO', 2.
|
80 |
-
self::addDefine('YCD_VERSION', 2.
|
81 |
self::addDefine('YCD_FREE_VERSION', 1);
|
82 |
self::addDefine('YCD_SILVER_VERSION', 2);
|
83 |
self::addDefine('YCD_GOLD_VERSION', 3);
|
@@ -85,13 +85,13 @@ class YcdCountdownConfig
|
|
85 |
self::addDefine('YCD_EXTENSION_VERSION', 99);
|
86 |
require_once(dirname(__FILE__).'/config-pkg.php');
|
87 |
|
88 |
-
$versionText = '2.4.
|
89 |
if (YCD_PKG_VERSION != YCD_FREE_VERSION) {
|
90 |
-
$versionText = '2.2.
|
91 |
}
|
92 |
self::addDefine('YCD_VERSION_TEXT', $versionText);
|
93 |
-
self::addDefine('YCD_LAST_UPDATE', 'Hoc
|
94 |
-
self::addDefine('YCD_NEXT_UPDATE', '
|
95 |
}
|
96 |
|
97 |
public static function displaySettings()
|
76 |
self::addDefine('YCD_CRON_REPEAT_INTERVAL', 1);
|
77 |
self::addDefine('YCD_AJAX_SUCCESS', 1);
|
78 |
self::addDefine('YCD_TABLE_LIMIT', 15);
|
79 |
+
self::addDefine('YCD_VERSION_PRO', 2.27);
|
80 |
+
self::addDefine('YCD_VERSION', 2.46);
|
81 |
self::addDefine('YCD_FREE_VERSION', 1);
|
82 |
self::addDefine('YCD_SILVER_VERSION', 2);
|
83 |
self::addDefine('YCD_GOLD_VERSION', 3);
|
85 |
self::addDefine('YCD_EXTENSION_VERSION', 99);
|
86 |
require_once(dirname(__FILE__).'/config-pkg.php');
|
87 |
|
88 |
+
$versionText = '2.4.6';
|
89 |
if (YCD_PKG_VERSION != YCD_FREE_VERSION) {
|
90 |
+
$versionText = '2.2.7';
|
91 |
}
|
92 |
self::addDefine('YCD_VERSION_TEXT', $versionText);
|
93 |
+
self::addDefine('YCD_LAST_UPDATE', 'Hoc 23');
|
94 |
+
self::addDefine('YCD_NEXT_UPDATE', 'Nov 5');
|
95 |
}
|
96 |
|
97 |
public static function displaySettings()
|
countdown-builder.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/**
|
3 |
* Plugin Name: Countdown builder
|
4 |
* Description: The best countdown plugin by Adam skaat
|
5 |
-
* Version: 2.4.
|
6 |
* Author: Adam Skaat
|
7 |
* Author URI: https://edmonsoft.com/countdown
|
8 |
* License: GPLv2
|
2 |
/**
|
3 |
* Plugin Name: Countdown builder
|
4 |
* Description: The best countdown plugin by Adam skaat
|
5 |
+
* Version: 2.4.6
|
6 |
* Author: Adam Skaat
|
7 |
* Author URI: https://edmonsoft.com/countdown
|
8 |
* License: GPLv2
|
helpers/AdminHelper.php
CHANGED
@@ -1500,6 +1500,8 @@ class AdminHelper {
|
|
1500 |
'button' => $generalArray,
|
1501 |
'style' => $generalArray,
|
1502 |
'script' => $generalArray,
|
|
|
|
|
1503 |
'input' => array(
|
1504 |
'type' => array(),
|
1505 |
'id' => array(),
|
@@ -1536,7 +1538,6 @@ class AdminHelper {
|
|
1536 |
'height' => array(),
|
1537 |
'style' => array()
|
1538 |
),
|
1539 |
-
"style" => array(),
|
1540 |
'a' => array(
|
1541 |
'href' => array(),
|
1542 |
'target' => array(),
|
1500 |
'button' => $generalArray,
|
1501 |
'style' => $generalArray,
|
1502 |
'script' => $generalArray,
|
1503 |
+
'meta' => $generalArray,
|
1504 |
+
'link' => $generalArray,
|
1505 |
'input' => array(
|
1506 |
'type' => array(),
|
1507 |
'id' => array(),
|
1538 |
'height' => array(),
|
1539 |
'style' => array()
|
1540 |
),
|
|
|
1541 |
'a' => array(
|
1542 |
'href' => array(),
|
1543 |
'target' => array(),
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: adamskaat
|
|
3 |
Tags: countdown, timer, countdown timer
|
4 |
Requires at least: 3.8
|
5 |
Tested up to: 6.0.2
|
6 |
-
Stable tag: 2.4.
|
7 |
Requires PHP: 5.3
|
8 |
License: GPLv2 or later
|
9 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
@@ -67,6 +67,10 @@ Yes you can, we have Circle and Flipclock countdown popups.
|
|
67 |
You need to select the .zip file, there is no need to extract the zip file, just upload it.
|
68 |
|
69 |
== Changelog ==
|
|
|
|
|
|
|
|
|
70 |
= 2.4.5 =
|
71 |
* Added Display Rules new section
|
72 |
* Added possibility to from settings include (Timer Countdown, Clock 1, Clock 2, Clock 3, Clock 4, Clock 5, Clock 6, Clock 7) types
|
3 |
Tags: countdown, timer, countdown timer
|
4 |
Requires at least: 3.8
|
5 |
Tested up to: 6.0.2
|
6 |
+
Stable tag: 2.4.6
|
7 |
Requires PHP: 5.3
|
8 |
License: GPLv2 or later
|
9 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
67 |
You need to select the .zip file, there is no need to extract the zip file, just upload it.
|
68 |
|
69 |
== Changelog ==
|
70 |
+
= 2.4.6 =
|
71 |
+
* Fixed coming soon mode option
|
72 |
+
* Fixed coming soon page render html tags issue
|
73 |
+
|
74 |
= 2.4.5 =
|
75 |
* Added Display Rules new section
|
76 |
* Added possibility to from settings include (Timer Countdown, Clock 1, Clock 2, Clock 3, Clock 4, Clock 5, Clock 6, Clock 7) types
|