Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if ( function_exists('register_sidebar') )
- register_sidebar();
- ?>
- <?php
- function list_pings($comment, $args, $depth) {
- $GLOBALS['comment'] = $comment;
- ?>
- <li id="comment-<?php comment_ID(); ?>"><?php comment_author_link(); ?>
- <?php } ?>
- <?php
- add_filter('get_comments_number', 'comment_count', 0);
- function comment_count( $count ) {
- if ( ! is_admin() ) {
- global $id;
- $comments_by_type = &separate_comments(get_comments('status=approve&post_id=' . $id));
- return count($comments_by_type['comment']);
- } else {
- return $count;
- }
- }
- ?>
- <?php
- function ddnetwork_comment($comment, $args, $depth) {
- $GLOBALS['comment'] = $comment;
- ?>
- <li <?php comment_class(); ?> id="li-comment-<?php comment_ID() ?>">
- <div class="comment-container" id="comment-<?php comment_ID(); ?>">
- <div class="comment-left-box">
- <div class="name-container">
- <?php printf(__('<cite class="fn">%s</cite>'), get_comment_author_link()) ?>
- </div><!--/name-container-->
- <div class="author-avatar">
- <?php echo get_avatar($comment, $size = '80', 'http://www.static.dvorakdesigns.com/blog-files/images/default-avatar.gif' ); ?><br />
- <a href="<?php comment_author_url(); ?>" rel="external nofollow" target="_blank">Website</a>
- </div><!--/author-avatar-->
- </div><!--/comment-left-box-->
- <div class="float-left"><img src="<?php bloginfo('template_url'); ?>/images/single-comment-arrow.png" width="17" height="72" alt="" /></div><!--comment-arrow-->
- <div class="comment-right-box">
- <div class="comment-body">
- <?php comment_text() ?> <?php comment_reply_link(array_merge( $args, array('depth' => $depth, 'max_depth' => $args['max_depth']))) ?> <?php edit_comment_link(__('(Edit)'),' ','') ?>
- </div><!--comment-body-->
- <div class="comment-meta commentmetadata float-right">
- <a href="<?php echo htmlspecialchars( get_comment_link( $comment->comment_ID ) ) ?>" title="Get Comment Permalink"><?php printf(__('%1$s at %2$s'), get_comment_date(), get_comment_time()) ?></a>
- </div><!--/comment-meta-->
- <?php if ($comment->comment_approved == '0') : ?>
- <em><?php comment_author(); ?></em>
- <?php endif; ?>
- </div><!--comment-right-box-->
- <div class="clear"></div>
- </div><!--/comment-container-->
- <?php
- }
- ?>
- <?php
- if ( function_exists('register_sidebar') )
- register_sidebar(array(
- 'before_widget' => '',
- 'after_widget' => '',
- 'before_title' => '<div class="box-header">',
- 'after_title' => '</div>',
- ));
- ?>
- <?php
- function home_page_menu_args( $args ) {
- $args['show_home'] = true;
- return $args;
- }
- add_filter( 'wp_page_menu_args', 'home_page_menu_args' );
- ?>
Advertisement
Add Comment
Please, Sign In to add comment