T(-) Countdown - Version 2.2

Version Description

  • Greatly improved countdown script efficiency
Download this release

Release Info

Developer baden03
Plugin Icon 128x128 T(-) Countdown
Version 2.2
Comparing to
See all releases

Code changes from version 2.1 to 2.2

countdown-timer.php CHANGED
@@ -1,9 +1,9 @@
1
  <?php
2
  /*
3
- Plugin Name: jQuery T(-) Countdown
4
  Plugin URI: http://plugins.twinpictures.de/plugins/t-minus-countdown/
5
- Description: Display and configure multiple jQuery countdown timers using a shortcode or sidebar widget.
6
- Version: 2.1
7
  Author: twinpictures, baden03
8
  Author URI: http://www.twinpictures.de/
9
  License: GPL2
@@ -43,7 +43,7 @@ function countdown_scripts(){
43
  }
44
  else{
45
  //lwtCountdown script
46
- wp_register_script('countdown-script', $plugin_url.'/js/jquery.lwtCountdown-1.2.js', array ('jquery'), '1.2' );
47
  wp_enqueue_script('countdown-script');
48
  }
49
  }
@@ -89,7 +89,7 @@ class CountDownTimer extends WP_Widget {
89
  function CountDownTimer() {
90
  //parent::WP_Widget(false, $name = 'CountDownTimer');
91
  $widget_ops = array('classname' => 'CountDownTimer', 'description' => __('A highly customizable jQuery countdown timer by Twinpictures') );
92
- $this->WP_Widget('CountDownTimer', 'jQuery T(-) CountDown', $widget_ops);
93
  }
94
 
95
  /** Widget */
