Ejemplo n.º 1
0
					<?php 
        ap_avatar_upload_form();
        ?>

				</div>
				<a class="ap-user-name" href="<?php 
        ap_user_the_link();
        ?>
"><?php 
        ap_user_the_display_name();
        ?>
</a>
				<div class="ap-user-mini-status">
					<span><?php 
        printf(__('%s Rep.', 'ap'), ap_user_get_the_reputation());
        ?>
</span>
					<span><?php 
        printf(__('%d Answers', 'ap'), ap_user_get_the_meta('__total_answers'));
        ?>
</span>
					<span><?php 
        printf(__('%d Questions', 'ap'), ap_user_get_the_meta('__total_questions'));
        ?>
</span>
					<span><?php 
        printf(__('%d Followers', 'ap'), ap_user_get_the_meta('__total_followers'));
        ?>
</span>
					<span><?php 
Ejemplo n.º 2
0
/**
 * Echo active user reputation
 * @param  boolean      $short      Shorten count like 2.8k
 */
function ap_user_the_reputation($short = true)
{
    echo ap_user_get_the_reputation($short);
}
Ejemplo n.º 3
0
		<div class="ap-user-avatar">
			<?php 
ap_user_the_avatar(60);
?>
		</div>
		<a class="ap-user-name" href="<?php 
ap_user_the_link();
?>
"><?php 
ap_user_the_display_name();
?>
</a>
		<?php 
if (!ap_opt('disable_reputation')) {
    echo '<span class="ap-user-reputation">';
    printf(__('%s Rep.', 'anspress-question-answer'), ap_user_get_the_reputation());
    echo '</span>';
}
?>
	</div>
	<?php 
$menus = ap_get_user_menu(get_current_user_id());
$active_user_page = get_query_var('user_page');
$active_user_page = $active_user_page ? $active_user_page : 'about';
$item_output = '<a id="ap-user-menu-anchor" href="#">' . get_avatar(get_current_user_id(), 20) . ap_user_display_name(get_current_user_id()) . ap_icon('chevron-down', true) . '</a>';
echo '<ul class="ap-user-widget-links">';
foreach ($menus as $m) {
    $class = !empty($m['class']) ? ' ' . $m['class'] : '';
    echo '<li' . ($active_user_page == $m['slug'] ? ' class="active"' : '') . '><a href="' . $m['link'] . '" class="ap-user-link-' . $m['slug'] . $class . '">' . $m['title'] . '</a></li>';
}
echo '</ul>';