Version Description
- Added possibility add shortcode inside Coming soon page content
- Fixed added slashes issue in coming soon page content
- Added random number plugin to more plugins section
Download this release
Release Info
Developer | adamskaat |
Plugin | Countdown, Coming Soon – Countdown & Clock |
Version | 2.0.7 |
Comparing to | |
See all releases |
Code changes from version 2.0.5 to 2.0.7
- assets/css/admin.css +7 -0
- assets/views/morePlugins.php +37 -19
- classes/countdown/ComingSoon.php +26 -14
- config/config.php +5 -5
- countdown-builder.php +1 -1
- readme.txt +6 -1
assets/css/admin.css
CHANGED
@@ -696,6 +696,13 @@ div.ycd-tabs-text-header > div.ycd-toggle-icon-open {
|
|
696 |
background-size:128px 128px;
|
697 |
}
|
698 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
699 |
.ycd-extentsion-pro {
|
700 |
margin-right: 15px;
|
701 |
}
|
696 |
background-size:128px 128px;
|
697 |
}
|
698 |
|
699 |
+
#plugin-icon-random-numbers {
|
700 |
+
width:128px;
|
701 |
+
height:128px;
|
702 |
+
background-image: url(https://ps.w.org/random-numbers-builder/assets/icon-128x128.png?rev=1696507);
|
703 |
+
background-size:128px 128px;
|
704 |
+
}
|
705 |
+
|
706 |
.ycd-extentsion-pro {
|
707 |
margin-right: 15px;
|
708 |
}
|
assets/views/morePlugins.php
CHANGED
@@ -4,28 +4,28 @@ $contactFormUrl = AdminHelper::getPluginActivationUrl('contact-form-master');
|
|
4 |
$expandMaker = AdminHelper::getPluginActivationUrl('expand-maker');
|
5 |
$downloaderURL = AdminHelper::getPluginActivationUrl('ydn-download');
|
6 |
$scrollToTop = AdminHelper::getPluginActivationUrl('scroll-to-top-builder');
|
|
|
7 |
?>
|
8 |
<div class="plugin-group" id="ycd-plugins-wrapper">
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
<div class="action-links">
|
17 |
<span class="plugin-action-buttons">
|
18 |
-
<a class="install-now button" data-slug="
|
19 |
</span>
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
<div class="plugin-card">
|
30 |
<div class="plugin-card-top">
|
31 |
<a href="https://wordpress.org/plugins/expand-maker/" target="_blank" class="plugin-icon"><div class="plugin-icon" id="plugin-icon-readmore"></div></a>
|
@@ -83,5 +83,23 @@ $scrollToTop = AdminHelper::getPluginActivationUrl('scroll-to-top-builder');
|
|
83 |
</div>
|
84 |
</div>
|
85 |
</div>
|
86 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
87 |
</div>
|
4 |
$expandMaker = AdminHelper::getPluginActivationUrl('expand-maker');
|
5 |
$downloaderURL = AdminHelper::getPluginActivationUrl('ydn-download');
|
6 |
$scrollToTop = AdminHelper::getPluginActivationUrl('scroll-to-top-builder');
|
7 |
+
$randomNumbers = AdminHelper::getPluginActivationUrl('random-numbers-builder');
|
8 |
?>
|
9 |
<div class="plugin-group" id="ycd-plugins-wrapper">
|
10 |
+
<div class="plugin-card">
|
11 |
+
<div class="plugin-card-top">
|
12 |
+
<a href="https://wordpress.org/plugins/random-numbers-builder/" target="_blank" class="plugin-icon"><div class="plugin-icon" id="plugin-icon-random-numbers"></div></a>
|
13 |
+
<div class="name column-name">
|
14 |
+
<h4>
|
15 |
+
<a href="https://wordpress.org/plugins/random-numbers-builder/" target="_blank">Random numbers – WordPress Random numbers builder plugin</a>
|
16 |
+
<div class="action-links">
|
|
|
17 |
<span class="plugin-action-buttons">
|
18 |
+
<a class="install-now button" data-slug="countdown-builder" href="<?php echo $randomNumbers; ?>">Install Now</a>
|
19 |
</span>
|
20 |
+
</div>
|
21 |
+
</h4>
|
22 |
+
</div>
|
23 |
+
<div class="desc column-description">
|
24 |
+
<p>Random numbers builder plugin allows the visitor to create random numbers on the page.</p>
|
25 |
+
<div class="column-compatibility"><span class="compatibility-compatible"><strong>Compatible</strong> with your version of WordPress</span></div>
|
26 |
+
</div>
|
27 |
+
</div>
|
28 |
+
</div>
|
29 |
<div class="plugin-card">
|
30 |
<div class="plugin-card-top">
|
31 |
<a href="https://wordpress.org/plugins/expand-maker/" target="_blank" class="plugin-icon"><div class="plugin-icon" id="plugin-icon-readmore"></div></a>
|
83 |
</div>
|
84 |
</div>
|
85 |
</div>
|
86 |
+
<div class="plugin-card">
|
87 |
+
<div class="plugin-card-top">
|
88 |
+
<a href="#" target="_blank" class="plugin-icon"><div class="plugin-icon" id="plugin-icon-contact-form"></div></a>
|
89 |
+
<div class="name column-name">
|
90 |
+
<h4>
|
91 |
+
<a href="https://wordpress.org/plugins/contact-form-master/" target="_blank">Contact Form</a>
|
92 |
+
<div class="action-links">
|
93 |
+
<span class="plugin-action-buttons">
|
94 |
+
<a class="install-now button" data-slug="contact-form-master" href="<?php echo $contactFormUrl; ?>">Install Now</a>
|
95 |
+
</span>
|
96 |
+
</div>
|
97 |
+
</h4>
|
98 |
+
</div>
|
99 |
+
<div class="desc column-description">
|
100 |
+
<p>Contact form is the most complete Contact form plugin. You can create different 'contact forms' with different fields.</p>
|
101 |
+
<div class="column-compatibility"><span class="compatibility-compatible"><strong>Compatible</strong> with your version of WordPress</span></div>
|
102 |
+
</div>
|
103 |
+
</div>
|
104 |
+
</div>
|
105 |
</div>
|
classes/countdown/ComingSoon.php
CHANGED
@@ -11,7 +11,8 @@ Class ComingSoon {
|
|
11 |
add_filter('YcdComingSoonPageHeaderContent', array(&$this,'YcdComingSoonPageHeaderContent'), 1, 1);
|
12 |
}
|
13 |
|
14 |
-
public function YcdComingSoonPageHeaderContent($content)
|
|
|
15 |
$description = $this->getOptionValue('ycd-coming-soon-seo-description');
|
16 |
$favicon = $this->getOptionValue('ycd-coming-soon-favicon');
|
17 |
$customJs = $this->getOptionValue('ycd-coming-soon-countdown-custom-js');
|
@@ -29,23 +30,27 @@ Class ComingSoon {
|
|
29 |
return $content;
|
30 |
}
|
31 |
|
32 |
-
public function YcdComingSoonPageTitle($content)
|
|
|
33 |
$title = $this->getOptionValue('ycd-coming-soon-title');
|
34 |
|
35 |
return $title;
|
36 |
}
|
37 |
|
38 |
-
public function comingSoonPageHeader($content)
|
|
|
39 |
$header = $this->getOptionValue('ycd-coming-soon-headline');
|
40 |
return '<h1>'.$header.'</h1>';
|
41 |
}
|
42 |
|
43 |
-
public function comingSoonPageMessage($content)
|
|
|
44 |
$message = $this->getOptionValue('ycd-coming-soon-message');
|
45 |
-
return '<
|
46 |
}
|
47 |
|
48 |
-
public function allowComingSoon()
|
|
|
49 |
$renderStatus = true;
|
50 |
$isAllow = $this->getOptionValue('ycd-enable-coming-soon');
|
51 |
$status = empty($isAllow);
|
@@ -61,21 +66,24 @@ Class ComingSoon {
|
|
61 |
return $renderStatus;
|
62 |
}
|
63 |
|
64 |
-
public function render()
|
|
|
65 |
$comingSoonThis = $this;
|
66 |
$this->changeHeaderStatus();
|
67 |
require_once YCD_FRONT_VIEWS_PATH.'comingSoonTempleate.php';
|
68 |
exit();
|
69 |
}
|
70 |
|
71 |
-
private function changeHeaderStatus()
|
|
|
72 |
$mode = $this->getOptionValue('ycd-coming-soon-mode');
|
73 |
if ($mode == 'maintenanceMode') {
|
74 |
status_header(503);
|
75 |
}
|
76 |
}
|
77 |
|
78 |
-
public static function defaults()
|
|
|
79 |
$defaults = array();
|
80 |
|
81 |
$defaults['ycd-coming-soon-headline'] = 'Get Ready... Something Really Cool Is Coming Soon';
|
@@ -116,7 +124,8 @@ Class ComingSoon {
|
|
116 |
return apply_filters('ycdComingSoonDefaults', $defaults);
|
117 |
}
|
118 |
|
119 |
-
public function getSavedData()
|
|
|
120 |
$settings = array();
|
121 |
$savedSettingsStr = get_option('ycdComingSoonSettings');
|
122 |
|
@@ -134,7 +143,8 @@ Class ComingSoon {
|
|
134 |
return $settings;
|
135 |
}
|
136 |
|
137 |
-
public function getOptionValue($optionName)
|
|
|
138 |
$defaults = ComingSoon::defaults();
|
139 |
$savedData = $this->getSavedData();
|
140 |
$checkboxes = $defaults['checkboxes'];
|
@@ -155,12 +165,14 @@ Class ComingSoon {
|
|
155 |
return $optionValue;
|
156 |
}
|
157 |
|
158 |
-
public function adminView()
|
159 |
-
|
160 |
require_once YCD_ADMIN_COMING_VIEWS_PATH.'comingSoon.php';
|
161 |
}
|
162 |
|
163 |
-
public static function saveComingSoonSettings($postData)
|
|
|
|
|
164 |
$defaults = self::defaults();
|
165 |
$optionsNames = array_keys($defaults);
|
166 |
$savedData = array();
|
11 |
add_filter('YcdComingSoonPageHeaderContent', array(&$this,'YcdComingSoonPageHeaderContent'), 1, 1);
|
12 |
}
|
13 |
|
14 |
+
public function YcdComingSoonPageHeaderContent($content)
|
15 |
+
{
|
16 |
$description = $this->getOptionValue('ycd-coming-soon-seo-description');
|
17 |
$favicon = $this->getOptionValue('ycd-coming-soon-favicon');
|
18 |
$customJs = $this->getOptionValue('ycd-coming-soon-countdown-custom-js');
|
30 |
return $content;
|
31 |
}
|
32 |
|
33 |
+
public function YcdComingSoonPageTitle($content)
|
34 |
+
{
|
35 |
$title = $this->getOptionValue('ycd-coming-soon-title');
|
36 |
|
37 |
return $title;
|
38 |
}
|
39 |
|
40 |
+
public function comingSoonPageHeader($content)
|
41 |
+
{
|
42 |
$header = $this->getOptionValue('ycd-coming-soon-headline');
|
43 |
return '<h1>'.$header.'</h1>';
|
44 |
}
|
45 |
|
46 |
+
public function comingSoonPageMessage($content)
|
47 |
+
{
|
48 |
$message = $this->getOptionValue('ycd-coming-soon-message');
|
49 |
+
return '<div>'.do_shortcode($message).'</div>';
|
50 |
}
|
51 |
|
52 |
+
public function allowComingSoon()
|
53 |
+
{
|
54 |
$renderStatus = true;
|
55 |
$isAllow = $this->getOptionValue('ycd-enable-coming-soon');
|
56 |
$status = empty($isAllow);
|
66 |
return $renderStatus;
|
67 |
}
|
68 |
|
69 |
+
public function render()
|
70 |
+
{
|
71 |
$comingSoonThis = $this;
|
72 |
$this->changeHeaderStatus();
|
73 |
require_once YCD_FRONT_VIEWS_PATH.'comingSoonTempleate.php';
|
74 |
exit();
|
75 |
}
|
76 |
|
77 |
+
private function changeHeaderStatus()
|
78 |
+
{
|
79 |
$mode = $this->getOptionValue('ycd-coming-soon-mode');
|
80 |
if ($mode == 'maintenanceMode') {
|
81 |
status_header(503);
|
82 |
}
|
83 |
}
|
84 |
|
85 |
+
public static function defaults()
|
86 |
+
{
|
87 |
$defaults = array();
|
88 |
|
89 |
$defaults['ycd-coming-soon-headline'] = 'Get Ready... Something Really Cool Is Coming Soon';
|
124 |
return apply_filters('ycdComingSoonDefaults', $defaults);
|
125 |
}
|
126 |
|
127 |
+
public function getSavedData()
|
128 |
+
{
|
129 |
$settings = array();
|
130 |
$savedSettingsStr = get_option('ycdComingSoonSettings');
|
131 |
|
143 |
return $settings;
|
144 |
}
|
145 |
|
146 |
+
public function getOptionValue($optionName)
|
147 |
+
{
|
148 |
$defaults = ComingSoon::defaults();
|
149 |
$savedData = $this->getSavedData();
|
150 |
$checkboxes = $defaults['checkboxes'];
|
165 |
return $optionValue;
|
166 |
}
|
167 |
|
168 |
+
public function adminView()
|
169 |
+
{
|
170 |
require_once YCD_ADMIN_COMING_VIEWS_PATH.'comingSoon.php';
|
171 |
}
|
172 |
|
173 |
+
public static function saveComingSoonSettings($postData)
|
174 |
+
{
|
175 |
+
$postData = stripslashes_deep($postData);
|
176 |
$defaults = self::defaults();
|
177 |
$optionsNames = array_keys($defaults);
|
178 |
$savedData = array();
|
config/config.php
CHANGED
@@ -75,7 +75,7 @@ class YcdCountdownConfig
|
|
75 |
self::addDefine('YCD_AJAX_SUCCESS', 1);
|
76 |
self::addDefine('YCD_TABLE_LIMIT', 15);
|
77 |
self::addDefine('YCD_VERSION_PRO', 1.92);
|
78 |
-
self::addDefine('YCD_VERSION', 2.
|
79 |
self::addDefine('YCD_FREE_VERSION', 1);
|
80 |
self::addDefine('YCD_SILVER_VERSION', 2);
|
81 |
self::addDefine('YCD_GOLD_VERSION', 3);
|
@@ -83,13 +83,13 @@ class YcdCountdownConfig
|
|
83 |
self::addDefine('YCD_EXTENSION_VERSION', 99);
|
84 |
require_once(dirname(__FILE__).'/config-pkg.php');
|
85 |
|
86 |
-
$versionText = '2.0.
|
87 |
if (YCD_PKG_VERSION != YCD_FREE_VERSION) {
|
88 |
-
$versionText = '1.9.
|
89 |
}
|
90 |
self::addDefine('YCD_VERSION_TEXT', $versionText);
|
91 |
-
self::addDefine('YCD_LAST_UPDATE', 'April
|
92 |
-
self::addDefine('YCD_NEXT_UPDATE', '
|
93 |
}
|
94 |
|
95 |
public static function displaySettings()
|
75 |
self::addDefine('YCD_AJAX_SUCCESS', 1);
|
76 |
self::addDefine('YCD_TABLE_LIMIT', 15);
|
77 |
self::addDefine('YCD_VERSION_PRO', 1.92);
|
78 |
+
self::addDefine('YCD_VERSION', 2.07);
|
79 |
self::addDefine('YCD_FREE_VERSION', 1);
|
80 |
self::addDefine('YCD_SILVER_VERSION', 2);
|
81 |
self::addDefine('YCD_GOLD_VERSION', 3);
|
83 |
self::addDefine('YCD_EXTENSION_VERSION', 99);
|
84 |
require_once(dirname(__FILE__).'/config-pkg.php');
|
85 |
|
86 |
+
$versionText = '2.0.7';
|
87 |
if (YCD_PKG_VERSION != YCD_FREE_VERSION) {
|
88 |
+
$versionText = '1.9.3';
|
89 |
}
|
90 |
self::addDefine('YCD_VERSION_TEXT', $versionText);
|
91 |
+
self::addDefine('YCD_LAST_UPDATE', 'April 24');
|
92 |
+
self::addDefine('YCD_NEXT_UPDATE', 'May 9');
|
93 |
}
|
94 |
|
95 |
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.0.
|
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.0.7
|
6 |
* Author: Adam Skaat
|
7 |
* Author URI: https://edmonsoft.com/countdown
|
8 |
* License: GPLv2
|
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: 5.7
|
6 |
-
Stable tag: 2.0.
|
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,11 @@ 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.0.6 =
|
71 |
* Fixed Simple Countdown tyoe count up functionality
|
72 |
|
3 |
Tags: countdown, timer, countdown timer
|
4 |
Requires at least: 3.8
|
5 |
Tested up to: 5.7
|
6 |
+
Stable tag: 2.0.7
|
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.0.7 =
|
71 |
+
* Added possibility add shortcode inside Coming soon page content
|
72 |
+
* Fixed added slashes issue in coming soon page content
|
73 |
+
* Added random number plugin to more plugins section
|
74 |
+
|
75 |
= 2.0.6 =
|
76 |
* Fixed Simple Countdown tyoe count up functionality
|
77 |
|