Skip to content

Instantly share code, notes, and snippets.

Last active Sep 26, 2017
What would you like to do?
A simple template for the Awesome Weather Widget Pro that shows text only. (68°F / 20°C Partly Cloudy)
<?php if( isset($weather->data['current'])) { ?>
<div class="awe-weather">
<?php if($weather->show_icons) { ?><i class="<?php echo $weather->data['current']['icon']; ?>"></i><?php } ?>
<?php echo $weather->data['current']['temp']; ?>&deg;F &nbsp;/&nbsp; <?php echo awe_f_to_c($weather->data['current']['temp']); ?>&deg;C
&nbsp; <?php echo $weather->data['current']['description']; ?>
<?php } ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment