Awesome Weather Widget - Version 1.5.4

Version Description

  • Preset background images added for the 'Use Different Background Images Based on Weather' option
  • Color picker to choose a font color for the whole widget
  • CSS whitespace: no-wrap on the little degree symbols
  • Fixed wind speed to mph for 'Imperial' and m/s for Celsius as per the OpenWeatherMap weather data section
  • Updated .pot file
Download this release

Release Info

Developer halgatewood
Plugin Icon 128x128 Awesome Weather Widget
Version 1.5.4
Comparing to
See all releases

Code changes from version 1.5.3.1 to 1.5.4

awesome-weather.css CHANGED
@@ -43,6 +43,7 @@
43
  font-size: 66px;
44
  line-height: 1em;
45
  font-weight: 300;
 
46
  }
47
 
48
  .awesome-weather-current-temp sup { font-size: 24px; padding-left: 3px; }
@@ -76,7 +77,7 @@
76
  .awe_days_3 .awesome-weather-forecast-day { width: 31%; }
77
  .awe_days_4 .awesome-weather-forecast-day { width: 23%; }
78
 
79
- .awesome-weather-forecast-day-temp { font-size: 1.3em; font-weight: 300; }
80
  .awesome-weather-forecast-day-temp sup { font-size: 0.6em; padding-left: 2px; }
81
  .awesome-weather-forecast-day-abbr { text-transform: uppercase; font-size: 0.7em; font-weight: 300; margin-top: 5px; padding-right: 4px; }
82
 
43
  font-size: 66px;
44
  line-height: 1em;
45
  font-weight: 300;
46
+ white-space: nowrap;
47
  }
48
 
49
  .awesome-weather-current-temp sup { font-size: 24px; padding-left: 3px; }
77
  .awe_days_3 .awesome-weather-forecast-day { width: 31%; }
78
  .awe_days_4 .awesome-weather-forecast-day { width: 23%; }
79
 
80
+ .awesome-weather-forecast-day-temp { font-size: 1.3em; font-weight: 300; white-space: nowrap; }
81
  .awesome-weather-forecast-day-temp sup { font-size: 0.6em; padding-left: 2px; }
82
  .awesome-weather-forecast-day-abbr { text-transform: uppercase; font-size: 0.7em; font-weight: 300; margin-top: 5px; padding-right: 4px; }
83
 
awesome-weather.php CHANGED
@@ -5,7 +5,7 @@ Plugin URI: https://halgatewood.com/awesome-weather
5
  Description: A weather widget that actually looks cool
6
  Author: Hal Gatewood
7
  Author URI: https://www.halgatewood.com
8
- Version: 1.5.3.1
9
  Text Domain: awesome-weather
10
  Domain Path: /languages
11
 
@@ -55,6 +55,8 @@ function awesome_weather_wp_admin_head( )
55
  {
56
  wp_enqueue_script('jquery');
57
  wp_enqueue_script('underscore');
 
 
58
  }
59
  add_action( 'admin_enqueue_scripts', 'awesome_weather_wp_admin_head' );
60
 
@@ -87,6 +89,7 @@ function awesome_weather_logic( $atts )
87
  $background = isset($atts['background']) ? $atts['background'] : false;
88
  $custom_bg_color = isset($atts['custom_bg_color']) ? $atts['custom_bg_color'] : false;
89
  $inline_style = isset($atts['inline_style']) ? $atts['inline_style'] : '';
 
90
  $locale = 'en';
91
 
92
  $sytem_locale = get_locale();
@@ -221,6 +224,10 @@ function awesome_weather_logic( $atts )
221
  $today_high = round($today->main->temp_max);
222
  $today_low = round($today->main->temp_min);
223
 
 
 
 
 
224
 
225
  // BACKGROUND DATA, CLASSES AND OR IMAGES
226
  $background_classes = array();
@@ -231,7 +238,7 @@ function awesome_weather_logic( $atts )
231
  if( $custom_bg_color )
232
  {
233
  if( substr(trim($custom_bg_color), 0, 1) != "#" AND substr(trim(strtolower($custom_bg_color)), 0, 3) != "rgb" ) { $custom_bg_color = "#" . $custom_bg_color; }
234
- $inline_style .= "background-color: {$custom_bg_color};";
235
  $background_classes[] = "awe_custom";
236
  }
237
  else
@@ -302,28 +309,26 @@ function awesome_weather_logic( $atts )
302
  else
