diff --git a/curweather/curweather.css b/curweather/curweather.css index a0b7c8fb0..adf948f09 100644 --- a/curweather/curweather.css +++ b/curweather/curweather.css @@ -1,3 +1,7 @@ +#curweather-network img { + float: left; + margin: 20px 10px; +} ul.curweather-details li { list-type: none; } diff --git a/curweather/curweather.php b/curweather/curweather.php index 58daab0b8..88eee9c97 100644 --- a/curweather/curweather.php +++ b/curweather/curweather.php @@ -52,7 +52,8 @@ function getWeather( $loc, $units='metric', $lang='en', $appid='', $cachetime=0) 'humidity' => (string) $res->humidity['value'].(string)$res->humidity['unit'], 'descripion' => $desc, 'wind' => (string)$res->wind->speed['name'].' ('.(string)$res->wind->speed['value'].$wunit.')', - 'update' => (string)$res->lastupdate['value'] + 'update' => (string)$res->lastupdate['value'], + 'icon' => (string)$res->weather['icon'] ); set_pconfig(local_user(), 'curweather', 'last', $now->getTimestamp()); Cache::set('curweather'.md5($url), serialize($r)); @@ -107,6 +108,7 @@ function curweather_network_mod_init(&$fk_app,&$b) { $t = get_markup_template("widget.tpl", "addon/curweather/" ); $curweather = replace_macros ($t, array( '$title' => t("Current Weather"), + '$icon' => $res['icon'], '$city' => $res['city'], '$lon' => $res['lon'], '$lat' => $res['lat'], diff --git a/curweather/templates/widget.tpl b/curweather/templates/widget.tpl index 910c02586..9c6cacd3b 100644 --- a/curweather/templates/widget.tpl +++ b/curweather/templates/widget.tpl @@ -2,11 +2,13 @@
{{$description}}, {{$temp}} +
+