Updating weather widget
authorSteve Sutton <steve@gaslightmedia.com>
Fri, 21 Dec 2018 16:57:18 +0000 (11:57 -0500)
committerSteve Sutton <steve@gaslightmedia.com>
Fri, 21 Dec 2018 16:57:18 +0000 (11:57 -0500)
To use awesome-weather plugin

sections/footer.php
style.css

index c428e90..dd2f2e5 100644 (file)
@@ -8,7 +8,7 @@
                                             <span id="footer-treasure-text">Click to Register</span>
                                         </a>
                                     </div>
-                                    
+
                                     <div id="footer-travel-specials" class="columns small-12 medium-4">
                                         <a id="footer-travel-specials-link" href="<?php echo get_permalink( 43 );?>">
                                             <img src="<?php echo get_template_directory_uri(); ?>/assets/travel-specials.jpg?v=1.0.22">
@@ -59,7 +59,7 @@
                                     <div id="footer-address" class="small-centered small-11 medium-uncentered medium-3 columns show-for-medium-up">
                                         <?php if (function_exists('glm_get_clientinfo_option')) :?>
                                         <h2><?php echo glm_get_clientinfo_option('businessName');?></h2>
-                                        
+
                                             <?php if (glm_get_clientinfo_option('address')) :?>
                                                 <span><?php echo glm_get_clientinfo_option('address');?></span><br>
                                             <?php endif;?>
@@ -71,7 +71,7 @@
                                                     <?php endif;?>
                                                 </span>
                                             <?php endif;?>
-                                            
+
                                             <?php if (glm_get_clientinfo_option('zip')) :?>
                                                 <span><?php echo glm_get_clientinfo_option('zip');?></span>
                                             <?php endif;?>
@@ -86,9 +86,9 @@
                                         <?php if (glm_get_clientinfo_option('email')) :?>
                                             <span><?php echo glm_get_clientinfo_option('email');?></span>
                                         <?php endif;?>
-                                            
+
                                         <br>
-                                        
+
                                         <?php if (glm_get_clientinfo_option('address2')):?>
                                             <span><?php echo glm_get_clientinfo_option('address2');?></span>
                                             <span class="bullet"> &#8226; </span>
                                         <?php if (glm_get_clientinfo_option('fax2')) :?>
                                             <span class="bullet"> &#8226; </span><span><?php echo glm_get_clientinfo_option('fax');?></span>
                                         <?php endif;?>
-                                            
+
                                         <?php if (glm_get_clientinfo_option('extra')) :?>
                                             <span class="bullet"> &#8226; </span><span><?php echo glm_get_clientinfo_option('extra');?></span>
                                         <?php endif;?>
                                         <?php endif;?>
                                         <a class="footer-address-link" href="<?php echo get_permalink( 126 );?>">Contact Us</a>
-                                        
+
                                     </div>
                                     <div id="footer-weather" class="small-centered small-11 medium-uncentered medium-3 columns show-for-medium-up">
                                         <div class="footer-weather-logo">
                                             <div id="weather-widget">
-                                                <?php echo do_shortcode('[wunderground location="Calumet, MI" measurement="f" layout="table-horizontal" numdays="2" showdata="daynames,pop,icon,conditions,date,highlow"]');?>
+                                                <?php //echo do_shortcode('[wunderground location="Calumet, MI" measurement="f" layout="table-horizontal" numdays="2" showdata="daynames,pop,icon,conditions,date,highlow"]');?>
+                                                <?php echo do_shortcode('[awesome-weather location="4993326" units="F" override_title="Benzie" forecast_days="4"]');?>
                                             </div>
-                                            <a target="_blank" id="activate-weather" href="https://www.wunderground.com/weather/us/mi/benzonia" class=""><img src="<?php echo get_template_directory_uri(); ?>/assets/weather-icon.png?v=1.0.0"></a>
+                                            <a target="_blank" id="activate-weather" href="https://openweathermap.org/city/4993326" class=""><img src="<?php echo get_template_directory_uri(); ?>/assets/weather-icon.png?v=1.0.0"></a>
                                         </div>
-                                        <a href="https://www.wunderground.com/weather/us/mi/benzonia" target="_blank"><span class="footer-weather-text">Local Weather</span></a>
+                                        <a href="https://openweathermap.org/city/4993326" target="_blank"><span class="footer-weather-text">Local Weather</span></a>
                                     </div>
                                     <div id="footer-enews-social-wrapper" class="small-centered small-11 medium-uncentered medium-3 columns">
                                         <div id="footer-social" class="show-for-medium-up">
index d68a907..8e3c9a9 100644 (file)
--- a/style.css
+++ b/style.css
@@ -3,5 +3,5 @@ Theme Name: visitbenzie
 Author: Gaslight Media
 Author URI: http://www.gaslightmedia.com
 Description: A theme for Benzie Area Visitors Bureau
-Version: 1.0.28
+Version: 1.0.29
 */