From e5bb584d27e36dfdd74ef7ff036859c213a322ce Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Wed, 7 Sep 2016 14:15:05 -0400 Subject: [PATCH] Add templates for wunderground. Templates to get rid of the search form and still show the location. --- wunderground/current.html | 43 +++++++++++++++++++++++++++++++++++ wunderground/search-form.html | 14 ++++++++++++ 2 files changed, 57 insertions(+) create mode 100644 wunderground/current.html create mode 100644 wunderground/search-form.html diff --git a/wunderground/current.html b/wunderground/current.html new file mode 100644 index 0000000..5500d6b --- /dev/null +++ b/wunderground/current.html @@ -0,0 +1,43 @@ +{# + This template is processed using the Twig template engine + Learn more at: http://twig.sensiolabs.org/doc/templates.html + + You can override this output by copying this file into your + theme's directory, in a subfolder named "wunderground". The + path to the file would look like this: + /wp-content/themes/my-theme/wunderground/simple.html +#} + +{# Escape the HTML in the passed data automatically #} +{% autoescape 'html' %} + +
+ + {% include 'alert.html' %} + + {% include 'search-form.html' %} + +
+ + {% set day = wunderground.current_observation %} + +
+ +
+ {{ day.temperature|round }}° + {% if wunderground.response.units == 'english' %}F{% else %}C{% endif %} +
+ + {% include 'snippets/icon.html' with { 'tag' : 'div', 'iconsize' : '100' } %} + + {% include 'snippets/condition.html' with { 'tag' : 'div' } %} + +
+ +
+ + {% include 'copyright.html' %} + +
+ +{% endautoescape %} diff --git a/wunderground/search-form.html b/wunderground/search-form.html new file mode 100644 index 0000000..6f25617 --- /dev/null +++ b/wunderground/search-form.html @@ -0,0 +1,14 @@ +{# + This template is processed using the Twig template engine + Learn more at: http://twig.sensiolabs.org/doc/templates.html +#} + +{# the .ui-front class tells jQuery UI to append search results here. #} + +{% if showdata.search is not empty %} + +{% endif %} -- 2.17.1