Countdown Timer – Widget Countdown - Version 1.2.9

Version Description

Download this release

Release Info

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

Code changes from version 1.2.8 to 1.2.9

includes/admin_menu.php CHANGED
@@ -16,14 +16,14 @@ class wpdevart_countdown_admin_menu{
16
$this->plugin_url=trailingslashit(dirname(plugins_url('',__FILE__)));
17
18
19
- // Post/Page insert button
20
add_action('media_buttons_context', array($this,'wpdevart_countdown_button'));
21
add_action( 'wp_ajax_wpdevart_countdown_window_manager', array($this,'wpdevart_countdown_window_insert_content') );
22
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
- /*############################### Post/Page insert button ########################################*/
27
public function wpdevart_countdown_button($context) {
28
29
$img = $this->plugin_url. 'images/post_button.jpg';
16
$this->plugin_url=trailingslashit(dirname(plugins_url('',__FILE__)));
17
18
19
+ // Posts/Pages insert button
20
add_action('media_buttons_context', array($this,'wpdevart_countdown_button'));
21
add_action( 'wp_ajax_wpdevart_countdown_window_manager', array($this,'wpdevart_countdown_window_insert_content') );
22
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
+ /*############################### Posts/Pages insert button ########################################*/
27
public function wpdevart_countdown_button($context) {
28
29
$img = $this->plugin_url. 'images/post_button.jpg';
includes/front_end.php CHANGED
@@ -27,7 +27,7 @@ class wpdevart_countdown_front_end{
27
//For updated parameters
28
29
}
30
- /*###################### Scripts and Styles for Countdown Timer ##################*/
31
public function generete_front_javascript(){
32
33
wp_enqueue_script('countdown-front-end');
27
//For updated parameters
28
29
}
30
+ /*###################### Scripts and Styles for Countdown ##################*/
31
public function generete_front_javascript(){
32
33
wp_enqueue_script('countdown-front-end');
includes/widget.php CHANGED
@@ -1,5 +1,5 @@
1
<?php
2
- /*############################### COUNTDOWN WIDGET PLUGIN CODE ###############################################*/
3
class wpdevart_countdown extends WP_Widget {
4
private static $id_for_content=0;
5
// Constructor //
@@ -10,7 +10,7 @@ class wpdevart_countdown extends WP_Widget {
10
11
}
12
13
- /*WordPress countdown display in front*/
14
function widget($args, $instance) {
15
self::$id_for_content++;
16
extract( $args );
@@ -27,7 +27,7 @@ class wpdevart_countdown extends WP_Widget {
27
echo $after_widget;
28
}
29
30
- // Update Settings //
31
function update($new_instance, $old_instance) {
32
extract( $args );
33
$instance['title'] = strip_tags($new_instance['title']);
@@ -44,7 +44,7 @@ class wpdevart_countdown extends WP_Widget {
44
$instance['content_position'] = $new_instance['content_position'];
45
$instance['top_ditance'] = $new_instance['top_ditance'];
46
$instance['bottom_distance'] = $new_instance['bottom_distance'];
47
- return $instance; /// Function that return new value of parametrs
48
49
}
50
1
<?php
2
+ /*############################### WIDGET CODE ###############################################*/
3
class wpdevart_countdown extends WP_Widget {
4
private static $id_for_content=0;
5
// Constructor //
10
11
}
12
13
+ /*WordPress countdown display in front-end*/
14
function widget($args, $instance) {
15
self::$id_for_content++;
16
extract( $args );
27
echo $after_widget;
28
}
29
30
+ // Settings Update //
31
function update($new_instance, $old_instance) {
32
extract( $args );
33
$instance['title'] = strip_tags($new_instance['title']);
44
$instance['content_position'] = $new_instance['content_position'];
45
$instance['top_ditance'] = $new_instance['top_ditance'];
46
$instance['bottom_distance'] = $new_instance['bottom_distance'];
47
+ return $instance; /// Function that return new value of parameters
48
49
}
50
readme.txt CHANGED
@@ -4,7 +4,7 @@ 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
5
Requires at least: 3.3.0
6
Tested up to: 4.2.3
7
- Stable tag: 1.2.8
8
License: GPLv3
9
License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
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
5
Requires at least: 3.3.0
6
Tested up to: 4.2.3
7
+ Stable tag: 1.2.9
8
License: GPLv3
9
License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
wpdevart-countdown.php CHANGED
@@ -3,7 +3,7 @@
3
Plugin Name: Countdown Wpdevart
4
Plugin URI: http://wpdevart.com/wordpress-countdown-plugin/
5
Description: WordPress Countdown plugin is an nice tool to create and insert countdown timers into your posts/pages and widgets .
6
- Version: 1.2.8
7
Author: wpdevart
8
Author URI: http://wpdevart.com
9
License: GPL3 http://www.gnu.org/licenses/gpl-3.0.html
3
Plugin Name: Countdown Wpdevart
4
Plugin URI: http://wpdevart.com/wordpress-countdown-plugin/
5
Description: WordPress Countdown plugin is an nice tool to create and insert countdown timers into your posts/pages and widgets .
6
+ Version: 1.2.9
7
Author: wpdevart
8
Author URI: http://wpdevart.com
9
License: GPL3 http://www.gnu.org/licenses/gpl-3.0.html