<?php
if ( ! function_exists( 'raindrops_posted_date' ) ) :
function raindrops_posted_date() {
?>
<h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
<?php
global $post;
$day = get_the_date( 'd' );
$month = get_the_date( 'M' );
?>
<div class="post-date">
<span class="post-month"><?php echo $month; ?></span>
<span class="post-day"><?php echo $day; ?></span>
</div>
<?php
}
endif;
if (!function_exists( 'twentyeleven_posted_on' ) ) :
/**
* Create our own twentyeleven_posted_on to override parent function in our child theme
*/
function twentyeleven_posted_on() {
printf( __('<span class="by-author"> <span class="sep">Posted by </span> <span class="author vcard"><a class="url fn n" href="%1$s" title="%2$s" rel="author">%3$s</a></span></span>', 'twentyeleven' ),
esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
esc_attr( sprintf( __( 'View all posts by %s', 'twentyeleven' ), get_the_author() ) ),
get_the_author()
);
}
function custom_excerpt_length( $length ) {
return 85;
}
if ( function_exists( 'add_theme_support' ) )
add_theme_support( 'post-thumbnails' );
add_filter( 'excerpt_length', 'custom_excerpt_length', 999 );
// Remove Windows Live Writer link in header
// Do Not do this if you use it
remove_action('wp_head', 'wlwmanifest_link');
remove_action('wp_head', 'rsd_link');
// Remove WP version info
function hide_wp_vers()
{
return '';
} // end hide_wp_vers function
add_filter('the_generator','hide_wp_vers');
if ( function_exists( 'add_theme_support' ) )
add_theme_support( 'post-thumbnails' );
endif;