Update of /cvsroot/php-blog/additional_plugins/serendipity_plugin_weather
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23297/serendipity_plugin_weather
Modified Files:
serendipity_plugin_weather.php
Log Message:
Some little bugfixes
Index: serendipity_plugin_weather.php
===================================================================
RCS file: /cvsroot/php-blog/additional_plugins/serendipity_plugin_weather/serendipity_plugin_weather.php,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- serendipity_plugin_weather.php 24 Jul 2004 10:14:52 -0000 1.5
+++ serendipity_plugin_weather.php 26 Jul 2004 15:05:38 -0000 1.6
@@ -66,6 +66,7 @@
@define('PLUGIN_SIDEBAR_WEATHER_DATA_RAIN', 'Rain:');
break;
} // switch
+
class serendipity_plugin_weather extends serendipity_plugin {
/**
* serendipity_plugin_weather::introspect()
@@ -83,7 +84,6 @@
'metar',
'timezone',
'units'));
- return true;
} // function
/**
@@ -108,7 +108,7 @@
break;
case 'timezone':
$propbag->add('type', 'string');
- $propbag->add('name', PLUGIN_SIDEBAR_WEATHER_TIMZEONE);
+ $propbag->add('name', PLUGIN_SIDEBAR_WEATHER_TIMEZONE);
$propbag->add('description', PLUGIN_SIDEBAR_WEATHER_TIMEZONE_BLAHBLAH);
break;
case 'units':
@@ -188,58 +188,58 @@
$windDir = $weather_data["windDirection"];
switch ($windDir) {
case 'S':
- $windDirIcon = $serendipity['serendipityHTTPPath'] . 'pixel/icons/serendipity_plugin_weather/sss.png';
+ $windDirIcon = $serendipity['serendipityHTTPPath'] . 'pixel/icons/serendipity_weather_plugin/sss.png';
break;
case 'SSW':
- $windDirIcon = $serendipity['serendipityHTTPPath'] . 'pixel/icons/serendipity_plugin_weather/ssw.png';
+ $windDirIcon = $serendipity['serendipityHTTPPath'] . 'pixel/icons/serendipity_weather_plugin/ssw.png';
break;
case 'SSE':
- $windDirIcon = $serendipity['serendipityHTTPPath'] . 'pixel/icons/serendipity_plugin_weather/sse.png';
+ $windDirIcon = $serendipity['serendipityHTTPPath'] . 'pixel/icons/serendipity_weather_plugin/sse.png';
break;
case 'SW':
- $windDirIcon = $serendipity['serendipityHTTPPath'] . 'pixel/icons/serendipity_plugin_weather/sw.png';
+ $windDirIcon = $serendipity['serendipityHTTPPath'] . 'pixel/icons/serendipity_weather_plugin/sw.png';
break;
case 'WSW':
- $windDirIcon = $serendipity['serendipityHTTPPath'] . 'pixel/icons/serendipity_plugin_weather/sww.png';
+ $windDirIcon = $serendipity['serendipityHTTPPath'] . 'pixel/icons/serendipity_weather_plugin/sww.png';
break;
case 'E':
- $windDirIcon = $serendipity['serendipityHTTPPath'] . 'pixel/icons/serendipity_plugin_weather/eee.png';
+ $windDirIcon = $serendipity['serendipityHTTPPath'] . 'pixel/icons/serendipity_weather_plugin/eee.png';
break;
case 'ESE':
- $windDirIcon = $serendipity['serendipityHTTPPath'] . 'pixel/icons/serendipity_plugin_weather/see.png';
+ $windDirIcon = $serendipity['serendipityHTTPPath'] . 'pixel/icons/serendipity_weather_plugin/see.png';
break;
case 'ENE':
- $windDirIcon = $serendipity['serendipityHTTPPath'] . 'pixel/icons/serendipity_plugin_weather/nee.png';
+ $windDirIcon = $serendipity['serendipityHTTPPath'] . 'pixel/icons/serendipity_weather_plugin/nee.png';
break;
case 'N':
- $windDirIcon = $serendipity['serendipityHTTPPath'] . 'pixel/icons/serendipity_plugin_weather/nnn.png';
+ $windDirIcon = $serendipity['serendipityHTTPPath'] . 'pixel/icons/serendipity_weather_plugin/nnn.png';
break;
case 'NNW':
- $windDirIcon = $serendipity['serendipityHTTPPath'] . 'pixel/icons/serendipity_plugin_weather/nnw.png';
+ $windDirIcon = $serendipity['serendipityHTTPPath'] . 'pixel/icons/serendipity_weather_plugin/nnw.png';
break;
case 'NNE':
- $windDirIcon = $serendipity['serendipityHTTPPath'] . 'pixel/icons/serendipity_plugin_weather/nne.png';
+ $windDirIcon = $serendipity['serendipityHTTPPath'] . 'pixel/icons/serendipity_weather_plugin/nne.png';
break;
case 'NW':
- $windDirIcon = $serendipity['serendipityHTTPPath'] . 'pixel/icons/serendipity_plugin_weather/nw.png';
+ $windDirIcon = $serendipity['serendipityHTTPPath'] . 'pixel/icons/serendipity_weather_plugin/nw.png';
break;
case 'NE':
- $windDirIcon = $serendipity['serendipityHTTPPath'] . 'pixel/icons/serendipity_plugin_weather/ne.png';
+ $windDirIcon = $serendipity['serendipityHTTPPath'] . 'pixel/icons/serendipity_weather_plugin/ne.png';
break;
case 'SE':
- $windDirIcon = $serendipity['serendipityHTTPPath'] . 'pixel/icons/serendipity_plugin_weather/se.png';
+ $windDirIcon = $serendipity['serendipityHTTPPath'] . 'pixel/icons/serendipity_weather_plugin/se.png';
break;
case 'W':
- $windDirIcon = $serendipity['serendipityHTTPPath'] . 'pixel/icons/serendipity_plugin_weather/www.png';
+ $windDirIcon = $serendipity['serendipityHTTPPath'] . 'pixel/icons/serendipity_weather_plugin/www.png';
break;
case 'WNW':
- $windDirIcon = $serendipity['serendipityHTTPPath'] . 'pixel/icons/serendipity_plugin_weather/nww.png';
+ $windDirIcon = $serendipity['serendipityHTTPPath'] . 'pixel/icons/serendipity_weather_plugin/nww.png';
break;
case 'Variable':
- $windDirIcon = $serendipity['serendipityHTTPPath'] . 'pixel/icons/serendipity_plugin_weather/vrb.png';
+ $windDirIcon = $serendipity['serendipityHTTPPath'] . 'pixel/icons/serendipity_weather_plugin/vrb.png';
break;
default :
- $windDirIcon = $serendipity['serendipityHTTPPath'] . 'pixel/icons/serendipity_plugin_weather/wind_nodata.png';
+ $windDirIcon = $serendipity['serendipityHTTPPath'] . 'pixel/icons/serendipity_weather_plugin/wind_nodata.png';
}
// Turn the GMT time from the update into a local time
@@ -390,7 +390,7 @@
}
// Construct icon name
- $conditionIcon = $serendipity['serendipityHTTPPath'] . 'pixel/icons/serendipity_plugin_weather/' . $night . $cloudLevel . $condUse . '.png';
+ $conditionIcon = $serendipity['serendipityHTTPPath'] . 'pixel/icons/serendipity_weather_plugin/' . $night . $cloudLevel . $condUse . '.png';
$content = '';
|