Version Description
- Changed some otions.
=
Download this release
Release Info
Developer | wpdevart |
Plugin | Countdown Timer – Widget Countdown |
Version | 1.5.4 |
Comparing to | |
See all releases |
Code changes from version 1.6.3 to 1.5.4
- images/featured_plugins/contact_forms.png +0 -0
- includes/admin_menu.php +9 -15
- includes/front_end.php +5 -5
- includes/library.php +2 -3
- includes/style/effects.css +2 -2
- includes/style/jquery-ui-style.css +12 -12
- includes/style/style.css +2 -2
- includes/widget.php +5 -5
- readme.txt +13 -53
- wpdevart-countdown.php +1 -12
images/featured_plugins/contact_forms.png
DELETED
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
|
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
|
114 |
|
115 |
</td>
|
116 |
<td>
|
@@ -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
|
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
|
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="
|
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="
|
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
|
317 |
jQuery('.show_hide_experet_type').change(function(){
|
318 |
if(jQuery(this).val()=='date'){
|
319 |
jQuery('.expert_type_date').show();
|
@@ -454,12 +454,6 @@ 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 |
-
'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 nice and 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/',
|
@@ -488,7 +482,7 @@ die;
|
|
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
|
492 |
),
|
493 |
'facebook'=>array(
|
494 |
'image_url' => $this->plugin_url.'images/featured_plugins/facebook.jpg',
|
@@ -500,7 +494,7 @@ die;
|
|
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
|
504 |
),
|
505 |
|
506 |
);
|
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 |
</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>
|
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 |
|
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 |
|
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 |
</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 |
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 |
'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/',
|
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 |
'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 |
);
|
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" => "
|
44 |
-
"text_for_hour" => "
|
45 |
-
"text_for_minut" => "
|
46 |
-
"text_for_second" => "
|
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,
|
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,1,0",
|
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,7 +11,6 @@ class wpdevart_countdown_setting{
|
|
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,7 +120,7 @@ class wpdevart_countdown_setting{
|
|
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))
|
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 |
}
|
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 |
|
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))
|
includes/style/effects.css
CHANGED
@@ -1834,7 +1834,7 @@
|
|
1834 |
animation-name: hinge;
|
1835 |
}
|
1836 |
|
1837 |
-
/*
|
1838 |
|
1839 |
@-webkit-keyframes rollIn {
|
1840 |
0% {
|
@@ -1871,7 +1871,7 @@
|
|
1871 |
animation-name: rollIn;
|
1872 |
}
|
1873 |
|
1874 |
-
/*
|
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; /*
|
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); /*
|
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; /*
|
123 |
}
|
124 |
.ui-button,
|
125 |
.ui-button:link,
|
@@ -143,7 +143,7 @@ button.ui-button-icons-only {
|
|
143 |
width: 3.7em;
|
144 |
}
|
145 |
|
146 |
-
/*
|
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 |
-
/*
|
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 |
-
/*
|
211 |
-
/*
|
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 |
-
/*
|
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 |
-
/*
|
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 |
-
/*
|
486 |
.ui-menu .ui-icon {
|
487 |
position: absolute;
|
488 |
top: 0;
|
@@ -491,7 +491,7 @@ button.ui-button::-moz-focus-inner {
|
|
491 |
margin: auto 0;
|
492 |
}
|
493 |
|
494 |
-
/*
|
495 |
.ui-menu .ui-menu-icon {
|
496 |
left: auto;
|
497 |
right: 0;
|
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
|
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 */
|
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;
|
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
|
166 |
|
167 |
|
168 |
|
73 |
display:table-cell;
|
74 |
width: 10%;
|
75 |
}
|
76 |
+
/*Countdown main style*/
|
77 |
.countdown figure ul{
|
78 |
padding:0px !important;
|
79 |
}
|
162 |
|
163 |
|
164 |
|
165 |
+
/* PROGRESS BAR PART */
|
166 |
|
167 |
|
168 |
|
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,
|
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="
|
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 ###############################################*/
|
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 |
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 |
'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 |
</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
|
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.
|
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
|
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
|
84 |
|
85 |
### The Best Offer From WpDevArt
|
86 |
|
@@ -94,10 +94,6 @@ 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 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.
|
@@ -109,7 +105,7 @@ Yes dear user, you can use our date picker from calendar.
|
|
109 |
|
110 |
= I select date for countdown but it don't show the correct time that left =
|
111 |
|
112 |
-
The plugin use the website server time, that
|
113 |
|
114 |
= I Have trouble with circle countdown =
|
115 |
|
@@ -125,9 +121,9 @@ Contact us at support@wpdevart.com and we will send you the pro version.
|
|
125 |
|
126 |
= The pro version is one time pay or not =
|
127 |
|
128 |
-
Yes dear users, you need to pay only one time for our pro version
|
129 |
|
130 |
-
Dear users, we also recommend you to take a look for this useful plugins - [WordPress
|
131 |
|
132 |
### The Best Offer From WpDevArt
|
133 |
|
@@ -149,7 +145,7 @@ Dear users, we also recommend you to take a look for this useful plugins - [Word
|
|
149 |
|
150 |
= 1.0.1 =
|
151 |
|
152 |
-
* Bug fixed on version 1.0.1.
|
153 |
|
154 |
= 1.0.2 =
|
155 |
|
@@ -157,11 +153,11 @@ Dear users, we also recommend you to take a look for this useful plugins - [Word
|
|
157 |
|
158 |
= 1.0.3 =
|
159 |
|
160 |
-
*
|
161 |
|
162 |
= 1.0.6 =
|
163 |
|
164 |
-
* Added featured plugin.
|
165 |
|
166 |
= 1.0.7 =
|
167 |
|
@@ -185,7 +181,7 @@ Dear users, we also recommend you to take a look for this useful plugins - [Word
|
|
185 |
|
186 |
= 1.1.2 =
|
187 |
|
188 |
-
* Made some corrections
|
189 |
|
190 |
= 1.1.3 =
|
191 |
|
@@ -355,42 +351,6 @@ Dear users, we also recommend you to take a look for this useful plugins - [Word
|
|
355 |
|
356 |
* Changed some otions.
|
357 |
|
358 |
-
= 1.5.5 =
|
359 |
-
|
360 |
-
* Changed install database options.
|
361 |
-
|
362 |
-
= 1.5.6 =
|
363 |
-
|
364 |
-
* Edit comments.
|
365 |
-
|
366 |
-
= 1.5.7 =
|
367 |
-
|
368 |
-
* Added pro version url in menu.
|
369 |
-
|
370 |
-
= 1.5.8 =
|
371 |
-
|
372 |
-
* Edited comments in code.
|
373 |
-
|
374 |
-
= 1.5.9 =
|
375 |
-
|
376 |
-
* Made changes in code.
|
377 |
-
|
378 |
-
= 1.6.0 =
|
379 |
-
|
380 |
-
* Made changes in code comments.
|
381 |
-
|
382 |
-
= 1.6.1 =
|
383 |
-
|
384 |
-
* Added new featured plugin to the list.
|
385 |
-
|
386 |
-
= 1.6.2 =
|
387 |
-
|
388 |
-
* Fixed issues with date picker.
|
389 |
-
|
390 |
-
= 1.6.3 =
|
391 |
-
|
392 |
-
* Made changes in install database.
|
393 |
-
|
394 |
== Wordpress Countdown step by step guide ==
|
395 |
|
396 |
### WordPress Countdown plugin options
|
@@ -399,7 +359,7 @@ Dear users, we also recommend you to take a look for this useful plugins - [Word
|
|
399 |
* Hour field text - Type here text for Hour field.
|
400 |
* Minute field text - Type here text for Minute field.
|
401 |
* Second field text - Type here text for Second field.
|
402 |
-
* Countdown expire time
|
403 |
* After Countdown expired - Select the action after Countdown time expired.
|
404 |
* Message after countdown expired - Type the message after countdown expired.
|
405 |
* Countdown timer position - Select the Countdown position.
|
@@ -428,4 +388,4 @@ After that set your Countdown timer options. That's all.
|
|
428 |
|
429 |
**You can check our best offer page here - [Best Price](http://wpdevart.com/the-best-offer-from-wpdevart)**
|
430 |
|
431 |
-
We recommend you to take a look for this useful plugins - [WordPress
|
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 |
|
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 |
|
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 |
|
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.
|
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 |
|
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 |
|
146 |
= 1.0.1 =
|
147 |
|
148 |
+
* Bug fixed on version 1.0.1 .
|
149 |
|
150 |
= 1.0.2 =
|
151 |
|
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 |
|
182 |
= 1.1.2 =
|
183 |
|
184 |
+
* Made some corrections.
|
185 |
|
186 |
= 1.1.3 =
|
187 |
|
351 |
|
352 |
* Changed some otions.
|
353 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
354 |
== Wordpress Countdown step by step guide ==
|
355 |
|
356 |
### WordPress Countdown plugin options
|
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 |
|
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) .
|
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.
|
7 |
Author: wpdevart
|
8 |
Author URI: http://wpdevart.com
|
9 |
License: GPL3 http://www.gnu.org/licenses/gpl-3.0.html
|
@@ -68,17 +68,6 @@ 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 |
-
//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');
|
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 |
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');
|