/** * Custom the comments list. * * @since 0.0.1 * * @for wp_list_comments() callback in comments.php * */ function vp_comments_list($comment, $args, $depth) { $GLOBALS['comment'] = $comment; switch ($comment->comment_type) { case 'pingback': case 'trackback': break; default: ?> <li <?php comment_class('inner'); ?> id="li-comment-<?php comment_ID(); ?> "> <article id="comment-<?php comment_ID(); ?> " class="comment"> <footer class="comment-meta"> <div class="comment-author vcard"> <?php vp_user_avatar_link(48, $comment->user_id); ?> <span class="fn"><?php vp_user_profile_link($comment->user_id); ?> </span> <?php if (is_user_logged_in() && comments_open()) { vp_comment_reply_link(); } ?> <?php printf('<time class="comment-datetime" pubdate datetime="%1$s">%2$s</time>', get_comment_time('c'), get_comment_time('Y-n-j @ g:i a')); ?> <?php edit_comment_link('edit', '<span class="edit-link">- ', '</span>'); ?> </div> </footer> <div class="comment-content"> <?php if ($comment->comment_approved == '0') { ?> <p class="comment-awaiting-moderation"><?php _e('Your reply is awaiting moderation.', 'v2press'); ?> </p> <?php } ?> <?php comment_text(); ?> </div> </article> </li> <?php break; } }
get_header(); ?> <div id="main"> <section id="following-page-box" class="box"> <div class="heading"> <p class="xsmall fade"><?php vp_breadcrumb(); ?> </p> </div> <div class="inner"> <?php if (0 < $count) { foreach ($following as $k => $v) { vp_user_avatar_link(48, $v); } } else { ?> <h2 class="xlarge fade center"><?php _e('You have not following any users yet.', 'v2press'); ?> </h2> <?php } // END if 0 < $count ?> </div> <div class="footing"> <p class="xsmall fade"><?php printf(__('%d following in total.', 'v2press'), $count);
</p> </div> <div class="inner"> <h1 class="member-name xxlarge"><?php echo $user->user_login; if ($user->ID == get_current_user_id()) { ?> <span class="snow lighter xsmall"><?php _e('(This is you!)', 'v2press'); ?> </span><?php } ?> </h1> <?php vp_user_avatar_link(72, $user->ID); ?> <p class="fade xsmall"><?php printf(__('Member %s, created at %s.', 'v2press'), $user->ID, date_i18n('Y-n-j g:i a', strtotime($user->user_registered))); ?> </p> <?php vp_following(); ?> <?php vp_member_info_list(); ?> <?php if (!empty($user->description)) { echo '<div class="member-info-desc">' . $user->description . '</div>'; }
get_header(); ?> <div id="main"> <section id="following-page-box" class="box"> <div class="heading"> <p class="xsmall fade"><?php vp_breadcrumb(); ?> </p> </div> <div class="inner"> <?php if (0 < $count) { foreach ($following as $f) { vp_user_avatar_link(48, $f); } } else { ?> <h2 class="xlarge fade center"><?php _e('You have not following any users yet.', 'v2press'); ?> </h2> <?php } // END if 0 < $count ?> </div> <div class="footing"> <p class="xsmall fade"><?php printf(__('%d following in total.', 'v2press'), $count);
<aside id="sidebar"> <div id="user-panel" class="box"> <?php if (is_user_logged_in()) { ?> <div class="inner"> <?php vp_user_avatar_link(); ?> <strong><?php vp_user_profile_link(); ?> </strong> <div id="favorites"> <ul> <li><a rel="nofollow" href="<?php echo vp_get_page_url_by_slug('bookmarks'); ?> "><?php printf(_n('<span>%d</span> Bookmark', '<span>%d</span> Bookmarks', vp_get_bookmarks_count(), 'v2press'), vp_get_bookmarks_count()); ?> </a></li> <li class="last"><a rel="nofollow" href="<?php echo vp_get_page_url_by_slug('following'); ?> "><?php printf(__('<span>%d</span> Following', 'v2press'), vp_get_following_count()); ?> </a></li> </ul> </div>
/** * Display the post author's avatar link to profile page, must use within the loop. * * @since 0.0.1 * * @use vp_user_avatar_link() */ function vp_the_author_avatar_link($size = 48) { return vp_user_avatar_link($size, get_the_author_meta('ID')); }