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 santapress_allow_comments() { | |
| add_post_type_support( 'door', 'comments' ); | |
| } | |
| add_action('init', 'santapress_allow_comments'); |
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
| $primary: '#555'; | |
| $grey: '#eee'; | |
| $grid-breakpoints: ( | |
| xs: 0, | |
| sm: 576px, | |
| md: 768px, | |
| lg: 992px, | |
| xl: 1200px | |
| ); |
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
| jQuery(function($) { | |
| $('.elementor-nav-menu').on('beforeshow.smapi', function(e, menu) { return false; }); | |
| $('.menu-item-has-children > a').attr('href', 'javascript:void(0);'); | |
| $('.menu-item-has-children > a').click(function() { | |
| $(this).parent().find('.sub-menu').toggle(); | |
| }); | |
| }); |
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 | |
| /** | |
| * The template for displaying all single posts | |
| * | |
| * @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post | |
| * | |
| * @package WP_Bootstrap_Starter | |
| */ | |
| get_header(); ?> |
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 bootstrap-modal in Avada globally */ | |
| add_action( 'wp_enqueue_scripts', 'custom_disable_theme_js' ); | |
| function custom_disable_theme_js() { | |
| Fusion_Dynamic_JS::deregister_script('bootstrap-modal'); | |
| } |
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 Santa hat */ | |
| .santapress-post.modal:before { display:none; } | |
| /* disable snow */ | |
| .santapress-post.modal:after { display:none; } | |
| /* make 4 doors in a row */ | |
| @media only screen and (min-width: 768px) { | |
| .santapress-container .santapress-door { | |
| width: 25% !important; |
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
| /* | |
| * WooCommerce Germanized Pro 2.1.6 | |
| * Function to clone packing slip on PDF | |
| **/ | |
| function my_clone_packing_slip( $attachment, $document ) { | |
| if ( $document->type === 'packing_slip' ) { | |
| WC_germanized_pro()->set_upload_dir_filter(); | |
| $path = get_attached_file( $attachment ); |
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
| /* | |
| * WooCommerce Germanized Pro 2.1.6 | |
| * Function to send packing slip via email | |
| **/ | |
| function woocommerce_order_status_processing_callback($order_id) { | |
| if ( ! $order_id ) { | |
| return; | |
| } |
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: Klarna Checkout (V3) External Payment Methods for WooCommerce | |
| Plugin URI: http://krokedil.com | |
| Description: Adds PayPal and BACS as an extra payment method in Klarna Checkout iframe. Works with V3 of Klarna Checkout. | |
| Version: 2.0.0 | |
| Author: Michael Schönrock | |
| Author URI: https://www.halloecho.de | |
| */ |
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 santapress_load_jquerymodal() { | |
| wp_enqueue_script( 'jquery-modal-santapress', 'https://cdnjs.cloudflare.com/ajax/libs/jquery-modal/0.9.2/jquery.modal.min.js', array(), '0.9.2', true ); | |
| } | |
| add_action('wp_enqueue_scripts', 'santapress_load_jquerymodal'); |