Awesome Weather Widget - Version 1.5.6.2

Version Description

  • Added SK to locales and a filter to modify list of available locales
Download this release

Release Info

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

Code changes from version 1.5.6.1 to 1.5.6.2

Files changed (2) hide show
  1. awesome-weather.php +5 -13
  2. readme.txt +3 -0
awesome-weather.php CHANGED
@@ -5,22 +5,14 @@ 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.6.1
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.
16
- awesome_weather_sizes = array of sizes for widget
17
- awesome_weather_extended_forecast_text = Change text of footer link
18
- awesome_weather_appid = OpenWeatherMap APPID, improves support (now available in Settings -> Awesome Weather
19
- awesome_weather_units_display = Change the F or C to ° or something
20
- awesome_weather_background_classes = Add or change the background classes before they display
21
- awesome_weather_wind_speed = Convert the wind speed to whatever you want before it gets displayed
22
- awesome_weather_use_google_font = Allows you to turn off Open Sans and use your websites main font (less page load)
23
- awesome_weather_google_font_queue_name = Allows you to change the queue name if your theme is already using the Open Sans font (make this the same as your other font)
24
 
25
  // CLEAR OUT THE TRANSIENT CACHE
26
  add to your URL 'clear_awesome_widget'
@@ -93,8 +85,8 @@ function awesome_weather_logic( $atts )
93
  $locale = 'en';
94
 
95
  $sytem_locale = get_locale();
96
- $available_locales = array( 'en', 'es', 'sp', 'fr', 'it', 'de', 'pt', 'ro', 'pl', 'ru', 'uk', 'ua', 'fi', 'nl', 'bg', 'sv', 'se', 'ca', 'tr', 'hr', 'zh', 'zh_tw', 'zh_cn', 'hu' );
97
-
98
 
99
  // CHECK FOR LOCALE
100
  if( in_array( $sytem_locale, $available_locales ) ) $locale = $sytem_locale;
5
  Description: A weather widget that actually looks cool
6
  Author: Hal Gatewood
7
  Author URI: https://www.halgatewood.com
8
+ Version: 1.5.6.2
9
  Text Domain: awesome-weather
10
  Domain Path: /languages
11
 
12
 
13
  FILTERS AVAILABLE:
14
+ https://halgatewood.com/docs/plugins/awesome-weather-widget/available-filters
15
+
 
 
 
 
 
 
 
 
16
 
17
  // CLEAR OUT THE TRANSIENT CACHE
18
  add to your URL 'clear_awesome_widget'
85
  $locale = 'en';
86
 
87
  $sytem_locale = get_locale();
88
+ $available_locales = apply_filters('awesome_weather_available_locales', array( 'en', 'es', 'sp', 'fr', 'it', 'de', 'pt', 'ro', 'pl', 'ru', 'uk', 'ua', 'fi', 'nl', 'bg', 'sv', 'se', 'sk', 'ca', 'tr', 'hr', 'zh', 'zh_tw', 'zh_cn', 'hu' ) );
89
+
90
 
91
  // CHECK FOR LOCALE
92
  if( in_array( $sytem_locale, $available_locales ) ) $locale = $sytem_locale;
readme.txt CHANGED
@@ -186,6 +186,9 @@ Changed API endpoints. Might not find weather without update.
186
 
187
  == Changelog ==
188
 
 
 
 
189
  = 1.5.6.1 =
190
  * Fix trailing slash issue with one of the preset background image checks
191
 
186
 
187
  == Changelog ==
188
 
189
+ = 1.5.6.2 =
190
+ * Added SK to locales and a filter to modify list of available locales
191
+
192
  = 1.5.6.1 =
193
  * Fix trailing slash issue with one of the preset background image checks
194