| Current Path : /home/ahrcaeuege/www/modules/mod_jayahoo_weather/tmpl/ |
| Current File : /home/ahrcaeuege/www/modules/mod_jayahoo_weather/tmpl/default.php |
<?php
/**
* ------------------------------------------------------------------------
* JA Yahoo Weather
* ------------------------------------------------------------------------
* Copyright (C) 2004-2018 J.O.O.M Solutions Co., Ltd. All Rights Reserved.
* @license - GNU/GPL, http://www.gnu.org/licenses/gpl.html
* Author: J.O.O.M Solutions Co., Ltd
* Websites: http://www.joomlart.com - http://www.joomlancers.com
* ------------------------------------------------------------------------
*/
defined('_JEXEC') or die;
?>
<div id="ja-weather-<?php echo $module->id; ?>" class="ja-weather">
<table class="table table-striped">
<tbody>
<?php foreach($list as $index => $item): ?>
<?php $info = $item;
if(!isset($info->current_observation->condition)) continue;
?>
<tr>
<td>
<strong><?php echo $info->location->city; ?></strong><br/>
<small><?php echo $info->location->country; ?></small>
</td>
<td>
<?php echo ModJaYahooWeatherHelper::getIcon($info->current_observation->condition->code, $info->current_observation->condition->text); ?>
</td>
<td>
<?php echo ModJaYahooWeatherHelper::formatTemperature($info->current_observation->condition->temperature, $temperature_unit, $temperature_unit); ?>
</td>
<td>
<?php echo ModJaYahooWeatherHelper::getText('MOD_JAYAHOO_WEATHER_CONDITION_CODE_'.$info->current_observation->condition->code, $info->current_observation->condition->text); ?>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>