Version Description
- Language fixes and improvements
- OpenWeatherMap attribution added as per licensing requirements
- High and Low temperature fix
Download this release
Release Info
Developer | halgatewood |
Plugin | Awesome Weather Widget |
Version | 1.5.8 |
Comparing to | |
See all releases |
Code changes from version 1.5.7 to 1.5.8
- awesome-weather.css +1 -0
- awesome-weather.php +37 -24
- languages/awesome-weather.pot +323 -308
- readme.txt +15 -4
awesome-weather.css
CHANGED
@@ -95,3 +95,4 @@
|
|
95 |
|
96 |
/* ERROR */
|
97 |
div.awesome-weather-error { color: #ed7469; font-weight: bold; display: block; padding: 10px; text-align: center; border: solid 1px #ed7469; text-transform: uppercase; }
|
|
95 |
|
96 |
/* ERROR */
|
97 |
div.awesome-weather-error { color: #ed7469; font-weight: bold; display: block; padding: 10px; text-align: center; border: solid 1px #ed7469; text-transform: uppercase; }
|
98 |
+
.awesome-weather-attribution { text-align: center; font-size: 8px; font-weight: bold; font-family: sans-serif; padding: 5px; }
|
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.
|
9 |
Text Domain: awesome-weather
|
10 |
Domain Path: /languages
|
11 |
|
@@ -66,6 +66,8 @@ function awesome_weather_logic( $atts )
|
|
66 |
{
|
67 |
global $awesome_weather_sizes;
|
68 |
|
|
|
|
|
69 |
$rtn = "";
|
70 |
$weather_data = array();
|
71 |
$location = isset($atts['location']) ? $atts['location'] : false;
|
@@ -101,7 +103,7 @@ function awesome_weather_logic( $atts )
|
|
101 |
|
102 |
|
103 |
// DISPLAY SYMBOL
|
104 |
-
$units_display_symbol = apply_filters('awesome_weather_units_display',
|
105 |
if( isset($atts['units_display_symbol']) ) $units_display_symbol = $atts['units_display_symbol'];
|
106 |
|
107 |
|
@@ -179,26 +181,23 @@ function awesome_weather_logic( $atts )
|
|
179 |
|
180 |
|
181 |
// FORECAST
|
182 |
-
|
|
|
|
|
|
|
183 |
{
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
return awesome_weather_error( $forecast_data->message );
|
197 |
-
}
|
198 |
-
else
|
199 |
-
{
|
200 |
-
$weather_data['forecast'] = $forecast_data;
|
201 |
-
}
|
202 |
}
|
203 |
|
204 |
if($weather_data['now'] OR $weather_data['forecast'])
|
@@ -217,8 +216,20 @@ function awesome_weather_logic( $atts )
|
|
217 |
// TODAYS TEMPS
|
218 |
$today = $weather_data['now'];
|
219 |
$today_temp = isset($today->main->temp) ? round($today->main->temp) : false;
|
220 |
-
|
221 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
222 |
|
223 |
|
224 |
// TEXT COLOR
|
@@ -371,11 +382,12 @@ function awesome_weather_logic( $atts )
|
|
371 |
{
|
372 |
$rtn .= "<div class=\"awesome-weather-forecast awe_days_{$days_to_show} awecf\">";
|
373 |
$c = 1;
|
374 |
-
$dt_today = date( 'Ymd', current_time( 'timestamp', 0 ) );
|
375 |
$forecast = $weather_data['forecast'];
|
376 |
$days_to_show = (int) $days_to_show;
|
377 |
$days_of_week = apply_filters( 'awesome_weather_days_of_week', array( __('Sun' ,'awesome-weather'), __('Mon' ,'awesome-weather'), __('Tue' ,'awesome-weather'), __('Wed' ,'awesome-weather'), __('Thu' ,'awesome-weather'), __('Fri' ,'awesome-weather'), __('Sat' ,'awesome-weather') ) );
|
378 |
|
|
|
|
|
379 |
foreach( (array) $forecast->list as $forecast )
|
380 |
{
|
381 |
if( $dt_today >= date('Ymd', $forecast->dt)) continue;
|
@@ -408,6 +420,7 @@ function awesome_weather_logic( $atts )
|
|
408 |
}
|
409 |
|
410 |
$rtn .= "</div> <!-- /.awesome-weather-wrap -->";
|
|
|
411 |
return $rtn;
|
412 |
}
|
413 |
|
5 |
Description: A weather widget that actually looks cool
|
6 |
Author: Hal Gatewood
|
7 |
Author URI: https://www.halgatewood.com
|
8 |
+
Version: 1.5.8
|
9 |
Text Domain: awesome-weather
|
10 |
Domain Path: /languages
|
11 |
|
66 |
{
|
67 |
global $awesome_weather_sizes;
|
68 |
|
69 |
+
$dt_today = date( 'Ymd', current_time( 'timestamp', 0 ) );
|
70 |
+
|
71 |
$rtn = "";
|
72 |
$weather_data = array();
|
73 |
$location = isset($atts['location']) ? $atts['location'] : false;
|
103 |
|
104 |
|
105 |
// DISPLAY SYMBOL
|
106 |
+
$units_display_symbol = apply_filters('awesome_weather_units_display', '°' );
|
107 |
if( isset($atts['units_display_symbol']) ) $units_display_symbol = $atts['units_display_symbol'];
|
108 |
|
109 |
|
181 |
|
182 |
|
183 |
// FORECAST
|
184 |
+
$forecast_ping = "http://api.openweathermap.org/data/2.5/forecast/daily?" . $api_query . "&lang=" . $locale . "&units=" . $units ."&cnt=7" . $appid_string;
|
185 |
+
$forecast_ping_get = wp_remote_get( $forecast_ping );
|
186 |
+
|
187 |
+
if( is_wp_error( $forecast_ping_get ) )
|
188 |
{
|
189 |
+
return awesome_weather_error( $forecast_ping_get->get_error_message() );
|
190 |
+
}
|
191 |
+
|
192 |
+
$forecast_data = json_decode( $forecast_ping_get['body'] );
|
193 |
+
|
194 |
+
if( isset($forecast_data->cod) AND $forecast_data->cod == 404 )
|
195 |
+
{
|
196 |
+
return awesome_weather_error( $forecast_data->message );
|
197 |
+
}
|
198 |
+
else
|
199 |
+
{
|
200 |
+
$weather_data['forecast'] = $forecast_data;
|
|
|
|
|
|
|
|
|
|
|
|
|
201 |
}
|
202 |
|
203 |
if($weather_data['now'] OR $weather_data['forecast'])
|
216 |
// TODAYS TEMPS
|
217 |
$today = $weather_data['now'];
|
218 |
$today_temp = isset($today->main->temp) ? round($today->main->temp) : false;
|
219 |
+
|
220 |
+
|
221 |
+
// GET TODAY FROM FORECAST IF AVAILABLE
|
222 |
+
if( isset($weather_data['forecast']) AND isset($weather_data['forecast']->list) AND isset($weather_data['forecast']->list[0]) )
|
223 |
+
{
|
224 |
+
$forecast_today = $weather_data['forecast']->list[0];
|
225 |
+
$today_high = round($forecast_today->temp->max);
|
226 |
+
$today_low = round($forecast_today->temp->min);
|
227 |
+
}
|
228 |
+
else
|
229 |
+
{
|
230 |
+
$today_high = isset($today->main->temp_max) ? round($today->main->temp_max) : false;
|
231 |
+
$today_low = isset($today->main->temp_min) ? round($today->main->temp_min) : false;
|
232 |
+
}
|
233 |
|
234 |
|
235 |
// TEXT COLOR
|
382 |
{
|
383 |
$rtn .= "<div class=\"awesome-weather-forecast awe_days_{$days_to_show} awecf\">";
|
384 |
$c = 1;
|
|
|
385 |
$forecast = $weather_data['forecast'];
|
386 |
$days_to_show = (int) $days_to_show;
|
387 |
$days_of_week = apply_filters( 'awesome_weather_days_of_week', array( __('Sun' ,'awesome-weather'), __('Mon' ,'awesome-weather'), __('Tue' ,'awesome-weather'), __('Wed' ,'awesome-weather'), __('Thu' ,'awesome-weather'), __('Fri' ,'awesome-weather'), __('Sat' ,'awesome-weather') ) );
|
388 |
|
389 |
+
if(!isset($forecast->list)) $forecast->list = array();
|
390 |
+
|
391 |
foreach( (array) $forecast->list as $forecast )
|
392 |
{
|
393 |
if( $dt_today >= date('Ymd', $forecast->dt)) continue;
|
420 |
}
|
421 |
|
422 |
$rtn .= "</div> <!-- /.awesome-weather-wrap -->";
|
423 |
+
$rtn .= "<div class=\"awesome-weather-attribution\">" . __('Weather from', 'awesome-weather') . " OpenWeatherMap</div>";
|
424 |
return $rtn;
|
425 |
}
|
426 |
|
languages/awesome-weather.pot
CHANGED
@@ -1,308 +1,323 @@
|
|
1 |
-
#
|
2 |
-
|
3 |
-
msgid ""
|
4 |
-
msgstr ""
|
5 |
-
"Project-Id-Version: Awesome Weather Widget 1.5.7\n"
|
6 |
-
"Report-Msgid-Bugs-To: http://wordpress.org/tag/awesome-weather\n"
|
7 |
-
"POT-Creation-Date: 2016-01-09 07:34:17+00:00\n"
|
8 |
-
"
|
9 |
-
"
|
10 |
-
"
|
11 |
-
"
|
12 |
-
"
|
13 |
-
"
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
#: awesome-weather-settings.php:
|
28 |
-
msgid "
|
29 |
-
msgstr ""
|
30 |
-
|
31 |
-
#: awesome-weather-settings.php:
|
32 |
-
msgid "
|
33 |
-
msgstr ""
|
34 |
-
|
35 |
-
#: awesome-weather-settings.php:
|
36 |
-
msgid "
|
37 |
-
msgstr ""
|
38 |
-
|
39 |
-
#: awesome-weather-settings.php:
|
40 |
-
msgid "
|
41 |
-
msgstr ""
|
42 |
-
|
43 |
-
#: awesome-weather-settings.php:
|
44 |
-
msgid "
|
45 |
-
msgstr ""
|
46 |
-
|
47 |
-
#: awesome-weather-settings.php:
|
48 |
-
msgid "
|
49 |
-
msgstr ""
|
50 |
-
|
51 |
-
#: awesome-weather-settings.php:
|
52 |
-
msgid "
|
53 |
-
msgstr ""
|
54 |
-
|
55 |
-
#: awesome-weather-settings.php:
|
56 |
-
msgid "
|
57 |
-
msgstr ""
|
58 |
-
|
59 |
-
#: awesome-weather-settings.php:
|
60 |
-
msgid "
|
61 |
-
msgstr ""
|
62 |
-
|
63 |
-
#: awesome-weather-settings.php:
|
64 |
-
msgid "
|
65 |
-
msgstr ""
|
66 |
-
|
67 |
-
#: awesome-weather-settings.php:
|
68 |
-
msgid "
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
-
|
237 |
-
|
238 |
-
|
239 |
-
|
240 |
-
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
-
|
248 |
-
|
249 |
-
|
250 |
-
|
251 |
-
|
252 |
-
|
253 |
-
|
254 |
-
|
255 |
-
|
256 |
-
|
257 |
-
|
258 |
-
|
259 |
-
|
260 |
-
|
261 |
-
|
262 |
-
|
263 |
-
|
264 |
-
|
265 |
-
|
266 |
-
|
267 |
-
|
268 |
-
|
269 |
-
|
270 |
-
|
271 |
-
|
272 |
-
|
273 |
-
|
274 |
-
|
275 |
-
|
276 |
-
|
277 |
-
|
278 |
-
|
279 |
-
|
280 |
-
|
281 |
-
|
282 |
-
|
283 |
-
|
284 |
-
|
285 |
-
|
286 |
-
|
287 |
-
|
288 |
-
|
289 |
-
|
290 |
-
|
291 |
-
|
292 |
-
|
293 |
-
|
294 |
-
|
295 |
-
|
296 |
-
|
297 |
-
|
298 |
-
|
299 |
-
|
300 |
-
|
301 |
-
|
302 |
-
|
303 |
-
|
304 |
-
|
305 |
-
|
306 |
-
|
307 |
-
|
308 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Loco Gettext template
|
2 |
+
#, fuzzy
|
3 |
+
msgid ""
|
4 |
+
msgstr ""
|
5 |
+
"Project-Id-Version: Awesome Weather Widget 1.5.7\n"
|
6 |
+
"Report-Msgid-Bugs-To: http://wordpress.org/tag/awesome-weather\n"
|
7 |
+
"POT-Creation-Date: 2016-01-09 07:34:17+00:00\n"
|
8 |
+
"POT-Revision-Date: Tue Feb 09 2016 12:16:40 GMT-0600 (CST)\n"
|
9 |
+
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
10 |
+
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
11 |
+
"Language-Team: LANGUAGE <LL@li.org>\n"
|
12 |
+
"Language: \n"
|
13 |
+
"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION\n"
|
14 |
+
"MIME-Version: 1.0\n"
|
15 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
16 |
+
"Content-Transfer-Encoding: 8bit\n"
|
17 |
+
"X-Poedit-SourceCharset: UTF-8\n"
|
18 |
+
"X-Poedit-Basepath: .\n"
|
19 |
+
"X-Poedit-SearchPath-0: ..\n"
|
20 |
+
"X-Poedit-KeywordsList: _:1;gettext:1;dgettext:2;ngettext:1,2;dngettext:2,3;"
|
21 |
+
"__:1;_e:1;_c:1;_n:1,2;_n_noop:1,2;_nc:1,2;__ngettext:1,2;__ngettext_noop:1,2;"
|
22 |
+
"_x:1,2c;_ex:1,2c;_nx:1,2,4c;_nx_noop:1,2,3c;_n_js:1,2;_nx_js:1,2,3c;"
|
23 |
+
"esc_attr__:1;esc_html__:1;esc_attr_e:1;esc_html_e:1;esc_attr_x:1,2c;"
|
24 |
+
"esc_html_x:1,2c;comments_number_link:2,3;t:1;st:1;trans:1;transChoice:1,2\n"
|
25 |
+
"X-Generator: Loco - https://localise.biz/"
|
26 |
+
|
27 |
+
#: ../awesome-weather-settings.php:13
|
28 |
+
msgid "Awesome Weather Widget"
|
29 |
+
msgstr ""
|
30 |
+
|
31 |
+
#: ../awesome-weather-settings.php:17
|
32 |
+
msgid "Weather Widget Cache Cleared"
|
33 |
+
msgstr ""
|
34 |
+
|
35 |
+
#: ../awesome-weather-settings.php:28
|
36 |
+
msgid "Clear all Awesome Weather Widget Cache"
|
37 |
+
msgstr ""
|
38 |
+
|
39 |
+
#: ../awesome-weather-settings.php:42
|
40 |
+
msgid "Settings"
|
41 |
+
msgstr ""
|
42 |
+
|
43 |
+
#: ../awesome-weather-settings.php:46
|
44 |
+
msgid "API Key Required"
|
45 |
+
msgstr ""
|
46 |
+
|
47 |
+
#: ../awesome-weather-settings.php:51
|
48 |
+
msgid "Donate"
|
49 |
+
msgstr ""
|
50 |
+
|
51 |
+
#: ../awesome-weather-settings.php:54
|
52 |
+
msgid "Upgrade"
|
53 |
+
msgstr ""
|
54 |
+
|
55 |
+
#: ../awesome-weather-settings.php:69
|
56 |
+
msgid "OpenWeatherMaps APPID"
|
57 |
+
msgstr ""
|
58 |
+
|
59 |
+
#: ../awesome-weather-settings.php:70
|
60 |
+
msgid "Error Handling"
|
61 |
+
msgstr ""
|
62 |
+
|
63 |
+
#: ../awesome-weather-settings.php:106
|
64 |
+
msgid "Defined in wp-config"
|
65 |
+
msgstr ""
|
66 |
+
|
67 |
+
#: ../awesome-weather-settings.php:113 ../widget.php:97
|
68 |
+
msgid ""
|
69 |
+
"As of October 2015, OpenWeatherMap requires an APP ID key to access their "
|
70 |
+
"weather data."
|
71 |
+
msgstr ""
|
72 |
+
|
73 |
+
#: ../awesome-weather-settings.php:115 ../widget.php:99
|
74 |
+
msgid "Get your APPID"
|
75 |
+
msgstr ""
|
76 |
+
|
77 |
+
#: ../awesome-weather-settings.php:126
|
78 |
+
msgid "Hidden in Source"
|
79 |
+
msgstr ""
|
80 |
+
|
81 |
+
#: ../awesome-weather-settings.php:127
|
82 |
+
msgid "Display if Admin"
|
83 |
+
msgstr ""
|
84 |
+
|
85 |
+
#: ../awesome-weather-settings.php:128
|
86 |
+
msgid "Display for Anyone"
|
87 |
+
msgstr ""
|
88 |
+
|
89 |
+
#: ../awesome-weather-settings.php:131
|
90 |
+
msgid "What should the plugin do when there is an error?"
|
91 |
+
msgstr ""
|
92 |
+
|
93 |
+
#. Plugin URI of the plugin/theme
|
94 |
+
msgid "https://halgatewood.com/awesome-weather"
|
95 |
+
msgstr ""
|
96 |
+
|
97 |
+
#. Description of the plugin/theme
|
98 |
+
msgid "A weather widget that actually looks cool"
|
99 |
+
msgstr ""
|
100 |
+
|
101 |
+
#. Author of the plugin/theme
|
102 |
+
msgid "Hal Gatewood"
|
103 |
+
msgstr ""
|
104 |
+
|
105 |
+
#. Author URI of the plugin/theme
|
106 |
+
msgid "https://www.halgatewood.com"
|
107 |
+
msgstr ""
|
108 |
+
|
109 |
+
#: ../awesome-weather.php:75
|
110 |
+
msgid "C"
|
111 |
+
msgstr ""
|
112 |
+
|
113 |
+
#: ../awesome-weather.php:75
|
114 |
+
msgid "F"
|
115 |
+
msgstr ""
|
116 |
+
|
117 |
+
#: ../awesome-weather.php:280
|
118 |
+
msgid "N"
|
119 |
+
msgstr ""
|
120 |
+
|
121 |
+
#: ../awesome-weather.php:280
|
122 |
+
msgid "NNE"
|
123 |
+
msgstr ""
|
124 |
+
|
125 |
+
#: ../awesome-weather.php:280
|
126 |
+
msgid "NE"
|
127 |
+
msgstr ""
|
128 |
+
|
129 |
+
#: ../awesome-weather.php:280
|
130 |
+
msgid "ENE"
|
131 |
+
msgstr ""
|
132 |
+
|
133 |
+
#: ../awesome-weather.php:280
|
134 |
+
msgid "E"
|
135 |
+
msgstr ""
|
136 |
+
|
137 |
+
#: ../awesome-weather.php:280
|
138 |
+
msgid "ESE"
|
139 |
+
msgstr ""
|
140 |
+
|
141 |
+
#: ../awesome-weather.php:280
|
142 |
+
msgid "SE"
|
143 |
+
msgstr ""
|
144 |
+
|
145 |
+
#: ../awesome-weather.php:280
|
146 |
+
msgid "SSE"
|
147 |
+
msgstr ""
|
148 |
+
|
149 |
+
#: ../awesome-weather.php:280
|
150 |
+
msgid "S"
|
151 |
+
msgstr ""
|
152 |
+
|
153 |
+
#: ../awesome-weather.php:280
|
154 |
+
msgid "SSW"
|
155 |
+
msgstr ""
|
156 |
+
|
157 |
+
#: ../awesome-weather.php:280
|
158 |
+
msgid "SW"
|
159 |
+
msgstr ""
|
160 |
+
|
161 |
+
#: ../awesome-weather.php:280
|
162 |
+
msgid "WSW"
|
163 |
+
msgstr ""
|
164 |
+
|
165 |
+
#: ../awesome-weather.php:280
|
166 |
+
msgid "W"
|
167 |
+
msgstr ""
|
168 |
+
|
169 |
+
#: ../awesome-weather.php:280
|
170 |
+
msgid "WNW"
|
171 |
+
msgstr ""
|
172 |
+
|
173 |
+
#: ../awesome-weather.php:280
|
174 |
+
msgid "NW"
|
175 |
+
msgstr ""
|
176 |
+
|
177 |
+
#: ../awesome-weather.php:280
|
178 |
+
msgid "NNW"
|
179 |
+
msgstr ""
|
180 |
+
|
181 |
+
#: ../awesome-weather.php:364
|
182 |
+
msgid "mph"
|
183 |
+
msgstr ""
|
184 |
+
|
185 |
+
#: ../awesome-weather.php:364
|
186 |
+
msgid "m/s"
|
187 |
+
msgstr ""
|
188 |
+
|
189 |
+
#: ../awesome-weather.php:373
|
190 |
+
msgid "humidity:"
|
191 |
+
msgstr ""
|
192 |
+
|
193 |
+
#: ../awesome-weather.php:374
|
194 |
+
msgid "wind:"
|
195 |
+
msgstr ""
|
196 |
+
|
197 |
+
#: ../awesome-weather.php:375
|
198 |
+
msgid "H"
|
199 |
+
msgstr ""
|
200 |
+
|
201 |
+
#: ../awesome-weather.php:375
|
202 |
+
msgid "L"
|
203 |
+
msgstr ""
|
204 |
+
|
205 |
+
#: ../awesome-weather.php:386
|
206 |
+
msgid "Sun"
|
207 |
+
msgstr ""
|
208 |
+
|
209 |
+
#: ../awesome-weather.php:386
|
210 |
+
msgid "Mon"
|
211 |
+
msgstr ""
|
212 |
+
|
213 |
+
#: ../awesome-weather.php:386
|
214 |
+
msgid "Tue"
|
215 |
+
msgstr ""
|
216 |
+
|
217 |
+
#: ../awesome-weather.php:386
|
218 |
+
msgid "Wed"
|
219 |
+
msgstr ""
|
220 |
+
|
221 |
+
#: ../awesome-weather.php:386
|
222 |
+
msgid "Thu"
|
223 |
+
msgstr ""
|
224 |
+
|
225 |
+
#: ../awesome-weather.php:386
|
226 |
+
msgid "Fri"
|
227 |
+
msgstr ""
|
228 |
+
|
229 |
+
#: ../awesome-weather.php:386
|
230 |
+
msgid "Sat"
|
231 |
+
msgstr ""
|
232 |
+
|
233 |
+
#: ../awesome-weather.php:408
|
234 |
+
msgid "extended forecast"
|
235 |
+
msgstr ""
|
236 |
+
|
237 |
+
#: ../awesome-weather.php:422
|
238 |
+
msgid "Weather from"
|
239 |
+
msgstr ""
|
240 |
+
|
241 |
+
#: ../awesome-weather.php:432
|
242 |
+
msgid "No weather information available"
|
243 |
+
msgstr ""
|
244 |
+
|
245 |
+
#: ../awesome-weather.php:467
|
246 |
+
msgid "No city found in OpenWeatherMap."
|
247 |
+
msgstr ""
|
248 |
+
|
249 |
+
#: ../awesome-weather.php:468
|
250 |
+
msgid "Only one location found. The ID has been set automatically above."
|
251 |
+
msgstr ""
|
252 |
+
|
253 |
+
#: ../awesome-weather.php:469
|
254 |
+
msgid "Please confirm your city: "
|
255 |
+
msgstr ""
|
256 |
+
|
257 |
+
#: ../widget.php:101
|
258 |
+
msgid "and add it to the new settings page."
|
259 |
+
msgstr ""
|
260 |
+
|
261 |
+
#: ../widget.php:108
|
262 |
+
msgid "Search for Your Location:"
|
263 |
+
msgstr ""
|
264 |
+
|
265 |
+
#: ../widget.php:109
|
266 |
+
msgid "(i.e: London or New York City)"
|
267 |
+
msgstr ""
|
268 |
+
|
269 |
+
#: ../widget.php:116
|
270 |
+
msgid "OpenWeatherMap City ID:"
|
271 |
+
msgstr ""
|
272 |
+
|
273 |
+
#: ../widget.php:117
|
274 |
+
msgid "(use the field above to find the ID for your city)"
|
275 |
+
msgstr ""
|
276 |
+
|
277 |
+
#: ../widget.php:130
|
278 |
+
msgid "Override Title:"
|
279 |
+
msgstr ""
|
280 |
+
|
281 |
+
#: ../widget.php:135
|
282 |
+
msgid "Units:"
|
283 |
+
msgstr ""
|
284 |
+
|
285 |
+
#: ../widget.php:149
|
286 |
+
msgid "Size:"
|
287 |
+
msgstr ""
|
288 |
+
|
289 |
+
#: ../widget.php:158
|
290 |
+
msgid "Forecast:"
|
291 |
+
msgstr ""
|
292 |
+
|
293 |
+
#: ../widget.php:172
|
294 |
+
msgid "Background Image:"
|
295 |
+
msgstr ""
|
296 |
+
|
297 |
+
#: ../widget.php:178
|
298 |
+
msgid "Use Different Background Images Based on Weather"
|
299 |
+
msgstr ""
|
300 |
+
|
301 |
+
#: ../widget.php:182
|
302 |
+
msgid "Custom Background Color:"
|
303 |
+
msgstr ""
|
304 |
+
|
305 |
+
#: ../widget.php:183
|
306 |
+
msgid "overrides color changing"
|
307 |
+
msgstr ""
|
308 |
+
|
309 |
+
#: ../widget.php:188
|
310 |
+
msgid "Text Color"
|
311 |
+
msgstr ""
|
312 |
+
|
313 |
+
#: ../widget.php:207
|
314 |
+
msgid "Hide Current Condition Stats"
|
315 |
+
msgstr ""
|
316 |
+
|
317 |
+
#: ../widget.php:213
|
318 |
+
msgid "Link to OpenWeatherMap"
|
319 |
+
msgstr ""
|
320 |
+
|
321 |
+
#: ../widget.php:217
|
322 |
+
msgid "Widget Title: (optional)"
|
323 |
+
msgstr ""
|
readme.txt
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
-
===
|
2 |
Contributors: halgatewood
|
3 |
-
Donate link:
|
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
|
@@ -22,8 +22,12 @@ Once you have the API Key you can simply add it in 'Settings' -> 'Awesome Weathe
|
|
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:
|
26 |
|
|
|
|
|
|
|
|
|
27 |
`[awesome-weather location="Montreal" units="F" owm_city_id="6077243" size="tall" override_title="MTL" forecast_days="3" hide_stats="1" background="http://urltoanimage.jpg" custom_bg_color="#cccccc" inline_style="width: 200px; margin: 20px; float: left;" background_by_weather="1" text_color="#000" locale="fr"]`
|
28 |
|
29 |
= Settings =
|
@@ -67,6 +71,8 @@ Use the built in widget with all of its marvelous settings or add it to a page o
|
|
67 |
1. Add your API Key to the settings field in 'Settings' -> 'Awesome Weather' (added in version 1.5.3)
|
68 |
1. Use shortcode or widget to display awesome weather on your awesome site
|
69 |
|
|
|
|
|
70 |
|
71 |
== Screenshots ==
|
72 |
|
@@ -179,7 +185,12 @@ Changed API endpoints. Might not find weather without update.
|
|
179 |
|
180 |
== Changelog ==
|
181 |
|
182 |
-
= 1.5.
|
|
|
|
|
|
|
|
|
|
|
183 |
* Wording changes to help improve user experience, thus new updated .pot file
|
184 |
* Bug fix for AWESOME_WEATHER_APPID constant, wasn't always being used.
|
185 |
* Changed awesome-weather-widget.js to awesome-weather-widget-admin.js
|
1 |
+
=== Awesome Weather Widget ===
|
2 |
Contributors: halgatewood
|
3 |
+
Donate link: https://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
|
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:
|
26 |
|
27 |
+
Easiest:
|
28 |
+
`[awesome-weather location="Oklahoma City"]`
|
29 |
+
|
30 |
+
All Available Parameters:
|
31 |
`[awesome-weather location="Montreal" units="F" owm_city_id="6077243" size="tall" override_title="MTL" forecast_days="3" hide_stats="1" background="http://urltoanimage.jpg" custom_bg_color="#cccccc" inline_style="width: 200px; margin: 20px; float: left;" background_by_weather="1" text_color="#000" locale="fr"]`
|
32 |
|
33 |
= Settings =
|
71 |
1. Add your API Key to the settings field in 'Settings' -> 'Awesome Weather' (added in version 1.5.3)
|
72 |
1. Use shortcode or widget to display awesome weather on your awesome site
|
73 |
|
74 |
+
The easiest shortcode setting is just: `[awesome-weather location="Oklahoma City"]`
|
75 |
+
|
76 |
|
77 |
== Screenshots ==
|
78 |
|
185 |
|
186 |
== Changelog ==
|
187 |
|
188 |
+
= 1.5.8 =
|
189 |
+
* Language fixes and improvements
|
190 |
+
* OpenWeatherMap attribution added as per licensing requirements
|
191 |
+
* High and Low temperature fix
|
192 |
+
|
193 |
+
= 1.5.7 =
|
194 |
* Wording changes to help improve user experience, thus new updated .pot file
|
195 |
* Bug fix for AWESOME_WEATHER_APPID constant, wasn't always being used.
|
196 |
* Changed awesome-weather-widget.js to awesome-weather-widget-admin.js
|