From: Steve Sutton Date: Wed, 7 Sep 2016 18:15:05 +0000 (-0400) Subject: Add templates for wunderground. X-Git-Tag: v1.0.0^2~22 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=e5bb584d27e36dfdd74ef7ff036859c213a322ce;p=WP-Themes%2Fpetoskeyarea.git Add templates for wunderground. Templates to get rid of the search form and still show the location. --- 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 %}