本文整理汇总了PHP中bbp_displayed_user_field函数的典型用法代码示例。如果您正苦于以下问题:PHP bbp_displayed_user_field函数的具体用法?PHP bbp_displayed_user_field怎么用?PHP bbp_displayed_user_field使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了bbp_displayed_user_field函数的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: bbp_displayed_user_field
bbp_displayed_user_field('user_login', 'edit');
?>
" disabled="disabled" class="regular-text" tabindex="<?php
bbp_tab_index();
?>
" />
</div>
<div>
<label for="email"><?php
_e('Email', 'bbpress');
?>
</label>
<input type="text" name="email" id="email" value="<?php
bbp_displayed_user_field('user_email', 'edit');
?>
" class="regular-text" tabindex="<?php
bbp_tab_index();
?>
" />
<?php
// Handle address change requests
$new_email = get_option(bbp_get_displayed_user_id() . '_new_email');
if (!empty($new_email) && $new_email !== bbp_get_displayed_user_field('user_email', 'edit')) {
?>
<span class="updated inline">
<?php
示例2: do_action
do_action('bbp_template_before_user_profile');
?>
<div id="bbp-user-profile" class="bbp-user-profile">
<h2 class="entry-title"><?php
_e('Profile', 'bbpress');
?>
</h2>
<div class="bbp-user-section">
<?php
if (bbp_get_displayed_user_field('description')) {
?>
<p class="bbp-user-description"><?php
bbp_displayed_user_field('description');
?>
</p>
<?php
}
?>
<p class="bbp-user-forum-role"><span class="bold"><?php
printf(__('Forum Role:', 'corporative'));
?>
</span><?php
printf(bbp_get_user_display_role());
?>
</p>
<p class="bbp-user-topic-count"><span class="bold"><?php
示例3: do_action
*/
?>
<?php
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><!-- #author-avatar -->
<div id="bbp-user-navigation">
<ul>
<li class="<?php
if (bbp_is_single_user_profile()) {
?>
示例4: do_action
*/
?>
<?php
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
esc_attr(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><!-- #author-avatar -->
<div id="bbp-user-navigation" class="btn-group">
<ul>
<li class="btn btn-default <?php
if (bbp_is_single_user_profile()) {
?>
示例5: bbp_displayed_user_field
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 class="email">
<a href="<?php
bbp_displayed_user_field('user_email');
?>
">
<?php
bbp_displayed_user_field('user_email');
?>
</a>
</div>
</div><!-- #author-avatar -->
<?php
if (false) {
?>
<div id="bbp-user-navigation">
<ul>
<li class="<?php
if (bbp_is_single_user_profile()) {
?>
示例6: bbp_displayed_user_field
<p class="bbp-user-description"><?php
bbp_displayed_user_field('description');
?>
</p>
<?php
}
?>
<p class="bbp-user-forum-role"><?php
printf(__('Forum Role: %s', 'bbpress'), bbp_get_user_display_role());
?>
Boom!</p>
<p class="bbp-user-topic-count"><?php
printf(__('Topics Started: %s', 'bbpress'), bbp_get_user_topic_count_raw());
?>
</p>
<p class="bbp-user-reply-count"><?php
printf(__('Replies Created: %s', 'bbpress'), bbp_get_user_reply_count_raw());
?>
</p>
<p>Website: <?php
bbp_displayed_user_field('user_url');
?>
</p>
</div>
</div><!-- #bbp-author-topics-started -->
<?php
do_action('bbp_template_after_user_profile');
示例7: do_action
/**
* User Details
*
* @package bbPress
* @subpackage Theme
*/
?>
<?php 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' ), apply_filters( 'bbp_single_user_details_avatar_size', 150 ) ); ?>
</a>
</span>
</div><!-- #author-avatar -->
<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( __( "%s's Profile", 'bbpress' ), esc_attr( bbp_get_displayed_user_field( 'display_name' ) ) ); ?>" rel="me"><?php _e( 'Profile', 'bbpress' ); ?></a>
</span>
</li>
<li class="<?php if ( bbp_is_single_user_topics() ) :?>current<?php endif; ?>">