85 lines
3.9 KiB
PHP
85 lines
3.9 KiB
PHP
<?php
|
|
/**
|
|
* جزئیات کاربر و منوی پروفایل — فارسی
|
|
*
|
|
* @package Hesabix2
|
|
* @subpackage bbPress
|
|
*/
|
|
|
|
defined( 'ABSPATH' ) || exit;
|
|
|
|
do_action( 'bbp_template_before_user_details' ); ?>
|
|
|
|
<div id="bbp-single-user-details">
|
|
<div id="bbp-user-avatar">
|
|
<span class="vcard">
|
|
<a class="url fn n" href="<?php bbp_user_profile_url(); ?>" title="<?php bbp_displayed_user_field( 'display_name' ); ?>" rel="me">
|
|
<?php echo get_avatar( bbp_get_displayed_user_field( 'user_email', 'raw' ), apply_filters( 'bbp_single_user_details_avatar_size', 150 ) ); ?>
|
|
</a>
|
|
</span>
|
|
</div>
|
|
|
|
<?php do_action( 'bbp_template_before_user_details_menu_items' ); ?>
|
|
|
|
<div id="bbp-user-navigation">
|
|
<ul>
|
|
<li class="<?php if ( bbp_is_single_user_profile() ) : ?>current<?php endif; ?>">
|
|
<span class="vcard bbp-user-profile-link">
|
|
<a class="url fn n" href="<?php bbp_user_profile_url(); ?>" title="<?php printf( esc_attr__( 'پروفایل %s', 'hesabix2' ), bbp_get_displayed_user_field( 'display_name' ) ); ?>" rel="me"><?php esc_html_e( 'پروفایل', 'hesabix2' ); ?></a>
|
|
</span>
|
|
</li>
|
|
|
|
<li class="<?php if ( bbp_is_single_user_topics() ) : ?>current<?php endif; ?>">
|
|
<span class="bbp-user-topics-created-link">
|
|
<a href="<?php bbp_user_topics_created_url(); ?>" title="<?php printf( esc_attr__( 'موضوعات %s', 'hesabix2' ), bbp_get_displayed_user_field( 'display_name' ) ); ?>"><?php esc_html_e( 'موضوعات ایجادشده', 'hesabix2' ); ?></a>
|
|
</span>
|
|
</li>
|
|
|
|
<li class="<?php if ( bbp_is_single_user_replies() ) : ?>current<?php endif; ?>">
|
|
<span class="bbp-user-replies-created-link">
|
|
<a href="<?php bbp_user_replies_created_url(); ?>" title="<?php printf( esc_attr__( 'پاسخهای %s', 'hesabix2' ), bbp_get_displayed_user_field( 'display_name' ) ); ?>"><?php esc_html_e( 'پاسخهای ایجادشده', 'hesabix2' ); ?></a>
|
|
</span>
|
|
</li>
|
|
|
|
<?php if ( bbp_is_engagements_active() ) : ?>
|
|
<li class="<?php if ( bbp_is_single_user_engagements() ) : ?>current<?php endif; ?>">
|
|
<span class="bbp-user-engagements-created-link">
|
|
<a href="<?php bbp_user_engagements_url(); ?>" title="<?php printf( esc_attr__( 'تعاملات %s', 'hesabix2' ), bbp_get_displayed_user_field( 'display_name' ) ); ?>"><?php esc_html_e( 'تعاملات', 'hesabix2' ); ?></a>
|
|
</span>
|
|
</li>
|
|
<?php endif; ?>
|
|
|
|
<?php if ( bbp_is_favorites_active() ) : ?>
|
|
<li class="<?php if ( bbp_is_favorites() ) : ?>current<?php endif; ?>">
|
|
<span class="bbp-user-favorites-link">
|
|
<a href="<?php bbp_favorites_permalink(); ?>" title="<?php printf( esc_attr__( 'علاقهمندیهای %s', 'hesabix2' ), bbp_get_displayed_user_field( 'display_name' ) ); ?>"><?php esc_html_e( 'علاقهمندیها', 'hesabix2' ); ?></a>
|
|
</span>
|
|
</li>
|
|
<?php endif; ?>
|
|
|
|
<?php if ( bbp_is_user_home() || current_user_can( 'edit_user', bbp_get_displayed_user_id() ) ) : ?>
|
|
|
|
<?php if ( bbp_is_subscriptions_active() ) : ?>
|
|
<li class="<?php if ( bbp_is_subscriptions() ) : ?>current<?php endif; ?>">
|
|
<span class="bbp-user-subscriptions-link">
|
|
<a href="<?php bbp_subscriptions_permalink(); ?>" title="<?php printf( esc_attr__( 'اشتراکهای %s', 'hesabix2' ), bbp_get_displayed_user_field( 'display_name' ) ); ?>"><?php esc_html_e( 'اشتراکها', 'hesabix2' ); ?></a>
|
|
</span>
|
|
</li>
|
|
<?php endif; ?>
|
|
|
|
<li class="<?php if ( bbp_is_single_user_edit() ) : ?>current<?php endif; ?>">
|
|
<span class="bbp-user-edit-link">
|
|
<a href="<?php bbp_user_profile_edit_url(); ?>" title="<?php printf( esc_attr__( 'ویرایش پروفایل %s', 'hesabix2' ), bbp_get_displayed_user_field( 'display_name' ) ); ?>"><?php esc_html_e( 'ویرایش', 'hesabix2' ); ?></a>
|
|
</span>
|
|
</li>
|
|
|
|
<?php endif; ?>
|
|
|
|
</ul>
|
|
|
|
<?php do_action( 'bbp_template_after_user_details_menu_items' ); ?>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<?php do_action( 'bbp_template_after_user_details' );
|