本文整理汇总了PHP中bbp_forum_content函数的典型用法代码示例。如果您正苦于以下问题:PHP bbp_forum_content函数的具体用法?PHP bbp_forum_content怎么用?PHP bbp_forum_content使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了bbp_forum_content函数的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: bbp_forum_title
?>
"><?php
bbp_forum_title();
?>
</a>
<?php
do_action('bbp_theme_after_forum_title');
?>
<?php
do_action('bbp_theme_before_forum_description');
?>
<div class="bbp-forum-content"><?php
bbp_forum_content();
?>
</div>
<?php
do_action('bbp_theme_after_forum_description');
?>
<?php
do_action('bbp_theme_before_forum_sub_forums');
?>
<?php
bbp_list_forums();
?>
示例2: bbp_forum_permalink
<li class="bboss_search_item bboss_search_item_forum">
<div class="item">
<div class="item-title"><a href="<?php
bbp_forum_permalink(get_the_ID());
?>
"><?php
bbp_forum_title(get_the_ID());
?>
</a></div>
<div class="item-desc"><?php
bbp_forum_content(get_the_ID());
?>
</div>
</div>
</li>
示例3: row_actions
/**
* Forum Row actions
*
* Remove the quick-edit action link and display the description under
* the forum title
*
* @since bbPress (r2577)
*
* @param array $actions Actions
* @param array $forum Forum object
* @uses the_content() To output forum description
* @return array $actions Actions
*/
public function row_actions($actions, $forum)
{
if ($this->bail()) {
return $actions;
}
unset($actions['inline hide-if-no-js']);
// simple hack to show the forum description under the title
bbp_forum_content($forum->ID);
return $actions;
}
示例4: ipt_kb_bbp_forum_description_in_list
function ipt_kb_bbp_forum_description_in_list($forum_id = 0)
{
do_action('bbp_theme_before_forum_description');
?>
<div class="bbp-forum-content <?php
echo bbp_is_forum_category($forum_id) ? 'text-primary' : 'text-muted';
?>
"><?php
bbp_forum_content($forum_id);
?>
</div>
<?php
do_action('bbp_theme_after_forum_description');
?>
<?php
}
示例5: row_actions
/**
* Forum Row actions
*
* Remove the quick-edit action link and display the description under
* the forum title and add the open/close links
*
* @since 2.0.0 bbPress (r2577)
*
* @param array $actions Actions
* @param array $forum Forum object
* @uses bbp_get_public_status_id() To get the published forum id's
* @uses bbp_get_private_status_id() To get the private forum id's
* @uses bbp_get_hidden_status_id() To get the hidden forum id's
* @uses bbp_get_closed_status_id() To get the closed forum id's
* @uses wp_nonce_url() To nonce the url
* @uses bbp_is_forum_open() To check if a forum is open
* @uses bbp_forum_content() To output forum description
* @return array $actions Actions
*/
public function row_actions($actions, $forum)
{
if ($this->bail()) {
return $actions;
}
unset($actions['inline hide-if-no-js']);
// Only show the actions if the user is capable of viewing them :)
if (current_user_can('keep_gate', $forum->ID)) {
// Show the 'close' and 'open' link on published, private, hidden and closed posts only
if (in_array($forum->post_status, array(bbp_get_public_status_id(), bbp_get_private_status_id(), bbp_get_hidden_status_id(), bbp_get_closed_status_id()))) {
$close_uri = wp_nonce_url(add_query_arg(array('forum_id' => $forum->ID, 'action' => 'bbp_toggle_forum_close'), remove_query_arg(array('bbp_forum_toggle_notice', 'forum_id', 'failed', 'super'))), 'close-forum_' . $forum->ID);
if (bbp_is_forum_open($forum->ID)) {
$actions['closed'] = '<a href="' . esc_url($close_uri) . '" title="' . esc_attr__('Close this forum', 'bbpress') . '">' . _x('Close', 'Close a Forum', 'bbpress') . '</a>';
} else {
$actions['closed'] = '<a href="' . esc_url($close_uri) . '" title="' . esc_attr__('Open this forum', 'bbpress') . '">' . _x('Open', 'Open a Forum', 'bbpress') . '</a>';
}
}
}
// simple hack to show the forum description under the title
bbp_forum_content($forum->ID);
return $actions;
}