Plugin Directory

Changeset 331573


Ignore:
Timestamp:
01/12/2011 04:12:14 AM (15 years ago)
Author:
rjune
Message:

Updated readme, made some changes for compatibility

Location:
wunderground/branches/wordpress-weather
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wunderground/branches/wordpress-weather/readme.txt

    r331384 r331573  
    44Tested up to: 3.0.3
    55Stable tag: trunk
    6 Contributors: katzwebdesign
     6Contributors: katzwebdesign,rjune
    77Donate link:https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=zackkatz%40gmail%2ecom&item_name=WP%20Wunderground%20for%20WordPress&no_shipping=0&no_note=1&tax=0&currency_code=USD&lc=US&bn=PP%2dDonationsBF&charset=UTF%2d8
    88
    9 Get accurate and beautiful weather forecasts powered by Wunderground.com for your content or your sidebar.
     9Pulls weather forecasts from different providers and displays them elegantly via widget or shortcode.
    1010
    1111== Description ==
     
    4848<h4>Using the `[forecast]` Shortcode</h4>
    4949If you're a maniac for shortcodes, and you want all control all the time, this is a good way to use it.
     50 *   list of supported parameters: source, location, measurement, caption,
     51 *   numdays, linkdays, datelabel, todaylabel, cache, class, highlow, iconset.
    5052
    5153`[forecast location="Tokyo, Japan" caption="Weather for Tokyo" measurement='F' todaylabel="Today" datelabel="date('m/d/Y')" highlow='%%high%%&deg;/%%low%%&deg;' numdays="3" iconset="Cartoon" class="css_table_class"]`
     
    5355<strong>The shortcode supports the following settings:</strong>
    5456
     57* `source="wunderground"` - Can be "wunderground" or "accuweather", more sources to come
    5558* `location="Tokyo, Japan"` - Use any city/state combo or US/Canada ZIP code
    5659* `caption="Weather for Tokyo"` - Add a caption to your table (it's like a title)
     
    6063* `highlow='%%high%%&deg;/%%low%%&deg;'` - Format how the highs & low temps display ("85&deg;/35&deg;" in this example)
    6164* `numdays=3` - Change the number of days displayed in the forecast. Up to 6 day forecast.
     65* `linkdays=false` - Make the daily forecast a link back to the source, true or on to enable, anything else disables
    6266* `iconset="Cartoon"` - Choose your iconset from one of 10 great options
    6367* `class="css_table_class"` - Change the CSS class of the generated forecast table
     
    151155
    152156== Changelog ==
     157
     158= 2.0 =
     159* Rewrote backend to allow collection of data from various weather sources(AccuWeather and Weather Underground Initially)
     160* Added themes not tied to any weather service(Humanity)
     161* Changed HTML to a list, with CSS to control it. *TODO* Need to make css user editable
     162* Backwards compatibility needs tested.
    153163
    154164= 1.2.3 =
  • wunderground/branches/wordpress-weather/wordpress-weather.php

    r331563 r331573  
    6060    function shortcode($atts) {
    6161        $settings = shortcode_atts( array(
    62                     'source'      =>  "base"
     62                    'source'      =>  "wunderground"
    6363                  , 'location'    =>  "46534"
    6464                  , 'measurement' =>  "F"
     
    8686                break;
    8787            case "wunderground":
     88            default:
    8889                include("wpw-backwunderground.inc");
    8990                $wpw_obj = new wpw_backWunderground();
    90                 break;
    91             default:
    92                 include("wpw-backbase.inc");
    93                 $wpw_obj = new wpw_backBase();
    9491                break;
    9592        }
     
    108105        $wpw_obj->setDays(absint($settings['numdays']));
    109106        switch(strtolower($settings['linkdays'])) {
    110             case "false":
    111             case "off":
    112                 $wpw_obj->setDaysLink(false);
     107            case "true":
     108            case "on":
     109                $wpw_obj->setDaysLink(true);
    113110                break;
    114111            default:
    115                 $wpw_obj->setDaysLink(true);
     112                $wpw_obj->setDaysLink(false);
    116113                break;
    117114        }
Note: See TracChangeset for help on using the changeset viewer.