T(-) Countdown - Version 2.2.14

Version Description

  • fixed IE rotation issue in some styles
Download this release

Release Info

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

Code changes from version 2.2.13 to 2.2.14

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.2.13
9
  Author: twinpictures, baden03
10
  Author URI: http://www.twinpictures.de/
11
  License: GPL2
@@ -29,14 +29,14 @@ License: GPL2
29
 
30
  //widget scripts
31
  function countdown_scripts(){
32
- $current_version = '2.2.13';
33
  $installed_version = get_option('t-minus_version');
34
 
35
  if($current_version != $installed_version){
36
  //delete the old style system
37
  delete_option( 't-minus_styles' );
38
  //add version check
39
- update_option('t-minus_version', '2.2.13');
40
 
41
  //reset rockstar option
42
  delete_option( 'rockstar' );
@@ -109,9 +109,9 @@ class CountDownTimer extends WP_Widget {
109
 
110
  $title = empty($instance['title']) ? ' ' : apply_filters('widget_title', $instance['title']);
111
  $tophtml = empty($instance['tophtml']) ? ' ' : apply_filters('widget_tophtml', stripslashes($instance['tophtml']));
112
- $bothtml = empty($instance['bothtml']) ? ' ' : apply_filters('widget_bothtml', stripslashes($instance['bothtml']));
113
- $launchhtml = empty($instance['launchhtml']) ? ' ' : apply_filters('widget_launchhtml', $instance['launchhtml']);
114
- $launchtarget = empty($instance['launchtarget']) ? 'After Countdown' : apply_filters('widget_launchtarget', $instance['launchtarget']);
115
 
116
  $day = empty($instance['day']) ? 20 : apply_filters('widget_day', $instance['day']);
117
  $month = empty($instance['month']) ? 12 : apply_filters('widget_month', $instance['month']);
@@ -315,29 +315,18 @@ class CountDownTimer extends WP_Widget {
315
  },
316
  style: '<?php echo $style; ?>',
317
  launchtarget: '<?php echo $launchdiv; ?>',
318
- omitWeeks: <?php echo $omitweeks;
 
319
  if($launchhtml){
320
  echo ", onComplete: function() { jQuery('#".$args['widget_id']."-".$launchdiv."').html('".do_shortcode($launchhtml)."'); }";
321
  }
322
- ?>
323
  });
324
  });
325
  </script>
326
  <?php
327
  }
328
  }
329
-
330
- /** Update */
331
- /*
332
- function update($new_instance, $old_instance) {
333
- $instance = array_merge($old_instance, $new_instance);
334
- if($instance['isrockstar'] == 'rockstar'){
335
- update_option('rockstar', 'rockstar');
336
- }
337
- $instance['title'] = ( ! empty( $new_instance['title'] ) ) ? strip_tags( $new_instance['title'] ) : '';
338
- return array_map('mysql_real_escape_string', $instance);
339
- }
340
- */
341
 
342
  function update( $new_instance, $old_instance ) {
343
  $instance = array_merge($old_instance, $new_instance);
@@ -534,13 +523,15 @@ function print_my_script() {
534
  },
535
  style: '<?php echo $script['style']; ?>',
536
  launchtarget: '<?php echo $script['launchtarget']; ?>',
537
- omitWeeks: <?php echo $script['omitweeks'];
 
538
  if($script['content']){
539
  echo ", onComplete: function() {
540
  jQuery('#".$script['id']."-".$script['launchtarget']."').css({'width' : '".$script['launchwidth']."', 'height' : '".$script['launchheight']."'});
541
  jQuery('#".$script['id']."-".$script['launchtarget']."').html('".do_shortcode($script['content'])."');
542
  }";
543
- }?>
 
544
  });
545
  <?php
546
  }
@@ -741,7 +732,7 @@ function tminuscountdown($atts, $content=null) {
741
  },
742
  style: '".$style."',
743
  launchtarget: '".$launchtarget."',
744
- omitWeeks: ".$omitweeks;
745
 
746
  if($content){
747
  $tminus .= ", onComplete: function() {
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.2.14
9
  Author: twinpictures, baden03
10
  Author URI: http://www.twinpictures.de/
11
  License: GPL2
29
 
30
  //widget scripts
31
  function countdown_scripts(){
32
+ $current_version = '2.2.14';
33
  $installed_version = get_option('t-minus_version');
34
 
35
  if($current_version != $installed_version){
36
  //delete the old style system
37
  delete_option( 't-minus_styles' );
38
  //add version check
39
+ update_option('t-minus_version', '2.2.14');
40
 
41
  //reset rockstar option
42
  delete_option( 'rockstar' );
109
 
110
  $title = empty($instance['title']) ? ' ' : apply_filters('widget_title', $instance['title']);
111
  $tophtml = empty($instance['tophtml']) ? ' ' : apply_filters('widget_tophtml', stripslashes($instance['tophtml']));
112
+ $bothtml = empty($instance['bothtml']) ? ' ' : apply_filters('widget_bothtml', stripslashes($instance['bothtml']));
113
+ $launchhtml = empty($instance['launchhtml']) ? ' ' : apply_filters('widget_launchhtml', $instance['launchhtml']);
114
+ $launchtarget = empty($instance['launchtarget']) ? 'After Countdown' : apply_filters('widget_launchtarget', $instance['launchtarget']);
115
 
116
  $day = empty($instance['day']) ? 20 : apply_filters('widget_day', $instance['day']);
117
  $month = empty($instance['month']) ? 12 : apply_filters('widget_month', $instance['month']);
315
  },
316
  style: '<?php echo $style; ?>',
317
  launchtarget: '<?php echo $launchdiv; ?>',
318
+ omitWeeks: '<?php echo $omitweeks; ?>'
319
+ <?php
320
  if($launchhtml){
321
  echo ", onComplete: function() { jQuery('#".$args['widget_id']."-".$launchdiv."').html('".do_shortcode($launchhtml)."'); }";
322
  }
323
+ ?>
324
  });
