Version Description
Some new shortcode attributes, and a constant can be set for the OpenWeatherMap AppID. This helps multisite installations.
Download this release
Release Info
Developer | halgatewood |
Plugin | Awesome Weather Widget |
Version | 1.5.5 |
Comparing to | |
See all releases |
Code changes from version 1.5.4 to 1.5.5
- awesome-weather-settings.php +15 -8
- awesome-weather.php +52 -46
- img/awe-backgrounds/breeze.jpg +0 -0
- img/awe-backgrounds/calm-night.jpg +0 -0
- img/awe-backgrounds/calm.jpg +0 -0
- img/awe-backgrounds/cloudy-night.jpg +0 -0
- img/awe-backgrounds/cloudy.jpg +0 -0
- img/awe-backgrounds/drizzle.jpg +0 -0
- img/awe-backgrounds/hail.jpg +0 -0
- img/awe-backgrounds/hurricane.jpg +0 -0
- img/awe-backgrounds/rain.jpg +0 -0
- img/awe-backgrounds/sleet.jpg +0 -0
- img/awe-backgrounds/snow.jpg +0 -0
- img/awe-backgrounds/sunny.jpg +0 -0
- img/awe-backgrounds/thunderstorm.jpg +0 -0
- img/awe-backgrounds/tornado.jpg +0 -0
- img/awe-backgrounds/tropical-storm.jpg +0 -0
- img/awe-backgrounds/windy.jpg +0 -0
- languages/awesome-weather.pot +66 -62
- readme.txt +11 -1
awesome-weather-settings.php
CHANGED
@@ -100,14 +100,21 @@ function awesome_weather_api_keys_description() { }
|
|
100 |
|
101 |
function awesome_weather_openweather_key()
|
102 |
{
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
111 |
}
|
112 |
|
113 |
function awesome_weather_error_handling_setting()
|
100 |
|
101 |
function awesome_weather_openweather_key()
|
102 |
{
|
103 |
+
if( defined('AWESOME_WEATHER_APPID') )
|
104 |
+
{
|
105 |
+
echo "<em>" . __('Defined in wp-config', 'awesome-weather-pro') . ": " . AWESOME_WEATHER_APPID . "</em>";
|
106 |
+
}
|
107 |
+
else
|
108 |
+
{
|
109 |
+
$setting = esc_attr( apply_filters('awesome_weather_appid', get_option( 'open-weather-key' )) );
|
110 |
+
echo "<input type='text' name='open-weather-key' value='$setting' style='width:70%;' />";
|
111 |
+
echo "<p>";
|
112 |
+
echo __("As of October 2015, OpenWeatherMaps requires this key to access their weather data.", 'awesome-weather');
|
113 |
+
echo " <a href='http://openweathermap.org/appid' target='_blank'>";
|
114 |
+
echo __('Get your APPID', 'awesome-weather');
|
115 |
+
echo "</a>";
|
116 |
+
echo "</p>";
|
117 |
+
}
|
118 |
}
|
119 |
|
120 |
function awesome_weather_error_handling_setting()
|
awesome-weather.php
CHANGED
@@ -5,12 +5,11 @@ 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 |
|
12 |
|
13 |
-
|
14 |
FILTERS AVAILABLE:
|
15 |
awesome_weather_cache = How many seconds to cache weather: default 1800 (30 minutes).
|
16 |
awesome_weather_error = Error message if weather is not found.
|
@@ -51,14 +50,6 @@ function awesome_weather_wp_head( $posts )
|
|
51 |
}
|
52 |
add_action('wp_enqueue_scripts', 'awesome_weather_wp_head');
|
53 |
|
54 |
-
function awesome_weather_wp_admin_head( )
|
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 |
|
63 |
|
64 |
//THE SHORTCODE
|
@@ -97,20 +88,24 @@ function awesome_weather_logic( $atts )
|
|
97 |
|
98 |
|
99 |
// CHECK FOR LOCALE
|
100 |
-
if( in_array( $sytem_locale
|
101 |
-
{
|
102 |
-
$locale = $sytem_locale;
|
103 |
-
}
|
104 |
|
105 |
|
106 |
// CHECK FOR LOCALE BY FIRST TWO DIGITS
|
107 |
-
if( in_array(substr($sytem_locale, 0, 2), $available_locales ) )
|
108 |
-
|
109 |
-
|
110 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
111 |
|
112 |
// NO LOCATION, ABORT ABORT!!!1!
|
113 |
-
if( !$location )
|
114 |
|
115 |
|
116 |
//FIND AND CACHE CITY ID
|
@@ -144,9 +139,9 @@ function awesome_weather_logic( $atts )
|
|
144 |
if( isset($_GET['clear_awesome_widget']) ) delete_transient( $weather_transient_name );
|
145 |
|
146 |
|
147 |
-
//
|
148 |
$appid_string = '';
|
149 |
-
$appid = apply_filters( 'awesome_weather_appid',
|
150 |
if($appid) $appid_string = '&APPID=' . $appid;
|
151 |
|
152 |
|
@@ -215,7 +210,7 @@ function awesome_weather_logic( $atts )
|
|
215 |
|
216 |
|
217 |
// NO WEATHER
|
218 |
-
if( !$weather_data OR !isset($weather_data['now']))
|
219 |
|
220 |
|
221 |
// TODAYS TEMPS
|
@@ -330,11 +325,7 @@ function awesome_weather_logic( $atts )
|
|
330 |
}
|
331 |
}
|
332 |
}
|
333 |
-
|
334 |
-
|
335 |
-
// DISPLAY SYMBOL
|
336 |
-
$units_display_symbol = apply_filters('awesome_weather_units_display', "°" );
|
337 |
-
|
338 |
|
339 |
// EXTRA STYLES
|
340 |
if($background) $background_classes[] = "darken";
|
@@ -344,11 +335,7 @@ function awesome_weather_logic( $atts )
|
|
344 |
$background_class_string = @implode( " ", apply_filters( 'awesome_weather_background_classes', $background_classes ));
|
345 |
|
346 |
// DISPLAY WIDGET
|
347 |
-
$rtn .= "
|
348 |
-
|
349 |
-
<div id=\"awesome-weather-{$city_name_slug}\" class=\"{$background_class_string}\"{$inline_style}>
|
350 |
-
";
|
351 |
-
|
352 |
|
353 |
if($background)
|
354 |
{
|
@@ -358,17 +345,14 @@ function awesome_weather_logic( $atts )
|
|
358 |
|
359 |
$rtn .= "
|
360 |
<div class=\"awesome-weather-header\">{$header_title}</div>
|
361 |
-
|
362 |
<div class=\"awesome-weather-current-temp\">
|
363 |
<strong>$today_temp<sup>{$units_display_symbol}</sup></strong>
|
364 |
-
</div
|
365 |
-
";
|
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\">
|
@@ -376,8 +360,7 @@ function awesome_weather_logic( $atts )
|
|
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} • " . __('L', 'awesome-weather') . " {$today_low} </div>
|
379 |
-
</div
|
380 |
-
";
|
381 |
}
|
382 |
|
383 |
if($days_to_show != "hide")
|
@@ -404,7 +387,7 @@ function awesome_weather_logic( $atts )
|
|
404 |
if($c == $days_to_show) break;
|
405 |
$c++;
|
406 |
}
|
407 |
-
$rtn .= "
|
408 |
}
|
409 |
|
410 |
if($show_link AND isset($today->id))
|
@@ -458,7 +441,14 @@ function awesome_weather_error( $msg = false )
|
|
458 |
function awesome_weather_admin_scripts( $hook )
|
459 |
{
|
460 |
if( 'widgets.php' != $hook ) return;
|
461 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
462 |
|
463 |
wp_localize_script( 'awesome_weather_admin_script', 'awe_script', array(
|
464 |
'no_owm_city' => esc_attr(__("No city found in OpenWeatherMap.", 'awesome-weather')),
|
@@ -466,10 +456,13 @@ function awesome_weather_admin_scripts( $hook )
|
|
466 |
'confirm_city' => esc_attr(__('Please confirm your city: ', 'awesome-weather')),
|
467 |
)
|
468 |
);
|
|
|
|
|
469 |
}
|
470 |
add_action( 'admin_enqueue_scripts', 'awesome_weather_admin_scripts' );
|
471 |
|
472 |
|
|
|
473 |
// AWESOME WEATHER WIDGET, WIDGET CLASS, SO MANY WIDGETS
|
474 |
class AwesomeWeatherWidget extends WP_Widget
|
475 |
{
|
@@ -549,12 +542,12 @@ class AwesomeWeatherWidget extends WP_Widget
|
|
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 |
-
|
|
|
|
|
553 |
|
554 |
$wp_theme = wp_get_theme();
|
555 |
$wp_theme = $wp_theme->get('TextDomain');
|
556 |
-
|
557 |
-
$random_id = wp_rand();
|
558 |
?>
|
559 |
|
560 |
<style>
|
@@ -702,12 +695,26 @@ require_once( dirname(__FILE__) . "/awesome-weather-settings.php");
|
|
702 |
|
703 |
|
704 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
705 |
// PING OPENWEATHER FOR OWMID
|
706 |
add_action( 'wp_ajax_awe_ping_owm_for_id', 'awe_ping_owm_for_id');
|
707 |
function awe_ping_owm_for_id( )
|
708 |
{
|
709 |
$appid_string = '';
|
710 |
-
$appid = apply_filters('awesome_weather_appid',
|
711 |
if($appid) $appid_string = '&APPID=' . $appid;
|
712 |
|
713 |
$location = urlencode($_GET['location']);
|
@@ -737,4 +744,3 @@ function awesome_weather_preset_condition_names_openweathermaps( $weather_code )
|
|
737 |
else if( $weather_code == 951 ) return "calm";
|
738 |
else if( $weather_code > 951 AND $weather_code < 958 ) return "breeze";
|
739 |
}
|
740 |
-
|
5 |
Description: A weather widget that actually looks cool
|
6 |
Author: Hal Gatewood
|
7 |
Author URI: https://www.halgatewood.com
|
8 |
+
Version: 1.5.5
|
9 |
Text Domain: awesome-weather
|
10 |
Domain Path: /languages
|
11 |
|
12 |
|
|
|
13 |
FILTERS AVAILABLE:
|
14 |
awesome_weather_cache = How many seconds to cache weather: default 1800 (30 minutes).
|
15 |
awesome_weather_error = Error message if weather is not found.
|
50 |
}
|
51 |
add_action('wp_enqueue_scripts', 'awesome_weather_wp_head');
|
52 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
53 |
|
54 |
|
55 |
//THE SHORTCODE
|
88 |
|
89 |
|
90 |
// CHECK FOR LOCALE
|
91 |
+
if( in_array( $sytem_locale, $available_locales ) ) $locale = $sytem_locale;
|
|
|
|
|
|
|
92 |
|
93 |
|
94 |
// CHECK FOR LOCALE BY FIRST TWO DIGITS
|
95 |
+
if( in_array(substr($sytem_locale, 0, 2), $available_locales ) ) $locale = substr($sytem_locale, 0, 2);
|
96 |
+
|
97 |
+
|
98 |
+
// OVERRIDE LOCALE PARAMETER
|
99 |
+
if( isset($atts['locale']) ) $locale = $atts['locale'];
|
100 |
+
|
101 |
+
|
102 |
+
// DISPLAY SYMBOL
|
103 |
+
$units_display_symbol = apply_filters('awesome_weather_units_display', "°" );
|
104 |
+
if( isset($atts['units_display_symbol']) ) $units_display_symbol = $atts['units_display_symbol'];
|
105 |
+
|
106 |
|
107 |
// NO LOCATION, ABORT ABORT!!!1!
|
108 |
+
if( !$location ) return awesome_weather_error();
|
109 |
|
110 |
|
111 |
//FIND AND CACHE CITY ID
|
139 |
if( isset($_GET['clear_awesome_widget']) ) delete_transient( $weather_transient_name );
|
140 |
|
141 |
|
142 |
+
// APPID
|
143 |
$appid_string = '';
|
144 |
+
$appid = apply_filters( 'awesome_weather_appid', awe_get_appid() );
|
145 |
if($appid) $appid_string = '&APPID=' . $appid;
|
146 |
|
147 |
|
210 |
|
211 |
|
212 |
// NO WEATHER
|
213 |
+
if( !$weather_data OR !isset($weather_data['now'])) return awesome_weather_error();
|
214 |
|
215 |
|
216 |
// TODAYS TEMPS
|
325 |
}
|
326 |
}
|
327 |
}
|
328 |
+
|
|
|
|
|
|
|
|
|
329 |
|
330 |
// EXTRA STYLES
|
331 |
if($background) $background_classes[] = "darken";
|
335 |
$background_class_string = @implode( " ", apply_filters( 'awesome_weather_background_classes', $background_classes ));
|
336 |
|
337 |
// DISPLAY WIDGET
|
338 |
+
$rtn .= "<div id=\"awesome-weather-{$city_name_slug}\" class=\"{$background_class_string}\"{$inline_style}>";
|
|
|
|
|
|
|
|
|
339 |
|
340 |
if($background)
|
341 |
{
|
345 |
|
346 |
$rtn .= "
|
347 |
<div class=\"awesome-weather-header\">{$header_title}</div>
|
|
|
348 |
<div class=\"awesome-weather-current-temp\">
|
349 |
<strong>$today_temp<sup>{$units_display_symbol}</sup></strong>
|
350 |
+
</div><!-- /.awesome-weather-current-temp -->";
|
|
|
351 |
|
352 |
if($show_stats)
|
353 |
{
|
354 |
$wind_speed = ( $units == "imperial" ) ? __('mph', 'awesome-weather') : __('m/s', 'awesome-weather');
|
355 |
+
$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 );
|
|
|
356 |
|
357 |
$rtn .= "
|
358 |
<div class=\"awesome-weather-todays-stats\">
|
360 |
<div class=\"awe_humidty\">" . __('humidity:', 'awesome-weather') . " {$today->main->humidity}% </div>
|
361 |
<div class=\"awe_wind\">" . __('wind:', 'awesome-weather') . " {$wind_speed_obj['speed']} {$wind_speed_obj['text']} {$wind_speed_obj['direction']}</div>
|
362 |
<div class=\"awe_highlow\"> " .__('H', 'awesome-weather') . " {$today_high} • " . __('L', 'awesome-weather') . " {$today_low} </div>
|
363 |
+
</div><!-- /.awesome-weather-todays-stats -->";
|
|
|
364 |
}
|
365 |
|
366 |
if($days_to_show != "hide")
|
387 |
if($c == $days_to_show) break;
|
388 |
$c++;
|
389 |
}
|
390 |
+
$rtn .= "</div><!-- /.awesome-weather-forecast -->";
|
391 |
}
|
392 |
|
393 |
if($show_link AND isset($today->id))
|
441 |
function awesome_weather_admin_scripts( $hook )
|
442 |
{
|
443 |
if( 'widgets.php' != $hook ) return;
|
444 |
+
|
445 |
+
wp_enqueue_style('jquery');
|
446 |
+
wp_enqueue_style('underscore');
|
447 |
+
wp_enqueue_style('wp-color-picker');
|
448 |
+
wp_enqueue_script('wp-color-picker');
|
449 |
+
|
450 |
+
wp_enqueue_script( 'awesome_weather_admin_script', plugin_dir_url( __FILE__ ) . '/awesome-weather-widget.js', array('jquery','underscore') );
|
451 |
+
|
452 |
|
453 |
wp_localize_script( 'awesome_weather_admin_script', 'awe_script', array(
|
454 |
'no_owm_city' => esc_attr(__("No city found in OpenWeatherMap.", 'awesome-weather')),
|
456 |
'confirm_city' => esc_attr(__('Please confirm your city: ', 'awesome-weather')),
|
457 |
)
|
458 |
);
|
459 |
+
|
460 |
+
|
461 |
}
|
462 |
add_action( 'admin_enqueue_scripts', 'awesome_weather_admin_scripts' );
|
463 |
|
464 |
|
465 |
+
|
466 |
// AWESOME WEATHER WIDGET, WIDGET CLASS, SO MANY WIDGETS
|
467 |
class AwesomeWeatherWidget extends WP_Widget
|
468 |
{
|
542 |
$custom_bg_color = isset($instance['custom_bg_color']) ? esc_attr($instance['custom_bg_color']) : "";
|
543 |
$text_color = isset($instance['text_color']) ? esc_attr($instance['text_color']) : "#ffffff";
|
544 |
|
545 |
+
|
546 |
+
|
547 |
+
$appid = apply_filters( 'awesome_weather_appid', awe_get_appid() );
|
548 |
|
549 |
$wp_theme = wp_get_theme();
|
550 |
$wp_theme = $wp_theme->get('TextDomain');
|
|
|
|
|
551 |
?>
|
552 |
|
553 |
<style>
|
695 |
|
696 |
|
697 |
|
698 |
+
// GET APPID
|
699 |
+
function awe_get_appid()
|
700 |
+
{
|
701 |
+
if( defined('AWESOME_WEATHER_APPID') )
|
702 |
+
{
|
703 |
+
return AWESOME_WEATHER_APPID;
|
704 |
+
}
|
705 |
+
else
|
706 |
+
{
|
707 |
+
return get_option( 'open-weather-key' );
|
708 |
+
}
|
709 |
+
}
|
710 |
+
|
711 |
+
|
712 |
// PING OPENWEATHER FOR OWMID
|
713 |
add_action( 'wp_ajax_awe_ping_owm_for_id', 'awe_ping_owm_for_id');
|
714 |
function awe_ping_owm_for_id( )
|
715 |
{
|
716 |
$appid_string = '';
|
717 |
+
$appid = apply_filters('awesome_weather_appid', awe_get_appid());
|
718 |
if($appid) $appid_string = '&APPID=' . $appid;
|
719 |
|
720 |
$location = urlencode($_GET['location']);
|
744 |
else if( $weather_code == 951 ) return "calm";
|
745 |
else if( $weather_code > 951 AND $weather_code < 958 ) return "breeze";
|
746 |
}
|
|
img/awe-backgrounds/breeze.jpg
CHANGED
Binary file
|
img/awe-backgrounds/calm-night.jpg
DELETED
Binary file
|
img/awe-backgrounds/calm.jpg
CHANGED
Binary file
|
img/awe-backgrounds/cloudy-night.jpg
DELETED
Binary file
|
img/awe-backgrounds/cloudy.jpg
CHANGED
Binary file
|
img/awe-backgrounds/drizzle.jpg
CHANGED
Binary file
|
img/awe-backgrounds/hail.jpg
CHANGED
Binary file
|
img/awe-backgrounds/hurricane.jpg
CHANGED
Binary file
|
img/awe-backgrounds/rain.jpg
CHANGED
Binary file
|
img/awe-backgrounds/sleet.jpg
CHANGED
Binary file
|
img/awe-backgrounds/snow.jpg
CHANGED
Binary file
|
img/awe-backgrounds/sunny.jpg
CHANGED
Binary file
|
img/awe-backgrounds/thunderstorm.jpg
CHANGED
Binary file
|
img/awe-backgrounds/tornado.jpg
CHANGED
Binary file
|
img/awe-backgrounds/tropical-storm.jpg
CHANGED
Binary file
|
img/awe-backgrounds/windy.jpg
CHANGED
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.
|
6 |
"Report-Msgid-Bugs-To: http://wordpress.org/tag/awesome-weather\n"
|
7 |
-
"POT-Creation-Date: 2015-12-
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
@@ -48,243 +48,247 @@ msgstr ""
|
|
48 |
msgid "Error Handling"
|
49 |
msgstr ""
|
50 |
|
51 |
-
#: awesome-weather-settings.php:
|
|
|
|
|
|
|
|
|
52 |
msgid "As of October 2015, OpenWeatherMaps requires this key to access their weather data."
|
53 |
msgstr ""
|
54 |
|
55 |
-
#: awesome-weather-settings.php:
|
56 |
msgid "Get your APPID"
|
57 |
msgstr ""
|
58 |
|
59 |
-
#: awesome-weather-settings.php:
|
60 |
msgid "Hidden in Source"
|
61 |
msgstr ""
|
62 |
|
63 |
-
#: awesome-weather-settings.php:
|
64 |
msgid "Display if Admin"
|
65 |
msgstr ""
|
66 |
|
67 |
-
#: awesome-weather-settings.php:
|
68 |
msgid "Display for Anyone"
|
69 |
msgstr ""
|
70 |
|
71 |
-
#: awesome-weather-settings.php:
|
72 |
msgid "What should the plugin do when there is an error?"
|
73 |
msgstr ""
|
74 |
|
75 |
-
#: awesome-weather.php:
|
76 |
msgid "C"
|
77 |
msgstr ""
|
78 |
|
79 |
-
#: awesome-weather.php:
|
80 |
msgid "F"
|
81 |
msgstr ""
|
82 |
|
83 |
-
#: awesome-weather.php:
|
84 |
msgid "N"
|
85 |
msgstr ""
|
86 |
|
87 |
-
#: awesome-weather.php:
|
88 |
msgid "NNE"
|
89 |
msgstr ""
|
90 |
|
91 |
-
#: awesome-weather.php:
|
92 |
msgid "NE"
|
93 |
msgstr ""
|
94 |
|
95 |
-
#: awesome-weather.php:
|
96 |
msgid "ENE"
|
97 |
msgstr ""
|
98 |
|
99 |
-
#: awesome-weather.php:
|
100 |
msgid "E"
|
101 |
msgstr ""
|
102 |
|
103 |
-
#: awesome-weather.php:
|
104 |
msgid "ESE"
|
105 |
msgstr ""
|
106 |
|
107 |
-
#: awesome-weather.php:
|
108 |
msgid "SE"
|
109 |
msgstr ""
|
110 |
|
111 |
-
#: awesome-weather.php:
|
112 |
msgid "SSE"
|
113 |
msgstr ""
|
114 |
|
115 |
-
#: awesome-weather.php:
|
116 |
msgid "S"
|
117 |
msgstr ""
|
118 |
|
119 |
-
#: awesome-weather.php:
|
120 |
msgid "SSW"
|
121 |
msgstr ""
|
122 |
|
123 |
-
#: awesome-weather.php:
|
124 |
msgid "SW"
|
125 |
msgstr ""
|
126 |
|
127 |
-
#: awesome-weather.php:
|
128 |
msgid "WSW"
|
129 |
msgstr ""
|
130 |
|
131 |
-
#: awesome-weather.php:
|
132 |
msgid "W"
|
133 |
msgstr ""
|
134 |
|
135 |
-
#: awesome-weather.php:
|
136 |
msgid "WNW"
|
137 |
msgstr ""
|
138 |
|
139 |
-
#: awesome-weather.php:
|
140 |
msgid "NW"
|
141 |
msgstr ""
|
142 |
|
143 |
-
#: awesome-weather.php:
|
144 |
msgid "NNW"
|
145 |
msgstr ""
|
146 |
|
147 |
-
#: awesome-weather.php:
|
148 |
msgid "mph"
|
149 |
msgstr ""
|
150 |
|
151 |
-
#: awesome-weather.php:
|
152 |
msgid "m/s"
|
153 |
msgstr ""
|
154 |
|
155 |
-
#: awesome-weather.php:
|
156 |
msgid "humidity:"
|
157 |
msgstr ""
|
158 |
|
159 |
-
#: awesome-weather.php:
|
160 |
msgid "wind:"
|
161 |
msgstr ""
|
162 |
|
163 |
-
#: awesome-weather.php:
|
164 |
msgid "H"
|
165 |
msgstr ""
|
166 |
|
167 |
-
#: awesome-weather.php:
|
168 |
msgid "L"
|
169 |
msgstr ""
|
170 |
|
171 |
-
#: awesome-weather.php:
|
172 |
msgid "Sun"
|
173 |
msgstr ""
|
174 |
|
175 |
-
#: awesome-weather.php:
|
176 |
msgid "Mon"
|
177 |
msgstr ""
|
178 |
|
179 |
-
#: awesome-weather.php:
|
180 |
msgid "Tue"
|
181 |
msgstr ""
|
182 |
|
183 |
-
#: awesome-weather.php:
|
184 |
msgid "Wed"
|
185 |
msgstr ""
|
186 |
|
187 |
-
#: awesome-weather.php:
|
188 |
msgid "Thu"
|
189 |
msgstr ""
|
190 |
|
191 |
-
#: awesome-weather.php:
|
192 |
msgid "Fri"
|
193 |
msgstr ""
|
194 |
|
195 |
-
#: awesome-weather.php:
|
196 |
msgid "Sat"
|
197 |
msgstr ""
|
198 |
|
199 |
-
#: awesome-weather.php:
|
200 |
msgid "extended forecast"
|
201 |
msgstr ""
|
202 |
|
203 |
-
#: awesome-weather.php:
|
204 |
msgid "No weather information available"
|
205 |
msgstr ""
|
206 |
|
207 |
-
#: awesome-weather.php:
|
208 |
msgid "No city found in OpenWeatherMap."
|
209 |
msgstr ""
|
210 |
|
211 |
-
#: awesome-weather.php:
|
212 |
msgid "Only one location found. The ID has been set automatically above."
|
213 |
msgstr ""
|
214 |
|
215 |
-
#: awesome-weather.php:
|
216 |
msgid "Please confirm your city: "
|
217 |
msgstr ""
|
218 |
|
219 |
-
#: awesome-weather.php:
|
220 |
msgid "As of October 2015, OpenWeatherMap requires an APP ID key to access their weather data."
|
221 |
msgstr ""
|
222 |
|
223 |
-
#: awesome-weather.php:
|
224 |
msgid "and add it to the new settings page."
|
225 |
msgstr ""
|
226 |
|
227 |
-
#: awesome-weather.php:
|
228 |
msgid "Search for Your Location:"
|
229 |
msgstr ""
|
230 |
|
231 |
-
#: awesome-weather.php:
|
232 |
msgid "(i.e: London,UK or New York City,NY)"
|
233 |
msgstr ""
|
234 |
|
235 |
-
#: awesome-weather.php:
|
236 |
msgid "OpenWeatherMap City ID:"
|
237 |
msgstr ""
|
238 |
|
239 |
-
#: awesome-weather.php:
|
240 |
msgid "(use the field above to find the ID for your city)"
|
241 |
msgstr ""
|
242 |
|
243 |
-
#: awesome-weather.php:
|
244 |
msgid "Override Title:"
|
245 |
msgstr ""
|
246 |
|
247 |
-
#: awesome-weather.php:
|
248 |
msgid "Units:"
|
249 |
msgstr ""
|
250 |
|
251 |
-
#: awesome-weather.php:
|
252 |
msgid "Size:"
|
253 |
msgstr ""
|
254 |
|
255 |
-
#: awesome-weather.php:
|
256 |
msgid "Forecast:"
|
257 |
msgstr ""
|
258 |
|
259 |
-
#: awesome-weather.php:
|
260 |
msgid "Background Image:"
|
261 |
msgstr ""
|
262 |
|
263 |
-
#: awesome-weather.php:
|
264 |
msgid "Use Different Background Images Based on Weather"
|
265 |
msgstr ""
|
266 |
|
267 |
-
#: awesome-weather.php:
|
268 |
msgid "Custom Background Color:"
|
269 |
msgstr ""
|
270 |
|
271 |
-
#: awesome-weather.php:
|
272 |
msgid "overrides color changing"
|
273 |
msgstr ""
|
274 |
|
275 |
-
#: awesome-weather.php:
|
276 |
msgid "Text Color"
|
277 |
msgstr ""
|
278 |
|
279 |
-
#: awesome-weather.php:
|
280 |
msgid "Hide Stats"
|
281 |
msgstr ""
|
282 |
|
283 |
-
#: awesome-weather.php:
|
284 |
msgid "Link to OpenWeatherMap"
|
285 |
msgstr ""
|
286 |
|
287 |
-
#: awesome-weather.php:
|
288 |
msgid "Widget Title: (optional)"
|
289 |
msgstr ""
|
290 |
#. 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.5\n"
|
6 |
"Report-Msgid-Bugs-To: http://wordpress.org/tag/awesome-weather\n"
|
7 |
+
"POT-Creation-Date: 2015-12-09 23:00:30+00:00\n"
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
48 |
msgid "Error Handling"
|
49 |
msgstr ""
|
50 |
|
51 |
+
#: awesome-weather-settings.php:105
|
52 |
+
msgid "Defined in wp-config"
|
53 |
+
msgstr ""
|
54 |
+
|
55 |
+
#: awesome-weather-settings.php:112
|
56 |
msgid "As of October 2015, OpenWeatherMaps requires this key to access their weather data."
|
57 |
msgstr ""
|
58 |
|
59 |
+
#: awesome-weather-settings.php:114 awesome-weather.php:564
|
60 |
msgid "Get your APPID"
|
61 |
msgstr ""
|
62 |
|
63 |
+
#: awesome-weather-settings.php:125
|
64 |
msgid "Hidden in Source"
|
65 |
msgstr ""
|
66 |
|
67 |
+
#: awesome-weather-settings.php:126
|
68 |
msgid "Display if Admin"
|
69 |
msgstr ""
|
70 |
|
71 |
+
#: awesome-weather-settings.php:127
|
72 |
msgid "Display for Anyone"
|
73 |
msgstr ""
|
74 |
|
75 |
+
#: awesome-weather-settings.php:130
|
76 |
msgid "What should the plugin do when there is an error?"
|
77 |
msgstr ""
|
78 |
|
79 |
+
#: awesome-weather.php:74
|
80 |
msgid "C"
|
81 |
msgstr ""
|
82 |
|
83 |
+
#: awesome-weather.php:74
|
84 |
msgid "F"
|
85 |
msgstr ""
|
86 |
|
87 |
+
#: awesome-weather.php:270
|
88 |
msgid "N"
|
89 |
msgstr ""
|
90 |
|
91 |
+
#: awesome-weather.php:270
|
92 |
msgid "NNE"
|
93 |
msgstr ""
|
94 |
|
95 |
+
#: awesome-weather.php:270
|
96 |
msgid "NE"
|
97 |
msgstr ""
|
98 |
|
99 |
+
#: awesome-weather.php:270
|
100 |
msgid "ENE"
|
101 |
msgstr ""
|
102 |
|
103 |
+
#: awesome-weather.php:270
|
104 |
msgid "E"
|
105 |
msgstr ""
|
106 |
|
107 |
+
#: awesome-weather.php:270
|
108 |
msgid "ESE"
|
109 |
msgstr ""
|
110 |
|
111 |
+
#: awesome-weather.php:270
|
112 |
msgid "SE"
|
113 |
msgstr ""
|
114 |
|
115 |
+
#: awesome-weather.php:270
|
116 |
msgid "SSE"
|
117 |
msgstr ""
|
118 |
|
119 |
+
#: awesome-weather.php:270
|
120 |
msgid "S"
|
121 |
msgstr ""
|
122 |
|
123 |
+
#: awesome-weather.php:270
|
124 |
msgid "SSW"
|
125 |
msgstr ""
|
126 |
|
127 |
+
#: awesome-weather.php:270
|
128 |
msgid "SW"
|
129 |
msgstr ""
|
130 |
|
131 |
+
#: awesome-weather.php:270
|
132 |
msgid "WSW"
|
133 |
msgstr ""
|
134 |
|
135 |
+
#: awesome-weather.php:270
|
136 |
msgid "W"
|
137 |
msgstr ""
|
138 |
|
139 |
+
#: awesome-weather.php:270
|
140 |
msgid "WNW"
|
141 |
msgstr ""
|
142 |
|
143 |
+
#: awesome-weather.php:270
|
144 |
msgid "NW"
|
145 |
msgstr ""
|
146 |
|
147 |
+
#: awesome-weather.php:270
|
148 |
msgid "NNW"
|
149 |
msgstr ""
|
150 |
|
151 |
+
#: awesome-weather.php:354
|
152 |
msgid "mph"
|
153 |
msgstr ""
|
154 |
|
155 |
+
#: awesome-weather.php:354
|
156 |
msgid "m/s"
|
157 |
msgstr ""
|
158 |
|
159 |
+
#: awesome-weather.php:360
|
160 |
msgid "humidity:"
|
161 |
msgstr ""
|
162 |
|
163 |
+
#: awesome-weather.php:361
|
164 |
msgid "wind:"
|
165 |
msgstr ""
|
166 |
|
167 |
+
#: awesome-weather.php:362
|
168 |
msgid "H"
|
169 |
msgstr ""
|
170 |
|
171 |
+
#: awesome-weather.php:362
|
172 |
msgid "L"
|
173 |
msgstr ""
|
174 |
|
175 |
+
#: awesome-weather.php:377
|
176 |
msgid "Sun"
|
177 |
msgstr ""
|
178 |
|
179 |
+
#: awesome-weather.php:377
|
180 |
msgid "Mon"
|
181 |
msgstr ""
|
182 |
|
183 |
+
#: awesome-weather.php:377
|
184 |
msgid "Tue"
|
185 |
msgstr ""
|
186 |
|
187 |
+
#: awesome-weather.php:377
|
188 |
msgid "Wed"
|
189 |
msgstr ""
|
190 |
|
191 |
+
#: awesome-weather.php:377
|
192 |
msgid "Thu"
|
193 |
msgstr ""
|
194 |
|
195 |
+
#: awesome-weather.php:377
|
196 |
msgid "Fri"
|
197 |
msgstr ""
|
198 |
|
199 |
+
#: awesome-weather.php:377
|
200 |
msgid "Sat"
|
201 |
msgstr ""
|
202 |
|
203 |
+
#: awesome-weather.php:395
|
204 |
msgid "extended forecast"
|
205 |
msgstr ""
|
206 |
|
207 |
+
#: awesome-weather.php:418
|
208 |
msgid "No weather information available"
|
209 |
msgstr ""
|
210 |
|
211 |
+
#: awesome-weather.php:454
|
212 |
msgid "No city found in OpenWeatherMap."
|
213 |
msgstr ""
|
214 |
|
215 |
+
#: awesome-weather.php:455
|
216 |
msgid "Only one location found. The ID has been set automatically above."
|
217 |
msgstr ""
|
218 |
|
219 |
+
#: awesome-weather.php:456
|
220 |
msgid "Please confirm your city: "
|
221 |
msgstr ""
|
222 |
|
223 |
+
#: awesome-weather.php:562
|
224 |
msgid "As of October 2015, OpenWeatherMap requires an APP ID key to access their weather data."
|
225 |
msgstr ""
|
226 |
|
227 |
+
#: awesome-weather.php:566
|
228 |
msgid "and add it to the new settings page."
|
229 |
msgstr ""
|
230 |
|
231 |
+
#: awesome-weather.php:573
|
232 |
msgid "Search for Your Location:"
|
233 |
msgstr ""
|
234 |
|
235 |
+
#: awesome-weather.php:574
|
236 |
msgid "(i.e: London,UK or New York City,NY)"
|
237 |
msgstr ""
|
238 |
|
239 |
+
#: awesome-weather.php:581
|
240 |
msgid "OpenWeatherMap City ID:"
|
241 |
msgstr ""
|
242 |
|
243 |
+
#: awesome-weather.php:582
|
244 |
msgid "(use the field above to find the ID for your city)"
|
245 |
msgstr ""
|
246 |
|
247 |
+
#: awesome-weather.php:595
|
248 |
msgid "Override Title:"
|
249 |
msgstr ""
|
250 |
|
251 |
+
#: awesome-weather.php:600
|
252 |
msgid "Units:"
|
253 |
msgstr ""
|
254 |
|
255 |
+
#: awesome-weather.php:614
|
256 |
msgid "Size:"
|
257 |
msgstr ""
|
258 |
|
259 |
+
#: awesome-weather.php:623
|
260 |
msgid "Forecast:"
|
261 |
msgstr ""
|
262 |
|
263 |
+
#: awesome-weather.php:637
|
264 |
msgid "Background Image:"
|
265 |
msgstr ""
|
266 |
|
267 |
+
#: awesome-weather.php:643
|
268 |
msgid "Use Different Background Images Based on Weather"
|
269 |
msgstr ""
|
270 |
|
271 |
+
#: awesome-weather.php:647
|
272 |
msgid "Custom Background Color:"
|
273 |
msgstr ""
|
274 |
|
275 |
+
#: awesome-weather.php:648
|
276 |
msgid "overrides color changing"
|
277 |
msgstr ""
|
278 |
|
279 |
+
#: awesome-weather.php:653
|
280 |
msgid "Text Color"
|
281 |
msgstr ""
|
282 |
|
283 |
+
#: awesome-weather.php:672
|
284 |
msgid "Hide Stats"
|
285 |
msgstr ""
|
286 |
|
287 |
+
#: awesome-weather.php:678
|
288 |
msgid "Link to OpenWeatherMap"
|
289 |
msgstr ""
|
290 |
|
291 |
+
#: awesome-weather.php:682
|
292 |
msgid "Widget Title: (optional)"
|
293 |
msgstr ""
|
294 |
#. Plugin Name of the plugin/theme
|
readme.txt
CHANGED
@@ -24,7 +24,7 @@ Once you have the API Key you can simply add it in 'Settings' -> 'Awesome Weathe
|
|
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 |
|
27 |
-
`[awesome-weather location="Montreal" units="F" owm_city_id="6077243" size="tall" override_title="MTL" forecast_days="2" hide_stats="1" background="http://urltoanimage.jpg" custom_bg_color="#cccccc" inline_style="width: 200px; margin: 20px; float: left;" background_by_weather="1"]`
|
28 |
|
29 |
= Settings =
|
30 |
|
@@ -38,6 +38,8 @@ Use the built in widget with all of its marvelous settings or add it to a page o
|
|
38 |
* Custom Background Color: Add a hex color to override the default colors
|
39 |
* Inline Styles: Add inline CSS styles to your widget to float around text and whatever else
|
40 |
* Background Image Based on Weather (v1.5+): Set this to 1 if you want to use different images for different weather types, How to: https://halgatewood.com/awesome-weather-bgs
|
|
|
|
|
41 |
|
42 |
= Translations =
|
43 |
* Portuguese - alvarogois
|
@@ -79,6 +81,9 @@ 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.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
|
@@ -178,6 +183,11 @@ Changed API endpoints. Might not find weather without update.
|
|
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
|
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 |
|
27 |
+
`[awesome-weather location="Montreal" units="F" owm_city_id="6077243" size="tall" override_title="MTL" forecast_days="2" 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 =
|
30 |
|
38 |
* Custom Background Color: Add a hex color to override the default colors
|
39 |
* Inline Styles: Add inline CSS styles to your widget to float around text and whatever else
|
40 |
* Background Image Based on Weather (v1.5+): Set this to 1 if you want to use different images for different weather types, How to: https://halgatewood.com/awesome-weather-bgs
|
41 |
+
* Text Color: Easily change the text color of the widget without CSS
|
42 |
+
* Locale: New locale attribute for shortcodes allows you to change the weather description text without having to change your whole WordPress installation.
|
43 |
|
44 |
= Translations =
|
45 |
* Portuguese - alvarogois
|
81 |
|
82 |
== Upgrade Notice ==
|
83 |
|
84 |
+
= 1.5.5 =
|
85 |
+
Some new shortcode attributes, and a constant can be set for the OpenWeatherMap AppID. This helps multisite installations.
|
86 |
+
|
87 |
= 1.5.4 =
|
88 |
* Preset background images added for the 'Use Different Background Images Based on Weather' option
|
89 |
* Color picker to choose a font color for the whole widget
|
183 |
|
184 |
== Changelog ==
|
185 |
|
186 |
+
= 1.5.5 =
|
187 |
+
* New constant for the AppID: AWESOME_WEATHER_APPID. Set in wp-config.php for multisite installations
|
188 |
+
* Shortcode attribute for locale: locale="fr"
|
189 |
+
* Shortcode attribute for the units display symbol: units_display_symbol="°F"
|
190 |
+
|
191 |
= 1.5.4 =
|
192 |
* Preset background images added for the 'Use Different Background Images Based on Weather' option
|
193 |
* Color picker to choose a font color for the whole widget
|