@@ -249,7 +249,6 @@ class CountDownTimer extends WP_Widget {
249
  <div class="'.$style.'-digit">'.$date['secs'][1].'</div>
250
  <div class="'.$style.'-digit">'.$date['secs'][2].'</div>
251
  </div>
252
- <div class="t-throbTimer"></div>
253
  </div>'; //close the dashboard
254
 
255
  echo '<div id="'.$args['widget_id'].'-bothtml" class="'.$style.'-bothtml">';
@@ -700,7 +699,6 @@ function tminuscountdown($atts, $content=null) {
700
  $tminus .= '<div class="'.$style.'-digit">'.$date_arr['secs'][1].'</div>';
701
  $tminus .= '<div class="'.$style.'-digit">'.$date_arr['secs'][2].'</div>';
702
  $tminus .= '</div>';
703
- $tminus .= '<div class="t-throbTimer"></div>';
704
  $tminus .= '</div>'; //close the dashboard
705
 
706
  $tminus .= '<div id="'.$id.'-below" class="'.$style.'-bothtml">';
1
  <?php
2
  /*
3
+ Plugin Name: T(-) Countdown
4
  Plugin URI: http://plugins.twinpictures.de/plugins/t-minus-countdown/
5
+ Description: Display and configure multiple T(-) Countdown timers using a shortcode or sidebar widget.
6
+ Version: 2.2
7
  Author: twinpictures, baden03
8
  Author URI: http://www.twinpictures.de/
9
  License: GPL2
43
  }
44
  else{
45
  //lwtCountdown script
46
+ wp_register_script('countdown-script', $plugin_url.'/js/jquery.t-countdown-1.0.js', array ('jquery'), '1.0' );
47
  wp_enqueue_script('countdown-script');
48
  }
49
  }
89
  function CountDownTimer() {
90
  //parent::WP_Widget(false, $name = 'CountDownTimer');
91
  $widget_ops = array('classname' => 'CountDownTimer', 'description' => __('A highly customizable jQuery countdown timer by Twinpictures') );
92
+ $this->WP_Widget('CountDownTimer', 'T(-) Countdown', $widget_ops);
93
  }
94
 
95
  /** Widget */
249
  <div class="'.$style.'-digit">'.$date['secs'][1].'</div>
250
  <div class="'.$style.'-digit">'.$date['secs'][2].'</div>
251
  </div>
 
252
  </div>'; //close the dashboard
253
 
254
  echo '<div id="'.$args['widget_id'].'-bothtml" class="'.$style.'-bothtml">';
699
  $tminus .= '<div class="'.$style.'-digit">'.$date_arr['secs'][1].'</div>';
700
  $tminus .= '<div class="'.$style.'-digit">'.$date_arr['secs'][2].'</div>';
701
  $tminus .= '</div>';
 
702
  $tminus .= '</div>'; //close the dashboard
703
 
704
  $tminus .= '<div id="'.$id.'-below" class="'.$style.'-bothtml">';
js/{jquery.lwtCountdown-1.2.js → jquery.t-countdown-1.0.js} RENAMED
@@ -1,9 +1,8 @@
1
  /*!
2
- * jQuery Countdown plugin v1.2
3
- * http://www.twinpictures.de/t-countdown-widget
4
- * http://www.littlewebthings.com/projects/countdown/
5
  *
6
- * Copyright 2011, Twinpictures, Vassilis Dourdounis
7
  *
8
  * Permission is hereby granted, free of charge, to any person obtaining a copy
9
  * of this software and associated documentation files (the "Software"), to deal
@@ -119,9 +118,7 @@
119
  before = new Date();
120
  $.data($this[0], 'before', before);
121
  e = $this;
122
- e.children('.t-throbTimer').toggle(1000, function() {
123
- e.doCountDown(id, diffSecs-a);
124
- });
125
  }
126
  }
127
  else if (cb = $.data($this[0], 'callback')){
1
  /*!
2
+ * T- Countdown v1.0
3
+ * http://plugins.twinpictures.de/plugins/t-minus-countdown/
 
4
  *
5
+ * Copyright 2012, Twinpictures
6
  *
7
  * Permission is hereby granted, free of charge, to any person obtaining a copy
8
  * of this software and associated documentation files (the "Software"), to deal
118
  before = new Date();
119
  $.data($this[0], 'before', before);
120
  e = $this;
121
+ t = setTimeout(function() { e.doCountDown(id, diffSecs-a) } , 1000);
 
 
122
  }
123
  }
124
  else if (cb = $.data($this[0], 'callback')){
readme.txt CHANGED
@@ -1,24 +1,26 @@
1
- === jQuery T Minus CountDown Widget ===
2
 
3
  Contributors: twinpictures, baden03
4
  Donate link: http://plugins.twinpictures.de/plugins/t-minus-countdown/
5
  Tags: countdown, timer, clock, ticker, widget, event, counter, count down, t minus, t-minus, twinpictures, plguin-oven, pluginoven, G2, spaceBros, littlewebtings, jQuery, javascript
6
  Requires at least: 2.8
7
  Tested up to: 3.3.1
8
- Stable tag: 2.1
9
 
10
- jQuery T(-) CountDown will display a highly customizable, sweet-n-sexy flash-free countdown timer in the sidebar or in your post using a shortcode.
11
 
12
  == Description ==
13
 
14
- jQuery T(-) CountDown will display a sweet, sexy and totally flash-free countdown timer. Perfect for informing one's website visitors of an upcoming event, such as a pending space voyage. Using Jedi Mind-tricks and CSS... but mostly CSS, the countdown timer is highly customizable for your viewing pleasure. A <a href='http://plugins.twinpictures.de/plugins/t-minus-countdown/documentation/'>complete listing of shortcode options</a> are available, as well as <a href='http://wordpress.org/tags/jquery-t-countdown-widget'>free community</a> and <a href='http://plugins.twinpictures.de/plugins/t-minus-countdown/support/'>premium support</a>. This plug-in was inspired by littlewebthings' CountDown jQuery plugin. Intergalactic planetary thanks to g2.de, siliconstudio.com and Arturo Ramirez Siles for some of the included css styles.
15
 
16
  == Installation ==
17
 
18
- 1. Old-school: upload the `jquery-countdown-timer` folder to the `/wp-content/plugins/` directory via FTP. Hipster: Ironically add the jQuery T(minus) CountDown Widget via the WordPress Plugins menu.
 
19
  1. Activate the Plugin
20
  1. Add the Widget to the desired sidebar in the WordPress Widgets menu.
21
- 1. Configure the `jQuery T Minus CountDown Widget' options.
 
22
  1. Test that the this plugin meets your demanding needs.
23
  1. Tweak the css files for premium enjoyment.
24
  1. Rate the plugin and verify that it works at wordpress.org.
@@ -27,14 +29,14 @@ jQuery T(-) CountDown will display a sweet, sexy and totally flash-free countdow
27
  == Frequently Asked Questions ==
28
 
29
  = How does one use the shortcode, exactly? =
30
- A <a href='http://plugins.twinpictures.de/plugins/t-minus-countdown/documentation/'>complete listing of shortcode options</a> has been provided to answer this exact question.
31
 
32
  = How does one pronounce T Minus? =
33
- 1. Tee - As in Tea for Two, or Tee off time
34
- 1. Minus - As in the opposite of plus (+)
35
- 1. T Minus- As in "This is Apollo Saturn Launch Control. We've passed the 11-minute mark. Now T minus 10 minutes 54 seconds on our countdown for Apollo 11."
36
 
37
- = Where can I get political news that makes me giggle? =
38
  The Daily Show with John Stewart
39
 
40
  = I am a Social Netwookiee, do you have a Facebook page? =
@@ -45,13 +47,16 @@ Ah yes! <a href='http://twitter.com/#!/twinpictures'>@Twinpictures</a> is on the
45
 
46
  == Screenshots ==
47
 
48
- 1. T(-) CountDown in action with styles: Darth, Jedi and Carbonite.
49
  1. Styles: C-3PO, TIE-Fighter and Carbonlite.
50
- 1. The basic T(-) CountDown widget options.
51
- 1. An expansive view of the available CountDown widget options, provided for your viewing pleasure.
52
 
53
  == Changelog ==
54
 
 
 
 
55
  = 2.1 =
56
  * Added two new image-free css styles: TIE-Fighter and C-3PO
57
  * Fixed an issue with strange spacing caused by WordPress' wonky wpautop function
@@ -122,6 +127,9 @@ Ah yes! <a href='http://twitter.com/#!/twinpictures'>@Twinpictures</a> is on the
122
 
123
  == Upgrade Notice ==
124
 
 
 
 
125
  = 2.0.9 =
126
  * Two new image-free css styles have been added: TIE-Fighter and C-3PO
127
  * Spacing issued caused by WordPress' wonky wpautop function has been fixed
1
+ === T(-) Countdown ===
2
 
3
  Contributors: twinpictures, baden03
4
  Donate link: http://plugins.twinpictures.de/plugins/t-minus-countdown/
5
  Tags: countdown, timer, clock, ticker, widget, event, counter, count down, t minus, t-minus, twinpictures, plguin-oven, pluginoven, G2, spaceBros, littlewebtings, jQuery, javascript
6
  Requires at least: 2.8
7
  Tested up to: 3.3.1
8
+ Stable tag: 2.2
9
 
10
+ T(-) Countdown will display a highly customizable, sweet-n-sexy flash-free countdown timer in a sidebar, page or post.
11
 
12
  == Description ==
13
 
14
+ T(-) Countdown will display a sweet, sexy and totally flash-free countdown timer. Perfect for informing one's website visitors of an upcoming event, such as a pending space voyage. Using Jedi Mind-tricks and CSS... but mostly CSS, the countdown timer is highly customizable for your viewing pleasure. A <a href='http://plugins.twinpictures.de/plugins/t-minus-countdown/documentation/'>complete listing of shortcode options</a> are available, as well as <a href='http://wordpress.org/tags/jquery-t-countdown-widget'>free community</a> and <a href='http://plugins.twinpictures.de/plugins/t-minus-countdown/support/'>premium support</a>. This plug-in was inspired by littlewebthings' CountDown jQuery plugin. Intergalactic planetary thanks to g2.de, siliconstudio.com and be.net/arturex for the included css styles.
15
 
16
  == Installation ==
17
 
18
+ 1. Old-school: upload the `countdown-timer` folder to the `/wp-content/plugins/` directory via FTP.
19
+ 1. Hipster: Ironically add T(minus) Countown via the WordPress Plugins menu.
20
  1. Activate the Plugin
21
  1. Add the Widget to the desired sidebar in the WordPress Widgets menu.
22
+ 1. Configure the `T(-) Countdown' widget options.
23
+ 1. Add the shortcode to a post or page.
24
  1. Test that the this plugin meets your demanding needs.
25
  1. Tweak the css files for premium enjoyment.
26
  1. Rate the plugin and verify that it works at wordpress.org.
29
  == Frequently Asked Questions ==
30
 
31
  = How does one use the shortcode, exactly? =
32
+ A <a href='http://plugins.twinpictures.de/plugins/t-minus-countdown/documentation/'>complete list of shortcode options</a> has been provided to answer this exact question.
33
 
34
  = How does one pronounce T Minus? =
35
+ * Tee&mdash;As in Tea for Two, or Tee off time
36
+ * Minus&mdash;As in the opposite of plus (+)
37
+ * T Minus&mdash;As in "This is Apollo Saturn Launch Control. We've passed the 11-minute mark. Now T minus 10 minutes 54 seconds on our countdown for Apollo 11."
38
 
39
+ = Where may one view political news that gives giggle? =
40
  The Daily Show with John Stewart
41
 
42
  = I am a Social Netwookiee, do you have a Facebook page? =
47
 
48
  == Screenshots ==
49
 
50
+ 1. T(-) Countdown in action with styles: Darth, Jedi and Carbonite.
51
  1. Styles: C-3PO, TIE-Fighter and Carbonlite.
52
+ 1. The basic T(-) Countdown widget options.
53
+ 1. An expansive view of the available Countdown widget options, provided for your viewing pleasure.
54
 
55
  == Changelog ==
56
 
57
+ = 2.2 =
58
+ * Greatly improved countdown script efficiency
59
+
60
  = 2.1 =
61
  * Added two new image-free css styles: TIE-Fighter and C-3PO
62
  * Fixed an issue with strange spacing caused by WordPress' wonky wpautop function
127
 
128
  == Upgrade Notice ==
129
 
130
+ = 2.2 =
131
+ * Countdown scrip has been streamlined to improved efficiency.
132
+
133
  = 2.0.9 =
134
  * Two new image-free css styles have been added: TIE-Fighter and C-3PO
135
  * Spacing issued caused by WordPress' wonky wpautop function has been fixed