Countdown, Coming Soon – Countdown & Clock - Version 2.3.9.10

Version Description

Download this release

Release Info

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

Code changes from version 2.3.9.9 to 2.3.9.10

assets/views/displaySettings.php CHANGED
@@ -6,6 +6,7 @@ $defaultData = AdminHelper::defaultData();
6
  $savedData = $this->getOptionValue('ycd-display-settings');
7
  $obj = new DisplayConditionBuilder();
8
  $obj->setSavedData($savedData);
 
9
  ?>
10
  <div class="ystp-bootstrap-wrapper">
11
  <div class="row form-group">
@@ -13,8 +14,11 @@ $obj->setSavedData($savedData);
13
  <label for="ycd-countdown-text-size" class="ycd-label-of-select"><?php _e('Position Of Countdown', YCD_TEXT_DOMAIN); ?></label>
14
  </div>
15
  <div class="col-md-7">
16
- <?php AdminHelper::selectBox($defaultData['position-countdown'], esc_attr($this->getOptionValue('ycd-position-countdown')), array('name' => 'ycd-position-countdown', 'class' => 'js-ycd-select')); ?>
 
 
 
17
  </div>
18
  </div>
19
- <?php esc_html_e($obj->render()); ?>
20
  </div>
6
  $savedData = $this->getOptionValue('ycd-display-settings');
7
  $obj = new DisplayConditionBuilder();
8
  $obj->setSavedData($savedData);
9
+ $allowed_html = AdminHelper::getAllowedTags();
10
  ?>
11
  <div class="ystp-bootstrap-wrapper">
12
  <div class="row form-group">
14
  <label for="ycd-countdown-text-size" class="ycd-label-of-select"><?php _e('Position Of Countdown', YCD_TEXT_DOMAIN); ?></label>
15
  </div>
16
  <div class="col-md-7">
17
+ <?php
18
+ $postionCountdown = AdminHelper::selectBox($defaultData['position-countdown'], esc_attr($this->getOptionValue('ycd-position-countdown')), array('name' => 'ycd-position-countdown', 'class' => 'js-ycd-select'));
19
+ echo wp_kses($postionCountdown, $allowed_html);
20
+ ?>
21
  </div>
22
  </div>
23
+ <?php echo wp_kses($obj->render(), $allowed_html); ?>
24
  </div>
assets/views/main/simpleMainView.php CHANGED
@@ -8,6 +8,7 @@ if(YCD_PKG_VERSION == YCD_FREE_VERSION) {
8
  $proSpan = '<span class="ycd-pro-span">'.__('pro', YCD_TEXT_DOMAIN).'</span>';
9
  }
10
  $defaultData = AdminHelper::defaultData();
 
11
  ?>
12
  <div class="ycd-bootstrap-wrapper">
13
  <!-- Labels start -->
@@ -177,7 +178,10 @@ $defaultData = AdminHelper::defaultData();
177
  <label for="ycd-simple-numbers-font-family" class="ycd-label-of-select"><?php _e('font family', YCD_TEXT_DOMAIN);?></label>
178
  </div>
179
  <div class="col-md-6 ycd-option-wrapper<?php echo esc_attr($isPro); ?>">
180
- <?php AdminHelper::selectBox($defaultData['font-family'], esc_attr($typeObj->getOptionValue('ycd-simple-numbers-font-family')), array('name' => 'ycd-simple-numbers-font-family', 'class' => 'js-ycd-select js-simple-font-family ycd-custom-value-accordion', 'data-field-type' => 'number', 'data-custom' => 'customFont')); ?>
 
 
 
181
  </div>
182
  </div>
183
  <div class="ycd-accordion-content ycd-hide-content">
@@ -245,7 +249,10 @@ $defaultData = AdminHelper::defaultData();
245
  <label for="ycd-countdown-text-size" class="ycd-label-of-select"><?php _e('font family', YCD_TEXT_DOMAIN); ?></label>
246
  </div>
247
  <div class="col-md-6 ycd-option-wrapper<?php echo esc_attr($isPro); ?>">
