Countdown, Coming Soon – Countdown & Clock - Version 2.3.2

Version Description

  • Added Simple countdown numbers margin
  • Added Simple countdown text margin
Download this release

Release Info

Developer adamskaat
Plugin Icon 128x128 Countdown, Coming Soon – Countdown & Clock
Version 2.3.2
Comparing to
See all releases

Code changes from version 2.3.1 to 2.3.2

assets/css/simpleCountdown.css CHANGED
@@ -12,7 +12,6 @@
12
 
13
  .ycd-simple-timer-dots {
14
  display: inline-block;
15
- vertical-align: top !important;
16
  line-height: 1;
17
  margin: 0 5px;
18
  }
12
 
13
  .ycd-simple-timer-dots {
14
  display: inline-block;
 
15
  line-height: 1;
16
  margin: 0 5px;
17
  }
assets/views/admin/comingSoon.php ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ use ycd\AdminHelper;
3
+ $defaultData = AdminHelper::defaultData();
4
+ ?>
5
+ <div class="ycd-bootstrap-wrapper ycd-settings-wrapper">
6
+ <form method="POST" action="<?php echo admin_url().'admin-post.php?action=ycdComingSoon'?>">
7
+ <div class="row">
8
+ <div class="col-lg-8">
9
+ <div class="row form-group">
10
+ <label class="savae-changes-label"><?php _e('Change settings'); ?></label>
11
+ <div class="pull-right">
12
+ <input type="submit" class="btn btn-primary" value="Save Changes">
13
+ </div>
14
+ </div>
15
+ <?php require_once YCD_ADMIN_VIEWS_PATH.'comingSoonSettings.php'; ?>
16
+ <?php require_once YCD_ADMIN_VIEWS_PATH.'comingSoonHeader.php'; ?>
17
+ <?php require_once YCD_ADMIN_VIEWS_PATH.'comingSoonDesign.php'; ?>
18
+ </div>
19
+ <div class="col-lg-6">
20
+ </div>
21
+ </div>
22
+ </form>
23
+ </div>
assets/views/main/simpleMainView.php CHANGED
@@ -200,6 +200,27 @@ $defaultData = AdminHelper::defaultData();
200
  </div>
201
  </div>
202
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
203
  <!-- Numbers Styles end -->
204
  </div>
205
  <div class="row form-group">
@@ -247,6 +268,27 @@ $defaultData = AdminHelper::defaultData();
247
  </div>
248
  </div>
249
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
250
  <!-- Text Styles end -->
251
  </div>
252
  <!-- Styles end -->
200
  </div>
201
  </div>
202
  </div>
203
+ <div class="row form-group">
204
+ <div class="col-md-4">
205
+ <label for="ycd-simple-text-margin" class=""><?php _e('margin', YCD_TEXT_DOMAIN); ?></label>
206
+ </div>
207
+ <div class="col-md-2 ycd-option-wrapper">
208
+ <label for="ycd-simple-numbers-margin-top" class="yrm-label">Top</label>
209
+ <input type="text" id="ycd-simple-numbers-margin-top" data-direction="top" name="ycd-simple-numbers-margin-top" class="form-control button-margin" value="<?php echo esc_attr($typeObj->getOptionValue('ycd-simple-numbers-margin-top'))?>">
210
+ </div>
211
+ <div class="col-md-2 ycd-option-wrapper">
212
+ <label for="ycd-simple-numbers-margin-right" class="yrm-label">Right</label>
213
+ <input type="text" id="ycd-simple-numbers-margin-right" data-direction="right" name="ycd-simple-numbers-margin-right" class="form-control button-margin" value="<?php echo esc_attr($typeObj->getOptionValue('ycd-simple-numbers-margin-right'))?>">
214
+ </div>
215
+ <div class="col-md-2 ycd-option-wrapper">
216
+ <label for="ycd-simple-text-margin-bottom" class="yrm-label">Bottom</label>
217
+ <input type="text" id="ycd-simple-numbers-margin-bottom" data-direction="bottom" name="ycd-simple-numbers-margin-bottom" class="form-control button-margin" value="<?php echo esc_attr($typeObj->getOptionValue('ycd-simple-numbers-margin-bottom'))?>">
218
+ </div>
219
+ <div class="col-md-2 ycd-option-wrapper">
220
+ <label for="ycd-simple-numbers-margin-left" class="yrm-label">Left</label>
221
+ <input type="text" id="ycd-simple-numbers-margin-left" data-direction="left" name="ycd-simple-numbers-margin-left" class="form-control button-margin" value="<?php echo esc_attr($typeObj->getOptionValue('ycd-simple-numbers-margin-left'))?>">
222
+ </div>
223
+ </div>
224
  <!-- Numbers Styles end -->
