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> | |
"use strict"; | |
OB_ready(OB_doWhenReady); | |
function OB_doWhenReady() { | |
// localize everything | |
var ooohBoi = window.ooohBoi || {}; | |
// local scope variables | |
ooohBoi.prev_scroll_pos = window.scrollY || document.body.scrollTop; | |
ooohBoi.cur_scroll_pos; |
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
/** | |
* | |
* This function will display a different information text whether there is one or two date(s) to select. | |
* @param str $text - The information text (empty by default) | |
* @param WC_Product or WC_Product_Variation - Product or variation object | |
* | |
* @return str $text | |
* | |
**/ | |
add_filter( 'easy_booking_information_text', 'wceb_custom_info_text', 10, 2 ); |
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_filter( 'easy_booking_start_text', 'wceb_custom_start_text', 10, 2 ); | |
function wceb_custom_start_text( $text, $product = false ) { | |
// You have access to the $product variable (not everywhere) in case you want to display a different text for some products | |
$text = __( 'Your custom text', 'textdomain' ); // Translation-ready | |
return $text; | |
} |
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
#!/bin/sh | |
# Empty all rules | |
sudo iptables -t filter -F | |
sudo iptables -t filter -X | |
# Bloc everything by default | |
sudo iptables -t filter -P INPUT DROP | |
sudo iptables -t filter -P FORWARD DROP | |
sudo iptables -t filter -P OUTPUT DROP |