248
- <?php AdminHelper::selectBox($defaultData['font-family'], esc_attr($typeObj->getOptionValue('ycd-simple-text-font-family')), array('name' => 'ycd-simple-text-font-family', 'class' => 'js-ycd-select js-simple-font-family ycd-custom-value-accordion', 'data-field-type' => 'label', 'data-custom' => 'customFont')); ?>
 
 
 
249
  </div>
250
  </div>
251
  <div class="ycd-accordion-content ycd-hide-content">
8
  $proSpan = '<span class="ycd-pro-span">'.__('pro', YCD_TEXT_DOMAIN).'</span>';
9
  }
10
  $defaultData = AdminHelper::defaultData();
11
+ $allowed_html = AdminHelper::getAllowedTags();
12
  ?>
13
  <div class="ycd-bootstrap-wrapper">
14
  <!-- Labels start -->
178
  <label for="ycd-simple-numbers-font-family" class="ycd-label-of-select"><?php _e('font family', YCD_TEXT_DOMAIN);?></label>
179
  </div>
180
  <div class="col-md-6 ycd-option-wrapper<?php echo esc_attr($isPro); ?>">
181
+ <?php
182
+ $fontFamily = AdminHelper::selectBox($defaultData['font-family'], esc_attr($typeObj->getOptionValue('ycd-simple-numbers-font-family')), array('name' => 'ycd-simple-numbers-font-family', 'class' => 'js-ycd-select js-simple-font-family ycd-custom-value-accordion', 'data-field-type' => 'number', 'data-custom' => 'customFont'));
183
+ echo wp_kses($fontFamily, $allowed_html);
184
+ ?>
185
  </div>
186
  </div>
187
  <div class="ycd-accordion-content ycd-hide-content">
249
  <label for="ycd-countdown-text-size" class="ycd-label-of-select"><?php _e('font family', YCD_TEXT_DOMAIN); ?></label>
250
  </div>
251
  <div class="col-md-6 ycd-option-wrapper<?php echo esc_attr($isPro); ?>">
252
+ <?php
253
+ $fontFamily = AdminHelper::selectBox($defaultData['font-family'], esc_attr($typeObj->getOptionValue('ycd-simple-text-font-family')), array('name' => 'ycd-simple-text-font-family', 'class' => 'js-ycd-select js-simple-font-family ycd-custom-value-accordion', 'data-field-type' => 'label', 'data-custom' => 'customFont'));
254
+ echo wp_kses($fontFamily, $allowed_html);
255
+ ?>
256
  </div>
257
  </div>
258
  <div class="ycd-accordion-content ycd-hide-content">
assets/views/main/stickyMainView.php CHANGED
@@ -15,6 +15,7 @@ $args = array('allowTypes' => array('circle'), 'except' => array('sticky'));
15
  $countdownsIdAndTitle = \ycd\Countdown::getCountdownsIdAndTitle($args);
16
  $stickySectionsOrder = $defaultData['stickySectionsOrder'];
17
  $stickyExpiration = $defaultData['stickyButtonExpiration'];
 
18
  ?>
19
  <div class="ycd-bootstrap-wrapper">
20
  <!-- Button settings start -->
@@ -66,7 +67,8 @@ $stickyExpiration = $defaultData['stickyButtonExpiration'];
66
  <div class="ycd-sub-option">
67
  <div class="ycd-multichoice-wrapper">
68
  <?php
69
- $multipleChoiceButton = new MultipleChoiceButton($stickyExpiration, esc_attr($this->getOptionValue('ycd-sticky-expire-behavior')));
 
70
  ?>
71
  </div>
72
  </div>
@@ -231,7 +233,7 @@ $stickyExpiration = $defaultData['stickyButtonExpiration'];
231
  <div class="ycd-multichoice-wrapper">
232
  <?php
233
  $multipleChoiceButton = new MultipleChoiceButton($defaultData['stickyCountdownMode'], esc_attr($this->getOptionValue('ycd-sticky-countdown-mode')));
234
-
235
  ?>
236
  </div>
237
  <div id="ycd-sticky-countdown-custom" class="ycd-sub-option ycd-hide">
@@ -245,7 +247,8 @@ $stickyExpiration = $defaultData['stickyButtonExpiration'];
245
  echo '<a href="'.esc_attr($createCountdown).'">Create Countdown</a>';
