T(-) Countdown - Version 2.3.3

Version Description

  • added IE 10+ gradients to c-3p0 styles
  • added PHP5 style constructors for the Widget
Download this release

Release Info

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

Code changes from version 2.3.2 to 2.3.3

countdown-timer.php CHANGED
@@ -5,7 +5,7 @@ Text Domain: tminus
5
  Domain Path: /languages
6
  Plugin URI: http://plugins.twinpictures.de/plugins/t-minus-countdown/
7
  Description: Display and configure multiple T(-) Countdown timers using a shortcode or sidebar widget.
8
- Version: 2.3.2
9
  Author: twinpictures, baden03
10
  Author URI: http://www.twinpictures.de/
11
  License: GPL2
@@ -15,7 +15,7 @@ License: GPL2
15
 
16
  class WP_TMinusCD {
17
  var $plugin_name = 'T(-) Countdown';
18
- var $version = '2.3.2';
19
  var $domain = 'tminus';
20
  var $plguin_options_page_title = 'T(-) Countdown Options';
21
  var $plugin_options_menue_title = 'T(-) Countdown';
@@ -382,10 +382,16 @@ function folder_array($path, $exclude = ".|..") {
382
  */
383
  class CountDownTimer extends WP_Widget {
384
  /** constructor */
385
- function CountDownTimer() {
386
- load_plugin_textdomain( 'tminus', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
387
- $widget_ops = array('classname' => 'CountDownTimer', 'description' => __('A highly customizable jQuery countdown timer by Twinpictures', 'tminus') );
388
- $this->WP_Widget('CountDownTimer', 'T(-) Countdown', $widget_ops);
 
 
 
 
 
 
389
  }
390
 
391
  /** Widget */
@@ -673,8 +679,10 @@ class CountDownTimer extends WP_Widget {
673
  } // class CountDownTimer
674
 
675
  // register CountDownTimer widget
676
- add_action('widgets_init', create_function('', 'return register_widget("CountDownTimer");'));
677
-
 
 
678
 
679
  //code for the footer
680
  add_action('wp_footer', 'print_my_script', 99);
5
  Domain Path: /languages
6
  Plugin URI: http://plugins.twinpictures.de/plugins/t-minus-countdown/
7
  Description: Display and configure multiple T(-) Countdown timers using a shortcode or sidebar widget.
8
+ Version: 2.3.3
9
  Author: twinpictures, baden03
10
  Author URI: http://www.twinpictures.de/
11
  License: GPL2
15
 
16
  class WP_TMinusCD {
17
  var $plugin_name = 'T(-) Countdown';
18
+ var $version = '2.3.3';
19
  var $domain = 'tminus';
20
  var $plguin_options_page_title = 'T(-) Countdown Options';
21
  var $plugin_options_menue_title = 'T(-) Countdown';
382
  */
383
  class CountDownTimer extends WP_Widget {
384
  /** constructor */
385
+ public function __construct(){
386
+ parent::__construct(
387
+ 'CountDownTimer',
388
+ __( 'A highly customizable jQuery countdown timer by Twinpictures', 'tminus' ),
389
+ array(
390
+ 'classname' => 'CountDownTimer',
391
+ 'description' => __( 'A highly customizable jQuery countdown timer by Twinpictures', 'tminus' )
392
+ )
393
+ );
394
+ load_plugin_textdomain( 'tminus', false, basename( dirname( __FILE__ ) ) . '/languages' );
395
  }
396
 
397
  /** Widget */
679
  } // class CountDownTimer
680
 
681
  // register CountDownTimer widget
682
+ //add_action('widgets_init', create_function('', 'return register_widget("CountDownTimer");'));
683
+ add_action( 'widgets_init', function(){
684
+ register_widget( 'CountDownTimer' );
685
+ });
686
 
687
  //code for the footer
688
  add_action('wp_footer', 'print_my_script', 99);
css/c-3po-mini/style.css CHANGED
@@ -18,9 +18,12 @@
18
  border-bottom: 1px solid #a37e39;
19
  border-right: 1px solid #a37e39;
20
  background: #fcff95; /* old browsers */
21
- background: -moz-linear-gradient(top, #e39f1f 0%, #fcff95 12%, #fcffc8 25%, #fcff95 39%, #e39f1f 50%, #d8ab57 51%, #a37e39 60%, #685029 76%, #685029 91%, #5c4726 100%); /* firefox */
22
- background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#e39f1f), color-stop(12%,#fcff95), color-stop(25%,#fcffc8), color-stop(39%,#fcff95), color-stop(50%,#e39f1f), color-stop(51%,#d8ab57), color-stop(60%,#a37e39), color-stop(76%,#685029), color-stop(91%,#685029), color-stop(100%,#5c4726)); /* webkit */
23
- filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#d8ab57', endColorstr='#5c4726',GradientType=0 ); /* ie */
 
 
 
24
  -moz-border-radius: 4px;
25
  -webkit-border-radius:4px;
26
  border-radius: 4px;
@@ -58,7 +61,7 @@
58
  color: #5c4726;
59
  border-top:1px solid #a37e39;
60
  border-left:1px solid #a37e39;
61
- border-bottom:1px solid #fcff95;
62
  border-right:1px solid #fcff95;
63
  -moz-border-radius: 4px; -webkit-border-radius:5px; border-radius: 4px;
64
  background: #FFFFFF;
@@ -86,4 +89,4 @@
86
  text-align: left;
87
  font-size: 8px;
88
  margin: 0;
89
- }
18
  border-bottom: 1px solid #a37e39;
19
  border-right: 1px solid #a37e39;
20
  background: #fcff95; /* old browsers */
21
+ filter:progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr=#d8ab57, endColorstr=#5c4726);
22
+ background:-moz-linear-gradient(top, #e39f1f 0%, #fcff95 12%, #fcffc8 25%, #fcff95 39%, #e39f1f 50%, #d8ab57 51%, #a37e39 60%, #685029 76%, #685029 91%, #5c4726 100%);
23
+ background:linear-gradient(top, #e39f1f 0%, #fcff95 12%, #fcffc8 25%, #fcff95 39%, #e39f1f 50%, #d8ab57 51%, #a37e39 60%, #685029 76%, #685029 91%, #5c4726 100%);
24
+ background:-o-linear-gradient(top, #e39f1f 0%, #fcff95 12%, #fcffc8 25%, #fcff95 39%, #e39f1f 50%, #d8ab57 51%, #a37e39 60%, #685029 76%, #685029 91%, #5c4726 100%);
25
+ background:-ms-linear-gradient(top, #e39f1f 0%, #fcff95 12%, #fcffc8 25%, #fcff95 39%, #e39f1f 50%, #d8ab57 51%, #a37e39 60%, #685029 76%, #685029 91%, #5c4726 100%);
26
+ background:-webkit-gradient(linear, left top, left bottom, color-stop(0%,#e39f1f), color-stop(12%,#fcff95), color-stop(25%,#fcffc8), color-stop(39%,#fcff95), color-stop(50%,#e39f1f), color-stop(51%,#d8ab57), color-stop(60%,#a37e39), color-stop(76%,#685029), color-stop(91%,#685029), color-stop(100%,#5c4726)); /* webkit */
27
  -moz-border-radius: 4px;
28
  -webkit-border-radius:4px;
29
  border-radius: 4px;
61
  color: #5c4726;
62
  border-top:1px solid #a37e39;
63
  border-left:1px solid #a37e39;
64
+ border-bottom:1px solid #fcff95;
65
  border-right:1px solid #fcff95;
66
  -moz-border-radius: 4px; -webkit-border-radius:5px; border-radius: 4px;
67
  background: #FFFFFF;
89
  text-align: left;
90
  font-size: 8px;
91
  margin: 0;
92
+ }
css/c-3po/style.css CHANGED
@@ -18,9 +18,12 @@
18
  border-bottom: 1px solid #a37e39;
19
  border-right: 1px solid #a37e39;
20
  background: #fcff95; /* old browsers */
21
- background: -moz-linear-gradient(top, #e39f1f 0%, #fcff95 12%, #fcffc8 25%, #fcff95 39%, #e39f1f 50%, #d8ab57 51%, #a37e39 60%, #685029 76%, #685029 91%, #5c4726 100%); /* firefox */
22
- background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#e39f1f), color-stop(12%,#fcff95), color-stop(25%,#fcffc8), color-stop(39%,#fcff95), color-stop(50%,#e39f1f), color-stop(51%,#d8ab57), color-stop(60%,#a37e39), color-stop(76%,#685029), color-stop(91%,#685029), color-stop(100%,#5c4726)); /* webkit */
23
- filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#d8ab57', endColorstr='#5c4726',GradientType=0 ); /* ie */
 
 
 
24
  -moz-border-radius: 7px;
25
  -webkit-border-radius:7px;
26
  border-radius: 7px;
@@ -58,7 +61,7 @@
58
  color: #5c4726;
59
  border-top:1px solid #a37e39;
60
  border-left:1px solid #a37e39;
61
- border-bottom:1px solid #fcff95;
62
  border-right:1px solid #fcff95;
63
  -moz-border-radius: 4px; -webkit-border-radius:5px; border-radius: 4px;
64
  background: #FFFFFF;
@@ -87,4 +90,4 @@
87
  text-align: center;
88
  font-size: 9px;
89
  margin: 0;
90
- }
18
  border-bottom: 1px solid #a37e39;
19
  border-right: 1px solid #a37e39;
20
  background: #fcff95; /* old browsers */
21
+ filter:progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr=#d8ab57, endColorstr=#5c4726);
22
+ background:-moz-linear-gradient(top, #e39f1f 0%, #fcff95 12%, #fcffc8 25%, #fcff95 39%, #e39f1f 50%, #d8ab57 51%, #a37e39 60%, #685029 76%, #685029 91%, #5c4726 100%);
23
+ background:linear-gradient(top, #e39f1f 0%, #fcff95 12%, #fcffc8 25%, #fcff95 39%, #e39f1f 50%, #d8ab57 51%, #a37e39 60%, #685029 76%, #685029 91%, #5c4726 100%);
24
+ background:-o-linear-gradient(top, #e39f1f 0%, #fcff95 12%, #fcffc8 25%, #fcff95 39%, #e39f1f 50%, #d8ab57 51%, #a37e39 60%, #685029 76%, #685029 91%, #5c4726 100%);
25
+ background:-ms-linear-gradient(top, #e39f1f 0%, #fcff95 12%, #fcffc8 25%, #fcff95 39%, #e39f1f 50%, #d8ab57 51%, #a37e39 60%, #685029 76%, #685029 91%, #5c4726 100%);
26
+ background:-webkit-gradient(linear, left top, left bottom, color-stop(0%,#e39f1f), color-stop(12%,#fcff95), color-stop(25%,#fcffc8), color-stop(39%,#fcff95), color-stop(50%,#e39f1f), color-stop(51%,#d8ab57), color-stop(60%,#a37e39), color-stop(76%,#685029), color-stop(91%,#685029), color-stop(100%,#5c4726)); /* webkit */
27
  -moz-border-radius: 7px;
28
  -webkit-border-radius:7px;
29
  border-radius: 7px;
61
  color: #5c4726;
62
  border-top:1px solid #a37e39;
63
  border-left:1px solid #a37e39;
64
+ border-bottom:1px solid #fcff95;
65
  border-right:1px solid #fcff95;
66
  -moz-border-radius: 4px; -webkit-border-radius:5px; border-radius: 4px;
67
  background: #FFFFFF;
90
  text-align: center;
91
  font-size: 9px;
92
  margin: 0;
93
+ }
readme.txt CHANGED
@@ -4,8 +4,8 @@ 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, twinpictures, t minus, t-minus, plugin-oven, pluginoven, G2, spaceBros, littlewebtings, jQuery, javascript
6
  Requires at least: 3.9
7
- Tested up to: 4.2
8
- Stable tag: 2.3.2
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -33,7 +33,7 @@ T(-) Countdown will display a highly customizable HTML5 countdown timer as a sid
33
  = How does one use the shortcode, exactly? =
34
  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.
35
 
36
- = Where can I fork this plugn and contribute changes? =
37
  <a href='http://github.com/baden03/t-minus-countdown'>github</a>
38
 
39
  = Where can I translate this plugin into my favorite langauge? =
@@ -65,6 +65,10 @@ Ah yes! <a href='http://twitter.com/#!/twinpictures'>@Twinpictures</a> is on the
65
 
66
  == Changelog ==
67
 
 
 
 
 
68
  = 2.3.2 =
69
  * added htmlencoding for html areas above and below countdown.
70
 
@@ -237,6 +241,10 @@ Ah yes! <a href='http://twitter.com/#!/twinpictures'>@Twinpictures</a> is on the
237
 
238
  == Upgrade Notice ==
239
 
 
 
 
 
240
  = 2.3.2 =
241
  * added htmlencoding for html areas above and below countdown.
242
 
4
  Donate link: http://plugins.twinpictures.de/plugins/t-minus-countdown/
5
  Tags: countdown, timer, clock, ticker, widget, event, counter, count down, twinpictures, t minus, t-minus, plugin-oven, pluginoven, G2, spaceBros, littlewebtings, jQuery, javascript
6
  Requires at least: 3.9
7
+ Tested up to: 4.3.0
8
+ Stable tag: 2.3.3
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
33
  = How does one use the shortcode, exactly? =
34
  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.
35
 
36
+ = Where can I fork this plugin and contribute changes? =
37
  <a href='http://github.com/baden03/t-minus-countdown'>github</a>
38
 
39
  = Where can I translate this plugin into my favorite langauge? =
65
 
66
  == Changelog ==
67
 
68
+ = 2.3.3 =
69
+ * added IE 10+ gradients to c-3p0 styles
70
+ * added PHP5 style constructors for the Widget
71
+
72
  = 2.3.2 =
73
  * added htmlencoding for html areas above and below countdown.
74
 
241
 
242
  == Upgrade Notice ==
243
 
244
+ = 2.3.3 =
245
+ * added IE 10+ gradients to c-3p0 styles
246
+ * added PHP5 style constructors for the Widget
247
+
248
  = 2.3.2 =
249
  * added htmlencoding for html areas above and below countdown.
250