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
white-space: pre-wrap; /* CSS3 */ | |
white-space: -moz-pre-wrap; /* Mozilla, since 1999 */ | |
white-space: -pre-wrap; /* Opera 4-6 */ | |
white-space: -o-pre-wrap; /* Opera 7 */ | |
word-wrap: break-word; /* Internet Explorer 5.5+ */ |
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
var browserIsIE = /*@@cc_on!@@*/false || !!document.documentMode; | |
if (browserIsIE) { | |
$('#ieWarningModal').modal('show'); //create html element as modal | |
console.log('WARNING: You are using Internet Explorer!'); | |
} | |
/*Internet Explorer is not supported. | |
This browser is outdated and not fully supported for the css-portal. | |
Please note that some of the pages will not get displayed, so please use the latest version of Microsoft Edge, Google Chrome, or Mozilla Firefox |
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
Yoast SEO https://wordpress.org/plugins/wordpress-seo/ | |
Smush https://wordpress.org/plugins/wp-smushit/ | |
TinyMCE Advanced https://wordpress.org/plugins/tinymce-advanced/ | |
UpdraftPlus Backup https://wordpress.org/plugins/updraftplus/ | |
W3 Total Cache https://wordpress.org/plugins/w3-total-cache/ | |
WP Mail SMTP https://wordpress.org/plugins/wp-mail-smtp/ | |
WP Mail Logging https://wordpress.org/plugins/wp-mail-logging/ | |
Wordfence Security https://wordpress.org/plugins/wordfence/ | |
Easy FancyBox https://wordpress.org/plugins/easy-fancybox/ | |
Regenerate Thumbnails https://wordpress.org/plugins/regenerate-thumbnails/ |
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
ul { | |
display: flex; | |
justify-content: flex-end; /* right align */ | |
li { | |
align-items: center; | |
justify-content: center; | |
flex-direction: row; | |
} | |
} |
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
// clean paste | |
add_filter('tiny_mce_before_init', 'customize_tinymce'); | |
function customize_tinymce($in) { | |
$in['paste_preprocess'] = "function(pl,o){ | |
// remove the following tags completely: | |
o.content = o.content.replace(/<\/*(applet|area|article|aside|audio|base|basefont|bdi|bdo|body|button|canvas|command|datalist|details|embed|figcaption|figure|font|footer|frame|frameset|head|header|hgroup|hr|html|iframe|img|keygen|link|map|mark|menu|meta|meter|nav|noframes|noscript|object|optgroup|output|param|progress|rp|rt|ruby|script|section|source|span|style|summary|time|title|track|video|wbr)[^>]*>/gi,''); | |
// remove all attributes from these tags: | |
o.content = o.content.replace(/<(div|table|tbody|tr|td|th|p|b|font|strong|i|em|h1|h2|h3|h4|h5|h6|hr|ul|li|ol|code|blockquote|address|dir|dt|dd|dl|big|cite|del|dfn|ins|kbd|q|samp|small|s|strike|sub|sup|tt|u|var|caption) [^>]*>/gi,'<$1>'); | |
// keep only href in the a tag (needs to be refined to also keep _target and ID): |
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
// add featured image to rss feed | |
add_filter( 'the_content', 'ld_featured_image_in_feed' ); | |
function ld_featured_image_in_feed( $content ) { | |
global $post; | |
if( is_feed() ) { | |
if ( has_post_thumbnail( $post->ID ) ){ | |
$feat_image_output = get_the_post_thumbnail( $post->ID, 'full', array( 'style' => 'height: auto;margin-bottom:2em;max-width: 600px !important;padding-top: 0.75em;width: 100% !important;' ) ); | |
$content = $feat_image_output . $content; | |
} | |
} |
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
// Variante 1 | |
{{@("@").translate('proceed_to_checkout',[])}} | |
// Variante 2 | |
{{@@.translate('proceed_to_checkout',[])}} | |
// Variante 3 | |
//While it is only a small step less ugly workaround, you can simply @Html.Raw the full attribute name and value. | |
<a @Html.Raw("title=\"@@.translate('proceed_to_checkout',[])\"")>Test</a> |
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
$('.inputResetIcon').mouseleave(function () { | |
$(this).find('i').css('display', 'none'); | |
}); | |
// use mouseleave instead of mouseout |
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
outerloop: | |
for (i = 0; i < a.length; i++) { | |
for (j = 0; j < b.length; j++) { | |
console.log(a[i] + ' compare with ' + b[j]); | |
if (a[i] === b[j]) { | |
continue outerloop; | |
} | |
} | |
console.log('ERROR no match'); | |
break outerloop; |