T(-) Countdown - Version 2.2.12

Version Description

  • added cloud-city style which is a clone of vintage that came with vintage wedding theme: http://wordpress.org/support/topic/cannot-see-boxes
Download this release

Release Info

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

Code changes from version 2.2.11 to 2.2.12

Files changed (3) hide show
  1. countdown-timer.php +6 -6
  2. css/cloud-city/style.css +99 -0
  3. readme.txt +7 -1
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.11
9
  Author: twinpictures, baden03
10
  Author URI: http://www.twinpictures.de/
11
  License: GPL2
@@ -29,20 +29,20 @@ License: GPL2
29
 
30
  //widget scripts
31
  function countdown_scripts(){
32
- $current_version = '2.2.11';
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.11');
40
 
41
  //reset rockstar option
42
  delete_option( 'rockstar' );
43
  add_option('rockstar', '');
44
  }
45
- $styles_arr = array("hoth","TIE-fighter","c-3po","c-3po-mini","carbonite","carbonite-responsive","carbonlite","darth","jedi", "sith");
46
  add_option('t-minus_styles', $styles_arr);
47
  $plugin_url = plugins_url() .'/'. dirname( plugin_basename(__FILE__) );
48
  //wp_enqueue_script('jquery');
@@ -66,7 +66,7 @@ function countdown_scripts(){
66
  //register all countdown styles for enqueue-as-needed
67
  $styles_arr = get_option('t-minus_styles');
68
  foreach($styles_arr as $style_name){
69
- wp_register_style( 'countdown-'.$style_name.'-css', $plugin_url.'/css/'.$style_name.'/style.css', array(), '1.2' );
70
  }
71
  }
72
  }
@@ -359,7 +359,7 @@ class CountDownTimer extends WP_Widget {
359
  if($month > 12){
360
  $month = 12;
361
  }
362
- $year = empty($instance['year']) ? 2013 : apply_filters('widget_year', $instance['year']);
363
  $date = empty($instance['date']) ? $year.'-'.$month.'-'.$day : apply_filters('widget_date', $instance['date']);
364
  $hour = empty($instance['hour']) ? 12 : apply_filters('widget_hour', $instance['hour']);
365
  if($hour > 23){
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.12
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.12';
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.12');
40
 
41
  //reset rockstar option
42
  delete_option( 'rockstar' );
43
  add_option('rockstar', '');
44
  }
45
+ $styles_arr = array("hoth","TIE-fighter","c-3po","c-3po-mini","carbonite","carbonite-responsive","carbonlite","cloud-city","darth","jedi", "sith");
46
  add_option('t-minus_styles', $styles_arr);
47
  $plugin_url = plugins_url() .'/'. dirname( plugin_basename(__FILE__) );
48
  //wp_enqueue_script('jquery');
66
  //register all countdown styles for enqueue-as-needed
67
  $styles_arr = get_option('t-minus_styles');
68
  foreach($styles_arr as $style_name){
69
+ wp_register_style( 'countdown-'.$style_name.'-css', $plugin_url.'/css/'.$style_name.'/style.css', array(), '1.3' );
70
  }
71
  }
72
  }
359
  if($month > 12){
360
  $month = 12;
361
  }
362
+ $year = empty($instance['year']) ? 2014 : apply_filters('widget_year', $instance['year']);
363
  $date = empty($instance['date']) ? $year.'-'.$month.'-'.$day : apply_filters('widget_date', $instance['date']);
364
  $hour = empty($instance['hour']) ? 12 : apply_filters('widget_hour', $instance['hour']);
