Changeset 204904
- Timestamp:
- 02/13/2010 06:04:36 PM (16 years ago)
- Location:
- wp-google-weather/trunk
- Files:
-
- 3 edited
-
readme.txt (modified) (6 diffs)
-
wp-google-weather.css (modified) (2 diffs)
-
wp-google-weather.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-google-weather/trunk/readme.txt
r144236 r204904 4 4 Tags: google, weather, forecast, api, widget 5 5 Requires at least: 2.8 6 Tested up to: 2. 8.37 Stable tag: 0. 36 Tested up to: 2.9.1 7 Stable tag: 0.4 8 8 9 Displays a weather widget using the unofficial Google weather API.9 Displays a weather widget via widget or shortcode using the unofficial Google weather API. 10 10 11 11 == Description == … … 19 19 * specifiy output language 20 20 * choose between Celsius or Fahrenheit 21 * supports shortcodes 21 22 * comes with predefined CSS style 22 23 * valid XHTML output … … 24 25 == Credits == 25 26 26 Copyright 20 09by Hendrik Will27 Copyright 2010 by Hendrik Will 27 28 28 29 This program is free software; you can redistribute it and/or modify … … 49 50 5. decide whether it should display only today's weather or also a 3 day forecast 50 51 52 To add the widget to posts and pages use the shortcode [wp_google_weather]. 53 Example: [wp_google_weather city="new york" temperature="f" language="en" forecast="1"] 51 54 52 55 == Screenshots == … … 72 75 73 76 == Changelog == 77 = 0.4 - 13.02.2010 = 78 * added shortcode support to use the widget on any post or page 79 * fixed CSS issues 80 74 81 = 0.3 - 09.08.2009 = 75 82 * added an extra div wrapper with additional css class to fix layout problems depending on the template (thanks Danny and Joe) … … 87 94 * add translation for backend 88 95 * choose from different styles 96 * add caching 97 * add tinyMCE button -
wp-google-weather/trunk/wp-google-weather.css
r139837 r204904 47 47 margin: 0 1px 0 0; 48 48 text-align: center; 49 width: 9 8px;49 width: 99px; 50 50 } 51 51 … … 86 86 } 87 87 88 #sidebar .hw_wpgw img { 88 #sidebar .hw_wpgw img, 89 .hw_wpgw img { 89 90 border: 0; 90 91 display: inline; -
wp-google-weather/trunk/wp-google-weather.php
r144242 r204904 4 4 Plugin URI: http://imwill.com/wp-google-weather/ 5 5 Description: Displays a weather widget using the Google weather API. 6 Version: 0. 36 Version: 0.4 7 7 Author: Hendrik Will 8 8 Author URI: http://imwill.com … … 247 247 return $output; 248 248 } 249 250 249 } 251 250 … … 256 255 add_action('wp_head', 'wpgw_css'); 257 256 257 /** 258 * Add function to load weather shortcode. 259 * @since 0.4 260 */ 261 262 add_shortcode('wp_google_weather', 'hw_wp_gw_shortcode'); 263 264 function hw_wp_gw_shortcode($atts, $content = null) { 265 extract(shortcode_atts(array( 266 "city" => 'Braunschweig, Germany', 267 "temperature" => 'c', 268 "language" => 'en', 269 "forecast" => 'true' 270 ), $atts) 271 ); 272 $hw_wpgw = new hw_wpgw(); 273 return $hw_wpgw->buildWidget($city, $temperature, $language, $forecast); 274 } 275 258 276 ?>
Note: See TracChangeset
for help on using the changeset viewer.