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
<div class="outer"> | |
<article> | |
<div class="nest-1">nest-1</div> | |
<div class="nest-2">nest-2</div> | |
</article> | |
<aside>aside</aside> | |
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
curl -O http://wordpress.org/latest.tar.gz ; tar -xvzf latest.tar.gz ; mv wordpress/* . ; rmdir wordpress/ ; rm latest.tar.gz ; rmdir wordpress/ ; rm latest.tar.gz ; cp wp-config-sample.php wp-config.php ; |
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
<h1>Headline 1 <span>Headline</span></h1> |
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
<h1>Headline 1 <span>H1 small</span></h1> | |
<p>Some Text <span>P small</span></p> |
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 redirect_demo_on_role() { | |
global $current_user; | |
get_currentuserinfo(); | |
if( $current_user->user_login == 'demo' OR | |
$current_user->user_login == 'user.xyz' ) { | |
{ | |
wp_redirect('http://ingozoell.de/portfolio/'); exit; | |
}} | |
} |
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
/* HIDPI Detection ----------------------------------------------- */ | |
var hidpi = 'only screen and (-webkit-min-device-pixel-ratio: 2), only screen and ( min--moz-device-pixel-ratio: 2), only screen and ( -o-min-device-pixel-ratio: 2/1), only screen and ( min-device-pixel-ratio: 2), only screen and ( min-resolution: 192dpi), only screen and ( min-resolution: 2dppx)'; | |
if (Modernizr.mq(hidpi)) { | |
$('html').addClass('hidpi'); | |
} |
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
/* | |
------------------------------------------------------------------------------------------ | |
Clean up output of stylesheet <link> tags | |
------------------------------------------------------------------------------------------ */ | |
function my_clean_style_tag($input) { | |
preg_match_all("!<link rel='stylesheet'\s?(id='[^']+')?\s+href='(.*)' type='text/css' media='(.*)' />!", $input, $matches); | |
// Only display media if it is meaningful | |
$media = $matches[3][0] !== '' && $matches[3][0] !== 'all' ? ' media="' . $matches[3][0] . '"' : ''; | |
return '<link rel="stylesheet" href="' . $matches[2][0] . '"' . $media . '>' . "\n"; | |
} |
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
/* http://jsperf.com/bind-to-ready-and-resize/2 */ | |
$(document).ready(function() { | |
$(function mq_detection() { | |
$(window).resize(function() { | |
if(Modernizr.mq('only screen and (max-width:600px)')) { | |
} else { | |
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
<Files *.xls> | |
ForceType application/octet-stream | |
Header set Content-Disposition attachment | |
</Files> | |
<Files *.eps> | |
ForceType application/octet-stream | |
Header set Content-Disposition attachment | |
</Files> |
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
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
# RewriteCond %{REQUEST_URI} ^.*assets/.* | |
RewriteCond %{REQUEST_FILENAME} ^.*-intern.(jpg|jpeg|gif|bmp|png|pdf)$ | |
RewriteCond %{HTTP_COOKIE} !^.*wordpress_logged_in.*$ [NC] | |
RewriteRule . /wp-login.php?redirect_to=%{REQUEST_URI} [R,L] | |
</IfModule> |