Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Dec 28th, 2012  |  syntax: None  |  size: 1.77 KB  |  views: 26  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?php
  2. if ( ! function_exists( 'raindrops_posted_date' ) ) :
  3.         function raindrops_posted_date() {
  4.                 ?>
  5.                 <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>
  6.                 <?php
  7.                 global $post;
  8.         $day = get_the_date( 'd' );
  9.         $month = get_the_date( 'M' );
  10.                 ?>
  11.                 <div class="post-date">
  12.                         <span class="post-month"><?php echo $month; ?></span>
  13.                         <span class="post-day"><?php echo $day; ?></span>
  14.                 </div>
  15.                 <?php
  16.         }
  17. endif;
  18.  
  19. if (!function_exists( 'twentyeleven_posted_on' ) ) :
  20. /**
  21.  * Create our own twentyeleven_posted_on to override parent function in our child theme
  22.  */
  23. function twentyeleven_posted_on() {
  24.         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' ),
  25.                 esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
  26.                 esc_attr( sprintf( __( 'View all posts by %s', 'twentyeleven' ), get_the_author() ) ),
  27.                 get_the_author()
  28.         );
  29. }
  30.  
  31. function custom_excerpt_length( $length ) {
  32.         return 85;
  33. }
  34.  
  35. if ( function_exists( 'add_theme_support' ) )
  36. add_theme_support( 'post-thumbnails' );
  37.  
  38. add_filter( 'excerpt_length', 'custom_excerpt_length', 999 );
  39.  
  40.  
  41. // Remove Windows Live Writer link in header
  42. // Do Not do this if you use it
  43. remove_action('wp_head', 'wlwmanifest_link');
  44. remove_action('wp_head', 'rsd_link');
  45.  
  46. // Remove WP version info
  47. function hide_wp_vers()
  48. {
  49.     return '';
  50. } // end hide_wp_vers function
  51.  
  52. add_filter('the_generator','hide_wp_vers');
  53.  
  54.  
  55. if ( function_exists( 'add_theme_support' ) )
  56. add_theme_support( 'post-thumbnails' );
  57.  
  58.  
  59. endif;
clone this paste RAW Paste Data