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
<?php | |
/* Passt die Länge der Funktion the except auf 20 Worte an. */ | |
function wpdocs_custom_excerpt_length( $length ) { | |
return 20; | |
} | |
add_filter( 'excerpt_length', 'wpdocs_custom_excerpt_length', 999 ); | |
/* Ersetzt das [...]-Weitersesen Symbol gegen einen Weiterlesen Link. */ | |
function wpdocs_excerpt_more( $more ) { | |
return ' [<a href="'.get_permalink().'"> Weiter lesen</a> ]'; |
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
<a href="<?php echo get_permalink(); ?>">Weiter lesen...</a> |
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
define('SUNRISE','ON'); |
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
/* Multisite */ | |
define( 'WP_ALLOW_MULTISITE', true ); |
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
<?php | |
// Ermittelt den CHMOD einer Datei | |
$chmod = (int) substr (decoct (fileperms ("datei.dat")), -3); | |
// CHMOD ändern | |
chmod("datei.htm", 0644); | |
?> |
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
<?php | |
// Timestamp | |
strtotime // Wandelt ein beliebiges Datum (englisches Format) in einen UNIX-Zeitstempel (Timestamp) um | |
mktime // Gibt den Unix-Timestamp/Zeitstempel für ein Datum zurück | |
strtotime("now") | |
strtotime($_POST['jahr']."-".$_POST['monat']."-".$_POST['tag']) | |
mktime ( stunden, minuten, sekunden, monat, tag, jahr ); | |
mktime ( 0, 0, 0, 7, 12, 2005 ); |
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
<?php | |
// Erstes Zeichen 'gross' | |
// Gibt das erste Zeichen eines Strings gross aus, sofern es sich um einen Buchstaben handelt | |
ucfirst ($text) | |
// Alles 'gross' | |
// Gibt den String komplett in Grossbuchstaben aus | |
strtoupper($str); | |
// Alles 'klein' |
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
<?php | |
// Zahlenbereich mittels Schleife erzeugen | |
for ( $x=2005; $x<2015; $x++ ) | |
{ | |
echo ">$x\n<br>"; | |
} | |
// Rollmenu aus definiertem Zahlenbereich | |
echo "<select>"; | |
for ( $x=2005; $x<2015; $x++ ) |
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
<?php | |
if ($mode == '1') | |
{ | |
/* Codeblock */ ; | |
} | |
elseif ($mode == '2') | |
{ | |
/* Codeblock */ ; | |
} | |
else |