<?php
/**
 * @var $with_link
 * @var $link_class
 * @var $uid
 * @var $img_class
 * @var $width
 * @var $height
 * @var $with_level_image
 * @var $level_icon
 */

if ( $with_link ) { ?>

	<a class="pr <?php echo $link_class; ?>" href="<?php echo wpj_get_user_profile_link( $uid );?>">

<?php } ?>

		<img alt="" class="round-avatar <?php echo $img_class; ?>" width="<?php echo $width; ?>" height="<?php echo $height; ?>" src="<?php echo wpj_get_avatar( $uid, $width, $height ); ?>" />

		<?php if ( $with_level_image && $level_icon ) wpj_display_user_level_image( $uid );

if ( $with_link ) { ?>

	</a>

<?php }