-
Notifications
You must be signed in to change notification settings - Fork 74
/
weather.6d.php
47 lines (42 loc) · 1.44 KB
/
weather.6d.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?php
/**
* Display template for Six Day Forecast for the Weather module
*
* @license GPL
*
* @package MythWeb
* @subpackage Weather
*
/**/
?>
<p class="host"><?php
echo t('Host') .": ". $screen->host;
?></p>
<p class="location"><?php
echo $screen->data["6dlocation"]
?></p>
<div class="forecast clearfix">
<h2><?php echo getScreenTitle($screen->container) ?></h2>
<?php
for($i=0;$i<6;$i++) {
?>
<div class="daily_forecast">
<h3><?php echo $screen->data["date-$i"] ?></h3>
<img src="<?php echo skin_url ?>img/weather/<?php echo $screen->data["icon-$i"] ?>" class="alpha_png" alt="">
<div class="temps">
<div class="low">
<p><?php echo t('Low') ?></p>
<p class="temp">
<?php echo $screen->data["low-$i"] == 'NA' ? '' : $screen->data["low-$i"] ?>°<sup><?php echo $screen->units == 0 ? 'C' : 'F' ?></sup>
</p>
</div>
<div class="high">
<p><?php echo t('High') ?></p>
<p class="temp">
<?php echo $screen->data["high-$i"] == 'NA' ? '' : $screen->data["high-$i"] ?>°<sup><?php echo $screen->units == 0 ? 'C' : 'F' ?></sup>
</p>
</div>
</div>
</div>
<?php } ?>
</div>