'Main Sidebar', 'id' => 'main_sidebar', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => 'Footer 1', 'id' => 'footer1', 'before_widget' => '', 'before_title' => '', ) ); register_sidebar( array( 'name' => 'Footer 2', 'id' => 'footer2', 'before_widget' => '', 'before_title' => '', ) ); register_sidebar( array( 'name' => 'Footer 3', 'id' => 'footer3', 'before_widget' => '', 'before_title' => '', ) ); } add_action( 'widgets_init', 'arphabet_widgets_init' ); /* Featured Image Support */ add_theme_support( 'post-thumbnails' ); if ( function_exists( 'add_image_size' ) ) { add_image_size( 'home-thumb', 500, 333, array( 'center', 'center' ) ); //(cropped) add_image_size( 'home2-thumb', 800, 533, array( 'center', 'center' ) ); //(cropped) } /* Automatische Anführungszeichen */ function deutscheanfuehrungen($content) { $content = str_replace (' “', ' „', $content); $content = str_replace ('”', '“', $content); $content = str_replace (' &#quot;', ' „', $content); $content = str_replace ('&#quot;', '“', $content); $content = str_replace (' "', ' „', $content); $content = str_replace ('"', '“', $content); $content = str_replace (' ‘', ' ‚', $content); $content = str_replace ('’', '‘', $content); return $content; } add_filter('the_content', 'deutscheanfuehrungen'); add_filter('get_the_content', 'deutscheanfuehrungen'); add_filter('the_title', 'deutscheanfuehrungen'); add_filter('get_the_title', 'deutscheanfuehrungen'); add_filter('the_excerpt', 'deutscheanfuehrungen'); add_filter('get_the_excerpt', 'deutscheanfuehrungen'); /* Reset Gallery */ add_filter('gallery_style', create_function( '$css', 'return preg_replace("##s", "", $css);' ) ); /* Clean Header */ remove_action( 'wp_head', 'feed_links_extra'); // Display the links to the general feeds: Post and Comment Feed remove_action( 'wp_head', 'feed_links'); // Display the link to the Really Simple Discovery service endpoint, EditURI link remove_action( 'wp_head', 'rsd_link'); // Display the link to the Windows Live Writer manifest file. remove_action( 'wp_head', 'wlwmanifest_link' ); // index link remove_action( 'wp_head', 'index_rel_link' ); // prev link remove_action( 'wp_head', 'parent_post_rel_link', 10); // start link remove_action( 'wp_head', 'start_post_rel_link', 10); // Display relational links for the posts adjacent to the current post. remove_action( 'wp_head', 'adjacent_posts_rel_link_wp_head', 10); // Display the XHTML generator that is generated on the wp_head hook, WP version remove_action( 'wp_head', 'wp_generator'); /* Custom Fields */ add_action('admin_init','customize_meta_boxes'); function customize_meta_boxes() { remove_meta_box('postcustom','post','normal'); } add_filter('show_admin_bar', '__return_false'); add_theme_support( 'html5', array( 'search-form' ) ); add_filter( 'jpeg_quality', create_function( '', 'return 100;' ) ); // Delete Original Size 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(); $uploaded_image_location = $upload_dir['basedir'] . '/' .$image_data['file']; $large_image_filename = $image_data['sizes']['large']['file']; // Do what wordpress does in image_downsize() ... just replace the filenames ;) $image_basename = wp_basename($uploaded_image_location); $large_image_location = str_replace($image_basename, $large_image_filename, $uploaded_image_location); // delete the uploaded image unlink($uploaded_image_location); // rename the large image rename($large_image_location, $uploaded_image_location); // update image metadata and return them $image_data['width'] = $image_data['sizes']['large']['width']; $image_data['height'] = $image_data['sizes']['large']['height']; unset($image_data['sizes']['large']); // Check if other size-configurations link to the large-file foreach($image_data['sizes'] as $size => $sizeData) { if ($sizeData['file'] === $large_image_filename) unset($image_data['sizes'][$size]); } return $image_data; } add_filter('wp_generate_attachment_metadata', 'replace_uploaded_image'); // Infographic Embedder function infographics_on_my_post_types() { return array ( 'post' ); } add_filter ( 'infographic_embedder_post_types', 'infographics_on_my_post_types' ); function infographics_custom_embed_code() { return '' . get_the_title() . 'Infografik von interface medien ' . get_bloginfo('name') . '

Infografik von interface medien: ' . get_bloginfo('name') . '?!

'; } add_filter ( 'infographic_embedder_image_code', 'infographics_custom_embed_code' ); function infographics_custom_image_code() { return '

Infografik herunterladen!

'; } add_filter ( 'infographic_embedder_download_html', 'infographics_custom_image_code' ); function infographics_custom_labeling() { return '

Infografik einbetten!

'; } add_filter ( 'infographic_embedder_embed_html', 'infographics_custom_labeling' ); Betrugsmaschen Archives | Schnittstelle

Beiträge mit dem Schlagwort: Betrugsmaschen