hesabixWpTheme/bbpress/user-profile.php

57 lines
1.8 KiB
PHP

<?php
/**
* پروفایل کاربر انجمن
*
* @package Hesabix2
* @subpackage bbPress
*/
defined( 'ABSPATH' ) || exit;
do_action( 'bbp_template_before_user_profile' ); ?>
<div id="bbp-user-profile" class="bbp-user-profile">
<h2 class="entry-title hesabix2-bbp-section-title">@<?php bbp_displayed_user_field( 'user_nicename' ); ?></h2>
<div class="bbp-user-section">
<h3 class="hesabix2-bbp-subtitle"><?php esc_html_e( 'پروفایل', 'hesabix2' ); ?></h3>
<p class="bbp-user-forum-role"><?php
printf(
/* translators: %s: registration time */
esc_html__( 'عضویت: %s', 'hesabix2' ),
esc_html( bbp_get_time_since( bbp_get_displayed_user_field( 'user_registered' ) ) )
);
?></p>
<?php if ( bbp_get_displayed_user_field( 'description' ) ) : ?>
<p class="bbp-user-description"><?php echo bbp_rel_nofollow( bbp_get_displayed_user_field( 'description' ) ); ?></p>
<?php endif; ?>
<?php if ( bbp_get_displayed_user_field( 'user_url' ) ) : ?>
<p class="bbp-user-website"><?php
printf(
/* translators: %s: website URL */
esc_html__( 'وب‌سایت: %s', 'hesabix2' ),
bbp_rel_nofollow( bbp_make_clickable( bbp_get_displayed_user_field( 'user_url' ) ) )
);
?></p>
<?php endif; ?>
<hr class="hesabix2-bbp-divider">
<h3 class="hesabix2-bbp-subtitle"><?php esc_html_e( 'انجمن', 'hesabix2' ); ?></h3>
<?php if ( bbp_get_user_last_posted() ) : ?>
<p class="bbp-user-last-activity"><?php
printf(
/* translators: %s: last activity time */
esc_html__( 'آخرین فعالیت: %s', 'hesabix2' ),
esc_html( bbp_get_time_since( bbp_get_user_last_posted(), false, true ) )
);
?></p>
<?php endif; ?>
<?php bbp_get_template_part( 'form', 'user-roles' ); ?>
</div>
</div>
<?php do_action( 'bbp_template_after_user_profile' );