Plugin updated 20th Jan 2008 - Please ensure you have the latest version installed
Weather is a plugin for b2evolution that adds data from weather.com to your blog sidebar. Just enter your city name or zip code in the Tools tab, along with what data you want to see, then add a bit of code to your skin and you'll have automatically updating, cached weather data, including an icon.
// Current temp echo $params['temp_start']. $weather['cc']['tmp']. '°'. $weather['head']['ut']. // $params['temp_end']; // Current temp // $params['temp_start']. '/'. round((((($weather['cc']['tmp']) - 32) / 9) * 5),0). '°C'. $params['temp_end'];
// Show today's low temp, if there is one if ( ($weather['dayf']['low'] != 'N/A') and ($weather['low']) ) { echo T_('Low').': '. $weather['dayf']['low']. '°'. $weather['head']['ut']. '/'. round((((($weather['dayf']['low']) - 32) / 9) * 5),0). '°C'.''; }
Comments are closed for this post.
Original b2evolution template design by AstonishMe
Recent comments