Advertisement
Guest User

Functions.php

a guest
May 17th, 2011
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.25 KB | None | 0 0
  1. <?php function register_my_menus() {
  2.   register_nav_menus(
  3.     array('' => __( 'Primary Navigation' ) )
  4.   );
  5. }
  6.  
  7. ?>
  8.  
  9. <?php
  10.     function mytheme_comment($comment, $args, $depth) {
  11.    $GLOBALS['comment'] = $comment; ?>
  12.    <li <?php comment_class(); ?> id="li-comment-<?php comment_ID() ?>">
  13.      <div id="comment-<?php comment_ID(); ?>">
  14.       <div class="comment-author vcard">
  15.          <?php echo get_avatar($comment,$size='48',$default='<path_to_url>' ); ?>
  16.  
  17.          <?php printf(__('<cite class="fn">%s</cite> <span class="says">says:</span>'), get_comment_author_link()) ?>
  18.       </div>
  19.       <?php if ($comment->comment_approved == '0') : ?>
  20.          <em><?php _e('Your comment is awaiting moderation.') ?></em>
  21.          <br />
  22.       <?php endif; ?>
  23.  
  24.       <div class="comment-meta commentmetadata"><a href="<?php echo htmlspecialchars( get_comment_link( $comment->comment_ID ) ) ?>"><?php printf(__('%1$s at %2$s'), get_comment_date(),  get_comment_time()) ?></a><?php edit_comment_link(__('(Edit)'),'  ','') ?></div>
  25.  
  26.       <?php comment_text() ?>
  27.  
  28.       <div class="reply">
  29.          <?php comment_reply_link(array_merge( $args, array('depth' => $depth, 'max_depth' => $args['max_depth']))) ?>
  30.       </div>
  31.      </div>
  32. <?php
  33.         }
  34.         ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement