Version Description
= 1.2 = Background Image Option
= 1.1.1 = Google Font URL changed or I messed it up, probably me.
= 1.1 = Errors are now commented out. Look in the source to see what the problem is.
= 1.0.2 = Removed debugging code, sorry!
= 1.0.1 = Changed API endpoints. Might not find weather without update.
Download this release
Release Info
Developer | halgatewood |
Plugin | Awesome Weather Widget |
Version | 1.2.2 |
Comparing to | |
See all releases |
Code changes from version 1.2.1 to 1.2.2
- awesome-weather.php +4 -5
awesome-weather.php
CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://halgatewood.com/awesome-weather
|
|
5 |
Description: A weather widget that actually looks cool
|
6 |
Author: Hal Gatewood
|
7 |
Author URI: http://www.halgatewood.com
|
8 |
-
Version: 1.2.
|
9 |
|
10 |
|
11 |
FILTERS AVAILABLE:
|
@@ -317,12 +317,11 @@ class AwesomeWeatherWidget extends WP_Widget
|
|
317 |
$location = isset($instance['location']) ? esc_attr($instance['location']) : "";
|
318 |
$override_title = isset($instance['override_title']) ? esc_attr($instance['override_title']) : "";
|
319 |
$selected_size = isset($instance['size']) ? esc_attr($instance['size']) : "wide";
|
320 |
-
$units = isset($instance['units'])
|
321 |
$forecast_days = isset($instance['forecast_days']) ? esc_attr($instance['forecast_days']) : 5;
|
322 |
$hide_stats = (isset($instance['hide_stats']) AND $instance['hide_stats'] == 1) ? 1 : 0;
|
323 |
$show_link = (isset($instance['show_link']) AND $instance['show_link'] == 1) ? 1 : 0;
|
324 |
$background = isset($instance['background']) ? esc_attr($instance['background']) : "";
|
325 |
-
|
326 |
?>
|
327 |
<p>
|
328 |
<label for="<?php echo $this->get_field_id('location'); ?>"><?php _e('Location:'); ?></label>
|
@@ -336,8 +335,8 @@ class AwesomeWeatherWidget extends WP_Widget
|
|
336 |
|
337 |
<p>
|
338 |
<label for="<?php echo $this->get_field_id('units'); ?>"><?php _e('Units:'); ?></label>
|
339 |
-
<input id="<?php echo $this->get_field_id('units'); ?>" name="<?php echo $this->get_field_name('units'); ?>" type="radio" value="
|
340 |
-
<input id="<?php echo $this->get_field_id('units'); ?>" name="<?php echo $this->get_field_name('units'); ?>" type="radio" value="
|
341 |
</p>
|
342 |
|
343 |
<p>
|
5 |
Description: A weather widget that actually looks cool
|
6 |
Author: Hal Gatewood
|
7 |
Author URI: http://www.halgatewood.com
|
8 |
+
Version: 1.2.2
|
9 |
|
10 |
|
11 |
FILTERS AVAILABLE:
|
317 |
$location = isset($instance['location']) ? esc_attr($instance['location']) : "";
|
318 |
$override_title = isset($instance['override_title']) ? esc_attr($instance['override_title']) : "";
|
319 |
$selected_size = isset($instance['size']) ? esc_attr($instance['size']) : "wide";
|
320 |
+
$units = (isset($instance['units']) AND strtoupper($instance['units']) == "C") ? "C" : "F";
|
321 |
$forecast_days = isset($instance['forecast_days']) ? esc_attr($instance['forecast_days']) : 5;
|
322 |
$hide_stats = (isset($instance['hide_stats']) AND $instance['hide_stats'] == 1) ? 1 : 0;
|
323 |
$show_link = (isset($instance['show_link']) AND $instance['show_link'] == 1) ? 1 : 0;
|
324 |
$background = isset($instance['background']) ? esc_attr($instance['background']) : "";
|
|
|
325 |
?>
|
326 |
<p>
|
327 |
<label for="<?php echo $this->get_field_id('location'); ?>"><?php _e('Location:'); ?></label>
|
335 |
|
336 |
<p>
|
337 |
<label for="<?php echo $this->get_field_id('units'); ?>"><?php _e('Units:'); ?></label>
|
338 |
+
<input id="<?php echo $this->get_field_id('units'); ?>" name="<?php echo $this->get_field_name('units'); ?>" type="radio" value="F" <?php if($units == "F") echo ' checked="checked"'; ?> /> F
|
339 |
+
<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
|
340 |
</p>
|
341 |
|
342 |
<p>
|