This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // REPLACE STARTING AT LINE 318 in wp-content/plugins/awesome-weather/awesome-weather.php | |
| $rtn .= " | |
| <div class=\"awesome-weather-forecast-day\"> | |
| <div class=\"awesome-weather-forecast-day-temp\">{$forecast->temp}<sup>{$units_display}</sup></div> | |
| <div class=\"awesome-weather-forecast-day-abbr\">$day_of_week</div> | |
| <div class=\"awesome-weather-forecast-day-desc\">{$forecast->weather[0]->description}</div> | |
| </div> | |
| "; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if (!RedactorPlugins) var RedactorPlugins = {}; | |
| RedactorPlugins.advanced = function() | |
| { | |
| return { | |
| init: function () | |
| { | |
| var button = this.button.add('bq', 'Blockquote'); | |
| this.button.setAwesome('bq', 'fa-quote-left'); | |
| this.button.addCallback(button, this.advanced.bqButton); | |
| }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // CALLED WITH FOLLOWING SHORTCODE FOR OPENWEATHERMAP | |
| // [awesome-weather owm_city_id="3106050" location="Saturday's Forecast" custom_template_name="saturdays" size="custom" custom_bg_color="#ffffff" background="https://bulk.photo/lrg/33.jpg" units="F" forecast_days="10"] | |
| <?php | |
| $day_to_display = "Sat"; | |
| $weather_data = $weather->data; | |
| $day_weather = false; | |
| if( date('D') == $day_to_display ) | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ALL DATA ELEMENTS ARE FOUND HERE: http://jquery.malsup.com/cycle2/api/ | |
| // ADD data-cycletwo- TO THE BEGINNING | |
| // NO WRAP FOR ALL ROTATORS | |
| function hg_testimonial_rotator_data_attributes( $default, $template_name, $id ) | |
| { | |
| return " data-cycletwo-allow-wrap='false' "; | |
| } | |
| add_filter('testimonial_rotator_data_attributes', 'hg_testimonial_rotator_data_attributes', 10, 3 ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function hg_awesome_weather_appid() | |
| { | |
| return "YOUR APPID HERE"; | |
| } | |
| add_filter('awesome_weather_appid', 'hg_awesome_weather_appid'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function hg_awesome_weather_units_display() | |
| { | |
| return "°"; | |
| } | |
| add_filter('awesome_weather_units_display', 'hg_awesome_weather_units_display' ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function hg_awesome_weather_bg_ext() | |
| { | |
| return "png"; | |
| } | |
| add_filter('awesome_weather_bg_ext', 'hg_awesome_weather_bg_ext' ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // CHANGE TESTIMONIAL ROTATOR HEADINGS | |
| function hg_testimonial_rotator_title_heading( ) | |
| { | |
| return "h3"; | |
| } | |
| add_filter('testimonial_rotator_title_heading', 'hg_testimonial_rotator_title_heading' ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // CONVERSIONS | |
| function hg_c_to_f( $c ) | |
| { | |
| return round( ( $c * 1.8 ) + 32); | |
| } | |
| function hg_f_to_c( $f ) | |
| { | |
| return round(($f- 32) / 1.8); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <iframe src="https://player.vimeo.com/video/<?php the_field('video'); ?>" width="500" height="213" frameborder="0" webkit-playsinline></iframe> |