Update of /cvsroot/php-blog/additional_plugins/serendipity_plugin_weather
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13265/serendipity_plugin_weather
Modified Files:
serendipity_plugin_weather.php
Log Message:
html validation
Index: serendipity_plugin_weather.php
===================================================================
RCS file: /cvsroot/php-blog/additional_plugins/serendipity_plugin_weather/serendipity_plugin_weather.php,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- serendipity_plugin_weather.php 8 Oct 2004 13:41:42 -0000 1.7
+++ serendipity_plugin_weather.php 2 Dec 2004 08:26:34 -0000 1.8
@@ -1,19 +1,6 @@
<?php
-/**
-* Title: Weather Sidebar-Plugin
-* URL: .../plugins/serendipity_plugin_weather/serendipity_plugin_weather.php
-* Version: $Id$
-* Author(s): Sebastian Nohn <seb...@no...>, Nikolai Lusan <ni...@lu...>
-* Description:
-* Plugin for Serendipity blog system (S9Y) that utilizes
-* PEAR::Services_Weather to retrieve METAR weather information
-* for a given location and display them.
-* Todo:
-* Translate weather condition, wind directon; do something with forecast
-* and location data or erase it.
-*
-*/
+/* $Id$*/
switch ($serendipity['lang']) {
case 'de':
@@ -396,8 +383,8 @@
$content .= '<img src="' . $conditionIcon . '" alt="" /><br />'. $conditions . '<br />';
// FIXXME: Translate the Winddirection
- $content .= '<dt>'.PLUGIN_SIDEBAR_WEATHER_DATA_WINDDIRECTION.'</dt><dd><img src="' .
- $windDirIcon . '" alt=""><br />' .
+ $content .= '<dl><dt>'.PLUGIN_SIDEBAR_WEATHER_DATA_WINDDIRECTION.'</dt><dd><img src="' .
+ $windDirIcon . '" alt="" /><br />' .
$weather_data["windDirection"] . ', ' . $weather_data["wind"] . $units['wind'] . ' <br />';
$content .= '<dt>'.PLUGIN_SIDEBAR_WEATHER_DATA_TEMPERATURE.'</dt><dd>'.
@@ -411,7 +398,7 @@
$content .= '<dt>'.PLUGIN_SIDEBAR_WEATHER_DATA_VISIBILITY.'</dt><dd>' .
$weather_data["visibility"] . $units['vis'] . '</dd>';
$content .= '<dt>'.PLUGIN_SIDEBAR_WEATHER_DATA_UPDATE.'</dt><dd>' .
- $localTime . '</dd>';
+ $localTime . '</dd></dl>';
echo $content;
} // function
|