本文整理汇总了PHP中bp_the_topic_total_post_count函数的典型用法代码示例。如果您正苦于以下问题:PHP bp_the_topic_total_post_count函数的具体用法?PHP bp_the_topic_total_post_count怎么用?PHP bp_the_topic_total_post_count使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了bp_the_topic_total_post_count函数的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: bp_forum_topic_action
<form action="<?php bp_forum_topic_action() ?>" method="post" id="forum-topic-form" class="standard-form">
<div class="pagination no-ajax">
<div id="post-count" class="pag-count">
<?php bp_the_topic_pagination_count() ?>
</div>
<div class="pagination-links" id="topic-pag">
<?php bp_the_topic_pagination() ?>
</div>
</div>
<div id="topic-meta">
<h3><?php bp_the_topic_title() ?> (<?php bp_the_topic_total_post_count() ?>)</h3>
<a class="button" href="<?php bp_forum_permalink() ?>/">← <?php _e( 'Group Forum', 'buddypress' ) ?></a> <a class="button" href="<?php bp_forum_directory_permalink() ?>/"><?php _e( 'Group Forum Directory', 'buddypress') ?></a>
<div class="admin-links">
<?php if ( bp_group_is_admin() || bp_group_is_mod() || bp_get_the_topic_is_mine() ) : ?>
<?php bp_the_topic_admin_links() ?>
<?php endif; ?>
<?php do_action( 'bp_group_forum_topic_meta' ); ?>
</div>
</div>
<?php do_action( 'bp_before_group_forum_topic_posts' ) ?>
<ul id="topic-post-list" class="item-list">
<?php while ( bp_forum_topic_posts() ) : bp_the_forum_topic_post(); ?>
示例2: _e
<?php
}
?>
</ul>
</div>
<div id="topic-meta">
<h3><?php
_e('Edit:', 'buddypress');
?>
<?php
bp_the_topic_title();
?>
(<?php
bp_the_topic_total_post_count();
?>
)</h3>
<?php
if (bp_group_is_admin() || bp_group_is_mod() || bp_get_the_topic_is_mine()) {
?>
<div class="last admin-links">
<?php
bp_the_topic_admin_links();
?>
</div>
示例3: bp_group_active_forum_topics
function bp_group_active_forum_topics($total_topics = 3, $group = false)
{
global $groups_template, $forum_template;
if (!$group) {
$group =& $groups_template->group;
}
$forum_id = groups_get_groupmeta($group->id, 'forum_id');
if ($forum_id && $forum_id != '') {
if (function_exists('bp_forums_setup')) {
$latest_topics = bp_forums_get_topics($forum_id, $total_topics, 1);
if ($latest_topics) {
?>
<ul class="item-list" id="recent-forum-topics"><?php
$counter = 0;
foreach ($latest_topics as $topic) {
$alt = $counter % 2 == 1 ? ' class="alt"' : '';
$forum_template->topic = (object) $topic;
?>
<li<?php
echo $alt;
?>
>
<div class="avatar">
<?php
bp_the_topic_poster_avatar();
?>
</div>
<a href="<?php
bp_the_topic_permalink();
?>
" title="<?php
bp_the_topic_title();
?>
- <?php
_e('Permalink', 'buddypress');
?>
"><?php
bp_the_topic_title();
?>
</a>
<span class="small">- <?php
bp_the_topic_total_post_count();
?>
</span>
<p><span class="activity"><?php
echo sprintf(__('updated %s ago', 'buddypress'), bp_the_topic_time_since_last_post(false));
?>
</span></p>
<div class="latest-post">
<?php
_e('Latest by', 'buddypress');
?>
<?php
bp_the_topic_last_poster_name();
?>
:
<?php
bp_the_topic_latest_post_excerpt();
?>
</div>
</li>
<?php
$counter++;
?>
<?php
}
?>
</ul>
<?php
} else {
?>
<div id="message" class="info">
<p><?php
_e('There are no active forum topics for this group', 'buddypress');
?>
</p>
</div>
<?php
}
}
}
}