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 ( class_exists( 'Give_Cache_Setting' ) ) { | |
| $settings = Give_Cache_Setting::get_settings(); | |
| // $version = Give_Cache_Setting::get_option( 'give_version' ); | |
| } |
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
| /** | |
| * File fancy-owl-carousel.js | |
| * | |
| * Owl Carousel with media-players, youtube api, and fanciness | |
| */ | |
| ( function ( $ ) { | |
| fancyOwl = { | |
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
| /** | |
| * Output ACF url field as HTML. | |
| * | |
| * Optionally add attributes to the link as an array. | |
| * | |
| * Example: | |
| * | |
| * acf_format_link('cp_flex_tab_1', ['class' => 'btn btn-large', 'data-id' => 123]); | |
| * | |
| * Will render the field like so. |
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
| /* | |
| * Build URL Object | |
| * Returns dest: current url-base, sub_params_out: json-object with get-params as names & arrays built from csv-string | |
| **/ | |
| function build_url_object(){ | |
| let | |
| dest = window.location.origin + window.location.pathname, | |
| params = window.location.search.replace( '?', '' ), | |
| sub_params = null, |
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
| <?php | |
| /* | |
| * Accessible FacetWP Checkboxes | |
| * Adds tab-index=0 to checkbox facets for keyboard-tab accessability | |
| */ | |
| add_filter( 'facetwp_facet_html', function( $output, $params ) { | |
| if ( 'checkboxes' == $params['facet']['type'] ) { | |
| $output = str_replace( 'data-value', 'tabindex="0" data-value', $output ); | |
| } | |
| return $output; |
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
| $("a[href*='#']").on('click',function(e){ | |
| e.preventDefault(); | |
| var $self = $(this); | |
| if ( $( '#'+$self.attr('href').split('#').pop() ).length ) { | |
| window.setTimeout(function(){ | |
| $('html, body').animate({ | |
| scrollTop: $( '#'+$self.attr('href').split('#').pop() ).offset().top -140 |
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
| <?php | |
| /** | |
| * Convert RGB HEX to RGB 255 in PHP | |
| */ | |
| function hex_to_rgb ( $color_code ) { | |
| $hex_string = str_replace( '#', '', $color_code ); | |
| $hex = [ |
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 to your theme's functions.php or a plugin. | |
| Requires PaidMembershipsPro, WooCommerce, & PMPro WooCommerce | |
| This adds custom checkout fields to the woocommerce-checkout (The name & email of the person recieving the coupon-code) | |
| & generates & emails a new coupon-code to the gift-recipient's email whenever a woo-commerce order is completed. | |
| */ | |
| /** |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <style type="text/css"> | |
| #bar{ | |
| width:200px; | |
| height:25px; | |
| border:1px solid black; | |
| position:relative; |
NewerOlder