当前位置: 首页>>代码示例>>PHP>>正文


PHP bbp_forum_content函数代码示例

本文整理汇总了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();
?>
开发者ID:berniecultess,项目名称:infirev,代码行数:30,代码来源:loop-single-forum.php

示例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>
开发者ID:tvolmari,项目名称:hammydowns,代码行数:15,代码来源:forum.php

示例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;
 }
开发者ID:hscale,项目名称:webento,代码行数:23,代码来源:bbp-forums.php

示例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 
    }
开发者ID:kreapress,项目名称:ipt-knowledgebase-theme-wp,代码行数:16,代码来源:bbpress.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;
 }
开发者ID:joeyblake,项目名称:bbpress,代码行数:41,代码来源:forums.php


注:本文中的bbp_forum_content函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。