Version Description
- Multiple Simple countdowns dates confilict fixed
Download this release
Release Info
Developer | adamskaat |
Plugin | Countdown, Coming Soon – Countdown & Clock |
Version | 2.0.4 |
Comparing to | |
See all releases |
Code changes from version 2.0.3 to 2.0.4
- assets/js/YcdSimpleCountdown.js +4 -1
- classes/countdown/SimpleCountdown.php +2 -1
- config/config.php +6 -6
- config/optionsConfig.php +1 -1
- countdown-builder.php +1 -1
- readme.txt +4 -1
assets/js/YcdSimpleCountdown.js
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
function YcdSimpleCountdown()
|
2 |
{
|
3 |
this.seconds = 0;
|
|
|
4 |
this.doubeleDigits = false;
|
5 |
this.countdownContainer = jQuery('.ycd-simple-container');
|
6 |
}
|
@@ -240,6 +241,7 @@ YcdSimpleCountdown.prototype.countdown = function()
|
|
240 |
{
|
241 |
var unites = ['days', 'hours', 'minutes', 'seconds'];
|
242 |
var that = this;
|
|
|
243 |
var countdownWrapper = jQuery('.ycd-simple-wrapper-'+this.id);
|
244 |
var runCountdown = function() {
|
245 |
|
@@ -258,7 +260,7 @@ YcdSimpleCountdown.prototype.countdown = function()
|
|
258 |
|
259 |
for (var i in unites) {
|
260 |
var unite = unites[i];
|
261 |
-
var selector = '.ycd-simple-countdown-'+unite+'-time';
|
262 |
var currentUniteValue = unitesValues[unite];
|
263 |
if (currentUniteValue < 10 && that.doubeleDigits) {
|
264 |
currentUniteValue = "0" +currentUniteValue;
|
@@ -285,6 +287,7 @@ YcdSimpleCountdown.prototype.addTimeToClock = function()
|
|
285 |
var options = this.options;
|
286 |
var seconds = this.getSeconds(options);
|
287 |
this.seconds = seconds*1000;
|
|
|
288 |
this.options['allSeconds'] = seconds;
|
289 |
this.savedOptions = this.options;
|
290 |
};
|
1 |
function YcdSimpleCountdown()
|
2 |
{
|
3 |
this.seconds = 0;
|
4 |
+
this.id = 0;
|
5 |
this.doubeleDigits = false;
|
6 |
this.countdownContainer = jQuery('.ycd-simple-container');
|
7 |
}
|
241 |
{
|
242 |
var unites = ['days', 'hours', 'minutes', 'seconds'];
|
243 |
var that = this;
|
244 |
+
var id = that.id;
|
245 |
var countdownWrapper = jQuery('.ycd-simple-wrapper-'+this.id);
|
246 |
var runCountdown = function() {
|
247 |
|
260 |
|
261 |
for (var i in unites) {
|
262 |
var unite = unites[i];
|
263 |
+
var selector = '.ycd-simple-mode-textUnderCountdown-'+id+' .ycd-simple-countdown-'+unite+'-time';
|
264 |
var currentUniteValue = unitesValues[unite];
|
265 |
if (currentUniteValue < 10 && that.doubeleDigits) {
|
266 |
currentUniteValue = "0" +currentUniteValue;
|
287 |
var options = this.options;
|
288 |
var seconds = this.getSeconds(options);
|
289 |
this.seconds = seconds*1000;
|
290 |
+
this.id = options['id'];
|
291 |
this.options['allSeconds'] = seconds;
|
292 |
this.savedOptions = this.options;
|
293 |
};
|
classes/countdown/SimpleCountdown.php
CHANGED
@@ -109,9 +109,10 @@ class SimpleCountdown extends Countdown
|
|
109 |
$this->renderScripts();
|
110 |
$lastUnite = end($availableUnites);
|
111 |
$mode = $this->getMode();
|
|
|
112 |
ob_start();
|
113 |
?>
|
114 |
-
<div class="ycd-simple-mode-<?php echo $mode; ?>">
|
115 |
<?php foreach($unites as $key => $unite): ?>
|
116 |
<?php
|
117 |
$hideDotsClassName = '';
|
109 |
$this->renderScripts();
|
110 |
$lastUnite = end($availableUnites);
|
111 |
$mode = $this->getMode();
|
112 |
+
$id = $this->getId();
|
113 |
ob_start();
|
114 |
?>
|
115 |
+
<div class="ycd-simple-mode-<?php echo $mode; ?> ycd-simple-mode-<?php echo $mode.'-'.$id; ?>">
|
116 |
<?php foreach($unites as $key => $unite): ?>
|
117 |
<?php
|
118 |
$hideDotsClassName = '';
|
config/config.php
CHANGED
@@ -74,8 +74,8 @@ class YcdCountdownConfig
|
|
74 |
self::addDefine('YCD_CRON_REPEAT_INTERVAL', 1);
|
75 |
self::addDefine('YCD_AJAX_SUCCESS', 1);
|
76 |
self::addDefine('YCD_TABLE_LIMIT', 15);
|
77 |
-
self::addDefine('YCD_VERSION_PRO', 1.
|
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.
|
89 |
}
|
90 |
self::addDefine('YCD_VERSION_TEXT', $versionText);
|
91 |
-
self::addDefine('YCD_LAST_UPDATE', '
|
92 |
-
self::addDefine('YCD_NEXT_UPDATE', 'March
|
93 |
}
|
94 |
|
95 |
public static function displaySettings()
|
74 |
self::addDefine('YCD_CRON_REPEAT_INTERVAL', 1);
|
75 |
self::addDefine('YCD_AJAX_SUCCESS', 1);
|
76 |
self::addDefine('YCD_TABLE_LIMIT', 15);
|
77 |
+
self::addDefine('YCD_VERSION_PRO', 1.91);
|
78 |
+
self::addDefine('YCD_VERSION', 2.04);
|
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.4';
|
87 |
if (YCD_PKG_VERSION != YCD_FREE_VERSION) {
|
88 |
+
$versionText = '1.9.1';
|
89 |
}
|
90 |
self::addDefine('YCD_VERSION_TEXT', $versionText);
|
91 |
+
self::addDefine('YCD_LAST_UPDATE', 'March 22');
|
92 |
+
self::addDefine('YCD_NEXT_UPDATE', 'March 29');
|
93 |
}
|
94 |
|
95 |
public static function displaySettings()
|
config/optionsConfig.php
CHANGED
@@ -336,7 +336,7 @@ class YcdCountdownOptionsConfig
|
|
336 |
$options[] = array('name' => 'ycd-simple-minutes-text', 'type' => 'text', 'defaultValue' => __('Mins', YCD_TEXT_DOMAIN));
|
337 |
$options[] = array('name' => 'ycd-simple-enable-seconds', 'type' => 'checkbox', 'defaultValue' => 'on');
|
338 |
$options[] = array('name' => 'ycd-simple-seconds-text', 'type' => 'text', 'defaultValue' => __('Secs', YCD_TEXT_DOMAIN));
|
339 |
-
$options[] = array('name' => 'ycd-enable-simple-double-digits', 'type' => 'checkbox', 'defaultValue' => '
|
340 |
|
341 |
$options[] = array('name' => 'ycd-simple-numbers-font-size', 'type' => 'text', 'defaultValue' => __('35px', YCD_TEXT_DOMAIN));
|
342 |
$options[] = array('name' => 'ycd-simple-text-font-size', 'type' => 'text', 'defaultValue' => __('12px', YCD_TEXT_DOMAIN));
|
336 |
$options[] = array('name' => 'ycd-simple-minutes-text', 'type' => 'text', 'defaultValue' => __('Mins', YCD_TEXT_DOMAIN));
|
337 |
$options[] = array('name' => 'ycd-simple-enable-seconds', 'type' => 'checkbox', 'defaultValue' => 'on');
|
338 |
$options[] = array('name' => 'ycd-simple-seconds-text', 'type' => 'text', 'defaultValue' => __('Secs', YCD_TEXT_DOMAIN));
|
339 |
+
$options[] = array('name' => 'ycd-enable-simple-double-digits', 'type' => 'checkbox', 'defaultValue' => '');
|
340 |
|
341 |
$options[] = array('name' => 'ycd-simple-numbers-font-size', 'type' => 'text', 'defaultValue' => __('35px', YCD_TEXT_DOMAIN));
|
342 |
$options[] = array('name' => 'ycd-simple-text-font-size', 'type' => 'text', 'defaultValue' => __('12px', YCD_TEXT_DOMAIN));
|
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.4
|
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,9 @@ 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.3 =
|
71 |
* Simple countdown double digits
|
72 |
|
3 |
Tags: countdown, timer, countdown timer
|
4 |
Requires at least: 3.8
|
5 |
Tested up to: 5.7
|
6 |
+
Stable tag: 2.0.4
|
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.4 =
|
71 |
+
* Multiple Simple countdowns dates confilict fixed
|
72 |
+
|
73 |
= 2.0.3 =
|
74 |
* Simple countdown double digits
|
75 |
|