Version Description
- Code improvement (added new actions and triggers)
- Analytic Extension
- Bug fixed
Download this release
Release Info
Developer | adamskaat |
Plugin | Countdown, Coming Soon – Countdown & Clock |
Version | 1.5.4 |
Comparing to | |
See all releases |
Code changes from version 1.5.3 to 1.5.4
- assets/css/admin.css +21 -0
- assets/img/analytic.png +0 -0
- assets/js/Countdown.js +1 -0
- assets/views/types.php +21 -0
- classes/Actions.php +1 -1
- classes/countdown/Countdown.php +7 -0
- config/config.php +15 -2
- countdown-builder.php +1 -1
- helpers/AdminHelper.php +25 -0
- readme.txt +6 -1
assets/css/admin.css
CHANGED
@@ -53,6 +53,11 @@
|
|
53 |
background-size: 100% 100%;
|
54 |
}
|
55 |
|
|
|
|
|
|
|
|
|
|
|
56 |
.clock4-countdown,
|
57 |
.clock4-countdown-pro {
|
58 |
background-image: url("../img/clock4.png");
|
@@ -564,4 +569,20 @@ div.ycd-tabs-text-header > div.ycd-toggle-icon-open {
|
|
564 |
|
565 |
.ycd-condition-delete {
|
566 |
margin-left: 5px;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
567 |
}
|
53 |
background-size: 100% 100%;
|
54 |
}
|
55 |
|
56 |
+
.analytics-countdown-pro {
|
57 |
+
background-image: url("../img/analytic.png");
|
58 |
+
background-size: 100% 100%;
|
59 |
+
}
|
60 |
+
|
61 |
.clock4-countdown,
|
62 |
.clock4-countdown-pro {
|
63 |
background-image: url("../img/clock4.png");
|
569 |
|
570 |
.ycd-condition-delete {
|
571 |
margin-left: 5px;
|
572 |
+
}
|
573 |
+
|
574 |
+
.ycd-add-new-extensions-wrapper {
|
575 |
+
width: 100%;
|
576 |
+
height: 20px;
|
577 |
+
border-bottom: 1px solid #DEDEDE;
|
578 |
+
text-align: center;
|
579 |
+
margin-bottom: 25px;
|
580 |
+
}
|
581 |
+
|
582 |
+
.ycd-add-new-extensions {
|
583 |
+
font-size: 35px;
|
584 |
+
background-color: #F1F1F1;
|
585 |
+
padding: 0 12px;
|
586 |
+
display: inline-block;
|
587 |
+
margin-top: 8px;
|
588 |
}
|
assets/img/analytic.png
ADDED
Binary file
|
assets/js/Countdown.js
CHANGED
@@ -780,6 +780,7 @@ YcdCountdown.prototype.endBehavior = function(countdown, options) {
|
|
780 |
|
781 |
switch(behavior) {
|
782 |
case 'hideCountdown':
|
|
|
783 |
countdownWrapper.hide();
|
784 |
break;
|
785 |
case 'showText':
|
780 |
|
781 |
switch(behavior) {
|
782 |
case 'hideCountdown':
|
783 |
+
jQuery(window).trigger('ycdHideCountdown', options);
|
784 |
countdownWrapper.hide();
|
785 |
break;
|
786 |
case 'showText':
|
assets/views/types.php
CHANGED
@@ -2,6 +2,8 @@
|
|
2 |
use ycd\Countdown;
|
3 |
use ycd\AdminHelper;
|
4 |
$types = Countdown::getCountdownTypes();
|
|
|
|
|
5 |
?>
|
6 |
<div class="ycd-bootstrap-wrapper">
|
7 |
<div class="row">
|
@@ -26,4 +28,23 @@ $types = Countdown::getCountdownTypes();
|
|
26 |
</div>
|
27 |
</a>
|
28 |
<?php endforeach; ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
29 |
</div>
|
2 |
use ycd\Countdown;
|
3 |
use ycd\AdminHelper;
|
4 |
$types = Countdown::getCountdownTypes();
|
5 |
+
$currentExtensions = YcdCountdownConfig::extensions();
|
6 |
+
$extensionsResult = AdminHelper::separateToActiveAndNotActive($currentExtensions);
|
7 |
?>
|
8 |
<div class="ycd-bootstrap-wrapper">
|
9 |
<div class="row">
|
28 |
</div>
|
29 |
</a>
|
30 |
<?php endforeach; ?>
|
31 |
+
<div class="clear"></div>
|
32 |
+
<?php if(!empty($extensionsResult['passive'])) : ?>
|
33 |
+
<div class="ycd-add-new-extensions-wrapper">
|
34 |
+
<span class="ycd-add-new-extensions">
|
35 |
+
Extensions
|
36 |
+
</span>
|
37 |
+
</div>
|
38 |
+
<?php foreach ($extensionsResult['passive'] as $extension): ?>
|
39 |
+
<a class="create-countdown-link" <?php echo AdminHelper::buildCreateCountdownAttrs($type); ?> href="<?php echo YCD_COUNTDOWN_PRO_URL.'#yrm-'.$extension['shortKey']; ?>">
|
40 |
+
<div class="countdowns-div">
|
41 |
+
<div class="ycd-type-div <?php echo $extension['shortKey']?>-countdown-pro ycd-pro-version"></div>
|
42 |
+
<?php echo AdminHelper::getCountdownThumbText($type); ?>
|
43 |
+
<div class="ycd-type-view-footer">
|
44 |
+
<span class="ycd-promotion-video"><?php echo $extension['boxTitle']; ?></span>
|
45 |
+
</div>
|
46 |
+
</div>
|
47 |
+
</a>
|
48 |
+
<?php endforeach; ?>
|
49 |
+
<?php endif; ?>
|
50 |
</div>
|
classes/Actions.php
CHANGED
@@ -178,7 +178,7 @@ class Actions {
|
|
178 |
}
|
179 |
}
|
180 |
ob_start();
|
181 |
-
echo $typeObj->
|
182 |
|
183 |
if(!empty($content)) {
|
184 |
echo "<a href='javascript:void(0)' class='ycd-circle-popup' data-id=".esc_attr($id).">$content</a>";
|
178 |
}
|
179 |
}
|
180 |
ob_start();
|
181 |
+
echo $typeObj->renderView();
|
182 |
|
183 |
if(!empty($content)) {
|
184 |
echo "<a href='javascript:void(0)' class='ycd-circle-popup' data-id=".esc_attr($id).">$content</a>";
|
classes/countdown/Countdown.php
CHANGED
@@ -842,4 +842,11 @@ abstract class Countdown {
|
|
842 |
$options['ycd-schedule-start-from'] = $this->getOptionValue('ycd-schedule-start-from');
|
843 |
$options['ycd-schedule-time-zone'] = $this->getOptionValue('ycd-schedule-time-zone');
|
844 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
845 |
}
|
842 |
$options['ycd-schedule-start-from'] = $this->getOptionValue('ycd-schedule-start-from');
|
843 |
$options['ycd-schedule-time-zone'] = $this->getOptionValue('ycd-schedule-time-zone');
|
844 |
}
|
845 |
+
|
846 |
+
public function renderView() {
|
847 |
+
$content = $this->getViewContent();
|
848 |
+
do_action('ycdGeneralScripts');
|
849 |
+
|
850 |
+
return $content;
|
851 |
+
}
|
852 |
}
|
config/config.php
CHANGED
@@ -56,8 +56,8 @@ class YcdCountdownConfig {
|
|
56 |
self::addDefine('YCD_CRON_REPEAT_INTERVAL', 1);
|
57 |
self::addDefine('YCD_AJAX_SUCCESS', 1);
|
58 |
self::addDefine('YCD_TABLE_LIMIT', 15);
|
59 |
-
self::addDefine('YCD_VERSION_PRO', 1.
|
60 |
-
self::addDefine('YCD_VERSION', 1.
|
61 |
self::addDefine('YCD_FREE_VERSION', 1);
|
62 |
self::addDefine('YCD_SILVER_VERSION', 2);
|
63 |
self::addDefine('YCD_GOLD_VERSION', 3);
|
@@ -163,6 +163,19 @@ class YcdCountdownConfig {
|
|
163 |
|
164 |
return $content;
|
165 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
166 |
}
|
167 |
|
168 |
YcdCountdownConfig::init();
|
56 |
self::addDefine('YCD_CRON_REPEAT_INTERVAL', 1);
|
57 |
self::addDefine('YCD_AJAX_SUCCESS', 1);
|
58 |
self::addDefine('YCD_TABLE_LIMIT', 15);
|
59 |
+
self::addDefine('YCD_VERSION_PRO', 1.4);
|
60 |
+
self::addDefine('YCD_VERSION', 1.54);
|
61 |
self::addDefine('YCD_FREE_VERSION', 1);
|
62 |
self::addDefine('YCD_SILVER_VERSION', 2);
|
63 |
self::addDefine('YCD_GOLD_VERSION', 3);
|
163 |
|
164 |
return $content;
|
165 |
}
|
166 |
+
|
167 |
+
public static function extensions() {
|
168 |
+
|
169 |
+
$extensions['analytics'] = array(
|
170 |
+
'pluginKey' => 'countdown-builder-analytics/countdown-builder-analytics.php',
|
171 |
+
'isType' => false,
|
172 |
+
'shortKey' => 'analytics',
|
173 |
+
'videoURL' => '',
|
174 |
+
'boxTitle' => __('Analytics')
|
175 |
+
);
|
176 |
+
|
177 |
+
return apply_filters('ycdExtensionsInfo', $extensions);
|
178 |
+
}
|
179 |
}
|
180 |
|
181 |
YcdCountdownConfig::init();
|
countdown-builder.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/**
|
3 |
* Plugin Name: Countdown builder
|
4 |
* Description: The best countdown plugin
|
5 |
-
* Version: 1.5.
|
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
|
5 |
+
* Version: 1.5.4
|
6 |
* Author: Adam Skaat
|
7 |
* Author URI: https://edmonsoft.com/countdown
|
8 |
* License: GPLv2
|
helpers/AdminHelper.php
CHANGED
@@ -1128,4 +1128,29 @@ class AdminHelper {
|
|
1128 |
|
1129 |
return $allCustomPosts;
|
1130 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1131 |
}
|
1128 |
|
1129 |
return $allCustomPosts;
|
1130 |
}
|
1131 |
+
|
1132 |
+
public static function separateToActiveAndNotActive($extensions) {
|
1133 |
+
$result = array(
|
1134 |
+
'active' => array(),
|
1135 |
+
'passive' => array()
|
1136 |
+
);
|
1137 |
+
|
1138 |
+
foreach($extensions as $extension) {
|
1139 |
+
if(empty($extension)) {
|
1140 |
+
continue;
|
1141 |
+
}
|
1142 |
+
$key = @$extension['pluginKey'];
|
1143 |
+
|
1144 |
+
if(is_plugin_active($key)) {
|
1145 |
+
if($extension['isType']) {
|
1146 |
+
$result['active'][] = $extension;
|
1147 |
+
}
|
1148 |
+
}
|
1149 |
+
else {
|
1150 |
+
$result['passive'][] = $extension;
|
1151 |
+
}
|
1152 |
+
}
|
1153 |
+
|
1154 |
+
return $result;
|
1155 |
+
}
|
1156 |
}
|
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.2.2
|
6 |
-
Stable tag: 1.5.
|
7 |
Requires PHP: 5.3
|
8 |
License: GPLv2 or later
|
9 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
@@ -64,6 +64,11 @@ You need to select the .zip file, there is no need to extract the zip file, just
|
|
64 |
|
65 |
|
66 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
67 |
= 1.5.3 =
|
68 |
* Timer reset button
|
69 |
* Timer buttons colors customization
|
3 |
Tags: countdown, timer, countdown timer
|
4 |
Requires at least: 3.8
|
5 |
Tested up to: 5.2.2
|
6 |
+
Stable tag: 1.5.4
|
7 |
Requires PHP: 5.3
|
8 |
License: GPLv2 or later
|
9 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
64 |
|
65 |
|
66 |
== Changelog ==
|
67 |
+
= 1.5.4 =
|
68 |
+
* Code improvement (added new actions and triggers)
|
69 |
+
* Analytic Extension
|
70 |
+
* Bug fixed
|
71 |
+
|
72 |
= 1.5.3 =
|
73 |
* Timer reset button
|
74 |
* Timer buttons colors customization
|