本文整理汇总了PHP中bp_has_forum_topic_posts函数的典型用法代码示例。如果您正苦于以下问题:PHP bp_has_forum_topic_posts函数的具体用法?PHP bp_has_forum_topic_posts怎么用?PHP bp_has_forum_topic_posts使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了bp_has_forum_topic_posts函数的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: do_action
<?php
do_action('bp_before_group_forum_edit_form');
?>
<?php
if (bp_has_forum_topic_posts()) {
?>
<form action="<?php
bp_forum_topic_action();
?>
" method="post" id="forum-topic-form" class="standard-form">
<div class="item-list-tabs" id="subnav" role="navigation">
<ul>
<li>
<a href="#post-topic-reply"><?php
_e('Reply', 'buddypress');
?>
</a>
</li>
<?php
if (bp_forums_has_directory()) {
?>
<li>
<a href="<?php
bp_forums_directory_permalink();
?>
示例2: do_action
<?php do_action( 'bp_before_group_forum_topic' ) ?>
<?php if ( bp_has_forum_topic_posts() ) : ?>
<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>
示例3: bp_forums_add_forum_topic_to_page_title
/**
* bp_forums_add_forum_topic_to_page_title( $title )
*
* Append forum topic to page title
*
* @global object $bp
* @param string $title New page title; see bp_modify_page_title()
* @param string $title Original page title
* @param string $sep How to separate the various items within the page title.
* @param string $seplocation Direction to display title
* @return string
* @see bp_modify_page_title()
*/
function bp_forums_add_forum_topic_to_page_title($title, $original_title, $sep, $seplocation)
{
global $bp;
if (bp_is_current_action('forum') && bp_is_action_variable('topic', 0)) {
if (bp_has_forum_topic_posts()) {
$title .= bp_get_the_topic_title() . " {$sep} ";
}
}
return $title;
}
示例4: bp_forums_add_forum_topic_to_page_title
/**
* bp_forums_add_forum_topic_to_page_title( $title )
*
* Append forum topic to page title
*
* @global object $bp
* @param string $title
* @return string
*/
function bp_forums_add_forum_topic_to_page_title( $title ) {
global $bp;
if ( $bp->current_action == 'forum' && $bp->action_variables[0] == 'topic' ) {
if ( bp_has_forum_topic_posts() ) {
$title .= ' | ' . bp_get_the_topic_title();
}
}
return $title;
}