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
/** | |
* With this code it is possible to hide unnecessary widgets of the elementor plugin for wordpress. | |
* Comment in or out relevant values in array. | |
*/ | |
global $elementor_widget_blacklist; | |
$elementor_widget_blacklist = [ | |
//'common', | |
'heading', | |
//'image', | |
//'text-editor', |
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
$('input[name="number_rooms__to"]').on('change', function () { | |
$('input[name="number_rooms__of"]').attr('max', $(this).val() - 1); | |
}); | |
$('input[name="number_rooms__of"]').on('change', function () { | |
$('input[name="number_rooms__to"]').attr('min', parseInt($(this).val()) + 1); | |
}); |
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
function cleanString($string) { | |
$string = str_replace([' ', 'Ä', 'ä', 'Ö', 'ö', 'Ü', 'ü', 'ß'], [' ', 'Ae', 'ae', 'Oe', 'oe', 'Ue', 'ue', 'ss'], $string); | |
$string = preg_replace('/[^A-Za-z0-9\-]/', '-', $string); | |
return preg_replace('/-+/', '-', $string); | |
} | |
echo cleanString('In Köln trinkt man Kölsch und in Düsseldorf trinkt man Alt.' |