Exemplo n.º 1
0
?>
"><?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();
?>
Exemplo n.º 2
0
<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>
Exemplo n.º 3
0
 /**
  * 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;
 }
    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 
    }
Exemplo n.º 5
0
 /**
  * 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;
 }