This file contains 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
{"icons":[{"name":"Glass","id":"glass","unicode":"f000","created":1,"categories":["Web Application Icons"]},{"name":"Music","id":"music","unicode":"f001","created":1,"categories":["Web Application Icons"]},{"name":"Search","id":"search","unicode":"f002","created":1,"categories":["Web Application Icons"]},{"name":"Envelope Outlined","id":"envelope-o","unicode":"f003","created":1,"categories":["Web Application Icons"]},{"name":"Heart","id":"heart","unicode":"f004","created":1,"categories":["Web Application Icons"]},{"name":"Star","id":"star","unicode":"f005","created":1,"categories":["Web Application Icons"]},{"name":"Star Outlined","id":"star-o","unicode":"f006","created":1,"categories":["Web Application Icons"]},{"name":"User","id":"user","unicode":"f007","created":1,"categories":["Web Application Icons"]},{"name":"Film","id":"film","unicode":"f008","created":1,"categories":["Web Application Icons"]},{"name":"th-large","id":"th-large","unicode":"f009","created":1,"categories":["Text Editor Icons"]},{"name":" |
This file contains 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 tr_stars( $icon, $template_name, $id ) | |
{ | |
if( $template_name == "boom" ) return "fa-bomb"; | |
if( $template_name == "dogs" ) return "fa-paw"; | |
if( $id == 115 ) return "fa-asterisk"; | |
return $icon; | |
} | |
add_filter( 'testimonial_rotator_star' , 'tr_stars', 10, 3 ); |
This file contains 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 tr_stars( $icon, $template_name, $id ) | |
{ | |
return "fa-paw"; | |
} | |
add_filter( 'testimonial_rotator_star' , 'tr_stars', 10, 3 ); |
This file contains 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_register_type( $plural, $singular, $post_type = false, $position = 30, $supports = array('title','editor','thumbnail','author','custom-fields')) | |
{ | |
$uc_plural = ucwords($plural); | |
$uc_single = ucwords($singular); | |
$lc_plural = strtolower($plural); | |
$lc_single = strtolower($singular); | |
$pt = ($post_type) ? $post_type : $lc_single; | |
$labels = array('name' => $uc_plural,'singular_name' => $uc_single,'add_new' => 'Add New','add_new_item' => 'Add New ' . $uc_single,'edit_item' => 'Edit ' . $uc_single,'new_item' => 'New ' . $uc_single,'view_item' => 'View ' . $uc_single,'search_items' => 'Search ' . $uc_plural,'not_found' => 'No ' . $uc_plural . ' Found','not_found_in_trash' => 'No ' . $uc_plural . ' Found in Trash', 'parent_item_colon' => 'Parent ' . $uc_single . ':' ); |
This file contains 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
$woeid = false; | |
$location = "Madrid"; // SET THIS TO YOUR SEARCH CITY | |
$awe_location_cache_name = "awe_location_cache_" . $location; | |
if( get_transient( $awe_location_cache_name ) ) | |
{ | |
$woeid = get_transient( $awe_location_cache_name ); | |
} | |
else | |
{ |
This file contains 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
stdClass Object | |
( | |
[transient_name] => awe_4544349_f_en_f5 | |
[city_slug] => oklahoma-city | |
[api_query] => id=4544349 | |
[location] => Oklahoma City | |
[woeid] => | |
[owm_city_id] => 4544349 | |
[template] => custom | |
[custom_template_name] => hal |
This file contains 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_cache() | |
{ | |
return 3600; // IN SECONDS | |
} | |
add_filter('awesome_weather_cache', 'hg_awesome_weather_cache'); |
This file contains 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
<!-- id: bibletalk --> | |
<div class="hg-stripe-donation-wrap hg-stripe-donation-layout-user-amount"> | |
<div id="hg-stripe-donation-success-bibletalk" class="hg-stripe-donation-message-box hg-stripe-donation-success-message-box"></div> | |
<div id="hg-stripe-donation-error-bibletalk" class="hg-stripe-donation-message-box hg-stripe-donation-error-message-box"></div> | |
<div id="hg-stripe-donate-form-bibletalk" class="hg-stripe-donate-form-user-amount"> | |
<p> | |
Amount: $ <input type="text" id="hg-stripe-donate-amount-bibletalk" name="hg-ajax-donate-amount" value="0" style="width:75px;"> | |
<button id="hg-stripe-donate-button-bibletalk" class="hg-stripe-donation-button">Donate</button> | |
</p> |
This file contains 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
// REMOVE COMMENTS TAB IN WORDPRESS ADMIN | |
function hg_remove_comment_menu() { remove_menu_page('edit-comments.php'); } | |
add_action('admin_menu', 'hg_remove_comment_menu'); |
This file contains 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 get_youtube_video_url( $youtube_id ) | |
{ | |
$data = trim(urldecode(file_get_contents('https://youtube.com/get_video_info?video_id=' . $youtube_id))); | |
$d = parse_str($data, $info); | |
$stream_map = trim($info['url_encoded_fmt_stream_map']); | |
if( !$stream_map ) return false; | |
if( substr( $stream_map, 0, 4 ) != "url=" ) |