Beispiel #1
0
 function vw_the_author_avatar($author = null)
 {
     if (!$author) {
         $author = vw_get_current_author();
     }
     $author_avatar = vw_get_avatar(get_the_author_meta('user_email', $author->ID), VW_CONST_AVATAR_SIZE_LARGE, '', get_the_author_meta('display_name', $author->ID));
     if (is_author()) {
         echo '<span class="vw-author-avatar">' . $author_avatar . '</span>';
     } else {
         echo '<a class="vw-author-avatar" href="' . get_author_posts_url(get_the_author_meta('ID')) . '" title="' . sprintf(__('View all posts by %s', 'envirra'), get_the_author_meta('display_name', $author->ID)) . '">';
         echo $author_avatar;
         echo '</a>';
     }
 }
<div class="vw-post-box vw-post-box-style-left-thumbnail vw-post-box-small-comment clearfix">
	<a class="vw-post-box-thumbnail" href="<?php 
echo get_permalink($comment->comment_post_ID);
?>
" title="<?php 
printf(esc_attr__('Permalink to %s', 'envirra'), get_the_title($comment->comment_post_ID));
?>
" rel="bookmark">
		<?php 
echo vw_get_avatar($comment->comment_author_email, 60);
?>

	</a>

	<h5 class="vw-post-box-post-title">
		<a href="<?php 
echo get_permalink($comment->comment_post_ID);
?>
" title="<?php 
printf(esc_attr__('Permalink to %s', 'envirra'), get_the_title($comment->comment_post_ID));
?>
" rel="bookmark">
			<?php 
echo $comment->comment_author;
?>

		</a>
	</h5>

	<p class="">
		<?php 
Beispiel #3
0
<div class="vw-post-meta">

	<div class="vw-post-meta-left">
		<!-- Author -->
		<?php 
echo vw_get_avatar(get_the_author_meta('user_email'), VW_CONST_AVATAR_SIZE_SMALL);
?>
		<a class="author-name author" href="<?php 
echo get_author_posts_url(get_the_author_meta('ID'));
?>
" title="<?php 
_e('View all posts by', 'envirra');
?>
 <?php 
the_author();
?>
"><?php 
the_author();
?>
</a>
		
		<span class="vw-post-meta-separator">&mdash;</span>

		<?php 
if (vw_has_review()) {
    ?>
			<?php 
    vw_the_post_review_star();
    ?>
		<?php 
} else {
Beispiel #4
0
 function vw_get_author_avatar($author = null)
 {
     if (!$author) {
         $author = vw_get_current_author();
     }
     return vw_get_avatar(get_the_author_meta('user_email', $author->ID), VW_CONST_AVATAR_SIZE_LARGE, '', get_the_author_meta('display_name', $author->ID));
 }