Skip to content

Commit b34652e

Browse files
committed
Added weather_units setting
1 parent 9ade85a commit b34652e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

templates/admin_index_tpl.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,13 @@
280280
</td></tr>\n";
281281
$row_count++;
282282
$row_color = ($row_count % 2) ? $color2 : $color1;
283+
echo " <tr><td bgcolor='$row_color' class=table_rows width=10% align=left style='padding-left:4px;' valign=top>weather_units:</td>
284+
<td bgcolor='$row_color' class=table_rows width=10% align=left valign=top>".($weather_units == "c" ? "Celsius" : "Fahrenheit")."</td>
285+
<td bgcolor='$row_color' class=table_rows width=80% align=left style='padding-left:10px;' valign=top>Display weather in US or metric measurements. Options are Fahrenheit or
286+
Celsius. Default is Celsius\".
287+
</td></tr>\n";
288+
$row_count++;
289+
$row_color = ($row_count % 2) ? $color2 : $color1;
283290
echo " <tr><td bgcolor='$row_color' class=table_rows width=10% align=left style='padding-left:4px;' valign=top>metar:</td>
284291
<td bgcolor='$row_color' class=table_rows width=10% align=left valign=top>$metar</td>
285292
<td bgcolor='$row_color' class=table_rows width=80% align=left style='padding-left:10px;' valign=top>Sets the ICAO (International

0 commit comments

Comments
 (0)