246
  }
247
  else {
248
- AdminHelper::selectBox($countdownsIdAndTitle, esc_attr($this->getOptionValue('ycd-sticky-countdown')), array('name' => 'ycd-sticky-countdown', 'class' => 'js-ycd-select'));
 
249
  }
250
  ?>
251
  </div>
@@ -289,7 +292,10 @@ $stickyExpiration = $defaultData['stickyButtonExpiration'];
289
  <label class="ycd-label-of-input"><?php _e('Font wight', YCD_TEXT_DOMAIN); ?></label>
290
  </div>
291
  <div class="col-md-5">
292
- <?php AdminHelper::selectBox($defaultData['font-weight'], $this->getOptionValue('ycd-stick-countdown-font-weight'), array('name' => 'ycd-stick-countdown-font-weight', 'class' => 'js-ycd-select'))?>
 
 
 
293
  </div>
294
  </div>
295
  <div class="row form-group">
@@ -352,7 +358,10 @@ $stickyExpiration = $defaultData['stickyButtonExpiration'];
352
  <label class="ycd-label-of-input" for="ycd-sticky-close-position"><?php _e('Close position', YCD_TEXT_DOMAIN); ?></label>
353
  </div>
354
  <div class="col-md-5">
355
- <?php AdminHelper::selectBox($defaultData['sticky-close-position'], esc_attr($this->getOptionValue('ycd-sticky-close-position')), array('name' => 'ycd-sticky-close-position', 'class' => 'js-ycd-select')); ?>
 
 
 
356
  </div>
357
  </div>
358
  </div>
@@ -361,7 +370,10 @@ $stickyExpiration = $defaultData['stickyButtonExpiration'];
361
  <label class="ycd-label-of-input"><?php _e('Sections order', YCD_TEXT_DOMAIN); ?></label>
362
  </div>
363
  <div class="col-md-5">
364
- <?php AdminHelper::selectBox($stickySectionsOrder, esc_attr($this->getOptionValue('ycd-sticky-countdown-sections')), array('name' => 'ycd-sticky-countdown-sections', 'class' => 'js-ycd-select')); ?>
 
 
 
365
  </div>
366
  </div>
367
  </div>
15
  $countdownsIdAndTitle = \ycd\Countdown::getCountdownsIdAndTitle($args);
16
  $stickySectionsOrder = $defaultData['stickySectionsOrder'];
17
  $stickyExpiration = $defaultData['stickyButtonExpiration'];
18
+ $allowed_html = AdminHelper::getAllowedTags();
19
  ?>
20
  <div class="ycd-bootstrap-wrapper">
21
  <!-- Button settings start -->
67
  <div class="ycd-sub-option">
68
  <div class="ycd-multichoice-wrapper">
69
  <?php
70
+ $multipleChoiceButton = new MultipleChoiceButton($stickyExpiration, esc_attr($this->getOptionValue('ycd-sticky-expire-behavior')));
71
+ echo wp_kses($multipleChoiceButton, $allowed_html);
72
  ?>
73
  </div>
74
  </div>
233
  <div class="ycd-multichoice-wrapper">
234
  <?php
235
  $multipleChoiceButton = new MultipleChoiceButton($defaultData['stickyCountdownMode'], esc_attr($this->getOptionValue('ycd-sticky-countdown-mode')));
236
+ echo wp_kses($multipleChoiceButton, $allowed_html);
237
  ?>
238
  </div>
239
  <div id="ycd-sticky-countdown-custom" class="ycd-sub-option ycd-hide">
247
  echo '<a href="'.esc_attr($createCountdown).'">Create Countdown</a>';
248
  }
249
  else {
250
+ $countdownSelect = AdminHelper::selectBox($countdownsIdAndTitle, esc_attr($this->getOptionValue('ycd-sticky-countdown')), array('name' => 'ycd-sticky-countdown', 'class' => 'js-ycd-select'));
251
+ echo wp_kses($countdownSelect, $allowed_html);
252
  }
253
  ?>
254
  </div>
