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
jQuery(document).ready(function( $ ){ | |
$(window).load(function() { | |
var searchParams = new URLSearchParams(window.location.search); | |
if(searchParams.has('sp_door_post')) { | |
var sp_door_post = searchParams.get('sp_door_post'); | |
var $door = $('.santapress-container').find('[data-postid='+sp_door_post+'] a.santapress-modal'); | |
$door.click(); | |
} | |
}); | |
}); |
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
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 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
/* make 4 doors in a row */ | |
@media only screen and (max-width: 767px) { | |
.santapress-container .santapress-door { | |
width: 25% !important; | |
flex: 1 0 25% !important; | |
} | |
} | |
/* make 4 doors in a row without stretching the last element */ | |
@media only screen and (max-width: 767px) { |
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
body.santapress-snow-modal.modal-open .blocker:after { | |
-webkit-backface-visibility: hidden; | |
} |
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
add_action( 'wp_head', function () { ?> | |
<script> | |
jQuery(document).ready(function($){ | |
$('.santapress-door.status-publish:not(:last)').find('img').css('transform', 'perspective(1200px) translateZ(0px) translateX(0px) translateY(0px) rotateY(-45deg)'); | |
}); | |
</script> | |
<?php } ); |
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
// Change Background | |
.santapress-post.modal { | |
background:red !important; border:0 !important | |
} | |
// Change Font for <h1> Title | |
.santapress-post.modal h1.santapress-title { | |
font-family: arial, sans-serif !important; | |
} |
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
<div class="iframe-holder"> | |
<iframe id="booklynFrame" src="https://<IHRE_SUBDOMAIN>.booklyn.io/embed" width="100%" height="100" scrolling="no" style="border:0"></iframe> | |
<script src="https://booklyn.io/js/iframeResizer.min.js"></script> | |
<script> | |
iFrameResize({ log: false, heightCalculationMethod: 'lowestElement' }, '#booklynFrame'); | |
</script> | |
</div> |
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
<?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 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( 'wp_head', function () { ?> | |
<script> | |
jQuery(document).ready(function($){ | |
$('.santapress-door.status-future:not(.preview)').css('pointer-events', 'auto').find('a').removeClass('santapress-modal'); | |
}); | |
</script> | |
<?php } ); |
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
add_action( 'wp_head', function () { ?> | |
<script> | |
jQuery(document).ready(function($){ | |
// click on door and save open status to local storage | |
$('.santapress-door.status-publish:not(.preview)').click(function() { | |
var postid = $(this).data('postid'); | |
var opendoors = JSON.parse( window.localStorage.getItem('opendoors') ); | |
if(!opendoors) { | |
var opendoors = []; |
NewerOlder