T(-) Countdown - Version 2.2.3

Version Description

  • Fixed spacing issues with some styles
  • Rockstar features will default to collapsed to save space
  • Updated method of locating plugins directory
Download this release

Release Info

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

Code changes from version 2.2.2 to 2.2.3

countdown-timer.php CHANGED
@@ -3,7 +3,7 @@
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.2
7
  Author: twinpictures, baden03
8
  Author URI: http://www.twinpictures.de/
9
  License: GPL2
@@ -37,8 +37,7 @@ function countdown_scripts(){
37
 
38
  $styles_arr = array("TIE-fighter","c-3po","c-3po-mini","carbonite","carbonlite","darth","jedi");
39
  add_option('t-minus_styles', $styles_arr);
40
-
41
- $plugin_url = trailingslashit( get_bloginfo('wpurl') ).PLUGINDIR.'/'. dirname( plugin_basename(__FILE__) );
42
  wp_enqueue_script('jquery');
43
  if (is_admin()){
44
  //jquery admin stuff
@@ -437,7 +436,8 @@ class CountDownTimer extends WP_Widget {
437
  <p><?php _e('Omit Weeks:'); ?> <input id="<?php echo $this->get_field_id('omitweeks'); ?>-no" name="<?php echo $this->get_field_name('omitweeks'); ?>" type="radio" <?php echo $negative; ?> value="false" /><label for="<?php echo $this->get_field_id('omitweeks'); ?>-no"> <?php _e('No'); ?> </label> <input id="<?php echo $this->get_field_id('omitweeks'); ?>-yes" name="<?php echo $this->get_field_name('omitweeks'); ?>" type="radio" <?php echo $positive; ?> value="true" /> <label for="<?php echo $this->get_field_id('omitweeks'); ?>-yes"> <?php _e('Yes'); ?></label></p>
438
  <p><?php _e('Style:'); ?> <select name="<?php echo $this->get_field_name('style'); ?>" id="<?php echo $this->get_field_name('style'); ?>">
439
  <?php
440
- $styles_arr = folder_array('../'.PLUGINDIR.'/'. dirname( plugin_basename(__FILE__) ).'/css');
 
441
  update_option('t-minus_styles', $styles_arr);
442
  foreach($styles_arr as $style_name){
443
  $selected = "";
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.3
7
  Author: twinpictures, baden03
8
  Author URI: http://www.twinpictures.de/
9
  License: GPL2
37
 
38
  $styles_arr = array("TIE-fighter","c-3po","c-3po-mini","carbonite","carbonlite","darth","jedi");
39
  add_option('t-minus_styles', $styles_arr);
40
+ $plugin_url = plugins_url() .'/'. dirname( plugin_basename(__FILE__) );
 
41
  wp_enqueue_script('jquery');
42
  if (is_admin()){
43
  //jquery admin stuff
436
  <p><?php _e('Omit Weeks:'); ?> <input id="<?php echo $this->get_field_id('omitweeks'); ?>-no" name="<?php echo $this->get_field_name('omitweeks'); ?>" type="radio" <?php echo $negative; ?> value="false" /><label for="<?php echo $this->get_field_id('omitweeks'); ?>-no"> <?php _e('No'); ?> </label> <input id="<?php echo $this->get_field_id('omitweeks'); ?>-yes" name="<?php echo $this->get_field_name('omitweeks'); ?>" type="radio" <?php echo $positive; ?> value="true" /> <label for="<?php echo $this->get_field_id('omitweeks'); ?>-yes"> <?php _e('Yes'); ?></label></p>
437
  <p><?php _e('Style:'); ?> <select name="<?php echo $this->get_field_name('style'); ?>" id="<?php echo $this->get_field_name('style'); ?>">
438
  <?php
439
+
440
+ $styles_arr = folder_array(WP_PLUGIN_DIR.'/'. dirname( plugin_basename(__FILE__) ).'/css');
441
  update_option('t-minus_styles', $styles_arr);
442
  foreach($styles_arr as $style_name){
443
  $selected = "";
css/carbonlite/style.css CHANGED
@@ -6,7 +6,7 @@
6
 
7
  /*above the dashboard*/
8
  .carbonlite-dashboard {
9
- height: 127px;
10
  width: 250px;
11
  margin: 0 auto;
12
  padding-top: 10px;
@@ -48,7 +48,6 @@
48
 
49
  .carbonlite-days_trip_dash {
50
  background: transparent url('images/bg_trip_dash.png') 0 0 no-repeat;
51
-
52
  }
53
 
54
  .carbonlite-weeks_dash {
@@ -73,7 +72,7 @@
73
  display: block;
74
  position: absolute;
75
  text-transform:uppercase;
76
- top: 37px;
77
  color: #AAA;
78
  text-align: center;
79
  font-size: 9px;
@@ -82,8 +81,9 @@
82
  .carbonlite-tripdash .carbonlite-dash_title {
83
  display: block;
84
  position: absolute;
85
- text-transform:uppercase;
86
- top: 37px;
 
87
  color: #AAA;
88
  text-align: center;
89
  font-size: 9px;
6
 
7
  /*above the dashboard*/
8
  .carbonlite-dashboard {
9
+ height: 60px;
10
  width: 250px;
11
  margin: 0 auto;
12
  padding-top: 10px;
48
 
49
  .carbonlite-days_trip_dash {
50
  background: transparent url('images/bg_trip_dash.png') 0 0 no-repeat;
 
51
  }
52
 
53
  .carbonlite-weeks_dash {
72
  display: block;
73
  position: absolute;
74
  text-transform:uppercase;
75
+ top: 33px;
76
  color: #AAA;
77
  text-align: center;
78
  font-size: 9px;
81
  .carbonlite-tripdash .carbonlite-dash_title {
82
  display: block;
83
  position: absolute;
84
+ text-transform: uppercase;
85
+ top: 33px;
86
+ left: 17px;
87
  color: #AAA;
88
  text-align: center;
89
  font-size: 9px;
js/jquery.collapse.js CHANGED
@@ -25,6 +25,11 @@
25
  */
26
 
27
  jQuery(document).ready(function() {
 
 
 
 
 
28
  jQuery('.collapseomatic').livequery('click', function(event) {
29
  //alert('phones ringin dude');
30
  jQuery(this).toggleClass('colomat-close');
25
  */
26
 
27
  jQuery(document).ready(function() {
28
+ jQuery('.collapseomatic:not(.colomat-close)').each(function(index) {
29
+ var thisid = jQuery(this).attr('id');
30
+ jQuery('#target-'+thisid).css('display', 'none');
31
+ });
32
+
33
  jQuery('.collapseomatic').livequery('click', function(event) {
34
  //alert('phones ringin dude');
35
  jQuery(this).toggleClass('colomat-close');
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, t minus, t-minus, twinpictures, plguin-oven, pluginoven, G2, spaceBros, littlewebtings, jQuery, javascript
6
  Requires at least: 2.8
7
- Tested up to: 3.4
8
- Stable tag: 2.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
 
@@ -54,6 +54,11 @@ Ah yes! <a href='http://twitter.com/#!/twinpictures'>@Twinpictures</a> is on the
54
 
55
  == Changelog ==
56
 
 
 
 
 
 
57
  = 2.2.2 =
58
  * Upgraded to a more efficient method of loading only the styles that are being used
59
 
@@ -133,6 +138,11 @@ Ah yes! <a href='http://twitter.com/#!/twinpictures'>@Twinpictures</a> is on the
133
 
134
  == Upgrade Notice ==
135
 
 
 
 
 
 
136
  = 2.2.2 =
137
  * Streamlined the method of loading css styles. Now only the styles that are being used will be loaded.
138
 
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.4.1
8
+ Stable tag: 2.2.3
9
 
10
  T(-) Countdown will display a highly customizable, sweet-n-sexy flash-free countdown timer in a sidebar, page or post.
11
 
54
 
55
  == Changelog ==
56
 
57
+ = 2.2.3 =
58
+ * Fixed spacing issues with some styles
59
+ * Rockstar features will default to collapsed to save space
60
+ * Updated method of locating plugins directory
61
+
62
  = 2.2.2 =
63
  * Upgraded to a more efficient method of loading only the styles that are being used
64
 
138
 
139
  == Upgrade Notice ==
140
 
141
+ = 2.2.3a =
142
+ * fixed spacing issues with some styles
143
+ * rockstar features will now display collapsed by default
144
+ * will discover plugin directory if wp-content is renamed
145
+
146
  = 2.2.2 =
147
  * Streamlined the method of loading css styles. Now only the styles that are being used will be loaded.
148