本文整理汇总了PHP中bp_activity_parent_content函数的典型用法代码示例。如果您正苦于以下问题:PHP bp_activity_parent_content函数的具体用法?PHP bp_activity_parent_content怎么用?PHP bp_activity_parent_content使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了bp_activity_parent_content函数的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: bp_activity_action
<?php
bp_activity_action();
?>
</div>
<?php
if ('activity_comment' == bp_get_activity_type()) {
?>
<div class="activity-inreplyto">
<strong><?php
_e('In reply to: ', 'firmasite');
?>
</strong><?php
bp_activity_parent_content();
?>
<a href="<?php
bp_activity_thread_permalink();
?>
" class="view" title="<?php
_e('View Thread / Permalink', 'firmasite');
?>
"><?php
_e('View', 'firmasite');
?>
</a>
</div>
<?php
}
示例2: feed_content
/**
* Output the feed's item content.
*/
protected function feed_content()
{
bp_activity_content_body();
switch ($this->id) {
// Also output parent activity item if we're on a specific feed.
case 'favorites':
case 'friends':
case 'mentions':
case 'personal':
if ('activity_comment' == bp_get_activity_action_name()) {
?>
<strong><?php
_e('In reply to', 'buddypress');
?>
</strong> -
<?php
bp_activity_parent_content();
?>
<?php
}
break;
}
}
示例3: swa_activity_entry
//.........这里部分代码省略.........
<?php
} else {
?>
<a href="<?php
bp_activity_unfavorite_link();
?>
" class="unfav" title="<?php
_e('Remove Favorite', 'swa');
?>
"><?php
_e('Remove Favorite', 'swa');
?>
</a>
<?php
}
?>
<?php
}
?>
<?php
do_action('bp_activity_entry_meta');
?>
</div>
<div class="clear" ></div>
</div>
<?php
if ('activity_comment' == bp_get_activity_type()) {
?>
<div class="swa-activity-inreplyto">
<strong><?php
_e('In reply to', 'swa');
?>
</strong> - <?php
bp_activity_parent_content();
?>
·
<a href="<?php
bp_activity_thread_permalink();
?>
" class="view" title="<?php
_e('View Thread / Permalink', 'swa');
?>
"><?php
_e('View', 'swa');
?>
</a>
</div>
<?php
}
?>
<?php
if (bp_activity_can_comment()) {
?>
<div class="swa-activity-comments">
<?php
bp_activity_comments();
?>
<?php
if (is_user_logged_in()) {
?>
<form action="<?php
bp_activity_comment_form_action();
?>
" method="post" id="swa-ac-form-<?php
bp_activity_id();
?>
示例4: if
<?php if ( bp_has_activities( 'max=50&display_comments=stream&search_terms=@' . bp_core_get_username( $bp->displayed_user->id, $bp->displayed_user->userdata->user_nicename, $bp->displayed_user->userdata->user_login ) ) ) : ?>
<?php while ( bp_activities() ) : bp_the_activity(); ?>
<item>
<guid><?php bp_activity_thread_permalink() ?></guid>
<title><![CDATA[<?php bp_activity_feed_item_title() ?>]]></title>
<link><?php echo bp_activity_thread_permalink() ?></link>
<pubDate><?php echo mysql2date('D, d M Y H:i:s O', bp_get_activity_feed_item_date(), false); ?></pubDate>
<description>
<![CDATA[
<?php bp_activity_feed_item_description() ?>
<?php if ( bp_activity_can_comment() ) : ?>
<p><?php printf( __( 'Comments: %s', 'buddypress' ), bp_activity_get_comment_count() ); ?></p>
<?php endif; ?>
<?php if ( 'activity_comment' == bp_get_activity_action_name() ) : ?>
<br /><strong><?php _e( 'In reply to', 'buddypress' ) ?></strong> -
<?php bp_activity_parent_content() ?>
<?php endif; ?>
]]>
</description>
<?php do_action('bp_activity_mentions_feed_item'); ?>
</item>
<?php endwhile; ?>
<?php endif; ?>
</channel>
</rss>
示例5: if
<?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', 'buddypress' ) ?>"><?php _e( 'Favorite', 'buddypress' ) ?></a>
<?php else : ?>
<a href="<?php bp_activity_unfavorite_link() ?>" class="unfav" title="<?php _e( 'Remove Favorite', 'buddypress' ) ?>"><?php _e( 'Remove Favorite', 'buddypress' ) ?></a>
<?php endif; ?>
<?php endif;?>
<?php do_action( 'bp_activity_entry_meta' ) ?>
</div>
</div>
<?php if ( 'activity_comment' == bp_get_activity_type() ) : ?>
<div class="activity-inreplyto">
<strong><?php _e( 'In reply to', 'buddypress' ) ?></strong> - <?php bp_activity_parent_content() ?> ·
<a href="<?php bp_activity_thread_permalink() ?>" class="view" title="<?php _e( 'View Thread / Permalink', 'buddypress' ) ?>"><?php _e( 'View', 'buddypress' ) ?></a>
</div>
<?php endif; ?>
<?php do_action( 'bp_before_activity_entry_comments' ) ?>
<?php if ( bp_activity_can_comment() ) : ?>
<div class="activity-comments">
<?php bp_activity_comments() ?>
<?php if ( is_user_logged_in() ) : ?>
<form action="<?php bp_activity_comment_form_action() ?>" method="post" id="ac-form-<?php bp_activity_id() ?>" class="ac-form"<?php bp_activity_comment_form_nojs_display() ?>>
<div class="ac-reply-avatar"><?php bp_loggedin_user_avatar( 'width=' . BP_AVATAR_THUMB_WIDTH . '&height=' . BP_AVATAR_THUMB_HEIGHT ) ?></div>
<div class="ac-reply-content">
<div class="ac-textarea">