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 | |
/** | |
* Gibt den Zeitpunkt der letzten Änderung aller verwendeten | |
* Dateien als UNIX-Timestamp zurück. | |
* @return integer | |
*/ | |
function real_lastmod() | |
{ | |
$arr_all_files = get_included_files(); | |
if ( !array_key_exists(1, $arr_all_files) ) |
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 is_local() | |
{ | |
return ( '127.0.0.1' == $_SERVER["REMOTE_ADDR"]) ? TRUE : FALSE; | |
} |
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 is_ascii ($str) | |
{ | |
return preg_match("/[\\000-\\126]/", $str); | |
} |
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 | |
/** | |
* Description | |
* | |
* Aufruf nur durch | |
<code>{NAME}::getInstance()</code> | |
* @author Thomas Scholz <[email protected]> | |
*/ | |
class {NAME} { |
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 view all posts page to any archive. | |
* | |
* @author Thomas Scholz http://toscho.de | |
* @version 1.1 | |
* @license: GPL2 | |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html |
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('the_excerpt_rss', 'my_fulltext_desc'); | |
function my_fulltext_desc($excerpt) | |
{ | |
if ( ! is_feed() ) | |
{ | |
return $excerpt; | |
} | |
return apply_filters('the_content', get_the_content() ); |
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 categories_to_classes() | |
{ | |
$out = ''; | |
$cats = get_the_category(); | |
foreach ( $cats as $cat_object ) | |
{ | |
$out .= $cat_object->slug . ' '; | |
} |
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 | |
/** | |
* Adjust the public visible language declarations. | |
* | |
* @author "Thomas Scholz" http://toscho.de | |
* @version 1.0 | |
*/ | |
class Toscho_Language_Filter | |
{ | |
/** |
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 | |
/** | |
* Handler for filters and actions for the comment form. | |
* | |
* comment_form(); in the theme’s comments.php and WP 3+ is required. | |
* | |
* @author "Thomas Scholz" http://toscho.de | |
* @version 1.2 | |
* | |
*/ |
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
@charset "utf-8"; | |
/* Name: monospace: Consolas */ | |
pre, code, samp, var, | |
.code, .pre, | |
textarea | |
{ | |
font-family: Consolas, | |
/* make unicode characters work: */ | |
'Lucida Sans Unicode', | |
'Arial Unicode MS' |
OlderNewer