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
pascalebeier.test:80 | |
tls off | |
on startup C:\tools\php72\php-cgi.exe -b 6545 & | |
fastcgi / 127.0.0.1:6545 php | |
rewrite { | |
if {path} not_match ^\/typo3 | |
to {path} {path}/ /index.php?{query} | |
} |
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 add_custom_meta_description() { | |
global $post; | |
$current_post = $post->ID; | |
$excerpt = get_the_excerpt( $current_post ); | |
$cf_description = get_post_meta( $current_post, "description", true ); | |
$output = 0; | |
if ( ! empty( $cf_description ) ) { | |
$output = $cf_description; |
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
#!/usr/bin/env php | |
<?php | |
$openedFile = file_get_contents(__DIR__.'/'.$argv[1], 'r'); | |
$convertedString = preg_replace('/\s(color|size|class|id|style)="[^"]+"/', '', $openedFile); | |
$newFile = fopen(__DIR__.'/'.$argv[2], 'w'); | |
fwrite($newFile, $convertedString); |
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
<?= wp_count_posts()->publish ?> | |
<?php | |
if ( is_home() ) { ?> | |
<meta name="description" content="In meinem Blog gibt es schon <?= wp_count_posts()->publish ?> Beiträge."> | |
<?php } |
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
page.10.marks { | |
# MENU | |
rcnav = HMENU | |
rcnav.wrap ( | |
<nav class="navbar rc-nav"> | |
<button class="navbar-toggler hidden-md-up" data-target="#rc-nav" data-toggle="collapse" type="button">☰ Menü</button> | |
<div class="collapse navbar-toggleable-sm" id="rc-nav"> | |
<ul class="nav navbar-nav container">|</ul> | |
</div> |