Version Description
- Fixed countdown activation issue
- Fixed circle countdown
- Countdown admin panel options label typo fixes
Download this release
Release Info
| Developer | adamskaat |
| Plugin | |
| Version | 1.9.9 |
| Comparing to | |
| See all releases | |
Code changes from version 1.9.8 to 1.9.9
- CountdownInit.php +2 -2
- assets/views/main/clock1View.php +3 -3
- assets/views/main/clock2View.php +3 -3
- assets/views/main/clock3View.php +1 -1
- classes/countdown/Countdown.php +4 -4
- config/config.php +4 -4
- countdown-builder.php +1 -1
- readme.txt +6 -1
CountdownInit.php
CHANGED
|
@@ -24,10 +24,10 @@ class CountdownInit {
|
|
| 24 |
public function init() {
|
| 25 |
register_activation_hook(YCD_PREFIX, array($this, 'activate'));
|
| 26 |
register_deactivation_hook(YCD_PREFIX, array($this, 'deactivate'));
|
| 27 |
-
add_action('admin_init', array($this, 'pluginRedirect'));
|
| 28 |
$this->includeData();
|
| 29 |
$this->actions();
|
| 30 |
$this->filters();
|
|
|
|
| 31 |
}
|
| 32 |
|
| 33 |
private function includeData() {
|
|
@@ -109,7 +109,7 @@ class CountdownInit {
|
|
| 109 |
}
|
| 110 |
|
| 111 |
public function pluginRedirect() {
|
| 112 |
-
if (!get_option('ycd_redirect')) {
|
| 113 |
update_option('ycd_redirect', 1);
|
| 114 |
exit(wp_redirect(admin_url('edit.php?post_type='.YCD_COUNTDOWN_POST_TYPE)));
|
| 115 |
}
|
| 24 |
public function init() {
|
| 25 |
register_activation_hook(YCD_PREFIX, array($this, 'activate'));
|
| 26 |
register_deactivation_hook(YCD_PREFIX, array($this, 'deactivate'));
|
|
|
|
| 27 |
$this->includeData();
|
| 28 |
$this->actions();
|
| 29 |
$this->filters();
|
| 30 |
+
add_action('admin_init', array($this, 'pluginRedirect'));
|
| 31 |
}
|
| 32 |
|
| 33 |
private function includeData() {
|
| 109 |
}
|
| 110 |
|
| 111 |
public function pluginRedirect() {
|
| 112 |
+
if (!get_option('ycd_redirect') && post_type_exists(YCD_COUNTDOWN_POST_TYPE)) {
|
| 113 |
update_option('ycd_redirect', 1);
|
| 114 |
exit(wp_redirect(admin_url('edit.php?post_type='.YCD_COUNTDOWN_POST_TYPE)));
|
| 115 |
}
|
assets/views/main/clock1View.php
CHANGED
|
@@ -44,7 +44,7 @@ if(YCD_PKG_VERSION == YCD_FREE_VERSION) {
|
|
| 44 |
|
| 45 |
<div class="row form-group">
|
| 46 |
<div class="col-md-6">
|
| 47 |
-
<label for="ycd-clock1-dial1-color" class=""><?php _e('
|
| 48 |
</div>
|
| 49 |
<div class="col-md-5 ycd-option-wrapper<?php echo $isPro; ?>">
|
| 50 |
<div class="minicolors minicolors-theme-default minicolors-position-bottom minicolors-position-left">
|
|
@@ -55,7 +55,7 @@ if(YCD_PKG_VERSION == YCD_FREE_VERSION) {
|
|
| 55 |
|
| 56 |
<div class="row form-group">
|
| 57 |
<div class="col-md-6">
|
| 58 |
-
<label for="ycd-clock1-dial2-color" class=""><?php _e('
|
| 59 |
</div>
|
| 60 |
<div class="col-md-5 ycd-option-wrapper<?php echo $isPro; ?>">
|
| 61 |
<div class="minicolors minicolors-theme-default minicolors-position-bottom minicolors-position-left">
|
|
@@ -66,7 +66,7 @@ if(YCD_PKG_VERSION == YCD_FREE_VERSION) {
|
|
| 66 |
|
| 67 |
<div class="row form-group">
|
| 68 |
<div class="col-md-6">
|
| 69 |
-
<label for="ycd-clock1-dial3-color" class=""><?php _e('
|
| 70 |
</div>
|
| 71 |
<div class="col-md-5 ycd-option-wrapper<?php echo $isPro; ?>">
|
| 72 |
<div class="minicolors minicolors-theme-default minicolors-position-bottom minicolors-position-left">
|
| 44 |
|
| 45 |
<div class="row form-group">
|
| 46 |
<div class="col-md-6">
|
| 47 |
+
<label for="ycd-clock1-dial1-color" class=""><?php _e('Detail 1 color', YCD_TEXT_DOMAIN); echo $proSpan; ?></label>
|
| 48 |
</div>
|
| 49 |
<div class="col-md-5 ycd-option-wrapper<?php echo $isPro; ?>">
|
| 50 |
<div class="minicolors minicolors-theme-default minicolors-position-bottom minicolors-position-left">
|
| 55 |
|
| 56 |
<div class="row form-group">
|
| 57 |
<div class="col-md-6">
|
| 58 |
+
<label for="ycd-clock1-dial2-color" class=""><?php _e('Detail 2 color', YCD_TEXT_DOMAIN); echo $proSpan; ?></label>
|
| 59 |
</div>
|
| 60 |
<div class="col-md-5 ycd-option-wrapper<?php echo $isPro; ?>">
|
| 61 |
<div class="minicolors minicolors-theme-default minicolors-position-bottom minicolors-position-left">
|
| 66 |
|
| 67 |
<div class="row form-group">
|
| 68 |
<div class="col-md-6">
|
| 69 |
+
<label for="ycd-clock1-dial3-color" class=""><?php _e('Detail 3 color', YCD_TEXT_DOMAIN); echo $proSpan; ?></label>
|
| 70 |
</div>
|
| 71 |
<div class="col-md-5 ycd-option-wrapper<?php echo $isPro; ?>">
|
| 72 |
<div class="minicolors minicolors-theme-default minicolors-position-bottom minicolors-position-left">
|
assets/views/main/clock2View.php
CHANGED
|
@@ -34,7 +34,7 @@ if(YCD_PKG_VERSION == YCD_FREE_VERSION) {
|
|
| 34 |
|
| 35 |
<div class="row form-group">
|
| 36 |
<div class="col-md-6">
|
| 37 |
-
<label for="ycd-clock2-dial1-color" class=""><?php _e('
|
| 38 |
</div>
|
| 39 |
<div class="col-md-5 ycd-option-wrapper<?php echo $isPro; ?>">
|
| 40 |
<div class="minicolors minicolors-theme-default minicolors-position-bottom minicolors-position-left">
|
|
@@ -45,7 +45,7 @@ if(YCD_PKG_VERSION == YCD_FREE_VERSION) {
|
|
| 45 |
|
| 46 |
<div class="row form-group">
|
| 47 |
<div class="col-md-6">
|
| 48 |
-
<label for="ycd-clock2-dial2-color" class=""><?php _e('
|
| 49 |
</div>
|
| 50 |
<div class="col-md-5 ycd-option-wrapper<?php echo $isPro; ?>">
|
| 51 |
<div class="minicolors minicolors-theme-default minicolors-position-bottom minicolors-position-left">
|
|
@@ -56,7 +56,7 @@ if(YCD_PKG_VERSION == YCD_FREE_VERSION) {
|
|
| 56 |
|
| 57 |
<div class="row form-group">
|
| 58 |
<div class="col-md-6">
|
| 59 |
-
<label for="ycd-clock2-dial3-color" class=""><?php _e('
|
| 60 |
</div>
|
| 61 |
<div class="col-md-5 ycd-option-wrapper<?php echo $isPro; ?>">
|
| 62 |
<div class="minicolors minicolors-theme-default minicolors-position-bottom minicolors-position-left">
|
| 34 |
|
| 35 |
<div class="row form-group">
|
| 36 |
<div class="col-md-6">
|
| 37 |
+
<label for="ycd-clock2-dial1-color" class=""><?php _e('Detail 1 color', YCD_TEXT_DOMAIN); echo $proSpan; ?></label>
|
| 38 |
</div>
|
| 39 |
<div class="col-md-5 ycd-option-wrapper<?php echo $isPro; ?>">
|
| 40 |
<div class="minicolors minicolors-theme-default minicolors-position-bottom minicolors-position-left">
|
| 45 |
|
| 46 |
<div class="row form-group">
|
| 47 |
<div class="col-md-6">
|
| 48 |
+
<label for="ycd-clock2-dial2-color" class=""><?php _e('Detail 2 color', YCD_TEXT_DOMAIN); echo $proSpan; ?></label>
|
| 49 |
</div>
|
| 50 |
<div class="col-md-5 ycd-option-wrapper<?php echo $isPro; ?>">
|
| 51 |
<div class="minicolors minicolors-theme-default minicolors-position-bottom minicolors-position-left">
|
| 56 |
|
| 57 |
<div class="row form-group">
|
| 58 |
<div class="col-md-6">
|
| 59 |
+
<label for="ycd-clock2-dial3-color" class=""><?php _e('Detail 3 color', YCD_TEXT_DOMAIN); echo $proSpan; ?></label>
|
| 60 |
</div>
|
| 61 |
<div class="col-md-5 ycd-option-wrapper<?php echo $isPro; ?>">
|
| 62 |
<div class="minicolors minicolors-theme-default minicolors-position-bottom minicolors-position-left">
|
assets/views/main/clock3View.php
CHANGED
|
@@ -35,7 +35,7 @@ if(YCD_PKG_VERSION == YCD_FREE_VERSION) {
|
|
| 35 |
|
| 36 |
<div class="row form-group">
|
| 37 |
<div class="col-md-6">
|
| 38 |
-
<label for="ycd-clock3-dial1-color" class=""><?php _e('
|
| 39 |
</div>
|
| 40 |
<div class="col-md-5 ycd-option-wrapper<?php echo $isPro; ?>">
|
| 41 |
<div class="minicolors minicolors-theme-default minicolors-position-bottom minicolors-position-left">
|
| 35 |
|
| 36 |
<div class="row form-group">
|
| 37 |
<div class="col-md-6">
|
| 38 |
+
<label for="ycd-clock3-dial1-color" class=""><?php _e('Detail 1 color', YCD_TEXT_DOMAIN); echo $proSpan; ?></label>
|
| 39 |
</div>
|
| 40 |
<div class="col-md-5 ycd-option-wrapper<?php echo $isPro; ?>">
|
| 41 |
<div class="minicolors minicolors-theme-default minicolors-position-bottom minicolors-position-left">
|
classes/countdown/Countdown.php
CHANGED
|
@@ -1065,12 +1065,12 @@ abstract class Countdown {
|
|
| 1065 |
$options['ycd-count-up-from-end-date'] = $this->getOptionValue('ycd-count-up-from-end-date');
|
| 1066 |
$options['ycd-schedule-time-zone'] = $this->getOptionValue('ycd-schedule-time-zone');
|
| 1067 |
// Day numbers
|
| 1068 |
-
|
| 1069 |
$options['startDay'] = $this->getOptionValue('ycd-schedule-start-day');
|
| 1070 |
-
$options['startDayNumber'] =
|
| 1071 |
$options['endDay'] = $this->getOptionValue('ycd-schedule-end-day');
|
| 1072 |
-
$options['endDayNumber'] =
|
| 1073 |
-
$options['currentDayNumber'] =
|
| 1074 |
$options['ycd-schedule-end-to'] = $this->getOptionValue('ycd-schedule-end-to');
|
| 1075 |
$options['ycd-schedule-start-from'] = $this->getOptionValue('ycd-schedule-start-from');
|
| 1076 |
$options['ycd-countdown-showing-limitation'] = $this->getOptionValue('ycd-countdown-showing-limitation');
|
| 1065 |
$options['ycd-count-up-from-end-date'] = $this->getOptionValue('ycd-count-up-from-end-date');
|
| 1066 |
$options['ycd-schedule-time-zone'] = $this->getOptionValue('ycd-schedule-time-zone');
|
| 1067 |
// Day numbers
|
| 1068 |
+
|
| 1069 |
$options['startDay'] = $this->getOptionValue('ycd-schedule-start-day');
|
| 1070 |
+
$options['startDayNumber'] = @$modifiedSavedData['startDayNumber'];
|
| 1071 |
$options['endDay'] = $this->getOptionValue('ycd-schedule-end-day');
|
| 1072 |
+
$options['endDayNumber'] = @$modifiedSavedData['endDayNumber'];
|
| 1073 |
+
$options['currentDayNumber'] = @$modifiedSavedData['currentDayNumber'];
|
| 1074 |
$options['ycd-schedule-end-to'] = $this->getOptionValue('ycd-schedule-end-to');
|
| 1075 |
$options['ycd-schedule-start-from'] = $this->getOptionValue('ycd-schedule-start-from');
|
| 1076 |
$options['ycd-countdown-showing-limitation'] = $this->getOptionValue('ycd-countdown-showing-limitation');
|
config/config.php
CHANGED
|
@@ -70,8 +70,8 @@ class YcdCountdownConfig {
|
|
| 70 |
self::addDefine('YCD_CRON_REPEAT_INTERVAL', 1);
|
| 71 |
self::addDefine('YCD_AJAX_SUCCESS', 1);
|
| 72 |
self::addDefine('YCD_TABLE_LIMIT', 15);
|
| 73 |
-
self::addDefine('YCD_VERSION_PRO', 1.
|
| 74 |
-
self::addDefine('YCD_VERSION', 1.
|
| 75 |
self::addDefine('YCD_FREE_VERSION', 1);
|
| 76 |
self::addDefine('YCD_SILVER_VERSION', 2);
|
| 77 |
self::addDefine('YCD_GOLD_VERSION', 3);
|
|
@@ -79,9 +79,9 @@ class YcdCountdownConfig {
|
|
| 79 |
self::addDefine('YCD_EXTENSION_VERSION', 99);
|
| 80 |
require_once(dirname(__FILE__).'/config-pkg.php');
|
| 81 |
|
| 82 |
-
$versionText = '1.9.
|
| 83 |
if (YCD_PKG_VERSION != YCD_FREE_VERSION) {
|
| 84 |
-
$versionText = '1.8.
|
| 85 |
}
|
| 86 |
self::addDefine('YCD_VERSION_TEXT', $versionText);
|
| 87 |
self::addDefine('YCD_LAST_UPDATE', 'Jan 14');
|
| 70 |
self::addDefine('YCD_CRON_REPEAT_INTERVAL', 1);
|
| 71 |
self::addDefine('YCD_AJAX_SUCCESS', 1);
|
| 72 |
self::addDefine('YCD_TABLE_LIMIT', 15);
|
| 73 |
+
self::addDefine('YCD_VERSION_PRO', 1.85);
|
| 74 |
+
self::addDefine('YCD_VERSION', 1.99);
|
| 75 |
self::addDefine('YCD_FREE_VERSION', 1);
|
| 76 |
self::addDefine('YCD_SILVER_VERSION', 2);
|
| 77 |
self::addDefine('YCD_GOLD_VERSION', 3);
|
| 79 |
self::addDefine('YCD_EXTENSION_VERSION', 99);
|
| 80 |
require_once(dirname(__FILE__).'/config-pkg.php');
|
| 81 |
|
| 82 |
+
$versionText = '1.9.9';
|
| 83 |
if (YCD_PKG_VERSION != YCD_FREE_VERSION) {
|
| 84 |
+
$versionText = '1.8.5';
|
| 85 |
}
|
| 86 |
self::addDefine('YCD_VERSION_TEXT', $versionText);
|
| 87 |
self::addDefine('YCD_LAST_UPDATE', 'Jan 14');
|
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: 1.9.
|
| 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: 1.9.9
|
| 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.6.1
|
| 6 |
-
Stable tag: 1.9.
|
| 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 |
= 1.9.8 =
|
| 71 |
* Simple countdown Numbers Color
|
| 72 |
* Simple countdown Labels Color
|
| 3 |
Tags: countdown, timer, countdown timer
|
| 4 |
Requires at least: 3.8
|
| 5 |
Tested up to: 5.6.1
|
| 6 |
+
Stable tag: 1.9.9
|
| 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 |
+
= 1.9.9 =
|
| 71 |
+
* Fixed countdown activation issue
|
| 72 |
+
* Fixed circle countdown
|
| 73 |
+
* Countdown admin panel options label typo fixes
|
| 74 |
+
|
| 75 |
= 1.9.8 =
|
| 76 |
* Simple countdown Numbers Color
|
| 77 |
* Simple countdown Labels Color
|