225
  </div>
226
  <div class="row form-group">
268
  </div>
269
  </div>
270
  </div>
271
+ <div class="row form-group">
272
+ <div class="col-md-4">
273
+ <label for="ycd-simple-text-margin" class=""><?php _e('margin', YCD_TEXT_DOMAIN); ?></label>
274
+ </div>
275
+ <div class="col-md-2 ycd-option-wrapper">
276
+ <label for="ycd-simple-text-margin-top" class="yrm-label">Top</label>
277
+ <input type="text" id="ycd-simple-text-margin-top" data-direction="top" name="ycd-simple-text-margin-top" class="form-control button-padding" value="<?php echo esc_attr($typeObj->getOptionValue('ycd-simple-text-margin-top'))?>">
278
+ </div>
279
+ <div class="col-md-2 ycd-option-wrapper">
280
+ <label for="ycd-simple-text-margin-right" class="yrm-label">Right</label>
281
+ <input type="text" id="ycd-simple-text-margin-right" data-direction="right" name="ycd-simple-text-margin-right" class="form-control button-margin" value="<?php echo esc_attr($typeObj->getOptionValue('ycd-simple-text-margin-right'))?>">
282
+ </div>
283
+ <div class="col-md-2 ycd-option-wrapper">
284
+ <label for="ycd-simple-text-margin-bottom" class="yrm-label">Bottom</label>
285
+ <input type="text" id="ycd-simple-text-margin-bottom" data-direction="bottom" name="ycd-simple-text-margin-bottom" class="form-control button-margin" value="<?php echo esc_attr($typeObj->getOptionValue('ycd-simple-text-margin-bottom'))?>">
286
+ </div>
287
+ <div class="col-md-2 ycd-option-wrapper">
288
+ <label for="ycd-simple-text-margin-left" class="yrm-label">Left</label>
289
+ <input type="text" id="ycd-simple-text-margin-left" data-direction="left" name="ycd-simple-text-margin-left" class="form-control button-margin" value="<?php echo esc_attr($typeObj->getOptionValue('ycd-simple-text-margin-left'))?>">
290
+ </div>
291
+ </div>
292
  <!-- Text Styles end -->
293
  </div>
294
  <!-- Styles end -->
classes/countdown/SimpleCountdown.php CHANGED
@@ -83,6 +83,15 @@ class SimpleCountdown extends Countdown
83
  $numberFontSize = $this->getOptionValue('ycd-simple-numbers-font-size');
84
  $labelSize = $this->getOptionValue('ycd-simple-text-font-size');
85
 
 
 
 
 
 
 
 
 
 
86
  ob_start();
87
  ?>
88
  <style>
@@ -90,8 +99,12 @@ class SimpleCountdown extends Countdown
90
  .ycd-simple-content-wrapper-<?php echo $id; ?> .ycd-simple-timer-dots {
91
  font-size: <?php echo $numberFontSize; ?>;
92
  }
 
 
 
93
  .ycd-simple-content-wrapper-<?php echo $id; ?> .ycd-simple-countdown-label {
94
  font-size: <?php echo $labelSize; ?>;
 
95
  }
