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
    
  
  
    
  | // Disable scroll zooming and bind back the click event | |
| var onMapMouseleaveHandler = function (event) { | |
| var that = $(this); | |
| that.on('click', onMapClickHandler); | |
| that.off('mouseleave', onMapMouseleaveHandler); | |
| that.find('iframe').css("pointer-events", "none"); | |
| // pointer-events needs to be added as a style on the iframe | |
| } | 
  
    
      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 woocommerce_template_loop_product_thumbnail() { | |
| $image_src = wp_get_attachment_image_src( get_post_thumbnail_id(),'full' ); | |
| echo '<img data-original="' . $image_src[0] . '" width="400" height="900" class="attachment-shop_catalog wp-post-image lazy"><noscript><img src="' . $image_src[0] . '" width="400" height="900" class="attachment-shop_catalog wp-post-image lazy"></noscript>'; | |
| } | 
  
    
      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 if(get_field('some-field', 'option') == 'on') { ?> | |
| <?php } else { ?> | |
| <?php } ?> | 
  
    
      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 | |
| // This file assumes that you have included the nav walker from https://github.com/twittem/wp-bootstrap-navwalker | |
| // somewhere in your theme. | |
| ?> | |
| <header class="banner navbar navbar-default navbar-static-top" role="banner"> | |
| <div class="container"> | |
| <div class="navbar-header"> | |
| <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target=".navbar-collapse"> | |
| <span class="sr-only"><?= __('Toggle navigation', 'sage'); ?></span> | 
  
    
      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 if (have_rows('action_buttons')) { | |
| $counter = 1; ?> | |
| <?php | |
| while (have_rows('action_buttons')) { | |
| the_row(); | |
| ?> | |
| <!--Trigger--> | |
| <a href="#" data-reveal-id="Modal<?php echo $counter ?>" class="button small"><?php the_sub_field('trigger') ?></a> | |
| <div id="Modal<?php echo $counter ?>" class="reveal-modal" data-reveal aria-labelledby="modalTitle" aria-hidden="true" role="dialog" data-options="close_on_background_click:false"> | |
| <br> | 
  
    
      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
    
  
  
    
  | /** | |
| * Optimize WooCommerce Scripts | |
| * Remove WooCommerce Generator tag, styles, and scripts from non WooCommerce pages. | |
| */ | |
| add_action( 'wp_enqueue_scripts', 'child_manage_woocommerce_styles', 99 ); | |
| function child_manage_woocommerce_styles() { | |
| //remove generator meta tag | |
| remove_action( 'wp_head', array( $GLOBALS['woocommerce'], 'generator' ) ); | 
  
    
      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 | |
| add_filter ('woocommerce_add_to_cart_redirect', 'woo_redirect_to_checkout'); | |
| function woo_redirect_to_checkout() { | |
| $checkout_url = WC()->cart->get_checkout_url(); | |
| return $checkout_url; | |
| } | 
  
    
      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 | |
| /* | |
| Plugin Name: Force SSL URL Scheme | |
| Plugin URI: https://gist.github.com/webaware/4688802 | |
| Description: Force the protocol scheme to be HTTPS when is_ssl() doesn't work | |
| Version: 1.0.0 | |
| Author: WebAware | |
| Author URI: http://www.webaware.com.au/ | |
| @ref: http://wordpress.org/support/topic/ssl-insecure-needs-35-compatibility | 
  
    
      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 | |
| /** | |
| * Create the image attachment and return the new media upload id. | |
| * | |
| * @author Joshua David Nelson, [email protected] | |
| * | |
| * @see http://codex.wordpress.org/Function_Reference/wp_insert_attachment#Example | |
| * | |
| * @link https://joshuadnelson.com/programmatically-add-images-to-media-library/ | |
| * |