Version Description
- Added comments for fuctions.
=
Download this release
Release Info
Developer | wpdevart |
Plugin | Countdown Timer – Widget Countdown |
Version | 1.7.8 |
Comparing to | |
See all releases |
Code changes from version 1.7.7 to 1.7.8
- includes/front_end.php +3 -1
- includes/library.php +6 -4
- includes/style/jquery-ui-style.css +1 -0
- includes/style/style.css +2 -1
- includes/widget.php +5 -4
- readme.txt +6 -6
- wpdevart-countdown.php +3 -1
includes/front_end.php
CHANGED
@@ -31,6 +31,7 @@ class wpdevart_countdown_front_end{
|
|
31 |
//For updated parameters
|
32 |
|
33 |
}
|
|
|
34 |
/*###################### Scripts and Styles part ##################*/
|
35 |
|
36 |
public function generete_front_javascript(){
|
@@ -41,6 +42,7 @@ class wpdevart_countdown_front_end{
|
|
41 |
wp_enqueue_style('thickbox');
|
42 |
|
43 |
}
|
|
|
44 |
/*###################### Shortcode Function ##################*/
|
45 |
|
46 |
public function wpdevart_wpdevart_countdown_shortcode( $atts,$content){
|
@@ -54,7 +56,7 @@ class wpdevart_countdown_front_end{
|
|
54 |
"start_time" => mktime (date("H"), date("i"), date("s"),date("n"), date("j"),date("Y")),
|
55 |
"countdown_end_type" => "time",
|
56 |
"end_date" => date('d-m-Y 23:59'),
|
57 |
-
"end_time" => "0,
|
58 |
"action_end_time" => "hide",
|
59 |
"content_position" => "center",
|
60 |
"top_ditance" => "10",
|
31 |
//For updated parameters
|
32 |
|
33 |
}
|
34 |
+
|
35 |
/*###################### Scripts and Styles part ##################*/
|
36 |
|
37 |
public function generete_front_javascript(){
|
42 |
wp_enqueue_style('thickbox');
|
43 |
|
44 |
}
|
45 |
+
|
46 |
/*###################### Shortcode Function ##################*/
|
47 |
|
48 |
public function wpdevart_wpdevart_countdown_shortcode( $atts,$content){
|
56 |
"start_time" => mktime (date("H"), date("i"), date("s"),date("n"), date("j"),date("Y")),
|
57 |
"countdown_end_type" => "time",
|
58 |
"end_date" => date('d-m-Y 23:59'),
|
59 |
+
"end_time" => "0,8,8",
|
60 |
"action_end_time" => "hide",
|
61 |
"content_position" => "center",
|
62 |
"top_ditance" => "10",
|
includes/library.php
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
/*############################### LIBRARY CODE PART ###############################################*/
|
4 |
|
5 |
class wpdevart_countdown_setting{
|
6 |
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');
|
@@ -13,7 +13,8 @@ class wpdevart_countdown_setting{
|
|
13 |
}
|
14 |
return $animation;
|
15 |
}
|
16 |
-
|
|
|
17 |
|
18 |
public static function generete_animation_select($select_id='',$curent_effect='none'){
|
19 |
?>
|
@@ -84,7 +85,8 @@ class wpdevart_countdown_setting{
|
|
84 |
</select>
|
85 |
<?php
|
86 |
}
|
87 |
-
|
|
|
88 |
|
89 |
public static function generete_fonts($select_id='',$curent_font='none'){
|
90 |
?>
|
@@ -126,7 +128,7 @@ class wpdevart_countdown_setting{
|
|
126 |
|
127 |
}
|
128 |
|
129 |
-
/*############################### STATIC COLOR FUNCTION #######################################*/
|
130 |
|
131 |
public static function darkest_brigths($color,$pracent){
|
132 |
$new_color=$color;
|
1 |
<?php
|
2 |
|
3 |
+
/*############################### LIBRARY CODE PART ###############################################*/
|
4 |
|
5 |
class wpdevart_countdown_setting{
|
6 |
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');
|
13 |
}
|
14 |
return $animation;
|
15 |
}
|
16 |
+
|
17 |
+
/*############################### ANIMATION FUNCTIONS #######################################*/
|
18 |
|
19 |
public static function generete_animation_select($select_id='',$curent_effect='none'){
|
20 |
?>
|
85 |
</select>
|
86 |
<?php
|
87 |
}
|
88 |
+
|
89 |
+
/*###################### Fonts Function ##################*/
|
90 |
|
91 |
public static function generete_fonts($select_id='',$curent_font='none'){
|
92 |
?>
|
128 |
|
129 |
}
|
130 |
|
131 |
+
/*############################### STATIC COLOR FUNCTION #######################################*/
|
132 |
|
133 |
public static function darkest_brigths($color,$pracent){
|
134 |
$new_color=$color;
|
includes/style/jquery-ui-style.css
CHANGED
@@ -215,6 +215,7 @@ button.ui-button::-moz-focus-inner {
|
|
215 |
border: 0;
|
216 |
padding: 0;
|
217 |
}
|
|
|
218 |
.ui-datepicker {
|
219 |
width: 17em;
|
220 |
padding: .2em .2em 0;
|
215 |
border: 0;
|
216 |
padding: 0;
|
217 |
}
|
218 |
+
/*Datepicker style*/
|
219 |
.ui-datepicker {
|
220 |
width: 17em;
|
221 |
padding: .2em .2em 0;
|
includes/style/style.css
CHANGED
@@ -66,6 +66,7 @@
|
|
66 |
z-index:999999;
|
67 |
width:100%;
|
68 |
}
|
|
|
69 |
#main_inform_div{
|
70 |
overflow:hidden;
|
71 |
box-sizing:border-box;
|
@@ -220,7 +221,7 @@ figure, figcaption {
|
|
220 |
-webkit-animation: move 2s linear infinite;
|
221 |
overflow: hidden;
|
222 |
}
|
223 |
-
|
224 |
.animate > span:after {
|
225 |
display: none;
|
226 |
}
|
66 |
z-index:999999;
|
67 |
width:100%;
|
68 |
}
|
69 |
+
/*Main info style*/
|
70 |
#main_inform_div{
|
71 |
overflow:hidden;
|
72 |
box-sizing:border-box;
|
221 |
-webkit-animation: move 2s linear infinite;
|
222 |
overflow: hidden;
|
223 |
}
|
224 |
+
/*Animation style*/
|
225 |
.animate > span:after {
|
226 |
display: none;
|
227 |
}
|
includes/widget.php
CHANGED
@@ -28,9 +28,10 @@ class wpdevart_countdown extends WP_Widget {
|
|
28 |
|
29 |
echo $after_widget;
|
30 |
}
|
31 |
-
|
32 |
-
|
33 |
-
|
|
|
34 |
extract( $args );
|
35 |
$instance['title'] = strip_tags($new_instance['title']);
|
36 |
$instance['text_for_day'] = $new_instance['text_for_day'];
|
@@ -61,7 +62,7 @@ class wpdevart_countdown extends WP_Widget {
|
|
61 |
'text_for_second' => 'Seconds',
|
62 |
'start_time' => mktime (date("H"), date("i"), date("s"),date("n"), date("j"),date("Y")),
|
63 |
'end_time_type' => 'time',
|
64 |
-
'end_time' => '0,
|
65 |
'end_time_date' => date('d-m-Y 23:59'),
|
66 |
'action_end_time' => 'hide',
|
67 |
'content' => '',
|
28 |
|
29 |
echo $after_widget;
|
30 |
}
|
31 |
+
|
32 |
+
/*############################### Update Settings Function #######################################*/
|
33 |
+
|
34 |
+
function update($new_instance, $old_instance) {
|
35 |
extract( $args );
|
36 |
$instance['title'] = strip_tags($new_instance['title']);
|
37 |
$instance['text_for_day'] = $new_instance['text_for_day'];
|
62 |
'text_for_second' => 'Seconds',
|
63 |
'start_time' => mktime (date("H"), date("i"), date("s"),date("n"), date("j"),date("Y")),
|
64 |
'end_time_type' => 'time',
|
65 |
+
'end_time' => '0,8,8',
|
66 |
'end_time_date' => date('d-m-Y 23:59'),
|
67 |
'action_end_time' => 'hide',
|
68 |
'content' => '',
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ 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 timer plugin, wordpress 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.7.
|
7 |
-
Stable tag: 1.7.
|
8 |
License: GPLv3
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
@@ -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.
|
@@ -451,6 +447,10 @@ Dear users, we also recommend you to take a look for this useful plugins - [Word
|
|
451 |
|
452 |
* Added descriptions for some functions.
|
453 |
|
|
|
|
|
|
|
|
|
454 |
== Wordpress Countdown step by step guide ==
|
455 |
|
456 |
### WordPress Countdown plugin options
|
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 timer plugin, wordpress 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.7.3
|
7 |
+
Stable tag: 1.7.8
|
8 |
License: GPLv3
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
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.
|
447 |
|
448 |
* Added descriptions for some functions.
|
449 |
|
450 |
+
= 1.7.8 =
|
451 |
+
|
452 |
+
* Added comments for fuctions.
|
453 |
+
|
454 |
== Wordpress Countdown step by step guide ==
|
455 |
|
456 |
### WordPress Countdown plugin options
|
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.
|
7 |
Author: wpdevart
|
8 |
Author URI: http://wpdevart.com
|
9 |
License: GPL3 http://www.gnu.org/licenses/gpl-3.0.html
|
@@ -35,6 +35,8 @@ class wpdevart_countdown_main{
|
|
35 |
$this->wpdevart_countdown_front_end();
|
36 |
|
37 |
}
|
|
|
|
|
38 |
|
39 |
public function create_admin_menu(){
|
40 |
|
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.8
|
7 |
Author: wpdevart
|
8 |
Author URI: http://wpdevart.com
|
9 |
License: GPL3 http://www.gnu.org/licenses/gpl-3.0.html
|
35 |
$this->wpdevart_countdown_front_end();
|
36 |
|
37 |
}
|
38 |
+
|
39 |
+
/*###################### Create admin menu function ##################*/
|
40 |
|
41 |
public function create_admin_menu(){
|
42 |
|