weather_compact.tpl.php in Weather 7
Same filename and directory in other branches
Compact template for the weather module.
1 theme call to weather_compact.tpl.php
- theme_weather_theming in ./
weather_theme.inc - Custom theme function for preprocessing the weather display.
File
weather_compact.tpl.phpView source
<?php
/**
* @file
* Compact template for the weather module.
*/
?>
<div class="weather">
<p>
<strong><?php
print $weather->real_name;
?>:</strong>
<?php
print $weather->condition;
if (isset($weather->temperature)) {
print ', ' . $weather->temperature;
}
?>
<?php
if (isset($weather->station)) {
?>
<small>
<?php
print t('Location of this weather station:');
?><br />
<?php
print $weather->station;
?>
</small>
<br />
<?php
}
?>
</p>
</div>