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 | |
/* | |
Template Name: Kontakt | |
*/ | |
?> | |
<?php /* other template code goes here... */ ?> | |
<?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
SetEnvIf Request_URI "/uri.php$" test_uri | |
Order Deny,Allow | |
AuthUserFile /path/to/.htpasswd | |
AuthName "Bitte Anmelden" | |
AuthType Basic | |
<Limit GET> | |
require valid-user | |
</Limit> |
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
/* set equal height on boxes */ | |
/* http://stackoverflow.com/questions/5052673/jquery-min-max-property-from-array-of-elements */ | |
Array.max = function( array ){ | |
return Math.max.apply( Math, array ); | |
}; | |
var heights = jQuery(".box").map(function() { | |
return jQuery(this).height(); | |
}).get(); | |
jQuery(".box").css("height", Array.max(heights)); |
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 | |
$pagekids = get_pages( "child_of=".$post->ID."&sort_column=menu_order" ); | |
if ( $pagekids ) { | |
$firstchild = $pagekids[0]; | |
wp_redirect( get_permalink( $firstchild->ID ) ); | |
} | |
?> |
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
.prevent-text-breakouts { | |
-ms-word-break: break-all; | |
word-break: break-all; | |
word-break: break-word; | |
-webkit-hyphens: auto; | |
-moz-hyphens: auto; | |
hyphens: auto; | |
} |
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 | |
add_filter( 'wpcf7_form_class_attr', 'custom_custom_form_class_attr' ); | |
function custom_custom_form_class_attr( $class ) { | |
$class .= ' nice'; | |
return $class; | |
} | |
?> |
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
h1 { | |
background: url(image.gif); | |
height: 25px; | |
text-indent: -999em; | |
width: 250px; | |
overflow: hidden; | |
} |
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
RewriteBase / | |
# Copy HTTP Authorization header value to HTTP_AUTOHRIZATION server variable for use by script | |
RewriteRule ^ - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] | |
# On live server, rewrite requests for URL-paths which do not resolve to specific | |
# physically-existing filetypes to my script, excluding the script's URL-path itself. | |
RewriteCond %{HTTP_HOST} !^localhost$ | |
RewriteCond $1 !^index\.php | |
RewriteCond %{REQUEST_FILENAME} !-f |
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 | |
wp_nav_menu( array( | |
'theme_location' => 'homepage_navigation_left', | |
'container' => FALSE, | |
'echo' => true, | |
'before' => '', | |
'after' => '', | |
'link_before' => '', | |
'link_after' => '', |
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
* { | |
margin: 0; | |
padding: 0; | |
} | |
html, body, #wrap { | |
height: 100%; | |
} | |
body > #wrap { |