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 | |
/** | |
* Manage WordPress contact fields. | |
* Usage: | |
require './class.TTT_Contactfields.php'; | |
$TTT_Contactfields = new TTT_Contactfields( | |
array ( | |
'Twitter' | |
, 'Facebook' |
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 | |
// for the functions.php | |
add_filter('script_loader_src', 'toscho_script_loader_filter'); | |
/** | |
* Removes the version parameter from the script URI for the Google CDN. | |
* | |
* @param string $src Original script URI | |
* @return string | |
*/ |
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: Show Upload Info | |
Description: Insert [uploadinfo] into a page to get detailed information about your upload environment. | |
Version: 1.3 | |
Author: Thomas Scholz | |
Author URI: http://toscho.de | |
License: GPL v2 | |
*/ | |
if ( ! function_exists( 'uploadinfo_shortcode' ) ) |
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 | |
/** | |
* Adds a form field to the edit profile page. | |
* | |
* Usage: | |
add_action( 'init', 'init_profile_addons' ); | |
function init_profile_addons() | |
{ | |
$GLOBALS['extended_author_text'] = new TTT_User_Profile_Addon( | |
array ( |
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 # -*- coding: utf-8 -*- | |
/* | |
Plugin Name: Extended Help | |
Description: Help texts for super heroes | |
Version: 0.1 | |
Author: Thomas Scholz | |
Author URI: http://toscho.de | |
License: GPL | |
*/ |
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: Placekitten | |
Description: Shortcode [placekitten w=100 h=300 g=1 alt=kitten] and action. | |
Version: 1.0 | |
Author: Thomas Scholz | |
Author URI: http://toscho.de | |
License: GPL | |
*/ |
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 | |
/** | |
* Shortens an UTF-8 encoded string without breaking words. | |
* | |
* @link http://wordpress.stackexchange.com/q/11085/11089#11089 | |
* @param string $string string to shorten | |
* @param int $max_chars maximal length in characters | |
* @param string $append replacement for truncated words. | |
* @return string | |
*/ |
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: List Comment Filters | |
Description: List all comment filters on wp_footer | |
Version: 1.1 | |
Author: Fuxia Scholz | |
License: GPL v2 | |
*/ | |
add_action( 'wp_footer', 'list_comment_filters' ); |
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: *WPSE13210 | |
*/ | |
! defined( 'ABSPATH' ) and exit; | |
add_action( 'init', 'register_academia' ); | |
/** | |
* Registers te post type academias |
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
body | |
{ | |
padding: 30px 15%; | |
font-family: Georgia !important; | |
line-height: 1.45; | |
max-width: 40em; | |
background: #f5f5ee; | |
} | |
body>ul>li | |
{ |