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
add_image_size( 'neues-mass', 1600, 1200 ); |
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 Pixelbar_AddSpellChecker($initArray){ | |
$initArray['spellchecker_languages'] = '+Francais=fr, +Deutsch=de, English=en'; | |
return $initArray; | |
} | |
add_filter('tiny_mce_before_init', 'Pixelbar_AddSpellChecker'); |
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
<link rel="shortcut icon" href="/pfad/zum/favicon.ico"> |
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
add_filter('widget_text', 'gibmirphp', 99); | |
function gibmirphp($text) { | |
if (strpos($text, '<' . '?') !== false) { | |
ob_start(); | |
eval('?' . '>' . $text); | |
$text = ob_get_contents(); | |
ob_end_clean(); | |
} | |
return $text; |
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
wp_register_script( 'cycle', 'http://malsup.github.com/jquery.cycle.all.js'); | |
wp_enqueue_script( 'cycle' ); |
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
add_filter('body_class','body_class_section'); | |
function body_class_section($classes) { | |
global $wpdb, $post; | |
if (is_page()) { | |
if ($post->post_parent) { | |
$parent = end(get_post_ancestors($current_page_id)); | |
} else { | |
$parent = $post->ID; | |
} | |
$post_data = get_post($parent, ARRAY_A); |
NewerOlder