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
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase / | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule . /index.html [L] | |
</IfModule> |
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
cursor url(cursor1.svg), 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
.monospaced | |
font-family Menlo, Courier, Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace |
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
-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
.absolute-center | |
// height must be declared | |
margin auto | |
position absolute | |
top 0 | |
left 0 | |
bottom 0 | |
right 0 |
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 | |
$id = intval($_GET['id']); | |
require_once "../../../wp-load.php"; | |
$args = array( 'numberposts' => 5 ); | |
$lastposts = get_posts( $args ); | |
foreach($lastposts as $post) : setup_postdata($post); | |
$vimeo = get_post_meta($post->ID, 'vimeo_url', 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 if (current_user_can('level_10')) : ?> | |
<?php print "control the world"; ?> | |
<?php elseif (current_user_can('level_7')) : ?> | |
<?php print "edit, write, publish, delete, read, comment"; ?> | |
<?php elseif (current_user_can('level_4')) : ?> | |
<?php print "write, publish, delete, read, comment"; ?> | |
<?php elseif (current_user_can('level_2')) : ?> | |
<?php print "write, read, comment"; ?> | |
<?php elseif (current_user_can('level_0')) : ?> | |
<?php print "read and comment"; ?> |
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 getVimeoVideoThumbnail($id) { | |
$hash = unserialize( file_get_contents("http://vimeo.com/api/v2/video/$id.php") ); | |
$thumbnail = $hash[0]['thumbnail_large']; | |
return $tumbnail; | |
} |
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 linkifyYouTubeUrl($text) { | |
$text = preg_replace('~ | |
# Match non-linked youtube URL in the wild. (Rev:20111012) | |
https?:// # Required scheme. Either http or https. | |
(?:[0-9A-Z-]+\.)? # Optional subdomain. | |
(?: # Group host alternatives. | |
youtu\.be/ # Either youtu.be, | |
| youtube\.com # or youtube.com followed by | |
\S* # Allow anything up to VIDEO_ID, | |
[^\w\-\s] # but char before ID is non-ID char. |
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
<!-- Facebook OpenGraph tags --> | |
<meta property="og:site_name" content="<?php bloginfo('name'); ?>" /> | |
<meta property="og:locale" content="de_DE" /> | |
<meta property="og:type" content="website" /> | |
<meta property="og:image" content="<?php bloginfo('template_url') ?>/screenshot.png" /> | |
<meta property="og:url" content="<?php bloginfo('url'); ?>"/> | |
<meta property="og:title" content="<?php bloginfo('name'); ?>" /> |