windhamdavid 11 years ago
parent
commit
37999029af
1 changed files with 13 additions and 0 deletions
  1. 13 0
      inc/template.php

+ 13 - 0
inc/template.php

@@ -58,6 +58,19 @@ function dw_paging_nav() {
 }
 endif;
 
+if ( ! function_exists( 'dw_posted_at' ) ) :
+function dw_posted_at() {
+	$categories_list = get_the_category_list( __( ', ', 'dw' ) );	
+	if ( in_category( 'fb' )) {
+		echo '<div class="categories-fb"><a href="http://facebook.com/windhamdavid" target="_blank">posted on <span class="fb">&nbsp;</span></a></div>';
+	} elseif ( in_category( array( 'twitter', 'tumblr' ) )) { 
+		
+	} else {
+		echo '<span class="categories-links">' . $categories_list . '</span>';
+	}	
+}
+endif;
+
 if ( ! function_exists( 'dw_posted_on' ) ) :
 function dw_posted_on() {
 	return sprintf( __( '<span %1$s></span> %2$s by %3$s', 'daw' ),