96
  </style>
97
  <?php
83
  $numberFontSize = $this->getOptionValue('ycd-simple-numbers-font-size');
84
  $labelSize = $this->getOptionValue('ycd-simple-text-font-size');
85
 
86
+ $textMarginTop = $this->getOptionValue('ycd-simple-text-margin-top');
87
+ $textMarginRight = $this->getOptionValue('ycd-simple-text-margin-right');
88
+ $textMarginBottom = $this->getOptionValue('ycd-simple-text-margin-bottom');
89
+ $textMarginLeft = $this->getOptionValue('ycd-simple-text-margin-left');
90
+
91
+ $numbersMarginTop = $this->getOptionValue('ycd-simple-numbers-margin-top');
92
+ $numbersMarginRight = $this->getOptionValue('ycd-simple-numbers-margin-right');
93
+ $numbersMarginBottom = $this->getOptionValue('ycd-simple-numbers-margin-bottom');
94
+ $numbersMarginLeft = $this->getOptionValue('ycd-simple-numbers-margin-left');
95
  ob_start();
96
  ?>
97
  <style>
99
  .ycd-simple-content-wrapper-<?php echo $id; ?> .ycd-simple-timer-dots {
100
  font-size: <?php echo $numberFontSize; ?>;
101
  }
102
+ .ycd-simple-content-wrapper-<?php echo $id; ?> .ycd-simple-countdown-number {
103
+ margin: <?php echo $numbersMarginTop.' '.$numbersMarginRight.' '.$numbersMarginBottom.' '.$numbersMarginLeft;?>
104
+ }
105
  .ycd-simple-content-wrapper-<?php echo $id; ?> .ycd-simple-countdown-label {
106
  font-size: <?php echo $labelSize; ?>;
107
+ margin: <?php echo $textMarginTop.' '.$textMarginRight.' '.$textMarginBottom.' '.$textMarginLeft;?>
108
  }
109
  </style>
110
  <?php
config/config.php CHANGED
@@ -75,8 +75,8 @@ class YcdCountdownConfig
75
  self::addDefine('YCD_CRON_REPEAT_INTERVAL', 1);
76
  self::addDefine('YCD_AJAX_SUCCESS', 1);
77
  self::addDefine('YCD_TABLE_LIMIT', 15);
78
- self::addDefine('YCD_VERSION_PRO', 2.17);
79
- self::addDefine('YCD_VERSION', 2.31);
80
  self::addDefine('YCD_FREE_VERSION', 1);
81
  self::addDefine('YCD_SILVER_VERSION', 2);
82
  self::addDefine('YCD_GOLD_VERSION', 3);
@@ -84,13 +84,13 @@ class YcdCountdownConfig
84
  self::addDefine('YCD_EXTENSION_VERSION', 99);
85
  require_once(dirname(__FILE__).'/config-pkg.php');
86
 
87
- $versionText = '2.3.1';
88
  if (YCD_PKG_VERSION != YCD_FREE_VERSION) {
89
- $versionText = '2.1.8';
90
  }
91
  self::addDefine('YCD_VERSION_TEXT', $versionText);
92
- self::addDefine('YCD_LAST_UPDATE', 'March 26');
93
- self::addDefine('YCD_NEXT_UPDATE', 'April 15');
94
  }
95
 
96
  public static function displaySettings()
75
  self::addDefine('YCD_CRON_REPEAT_INTERVAL', 1);
76
  self::addDefine('YCD_AJAX_SUCCESS', 1);
77
  self::addDefine('YCD_TABLE_LIMIT', 15);
78
+ self::addDefine('YCD_VERSION_PRO', 2.19);
79
+ self::addDefine('YCD_VERSION', 2.32);
80
  self::addDefine('YCD_FREE_VERSION', 1);
81
  self::addDefine('YCD_SILVER_VERSION', 2);