325
  });
326
  </script>
327
  <?php
328
  }
329
  }
 
 
 
 
 
 
 
 
 
 
 
 
330
 
331
  function update( $new_instance, $old_instance ) {
332
  $instance = array_merge($old_instance, $new_instance);
523
  },
524
  style: '<?php echo $script['style']; ?>',
525
  launchtarget: '<?php echo $script['launchtarget']; ?>',
526
+ omitWeeks: '<?php echo $script['omitweeks']; ?>'
527
+ <?php
528
  if($script['content']){
529
  echo ", onComplete: function() {
530
  jQuery('#".$script['id']."-".$script['launchtarget']."').css({'width' : '".$script['launchwidth']."', 'height' : '".$script['launchheight']."'});
531
  jQuery('#".$script['id']."-".$script['launchtarget']."').html('".do_shortcode($script['content'])."');
532
  }";
533
+ }
534
+ ?>
535
  });
536
  <?php
537
  }
732
  },
733
  style: '".$style."',
734
  launchtarget: '".$launchtarget."',
735
+ omitWeeks: '".$omitweeks."'";
736
 
737
  if($content){
738
  $tminus .= ", onComplete: function() {
css/TIE-fighter/style.css CHANGED
@@ -74,6 +74,9 @@
74
  .TIE-fighter-dash_title {
75
  -webkit-transform: rotate(-90deg);
76
  -moz-transform: rotate(-90deg);
 
 
 
77
  filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3);
78
  display: block;
79
  position: absolute;
74
  .TIE-fighter-dash_title {
75
  -webkit-transform: rotate(-90deg);
76
  -moz-transform: rotate(-90deg);
77
+ -ms-transform: rotate(-90deg);
78
+ -o-transform: rotate(-90deg);
79
+ transform: rotate(-90deg);
80
  filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3);
81
  display: block;
82
  position: absolute;
css/darth/style.css CHANGED
@@ -60,6 +60,9 @@
60
  .darth-dash_title {
61
  -webkit-transform: rotate(-90deg);
62
  -moz-transform: rotate(-90deg);
 
 
 
63
  filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3);
64
  display: block;
65
  position: absolute;
60
  .darth-dash_title {
61
  -webkit-transform: rotate(-90deg);
62
  -moz-transform: rotate(-90deg);
63
+ -ms-transform: rotate(-90deg);
64
+ -o-transform: rotate(-90deg);
65
+ transform: rotate(-90deg);
66
  filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3);
67
  display: block;
68
  position: absolute;
css/jedi/style.css CHANGED
@@ -60,6 +60,9 @@
60
  .jedi-dash_title {
61
  -webkit-transform: rotate(-90deg);
62
  -moz-transform: rotate(-90deg);
 
 
 
63
  filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3);
64
  display: block;
65
  position: absolute;
60
  .jedi-dash_title {
61
  -webkit-transform: rotate(-90deg);
62
  -moz-transform: rotate(-90deg);
63
+ -ms-transform: rotate(-90deg);
64
+ -o-transform: rotate(-90deg);
65
+ transform: rotate(-90deg);
66
  filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3);
67
  display: block;
68
  position: absolute;
css/sith/style.css CHANGED
@@ -83,6 +83,9 @@
83
  .sith-dash_title {
84
  -webkit-transform: rotate(-90deg);
85
  -moz-transform: rotate(-90deg);
 
 
 
86
  filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3);
87
  display: block;
88
  position: absolute;
83
  .sith-dash_title {
84
  -webkit-transform: rotate(-90deg);
85
  -moz-transform: rotate(-90deg);
86
+ -ms-transform: rotate(-90deg);
87
+ -o-transform: rotate(-90deg);
88
+ transform: rotate(-90deg);
89
  filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3);
90
  display: block;
91
  position: absolute;
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.5
7
- Tested up to: 3.8.1
8
- Stable tag: 2.2.13
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -63,6 +63,9 @@ The Daily Show with John Stewart
63
 
64
  == Changelog ==
65
 
 
 
 
66
  = 2.2.13 =
67
  * updated jQuery UI datepicker style.
68
  * added Russian language
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.5
7
+ Tested up to: 3.9.1
8
+ Stable tag: 2.2.14
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
63
 
64
  == Changelog ==
65
 
66
+ = 2.2.14 =
67
+ * fixed IE rotation issue in some styles
68
+
69
  = 2.2.13 =
70
  * updated jQuery UI datepicker style.
71
  * added Russian language