292
  <label class="ycd-label-of-input"><?php _e('Font wight', YCD_TEXT_DOMAIN); ?></label>
293
  </div>
294
  <div class="col-md-5">
295
+ <?php
296
+ $fontWeight = AdminHelper::selectBox($defaultData['font-weight'], $this->getOptionValue('ycd-stick-countdown-font-weight'), array('name' => 'ycd-stick-countdown-font-weight', 'class' => 'js-ycd-select'));
297
+ echo wp_kses($fontWeight, $allowed_html);
298
+ ?>
299
  </div>
300
  </div>
301
  <div class="row form-group">
358
  <label class="ycd-label-of-input" for="ycd-sticky-close-position"><?php _e('Close position', YCD_TEXT_DOMAIN); ?></label>
359
  </div>
360
  <div class="col-md-5">
361
+ <?php
362
+ $closePossition = AdminHelper::selectBox($defaultData['sticky-close-position'], esc_attr($this->getOptionValue('ycd-sticky-close-position')), array('name' => 'ycd-sticky-close-position', 'class' => 'js-ycd-select'));
363
+ echo wp_kses($closePossition, $allowed_html);
364
+ ?>
365
  </div>
366
  </div>
367
  </div>
370
  <label class="ycd-label-of-input"><?php _e('Sections order', YCD_TEXT_DOMAIN); ?></label>
371
  </div>
372
  <div class="col-md-5">
373
+ <?php
374
+ $contdownSections = AdminHelper::selectBox($stickySectionsOrder, esc_attr($this->getOptionValue('ycd-sticky-countdown-sections')), array('name' => 'ycd-sticky-countdown-sections', 'class' => 'js-ycd-select'));
375
+ echo wp_kses($contdownSections, $allowed_html);
376
+ ?>
377
  </div>
378
  </div>
379
  </div>
assets/views/main/timerMainView.php CHANGED
@@ -8,6 +8,7 @@ if(YCD_PKG_VERSION == YCD_FREE_VERSION) {
8
  }
9
  $defaultData = AdminHelper::defaultData();
10
  $textFontFamily = $this->getOptionValue('ycd-text-font-family');
 
11
  ?>
12
  <div class="ycd-bootstrap-wrapper">
13
  <?php
@@ -259,7 +260,10 @@ $textFontFamily = $this->getOptionValue('ycd-text-font-family');
259
  <label for="ycd-countdown-text-size" class="ycd-label-of-select"><?php _e('Font Family', YCD_TEXT_DOMAIN); ?></label>
260
  </div>
261
  <div class="col-md-4 ycd-option-wrapper<?php echo esc_attr($isPro); ?>">
262
- <?php AdminHelper::selectBox($defaultData['font-family'], esc_attr($textFontFamily), array('name' => 'ycd-text-font-family', 'class' => 'js-ycd-select js-countdown-font-family')); ?>
 
 
 
263
  </div>
264
  </div>
265
  <div class="row form-group">
@@ -297,7 +301,10 @@ $textFontFamily = $this->getOptionValue('ycd-text-font-family');
297
  <label for="ycd-timer-content-alignment" ><?php _e('Alignment', YCD_TEXT_DOMAIN); ?></label>
298
  </div>
299
  <div class="col-md-4 ycd-timer-font-size">
300
- <?php AdminHelper::selectBox($defaultData['horizontal-alignment'], esc_attr($this->getOptionValue('ycd-timer-content-alignment')), array('name' => 'ycd-timer-content-alignment', 'class' => 'js-ycd-select ycd-timer-content-alignment')); ?>
 
 
 
301
  </div>
302
  </div>
303
  <div class="row form-group">
@@ -327,7 +334,10 @@ $textFontFamily = $this->getOptionValue('ycd-text-font-family');
327
  <label for="" class="ycd-label-of-select"><?php _e('Background Size', YCD_TEXT_DOMAIN); ?></label>
328
  </div>
329
  <div class="col-md-6 ycd-circles-width-wrapper">
330
- <?php AdminHelper::selectBox($defaultData['bg-image-size'], esc_attr($this->getOptionValue('ycd-bg-image-size')), array('name' => 'ycd-bg-image-size', 'class' => 'js-ycd-select js-ycd-bg-size')); ?>
 
 
 
