Updating weather
authorSteve Sutton <steve@gaslightmedia.com>
Fri, 21 Dec 2018 17:56:35 +0000 (12:56 -0500)
committerSteve Sutton <steve@gaslightmedia.com>
Fri, 21 Dec 2018 17:56:35 +0000 (12:56 -0500)
Use awesome-weather widget

lib/navigation.php
style.css

index 930fb05..e11ce07 100644 (file)
@@ -76,8 +76,8 @@ if ( ! function_exists( 'glm_theme_footer' ) ) {
       echo glm_get_footer_nav_menu( 'footer' );
 
       echo '<li class="menu-item menu-item-type-post_type menu-item-object-page">';
-      echo '<div id="weather-widget"> '. do_shortcode('[wunderground location="Three Oaks, MI" measurement="f" layout="table-horizontal" numdays="1" showdata="daynames,pop,icon,conditions,date,highlow"]') . '</div>';
-      echo '<a href="https://www.wunderground.com/q/zmw:49128.1.99999" target="_blank" id="activate-weather">Weather</a></li>';
+      echo '<div id="weather-widget"> '. do_shortcode('[awesome-weather location="5012197" units="F" forecast_days="4" override_title="Harbor Country"]') . '</div>';
+      echo '<a href="https://openweathermap.org/city/5012197" target="_blank" id="activate-weather">Weather</a></li>';
       echo '</ul>';
   }
   function glm_get_footer_nav_menu( $theme_location ){
index a58ca75..8fdd84e 100644 (file)
--- a/style.css
+++ b/style.css
@@ -3,5 +3,5 @@ Theme Name: HarborCountry
 Author: Gaslight Media
 Author URI: http://www.gaslightmedia.com
 Description: A theme for HarborCountry
-Version: 1.0.33
+Version: 1.0.34
 */