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 change_testimonial_rotator_testimonial_slug( $name ) | |
| { | |
| return "praise"; | |
| } | |
| add_filter( 'testimonial_rotator_testimonial_slug', 'change_testimonial_rotator_testimonial_slug' ); |
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_testimonial_rotator_pt_args( $args ) | |
| { | |
| $args['has_archive'] = false; | |
| return $args; | |
| } | |
| add_filter( 'testimonial_rotator_pt_args', 'hg_testimonial_rotator_pt_args' ); |
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
| // WEATHER ICONS MAPPING | |
| function awesome_weather_get_icon_from_id($c) | |
| { | |
| if($c == 0) { return 'wi-tornado'; } | |
| if($c == 1) { return 'wi-hurricane'; } | |
| if($c == 2) { return 'wi-hurricane'; } | |
| if( in_array( $c, array(3,4,37,38,39,40,42,45,47))) { return 'wi-thunderstorm'; } | |
| if( in_array( $c, array(5,6,7,10,18))) { return 'wi-rain-mix'; } | |
| if($c == 8 OR $c == 9) { return 'wi-sprinkle'; } | |
| if( in_array( $c, array(11,12))) { return 'wi-rain'; } |
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
| add_action( 'pre_get_posts', 'hg_change_testimonial_sort_order'); | |
| function hg_change_testimonial_sort_order($query) | |
| { | |
| if( is_main_query() AND is_post_type_archive('testimonial') ) | |
| { | |
| $query->set( 'order', 'DESC' ); | |
| $query->set( 'orderby', 'date' ); | |
| } | |
| } |
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
| // | |
| // ServiceProvider.swift | |
| // BT Top Shelf | |
| // | |
| // Created by HalBook on 9/28/15. | |
| // Copyright © 2015 HalGatewood.com. All rights reserved. | |
| // | |
| import Foundation | |
| import TVServices |
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_text_blocks_post_type_args( $args ) | |
| { | |
| $args['public'] = true; | |
| $args['exclude_from_search'] = false; | |
| return $args; | |
| } | |
| add_filter('text_blocks_post_type_args', 'hg_text_blocks_post_type_args'); |
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
| public function add_share_buttons_to_post($content) | |
| { | |
| if (is_single() AND get_post_type() == "post") { | |
| $location = get_option('ess_share_location'); | |
| $button_type = get_option( 'ess_share_type' ); | |
| if ( is_array( $location ) ) { | |
| foreach($location as $position) { | |
| if ($position == 'before') { |
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 "F"; | |
| } | |
| 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_use_google_font() | |
| { | |
| return false; | |
| } | |
| add_filter('awesome_weather_use_google_font', 'hg_awesome_weather_use_google_font'); |
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_ip_cache() | |
| { | |
| return 3600; // IN SECONDS | |
| } | |
| add_filter('awesome_weather_ip_cache', 'hg_awesome_weather_ip_cache'); |