331
  </div>
332
  </div>
333
  <div class="row form-group">
@@ -335,7 +345,10 @@ $textFontFamily = $this->getOptionValue('ycd-text-font-family');
335
  <label for="" class="ycd-label-of-select"><?php _e('Background Repeat', YCD_TEXT_DOMAIN); ?></label>
336
  </div>
337
  <div class="col-md-6 ycd-circles-width-wrapper">
338
- <?php AdminHelper::selectBox($defaultData['bg-image-repeat'], esc_attr($this->getOptionValue('ycd-bg-image-repeat')), array('name' => 'ycd-bg-image-repeat', 'class' => 'js-ycd-select js-bg-image-repeat')); ?>
 
 
 
339
  </div>
340
  </div>
341
  <div class="row form-group">
8
  }
9
  $defaultData = AdminHelper::defaultData();
10
  $textFontFamily = $this->getOptionValue('ycd-text-font-family');
11
+ $allowed_html = AdminHelper::getAllowedTags();
12
  ?>
13
  <div class="ycd-bootstrap-wrapper">
14
  <?php
260
  <label for="ycd-countdown-text-size" class="ycd-label-of-select"><?php _e('Font Family', YCD_TEXT_DOMAIN); ?></label>
261
  </div>
262
  <div class="col-md-4 ycd-option-wrapper<?php echo esc_attr($isPro); ?>">
263
+ <?php
264
+ $fontFaily = AdminHelper::selectBox($defaultData['font-family'], esc_attr($textFontFamily), array('name' => 'ycd-text-font-family', 'class' => 'js-ycd-select js-countdown-font-family'));
265
+ echo wp_kses($fontFaily, $allowed_html);
266
+ ?>
267
  </div>
268
  </div>
269
  <div class="row form-group">
301
  <label for="ycd-timer-content-alignment" ><?php _e('Alignment', YCD_TEXT_DOMAIN); ?></label>
302
  </div>
303
  <div class="col-md-4 ycd-timer-font-size">
304
+ <?php
305
+ $horizontalAlignment = AdminHelper::selectBox($defaultData['horizontal-alignment'], esc_attr($this->getOptionValue('ycd-timer-content-alignment')), array('name' => 'ycd-timer-content-alignment', 'class' => 'js-ycd-select ycd-timer-content-alignment'));
306
+ echo wp_kses($horizontalAlignment, $allowed_html);
307
+ ?>
308
  </div>
309
  </div>
310
  <div class="row form-group">
334
  <label for="" class="ycd-label-of-select"><?php _e('Background Size', YCD_TEXT_DOMAIN); ?></label>
335
  </div>
336
  <div class="col-md-6 ycd-circles-width-wrapper">
337
+ <?php
338
+ $bgImageSize = AdminHelper::selectBox($defaultData['bg-image-size'], esc_attr($this->getOptionValue('ycd-bg-image-size')), array('name' => 'ycd-bg-image-size', 'class' => 'js-ycd-select js-ycd-bg-size'));
339
+ echo wp_kses($bgImageSize, $allowed_html);
340
+ ?>
341
  </div>
342
  </div>
343
  <div class="row form-group">
345
  <label for="" class="ycd-label-of-select"><?php _e('Background Repeat', YCD_TEXT_DOMAIN); ?></label>
346
  </div>
347
  <div class="col-md-6 ycd-circles-width-wrapper">
348
+ <?php
349
+ $bgImageRepeate = AdminHelper::selectBox($defaultData['bg-image-repeat'], esc_attr($this->getOptionValue('ycd-bg-image-repeat')), array('name' => 'ycd-bg-image-repeat', 'class' => 'js-ycd-select js-bg-image-repeat'));
350
+ echo wp_kses($bgImageRepeate, $allowed_html);
351
+ ?>
352
  </div>
353
  </div>
354
  <div class="row form-group">
assets/views/settings.php CHANGED
@@ -7,6 +7,7 @@
7
  $hideComingSoon = (get_option('ycd-hide-coming-soon-menu') ? 'checked': '');
8
  $printScripts = (get_option('ycd-print-scripts-to-page') ? 'checked': '');
