Countdown, Coming Soon – Countdown & Clock - Version 2.3.9.6

Version Description

Download this release

Release Info

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

Code changes from version 2.3.9.5 to 2.3.9.6

Files changed (4) hide show
  1. classes/Actions.php +0 -13
  2. classes/Ajax.php +0 -46
  3. countdown-builder.php +1 -1
  4. readme.txt +1 -1
classes/Actions.php CHANGED
@@ -48,18 +48,6 @@ class Actions {
48
  return $postTypes;
49
  }
50
 
51
- public function beforeDeactivateCountdown() {
52
- wp_enqueue_style('before-deactivate-countdown-css', YCD_COUNTDOWN_ADMIN_CSS_URL.'deactivationSurvey.css');
53
- wp_enqueue_script('before-deactivate-countdown-js', YCD_COUNTDOWN_ADMIN_JS_URL.'deactivationSurvey.js', array('jquery'));
54
-
55
- wp_localize_script('before-deactivate-countdown-js', 'COUNTDOWN_DEACTIVATE_ARGS', array(
56
- 'nonce' => wp_create_nonce('countdownBuilderAjaxNonce'),
57
- 'areYouSure' => __('Are you sure?', YCD_TEXT_DOMAIN)
58
- ));
59
-
60
- require_once YCD_ADMIN_VIEWS_PATH.'uninstallSurveyPopup.php';
61
- }
62
-
63
  public function duplicatePostSave() {
64
 
65
  global $wpdb;
@@ -238,7 +226,6 @@ class Actions {
238
  }
239
 
240
  public function postTypeInit() {
241
- add_action('admin_footer', array($this, 'beforeDeactivateCountdown'));
242
  $this->revieNotice();
243
  $this->customPostTypeObj = new RegisterPostType();
244
  $currentPostType = AdminHelper::getCurrentPostType();
48
  return $postTypes;
49
  }
50
 
 
 
 
 
 
 
 
 
 
 
 
 
51
  public function duplicatePostSave() {
52
 
53
  global $wpdb;
226
  }
227
 
228
  public function postTypeInit() {
 
229
  $this->revieNotice();
230
  $this->customPostTypeObj = new RegisterPostType();
231
  $currentPostType = AdminHelper::getCurrentPostType();
classes/Ajax.php CHANGED
@@ -11,7 +11,6 @@ class Ajax {
11
 
12
  public function init() {
13
  add_action('wp_ajax_ycd-switch', array($this, 'switchCountdown'));
14
- add_action('wp_ajax_ycdSupport', array($this, 'ycdSupport'));
15
 
16
  // review panel
17
  add_action('wp_ajax_ycd_dont_show_review_notice', array($this, 'dontShowReview'));
@@ -22,34 +21,6 @@ class Ajax {
22
  add_action('wp_ajax_ycd_edit_conditions_row', array($this, 'conditionsRow'));
23
  add_action('wp_ajax_ycd_add_conditions_row', array($this, 'conditionsRow'));
24
 
25
- add_action('wp_ajax_countdown-builder_storeSurveyResult', array($this, 'countdownBuilderStoreSurveyResult'));
26
- }
27
-
28
- public function countdownBuilderStoreSurveyResult() {
29
- check_ajax_referer('countdownBuilderAjaxNonce', 'token');
30
- $str = sanitize_text_field($_POST['savedData']);
31
- parse_str($str, $savedData);
32
-
33
- $headers = 'MIME-Versions: 1.0'."\r\n";
34
- $headers .= 'Content-types: text/plain; charset=UTF-8'."\r\n";
35
- $message = '<b>Product</b>: Countdown builder<br>';
36
- $message .= '<b>Version</b>: '.esc_attr(YCD_VERSION_TEXT).'<br>';
37
-
38
- if (empty($savedData['countdown-builder_reason_key'])) {
39
- $message .= 'Skip <br>';
40
- }
41
- else {
42
- foreach ($savedData as $key => $value) {
43
- if (empty($value)) {
44
- continue;
45
- }
46
- $message .= '<b>'.esc_attr($key).'</b>: '.esc_attr($value).'<br>';
47
- }
48
- }
49
-
50
- $sendStatus = wp_mail('xavierveretu@gmail.com', 'Countdown builder Deactivate Survey', $message, $headers);
51
- echo 1;
52
- die;
53
  }
54
 
55
  public function changeReviewPeriod() {
@@ -77,23 +48,6 @@ class Ajax {
77
  wp_die();
78
  }
79
 
80
- public function ycdSupport() {
81
- check_ajax_referer('ycd_ajax_nonce', 'nonce');
82
- parse_str(sanitize_text_field($_POST['formData']), $params);
83
-
84
- $headers = 'MIME-Versions: 1.0'."\r\n";
85
- $headers .= 'Content-types: text/plain; charset=UTF-8'."\r\n";
86
- $message = '<b>Report type</b>: '.esc_attr($params['report_type']).'<br>';
87
- $message .= '<b>Name</b>: '.esc_attr($params['name']).'<br>';
88
- $message .= '<b>Email</b>: '.esc_attr($params['email']).'<br>';
89
- $message .= '<b>Website</b>: '.esc_attr($params['website']).'<br>';
90
- $message .= '<b>Message</b>: '.esc_attr($params['ycd-message']).'<br>';
91
- $message .= '<b>version</b>: '.esc_attr(YcdCountdownConfig::getVersionString()).'<br>';
92
-
93
- $sendStatus = wp_mail('adamskaat1@gmail.com', 'Web site support', $message, $headers);
94
- die(1);
95
- }
96
-
97
  public function switchCountdown() {
98
  check_ajax_referer('ycd_ajax_nonce', 'nonce');
99
  $postId = (int)$_POST['id'];
11
 
12
  public function init() {
13
  add_action('wp_ajax_ycd-switch', array($this, 'switchCountdown'));
 
14
 
15
  // review panel
16
  add_action('wp_ajax_ycd_dont_show_review_notice', array($this, 'dontShowReview'));
21
  add_action('wp_ajax_ycd_edit_conditions_row', array($this, 'conditionsRow'));
22
  add_action('wp_ajax_ycd_add_conditions_row', array($this, 'conditionsRow'));
23
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
24
  }
25
 
26
  public function changeReviewPeriod() {
48
  wp_die();
49
  }
50
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
51
  public function switchCountdown() {
52
  check_ajax_referer('ycd_ajax_nonce', 'nonce');
53
  $postId = (int)$_POST['id'];
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.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 by Adam skaat
5
+ * Version: 2.3.9.6
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.9.5
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.9.6
7
  Requires PHP: 5.3
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html