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
<?php | |
echo 'basename(dirname(__FILE__)) = ' . basename(dirname(__FILE__)) . "<br/>"; | |
echo '$_SERVER["PHP_SELF"] = ' . $_SERVER["PHP_SELF"] . "<br/>"; | |
echo '$_SERVER["DOCUMENT_ROOT"] = ' . $_SERVER["DOCUMENT_ROOT"] . "<br/>"; | |
echo 'dirname(__FILE__) = ' . dirname(__FILE__) . "<br/>"; | |
echo 'getcwd() = ' . getcwd() . "<br/>"; | |
echo '__FILE__ = ' . __FILE__ . "<br/>"; | |
phpinfo(); | |
?> |
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
<?php | |
header('HTTP/1.1 503 Service Temporarily Unavailable'); | |
header('Status: 503 Service Temporarily Unavailable'); | |
header('Retry-After: 3600'); | |
?><!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Website wird gewartet</title> | |
</head> |
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
<?php ob_start(); | |
header('HTTP/1.1 503 Service Temporarily Unavailable'); | |
header('Status: 503 Service Temporarily Unavailable'); | |
header('Retry-After: 3600'); | |
mail("info@ihredomain", "Datenbankfehler", "Schon wieder die Datenbank!", "From: Meine Website"); | |
?><!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Website nicht erreichbar</title> |
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
/* CSS Styles ausserhalb der folgenden speziellen Media Querys sind fuer grosse Monitore, breiter als 1199px, vorgesehen */ | |
@media all and (max-width: 1199px) { | |
/* CSS Styles fuer grosse Displays */ | |
} | |
@media all and (max-width: 991px) { | |
/* CSS Styles fuer Tablets hochkant */ | |
} | |
@media all and (max-width: 768px) { | |
/* CSS Styles fuer Smartphones, horizontal */ | |
} |
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
function wh_add_image_sizes_to_backend( $existingsizes ) { | |
$addsizes = array( | |
"wh-homepage-teaser" => 'WH Homepage Teaser', | |
"wh-landingpage-stage" => 'WH Landingpage Stage', | |
"wh-detailpage-feature" => 'WH Detailpage Feature' | |
); | |
$newsizes = array_merge( $existingsizes, $addsizes ); | |
return $newsizes; | |
} | |
add_filter( 'image_size_names_choose', 'wh_add_image_sizes_to_backend' ); |
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
<?php | |
/** | |
* @package WH_Hello_World | |
* @version 1.1.0 | |
*/ | |
/* | |
Plugin Name: WH Hello World | |
Plugin URI: https://wordpress-handbuch.com | |
Description: Testausgabe in Front- und Backend | |
Author: Johannes Mustermann |
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
jQuery(document).ready(function( $ ){ | |
jQuery('select#wh_eyecatcher_style').on('change', function () { | |
$("textarea#wh_eyecatcher_css").val(this.value); | |
$("div#wh-eyecatcher").attr("style",this.value); | |
}); | |
jQuery('textarea#wh_eyecatcher_css').on('change keyup paste', function () { | |
$("div#wh-eyecatcher").attr("style",this.value); | |
}); | |
jQuery('input#wh_eyecatcher_slogan').on('change keyup paste', function () { | |
$("div#wh-eyecatcher").html($("input#wh_eyecatcher_slogan").attr("value")); |
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
<?php | |
/* | |
Plugin Name: WH Eyecatcher | |
Plugin URI: https://wordpress-handbuch.com/wh-eyecatcher | |
Description: Add a floating slogan to eyery page of your website | |
Version: 1.0.2 | |
Author: WordPress-Handbuch | |
Author URI: https://wordpress-handbuch.com | |
License: GPL v2 or later | |
Copyright 2019 Richard Eisenmenger |
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
<?php | |
/** | |
* WH HTML Vorlage functions and definitions | |
* | |
* @link @link https://developer.wordpress.org/themes/basics/theme-functions/ | |
* | |
* @package WH_HTML_Vorlage | |
*/ | |
/** |
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
body { | |
background-color: #00ffff; | |
color: #0000ff; | |
} | |
.wp-block { | |
max-width: 300px; | |
} | |
.wp-block[data-align="wide"] { | |
max-width: 500px; | |
} |
NewerOlder