Version Description
- Cleaned up code that was throwing array_merge warning errors on some systems.
Download this release
Release Info
Developer | baden03 |
Plugin | T(-) Countdown |
Version | 1.5 |
Comparing to | |
See all releases |
Code changes from version 1.4 to 1.5
- countdown-timer.php +7 -11
- readme.txt +10 -4
countdown-timer.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: jQuery T Minus Countdown Widget
|
4 |
Plugin URI: http://www.twinpictures.de/t-countdown-widget
|
5 |
Description: Display and configure a jQuery countdown timer as a sidebar widget.
|
6 |
-
Version: 1.
|
7 |
Author: Twinpictures
|
8 |
Author URI: http://www.twinpictures.de
|
9 |
License: GPL2
|
@@ -70,8 +70,7 @@ function widget_countdown_timer_init() {
|
|
70 |
$plugin_url = trailingslashit( get_bloginfo('wpurl') ).PLUGINDIR.'/'. dirname( plugin_basename(__FILE__) );
|
71 |
if (!is_admin()){
|
72 |
//css
|
73 |
-
$options =
|
74 |
-
unset($options[0]); //returned by get_option(), but we don't need it
|
75 |
if($options['style'] == 'light'){
|
76 |
wp_register_style( 'countdown-css', $plugin_url.'/css/light-style.css', array (), '1.0' );
|
77 |
}
|
@@ -94,11 +93,11 @@ function widget_countdown_timer_init() {
|
|
94 |
'urltarget' => '_blank',
|
95 |
'urltext' => '',
|
96 |
'urlpos' => 'bottom',
|
97 |
-
'day' =>
|
98 |
-
'month' =>
|
99 |
'year' => 2010,
|
100 |
-
'hour' =>
|
101 |
-
'min' =>
|
102 |
'sec' => 0,
|
103 |
'weektitle' => 'weeks',
|
104 |
'daytitle' => 'days',
|
@@ -200,11 +199,8 @@ function widget_countdown_timer_init() {
|
|
200 |
|
201 |
//add the script to the footer
|
202 |
function jquery_countdown_js($args){
|
203 |
-
$options =
|
204 |
-
unset($options[0]); //returned by get_option(), but we don't need it
|
205 |
-
//targetTime = new Date(options.targetDate.month + '/' + options.targetDate.day + '/' + options.targetDate.year + ' ' + options.targetDate.hour + ':' + options.targetDate.min + ':' + options.targetDate.sec + (options.targetDate.utc ? ' UTC' : ''));
|
206 |
$t = date( 'n/j/Y H:i:s', time() + ( get_option( 'gmt_offset' ) * 3600));
|
207 |
-
//$t = time() + ( get_option( 'gmt_offset' ) * 3600);
|
208 |
?>
|
209 |
<script language="javascript" type="text/javascript">
|
210 |
jQuery(document).ready(function() {
|
3 |
Plugin Name: jQuery T Minus Countdown Widget
|
4 |
Plugin URI: http://www.twinpictures.de/t-countdown-widget
|
5 |
Description: Display and configure a jQuery countdown timer as a sidebar widget.
|
6 |
+
Version: 1.5
|
7 |
Author: Twinpictures
|
8 |
Author URI: http://www.twinpictures.de
|
9 |
License: GPL2
|
70 |
$plugin_url = trailingslashit( get_bloginfo('wpurl') ).PLUGINDIR.'/'. dirname( plugin_basename(__FILE__) );
|
71 |
if (!is_admin()){
|
72 |
//css
|
73 |
+
$options = get_option('widget_countdown');
|
|
|
74 |
if($options['style'] == 'light'){
|
75 |
wp_register_style( 'countdown-css', $plugin_url.'/css/light-style.css', array (), '1.0' );
|
76 |
}
|
93 |
'urltarget' => '_blank',
|
94 |
'urltext' => '',
|
95 |
'urlpos' => 'bottom',
|
96 |
+
'day' => 8,
|
97 |
+
'month' => 11,
|
98 |
'year' => 2010,
|
99 |
+
'hour' => 13,
|
100 |
+
'min' => 30,
|
101 |
'sec' => 0,
|
102 |
'weektitle' => 'weeks',
|
103 |
'daytitle' => 'days',
|
199 |
|
200 |
//add the script to the footer
|
201 |
function jquery_countdown_js($args){
|
202 |
+
$options = get_option('widget_countdown');
|
|
|
|
|
203 |
$t = date( 'n/j/Y H:i:s', time() + ( get_option( 'gmt_offset' ) * 3600));
|
|
|
204 |
?>
|
205 |
<script language="javascript" type="text/javascript">
|
206 |
jQuery(document).ready(function() {
|
readme.txt
CHANGED
@@ -1,16 +1,16 @@
|
|
1 |
=== Plugin Name ===
|
2 |
Contributors: Twinpictures, G2, littlewebthings
|
3 |
Donate link: http://www.twinpictures.de/t-minus-countdown-widget
|
4 |
-
Tags: countdown, timer, clock, ticker, widget, event, counter, count down, t minus, t-minus, twinpictures, G2, spaceBros, littlewebtings
|
5 |
Requires at least: 2.7
|
6 |
Tested up to: 3.0.1
|
7 |
-
Stable tag: 1.
|
8 |
|
9 |
-
jQuery T Minus CountDown Widget is a sidebar widget that will display a sweet countdown timer clock based on littlewebtings CountDown plugin.
|
10 |
|
11 |
== Description ==
|
12 |
|
13 |
-
jQuery T Minus CountDown Widget will display a sweet, flash-free countdown timer clock based on littlewebthings CountDown jQuery plugin. Perfect for informing website visitors of an upcomming event, such as a new post or even a pending space voyage. As yes, there is also a css jedi mindtrick for your viewing pleasure--intergalactic planatary thanks to G2 (Gagarin2) of SpaceBros. Own your time and space.
|
14 |
|
15 |
== Installation ==
|
16 |
|
@@ -42,6 +42,9 @@ The Daily Show with John Stewart
|
|
42 |
|
43 |
== Changelog ==
|
44 |
|
|
|
|
|
|
|
45 |
= 1.4 =
|
46 |
* NOW, when making time calculations, refers to the local time as set by WordPress in Settings > General > Timezone.
|
47 |
|
@@ -59,6 +62,9 @@ The Daily Show with John Stewart
|
|
59 |
|
60 |
== Upgrade Notice ==
|
61 |
|
|
|
|
|
|
|
62 |
= 1.4 =
|
63 |
Version 1.4 refers to your local WordPress Timezone for time caluclations. In case the server is hosted outside of the website's local timezone. It happens.
|
64 |
|
1 |
=== Plugin Name ===
|
2 |
Contributors: Twinpictures, G2, littlewebthings
|
3 |
Donate link: http://www.twinpictures.de/t-minus-countdown-widget
|
4 |
+
Tags: countdown, timer, clock, ticker, widget, event, counter, count down, t minus, t-minus, twinpictures, G2, spaceBros, littlewebtings, jQuery, javascript
|
5 |
Requires at least: 2.7
|
6 |
Tested up to: 3.0.1
|
7 |
+
Stable tag: 1.5
|
8 |
|
9 |
+
jQuery T Minus CountDown Widget is a sidebar widget that will display a sweet-n-sexy pure javascript countdown timer clock based on littlewebtings CountDown plugin.
|
10 |
|
11 |
== Description ==
|
12 |
|
13 |
+
jQuery T Minus CountDown Widget will display a sweet, sexy and totally flash-free countdown timer clock based on littlewebthings CountDown jQuery plugin. Perfect for informing website visitors of an upcomming event, such as a new post or even a pending space voyage. As yes, there is also a css jedi mindtrick for your viewing pleasure--intergalactic planatary thanks to G2 (Gagarin2) of SpaceBros. Own your time and space.
|
14 |
|
15 |
== Installation ==
|
16 |
|
42 |
|
43 |
== Changelog ==
|
44 |
|
45 |
+
= 1.5 =
|
46 |
+
* Cleaned up code that was throwing array_merge warning errors on some systems.
|
47 |
+
|
48 |
= 1.4 =
|
49 |
* NOW, when making time calculations, refers to the local time as set by WordPress in Settings > General > Timezone.
|
50 |
|
62 |
|
63 |
== Upgrade Notice ==
|
64 |
|
65 |
+
= 1.5 =
|
66 |
+
Version 1.5 cleans up code that was causing array_merge errors on some systems. NOTE: if a custom CSS is being used, be sure to back up your css and image files before updating. Updating will overwrite custom css styles.
|
67 |
+
|
68 |
= 1.4 =
|
69 |
Version 1.4 refers to your local WordPress Timezone for time caluclations. In case the server is hosted outside of the website's local timezone. It happens.
|
70 |
|