本文整理汇总了PHP中bp_last_activity函数的典型用法代码示例。如果您正苦于以下问题:PHP bp_last_activity函数的具体用法?PHP bp_last_activity怎么用?PHP bp_last_activity使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了bp_last_activity函数的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: bp_displayed_user_link
<h2>
<a href="<?php
bp_displayed_user_link();
?>
"><?php
bp_displayed_user_fullname();
?>
</a>
</h2>
<span class="user-nicename">@<?php
bp_displayed_user_username();
?>
</span>
<span class="activity"><?php
bp_last_activity(bp_displayed_user_id());
?>
</span>
<?php
do_action('bp_before_member_header_meta');
?>
<div id="item-meta">
<?php
if (bp_is_active('activity')) {
?>
<div id="latest-update">
示例2: bp_last_activity
<div id="item-header-content" class="col-md-9 fs-have-thumbnail" style="margin-left:20px;">
<h2><a href="/intranet/members/<?php
echo $current_user_username;
?>
"><?php
echo $current_user_displayname;
?>
</a></h2>
<div style="margin-bottom:8px;">
<span class="user-nicename label label-info">@<?php
echo $current_user_username;
?>
</span>
<span class="label label-default"><?php
bp_last_activity($current_user_id);
?>
</span><br/>
</div>
<span><?php
echo $profile;
?>
</span>
</div>
<div class="col-md-2">
<button type="button" class="btn btn-success pull-right" data-toggle="modal" data-target="#addgoal" style="margin-top: 20px;">Add Goal</button>
</div>
</div><!-- #item-header -->
示例3: get_header
<?php
get_header();
?>
<div class="content-header">
<?php
bp_last_activity();
?>
</div>
<div id="content" class="vcard">
<?php
do_action('template_notices');
?>
<div class="left-menu">
<?php
bp_the_avatar();
?>
<div class="button-block">
<?php
if (function_exists('bp_add_friend_button')) {
?>
<?php
bp_add_friend_button();
?>
<?php
}
?>
示例4: do_action
<?php do_action( 'bp_before_member_header' ) ?>
<div id="item-header-avatar">
<a href="<?php bp_user_link() ?>">
<?php bp_displayed_user_avatar( 'type=full' ) ?>
</a>
</div><!-- #item-header-avatar -->
<div id="item-header-content">
<h2 class="fn"><a href="<?php bp_displayed_user_link() ?>"><?php bp_displayed_user_fullname() ?></a> <span class="highlight">@<?php bp_displayed_user_username() ?> <span>?</span></span></h2>
<span class="activity"><?php bp_last_activity( bp_displayed_user_id() ) ?></span>
<?php do_action( 'bp_before_member_header_meta' ) ?>
<div id="item-meta">
<?php if ( function_exists( 'bp_activity_latest_update' ) ) : ?>
<div id="latest-update">
<?php bp_activity_latest_update( bp_displayed_user_id() ) ?>
</div>
<?php endif; ?>
<div id="item-buttons">
<?php do_action( 'bp_member_header_actions' ); ?>
</div><!-- #item-buttons -->
<?php
/***
* If you'd like to show specific profile fields here use: