Version Description
- Font load issue
- Countdown button extension
- Code optimization
Download this release
Release Info
Developer | adamskaat |
Plugin | Countdown, Coming Soon – Countdown & Clock |
Version | 1.5.7 |
Comparing to | |
See all releases |
Code changes from version 1.5.6 to 1.5.7
- assets/css/admin.css +9 -0
- assets/img/countdownButton.png +0 -0
- assets/js/ycdGoogleFonts.js +1 -2
- assets/views/countdownButton.php +117 -0
- assets/views/types.php +1 -1
- classes/Installer.php +1 -1
- classes/countdown/CircleCountdown.php +3 -2
- classes/countdown/Countdown.php +19 -5
- config/config.php +10 -1
- config/optionsConfig.php +11 -0
- countdown-builder.php +1 -1
- helpers/AdminHelper.php +0 -1
- readme.txt +6 -2
assets/css/admin.css
CHANGED
@@ -58,6 +58,11 @@
|
|
58 |
background-size: 100% 100%;
|
59 |
}
|
60 |
|
|
|
|
|
|
|
|
|
|
|
61 |
.clock4-countdown,
|
62 |
.clock4-countdown-pro {
|
63 |
background-image: url("../img/clock4.png");
|
@@ -653,4 +658,8 @@ div.ycd-tabs-text-header > div.ycd-toggle-icon-open {
|
|
653 |
height:128px;
|
654 |
background-image: url(https://ps.w.org/scroll-to-top-builder/assets/icon-128x128.png?rev=1696507);
|
655 |
background-size:128px 128px;
|
|
|
|
|
|
|
|
|
656 |
}
|
58 |
background-size: 100% 100%;
|
59 |
}
|
60 |
|
61 |
+
.countdownButton-countdown-pro {
|
62 |
+
background-image: url("../img/countdownButton.png");
|
63 |
+
background-size: 100% 100%;
|
64 |
+
}
|
65 |
+
|
66 |
.clock4-countdown,
|
67 |
.clock4-countdown-pro {
|
68 |
background-image: url("../img/clock4.png");
|
658 |
height:128px;
|
659 |
background-image: url(https://ps.w.org/scroll-to-top-builder/assets/icon-128x128.png?rev=1696507);
|
660 |
background-size:128px 128px;
|
661 |
+
}
|
662 |
+
|
663 |
+
.ycd-extentsion-pro {
|
664 |
+
margin-right: 15px;
|
665 |
}
|
assets/img/countdownButton.png
ADDED
Binary file
|
assets/js/ycdGoogleFonts.js
CHANGED
@@ -46,8 +46,7 @@ WebFont.load({
|
|
46 |
'Roboto Condensed',
|
47 |
'Oswald',
|
48 |
'PT Sans',
|
49 |
-
'Montserrat'
|
50 |
-
'Helvetica'
|
51 |
]
|
52 |
}
|
53 |
});
|
46 |
'Roboto Condensed',
|
47 |
'Oswald',
|
48 |
'PT Sans',
|
49 |
+
'Montserrat'
|
|
|
50 |
]
|
51 |
}
|
52 |
});
|
assets/views/countdownButton.php
ADDED
@@ -0,0 +1,117 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div class="ycd-bootstrap-wrapper" style="text-align: right">
|
2 |
+
<div class="row form-group">
|
3 |
+
<div class="col-md-5">
|
4 |
+
<label for="ycd-countdown-enable-button" class="ycd-label-of-switch"><?php _e('Enable Button', YCD_TEXT_DOMAIN)?></label>
|
5 |
+
</div>
|
6 |
+
<div class="col-md-7">
|
7 |
+
<label class="ycd-switch">
|
8 |
+
<input type="checkbox" id="ycd-countdown-enable-button" data-id="0" name="ycd-countdown-enable-button" class="" <?php echo $typeObj->getOptionValue('ycd-countdown-enable-button'); ?>>
|
9 |
+
<span class="ycd-slider ycd-round"></span>
|
10 |
+
</label>
|
11 |
+
</div>
|
12 |
+
</div>
|
13 |
+
<div class="row form-group">
|
14 |
+
<div class="col-md-5">
|
15 |
+
<label for="ycd-button-name"><?php _e('Button name', YCD_TEXT_DOMAIN)?></label>
|
16 |
+
</div>
|
17 |
+
<div class="col-md-7">
|
18 |
+
<input id="ycd-button-name" class="form-control" type="text" name="ycd-button-name" value="<?php echo esc_attr($typeObj->getOptionValue('ycd-button-name'))?>">
|
19 |
+
</div>
|
20 |
+
</div>
|
21 |
+
<div class="row form-group">
|
22 |
+
<div class="col-md-5">
|
23 |
+
<label for="ycd-button-width"><?php _e('Button width', YCD_TEXT_DOMAIN)?></label>
|
24 |
+
</div>
|
25 |
+
<div class="col-md-7">
|
26 |
+
<input id="ycd-button-width" class="form-control" type="text" name="ycd-button-width" value="<?php echo esc_attr($typeObj->getOptionValue('ycd-button-width'))?>">
|
27 |
+
</div>
|
28 |
+
</div>
|
29 |
+
<div class="row form-group">
|
30 |
+
<div class="col-md-5">
|
31 |
+
<label for="ycd-button-height"><?php _e('Button height', YCD_TEXT_DOMAIN)?></label>
|
32 |
+
</div>
|
33 |
+
<div class="col-md-7">
|
34 |
+
<input id="ycd-button-height" class="form-control" type="text" name="ycd-button-height" value="<?php echo esc_attr($typeObj->getOptionValue('ycd-button-height'))?>">
|
35 |
+
</div>
|
36 |
+
</div>
|
37 |
+
<div class="row form-group">
|
38 |
+
<div class="col-md-5">
|
39 |
+
<label for="ycd-button-border-width"><?php _e('Button border width', YCD_TEXT_DOMAIN)?></label>
|
40 |
+
</div>
|
41 |
+
<div class="col-md-7">
|
42 |
+
<input id="ycd-button-border-width" class="form-control" type="text" name="ycd-button-border-width" value="<?php echo esc_attr($typeObj->getOptionValue('ycd-button-border-width'))?>">
|
43 |
+
</div>
|
44 |
+
</div>
|
45 |
+
<div class="row form-group">
|
46 |
+
<div class="col-md-5">
|
47 |
+
<label for="ycd-button-border-width"><?php _e('Button border radius', YCD_TEXT_DOMAIN)?></label>
|
48 |
+
</div>
|
49 |
+
<div class="col-md-7">
|
50 |
+
<input id="ycd-button-border-radius" class="form-control" type="number" name="ycd-button-border-radius" value="<?php echo esc_attr($typeObj->getOptionValue('ycd-button-border-radius'))?>">
|
51 |
+
</div>
|
52 |
+
</div>
|
53 |
+
<div class="row form-group">
|
54 |
+
<div class="col-md-5">
|
55 |
+
<label for="ycd-button-bg-color" class=""><?php _e('Background color', YCD_TEXT_DOMAIN);?></label>
|
56 |
+
</div>
|
57 |
+
<div class="col-md-7">
|
58 |
+
<div class="minicolors minicolors-theme-default minicolors-position-bottom minicolors-position-left">
|
59 |
+
<input type="text" id="ycd-button-bg-color" data-type="background-color" placeholder="<?php _e('Select color', YCD_TEXT_DOMAIN)?>" name="ycd-button-bg-color" class=" form-control js-ycd-button-color" value="<?= esc_attr($typeObj->getOptionValue('ycd-button-bg-color')); ?>">
|
60 |
+
</div>
|
61 |
+
</div>
|
62 |
+
</div>
|
63 |
+
<div class="row form-group">
|
64 |
+
<div class="col-md-5">
|
65 |
+
<label for="ycd-button-color" class=""><?php _e('Color', YCD_TEXT_DOMAIN);?></label>
|
66 |
+
</div>
|
67 |
+
<div class="col-md-7">
|
68 |
+
<div class="minicolors minicolors-theme-default minicolors-position-bottom minicolors-position-left">
|
69 |
+
<input type="text" id="ycd-button-color" data-type="color" placeholder="<?php _e('Select color', YCD_TEXT_DOMAIN)?>" name="ycd-button-color" class=" form-control js-ycd-button-color" value="<?= esc_attr($typeObj->getOptionValue('ycd-button-color')); ?>">
|
70 |
+
</div>
|
71 |
+
</div>
|
72 |
+
</div>
|
73 |
+
<div class="row form-group">
|
74 |
+
<div class="col-md-5">
|
75 |
+
<label for="ycd-button--border-color" class=""><?php _e('Border color', YCD_TEXT_DOMAIN);?></label>
|
76 |
+
</div>
|
77 |
+
<div class="col-md-7">
|
78 |
+
<div class="minicolors minicolors-theme-default minicolors-position-bottom minicolors-position-left">
|
79 |
+
<input type="text" id="ycd-button-border-color" data-type="border-color" placeholder="<?php _e('Select color', YCD_TEXT_DOMAIN)?>" name="ycd-button-border-color" class=" form-control js-ycd-button-color" value="<?= esc_attr($typeObj->getOptionValue('ycd-button-border-color')); ?>">
|
80 |
+
</div>
|
81 |
+
</div>
|
82 |
+
</div>
|
83 |
+
|
84 |
+
<div class="row form-group">
|
85 |
+
<div class="col-md-6">
|
86 |
+
<label class="ycd-label-of-switch">Action</label>
|
87 |
+
</div>
|
88 |
+
<div class="col-md-6">
|
89 |
+
</div>
|
90 |
+
</div>
|
91 |
+
<div class="row form-group">
|
92 |
+
<div class="col-md-5">
|
93 |
+
<label for="ycd-button-action-url"><?php _e('URL', YCD_TEXT_DOMAIN)?></label>
|
94 |
+
</div>
|
95 |
+
<div class="col-md-7">
|
96 |
+
<input id="ycd-button-action-url" class="form-control" type="url" name="ycd-button-action-url" value="<?php echo esc_url($typeObj->getOptionValue('ycd-button-action-url'))?>">
|
97 |
+
</div>
|
98 |
+
</div>
|
99 |
+
<div class="row form-group">
|
100 |
+
<div class="col-md-5">
|
101 |
+
<label for="ycd-button-action-url-tab" class="ycd-label-of-switch"><?php _e('Redirect to new tab', YCD_TEXT_DOMAIN); ?></label>
|
102 |
+
</div>
|
103 |
+
<div class="col-md-7">
|
104 |
+
<label class="ycd-switch">
|
105 |
+
<input type="checkbox" id="ycd-button-action-url-tab" name="ycd-button-action-url-tab" class="ycd-accordion-checkbox" <?php echo $typeObj->getOptionValue('ycd-button-action-url-tab'); ?>>
|
106 |
+
<span class="ycd-slider ycd-round"></span>
|
107 |
+
</label>
|
108 |
+
</div>
|
109 |
+
</div>
|
110 |
+
<a href="<?php echo YCD_COUNTDOWN_BUTTON_URL; ?>">
|
111 |
+
<div class="ycd-pro ycd-pro-options-div">
|
112 |
+
<button class="ycd-upgrade-button-red ycd-extentsion-pro">
|
113 |
+
<b class="h2">Unlock</b><br><span class="h5">Extension</span>
|
114 |
+
</button>
|
115 |
+
</div>
|
116 |
+
</a>
|
117 |
+
</div>
|
assets/views/types.php
CHANGED
@@ -36,7 +36,7 @@ $extensionsResult = AdminHelper::separateToActiveAndNotActive($currentExtensions
|
|
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-'
|
40 |
<div class="countdowns-div">
|
41 |
<div class="ycd-type-div <?php echo $extension['shortKey']?>-countdown-pro ycd-pro-version"></div>
|
42 |
<p class="ycd-type-title-pro ycd-type-title-extensions-pro"><?php echo __('PRO EXTENSION', YCD_TEXT_DOMAIN); ?></p>
|
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-analytics'; ?>">
|
40 |
<div class="countdowns-div">
|
41 |
<div class="ycd-type-div <?php echo $extension['shortKey']?>-countdown-pro ycd-pro-version"></div>
|
42 |
<p class="ycd-type-title-pro ycd-type-title-extensions-pro"><?php echo __('PRO EXTENSION', YCD_TEXT_DOMAIN); ?></p>
|
classes/Installer.php
CHANGED
@@ -15,7 +15,7 @@ class Installer {
|
|
15 |
}
|
16 |
|
17 |
/**
|
18 |
-
* Delete all
|
19 |
*
|
20 |
* @since 1.2.2
|
21 |
*
|
15 |
}
|
16 |
|
17 |
/**
|
18 |
+
* Delete all countdown builder post types posts
|
19 |
*
|
20 |
* @since 1.2.2
|
21 |
*
|
classes/countdown/CircleCountdown.php
CHANGED
@@ -28,9 +28,10 @@ class CircleCountdown extends Countdown {
|
|
28 |
public function includeStyles() {
|
29 |
$this->includeGeneralScripts();
|
30 |
wp_enqueue_script('jquery');
|
31 |
-
|
32 |
-
ScriptsIncluder::enqueueScript('ycdGoogleFonts.js');
|
33 |
if(YCD_PKG_VERSION > YCD_FREE_VERSION) {
|
|
|
|
|
34 |
ScriptsIncluder::registerScript('CountdownProFunctionality.js');
|
35 |
ScriptsIncluder::enqueueScript('CountdownProFunctionality.js');
|
36 |
}
|
28 |
public function includeStyles() {
|
29 |
$this->includeGeneralScripts();
|
30 |
wp_enqueue_script('jquery');
|
31 |
+
|
|
|
32 |
if(YCD_PKG_VERSION > YCD_FREE_VERSION) {
|
33 |
+
ScriptsIncluder::registerScript('ycdGoogleFonts.js');
|
34 |
+
ScriptsIncluder::enqueueScript('ycdGoogleFonts.js');
|
35 |
ScriptsIncluder::registerScript('CountdownProFunctionality.js');
|
36 |
ScriptsIncluder::enqueueScript('CountdownProFunctionality.js');
|
37 |
}
|
classes/countdown/Countdown.php
CHANGED
@@ -438,7 +438,8 @@ abstract class Countdown {
|
|
438 |
$metaboxes['generalOptions'] = array('title' => 'General Options', 'position' => 'normal', 'prioritet' => 'high');
|
439 |
$metaboxes['subscription'] = array('title' => 'Subscription Section', 'position' => 'normal', 'prioritet' => 'high');
|
440 |
$metaboxes['afterCountdownExpire'] = array('title' => 'After Expire', 'position' => 'normal', 'prioritet' => 'high');
|
441 |
-
|
|
|
442 |
return $metaboxes;
|
443 |
}
|
444 |
|
@@ -449,12 +450,21 @@ abstract class Countdown {
|
|
449 |
$proLabel = '<span class="ycd-pro-span"><b>'.__('pro', YCD_TEXT_DOMAIN).'</b></span>';
|
450 |
}
|
451 |
$metaboxes = $this->getMetaBoxes();
|
452 |
-
|
453 |
foreach ($metaboxes as $key => $metabox) {
|
454 |
-
|
|
|
|
|
|
|
|
|
455 |
}
|
456 |
}
|
457 |
|
|
|
|
|
|
|
|
|
|
|
458 |
public function afterCountdownExpire() {
|
459 |
require_once YCD_VIEWS_PATH.'afterExpire.php';
|
460 |
}
|
@@ -844,9 +854,13 @@ abstract class Countdown {
|
|
844 |
}
|
845 |
|
846 |
public function renderView() {
|
847 |
-
$
|
|
|
|
|
|
|
848 |
do_action('ycdGeneralScripts');
|
849 |
-
|
|
|
850 |
return $content;
|
851 |
}
|
852 |
}
|
438 |
$metaboxes['generalOptions'] = array('title' => 'General Options', 'position' => 'normal', 'prioritet' => 'high');
|
439 |
$metaboxes['subscription'] = array('title' => 'Subscription Section', 'position' => 'normal', 'prioritet' => 'high');
|
440 |
$metaboxes['afterCountdownExpire'] = array('title' => 'After Expire', 'position' => 'normal', 'prioritet' => 'high');
|
441 |
+
$metaboxes['countdownButton'] = array('title' => 'Countdown Button Extension', 'position' => 'normal', 'prioritet' => 'high', 'defaultActionView' => array($this, 'countdownButton'));
|
442 |
+
|
443 |
return $metaboxes;
|
444 |
}
|
445 |
|
450 |
$proLabel = '<span class="ycd-pro-span"><b>'.__('pro', YCD_TEXT_DOMAIN).'</b></span>';
|
451 |
}
|
452 |
$metaboxes = $this->getMetaBoxes();
|
453 |
+
$typeMetaboxObj = $this;
|
454 |
foreach ($metaboxes as $key => $metabox) {
|
455 |
+
$defaultActionView = array($this, $key);
|
456 |
+
if (!empty($metabox['defaultActionView'])) {
|
457 |
+
$defaultActionView = $metabox['defaultActionView'];
|
458 |
+
}
|
459 |
+
add_meta_box($key, __($metabox['title'], YCD_TEXT_DOMAIN), $defaultActionView, YCD_COUNTDOWN_POST_TYPE, $metabox['position'], $metabox['prioritet'], array('typeObj' => $this));
|
460 |
}
|
461 |
}
|
462 |
|
463 |
+
public function countdownButton() {
|
464 |
+
$typeObj = $this;
|
465 |
+
require_once YCD_VIEWS_PATH.'countdownButton.php';
|
466 |
+
}
|
467 |
+
|
468 |
public function afterCountdownExpire() {
|
469 |
require_once YCD_VIEWS_PATH.'afterExpire.php';
|
470 |
}
|
854 |
}
|
855 |
|
856 |
public function renderView() {
|
857 |
+
$id = $this->getId();
|
858 |
+
$content = '<div class="ycd-all-content-wrapper ycd-countdown-content-wrapper-'.$id.'">';
|
859 |
+
$content .= apply_filters('ycdCountdownBeforeContent', '', $this);
|
860 |
+
$content .= $this->getViewContent();
|
861 |
do_action('ycdGeneralScripts');
|
862 |
+
$content .= apply_filters('ycdCountdownAfterContent', '', $this);
|
863 |
+
$content .= '</div>';
|
864 |
return $content;
|
865 |
}
|
866 |
}
|
config/config.php
CHANGED
@@ -46,6 +46,7 @@ class YcdCountdownConfig {
|
|
46 |
self::addDefine('YCD_COUNTDOWN_WIDGET', 'ycd_countdown_widget');
|
47 |
self::addDefine('YCD_TEXT_DOMAIN', 'ycdCountdown');
|
48 |
self::addDefine('YCD_COUNTDOWN_PRO_URL', 'https://edmonsoft.com/countdown');
|
|
|
49 |
self::addDefine('YCD_COUNTDOWN_REVIEW_URL', 'https://wordpress.org/support/plugin/countdown-builder/reviews/?filter=5');
|
50 |
self::addDefine('YCD_PROGRESS_METABOX_KEY', 'ycdMetaboxProgress');
|
51 |
self::addDefine('YCD_PROGRESS_METABOX_TITLE', __('Progress Bar', YCD_TEXT_DOMAIN));
|
@@ -58,7 +59,7 @@ class YcdCountdownConfig {
|
|
58 |
self::addDefine('YCD_AJAX_SUCCESS', 1);
|
59 |
self::addDefine('YCD_TABLE_LIMIT', 15);
|
60 |
self::addDefine('YCD_VERSION_PRO', 1.42);
|
61 |
-
self::addDefine('YCD_VERSION', 1.
|
62 |
self::addDefine('YCD_FREE_VERSION', 1);
|
63 |
self::addDefine('YCD_SILVER_VERSION', 2);
|
64 |
self::addDefine('YCD_GOLD_VERSION', 3);
|
@@ -175,6 +176,14 @@ class YcdCountdownConfig {
|
|
175 |
'boxTitle' => __('Analytics')
|
176 |
);
|
177 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
178 |
return apply_filters('ycdExtensionsInfo', $extensions);
|
179 |
}
|
180 |
}
|
46 |
self::addDefine('YCD_COUNTDOWN_WIDGET', 'ycd_countdown_widget');
|
47 |
self::addDefine('YCD_TEXT_DOMAIN', 'ycdCountdown');
|
48 |
self::addDefine('YCD_COUNTDOWN_PRO_URL', 'https://edmonsoft.com/countdown');
|
49 |
+
self::addDefine('YCD_COUNTDOWN_BUTTON_URL', 'https://edmonsoft.com/countdown/#yrm-analytics');
|
50 |
self::addDefine('YCD_COUNTDOWN_REVIEW_URL', 'https://wordpress.org/support/plugin/countdown-builder/reviews/?filter=5');
|
51 |
self::addDefine('YCD_PROGRESS_METABOX_KEY', 'ycdMetaboxProgress');
|
52 |
self::addDefine('YCD_PROGRESS_METABOX_TITLE', __('Progress Bar', YCD_TEXT_DOMAIN));
|
59 |
self::addDefine('YCD_AJAX_SUCCESS', 1);
|
60 |
self::addDefine('YCD_TABLE_LIMIT', 15);
|
61 |
self::addDefine('YCD_VERSION_PRO', 1.42);
|
62 |
+
self::addDefine('YCD_VERSION', 1.57);
|
63 |
self::addDefine('YCD_FREE_VERSION', 1);
|
64 |
self::addDefine('YCD_SILVER_VERSION', 2);
|
65 |
self::addDefine('YCD_GOLD_VERSION', 3);
|
176 |
'boxTitle' => __('Analytics')
|
177 |
);
|
178 |
|
179 |
+
$extensions['countdownButton'] = array(
|
180 |
+
'pluginKey' => 'countdown-builder-call-to-action/countdownBuilderButton.php',
|
181 |
+
'isType' => false,
|
182 |
+
'shortKey' => 'countdownButton',
|
183 |
+
'videoURL' => '',
|
184 |
+
'boxTitle' => __('Countdown Button')
|
185 |
+
);
|
186 |
+
|
187 |
return apply_filters('ycdExtensionsInfo', $extensions);
|
188 |
}
|
189 |
}
|
config/optionsConfig.php
CHANGED
@@ -219,6 +219,17 @@ class YcdCountdownOptionsConfig {
|
|
219 |
$options[] = array('name' => 'ycd-timer-reset-button-label', 'type' => 'text', 'defaultValue' => __('Reset', YCD_TEXT_DOMAIN));
|
220 |
$options[] = array('name' => 'ycd-count-up-from-end-date', 'type' => 'checkbox', 'defaultValue' => '');
|
221 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
222 |
$YCD_OPTIONS = apply_filters('ycdCountdownDefaultOptions', $options);
|
223 |
}
|
224 |
|
219 |
$options[] = array('name' => 'ycd-timer-reset-button-label', 'type' => 'text', 'defaultValue' => __('Reset', YCD_TEXT_DOMAIN));
|
220 |
$options[] = array('name' => 'ycd-count-up-from-end-date', 'type' => 'checkbox', 'defaultValue' => '');
|
221 |
|
222 |
+
$options[] = array('name' => 'ycd-button-name', 'type' => 'text', 'defaultValue' => 'Buy Now');
|
223 |
+
$options[] = array('name' => 'ycd-button-action-url', 'type' => 'text', 'defaultValue' => get_site_url());
|
224 |
+
$options[] = array('name' => 'ycd-button-action-url-tab', 'type' => 'checkbox', 'defaultValue' => '');
|
225 |
+
$options[] = array('name' => 'ycd-countdown-enable-button', 'type' => 'checkbox', 'defaultValue' => '');
|
226 |
+
$options[] = array('name' => 'ycd-button-width', 'type' => 'text', 'defaultValue' => '200px');
|
227 |
+
$options[] = array('name' => 'ycd-button-height', 'type' => 'text', 'defaultValue' => '50px');
|
228 |
+
$options[] = array('name' => 'ycd-button-border-width', 'type' => 'text', 'defaultValue' => '0px');
|
229 |
+
$options[] = array('name' => 'ycd-button-border-radius', 'type' => 'text', 'defaultValue' => '5');
|
230 |
+
$options[] = array('name' => 'ycd-button-bg-color', 'type' => 'text', 'defaultValue' => '#4dba7a');
|
231 |
+
$options[] = array('name' => 'ycd-button-color', 'type' => 'text', 'defaultValue' => '#ffffff');
|
232 |
+
|
233 |
$YCD_OPTIONS = apply_filters('ycdCountdownDefaultOptions', $options);
|
234 |
}
|
235 |
|
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.7
|
6 |
* Author: Adam Skaat
|
7 |
* Author URI: https://edmonsoft.com/countdown
|
8 |
* License: GPLv2
|
helpers/AdminHelper.php
CHANGED
@@ -200,7 +200,6 @@ class AdminHelper {
|
|
200 |
'Roboto Condensed' => 'Roboto Condensed',
|
201 |
'Oswald' => 'Oswald',
|
202 |
'PT Sans' => 'PT Sans',
|
203 |
-
'Helvetica' => 'Helvetica',
|
204 |
'Montserrat' => 'Montserrat'
|
205 |
);
|
206 |
|
200 |
'Roboto Condensed' => 'Roboto Condensed',
|
201 |
'Oswald' => 'Oswald',
|
202 |
'PT Sans' => 'PT Sans',
|
|
|
203 |
'Montserrat' => 'Montserrat'
|
204 |
);
|
205 |
|
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
|
@@ -62,8 +62,12 @@ Yes you can, we have Circle and Flipclock countdown popups.
|
|
62 |
|
63 |
You need to select the .zip file, there is no need to extract the zip file, just upload it.
|
64 |
|
65 |
-
|
66 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
67 |
= 1.5.6 =
|
68 |
* Count up from End Date (new)
|
69 |
* Admin panel improvements
|
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
|
7 |
Requires PHP: 5.3
|
8 |
License: GPLv2 or later
|
9 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
62 |
|
63 |
You need to select the .zip file, there is no need to extract the zip file, just upload it.
|
64 |
|
|
|
65 |
== Changelog ==
|
66 |
+
= 1.5.7 =
|
67 |
+
* Font load issue
|
68 |
+
* Countdown button extension
|
69 |
+
* Code optimization
|
70 |
+
|
71 |
= 1.5.6 =
|
72 |
* Count up from End Date (new)
|
73 |
* Admin panel improvements
|