Skip to content

Instantly share code, notes, and snippets.

@halgatewood
Last active September 26, 2017 21:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save halgatewood/0cb4bc54c32deaaf14c843beb118a5a8 to your computer and use it in GitHub Desktop.
Save halgatewood/0cb4bc54c32deaaf14c843beb118a5a8 to your computer and use it in GitHub Desktop.
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']; ?>
</div>
<?php } ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment