/[drupal]/contributions/modules/weather/weather.tpl.php
ViewVC logotype

Contents of /contributions/modules/weather/weather.tpl.php

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (show annotations) (download) (as text)
Fri Nov 21 11:22:16 2008 UTC (12 months ago) by toddy
Branch: MAIN
CVS Tags: DRUPAL-6--5-1, DRUPAL-6--5-2, DRUPAL-6--5-3, DRUPAL-6--5-4, DRUPAL-6--5-5, DRUPAL-6--5-6, DRUPAL-6--5-7, HEAD
Branch point for: DRUPAL-6--5
Changes since 1.1: +9 -2 lines
File MIME type: text/x-php
Optionally calculate windchill
1 <div class="weather">
2 <p><strong><?php print $weather['real_name']; ?></strong></p>
3 <div style="text-align:center;">
4 <img src="<?php print $weather['image']['filename']; ?>" <?php print $weather['image']['size']; ?> alt="<?php print $weather['condition']; ?>" title="<?php print $weather['condition']; ?>" />
5 </div>
6 <ul>
7 <li><?php print $weather['condition']; ?></li>
8 <?php if (isset($weather['temperature'])): ?>
9 <?php if (isset($weather['temperature_windchill'])): ?>
10 <li><?php print t("Temperature: !temperature1, feels like !temperature2", array(
11 '!temperature1' => $weather['temperature'],
12 '!temperature2' => $weather['temperature_windchill']
13 )); ?></li>
14 <?php else: ?>
15 <li><?php print t("Temperature: !temperature",
16 array('!temperature' => $weather['temperature'])); ?></li>
17 <?php endif ?>
18 <?php endif ?>
19 <?php if (isset($weather['wind'])): ?>
20 <li><?php print t('Wind: !wind',
21 array('!wind' => $weather['wind'])); ?></li>
22 <?php endif ?>
23 <?php if (isset($weather['pressure'])): ?>
24 <li><?php print t('Pressure: !pressure',
25 array('!pressure' => $weather['pressure'])); ?></li>
26 <?php endif ?>
27 <?php if (isset($weather['rel_humidity'])): ?>
28 <li><?php print t('Rel. Humidity: !rel_humidity',
29 array('!rel_humidity' => $weather['rel_humidity'])); ?></li>
30 <?php endif ?>
31 <?php if (isset($weather['visibility'])): ?>
32 <li><?php print t('Visibility: !visibility',
33 array('!visibility' => $weather['visibility'])); ?></li>
34 <?php endif ?>
35 <?php if (isset($weather['sunrise'])): ?>
36 <li><?php print $weather['sunrise']; ?></li>
37 <?php endif ?>
38 <?php if (isset($weather['sunset'])): ?>
39 <li><?php print $weather['sunset']; ?></li>
40 <?php endif ?>
41 <?php if (isset($weather['metar'])): ?>
42 <li><?php print t('METAR data: !metar',
43 array('!metar' => '<pre>'. wordwrap($weather['metar'], 20) .'</pre>')); ?></li>
44 <?php endif ?>
45 </ul>
46 <?php if (isset($weather['location'])): ?>
47 <small>
48 <?php print t('Location of this weather station:'); ?><br />
49 <?php print $weather['location']; ?>
50 </small>
51 <br />
52 <?php endif ?>
53 <?php if (isset($weather['reported_on'])): ?>
54 <small>
55 <?php print t('Reported on:'); ?><br />
56 <?php print $weather['reported_on']; ?>
57 </small>
58 <?php endif ?>
59 </div>

  ViewVC Help
Powered by ViewVC 1.1.2