82
  self::addDefine('YCD_GOLD_VERSION', 3);
84
  self::addDefine('YCD_EXTENSION_VERSION', 99);
85
  require_once(dirname(__FILE__).'/config-pkg.php');
86
 
87
+ $versionText = '2.3.2';
88
  if (YCD_PKG_VERSION != YCD_FREE_VERSION) {
89
+ $versionText = '2.1.9';
90
  }
91
  self::addDefine('YCD_VERSION_TEXT', $versionText);
92
+ self::addDefine('YCD_LAST_UPDATE', 'April 30');
93
+ self::addDefine('YCD_NEXT_UPDATE', 'May 16');
94
  }
95
 
96
  public static function displaySettings()
config/optionsConfig.php CHANGED
@@ -353,6 +353,15 @@ class YcdCountdownOptionsConfig
353
 
354
  $options[] = array('name' => 'ycd-simple-numbers-font-size', 'type' => 'text', 'defaultValue' => __('35px', YCD_TEXT_DOMAIN));
355
  $options[] = array('name' => 'ycd-simple-text-font-size', 'type' => 'text', 'defaultValue' => __('12px', YCD_TEXT_DOMAIN));
 
 
 
 
 
 
 
 
 
356
 
357
  $YCD_OPTIONS = apply_filters('ycdCountdownDefaultOptions', $options);
358
  }
353
 
354
  $options[] = array('name' => 'ycd-simple-numbers-font-size', 'type' => 'text', 'defaultValue' => __('35px', YCD_TEXT_DOMAIN));
355
  $options[] = array('name' => 'ycd-simple-text-font-size', 'type' => 'text', 'defaultValue' => __('12px', YCD_TEXT_DOMAIN));
356
+ $options[] = array('name' => 'ycd-simple-numbers-margin-top', 'type' => 'text', 'defaultValue' => __('0px', YCD_TEXT_DOMAIN));
357
+ $options[] = array('name' => 'ycd-simple-numbers-margin-right', 'type' => 'text', 'defaultValue' => __('0px', YCD_TEXT_DOMAIN));
358
+ $options[] = array('name' => 'ycd-simple-numbers-margin-bottom', 'type' => 'text', 'defaultValue' => __('0px', YCD_TEXT_DOMAIN));
359
+ $options[] = array('name' => 'ycd-simple-numbers-margin-left', 'type' => 'text', 'defaultValue' => __('0px', YCD_TEXT_DOMAIN));
360
+
361
+ $options[] = array('name' => 'ycd-simple-text-margin-top', 'type' => 'text', 'defaultValue' => __('0px', YCD_TEXT_DOMAIN));
362
+ $options[] = array('name' => 'ycd-simple-text-margin-right', 'type' => 'text', 'defaultValue' => __('0px', YCD_TEXT_DOMAIN));
363
+ $options[] = array('name' => 'ycd-simple-text-margin-bottom', 'type' => 'text', 'defaultValue' => __('0px', YCD_TEXT_DOMAIN));
364
+ $options[] = array('name' => 'ycd-simple-text-margin-left', 'type' => 'text', 'defaultValue' => __('0px', YCD_TEXT_DOMAIN));
365
 
366
  $YCD_OPTIONS = apply_filters('ycdCountdownDefaultOptions', $options);
367
  }
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.3.1
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.3.2
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.9.2
6
- Stable tag: 2.3.1
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,10 @@ 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.3.1 =
71
  * Simple countdown added Text to top (new)
72
  * Sticky countdown close button text position change possibility (new)
3
  Tags: countdown, timer, countdown timer
4
  Requires at least: 3.8
5
  Tested up to: 5.9.2
6
+ Stable tag: 2.3.2
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.3.2 =
71
+ * Added Simple countdown numbers margin
72
+ * Added Simple countdown text margin
73
+
74
  = 2.3.1 =
75
  * Simple countdown added Text to top (new)
76
  * Sticky countdown close button text position change possibility (new)