Countdown, Coming Soon – Countdown & Clock - Version 2.3.7

Version Description

Download this release

Release Info

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

Code changes from version 2.3.6 to 2.3.7

assets/views/main/timerMainView.php CHANGED
@@ -243,10 +243,10 @@ $textFontFamily = $this->getOptionValue('ycd-text-font-family');
243
  <input id="js-upload-countdown-end-sound" class="btn btn-sm" type="button" value="<?php _e('Change sound', YCD_TEXT_DOMAIN); ?>">
244
  </div>
245
  <div class="col-md-4">
246
- <input type="button" data-default-song="<?= $this->getDefaultValue('ycd-countdown-end-sound-url'); ?>" id="js-reset-to-default-song" class="btn btn-sm btn-danger" value="<?php _e('Reset', YCD_TEXT_DOMAIN); ?>">
247
  </div>
248
  <div class="col-md-5">
249
- <input type="text" id="js-sound-open-url" readonly="" class="form-control input-sm" name="ycd-countdown-end-sound-url" value="<?= esc_attr($this->getOptionValue('ycd-countdown-end-sound-url')); ?>">
250
  </div>
251
  <div class="col-md-1">
252
  <span class="dashicons dashicons-controls-volumeon js-preview-sound"></span>
@@ -395,4 +395,4 @@ $textFontFamily = $this->getOptionValue('ycd-text-font-family');
395
  <?php
396
  $type = $this->getCurrentTypeFromOptions();
397
  ?>
398
- <input type="hidden" name="ycd-type" value="<?= esc_attr($type); ?>">
243
  <input id="js-upload-countdown-end-sound" class="btn btn-sm" type="button" value="<?php _e('Change sound', YCD_TEXT_DOMAIN); ?>">
244
  </div>
245
  <div class="col-md-4">
246
+ <input type="button" data-default-song="<?php echo esc_attr($this->getDefaultValue('ycd-countdown-end-sound-url')); ?>" id="js-reset-to-default-song" class="btn btn-sm btn-danger" value="<?php _e('Reset', YCD_TEXT_DOMAIN); ?>">
247
  </div>
248
  <div class="col-md-5">
249
+ <input type="text" id="js-sound-open-url" readonly="" class="form-control input-sm" name="ycd-countdown-end-sound-url" value="<?php echo esc_attr($this->getOptionValue('ycd-countdown-end-sound-url')); ?>">
250
  </div>
251
  <div class="col-md-1">
252
  <span class="dashicons dashicons-controls-volumeon js-preview-sound"></span>
395
  <?php
396
  $type = $this->getCurrentTypeFromOptions();
397
  ?>
398
+ <input type="hidden" name="ycd-type" value="<?php echo esc_attr($type); ?>">
classes/Actions.php CHANGED
@@ -371,7 +371,7 @@ class Actions {
371
  }
372
  ?>
373
  <label class="ycd-switch">
374
- <input type="checkbox" data-id="<?= esc_attr($postId); ?>" name="ycd-countdown-show-mobile" class="ycd-accordion-checkbox ycd-countdown-enable" <?= $checked; ?> >
375
  <span class="ycd-slider ycd-round"></span>
376
  </label>
377
  <?php
371
  }
372
  ?>
373
  <label class="ycd-switch">
374
+ <input type="checkbox" data-id="<?php echo esc_attr($postId); ?>" name="ycd-countdown-show-mobile" class="ycd-accordion-checkbox ycd-countdown-enable" <?php echo esc_attr($checked); ?> >
375
  <span class="ycd-slider ycd-round"></span>
376
  </label>
377
  <?php
classes/countdown/SimpleCountdown.php CHANGED
@@ -97,14 +97,14 @@ class SimpleCountdown extends Countdown
97
  <style>
98
  .ycd-simple-content-wrapper-<?php echo (int)$id; ?> .ycd-simple-countdown-number,
99
  .ycd-simple-content-wrapper-<?php echo (int)$id; ?> .ycd-simple-timer-dots {
100
- font-size: <?php echo sanitize_text_field($numberFontSize); ?>;
101
  }
102
  .ycd-simple-content-wrapper-<?php echo (int)$id; ?> .ycd-simple-countdown-number {
103
- margin: <?php echo sanitize_text_field($numbersMarginTop).' '.sanitize_text_field($numbersMarginRight).' '.sanitize_text_field($numbersMarginBottom).' '.sanitize_text_field($numbersMarginLeft);?>
104
  }
105
  .ycd-simple-content-wrapper-<?php echo (int)$id; ?> .ycd-simple-countdown-label {
106
- font-size: <?php echo sanitize_text_field($labelSize); ?>;
107
- margin: <?php echo sanitize_text_field($textMarginTop).' '.sanitize_text_field($textMarginRight).' '.sanitize_text_field($textMarginBottom).' '.sanitize_text_field($textMarginLeft);?>
108
  }
109
  </style>