9
  $hideMediaButton = (get_option('ycd-hide-editor-media-button') ? 'checked': '');
 
10
  ?>
11
  <?php if(!empty($_GET['saved'])) : ?>
12
  <div id="default-message" class="updated notice notice-success is-dismissible">
@@ -75,7 +76,10 @@
75
  <label><?php _e('User role who can use plugin', YCD_TEXT_DOMAIN)?></label>
76
  </div>
77
  <div class="col-md-4">
78
- <?php HelperFunction::createSelectBox($defaultData['userRoles'], $userSavedRoles, array('name' => 'ycd-user-roles[]', 'class' => 'js-ycd-select ycd-countdowns', 'multiple' => 'multiple')); ?>
 
 
 
79
  </div>
80
  </div>
81
  <div class="row form-group">
7
  $hideComingSoon = (get_option('ycd-hide-coming-soon-menu') ? 'checked': '');
8
  $printScripts = (get_option('ycd-print-scripts-to-page') ? 'checked': '');
9
  $hideMediaButton = (get_option('ycd-hide-editor-media-button') ? 'checked': '');
10
+ $allowed_html = AdminHelper::getAllowedTags();
11
  ?>
12
  <?php if(!empty($_GET['saved'])) : ?>
13
  <div id="default-message" class="updated notice notice-success is-dismissible">
76
  <label><?php _e('User role who can use plugin', YCD_TEXT_DOMAIN)?></label>
77
  </div>
78
  <div class="col-md-4">
79
+ <?php
80
+ $useRoles = HelperFunction::createSelectBox($defaultData['userRoles'], $userSavedRoles, array('name' => 'ycd-user-roles[]', 'class' => 'js-ycd-select ycd-countdowns', 'multiple' => 'multiple'));
81
+ echo wp_kses($useRoles, $allowed_html);
82
+ ?>
83
  </div>
84
  </div>
85
  <div class="row form-group">
classes/Actions.php CHANGED
@@ -403,13 +403,32 @@ class Actions {
403
  foreach ($options as $option) {
404
  $current = '';
405
  if (!empty($_POST[$option])) {
406
- $current = sanitize_text_field($_POST[$option]);
 
 
 
 
 
407
  }
408
  update_option($option, $current);
409
  }
410
 
411
  wp_redirect(admin_url().'edit.php?post_type='.YCD_COUNTDOWN_POST_TYPE.'&page='.YCD_COUNTDOWN_SETTINGS.'&saved=1');
412
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
413
 
414
  public function comingSoon() {
415
  check_admin_referer('ycdSaveComingSoon');
403
  foreach ($options as $option) {
404
  $current = '';
405
  if (!empty($_POST[$option])) {
406
+ if (is_array($_POST[$option])) {
407
+ $current = $this->sanitize($_POST[$option]);
408
+ }
409
+ else {
410
+ $current = sanitize_text_field($_POST[$option]);
411
+ }
412
  }
413
  update_option($option, $current);
414
  }
415
 
416
  wp_redirect(admin_url().'edit.php?post_type='.YCD_COUNTDOWN_POST_TYPE.'&page='.YCD_COUNTDOWN_SETTINGS.'&saved=1');
417
  }
418
+
419
+ public function sanitize( $input ) {
420
+
421
+ // Initialize the new array that will hold the sanitize values
422
+ $new_input = array();
423
+
424
+ // Loop through the input and sanitize each of the values
425
+ foreach ( $input as $key => $val ) {
426
+ $new_input[ $key ] = sanitize_text_field( $val );
427
+ }
428
+
429
+ return $new_input;
430
+
431
+ }
432
 
433
  public function comingSoon() {
434
  check_admin_referer('ycdSaveComingSoon');
classes/countdown/CircleCountdown.php CHANGED
@@ -182,7 +182,6 @@ class CircleCountdown extends Countdown {
182
  $allowed_html = AdminHelper::getAllowedTags();
183
  $seconds = $this->getCountdownTimerAttrSeconds();
184
  $bgImageStyleStr = $this->getBgImageStyleStr();
185
- $bgImageStyleStr .= $this->renderStyles();
186
  $allDataOptions = $this->getDataAllOptions();
187
  $allDataOptions = json_encode($allDataOptions, JSON_HEX_TAG | JSON_HEX_APOS | JSON_HEX_QUOT);
188
  $prepareOptions = $this->getCircleOptionsData();
@@ -206,7 +205,8 @@ class CircleCountdown extends Countdown {
206
  $content .= '<div class="ycd-circle-expiration-after-countdown" data-key="" style="display: none">'.do_shortcode($this->getOptionValue('ycd-circle-countdown-expiration-after-countdown')).'</div>';
207
  $content .= '<div class="ycd-circle-after-countdown" data-key="">'.do_shortcode($this->getOptionValue('ycd-circle-countdown-after-countdown')).'</div>';
208
  $content .= '</div>';
209
-
 
210
  return $content;
211
  }
212
  }
182
  $allowed_html = AdminHelper::getAllowedTags();
183
  $seconds = $this->getCountdownTimerAttrSeconds();
184
  $bgImageStyleStr = $this->getBgImageStyleStr();
 
185
  $allDataOptions = $this->getDataAllOptions();
186
  $allDataOptions = json_encode($allDataOptions, JSON_HEX_TAG | JSON_HEX_APOS | JSON_HEX_QUOT);
187
  $prepareOptions = $this->getCircleOptionsData();
205
  $content .= '<div class="ycd-circle-expiration-after-countdown" data-key="" style="display: none">'.do_shortcode($this->getOptionValue('ycd-circle-countdown-expiration-after-countdown')).'</div>';
206
  $content .= '<div class="ycd-circle-after-countdown" data-key="">'.do_shortcode($this->getOptionValue('ycd-circle-countdown-after-countdown')).'</div>';
207
  $content .= '</div>';
208
+ $content .= $this->renderStyles();
209
+
210
  return $content;
211
  }
212
  }
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.9.9
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.9.10
6
  * Author: Adam Skaat
