本文整理汇总了PHP中bp_activity_css_class函数的典型用法代码示例。如果您正苦于以下问题:PHP bp_activity_css_class函数的具体用法?PHP bp_activity_css_class怎么用?PHP bp_activity_css_class使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了bp_activity_css_class函数的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: swa_activity_entry
function swa_activity_entry($show_avatar = false)
{
?>
<?php
do_action('bp_before_activity_entry');
?>
<li class="<?php
bp_activity_css_class();
?>
" id="activity-<?php
bp_activity_id();
?>
">
<?php
if ($show_avatar == "yes") {
?>
<div class="swa-activity-avatar">
<a href="<?php
bp_activity_user_link();
?>
">
<?php
bp_activity_avatar('type=thumb&width=50&height=50');
?>
</a>
</div>
<?php
}
?>
<div class="swa-activity-content">
<div class="swa-activity-header">
<?php
bp_activity_action();
?>
</div>
<?php
if (bp_activity_has_content()) {
?>
<div class="swa-activity-inner">
<?php
bp_activity_content_body();
?>
</div>
<?php
}
?>
<?php
do_action('bp_activity_entry_content');
?>
<div class="swa-activity-meta">
<?php
if (is_user_logged_in() && bp_activity_can_comment()) {
?>
<a href="<?php
bp_activity_comment_link();
?>
" class="acomment-reply" id="acomment-comment-<?php
bp_activity_id();
?>
"><?php
_e('Reply', 'buddypress');
?>
(<span><?php
bp_activity_comment_count();
?>
</span>)</a>
<?php
}
?>
<?php
if (is_user_logged_in()) {
?>
<?php
if (!bp_get_activity_is_favorite()) {
?>
<a href="<?php
bp_activity_favorite_link();
?>
" class="fav" title="<?php
_e('Mark as Favorite', 'swa');
?>
"><?php
_e('Favorite', 'swa');
?>
</a>
<?php
} else {
?>
<a href="<?php
bp_activity_unfavorite_link();
?>
" class="unfav" title="<?php
_e('Remove Favorite', 'swa');
?>
"><?php
_e('Remove Favorite', 'swa');
?>
//.........这里部分代码省略.........
示例2: do_action
* BuddyPress - Activity Stream (Single Item)
*
* This template is used by activity-loop.php and AJAX functions to show
* each activity.
*
* @package BuddyPress
* @subpackage bp-default
*/
?>
<?php
do_action('bp_before_activity_entry');
?>
<li class="<?php
bp_activity_css_class();
?>
" id="activity-<?php
bp_activity_id();
?>
">
<?php
if (bp_activity_has_content()) {
?>
<div class="col-xs-12 col-md-4 pull-left text-muted fs-content-thumbnail">
<?php
} else {
?>
<div class="col-xs-12 text-muted">
<?php
}
示例3: do_action
<?php /* This template is used by activity-loop.php and AJAX functions to show each activity */ ?>
<?php do_action( 'bp_before_activity_entry' ) ?>
<li class="<?php bp_activity_css_class() ?>" id="activity-<?php bp_activity_id() ?>">
<div class="activity-avatar">
<a href="<?php bp_activity_user_link() ?>">
<?php bp_activity_avatar( 'type=full&width=100&height=100' ) ?>
</a>
</div>
<div class="activity-content">
<div class="activity-header">
<?php bp_activity_action() ?>
</div>
<?php if ( bp_activity_has_content() ) : ?>
<div class="activity-inner">
<?php bp_activity_content_body() ?>
</div>
<?php endif; ?>
<?php do_action( 'bp_activity_entry_content' ) ?>
<div class="activity-meta">
<?php if ( is_user_logged_in() && bp_activity_can_comment() ) : ?>
<a href="<?php bp_activity_comment_link() ?>" class="acomment-reply" id="acomment-comment-<?php bp_activity_id() ?>"><?php _e( 'Reply', 'buddypress' ) ?> (<span><?php bp_activity_comment_count() ?></span>)</a>
<?php endif; ?>
<?php if ( is_user_logged_in() ) : ?>