365
  if($hour > 23){
css/cloud-city/style.css ADDED
@@ -0,0 +1,99 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .cloud-city-tophtml,
2
+ .cloud-city-bothtml {
3
+ margin: 0 auto;
4
+ padding: 0;
5
+ text-align: center;
6
+ font-size: 12px;
7
+ clear: both;
8
+ }
9
+ .cloud-city-dashboard {
10
+ width: 100%;
11
+ margin: 0 auto;
12
+ padding: 12px 0 10px 0;
13
+ text-align: center;
14
+ }
15
+ .cloud-city-dash {
16
+ width: 17%;
17
+ min-width: 23px;
18
+ height: 6em;
19
+ display: inline-block;
20
+ vertical-align: top;
21
+ margin-left: 1%;
22
+ margin-right: auto;
23
+ position: relative;
24
+ color: #fff;
25
+ text-align: center;
26
+ white-space: nowrap;
27
+ }
28
+ .cloud-city-tripdash {
29
+ width: 18%;
30
+ min-width: 40px;
31
+ max-width: 90px;
32
+ height: 48px;
33
+ display: inline-block;
34
+ vertical-align: top;
35
+ margin-left: 1%;
36
+ margin-right: auto;
37
+ position: relative;
38
+ color: #fff;
39
+ text-align: center;
40
+ white-space: nowrap;
41
+ }
42
+ .cloud-city-weeks_trip_dash{
43
+ clear: both;
44
+ margin-left: 13%;
45
+ display: block !important;
46
+ }
47
+ .cloud-city-digit {
48
+ font-size: 2.5em;
49
+ line-height: 1.5em;
50
+ display: inline-block;
51
+ vertical-align: top;
52
+ width: 1em;
53
+ height: 1.5em;
54
+ position: relative;
55
+ margin-top: 4px;
56
+ margin-left: 0;
57
+ margin-right: -2px;
58
+ border-radius: 5px;
59
+ background: #faf9f6;
60
+ color: rgb(49, 49, 49);
61
+ text-shadow: 0 1px 0 #fff;
62
+ border-bottom: 1px solid #c6c6c6;
63
+ }
64
+
65
+ .cloud-city-dash {
66
+ height: 5em;
67
+ }
68
+
69
+ .cloud-city-tripdash .cloud-city-digit {
70
+ margin-right: 0 !important;
71
+ }
72
+ .cloud-city-dash_title {
73
+ display: block;
74
+ position: absolute;
75
+ width: 100%;
76
+ color: #999;
77
+ text-align: center;
78
+ font-size: 0.8em;
79
+ height: 2em;
80
+ margin: 0px;
81
+ bottom: -1em;
82
+ white-space: nowrap;
83
+ overflow: hidden;}
84
+
85
+ @media screen and (max-width: 650px) {
86
+ .cloud-city-digit {
87
+ font-size: 2em;
88
+ }
89
+ }
90
+
91
+ @media screen and (max-width: 480px) {
92
+ .cloud-city-digit {
93
+ width: 1em;
94
+ font-size: 1.5em;
95
+ }
96
+ .cloud-city-dash {
97
+ height: 4em;
98
+ }
99
+ }
readme.txt CHANGED
@@ -5,7 +5,7 @@ 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
8
- Stable tag: 2.2.11
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.11 =
67
  * When setting jsplacment to inline, script is forced to print after countdown elements.
68
  * Escape characters no longer converted in widget tile
@@ -181,6 +184,9 @@ The Daily Show with John Stewart
181
 
182
  == Upgrade Notice ==
183
 
 
 
 
184
  = 2.2.11 =
185
  * added new style: sith
186
  * jsplacment inline improved
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
8
+ Stable tag: 2.2.12
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.12 =
67
+ * added cloud-city style which is a clone of vintage that came with vintage wedding theme: http://wordpress.org/support/topic/cannot-see-boxes
68
+
69
  = 2.2.11 =
70
  * When setting jsplacment to inline, script is forced to print after countdown elements.
71
  * Escape characters no longer converted in widget tile
184
 
185
  == Upgrade Notice ==
186
 
187
+ = 2.2.12 =
188
+ * added cloud-city style
189
+
190
  = 2.2.11 =
191
  * added new style: sith
192
  * jsplacment inline improved