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> | |
# ENGINE ON | |
RewriteEngine On | |
# GZIP FILE | |
<IfModule mod_mime.c> | |
RewriteCond %{REQUEST_URI} /$ | |
RewriteCond %{REQUEST_URI} !^/wp-admin/.* | |
RewriteCond %{REQUEST_METHOD} !=POST | |
RewriteCond %{QUERY_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
# BEGINN CACHIFY | |
<IfModule mod_rewrite.c> | |
# ENGINE ON | |
RewriteEngine On | |
# GZIP FILE | |
<IfModule mod_mime.c> | |
RewriteCond %{REQUEST_URI} /$ | |
RewriteCond %{REQUEST_URI} !^/wp-admin/.* | |
RewriteCond %{REQUEST_METHOD} !=POST |
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('upload_mimes', 'add_custom_upload_mimes'); | |
function add_custom_upload_mimes( $existing_mimes ){ | |
$existing_mimes['zip'] = 'application/zip'; | |
$existing_mimes['eps'] = 'application/eps'; | |
$existing_mimes['rtf'] = 'text/richtext'; | |
$existing_mimes['tiff'] = 'image/tiff'; | |
return $existing_mimes; | |
} |
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 add_top_parent_body_class( $classes ) { | |
if(is_page()): | |
$top_id = ''; | |
$ancestors = get_ancestors(get_the_ID(),'page'); | |
if ( !empty($ancestors)): | |
$top_id = end($ancestors); | |
$classes[] = 'top-parent-'.sanitize_title(get_the_title($top_id)); | |
else: | |
$classes[] = 'top-parent-'.sanitize_title(get_the_title(get_the_ID())); | |
endif; |
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
UPDATE wp_posts SET post_content = REPLACE ( post_content, 'http://127.0.0.1:8080/wordpress', 'http://www.mein-blog.info'); | |
UPDATE wp_options SET option_value = REPLACE ( option_value, 'http://127.0.0.1:8080/wordpress', 'http://www.mein-blog.info'); |
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_theme_support( 'post-thumbnails' ); |
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
add_filter('wp_generate_attachment_metadata','replace_uploaded_image'); | |
function replace_uploaded_image($image_data) | |
{ | |
// if there is no large image : return | |
if ( !isset($image_data['sizes']['large']) ) | |
return $image_data; | |
// paths to the uploaded image and the large image | |
$upload_dir = wp_upload_dir(); |
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
add_filter('upload_mimes', 'eigene_upload_mimes'); | |
function eigene_upload_mimes( $vorhandene_mimes ){ | |
$vorhandene_mimes['zip'] = 'application/zip'; | |
$vorhandene_mimes['swf'] = 'application/x-shockwave-flash'; | |
$vorhandene_mimes['rtf'] = 'text/richtext'; | |
$vorhandene_mimes['tiff'] = 'image/tiff'; | |
return $vorhandene_mimes; | |
} |
NewerOlder