Suchen:
(?i)(\d)(?!~<) ?(?=(%|‰|ml|cl|dl|l|mm|cm|m|mg|g|kg|t)\W)
Ersetzen:
$1~<
// Specify which character are allowed | |
var a = "123"; | |
if (event.change !="") { | |
if (a.indexOf(event.change) == -1) { | |
// Customize alert message | |
app.alert("Das verwendete Zeichen ist nicht erlaubt!", 1); | |
event.rc = false; | |
} | |
} |
var b=/^\d$/ | |
if (event.change != "") { | |
if (b.test(event.change) == false) { | |
// Alert message to customize | |
app.alert("Bitte nur Zahlen verwenden!", 1); | |
event.rc = false; | |
} | |
} |
if (event.value == 0) { | |
event.value = "" | |
} |
Suchen:
(?i)(\d)(?!~<) ?(?=(%|‰|ml|cl|dl|l|mm|cm|m|mg|g|kg|t)\W)
Ersetzen:
$1~<
Suchen:
~'|‘|`|´
Ersetzen:
\x{2019}
Damit längere Zahlen besser gelesen werden können, werden diese in Tausenderschritten mit einem Leerzeichen (Achtelgeviert) gegliedert. In normalen Fliesstext wird erst ab fünfstelligen Ziffern gegliedert.
Suchen:
(?<=\d)\d(?=\d{3}\b)|\d(?=(\d{3}){2, }\b)
Ersetzen:
$0~<
<?php | |
function penguin_post_thumbnail_sizes_attr( $attr, $attachment, $size ) { | |
if ( 'Penguin800X400' === $size ) { | |
$attr['sizes'] = '(max-width: 767px) calc(100vw - 30px), (max-width: 991px) 469px, (max-width: 1199px) 696.5px, 414px'; | |
} | |
if ( 'Penguin800X400' === $size && ( is_sticky() ) ) { | |
$attr['sizes'] = '(max-width: 767px) calc(100vw - 30px), (max-width: 991px) 469px, (max-width: 1199px) 696.5px, 846.5px'; | |
} | |
if ( 'full' === $size && ( is_singular() ) ) { | |
$attr['sizes'] = '100vw'; |
<?php | |
function penguin_content_image_sizes_attr($size) { | |
// Singular posts with sidebar | |
if ( is_singular() ) { | |
return '(max-width: 599px) calc(100vw - 50px), (max-width: 767px) calc(100vw - 70px), (max-width: 991px) 429px, (max-width: 1199px) 597px, 747px'; | |
} | |
// Page full width without sidebar | |
if ( get_page_template_slug() === 'page-fullwidth.php' ) { | |
return '(max-width: 599px) calc(100vw - 50px), (max-width: 767px) calc(100vw - 70px), (max-width: 991px) 679px, (max-width: 1199px) 839px, 1039px'; | |
} |
/* | |
* Files Editoren abschalten | |
*/ | |
define('DISALLOW_FILE_EDIT',true); |
<?php | |
remove_action( 'wp_head', 'rsd_link' ); | |
remove_action( 'wp_head', 'wlwmanifest_link' ); | |
remove_action( 'wp_head', 'wp_generator' ); | |
remove_action( 'wp_head', 'start_post_rel_link' ); | |
remove_action( 'wp_head', 'index_rel_link' ); | |
remove_action( 'wp_head', 'adjacent_posts_rel_link' ); | |
remove_action( 'wp_head', 'wp_shortlink_wp_head' ); | |
?> |