You are here

weather-es.tpl.php in Weather_es 6.2

Same filename and directory in other branches
  1. 6.3 weather-es.tpl.php
  2. 6 weather-es.tpl.php
  3. 7 weather-es.tpl.php

File

weather-es.tpl.php
View source
<?php

/* @file
 * weather-es.tpl.php
 *
 * this file is all about getting theme preprocess functionality.
 * 
 * @author José Mª Sirvent y Pablo López 
 *
 */
?>

<div class="weather_es">
  <p><strong><?php

print t('Day: !day', array(
  '!day' => $data->day,
));
?></strong></p>
  <ul>
    <?php

if ($data->sky_txt1 != '') {
  print '<li>' . $usrcnf->sky . ' ' . $data->ampm . ' : <div style="text-align:center;">' . theme_image(drupal_get_path('module', 'weather_es') . '/images/' . $data->sky_img1 . '.png', $data->sky_txt1, $data->sky_txt1, array(
    'width' => '64',
    'height' => '64',
  ), FALSE) . '</div></li>';
}
?>
    <?php

if ($data->sky_txt2 != '') {
  print '<li>' . $usrcnf->sky . ' pm: <div style="text-align:center;">' . theme_image(drupal_get_path('module', 'weather_es') . '/images/' . $data->sky_img2 . '.png', $data->sky_txt2, $data->sky_txt2, array(
    'width' => '64',
    'height' => '64',
  ), FALSE) . '</div></li>';
}
?>
    <?php

if ($data->rain != 999) {
  print '<li>' . $usrcnf->rain . ': ' . $data->rain . '%</li>';
}
?>
    <?php

if ($data->snow != '9999') {
  print '<li>' . $usrcnf->snow . ': ' . $data->snow . '</li>';
}
?>
    <?php

if ($data->tmax != 99) {
  print '<li>' . $usrcnf->tmax . ': ' . $data->tmax . '</li>';
}
?>
    <?php

if ($data->tmin != 99) {
  print '<li>' . $usrcnf->tmin . ': ' . $data->tmin . '</li>';
}
?>
    <?php

if ($data->win_dir1 != '') {
  print '<li>' . $usrcnf->win_dir . ' ' . $data->ampm . ': ' . $data->win_dir1 . '</li>';
}
?>
    <?php

if ($data->win_dir2 != '') {
  print '<li>' . $usrcnf->win_dir . ' pm: ' . $data->win_dir2 . '</li>';
}
?>
    <?php

if ($data->win_spd1 != 999) {
  print '<li>' . $usrcnf->win_spd . ' ' . $data->ampm . ': ' . $data->win_spd1 . '</li>';
}
?>
    <?php

if ($data->win_spd2 != 999) {
  print '<li>' . $usrcnf->win_spd . ' pm: ' . $data->win_spd2 . '</li>';
}
?>
    <?php

if ($data->iv_max != 99) {
  print '<li>' . $usrcnf->iv . ': ' . $data->iv_max . '</li>';
}
?>
    <?php

if ($data->rsk != '') {
  print '<li>' . $usrcnf->rsk . ': ' . $data->rsk . '</li>';
}
?>
  </ul>
</div>