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 | |
function ds_admin_bar_scrolltop() { | |
if ( ! is_admin_bar_showing() ) | |
return; | |
?> | |
<script> | |
( function( $ ) { | |
$( '#wpadminbar' ).click( function() { | |
$( 'html, body' ).animate( { scrollTop: 0 }, 100 ); |
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
/*PART FOR PRINTING */ | |
@media all { | |
.page-break { display:none; } | |
} | |
@media print { | |
@page { | |
size: A4 portrait; | |
} | |
.caption { |
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: Google+ Feed | |
*/ | |
/** | |
* A WordPress page template for a Google+ feed. | |
* | |
* @author Dominik Schilling |
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
Tutorial for compiling the Compass.app (http://compass.handlino.com/) | |
===================================================================== | |
Java installed? | |
java -version | |
Load jRuby (for example JRuby 1.6.5.1 Binary .zip) | |
http://jruby.org/download | |
Unzip jRuby to `/usr/local/` |
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
// Custom Border Radius | |
@mixin _border-radius($radius: 5px, $vertical-radius: false) { | |
@if $vertical-radius { | |
// Webkit doesn't understand the official shorthand syntax for specifying | |
// a vertical radius unless so in case there's several we only take the first. | |
@include experimental(border-radius, first-value-of($radius) first-value-of($vertical-radius), | |
not -moz, | |
-webkit, | |
not -o, |
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
// Default font size | |
$base-font-size: 16px; | |
// px2em | |
// Use: font-size: px2em( 12px, 14px ); | |
@function px2em( $target, $context: $base-font-size ) { | |
@if $target == 0 { | |
@return 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
/** | |
* Hook into the backend and load scripts and | |
* init metabox. | |
*/ | |
function ds_gist2wordpress_admin() { | |
add_action( 'wp_ajax_gist', 'ds_gistify' ); | |
add_action( 'admin_print_scripts-post.php', 'ds_gist_js' ); | |
add_action( 'admin_print_scripts-post-new.php', 'ds_gist_js' ); |
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 | |
/* | |
* Entfernt das Gravatar aus der Toolbar. | |
* @link: http://talkpress.de/artikel/wordpress-admin-bar-datenkrake-missbrauch | |
*/ | |
/* < PHP 5.3 */ | |
function ds_add_hide_avatar_filter() { | |
add_filter( 'pre_option_show_avatars', '__return_zero' ); | |
} |
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 | |
/* | |
* Plugin Name: wpSEO Monitor Addon: Google+ Kennzahl | |
* Plugin URI: https://plus.google.com/101675293278434581718/posts/2E88QNTcXjE | |
* Description: Ergänzt den wpSEO Monitor um Google+ Einkreisungen. In wpSEO 3.0.3 bereits fester Bestandteil des Plugin. | |
* Version: 0.3 | |
* Author: Dominik Schilling | |
* Author URI: http://wpgrafie.de | |
* License: GPLv2 | |
* |
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 | |
/** | |
* Plugin Name: Remove Comment Author IPs | |
* Version: 0.1.0 | |
* Description: Removes the IP addresses of comment authors on a scheduled time. | |
* Author: Dominik Schilling | |
* Author URI: http://wphelper.de/ | |
* Plugin URI: https://gist.github.com/1836266 | |
* | |
* License: GPLv2 or later |