Awesome Weather Widget - Version 1.5.3.1

Version Description

  • Added an error message in the admin widget page to let users know they need an APPID
Download this release

Release Info

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

Code changes from version 1.5.3 to 1.5.3.1

awesome-weather.css CHANGED
@@ -45,7 +45,7 @@
45
  font-weight: 300;
46
  }
47
 
48
- .awesome-weather-current-temp sup { font-size: 24px; top: -1.3em; padding-left: 3px; }
49
 
50
  .awesome-weather-todays-stats {
51
  float: right;
@@ -87,9 +87,6 @@
87
  #sidebar .awe_wide .awesome-weather-current-temp,
88
  #secondary .awe_wide .awesome-weather-current-temp { font-size: 40px; }
89
 
90
- #sidebar .awe_wide .awesome-weather-current-temp sup,
91
- #secondary .awe_wide .awesome-weather-current-temp sup { font-size: 18px; }
92
-
93
  #sidebar .awe_wide .awesome-weather-todays-stats,
94
  #secondary .awe_wide .awesome-weather-todays-stats { font-size: 12px; }
95
 
45
  font-weight: 300;
46
  }
47
 
48
+ .awesome-weather-current-temp sup { font-size: 24px; padding-left: 3px; }
49
 
50
  .awesome-weather-todays-stats {
51
  float: right;
87
  #sidebar .awe_wide .awesome-weather-current-temp,
88
  #secondary .awe_wide .awesome-weather-current-temp { font-size: 40px; }
89
 
 
 
 
90
  #sidebar .awe_wide .awesome-weather-todays-stats,
91
  #secondary .awe_wide .awesome-weather-todays-stats { font-size: 12px; }
92
 
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
9
  Text Domain: awesome-weather
10
  Domain Path: /languages
11
 
@@ -537,7 +537,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
  <p>
542
  <label for="<?php echo $this->get_field_id('location'); ?>">
543
  <?php _e('Search for Your Location:', 'awesome-weather'); ?><br />
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
 
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
547
+ echo __("As of October 2015, OpenWeatherMap requires an APP ID key to access their weather data.", 'awesome-weather');
548
+ echo " <a href='http://openweathermap.org/appid' target='_blank' style='color: #fff;'>";
549
+ echo __('Get your APPID', 'awesome-weather');
550
+ echo "</a> ";
551
+ echo __("and add it to the new settings page.");
552
+ ?>
553
+ </div>
554
+ <?php } ?>
555
+
556
  <p>
557
  <label for="<?php echo $this->get_field_id('location'); ?>">
558
  <?php _e('Search for Your Location:', 'awesome-weather'); ?><br />
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\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/awesome-weather\n"
7
- "POT-Creation-Date: 2015-10-12 15:00:57+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
56
  msgid "Get your APPID"
57
  msgstr ""
58
 
@@ -212,63 +212,71 @@ msgstr ""
212
  msgid "Please confirm your city: &nbsp;"
213
  msgstr ""
214
 
215
- #: awesome-weather.php:543
 
 
 
 
 
 
 
 
216
  msgid "Search for Your Location:"
217
  msgstr ""
218
 
219
- #: awesome-weather.php:544
220
  msgid "(i.e: London,UK or New York City,NY)"
221
  msgstr ""
222
 
223
- #: awesome-weather.php:551
224
  msgid "OpenWeatherMap City ID:"
225
  msgstr ""
226
 
227
- #: awesome-weather.php:552
228
  msgid "(use the field above to find the ID for your city)"
229
  msgstr ""
230
 
231
- #: awesome-weather.php:565
232
  msgid "Override Title:"
233
  msgstr ""
234
 
235
- #: awesome-weather.php:570
236
  msgid "Units:"
237
  msgstr ""
238
 
239
- #: awesome-weather.php:576
240
  msgid "Size:"
241
  msgstr ""
242
 
243
- #: awesome-weather.php:585
244
  msgid "Forecast:"
245
  msgstr ""
246
 
247
- #: awesome-weather.php:597
248
  msgid "Background Image:"
249
  msgstr ""
250
 
251
- #: awesome-weather.php:603
252
  msgid "Use Different Background Images Based on Weather"
253
  msgstr ""
254
 
255
- #: awesome-weather.php:607
256
  msgid "Custom Background Color:"
257
  msgstr ""
258
 
259
- #: awesome-weather.php:608
260
  msgid "overrides color changing"
261
  msgstr ""
262
 
263
- #: awesome-weather.php:614
264
  msgid "Hide Stats"
265
  msgstr ""
266
 
267
- #: awesome-weather.php:620
268
  msgid "Link to OpenWeatherMap"
269
  msgstr ""
270
 
271
- #: awesome-weather.php:624
272
  msgid "Widget Title: (optional)"
273
  msgstr ""
274
  #. 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.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
  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
 
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
readme.txt CHANGED
@@ -15,8 +15,12 @@ Finally beautiful weather widgets for your beautiful site.
15
  >[Pro Version](https://halgatewood.com/downloads/awesome-weather-widget-pro/) available. Weather icons, New Layouts and Custom Templates, Weather by Yahoo! (no API key required), User Location Detection and more!
16
 
17
  This plugin allows you to easily add super clean (and awesome) weather widgets to your site.
 
18
  The weather data is provided for free by http://openweathermap.org and as of October 2015, they require an [API Key](http://openweathermap.org/appid#get) to access their weather.
19
- Once you have the API Key you can simply add it in 'Settings' -> 'Awesome Weather' and you're ready to go.
 
 
 
20
 
21
  Use the built in widget with all of its marvelous settings or add it to a page or theme with the shortcode: (all settings shown)
22
 
@@ -75,6 +79,9 @@ Use the built in widget with all of its marvelous settings or add it to a page o
75
 
76
  == Upgrade Notice ==
77
 
 
 
 
78
  = 1.5.3 =
79
  * Added spot for API key in 'Settings' -> 'Awesome Weather'
80
  * Added new setting to decide how to show error messages.
@@ -161,6 +168,9 @@ Changed API endpoints. Might not find weather without update.
161
 
162
  == Changelog ==
163
 
 
 
 
164
  = 1.5.3 =
165
  * Added spot for API key in 'Settings' -> 'Awesome Weather'
166
  * Added new setting to decide how to show error messages.
15
  >[Pro Version](https://halgatewood.com/downloads/awesome-weather-widget-pro/) available. Weather icons, New Layouts and Custom Templates, Weather by Yahoo! (no API key required), User Location Detection and more!
16
 
17
  This plugin allows you to easily add super clean (and awesome) weather widgets to your site.
18
+
19
  The weather data is provided for free by http://openweathermap.org and as of October 2015, they require an [API Key](http://openweathermap.org/appid#get) to access their weather.
20
+ Once you have the API Key you can simply add it in 'Settings' -> 'Awesome Weather' and you're ready to go.
21
+
22
+ [View the API Key Help Document](https://halgatewood.com/docs/plugins/awesome-weather-widget/register-for-an-openweathermap-api-key-appid)
23
+
24
 
25
  Use the built in widget with all of its marvelous settings or add it to a page or theme with the shortcode: (all settings shown)
26
 
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
+
85
  = 1.5.3 =
86
  * Added spot for API key in 'Settings' -> 'Awesome Weather'
87
  * Added new setting to decide how to show error messages.
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
+
174
  = 1.5.3 =
175
  * Added spot for API key in 'Settings' -> 'Awesome Weather'
176
  * Added new setting to decide how to show error messages.