303
  {
304
  // PRESET WEATHER NAMES
305
- $preset_background_img_name = "";
306
- if( substr($weather_code,0,1) == "2" ) $preset_background_img_name = "thunderstorm";
307
- else if( substr($weather_code,0,1) == "3" ) $preset_background_img_name = "drizzle";
308
- else if( substr($weather_code,0,1) == "5" ) $preset_background_img_name = "rain";
309
- else if( $weather_code == 611 ) $preset_background_img_name = "sleet";
310
- else if( substr($weather_code,0,1) == "6" ) $preset_background_img_name = "snow";
311
- else if( $weather_code == 781 OR $weather_code == 900 ) $preset_background_img_name = "tornado";
312
- else if( substr($weather_code,0,1) == "8" ) $preset_background_img_name = "cloudy";
313
- else if( $weather_code == 901 ) $preset_background_img_name = "tropical-storm";
314
- else if( $weather_code == 902 ) $preset_background_img_name = "hurricane";
315
- else if( $weather_code == 905 ) $preset_background_img_name = "windy";
316
- else if( $weather_code == 906 ) $preset_background_img_name = "hail";
317
- else if( $weather_code == 951 ) $preset_background_img_name = "calm";
318
- else if( $weather_code > 951 AND $weather_code < 958 ) $preset_background_img_name = "breeze";
319
-
320
  if( $preset_background_img_name )
321
  {
322
  $background_classes[] = "awe-preset-" . $preset_background_img_name;
323
- if( file_exists( get_stylesheet_directory() . "/awe-backgrounds/" . $preset_background_img_name . "." . $bg_ext) ) $background = get_stylesheet_directory_uri() . "/awe-backgrounds/" . $preset_background_img_name . "." . $bg_ext;
324
  }
325
  }
326
  }
 
 
 
 
 
 
 
 
 
 
 
327
  }
328
 
329
 
@@ -361,13 +366,15 @@ function awesome_weather_logic( $atts )
361
 
362
  if($show_stats)
363
  {
364
- $wind_speed_obj = apply_filters('awesome_weather_wind_speed', array( 'text' => __('m/s', 'awesome-weather'),'speed'=> $today->wind->speed, 'direction' => $wind_direction ), $today->wind->speed, $wind_direction );
 
 
365
 
366
  $rtn .= "
367
  <div class=\"awesome-weather-todays-stats\">
368
  <div class=\"awe_desc\">{$today->weather[0]->description}</div>
369
  <div class=\"awe_humidty\">" . __('humidity:', 'awesome-weather') . " {$today->main->humidity}% </div>
370
- <div class=\"awe_wind\">" . __('wind:', 'awesome-weather') . " {$wind_speed_obj['speed']}{$wind_speed_obj['text']} {$wind_speed_obj['direction']}</div>
371
  <div class=\"awe_highlow\"> " .__('H', 'awesome-weather') . " {$today_high} &bull; " . __('L', 'awesome-weather') . " {$today_low} </div>
372
  </div> <!-- /.awesome-weather-todays-stats -->
373
  ";
@@ -484,6 +491,7 @@ class AwesomeWeatherWidget extends WP_Widget
484
  $background_by_weather = (isset($instance['background_by_weather']) AND $instance['background_by_weather'] == 1) ? 1 : 0;
485
  $background = isset($instance['background']) ? $instance['background'] : false;
486
  $custom_bg_color = isset($instance['custom_bg_color']) ? $instance['custom_bg_color'] : false;
 
487
 
488
  echo $before_widget;
489
  if($widget_title != "") echo $before_title . $widget_title . $after_title;
@@ -498,7 +506,8 @@ class AwesomeWeatherWidget extends WP_Widget
498
  'show_link' => $show_link,
499
  'background' => $background,
500
  'custom_bg_color' => $custom_bg_color,
501
- 'background_by_weather' => $background_by_weather
 
502
  ));
503
  echo $after_widget;
504
  }
@@ -515,6 +524,7 @@ class AwesomeWeatherWidget extends WP_Widget
515
  $instance['forecast_days'] = strip_tags($new_instance['forecast_days']);
516
  $instance['background'] = strip_tags($new_instance['background']);
517
  $instance['custom_bg_color'] = strip_tags($new_instance['custom_bg_color']);
 
518
  $instance['background_by_weather'] = (isset($new_instance['background_by_weather']) AND $new_instance['background_by_weather'] == 1) ? 1 : 0;
519
  $instance['hide_stats'] = (isset($new_instance['hide_stats']) AND $new_instance['hide_stats'] == 1) ? 1 : 0;
520
  $instance['show_link'] = (isset($new_instance['show_link']) AND $new_instance['show_link'] == 1) ? 1 : 0;
@@ -537,10 +547,22 @@ class AwesomeWeatherWidget extends WP_Widget
537
  $show_link = (isset($instance['show_link']) AND $instance['show_link'] == 1) ? 1 : 0;
538
  $background = isset($instance['background']) ? esc_attr($instance['background']) : "";
539
  $custom_bg_color = isset($instance['custom_bg_color']) ? esc_attr($instance['custom_bg_color']) : "";
 
540
 
541
  $appid = apply_filters( 'awesome_weather_appid', get_option( 'open-weather-key' ) );
 
 
 
 
 
542
  ?>
543
 
 
 
 
 
 
 
