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 | |
add_action( 'woocommerce_email_order_details', 'las_order_email_order_details', 10, 4 ); | |
function las_order_email_order_details( $order, $sent_to_admin, $plain_text, $email ) { | |
if($sent_to_admin){ | |
$order_statuses = array('wc-on-hold', 'wc-processing', 'wc-completed'); | |
$customer_user_id = get_current_user_id(); | |
$customer_orders = wc_get_orders( array( | |
'meta_key' => '_customer_user', | |
'meta_value' => $customer_user_id, | |
'post_status' => $order_statuses, |
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
<script type="text/javascript"> | |
var TxtRotate = function(el, toRotate, period) { | |
this.toRotate = toRotate; | |
this.el = el; | |
this.loopNum = 0; | |
this.period = parseInt(period, 10) || 2000; | |
this.txt = ''; | |
this.tick(); | |
this.isDeleting = false; | |
}; |
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
<!-- HORIZONTAL SCROLL --> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.5.1/gsap.min.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.5.1/ScrollTrigger.min.js"></script> | |
<script type="text/javascript"> | |
if(jQuery('.page-id-735')){ | |
gsap.registerPlugin(ScrollTrigger); | |
var allSections = jQuery('.horizontal-section'); | |
allSections.wrapAll('<div class="horizontal-container"/>'); |
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
<script> | |
var ochtend = jQuery(".hero-ochtend"); | |
var middag = jQuery(".hero-middag"); | |
var avond = jQuery(".hero-avond"); | |
var d = new Date(); | |
var n = d.getHours(); | |
if (n > 0 && n < 12){ | |
jQuery(ochtend).show(); | |
jQuery(middag).hide(); | |
jQuery(avond).hide(); |
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 | |
function ___wejns_wp_whitespace_fix($input) { | |
$allowed = false; | |
$found = false; | |
foreach (headers_list() as $header) { | |
if (preg_match("/^content-type:\\s+(text\\/|application\\/((xhtml|atom|rss)\\+xml|xml))/i", $header)) { | |
$allowed = true; | |
} | |
if (preg_match("/^content-type:\\s+/i", $header)) { | |
$found = true; |
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 | |
// Show all information, defaults to INFO_ALL | |
phpinfo(); | |
?> |
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
<script type="text/javascript"> | |
jQuery(document).ready(function() { | |
// The button | |
jQuery('<span class="toggle">More</span>').appendTo('#shop-sidebar .product-categories, #shop-sidebar .woocommerce-widget-layered-nav-list'); | |
// Hide categories when more than 5 | |
jQuery("#shop-sidebar .product-categories li").slice(5).hide(); | |
// Hide attribute filter options when more than 5 |
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
.changeable .bg-loaded{ | |
transition: all 0.2s ease-in-out; | |
transition-delay: 150ms; | |
} |
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 | |
// Add attribute images on shop page with products | |
function display_attribute_images() { | |
global $product; | |
$attributes = $product->get_attributes(); | |
echo '<div class="attribute-image-wrapper" style="display:flex;flex-direction:row;justify-content:center;">'; | |
foreach ( $attributes as $attribute ) { | |
$name = $attribute['name']; |