Countdown Timer – Widget Countdown - Version 1.6.5

Version Description

  • Added new comments to the code.

=

Download this release

Release Info

Developer wpdevart
Plugin Icon 128x128 Countdown Timer – Widget Countdown
Version 1.6.5
Comparing to
See all releases

Code changes from version 1.5.4 to 1.6.5

images/featured_plugins/contact_forms.png ADDED
Binary file
includes/admin_menu.php CHANGED
@@ -23,7 +23,7 @@ class wpdevart_countdown_admin_menu{
23
add_action( 'wp_ajax_wpdevart_countdown_page_save', array($this,'save_in_databese') );
24
add_action( 'wp_ajax_wpdevart_countdown_send_mail', array($this,'sending_mail') );
25
}
26
- /*############################### Insert button part ########################################*/
27
public function wpdevart_countdown_button($context) {
28
29
$img = $this->plugin_url. 'images/post_button.jpg';
@@ -110,7 +110,7 @@ class wpdevart_countdown_admin_menu{
110
</tr>
111
<tr>
112
<td>
113
- Countdown date picker type <span title="Select the date picker type." class="desription_class">?</span>
114
115
</td>
116
<td>
@@ -130,7 +130,7 @@ class wpdevart_countdown_admin_menu{
130
</tr>
131
<tr class="expert_type_time">
132
<td>
133
- Countdown expire time <span title="Type here the Countdown expire time." class="desription_class">?</span>
134
</td>
135
<td style="vertical-align: top !important;">
136
<span style="display:inline-block; margin-right:3px; width:55px;">
@@ -150,7 +150,7 @@ class wpdevart_countdown_admin_menu{
150
</tr>
151
<tr>
152
<td>
153
- <span style="color:red">After Countdown expire</span> <span title="Select the action you need after Countdown time expire." class="desription_class">?</span>
154
</td>
155
<td>
156
<select id="countdownstart_on" >
@@ -240,7 +240,7 @@ class wpdevart_countdown_admin_menu{
240
241
<tr class="tr_circle">
242
<td>
243
- Countdown timer border width<span class="pro_feature"> (pro)</span> <span title="Type the Countdown border width." class="desription_class">?</span>
244
</td>
245
<td>
246
<input onClick="alert(countdown_pro_text)" type="text" size="3" name="countdown_circle_border" value="5" id="countdown_circle_border" style="font-weight:bold; width:35px" >(0-100)%
@@ -266,7 +266,7 @@ class wpdevart_countdown_admin_menu{
266
267
<tr class="tr_button tr_circle tr_vertical_slide">
268
<td>
269
- Countdown timer Font family<span class="pro_feature"> (pro)</span> <span title="Choose the Countdown Font family." class="desription_class">?</span>
270
</td>
271
<td>
272
<?php wpdevart_countdown_setting::generete_fonts('countdown_font_famaly',"monospace") ?>
@@ -274,7 +274,7 @@ class wpdevart_countdown_admin_menu{
274
</tr>
275
<tr>
276
<td>
277
- Countdown animation type<span class="pro_feature"> (pro)</span> <span title="Choose the Countdown animation type." class="desription_class">?</span>
278
</td>
279
<td>
280
<?php wpdevart_countdown_setting::generete_animation_select('countdown_animation_type','none'); ?>
@@ -313,7 +313,7 @@ class wpdevart_countdown_admin_menu{
313
jQuery('.coming_set_hiddens').each(function(index, element) {
314
jQuery('.tr_'+jQuery(this).val()).show();
315
});
316
- //Show hidden countdown end of date type
317
jQuery('.show_hide_experet_type').change(function(){
318
if(jQuery(this).val()=='date'){
319
jQuery('.expert_type_date').show();
@@ -454,6 +454,12 @@ die;
454
'title' => 'Coming soon and Maintenance mode',
455
'description' => 'Coming soon and Maintenance mode plugin is an awesome tool to show your visitors that you are working on your website to make it better.'
456
),
457
'Booking Calendar'=>array(
458
'image_url' => $this->plugin_url.'images/featured_plugins/Booking_calendar_featured.png',
459
'site_url' => 'http://wpdevart.com/wordpress-booking-calendar-plugin/',
@@ -470,7 +476,7 @@ die;
470
'image_url' => $this->plugin_url.'images/featured_plugins/facebook-comments-icon.png',
471
'site_url' => 'http://wpdevart.com/wordpress-facebook-comments-plugin/',
472
'title' => 'WordPress Facebook comments',
473
- 'description' => 'Our Facebook comments plugin will help you to display Facebook Comments on your website. You can use Facebook Comments on your pages/posts.'
474
),
475
'countdown'=>array(
476
'image_url' => $this->plugin_url.'images/featured_plugins/countdown.jpg',
@@ -482,7 +488,7 @@ die;
482
'image_url' => $this->plugin_url.'images/featured_plugins/lightbox.png',
483
'site_url' => 'http://wpdevart.com/wordpress-lightbox-plugin',
484
'title' => 'WordPress Lightbox plugin',
485
- 'description' => 'WordPress lightbox is an high customizable and responsive plugin for displaying images and videos in popup.'
486
),
487
'facebook'=>array(
488
'image_url' => $this->plugin_url.'images/featured_plugins/facebook.jpg',
@@ -494,7 +500,7 @@ die;
494
'image_url' => $this->plugin_url.'images/featured_plugins/poll.png',
495
'site_url' => 'http://wpdevart.com/wordpress-polls-plugin',
496
'title' => 'WordPress Polls plugin',
497
- 'description' => 'WordPress Polls plugin is an wonderful tool for creating polls and survey forms for your visitors. You can use our polls on widgets, posts and pages.'
498
),
499
500
);
23
add_action( 'wp_ajax_wpdevart_countdown_page_save', array($this,'save_in_databese') );
24
add_action( 'wp_ajax_wpdevart_countdown_send_mail', array($this,'sending_mail') );
25
}
26
+ /*############################### Insert button code part ########################################*/
27
public function wpdevart_countdown_button($context) {
28
29
$img = $this->plugin_url. 'images/post_button.jpg';
110
</tr>
111
<tr>
112
<td>
113
+ Countdown date picker type <span title="Select the Countdown date picker type." class="desription_class">?</span>
114
115
</td>
116
<td>
130
</tr>
131
<tr class="expert_type_time">
132
<td>
133
+ Countdown expire time <span title="Type the Countdown expire time." class="desription_class">?</span>
134
</td>
135
<td style="vertical-align: top !important;">
136
<span style="display:inline-block; margin-right:3px; width:55px;">
150
</tr>
151
<tr>
152
<td>
153
+ <span style="color:red">After Countdown expire</span> <span title="Select the action you prefere after Countdown time expire." class="desription_class">?</span>
154
</td>
155
<td>
156
<select id="countdownstart_on" >
240
241
<tr class="tr_circle">
242
<td>
243
+ Countdown timer border width<span class="pro_feature"> (pro)</span> <span title="Type the Countdown border width(px)." class="desription_class">?</span>
244
</td>
245
<td>
246
<input onClick="alert(countdown_pro_text)" type="text" size="3" name="countdown_circle_border" value="5" id="countdown_circle_border" style="font-weight:bold; width:35px" >(0-100)%
266
267
<tr class="tr_button tr_circle tr_vertical_slide">
268
<td>
269
+ Countdown timer Font family<span class="pro_feature"> (pro)</span> <span title="Select the Countdown Font family." class="desription_class">?</span>
270
</td>
271
<td>
272
<?php wpdevart_countdown_setting::generete_fonts('countdown_font_famaly',"monospace") ?>
274
</tr>
275
<tr>
276
<td>
277
+ Countdown animation type<span class="pro_feature"> (pro)</span> <span title="Select the Countdown animation type." class="desription_class">?</span>
278
</td>
279
<td>
280
<?php wpdevart_countdown_setting::generete_animation_select('countdown_animation_type','none'); ?>
313
jQuery('.coming_set_hiddens').each(function(index, element) {
314
jQuery('.tr_'+jQuery(this).val()).show();
315
});
316
+ //Show hidden countdown timer in the end of date type
317
jQuery('.show_hide_experet_type').change(function(){
318
if(jQuery(this).val()=='date'){
319
jQuery('.expert_type_date').show();
454
'title' => 'Coming soon and Maintenance mode',
455
'description' => 'Coming soon and Maintenance mode plugin is an awesome tool to show your visitors that you are working on your website to make it better.'
456
),
457
+ 'Contact forms'=>array(
458
+ 'image_url' => $this->plugin_url.'images/featured_plugins/contact_forms.png',
459
+ 'site_url' => 'http://wpdevart.com/wordpress-contact-form-plugin/',
460
+ 'title' => 'Contact Form Builder',
461
+ 'description' => 'Contact Form Builder plugin is an handy tool for creating different types of contact forms on your WordPress websites.'
462
+ ),
463
'Booking Calendar'=>array(
464
'image_url' => $this->plugin_url.'images/featured_plugins/Booking_calendar_featured.png',
465
'site_url' => 'http://wpdevart.com/wordpress-booking-calendar-plugin/',
476
'image_url' => $this->plugin_url.'images/featured_plugins/facebook-comments-icon.png',
477
'site_url' => 'http://wpdevart.com/wordpress-facebook-comments-plugin/',
478
'title' => 'WordPress Facebook comments',
479
+ 'description' => 'Facebook comments plugin will help you to display Facebook Comments on your website. You can use Facebook Comments on your pages/posts.'
480
),
481
'countdown'=>array(
482
'image_url' => $this->plugin_url.'images/featured_plugins/countdown.jpg',
488
'image_url' => $this->plugin_url.'images/featured_plugins/lightbox.png',
489
'site_url' => 'http://wpdevart.com/wordpress-lightbox-plugin',
490
'title' => 'WordPress Lightbox plugin',
491
+ 'description' => 'WordPress Lightbox Popup is an high customizable and responsive plugin for displaying images and videos in popup.'
492
),
493
'facebook'=>array(
494
'image_url' => $this->plugin_url.'images/featured_plugins/facebook.jpg',
500
'image_url' => $this->plugin_url.'images/featured_plugins/poll.png',
501
'site_url' => 'http://wpdevart.com/wordpress-polls-plugin',
502
'title' => 'WordPress Polls plugin',
503
+ 'description' => 'WordPress Polls plugin is an handy tool for creating polls and survey forms for your visitors. You can use our polls on widgets, posts and pages.'
504
),
505
506
);
includes/front_end.php CHANGED
@@ -40,14 +40,14 @@ class wpdevart_countdown_front_end{
40
self::$id_for_content++;
41
$output_html='';
42
$curent_value= shortcode_atts( array(
43
- "text_for_day" => "days",
44
- "text_for_hour" => "hours",
45
- "text_for_minut" => "minutes",
46
- "text_for_second" => "seconds",
47
"start_time" => mktime (date("H"), date("i"), date("s"),date("n"), date("j"),date("Y")),
48
"countdown_end_type" => "time",
49
"end_date" => date('d-m-Y 23:59'),
50
- "end_time" => "0,1,0",
51
"action_end_time" => "hide",
52
"content_position" => "center",
53
"top_ditance" => "10",
40
self::$id_for_content++;
41
$output_html='';
42
$curent_value= shortcode_atts( array(
43
+ "text_for_day" => "Days",
44
+ "text_for_hour" => "Hours",
45
+ "text_for_minut" => "Minutes",
46
+ "text_for_second" => "Seconds",
47
"start_time" => mktime (date("H"), date("i"), date("s"),date("n"), date("j"),date("Y")),
48
"countdown_end_type" => "time",
49
"end_date" => date('d-m-Y 23:59'),
50
+ "end_time" => "0,8,8",
51
"action_end_time" => "hide",
52
"content_position" => "center",
53
"top_ditance" => "10",
includes/library.php CHANGED
@@ -1,5 +1,5 @@
1
<?php
2
- /*############################### LIBRARY CODE ###############################################*/
3
class wpdevart_countdown_setting{
4
public static $list_of_animations=array('bounce','flash','pulse','rubberBand','shake','swing','tada','wobble','bounceIn','bounceInDown','bounceInLeft','bounceInRight','bounceInUp','fadeIn','fadeInDown','fadeInDownBig','fadeInLeft','fadeInLeftBig','fadeInRight','fadeInRightBig','fadeInUp','fadeInUpBig','flip','flipInX','flipInY','lightSpeedIn','rotateIn','rotateInDownLeft','rotateInDownRight','rotateInUpLeft','rotateInUpRight','rollIn','zoomIn','zoomInDown','zoomInLeft','zoomInRight','zoomInUp');
5
public static function get_animations_type_array($animation=''){
@@ -11,6 +11,7 @@ class wpdevart_countdown_setting{
11
}
12
return $animation;
13
}
14
public static function generete_animation_select($select_id='',$curent_effect='none'){
15
?>
16
<select onClick="alert(countdown_pro_text)" id="<?php echo $select_id; ?>" name="<?php echo $select_id; ?>">
@@ -120,7 +121,7 @@ class wpdevart_countdown_setting{
120
121
}
122
123
- /*############################### STATIC FUNCTION ###############################################*/
124
public static function darkest_brigths($color,$pracent){
125
$new_color=$color;
126
if(!(strlen($new_color==6) || strlen($new_color)==7))
1
<?php
2
+ /*############################### LIBRARY CODE PART ###############################################*/
3
class wpdevart_countdown_setting{
4
public static $list_of_animations=array('bounce','flash','pulse','rubberBand','shake','swing','tada','wobble','bounceIn','bounceInDown','bounceInLeft','bounceInRight','bounceInUp','fadeIn','fadeInDown','fadeInDownBig','fadeInLeft','fadeInLeftBig','fadeInRight','fadeInRightBig','fadeInUp','fadeInUpBig','flip','flipInX','flipInY','lightSpeedIn','rotateIn','rotateInDownLeft','rotateInDownRight','rotateInUpLeft','rotateInUpRight','rollIn','zoomIn','zoomInDown','zoomInLeft','zoomInRight','zoomInUp');
5
public static function get_animations_type_array($animation=''){
11
}
12
return $animation;
13
}
14
+ /*############################### ANIMATION FUNCTION #######################################*/
15
public static function generete_animation_select($select_id='',$curent_effect='none'){
16
?>
17
<select onClick="alert(countdown_pro_text)" id="<?php echo $select_id; ?>" name="<?php echo $select_id; ?>">
121
122
}
123
124
+ /*############################### STATIC FUNCTION #######################################*/
125
public static function darkest_brigths($color,$pracent){
126
$new_color=$color;
127
if(!(strlen($new_color==6) || strlen($new_color)==7))
includes/style/effects.css CHANGED
@@ -1834,7 +1834,7 @@
1834
animation-name: hinge;
1835
}
1836
1837
- /* originally authored by Nick Pettit - https://github.com/nickpettit/glide */
1838
1839
@-webkit-keyframes rollIn {
1840
0% {
@@ -1871,7 +1871,7 @@
1871
animation-name: rollIn;
1872
}
1873
1874
- /* originally authored by Nick Pettit - https://github.com/nickpettit/glide */
1875
1876
1877
1834
animation-name: hinge;
1835
}
1836
1837
+ /* Originally authored by Nick Pettit - https://github.com/nickpettit/glide */
1838
1839
@-webkit-keyframes rollIn {
1840
0% {
1871
animation-name: rollIn;
1872
}
1873
1874
+ /* Originally authored by Nick Pettit - https://github.com/nickpettit/glide */
1875
1876
1877
includes/style/jquery-ui-style.css CHANGED
@@ -31,7 +31,7 @@
31
clear: both;
32
}
33
.ui-helper-clearfix {
34
- min-height: 0; /* supports: IE7 */
35
}
36
.ui-helper-zfix {
37
width: 100%;
@@ -40,7 +40,7 @@
40
left: 0;
41
position: absolute;
42
opacity: 0;
43
- filter:Alpha(Opacity=0); /* supports: IE8 */
44
}
45
46
.ui-front {
@@ -55,7 +55,7 @@
55
}
56
57
58
- /* Icons
59
----------------------------------*/
60
61
/* states and ../../images */
@@ -119,7 +119,7 @@
119
cursor: pointer;
120
vertical-align: middle;
121
text-align: center;
122
- overflow: visible; /* removes extra width in IE browser */
123
}
124
.ui-button,
125
.ui-button:link,
@@ -143,7 +143,7 @@ button.ui-button-icons-only {
143
width: 3.7em;
144
}
145
146
- /* button text elements */
147
.ui-button .ui-button-text {
148
display: block;
149
line-height: normal;
@@ -173,7 +173,7 @@ input.ui-button {
173
padding: .4em 1em;
174
}
175
176
- /* button icon elements */
177
.ui-button-icon-only .ui-icon,
178
.ui-button-text-icon-primary .ui-icon,
179
.ui-button-text-icon-secondary .ui-icon,
@@ -207,8 +207,8 @@ input.ui-button {
207
margin-right: -.3em;
208
}
209
210
- /* workarounds */
211
- /* reset extra padding in Firefox browser, see h5bp.com/l */
212
input.ui-button::-moz-focus-inner,
213
button.ui-button::-moz-focus-inner {
214
border: 0;
@@ -311,7 +311,7 @@ button.ui-button::-moz-focus-inner {
311
float: left;
312
}
313
314
- /* with multiple calendars */
315
.ui-datepicker.ui-datepicker-multi {
316
width: auto;
317
}
@@ -474,7 +474,7 @@ button.ui-button::-moz-focus-inner {
474
margin: -1px;
475
}
476
477
- /* icon support */
478
.ui-menu-icons {
479
position: relative;
480
}
@@ -482,7 +482,7 @@ button.ui-button::-moz-focus-inner {
482
padding-left: 2em;
483
}
484
485
- /* left-aligned */
486
.ui-menu .ui-icon {
487
position: absolute;
488
top: 0;
@@ -491,11 +491,12 @@ button.ui-button::-moz-focus-inner {
491
margin: auto 0;
492
}
493
494
- /* right-aligned */
495
.ui-menu .ui-menu-icon {
496
left: auto;
497
right: 0;
498
}
499
.ui-progressbar {
500
height: 2em;
501
text-align: left;
31
clear: both;
32
}
33
.ui-helper-clearfix {
34
+ min-height: 0; /* Supports: IE7 */
35
}
36
.ui-helper-zfix {
37
width: 100%;
40
left: 0;
41
position: absolute;
42
opacity: 0;
43
+ filter:Alpha(Opacity=0); /* Supports: IE8 */
44
}
45
46
.ui-front {
55
}
56
57
58
+ /* Icons Style
59
----------------------------------*/
60
61
/* states and ../../images */
119
cursor: pointer;
120
vertical-align: middle;
121
text-align: center;
122
+ overflow: visible; /* Removes extra width in IE browser */
123
}
124
.ui-button,
125
.ui-button:link,
143
width: 3.7em;
144
}
145
146
+ /* Button text elements */
147
.ui-button .ui-button-text {
148
display: block;
149
line-height: normal;
173
padding: .4em 1em;
174
}
175
176
+ /* Button icon elements style */
177
.ui-button-icon-only .ui-icon,
178
.ui-button-text-icon-primary .ui-icon,
179
.ui-button-text-icon-secondary .ui-icon,
207
margin-right: -.3em;
208
}
209
210
+ /* Workarounds */
211
+ /* Reset extra padding in Firefox browser, see h5bp.com/l */
212
input.ui-button::-moz-focus-inner,
213
button.ui-button::-moz-focus-inner {
214
border: 0;
311
float: left;
312
}
313
314
+ /* With multiple calendars */
315
.ui-datepicker.ui-datepicker-multi {
316
width: auto;
317
}
474
margin: -1px;
475
}
476
477
+ /* Icon support */
478
.ui-menu-icons {
479
position: relative;
480
}
482
padding-left: 2em;
483
}
484
485
+ /* Left-aligned */
486
.ui-menu .ui-icon {
487
position: absolute;
488
top: 0;
491
margin: auto 0;
492
}
493
494
+ /* Right-aligned */
495
.ui-menu .ui-menu-icon {
496
left: auto;
497
right: 0;
498
}
499
+ /*Progressbar style part*/
500
.ui-progressbar {
501
height: 2em;
502
text-align: left;
includes/style/style.css CHANGED
@@ -73,7 +73,7 @@
73
display:table-cell;
74
width: 10%;
75
}
76
- /*Countdown main style*/
77
.countdown figure ul{
78
padding:0px !important;
79
}
@@ -162,7 +162,7 @@ figure, figcaption {
162
163
164
165
- /* PROGRESS BAR PART */
166
167
168
@@ -216,7 +216,7 @@ figure, figcaption {
216
-webkit-animation: move 2s linear infinite;
217
overflow: hidden;
218
}
219
-
220
.animate > span:after {
221
display: none;
222
}
73
display:table-cell;
74
width: 10%;
75
}
76
+ /*Countdown main style part*/
77
.countdown figure ul{
78
padding:0px !important;
79
}
162
163
164
165
+ /* PROGRESS BAR STYLE */
166
167
168
216
-webkit-animation: move 2s linear infinite;
217
overflow: hidden;
218
}
219
+ /*Animation style*/
220
.animate > span:after {
221
display: none;
222
}
includes/widget.php CHANGED
@@ -1,10 +1,10 @@
1
<?php
2
- /*############################### WIDGET CODE ###############################################*/
3
class wpdevart_countdown extends WP_Widget {
4
private static $id_for_content=0;
5
// Constructor //
6
function __construct() {
7
- $widget_ops = array( 'classname' => 'wpdevart_countdown', 'description' => 'Countdown timer for widget ' ); // Widget Settings
8
$control_ops = array( 'id_base' => 'wpdevart_countdown' ); // Widget Controls
9
parent::__construct( 'wpdevart_countdown', 'Countdown', $widget_ops, $control_ops ); // Create the widget
10
@@ -22,7 +22,7 @@ class wpdevart_countdown extends WP_Widget {
22
if ( $title ) { echo $before_title . $title . $after_title; }
23
// Widget output //
24
echo $this->wpdevart_generete_front_end($instance);
25
- // After widget //
26
27
echo $after_widget;
28
}
@@ -59,7 +59,7 @@ class wpdevart_countdown extends WP_Widget {
59
'text_for_second' => 'Seconds',
60
'start_time' => mktime (date("H"), date("i"), date("s"),date("n"), date("j"),date("Y")),
61
'end_time_type' => 'time',
62
- 'end_time' => '0,2,5',
63
'end_time_date' => date('d-m-Y 23:59'),
64
'action_end_time' => 'hide',
65
'content' => '',
@@ -155,7 +155,7 @@ class wpdevart_countdown extends WP_Widget {
155
</span>
156
157
<span style="display:inline-block; width:55px;">
158
- <input onChange="insert_in_input();" type="text" placeholder="Minut" class="countdownminute" size="3" value="<?php echo $minute_of_end ?>"/><small>Minute</small>
159
</span>
160
<script>function insert_in_input(){
161
document.getElementById('<?php echo $this->get_field_id('end_time'); ?>').value=document.getElementById('<?php echo $this->get_field_id('end_time'); ?>').parentNode.getElementsByClassName('countdownday')[0].value+','+document.getElementById('<?php echo $this->get_field_id('end_time'); ?>').parentNode.getElementsByClassName('countdownhour')[0].value+','+document.getElementById('<?php echo $this->get_field_id('end_time'); ?>').parentNode.getElementsByClassName('countdownminute')[0].value
1
<?php
2
+ /*############################### WIDGET CODE PART ######################################*/
3
class wpdevart_countdown extends WP_Widget {
4
private static $id_for_content=0;
5
// Constructor //
6
function __construct() {
7
+ $widget_ops = array( 'classname' => 'wpdevart_countdown', 'description' => 'Countdown timer for widget ' ); // Widget Settings code
8
$control_ops = array( 'id_base' => 'wpdevart_countdown' ); // Widget Controls
9
parent::__construct( 'wpdevart_countdown', 'Countdown', $widget_ops, $control_ops ); // Create the widget
10
22
if ( $title ) { echo $before_title . $title . $after_title; }
23
// Widget output //
24
echo $this->wpdevart_generete_front_end($instance);
25
+ // After widget part//
26
27
echo $after_widget;
28
}
59
'text_for_second' => 'Seconds',
60
'start_time' => mktime (date("H"), date("i"), date("s"),date("n"), date("j"),date("Y")),
61
'end_time_type' => 'time',
62
+ 'end_time' => '0,8,8',
63
'end_time_date' => date('d-m-Y 23:59'),
64
'action_end_time' => 'hide',
65
'content' => '',
155
</span>
156
157
<span style="display:inline-block; width:55px;">
158
+ <input onChange="insert_in_input();" type="text" placeholder="Minute" class="countdownminute" size="3" value="<?php echo $minute_of_end ?>"/><small>Minute</small>
159
</span>
160
<script>function insert_in_input(){
161
document.getElementById('<?php echo $this->get_field_id('end_time'); ?>').value=document.getElementById('<?php echo $this->get_field_id('end_time'); ?>').parentNode.getElementsByClassName('countdownday')[0].value+','+document.getElementById('<?php echo $this->get_field_id('end_time'); ?>').parentNode.getElementsByClassName('countdownhour')[0].value+','+document.getElementById('<?php echo $this->get_field_id('end_time'); ?>').parentNode.getElementsByClassName('countdownminute')[0].value
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
=== Countdown WordPress plugin ===
2
Contributors: wpdevart
3
Donate link: http://wpdevart.com/wordpress-countdown-plugin
4
- Tags: countdown, count down, countdown timer, jQuery countdown, countdown generator, animated countdown, countdown widget, timer, countdown clock, wp countdown timer, event countdown, widget countdown, clock, countdown to time, countdown timer plugin, wordpress countdown, birthday countdown, html5 countdown, wp countdown, countdown timer widget, website countdown, date countdown, flash countdown, time counter, countdown system
5
Requires at least: 3.3.0
6
- Tested up to: 4.6.1
7
- Stable tag: 1.5.4
8
License: GPLv3
9
License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
@@ -60,7 +60,7 @@ You can upgrade WordPress Countdown plugin to [WordPress Countdown Pro](http://w
60
61
### If you found any bug in our WordPress Countdown plugin or have a question contact us at support@wpdevart.com.
62
63
- We recommend you to take a look for this useful plugins - [WordPress booking calendar](https://wordpress.org/plugins/booking-calendar), [WordPress Poll plugin](https://wordpress.org/plugins/polls-widget/), [WordPress Facebook like box](https://wordpress.org/plugins/like-box), [WordPress YouTube](https://wordpress.org/plugins/youtube-video-player), [WordPress Coming soon plugin](https://wordpress.org/plugins/coming-soon-page), [Facebook comments WordPress](https://wordpress.org/plugins/comments-from-facebook), [WordPress lightbox plugin](https://wordpress.org/plugins/lightbox-popup) .
64
65
### The Best Offer From WpDevArt
66
@@ -80,7 +80,7 @@ Installing the **WordPress Countdown plugin**
80
81
That's all, now you can create and insert Countdown timers into your pages/posts and widgets. If any problem occurs, contact us at [support@wpdevart.com](mailto:support@wpdevart.com).
82
83
- Also, we recommend you to take a look for this useful plugins - [WordPress booking calendar](https://wordpress.org/plugins/booking-calendar), [WordPress Poll plugin](https://wordpress.org/plugins/polls-widget/), [WordPress Facebook like box](https://wordpress.org/plugins/like-box), [WordPress YouTube](https://wordpress.org/plugins/youtube-video-player), [WordPress Coming soon plugin](https://wordpress.org/plugins/coming-soon-page), [Facebook comments WordPress](https://wordpress.org/plugins/comments-from-facebook), [WordPress lightbox plugin](https://wordpress.org/plugins/lightbox-popup) .
84
85
### The Best Offer From WpDevArt
86
@@ -94,6 +94,10 @@ Our WordPress Countdown plugin is user friendly, but here you can see some frequ
94
95
After you installed the Countdown plugin you can go to your pages/posts and just click on Countdown shortcode button and add Countdown timer for your pages/posts.
96
97
= How can I add Countdown timer into my sidebars =
98
99
After you installed the plugin you need to check your widgets page(Appearance>Widgets) and then drag and drop "WordPress Countdown plugin" widget into your sidebar.
@@ -103,9 +107,13 @@ After that set the Countdown timer options. Now your Countdown widget is ready.
103
104
Yes dear user, you can use our date picker from calendar.
105
106
- = I select date for countdown but it don't show the correct time that left =
107
108
- The plugin use the website server time, that;s why you see other time in front end.
109
110
= I Have trouble with circle countdown =
111
@@ -121,9 +129,9 @@ Contact us at support@wpdevart.com and we will send you the pro version.
121
122
= The pro version is one time pay or not =
123
124
- Yes dear users, you need to pay only one time for our pro version.
125
126
- Dear users, we also recommend you to take a look for this useful plugins - [WordPress booking calendar](https://wordpress.org/plugins/booking-calendar), [WordPress Poll plugin](https://wordpress.org/plugins/polls-widget/), [WordPress Facebook like box](https://wordpress.org/plugins/like-box), [WordPress YouTube](https://wordpress.org/plugins/youtube-video-player), [WordPress Coming soon plugin](https://wordpress.org/plugins/coming-soon-page), [Facebook comments WordPress](https://wordpress.org/plugins/comments-from-facebook), [WordPress lightbox plugin](https://wordpress.org/plugins/lightbox-popup) .
127
128
### The Best Offer From WpDevArt
129
@@ -145,7 +153,7 @@ Dear users, we also recommend you to take a look for this useful plugins - [Word
145
146
= 1.0.1 =
147
148
- * Bug fixed on version 1.0.1 .
149
150
= 1.0.2 =
151
@@ -153,11 +161,11 @@ Dear users, we also recommend you to take a look for this useful plugins - [Word
153
154
= 1.0.3 =
155
156
- * Bug fixed on version 1.0.3 .
157
158
= 1.0.6 =
159
160
- * Added featured plugin .
161
162
= 1.0.7 =
163
@@ -181,7 +189,7 @@ Dear users, we also recommend you to take a look for this useful plugins - [Word
181
182
= 1.1.2 =
183
184
- * Made some corrections.
185
186
= 1.1.3 =
187
@@ -351,6 +359,50 @@ Dear users, we also recommend you to take a look for this useful plugins - [Word
351
352
* Changed some otions.
353
354
== Wordpress Countdown step by step guide ==
355
356
### WordPress Countdown plugin options
@@ -359,7 +411,7 @@ Dear users, we also recommend you to take a look for this useful plugins - [Word
359
* Hour field text - Type here text for Hour field.
360
* Minute field text - Type here text for Minute field.
361
* Second field text - Type here text for Second field.
362
- * Countdown expire time - Type the Countdown expire time.
363
* After Countdown expired - Select the action after Countdown time expired.
364
* Message after countdown expired - Type the message after countdown expired.
365
* Countdown timer position - Select the Countdown position.
@@ -388,4 +440,4 @@ After that set your Countdown timer options. That's all.
388
389
**You can check our best offer page here - [Best Price](http://wpdevart.com/the-best-offer-from-wpdevart)**
390
391
- We recommend you to take a look for this useful plugins - [WordPress booking calendar](https://wordpress.org/plugins/booking-calendar), [WordPress Poll plugin](https://wordpress.org/plugins/polls-widget/), [WordPress Facebook like box](https://wordpress.org/plugins/like-box), [WordPress YouTube](https://wordpress.org/plugins/youtube-video-player), [WordPress Coming soon plugin](https://wordpress.org/plugins/coming-soon-page), [Facebook comments WordPress](https://wordpress.org/plugins/comments-from-facebook), [WordPress lightbox plugin](https://wordpress.org/plugins/lightbox-popup) .
1
=== Countdown WordPress plugin ===
2
Contributors: wpdevart
3
Donate link: http://wpdevart.com/wordpress-countdown-plugin
4
+ Tags: countdown, count down, countdown timer, jQuery countdown, countdown generator, animated countdown, countdown widget, timer, countdown clock, wp countdown timer, event countdown, widget countdown, clock, countdown to time, countdown timer plugin, wordpress countdown, birthday countdown, html5 countdown, wp countdown, countdown timer widget, website countdown, date countdown, flash countdown, time counter, countdown system, time counter
5
Requires at least: 3.3.0
6
+ Tested up to: 4.7.0
7
+ Stable tag: 1.6.5
8
License: GPLv3
9
License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
60
61
### If you found any bug in our WordPress Countdown plugin or have a question contact us at support@wpdevart.com.
62
63
+ We recommend you to take a look for this useful plugins - [WordPress Contact Form](https://wordpress.org/plugins/contact-forms-builder/), [WordPress booking calendar](https://wordpress.org/plugins/booking-calendar), [WordPress Poll plugin](https://wordpress.org/plugins/polls-widget/), [WordPress Facebook like box](https://wordpress.org/plugins/like-box), [WordPress YouTube](https://wordpress.org/plugins/youtube-video-player), [WordPress Coming soon plugin](https://wordpress.org/plugins/coming-soon-page), [Facebook comments WordPress](https://wordpress.org/plugins/comments-from-facebook), [WordPress lightbox plugin](https://wordpress.org/plugins/lightbox-popup) .
64
65
### The Best Offer From WpDevArt
66
80
81
That's all, now you can create and insert Countdown timers into your pages/posts and widgets. If any problem occurs, contact us at [support@wpdevart.com](mailto:support@wpdevart.com).
82
83
+ Also, we recommend you to take a look for this useful plugins - [WordPress Contact Form](https://wordpress.org/plugins/contact-forms-builder/), [WordPress booking calendar](https://wordpress.org/plugins/booking-calendar), [WordPress Poll plugin](https://wordpress.org/plugins/polls-widget/), [WordPress Facebook like box](https://wordpress.org/plugins/like-box), [WordPress YouTube](https://wordpress.org/plugins/youtube-video-player), [WordPress Coming soon plugin](https://wordpress.org/plugins/coming-soon-page), [Facebook comments WordPress](https://wordpress.org/plugins/comments-from-facebook), [WordPress lightbox plugin](https://wordpress.org/plugins/lightbox-popup) .
84
85
### The Best Offer From WpDevArt
86
94
95
After you installed the Countdown plugin you can go to your pages/posts and just click on Countdown shortcode button and add Countdown timer for your pages/posts.
96
97
+ = How can I add Countdown timer on my sidebar =
98
+
99
+ After you installed the Countdown plugin you need go to your widgets page, drop and down Countdown widget into your sidebar and configure the Countdown timer.
100
+
101
= How can I add Countdown timer into my sidebars =
102
103
After you installed the plugin you need to check your widgets page(Appearance>Widgets) and then drag and drop "WordPress Countdown plugin" widget into your sidebar.
107
108
Yes dear user, you can use our date picker from calendar.
109
110
+ = Can I use Countdown timer in popup =
111
+
112
+ Unfortunately we don't have popup option, but you can use countdown with other popup plugin.
113
+
114
+ = I select date for countdown using date picker but it doesn't show the correct time that left =
115
116
+ Countdown plugin use the website server time, that's why you see other time in front end, you can just insert the time you need if your website server time is not correct for you.
117
118
= I Have trouble with circle countdown =
119
129
130
= The pro version is one time pay or not =
131
132
+ Yes dear users, you need to pay only one time for our pro version, it's lifetime plan.
133
134
+ Dear users, we also recommend you to take a look for this useful plugins - [WordPress Contact Form](https://wordpress.org/plugins/contact-forms-builder/), [WordPress booking calendar](https://wordpress.org/plugins/booking-calendar), [WordPress Poll plugin](https://wordpress.org/plugins/polls-widget/), [WordPress Facebook like box](https://wordpress.org/plugins/like-box), [WordPress YouTube](https://wordpress.org/plugins/youtube-video-player), [WordPress Coming soon plugin](https://wordpress.org/plugins/coming-soon-page), [Facebook comments WordPress](https://wordpress.org/plugins/comments-from-facebook), [WordPress lightbox plugin](https://wordpress.org/plugins/lightbox-popup) .
135
136
### The Best Offer From WpDevArt
137
153
154
= 1.0.1 =
155
156
+ * Bug fixed on version 1.0.1.
157
158
= 1.0.2 =
159
161
162
= 1.0.3 =
163
164
+ * Counter Bug fixed on version 1.0.3.
165
166
= 1.0.6 =
167
168
+ * Added featured plugin.
169
170
= 1.0.7 =
171
189
190
= 1.1.2 =
191
192
+ * Made some corrections in Countdown plugin code.
193
194
= 1.1.3 =
195
359
360
* Changed some otions.
361
362
+ = 1.5.5 =
363
+
364
+ * Changed install database options.
365
+
366
+ = 1.5.6 =
367
+
368
+ * Edit comments.
369
+
370
+ = 1.5.7 =
371
+
372
+ * Added pro version url in menu.
373
+
374
+ = 1.5.8 =
375
+
376
+ * Edited comments in code.
377
+
378
+ = 1.5.9 =
379
+
380
+ * Made changes in code.
381
+
382
+ = 1.6.0 =
383
+
384
+ * Made changes in code comments.
385
+
386
+ = 1.6.1 =
387
+
388
+ * Added new featured plugin to the list.
389
+
390
+ = 1.6.2 =
391
+
392
+ * Fixed issues with date picker.
393
+
394
+ = 1.6.3 =
395
+
396
+ * Made changes in install database.
397
+
398
+ = 1.6.4 =
399
+
400
+ * Edited admin option descriptions.
401
+
402
+ = 1.6.5 =
403
+
404
+ * Added new comments to the code.
405
+
406
== Wordpress Countdown step by step guide ==
407
408
### WordPress Countdown plugin options
411
* Hour field text - Type here text for Hour field.
412
* Minute field text - Type here text for Minute field.
413
* Second field text - Type here text for Second field.
414
+ * Countdown expire time/date - Type the Countdown expire time or select it from calendar.
415
* After Countdown expired - Select the action after Countdown time expired.
416
* Message after countdown expired - Type the message after countdown expired.
417
* Countdown timer position - Select the Countdown position.
440
441
**You can check our best offer page here - [Best Price](http://wpdevart.com/the-best-offer-from-wpdevart)**
442
443
+ We recommend you to take a look for this useful plugins - [WordPress Contact Form](https://wordpress.org/plugins/contact-forms-builder/), [WordPress booking calendar](https://wordpress.org/plugins/booking-calendar), [WordPress Poll plugin](https://wordpress.org/plugins/polls-widget/), [WordPress Facebook like box](https://wordpress.org/plugins/like-box), [WordPress YouTube](https://wordpress.org/plugins/youtube-video-player), [WordPress Coming soon plugin](https://wordpress.org/plugins/coming-soon-page), [Facebook comments WordPress](https://wordpress.org/plugins/comments-from-facebook), [WordPress lightbox plugin](https://wordpress.org/plugins/lightbox-popup) .
wpdevart-countdown.php CHANGED
@@ -3,7 +3,7 @@
3
Plugin Name: Countdown Wpdevart
4
Plugin URI: http://wpdevart.com/wordpress-countdown-plugin/
5
Description: Countdown plugin is an nice tool to create and insert countdown timers into your posts/pages and widgets .
6
- Version: 1.5.4
7
Author: wpdevart
8
Author URI: http://wpdevart.com
9
License: GPL3 http://www.gnu.org/licenses/gpl-3.0.html
@@ -68,6 +68,17 @@ class wpdevart_countdown_main{
68
public function call_base_filters(){
69
add_action( 'init', array($this,'registr_requeried_scripts') );
70
add_action( 'admin_head', array($this,'include_requeried_scripts') );
71
}
72
public function include_requeried_scripts(){
73
wp_enqueue_script('wp-color-picker');
3
Plugin Name: Countdown Wpdevart
4
Plugin URI: http://wpdevart.com/wordpress-countdown-plugin/
5
Description: Countdown plugin is an nice tool to create and insert countdown timers into your posts/pages and widgets .
6
+ Version: 1.6.5
7
Author: wpdevart
8
Author URI: http://wpdevart.com
9
License: GPL3 http://www.gnu.org/licenses/gpl-3.0.html
68
public function call_base_filters(){
69
add_action( 'init', array($this,'registr_requeried_scripts') );
70
add_action( 'admin_head', array($this,'include_requeried_scripts') );
71
+ //for_upgrade
72
+ add_filter( 'plugin_action_links_' . plugin_basename(__FILE__), array($this,'plugin_activate_sublink') );
73
+ }
74
+ public function plugin_activate_sublink($links){
75
+ $plugin_submenu_added_link=array();
76
+ $added_link = array(
77
+ '<a target="_blank" style="color: rgba(10, 154, 62, 1); font-weight: bold; font-size: 13px;" href="http://wpdevart.com/wordpress-countdown-plugin">Upgrade to Pro</a>',
78
+ );
79
+ $plugin_submenu_added_link=array_merge( $plugin_submenu_added_link, $added_link );
80
+ $plugin_submenu_added_link=array_merge( $plugin_submenu_added_link, $links );
81
+ return $plugin_submenu_added_link;
82
}
83
public function include_requeried_scripts(){
84
wp_enqueue_script('wp-color-picker');