544
  <?php if(!$appid) { ?>
545
  <div style="background: #dc3232; color: #fff; padding: 10px; margin: 10px;">
546
  <?php
@@ -587,6 +609,14 @@ class AwesomeWeatherWidget extends WP_Widget
587
  <input id="<?php echo $this->get_field_id('units'); ?>" name="<?php echo $this->get_field_name('units'); ?>" type="radio" value="C" <?php if($units == "C") echo ' checked="checked"'; ?> /> C
588
  </p>
589
 
 
 
 
 
 
 
 
 
590
  <p>
591
  <label for="<?php echo $this->get_field_id('size'); ?>"><?php _e('Size:', 'awesome-weather'); ?></label>
592
  <select class="widefat" id="<?php echo $this->get_field_id('size'); ?>" name="<?php echo $this->get_field_name('size'); ?>">
@@ -608,6 +638,8 @@ class AwesomeWeatherWidget extends WP_Widget
608
  </select>
609
  </p>
610
 
 
 
611
  <p>
612
  <label for="<?php echo $this->get_field_id('background'); ?>"><?php _e('Background Image:', 'awesome-weather'); ?></label>
613
  <input class="widefat" id="<?php echo $this->get_field_id('background'); ?>" name="<?php echo $this->get_field_name('background'); ?>" type="text" value="<?php echo $background; ?>" />
@@ -623,6 +655,24 @@ class AwesomeWeatherWidget extends WP_Widget
623
  <small><?php _e('overrides color changing', 'awesome-weather'); ?>: #7fb761 or rgba(0,0,0,0.5)</small>
624
  <input class="widefat" id="<?php echo $this->get_field_id('custom_bg_color'); ?>" name="<?php echo $this->get_field_name('custom_bg_color'); ?>" type="text" value="<?php echo $custom_bg_color; ?>" />
625
  </p>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
626
 
627
  <p>
628
  <input id="<?php echo $this->get_field_id('hide_stats'); ?>" name="<?php echo $this->get_field_name('hide_stats'); ?>" type="checkbox" value="1" <?php if($hide_stats) echo ' checked="checked"'; ?> />
@@ -669,3 +719,22 @@ function awe_ping_owm_for_id( )
669
  }
670
 
671
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5
  Description: A weather widget that actually looks cool
6
  Author: Hal Gatewood
7
  Author URI: https://www.halgatewood.com
8
+ Version: 1.5.4
9
  Text Domain: awesome-weather
10
  Domain Path: /languages
11
 
55
  {
56
  wp_enqueue_script('jquery');
57
  wp_enqueue_script('underscore');
58
+ wp_enqueue_style( 'wp-color-picker' );
59
+ wp_enqueue_script( 'wp-color-picker');
60
  }
61
  add_action( 'admin_enqueue_scripts', 'awesome_weather_wp_admin_head' );
62
 
89
  $background = isset($atts['background']) ? $atts['background'] : false;
90
  $custom_bg_color = isset($atts['custom_bg_color']) ? $atts['custom_bg_color'] : false;
91
  $inline_style = isset($atts['inline_style']) ? $atts['inline_style'] : '';
92
+ $text_color = isset($atts['text_color']) ? $atts['text_color'] : '#ffffff';
93
  $locale = 'en';
94
 
95
  $sytem_locale = get_locale();
224
  $today_high = round($today->main->temp_max);
225
  $today_low = round($today->main->temp_min);
226
 
227
+ // TEXT COLOR
228
+ if( substr(trim($text_color), 0, 1) != "#" ) $text_color = "#" . $text_color;
229
+ $inline_style .= " color: {$text_color}; ";
230
+
231
 
232
  // BACKGROUND DATA, CLASSES AND OR IMAGES
233
  $background_classes = array();
238
  if( $custom_bg_color )
239
  {
240
  if( substr(trim($custom_bg_color), 0, 1) != "#" AND substr(trim(strtolower($custom_bg_color)), 0, 3) != "rgb" ) { $custom_bg_color = "#" . $custom_bg_color; }
241
+ $inline_style .= " background-color: {$custom_bg_color}; ";
242
  $background_classes[] = "awe_custom";
243
  }
244
  else
309
  else
310
  {
311
  // PRESET WEATHER NAMES
312
+ $preset_background_img_name = awesome_weather_preset_condition_names_openweathermaps( $weather_code );
313
+
 
 
 
 
 
 
 
 
 
 
 
 
 
314
  if( $preset_background_img_name )
315
  {
316
  $background_classes[] = "awe-preset-" . $preset_background_img_name;
317
+ if( file_exists( get_stylesheet_directory() . "/awe-backgrounds/" . $preset_background_img_name . "." . $bg_ext) ) $background = get_stylesheet_directory_uri() . "awe-backgrounds/" . $preset_background_img_name . "." . $bg_ext;
318
  }
319
  }
320
  }
321
+ else
322
+ {
323
+ // PRESET WEATHER NAMES
324
+ $preset_background_img_name = awesome_weather_preset_condition_names_openweathermaps( $weather_code );
325
+
326
+ if( $preset_background_img_name )
327
+ {
328
+ $background_classes[] = "awe-preset-" . $preset_background_img_name;
329
+ if( file_exists( dirname(__FILE__) . "/img/awe-backgrounds/" . $preset_background_img_name . ".jpg") ) $background = plugin_dir_url( __FILE__ ) . "/img/awe-backgrounds/" . $preset_background_img_name . ".jpg";
330
+ }
331
+ }
332
  }
333
 
334
 
366
 
367
  if($show_stats)
368
  {
369
+ $wind_speed = ( $units == "imperial" ) ? __('mph', 'awesome-weather') : __('m/s', 'awesome-weather');
370
+ $wind_speed_obj = apply_filters('awesome_weather_wind_speed', array( 'text' => $wind_speed,'speed'=> $today->wind->speed, 'direction' => $wind_direction ), $today->wind->speed, $wind_direction );
371
+
372
 
373
  $rtn .= "
374
  <div class=\"awesome-weather-todays-stats\">
375
  <div class=\"awe_desc\">{$today->weather[0]->description}</div>
376
  <div class=\"awe_humidty\">" . __('humidity:', 'awesome-weather') . " {$today->main->humidity}% </div>
377
+ <div class=\"awe_wind\">" . __('wind:', 'awesome-weather') . " {$wind_speed_obj['speed']} {$wind_speed_obj['text']} {$wind_speed_obj['direction']}</div>
378
  <div class=\"awe_highlow\"> " .__('H', 'awesome-weather') . " {$today_high} &bull; " . __('L', 'awesome-weather') . " {$today_low} </div>
379
  </div> <!-- /.awesome-weather-todays-stats -->
380
  ";
491
  $background_by_weather = (isset($instance['background_by_weather']) AND $instance['background_by_weather'] == 1) ? 1 : 0;
492
  $background = isset($instance['background']) ? $instance['background'] : false;
493
  $custom_bg_color = isset($instance['custom_bg_color']) ? $instance['custom_bg_color'] : false;
494
+ $text_color = isset($instance['text_color']) ? $instance['text_color'] : "#ffffff";
495
 
496
  echo $before_widget;
497
  if($widget_title != "") echo $before_title . $widget_title . $after_title;
506
  'show_link' => $show_link,
507
  'background' => $background,
508
  'custom_bg_color' => $custom_bg_color,
509
+ 'background_by_weather' => $background_by_weather,
510
+ 'text_color' => $text_color
511
  ));
512
  echo $after_widget;
513
  }
524
  $instance['forecast_days'] = strip_tags($new_instance['forecast_days']);
525
  $instance['background'] = strip_tags($new_instance['background']);
526
  $instance['custom_bg_color'] = strip_tags($new_instance['custom_bg_color']);
527
+ $instance['text_color'] = strip_tags($new_instance['text_color']);
528
  $instance['background_by_weather'] = (isset($new_instance['background_by_weather']) AND $new_instance['background_by_weather'] == 1) ? 1 : 0;
529
  $instance['hide_stats'] = (isset($new_instance['hide_stats']) AND $new_instance['hide_stats'] == 1) ? 1 : 0;
530
  $instance['show_link'] = (isset($new_instance['show_link']) AND $new_instance['show_link'] == 1) ? 1 : 0;
547
  $show_link = (isset($instance['show_link']) AND $instance['show_link'] == 1) ? 1 : 0;
548
  $background = isset($instance['background']) ? esc_attr($instance['background']) : "";
549
  $custom_bg_color = isset($instance['custom_bg_color']) ? esc_attr($instance['custom_bg_color']) : "";
550
+ $text_color = isset($instance['text_color']) ? esc_attr($instance['text_color']) : "#ffffff";
551
 
552
  $appid = apply_filters( 'awesome_weather_appid', get_option( 'open-weather-key' ) );
553
+
554
+ $wp_theme = wp_get_theme();
555
+ $wp_theme = $wp_theme->get('TextDomain');
556
+
557
+ $random_id = wp_rand();
558
  ?>
559
 
