Version Description
- Circle countdown text margin top (new)
- Circle countdown numbers margin top (new)
- Coming Soon Background Video (new)
Download this release
Release Info
| Developer | adamskaat |
| Plugin | |
| Version | 1.6.8 |
| Comparing to | |
| See all releases | |
Code changes from version 1.6.7 to 1.6.8
- assets/js/Countdown.js +6 -2
- assets/views/admin/comingSoonDesign.php +21 -0
- assets/views/cricleMainView.php +16 -0
- classes/countdown/CircleCountdown.php +4 -0
- classes/countdown/ComingSoon.php +8 -1
- countdown-builder.php +1 -1
- helpers/AdminHelper.php +8 -0
- readme.txt +6 -1
assets/js/Countdown.js
CHANGED
|
@@ -452,7 +452,7 @@ YcdCountdown.prototype.changeFontStyle = function() {
|
|
| 452 |
};
|
| 453 |
|
| 454 |
YcdCountdown.prototype.changeFontSize = function() {
|
| 455 |
-
var fontSize = jQuery('.js-countdown-font-size');
|
| 456 |
|
| 457 |
if(!fontSize) {
|
| 458 |
return false;
|
|
@@ -467,6 +467,7 @@ YcdCountdown.prototype.changeFontSize = function() {
|
|
| 467 |
YcdCountdown.prototype.changeTextStyles = function() {
|
| 468 |
var circle = jQuery('.ycd-time-circle');
|
| 469 |
var fontSize = jQuery('.js-countdown-font-size').val()+'px';
|
|
|
|
| 470 |
var fontWeight = jQuery('.js-countdown-font-weight').val();
|
| 471 |
var fontFamily = jQuery('.js-countdown-font-family').val();
|
| 472 |
var fontStyle = jQuery('.js-countdown-font-style').val();
|
|
@@ -474,6 +475,7 @@ YcdCountdown.prototype.changeTextStyles = function() {
|
|
| 474 |
circle.find('h4').each(function() {
|
| 475 |
jQuery(this).attr('style',
|
| 476 |
'font-size: ' + fontSize+' !important;' +
|
|
|
|
| 477 |
'font-weight: ' + fontWeight+' !important;' +
|
| 478 |
'font-family:' + fontFamily + '!important;'+
|
| 479 |
'font-style:' + fontStyle + '!important'
|
|
@@ -482,7 +484,7 @@ YcdCountdown.prototype.changeTextStyles = function() {
|
|
| 482 |
};
|
| 483 |
|
| 484 |
YcdCountdown.prototype.changeNumberStyles = function() {
|
| 485 |
-
var changeNumberTarget = jQuery('.js-countdown-number-size,.js-countdown-number-font-weight, .js-countdown-number-font, .js-countdown-number-font-style');
|
| 486 |
var that = this;
|
| 487 |
|
| 488 |
if(!changeNumberTarget.length) {
|
|
@@ -496,6 +498,7 @@ YcdCountdown.prototype.changeNumberStyles = function() {
|
|
| 496 |
YcdCountdown.prototype.setNumberStyles = function() {
|
| 497 |
var circle = jQuery('.ycd-time-circle');
|
| 498 |
var fontSize = jQuery('.js-countdown-number-size').val()+'px';
|
|
|
|
| 499 |
var fontWeight = jQuery('.js-countdown-number-font-weight').val();
|
| 500 |
var fontFamily = jQuery('.js-countdown-number-font').val();
|
| 501 |
var fontStyle = jQuery('.js-countdown-number-font-style').val();
|
|
@@ -503,6 +506,7 @@ YcdCountdown.prototype.setNumberStyles = function() {
|
|
| 503 |
circle.find('span').each(function() {
|
| 504 |
jQuery(this).attr('style',
|
| 505 |
'font-size: ' + fontSize+' !important;' +
|
|
|
|
| 506 |
'font-weight: ' + fontWeight+' !important;' +
|
| 507 |
'font-family:' + fontFamily + '!important;'+
|
| 508 |
'font-style:' + fontStyle + '!important'
|
| 452 |
};
|
| 453 |
|
| 454 |
YcdCountdown.prototype.changeFontSize = function() {
|
| 455 |
+
var fontSize = jQuery('.js-countdown-font-size, .js-countdown-text-style');
|
| 456 |
|
| 457 |
if(!fontSize) {
|
| 458 |
return false;
|
| 467 |
YcdCountdown.prototype.changeTextStyles = function() {
|
| 468 |
var circle = jQuery('.ycd-time-circle');
|
| 469 |
var fontSize = jQuery('.js-countdown-font-size').val()+'px';
|
| 470 |
+
var marginTop = jQuery('.js-countdown-text-margin-top').val()+'px';
|
| 471 |
var fontWeight = jQuery('.js-countdown-font-weight').val();
|
| 472 |
var fontFamily = jQuery('.js-countdown-font-family').val();
|
| 473 |
var fontStyle = jQuery('.js-countdown-font-style').val();
|
| 475 |
circle.find('h4').each(function() {
|
| 476 |
jQuery(this).attr('style',
|
| 477 |
'font-size: ' + fontSize+' !important;' +
|
| 478 |
+
'margin-top: ' + marginTop+' !important;' +
|
| 479 |
'font-weight: ' + fontWeight+' !important;' +
|
| 480 |
'font-family:' + fontFamily + '!important;'+
|
| 481 |
'font-style:' + fontStyle + '!important'
|
| 484 |
};
|
| 485 |
|
| 486 |
YcdCountdown.prototype.changeNumberStyles = function() {
|
| 487 |
+
var changeNumberTarget = jQuery('.js-countdown-number-size,.js-countdown-number-font-weight, .js-countdown-number-font, .js-countdown-number-font-style, .js-countdown-number-style');
|
| 488 |
var that = this;
|
| 489 |
|
| 490 |
if(!changeNumberTarget.length) {
|
| 498 |
YcdCountdown.prototype.setNumberStyles = function() {
|
| 499 |
var circle = jQuery('.ycd-time-circle');
|
| 500 |
var fontSize = jQuery('.js-countdown-number-size').val()+'px';
|
| 501 |
+
var marginTop = jQuery('.js-countdown-number-margin-bottom').val()+'px';
|
| 502 |
var fontWeight = jQuery('.js-countdown-number-font-weight').val();
|
| 503 |
var fontFamily = jQuery('.js-countdown-number-font').val();
|
| 504 |
var fontStyle = jQuery('.js-countdown-number-font-style').val();
|
| 506 |
circle.find('span').each(function() {
|
| 507 |
jQuery(this).attr('style',
|
| 508 |
'font-size: ' + fontSize+' !important;' +
|
| 509 |
+
'margin-top: ' + marginTop+' !important;' +
|
| 510 |
'font-weight: ' + fontWeight+' !important;' +
|
| 511 |
'font-family:' + fontFamily + '!important;'+
|
| 512 |
'font-style:' + fontStyle + '!important'
|
assets/views/admin/comingSoonDesign.php
CHANGED
|
@@ -81,6 +81,27 @@ $proSpan = '';
|
|
| 81 |
</div>
|
| 82 |
</div>
|
| 83 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 84 |
<?php if(YCD_PKG_VERSION == YCD_FREE_VERSION): ?>
|
| 85 |
<a href="<?= YCD_COUNTDOWN_PRO_URL; ?>" target="_blank">
|
| 86 |
<div class="ycd-pro ycd-pro-options-div">
|
| 81 |
</div>
|
| 82 |
</div>
|
| 83 |
</div>
|
| 84 |
+
<div class="row form-group">
|
| 85 |
+
<div class="col-md-6">
|
| 86 |
+
<label for="ycd-coming-soon-bg-video" class="ycd-label-of-switch"><?php _e('Background Video', YCD_TEXT_DOMAIN); echo $proSpan; ?></label>
|
| 87 |
+
</div>
|
| 88 |
+
<div class="col-md-6 ycd-circles-width-wrapper ycd-option-wrapper<?php echo $isPro; ?>">
|
| 89 |
+
<label class="ycd-switch">
|
| 90 |
+
<input type="checkbox" id="ycd-coming-soon-bg-video" name="ycd-coming-soon-bg-video" class="ycd-accordion-checkbox js-ycd-bg-video" <?php echo $this->getOptionValue('ycd-coming-soon-bg-video'); ?>>
|
| 91 |
+
<span class="ycd-slider ycd-round"></span>
|
| 92 |
+
</label>
|
| 93 |
+
</div>
|
| 94 |
+
</div>
|
| 95 |
+
<div class="ycd-accordion-content ycd-hide-content">
|
| 96 |
+
<div class="row form-group">
|
| 97 |
+
<div class="col-md-6">
|
| 98 |
+
<input id="js-upload-video-button" class="js-countdown-video-btn btn btn-primary" type="button" value="<?php _e('Select Video', YCD_TEXT_DOMAIN)?>">
|
| 99 |
+
</div>
|
| 100 |
+
<div class="col-md-6 ycd-circles-width-wrapper">
|
| 101 |
+
<input type="url" name="ycd-coming-soon-bg-video-url" id="ycd-bg-video-url" class="form-control" value="<?php echo esc_attr($this->getOptionValue('ycd-coming-soon-bg-video-url')); ?>">
|
| 102 |
+
</div>
|
| 103 |
+
</div>
|
| 104 |
+
</div>
|
| 105 |
<?php if(YCD_PKG_VERSION == YCD_FREE_VERSION): ?>
|
| 106 |
<a href="<?= YCD_COUNTDOWN_PRO_URL; ?>" target="_blank">
|
| 107 |
<div class="ycd-pro ycd-pro-options-div">
|
assets/views/cricleMainView.php
CHANGED
|
@@ -75,6 +75,14 @@ if (YCD_PKG_VERSION > YCD_FREE_VERSION) {
|
|
| 75 |
<?php echo AdminHelper::selectBox($defaultData['font-size'], esc_attr($textFontSize), array('name' => 'ycd-text-font-size', 'class' => 'js-ycd-select js-countdown-font-size')); ?>
|
| 76 |
</div>
|
| 77 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 78 |
<div class="row form-group">
|
| 79 |
<div class="col-md-5">
|
| 80 |
<label for="ycd-countdown-font-weight" class="ycd-label-of-select"><?php _e('Font Weight', YCD_TEXT_DOMAIN); ?></label>
|
|
@@ -114,6 +122,14 @@ if (YCD_PKG_VERSION > YCD_FREE_VERSION) {
|
|
| 114 |
<?php echo AdminHelper::selectBox($defaultData['font-size-number'], esc_attr($this->getOptionValue('ycd-countdown-number-size')), array('name' => 'ycd-countdown-number-size', 'class' => 'js-ycd-select js-countdown-number-size')); ?>
|
| 115 |
</div>
|
| 116 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 117 |
<div class="row form-group">
|
| 118 |
<div class="col-md-5">
|
| 119 |
<label for="ycd-countdown-number-font-weight" class="ycd-label-of-select"><?php _e('Font Weight', YCD_TEXT_DOMAIN); ?></label>
|
| 75 |
<?php echo AdminHelper::selectBox($defaultData['font-size'], esc_attr($textFontSize), array('name' => 'ycd-text-font-size', 'class' => 'js-ycd-select js-countdown-font-size')); ?>
|
| 76 |
</div>
|
| 77 |
</div>
|
| 78 |
+
<div class="row form-group">
|
| 79 |
+
<div class="col-md-5">
|
| 80 |
+
<label for="ycd-countdown-text-size" class="ycd-label-of-select"><?php _e('Margin Top', YCD_TEXT_DOMAIN); ?></label>
|
| 81 |
+
</div>
|
| 82 |
+
<div class="col-md-7">
|
| 83 |
+
<?php echo AdminHelper::selectBox($defaultData['circleTextMarginTop'], esc_attr($this->getOptionValue('ycd-text-margin-top')), array('name' => 'ycd-text-margin-top', 'class' => 'js-ycd-select js-countdown-text-margin-top js-countdown-text-style')); ?>
|
| 84 |
+
</div>
|
| 85 |
+
</div>
|
| 86 |
<div class="row form-group">
|
| 87 |
<div class="col-md-5">
|
| 88 |
<label for="ycd-countdown-font-weight" class="ycd-label-of-select"><?php _e('Font Weight', YCD_TEXT_DOMAIN); ?></label>
|
| 122 |
<?php echo AdminHelper::selectBox($defaultData['font-size-number'], esc_attr($this->getOptionValue('ycd-countdown-number-size')), array('name' => 'ycd-countdown-number-size', 'class' => 'js-ycd-select js-countdown-number-size')); ?>
|
| 123 |
</div>
|
| 124 |
</div>
|
| 125 |
+
<div class="row form-group">
|
| 126 |
+
<div class="col-md-5">
|
| 127 |
+
<label for="ycd-countdown-text-size" class="ycd-label-of-select"><?php _e('Margin Top', YCD_TEXT_DOMAIN); ?></label>
|
| 128 |
+
</div>
|
| 129 |
+
<div class="col-md-7">
|
| 130 |
+
<?php echo AdminHelper::selectBox($defaultData['circleNumberMarginTop'], esc_attr($this->getOptionValue('ycd-number-margin-top')), array('name' => 'ycd-number-margin-top', 'class' => 'js-ycd-select js-countdown-number-margin-bottom js-countdown-number-style')); ?>
|
| 131 |
+
</div>
|
| 132 |
+
</div>
|
| 133 |
<div class="row form-group">
|
| 134 |
<div class="col-md-5">
|
| 135 |
<label for="ycd-countdown-number-font-weight" class="ycd-label-of-select"><?php _e('Font Weight', YCD_TEXT_DOMAIN); ?></label>
|
classes/countdown/CircleCountdown.php
CHANGED
|
@@ -153,11 +153,13 @@ class CircleCountdown extends Countdown {
|
|
| 153 |
$id = $this->getId();
|
| 154 |
// text styles
|
| 155 |
$fontSize = $this->getOptionValue('ycd-text-font-size');
|
|
|
|
| 156 |
$fontWeight = $this->getOptionValue('ycd-countdown-font-weight');
|
| 157 |
$fontStyle = $this->getOptionValue('ycd-countdown-font-style');
|
| 158 |
$fontFamily = $this->getOptionValue('ycd-text-font-family');
|
| 159 |
// numbers styles
|
| 160 |
$fontSizeNumber = $this->getOptionValue('ycd-countdown-number-size');
|
|
|
|
| 161 |
$fontWeightNumber = $this->getOptionValue('ycd-countdown-number-font-weight');
|
| 162 |
$fontStyleNumber = $this->getOptionValue('ycd-countdown-number-font-style');
|
| 163 |
$fontFamilyNumber = $this->getOptionValue('ycd-countdown-number-font');
|
|
@@ -187,12 +189,14 @@ class CircleCountdown extends Countdown {
|
|
| 187 |
}
|
| 188 |
#ycd-circle-<?php echo $id; ?> h4 {
|
| 189 |
font-size: <?php echo $fontSize; ?>px !important;
|
|
|
|
| 190 |
font-weight: <?php echo $fontWeight; ?> !important;
|
| 191 |
font-style: <?php echo $fontStyle; ?> !important;
|
| 192 |
font-family: <?php echo $fontFamily; ?> !important;
|
| 193 |
}
|
| 194 |
#ycd-circle-<?php echo $id; ?> span {
|
| 195 |
font-size: <?php echo $fontSizeNumber; ?>px !important;
|
|
|
|
| 196 |
font-weight: <?php echo $fontWeightNumber; ?> !important;
|
| 197 |
font-style: <?php echo $fontStyleNumber; ?> !important;
|
| 198 |
font-family: <?php echo $fontFamilyNumber; ?> !important;
|
| 153 |
$id = $this->getId();
|
| 154 |
// text styles
|
| 155 |
$fontSize = $this->getOptionValue('ycd-text-font-size');
|
| 156 |
+
$marginTop = $this->getOptionValue('ycd-text-margin-top');
|
| 157 |
$fontWeight = $this->getOptionValue('ycd-countdown-font-weight');
|
| 158 |
$fontStyle = $this->getOptionValue('ycd-countdown-font-style');
|
| 159 |
$fontFamily = $this->getOptionValue('ycd-text-font-family');
|
| 160 |
// numbers styles
|
| 161 |
$fontSizeNumber = $this->getOptionValue('ycd-countdown-number-size');
|
| 162 |
+
$marginToNumber = $this->getOptionValue('ycd-number-margin-top');
|
| 163 |
$fontWeightNumber = $this->getOptionValue('ycd-countdown-number-font-weight');
|
| 164 |
$fontStyleNumber = $this->getOptionValue('ycd-countdown-number-font-style');
|
| 165 |
$fontFamilyNumber = $this->getOptionValue('ycd-countdown-number-font');
|
| 189 |
}
|
| 190 |
#ycd-circle-<?php echo $id; ?> h4 {
|
| 191 |
font-size: <?php echo $fontSize; ?>px !important;
|
| 192 |
+
margin-top: <?php echo $marginTop; ?>px !important;
|
| 193 |
font-weight: <?php echo $fontWeight; ?> !important;
|
| 194 |
font-style: <?php echo $fontStyle; ?> !important;
|
| 195 |
font-family: <?php echo $fontFamily; ?> !important;
|
| 196 |
}
|
| 197 |
#ycd-circle-<?php echo $id; ?> span {
|
| 198 |
font-size: <?php echo $fontSizeNumber; ?>px !important;
|
| 199 |
+
margin-top: <?php echo $marginToNumber; ?>px !important;
|
| 200 |
font-weight: <?php echo $fontWeightNumber; ?> !important;
|
| 201 |
font-style: <?php echo $fontStyleNumber; ?> !important;
|
| 202 |
font-family: <?php echo $fontFamilyNumber; ?> !important;
|
classes/countdown/ComingSoon.php
CHANGED
|
@@ -72,7 +72,14 @@ Class ComingSoon {
|
|
| 72 |
$defaults['ycd-coming-headline-color'] = '#000000';
|
| 73 |
$defaults['ycd-coming-message-color'] = '#000000';
|
| 74 |
$defaults['ycd-coming-soon-page-font-family'] = '';
|
| 75 |
-
$defaults['
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 76 |
|
| 77 |
return apply_filters('ycdComingSoonDefaults', $defaults);
|
| 78 |
}
|
| 72 |
$defaults['ycd-coming-headline-color'] = '#000000';
|
| 73 |
$defaults['ycd-coming-message-color'] = '#000000';
|
| 74 |
$defaults['ycd-coming-soon-page-font-family'] = '';
|
| 75 |
+
$defaults['ycd-coming-soon-bg-video'] = '';
|
| 76 |
+
$defaults['ycd-coming-soon-bg-video-url'] = '';
|
| 77 |
+
$defaults['checkboxes'] = array(
|
| 78 |
+
'ycd-enable-coming-soon',
|
| 79 |
+
'ycd-coming-soon-bg-image',
|
| 80 |
+
'ycd-coming-soon-add-countdown',
|
| 81 |
+
'ycd-coming-soon-bg-video'
|
| 82 |
+
);
|
| 83 |
|
| 84 |
return apply_filters('ycdComingSoonDefaults', $defaults);
|
| 85 |
}
|
countdown-builder.php
CHANGED
|
@@ -2,7 +2,7 @@
|
|
| 2 |
/**
|
| 3 |
* Plugin Name: Countdown builder
|
| 4 |
* Description: The best countdown plugin
|
| 5 |
-
* Version: 1.6.
|
| 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.6.8
|
| 6 |
* Author: Adam Skaat
|
| 7 |
* Author URI: https://edmonsoft.com/countdown
|
| 8 |
* License: GPLv2
|
helpers/AdminHelper.php
CHANGED
|
@@ -129,6 +129,14 @@ class AdminHelper {
|
|
| 129 |
for($i = 7; $i <= 15; $i++) {
|
| 130 |
$data['font-size'][$i] = __($i.'px', YCD_TEXT_DOMAIN);
|
| 131 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 132 |
|
| 133 |
for($i = 7; $i <= 100; $i++) {
|
| 134 |
$data['font-size-number'][$i] = __($i.'px', YCD_TEXT_DOMAIN);
|
| 129 |
for($i = 7; $i <= 15; $i++) {
|
| 130 |
$data['font-size'][$i] = __($i.'px', YCD_TEXT_DOMAIN);
|
| 131 |
}
|
| 132 |
+
|
| 133 |
+
for($i = 0; $i <= 22; $i++) {
|
| 134 |
+
$data['circleTextMarginTop'][$i] = __($i.'px', YCD_TEXT_DOMAIN);
|
| 135 |
+
}
|
| 136 |
+
|
| 137 |
+
for($i = 0; $i <= 22; $i++) {
|
| 138 |
+
$data['circleNumberMarginTop'][$i] = __($i.'px', YCD_TEXT_DOMAIN);
|
| 139 |
+
}
|
| 140 |
|
| 141 |
for($i = 7; $i <= 100; $i++) {
|
| 142 |
$data['font-size-number'][$i] = __($i.'px', YCD_TEXT_DOMAIN);
|
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.3.2
|
| 6 |
-
Stable tag: 1.6.
|
| 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 @@ Yes you can, we have Circle and Flipclock countdown popups.
|
|
| 64 |
You need to select the .zip file, there is no need to extract the zip file, just upload it.
|
| 65 |
|
| 66 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 67 |
= 1.6.7 =
|
| 68 |
* Countdown Shortcode metabox (new)
|
| 69 |
* Admin Design improvement
|
| 3 |
Tags: countdown, timer, countdown timer
|
| 4 |
Requires at least: 3.8
|
| 5 |
Tested up to: 5.3.2
|
| 6 |
+
Stable tag: 1.6.8
|
| 7 |
Requires PHP: 5.3
|
| 8 |
License: GPLv2 or later
|
| 9 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
| 64 |
You need to select the .zip file, there is no need to extract the zip file, just upload it.
|
| 65 |
|
| 66 |
== Changelog ==
|
| 67 |
+
= 1.6.8 =
|
| 68 |
+
* Circle countdown text margin top (new)
|
| 69 |
+
* Circle countdown numbers margin top (new)
|
| 70 |
+
* Coming Soon Background Video (new)
|
| 71 |
+
|
| 72 |
= 1.6.7 =
|
| 73 |
* Countdown Shortcode metabox (new)
|
| 74 |
* Admin Design improvement
|
