Permalink
Browse files

removing the comments functions

they're seldom used since we usually go for LiveFyre, Disqus, or
Intense Debate... We left a comment in with a link to where they can be
found if you need to do some super customized comments.
  • Loading branch information...
mimoYmima committed Dec 30, 2012
1 parent 166ee24 commit 3b5ade086e2c55ca07f2f81efe74565ddbf8ace0
Showing with 10 additions and 59 deletions.
  1. +10 −59 functions.php
View
@@ -115,67 +115,18 @@ function get_the_slug() {
}
}
-// Custom callback to list comments in the your-theme style
-// http://themeshaper.com/2009/07/01/wordpress-theme-comments-template-tutorial/
-function custom_comments($comment, $args, $depth) {
- $GLOBALS['comment'] = $comment;
- $GLOBALS['comment_depth'] = $depth;
- ?>
- <li id="comment-<?php comment_ID() ?>" <?php comment_class() ?>>
- <div class="comment-author vcard"><?php commenter_link() ?></div>
- <div class="comment-meta"><?php printf(__('Posted %1$s at %2$s <span class="meta-sep">|</span> <a href="%3$s" title="Permalink to this comment">Permalink</a>', 'your-theme'),
- get_comment_date(),
- get_comment_time(),
- '#comment-' . get_comment_ID() );
- edit_comment_link(__('Edit', 'your-theme'), ' <span class="meta-sep">|</span> <span class="edit-link">', '</span>'); ?></div>
- <?php if ($comment->comment_approved == '0') _e("\t\t\t\t\t<span class='unapproved'>Your comment is awaiting moderation.</span>\n", 'your-theme') ?>
- <div class="comment-content">
- <?php comment_text() ?>
- </div>
- <?php // echo the comment reply link
- if($args['type'] == 'all' || get_comment_type() == 'comment') :
- comment_reply_link(array_merge($args, array(
- 'reply_text' => __('Reply','your-theme'),
- 'login_text' => __('Log in to reply.','your-theme'),
- 'depth' => $depth,
- 'before' => '<div class="comment-reply-link">',
- 'after' => '</div>'
- )));
- endif;
- ?>
-<?php } // end custom_comments
-
-// Custom callback to list pings
-function custom_pings($comment, $args, $depth) {
- $GLOBALS['comment'] = $comment;
- ?>
- <li id="comment-<?php comment_ID() ?>" <?php comment_class() ?>>
- <div class="comment-author"><?php printf(__('By %1$s on %2$s at %3$s', 'your-theme'),
- get_comment_author_link(),
- get_comment_date(),
- get_comment_time() );
- edit_comment_link(__('Edit', 'your-theme'), ' <span class="meta-sep">|</span> <span class="edit-link">', '</span>'); ?></div>
- <?php if ($comment->comment_approved == '0') _e('\t\t\t\t\t<span class="unapproved">Your trackback is awaiting moderation.</span>\n', 'your-theme') ?>
- <div class="comment-content">
- <?php comment_text() ?>
- </div>
-<?php } // end custom_pings
-
-// Produces an avatar image with the hCard-compliant photo class
-function commenter_link() {
- $commenter = get_comment_author_link();
- if ( ereg( '<a[^>]* class=[^>]+>', $commenter ) ) {
- $commenter = ereg_replace( '(<a[^>]* class=[\'"]?)', '\\1url ' , $commenter );
- } else {
- $commenter = ereg_replace( '(<a )/', '\\1class="url "' , $commenter );
- }
- $avatar_email = get_comment_author_email();
- $avatar = str_replace( "class='avatar", "class='photo avatar", get_avatar( $avatar_email, 80 ) );
- echo $avatar . ' <span class="fn n">' . $commenter . '</span>';
-} // end commenter_link
-
// To REMOVE unused dashboard widgets you can uncomment the next line and customize /includes/remove.php
// require_once('includes/remove.php');
+/*
+COMMENT FUNCTIONS:
+we usually use LiveFyre, Disqus, or Intense Debate for comments
+also jetpack has some kind of commenting plugin that we haven't tried yet
+if you're making a site that requires a totally custom comments area,
+check this tutorial which has a bunch of functions to customize comments:
+http://themeshaper.com/2009/07/01/wordpress-theme-comments-template-tutorial/
+*/
+
+
?>

0 comments on commit 3b5ade0

Please sign in to comment.