7
  * Author URI: https://edmonsoft.com/countdown
8
  * License: GPLv2
helpers/AdminHelper.php CHANGED
@@ -1511,7 +1511,8 @@ class AdminHelper {
1511
  'name' => array(),
1512
  'class' => array(),
1513
  'js-circle-time-zone' => array(),
1514
- 'style' => array()
 
1515
  ),
1516
  'option' => array(
1517
  'value' => array(),
1511
  'name' => array(),
1512
  'class' => array(),
1513
  'js-circle-time-zone' => array(),
1514
+ 'style' => array(),
1515
+ 'multiple' => array()
1516
  ),
1517
  'option' => array(
1518
  'value' => array(),
helpers/HelperFunctions.php CHANGED
@@ -13,7 +13,7 @@ class HelperFunction
13
  if(!empty($attrs) && isset($attrs)) {
14
 
15
  foreach ($attrs as $attrName => $attrValue) {
16
- $attrString .= ''.esc_attr($attrName).'="'.esc_attr($attrValue).'" ';
17
  }
18
  }
19
 
@@ -55,6 +55,7 @@ class HelperFunction
55
  $selected = '';
56
  $attrString = self::createAttrs($attrs);
57
 
 
58
  $selectBox = '<select '.esc_attr($attrString).'>';
59
 
60
  foreach($data as $value => $label) {
13
  if(!empty($attrs) && isset($attrs)) {
14
 
15
  foreach ($attrs as $attrName => $attrValue) {
16
+ $attrString .= esc_attr($attrName).'='.esc_attr($attrValue).' ';
17
  }
18
  }
19
 
55
  $selected = '';
56
  $attrString = self::createAttrs($attrs);
57
 
58
+ $selectBox = '<select '.esc_attr($attrString).'>';
59
  $selectBox = '<select '.esc_attr($attrString).'>';
60
 
61
  foreach($data as $value => $label) {
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  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.9.9
7
  Requires PHP: 5.3
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
2
  Contributors: adamskaat
3
  Tags: countdown, timer, countdown timer
4
  Requires at least: 3.8
5
+ Tested up to: 6.0
6
+ Stable tag: 2.3.9.10
7
  Requires PHP: 5.3
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html