560
+ <style>
561
+ .awe-suggest { font-size: 0.9em; border-bottom: solid 1px #ccc; padding: 5px 1px; font-weight: bold; }
562
+ .awe-size-options { padding: 1px 10px; background: #efefef; }
563
+ </style>
564
+
565
+
566
  <?php if(!$appid) { ?>
567
  <div style="background: #dc3232; color: #fff; padding: 10px; margin: 10px;">
568
  <?php
609
  <input id="<?php echo $this->get_field_id('units'); ?>" name="<?php echo $this->get_field_name('units'); ?>" type="radio" value="C" <?php if($units == "C") echo ' checked="checked"'; ?> /> C
610
  </p>
611
 
612
+ <div class="awe-size-options">
613
+
614
+ <?php if( $wp_theme == "twentytwelve") { ?><div class="awe-suggest"> Suggested settings: Wide, 5 Days</div><?php } ?>
615
+ <?php if( $wp_theme == "twentythirteen") { ?><div class="awe-suggest"> Suggested settings: Tall, 4 Days</div><?php } ?>
616
+ <?php if( $wp_theme == "twentyfourteen") { ?><div class="awe-suggest"> Suggested settings: Tall, 3 Days</div><?php } ?>
617
+ <?php if( $wp_theme == "twentyfifteen") { ?><div class="awe-suggest"> Suggested settings: Tall, 4 Days</div><?php } ?>
618
+ <?php if( $wp_theme == "twentysixteen") { ?><div class="awe-suggest"> Suggested settings: Wide, 5 Days</div><?php } ?>
619
+
620
  <p>
621
  <label for="<?php echo $this->get_field_id('size'); ?>"><?php _e('Size:', 'awesome-weather'); ?></label>
622
  <select class="widefat" id="<?php echo $this->get_field_id('size'); ?>" name="<?php echo $this->get_field_name('size'); ?>">
638
  </select>
639
  </p>
640
 
641
+ </div>
642
+
643
  <p>
644
  <label for="<?php echo $this->get_field_id('background'); ?>"><?php _e('Background Image:', 'awesome-weather'); ?></label>
645
  <input class="widefat" id="<?php echo $this->get_field_id('background'); ?>" name="<?php echo $this->get_field_name('background'); ?>" type="text" value="<?php echo $background; ?>" />
655
  <small><?php _e('overrides color changing', 'awesome-weather'); ?>: #7fb761 or rgba(0,0,0,0.5)</small>
656
  <input class="widefat" id="<?php echo $this->get_field_id('custom_bg_color'); ?>" name="<?php echo $this->get_field_name('custom_bg_color'); ?>" type="text" value="<?php echo $custom_bg_color; ?>" />
657
  </p>
658
+
659
+ <p>
660
+ <label for="<?php echo $this->get_field_id( 'text_color' ); ?>" style="display:block;"><?php _e( 'Text Color', 'awesome-weather' ); ?></label>
661
+ <input class="widefat color-picker" id="<?php echo $this->get_field_id( 'text_color' ); ?>" name="<?php echo $this->get_field_name( 'text_color' ); ?>" type="text" value="<?php echo esc_attr( $text_color ); ?>" />
662
+ </p>
663
+
664
+ <script type="text/javascript">
665
+ jQuery(document).ready(function($)
666
+ {
667
+ jQuery('#<?php echo $this->get_field_id( 'text_color' ); ?>').on('focus', function(){
668
+ var parent = jQuery(this).parent();
669
+ jQuery(this).wpColorPicker()
670
+ parent.find('.wp-color-result').click();
671
+ });
672
+
673
+ jQuery('#<?php echo $this->get_field_id( 'text_color' ); ?>').wpColorPicker()
674
+ });
675
+ </script>
676
 
677
  <p>
678
  <input id="<?php echo $this->get_field_id('hide_stats'); ?>" name="<?php echo $this->get_field_name('hide_stats'); ?>" type="checkbox" value="1" <?php if($hide_stats) echo ' checked="checked"'; ?> />
719
  }
720
 
721
 
722
+ // PRESET WEATHER BACKGROUND NAMES
723
+ function awesome_weather_preset_condition_names_openweathermaps( $weather_code )
724
+ {
725
+ if( substr($weather_code,0,1) == "2" ) return "thunderstorm";
726
+ else if( substr($weather_code,0,1) == "3" ) return "drizzle";
727
+ else if( substr($weather_code,0,1) == "5" ) return "rain";
728
+ else if( $weather_code == 611 ) return "sleet";
729
+ else if( substr($weather_code,0,1) == "6" ) return "snow";
730
+ else if( $weather_code == 781 OR $weather_code == 900 ) return "tornado";
731
+ else if( $weather_code == 800 ) return "sunny";
732
+ else if( substr($weather_code,0,1) == "8" ) return "cloudy";
733
+ else if( $weather_code == 901 ) return "tropical-storm";
734
+ else if( $weather_code == 902 ) return "hurricane";
735
+ else if( $weather_code == 905 ) return "windy";
736
+ else if( $weather_code == 906 ) return "hail";
737
+ else if( $weather_code == 951 ) return "calm";
738
+ else if( $weather_code > 951 AND $weather_code < 958 ) return "breeze";
739
+ }
740
+
img/awe-backgrounds/breeze.jpg ADDED
Binary file
img/awe-backgrounds/calm-night.jpg ADDED
Binary file
img/awe-backgrounds/calm.jpg ADDED
Binary file
img/awe-backgrounds/cloudy-night.jpg ADDED
Binary file
img/awe-backgrounds/cloudy.jpg ADDED
Binary file
img/awe-backgrounds/drizzle.jpg ADDED
Binary file
img/awe-backgrounds/hail.jpg ADDED
Binary file
img/awe-backgrounds/hurricane.jpg ADDED
Binary file
img/awe-backgrounds/rain.jpg ADDED
Binary file
img/awe-backgrounds/sleet.jpg ADDED
Binary file
img/awe-backgrounds/snow.jpg ADDED
Binary file
img/awe-backgrounds/sunny.jpg ADDED
Binary file
img/awe-backgrounds/thunderstorm.jpg ADDED
Binary file
img/awe-backgrounds/tornado.jpg ADDED
Binary file
img/awe-backgrounds/tropical-storm.jpg ADDED
Binary file
img/awe-backgrounds/windy.jpg ADDED
Binary file
languages/awesome-weather.pot CHANGED
@@ -2,9 +2,9 @@
2
  # This file is distributed under the same license as the Awesome Weather Widget package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Awesome Weather Widget 1.5.3.1\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/awesome-weather\n"
7
- "POT-Creation-Date: 2015-10-12 15:24:25+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
@@ -52,7 +52,7 @@ msgstr ""
52
  msgid "As of October 2015, OpenWeatherMaps requires this key to access their weather data."
53
  msgstr ""
54
 
55
- #: awesome-weather-settings.php:108 awesome-weather.php:549
56
  msgid "Get your APPID"
57
  msgstr ""
58
 
@@ -72,211 +72,219 @@ msgstr ""
72
  msgid "What should the plugin do when there is an error?"
73
  msgstr ""
74
 
75
- #: awesome-weather.php:81
76
  msgid "C"
77
  msgstr ""
78
 
79
- #: awesome-weather.php:81
80
  msgid "F"
81
  msgstr ""
82
 
83
- #: awesome-weather.php:268
84
  msgid "N"
85
  msgstr ""
86
 
87
- #: awesome-weather.php:268
88
  msgid "NNE"
89
  msgstr ""
90
 
91
- #: awesome-weather.php:268
92
  msgid "NE"
93
  msgstr ""
94
 
95
- #: awesome-weather.php:268
96
  msgid "ENE"
97
  msgstr ""
98
 
99
- #: awesome-weather.php:268
100
  msgid "E"
101
  msgstr ""
102
 
103
- #: awesome-weather.php:268
104
  msgid "ESE"
105
  msgstr ""
106
 
107
- #: awesome-weather.php:268
108
  msgid "SE"
109
  msgstr ""
110
 
111
- #: awesome-weather.php:268
112
  msgid "SSE"
113
  msgstr ""
114
 
115
- #: awesome-weather.php:268
116
  msgid "S"
117
  msgstr ""
118
 
119
- #: awesome-weather.php:268
120
  msgid "SSW"
121
  msgstr ""
122
 
123
- #: awesome-weather.php:268
124
  msgid "SW"
125
  msgstr ""
126
 
127
- #: awesome-weather.php:268
128
  msgid "WSW"
129
  msgstr ""
130
 
131
- #: awesome-weather.php:268
132
  msgid "W"
133
  msgstr ""
134
 
135
- #: awesome-weather.php:268
136
  msgid "WNW"
137
  msgstr ""
138
 
139
- #: awesome-weather.php:268
140
  msgid "NW"
141
  msgstr ""
142
 
143
- #: awesome-weather.php:268
144
  msgid "NNW"
145
  msgstr ""
146
 
147
- #: awesome-weather.php:364
148
- msgid "m/s"
149
  msgstr ""
150
 
151
  #: awesome-weather.php:369
 
 
 
 
152
  msgid "humidity:"
153
  msgstr ""
154
 
155
- #: awesome-weather.php:370
156
  msgid "wind:"
157
  msgstr ""
158
 
159
- #: awesome-weather.php:371
160
  msgid "H"
161
  msgstr ""
162
 
163
- #: awesome-weather.php:371
164
  msgid "L"
165
  msgstr ""
166
 
167
- #: awesome-weather.php:387
168
  msgid "Sun"
169
  msgstr ""
170
 
171
- #: awesome-weather.php:387
172
  msgid "Mon"
173
  msgstr ""
174
 
175
- #: awesome-weather.php:387
176
  msgid "Tue"
177
  msgstr ""
178
 
179
- #: awesome-weather.php:387
180
  msgid "Wed"
181
  msgstr ""
182
 
183
- #: awesome-weather.php:387
184
  msgid "Thu"
185
  msgstr ""
186
 
187
- #: awesome-weather.php:387
188
  msgid "Fri"
189
  msgstr ""
190
 
191
- #: awesome-weather.php:387
192
  msgid "Sat"
193
  msgstr ""
194
 
195
- #: awesome-weather.php:405
196
  msgid "extended forecast"
197
  msgstr ""
198
 
199
- #: awesome-weather.php:428
200
  msgid "No weather information available"
201
  msgstr ""
202
 
203
- #: awesome-weather.php:457
204
  msgid "No city found in OpenWeatherMap."
205
  msgstr ""
206
 
207
- #: awesome-weather.php:458
208
  msgid "Only one location found. The ID has been set automatically above."
209
  msgstr ""
210
 
211
- #: awesome-weather.php:459
212
  msgid "Please confirm your city: &nbsp;"
213
  msgstr ""
214
 
215
- #: awesome-weather.php:547
216
  msgid "As of October 2015, OpenWeatherMap requires an APP ID key to access their weather data."
217
  msgstr ""
218
 
219
- #: awesome-weather.php:551
220
  msgid "and add it to the new settings page."
221
  msgstr ""
222
 
223
- #: awesome-weather.php:558
224
  msgid "Search for Your Location:"
225
  msgstr ""
226
 
227
- #: awesome-weather.php:559
228
  msgid "(i.e: London,UK or New York City,NY)"
229
  msgstr ""
230
 
231
- #: awesome-weather.php:566
232
  msgid "OpenWeatherMap City ID:"
233
  msgstr ""
234
 
235
- #: awesome-weather.php:567
236
  msgid "(use the field above to find the ID for your city)"
237
  msgstr ""
238
 
239
- #: awesome-weather.php:580
240
  msgid "Override Title:"
241
  msgstr ""
242
 
243
- #: awesome-weather.php:585
244
  msgid "Units:"
245
  msgstr ""
246
 
247
- #: awesome-weather.php:591
248
  msgid "Size:"
249
  msgstr ""
250
 
251
- #: awesome-weather.php:600
252
  msgid "Forecast:"
253
  msgstr ""
254
 
255
- #: awesome-weather.php:612
256
  msgid "Background Image:"
257
  msgstr ""
258
 
259
- #: awesome-weather.php:618
260
  msgid "Use Different Background Images Based on Weather"
261
  msgstr ""
262
 
263
- #: awesome-weather.php:622
264
  msgid "Custom Background Color:"
265
  msgstr ""
266
 
267
- #: awesome-weather.php:623
268
  msgid "overrides color changing"
269
  msgstr ""
270
 
271
- #: awesome-weather.php:629
 
 
 
 
272
  msgid "Hide Stats"
273
  msgstr ""
274
 
275
- #: awesome-weather.php:635
276
  msgid "Link to OpenWeatherMap"
277
  msgstr ""
278
 
279
- #: awesome-weather.php:639
280
  msgid "Widget Title: (optional)"
281
  msgstr ""
282
  #. Plugin Name of the plugin/theme
2
  # This file is distributed under the same license as the Awesome Weather Widget package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Awesome Weather Widget 1.5.4\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/awesome-weather\n"
7
+ "POT-Creation-Date: 2015-12-08 20:44:32+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
52
  msgid "As of October 2015, OpenWeatherMaps requires this key to access their weather data."
53
  msgstr ""
54
 
55
+ #: awesome-weather-settings.php:108 awesome-weather.php:571
56
  msgid "Get your APPID"
57
  msgstr ""
58
 
72
  msgid "What should the plugin do when there is an error?"
73
  msgstr ""
74
 
75
+ #: awesome-weather.php:83
76
  msgid "C"
77
  msgstr ""
78
 
79
+ #: awesome-weather.php:83
80
  msgid "F"
81
  msgstr ""
82
 
83
+ #: awesome-weather.php:275
84
  msgid "N"
85
  msgstr ""
86
 
87
+ #: awesome-weather.php:275
88
  msgid "NNE"
89
  msgstr ""
90
 
91
+ #: awesome-weather.php:275
92
  msgid "NE"
93
  msgstr ""
94
 
95
+ #: awesome-weather.php:275
96
  msgid "ENE"
97
  msgstr ""
98
 
99
+ #: awesome-weather.php:275
100
  msgid "E"
101
  msgstr ""
102
 
103
+ #: awesome-weather.php:275
104
  msgid "ESE"
105
  msgstr ""
106
 
107
+ #: awesome-weather.php:275
108
  msgid "SE"
109
  msgstr ""
110
 
111
+ #: awesome-weather.php:275
112
  msgid "SSE"
113
  msgstr ""
114
 
115
+ #: awesome-weather.php:275
116
  msgid "S"
117
  msgstr ""
118
 
119
+ #: awesome-weather.php:275
120
  msgid "SSW"
121
  msgstr ""
122
 
123
+ #: awesome-weather.php:275
124
  msgid "SW"
125
  msgstr ""
126
 
127
+ #: awesome-weather.php:275
128
  msgid "WSW"
129
  msgstr ""
130
 
131
+ #: awesome-weather.php:275
132
  msgid "W"
133
  msgstr ""
134
 
135
+ #: awesome-weather.php:275
136
  msgid "WNW"
137
  msgstr ""
138
 
139
+ #: awesome-weather.php:275
140
  msgid "NW"
141
  msgstr ""
142
 
143
+ #: awesome-weather.php:275
144
  msgid "NNW"
145
  msgstr ""
146
 
147
+ #: awesome-weather.php:369
148
+ msgid "mph"
149
  msgstr ""
150
 
151
  #: awesome-weather.php:369
152
+ msgid "m/s"
153
+ msgstr ""
154
+
155
+ #: awesome-weather.php:376
156
  msgid "humidity:"
157
  msgstr ""
158
 
159
+ #: awesome-weather.php:377
160
  msgid "wind:"
161
  msgstr ""
162
 
163
+ #: awesome-weather.php:378
164
  msgid "H"
165
  msgstr ""
166
 
167
+ #: awesome-weather.php:378
168
  msgid "L"
169
  msgstr ""
170
 
171
+ #: awesome-weather.php:394
172
  msgid "Sun"
173
  msgstr ""
174
 
175
+ #: awesome-weather.php:394
176
  msgid "Mon"
177
  msgstr ""
178
 
179
+ #: awesome-weather.php:394
180
  msgid "Tue"
181
  msgstr ""
182
 
183
+ #: awesome-weather.php:394
184
  msgid "Wed"
185
  msgstr ""
186
 
187
+ #: awesome-weather.php:394
188
  msgid "Thu"
189
  msgstr ""
190
 
191
+ #: awesome-weather.php:394
192
  msgid "Fri"
193
  msgstr ""
194
 
195
+ #: awesome-weather.php:394
196
  msgid "Sat"
197
  msgstr ""
198
 
199
+ #: awesome-weather.php:412
200
  msgid "extended forecast"
201
  msgstr ""
202
 
203
+ #: awesome-weather.php:435
204
  msgid "No weather information available"
205
  msgstr ""
206
 
207
+ #: awesome-weather.php:464
208
  msgid "No city found in OpenWeatherMap."
209
  msgstr ""
210
 
211
+ #: awesome-weather.php:465
212
  msgid "Only one location found. The ID has been set automatically above."
213
  msgstr ""
214
 
215
+ #: awesome-weather.php:466
216
  msgid "Please confirm your city: &nbsp;"
217
  msgstr ""
218
 
219
+ #: awesome-weather.php:569
220
  msgid "As of October 2015, OpenWeatherMap requires an APP ID key to access their weather data."
221
  msgstr ""
222
 
223
+ #: awesome-weather.php:573
224
  msgid "and add it to the new settings page."
225
  msgstr ""
226
 
227
+ #: awesome-weather.php:580
228
  msgid "Search for Your Location:"
229
  msgstr ""
230
 
231
+ #: awesome-weather.php:581
232
  msgid "(i.e: London,UK or New York City,NY)"
233
  msgstr ""
234
 
235
+ #: awesome-weather.php:588
236
  msgid "OpenWeatherMap City ID:"
237
  msgstr ""
238
 
239
+ #: awesome-weather.php:589
240
  msgid "(use the field above to find the ID for your city)"
241
  msgstr ""
242
 
243
+ #: awesome-weather.php:602
244
  msgid "Override Title:"
245
  msgstr ""
246
 
247
+ #: awesome-weather.php:607
248
  msgid "Units:"
249
  msgstr ""
250
 
251
+ #: awesome-weather.php:621
252
  msgid "Size:"
253
  msgstr ""
254
 
255
+ #: awesome-weather.php:630
256
  msgid "Forecast:"
257
  msgstr ""
258
 
259
+ #: awesome-weather.php:644
260
  msgid "Background Image:"
261
  msgstr ""
262
 
263
+ #: awesome-weather.php:650
264
  msgid "Use Different Background Images Based on Weather"
265
  msgstr ""
266
 
267
+ #: awesome-weather.php:654
268
  msgid "Custom Background Color:"
269
  msgstr ""
270
 
271
+ #: awesome-weather.php:655
272
  msgid "overrides color changing"
273
  msgstr ""
274
 
275
+ #: awesome-weather.php:660
276
+ msgid "Text Color"
277
+ msgstr ""
278
+
279
+ #: awesome-weather.php:679
280
  msgid "Hide Stats"
281
  msgstr ""
282
 
283
+ #: awesome-weather.php:685
284
  msgid "Link to OpenWeatherMap"
285
  msgstr ""
286
 
287
+ #: awesome-weather.php:689
288
  msgid "Widget Title: (optional)"
289
  msgstr ""
290
  #. Plugin Name of the plugin/theme
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: halgatewood
3
  Donate link: http://halgatewood.com/donate/
4
  Tags: widgets, sidebar, shortcode, openweathermap, weather, weather widget, forecast, global, temp, local weather,local forecast
5
  Requires at least: 3.5
6
- Tested up to: 4.3
7
  Stable tag: trunk
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -79,6 +79,13 @@ Use the built in widget with all of its marvelous settings or add it to a page o
79
 
80
  == Upgrade Notice ==
81
 
 
 
 
 
 
 
 
82
  = 1.5.3.1 =
83
  * Added an error message in the admin widget page to let users know they need an APPID
84
 
@@ -166,8 +173,18 @@ Removed debugging code, sorry!
166
  = 1.0.1 =
167
  Changed API endpoints. Might not find weather without update.
168
 
 
 
 
169
  == Changelog ==
170
 
 
 
 
 
 
 
 
171
  = 1.5.3.1 =
172
  * Added an error message in the admin widget page to let users know they need an APPID
173
 
3
  Donate link: http://halgatewood.com/donate/
4
  Tags: widgets, sidebar, shortcode, openweathermap, weather, weather widget, forecast, global, temp, local weather,local forecast
5
  Requires at least: 3.5
6
+ Tested up to: 4.4
7
  Stable tag: trunk
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
79
 
80
  == Upgrade Notice ==
81
 
82
+ = 1.5.4 =
83
+ * Preset background images added for the 'Use Different Background Images Based on Weather' option
84
+ * Color picker to choose a font color for the whole widget
85
+ * CSS whitespace: no-wrap on the little degree symbols
86
+ * Fixed wind speed to mph for 'Imperial' and m/s for Celsius as per the OpenWeatherMap weather data section
87
+ * Updated .pot file
88
+
89
  = 1.5.3.1 =
90
  * Added an error message in the admin widget page to let users know they need an APPID
91
 
173
  = 1.0.1 =
174
  Changed API endpoints. Might not find weather without update.
175
 
176
+
177
+
178
+
179
  == Changelog ==
180
 
181
+ = 1.5.4 =
182
+ * Preset background images added for the 'Use Different Background Images Based on Weather' option
183
+ * Color picker to choose a font color for the whole widget
184
+ * CSS whitespace: no-wrap on the little degree symbols
185
+ * Fixed wind speed to mph for 'Imperial' and m/s for Celsius as per the OpenWeatherMap weather data section
186
+ * Updated .pot file
187
+
188
  = 1.5.3.1 =
189
  * Added an error message in the admin widget page to let users know they need an APPID
190