110
  <?php
97
  <style>
98
  .ycd-simple-content-wrapper-<?php echo (int)$id; ?> .ycd-simple-countdown-number,
99
  .ycd-simple-content-wrapper-<?php echo (int)$id; ?> .ycd-simple-timer-dots {
100
+ font-size: <?php echo esc_attr($numberFontSize); ?>;
101
  }
102
  .ycd-simple-content-wrapper-<?php echo (int)$id; ?> .ycd-simple-countdown-number {
103
+ margin: <?php echo esc_attr($numbersMarginTop).' '.esc_attr($numbersMarginRight).' '.esc_attr($numbersMarginBottom).' '.esc_attr($numbersMarginLeft);?>
104
  }
105
  .ycd-simple-content-wrapper-<?php echo (int)$id; ?> .ycd-simple-countdown-label {
106
+ font-size: <?php echo esc_attr($labelSize); ?>;
107
+ margin: <?php echo esc_attr($textMarginTop).' '.esc_attr($textMarginRight).' '.esc_attr($textMarginBottom).' '.esc_attr($textMarginLeft);?>
108
  }
109
  </style>
110
  <?php
classes/countdown/StickyCountdown.php CHANGED
@@ -86,20 +86,20 @@ class StickyCountdown extends Countdown {
86
  ?>
87
  <style type="text/css">
88
  .ycd-sticky-header-countdown {
89
- color: <?php echo $stickyCountdownColor; ?>;
90
- font-size: <?php echo $countdownSize; ?>px;
91
- font-weight: <?php echo $countdownWeight; ?>;
92
  }
93
  /* Style the header */
94
  .ycd-sticky-header {
95
  padding: 10px 16px;
96
  background: <?php echo esc_attr($stickyBgColor); ?>;
97
- color: <?php echo $stickyTextColor; ?>;
98
  position: relative;
99
  }
100
 
101
  .ycd-sticky-header-child {
102
- width: <?php echo $sectionsWidth; ?>%;
103
  display: inline-block;
104
  text-align: center;
105
  vertical-align: middle;
@@ -123,12 +123,12 @@ class StickyCountdown extends Countdown {
123
  padding-top: 102px;
124
  }
125
  .ycd-sticky-button {
126
- background-color: <?php echo $inputBgColor.$important; ?>;
127
- color: <?php echo $inputColor.$important; ?>;
128
  }
129
  <?php if (!empty($paddingEnable)): ?>
130
  .ycd-sticky-button {
131
- padding: <?php echo $buttonPadding.' '.$important; ?>;
132
  }
133
  <?php endif; ?>
134
  <?php if (!empty($enableBorder)): ?>
86
  ?>
87
  <style type="text/css">
88
  .ycd-sticky-header-countdown {
89
+ color: <?php echo esc_attr($stickyCountdownColor); ?>;
90
+ font-size: <?php echo esc_attr($countdownSize); ?>px;
91
+ font-weight: <?php echo esc_attr($countdownWeight); ?>;
92
  }
93
  /* Style the header */
94
  .ycd-sticky-header {
95
  padding: 10px 16px;
96
  background: <?php echo esc_attr($stickyBgColor); ?>;
97
+ color: <?php echo esc_attr($stickyTextColor); ?>;
98
  position: relative;
99
  }
100
 
101
  .ycd-sticky-header-child {
102
+ width: <?php echo esc_attr($sectionsWidth); ?>%;
103
  display: inline-block;
104
  text-align: center;
105
  vertical-align: middle;
123
  padding-top: 102px;
124
  }
125
  .ycd-sticky-button {
126
+ background-color: <?php echo esc_attr($inputBgColor).esc_attr($important); ?>;
127
+ color: <?php echo esc_attr($inputColor).esc_attr($important); ?>;
128
  }
129
  <?php if (!empty($paddingEnable)): ?>
130
  .ycd-sticky-button {
131
+ padding: <?php echo esc_attr($buttonPadding).' '.esc_attr($important); ?>;
132
  }
133
  <?php endif; ?>
134
  <?php if (!empty($enableBorder)): ?>
config/config.php CHANGED
@@ -183,7 +183,7 @@ class YcdCountdownConfig
183
  ob_start();
184
  ?>
185
  <script type="text/javascript">
186
- <?= $version; ?>
187
  </script>
188
  <?php
189
  $content = ob_get_contents();
183
  ob_start();
184
  ?>
185
  <script type="text/javascript">
186
+ <?php echo $version; ?>
187
  </script>
188
  <?php
189
  $content = ob_get_contents();
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.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 by Adam skaat
5
+ * Version: 2.3.7
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.3
6
- Stable tag: 2.3.6
7
  Requires PHP: 5.3
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
3
  Tags: countdown, timer, countdown timer
4
  Requires at least: 3.8
5
  Tested up to: 5.9.3
6
+ Stable tag: 2.3.7
7
  Requires PHP: 5.3
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html