function my_bbp_search_form() { ?> <div class="bbp-search-form"> <?php bbp_get_template_part('form', 'search'); ?> </div> <?php }
function wp_emember_forum_viewing($retval, $forum_id, $user_id) { global $post; if (wp_emember_is_forum_post_visible($post)) { return $retval; } else { //eMember can also output *protected* message here bbp_get_template_part('feedback', 'no-access'); $retval = false; return $retval; } }
} else { echo ' col-md-12'; } ?> "> <section class="new-content"> <div class="box-post"> <div class="inner-box"> <h1 class="entry-title page-title clearfix"><span><?php bbp_view_title(); ?> </span></h1> <div class="entry-content"> <?php bbp_get_template_part('content', 'single-view'); ?> </div> </div> </div> </section> </div><!-- #topic-front --> <?php do_action('bbp_after_main_content'); ?> <?php get_sidebar('forum'); ?>
<?php bbp_get_template_part('pagination', 'topics'); ?> <?php bbp_get_template_part('loop', 'topics'); ?> <?php bbp_get_template_part('pagination', 'topics'); ?> <?php } else { ?> <?php bbp_get_template_part('feedback', 'no-topics'); ?> <?php } ?> <?php bbp_reset_query_name(); ?> </div>
tabindex="<?php bbp_tab_index(); ?> " /> <?php _e('Grant this user super admin privileges for the Network.', 'bbpress'); ?> </label> </div> <?php } ?> <?php bbp_get_template_part('form', 'user-roles'); ?> <?php do_action('bbp_user_edit_after_role'); ?> </fieldset> <?php } ?> <?php do_action('bbp_user_edit_after'); ?>
<div class="bbp-user-section"> <?php if (bbp_get_user_topic_subscriptions()) { ?> <?php bbp_get_template_part('pagination', 'topics'); ?> <?php bbp_get_template_part('loop', 'topics'); ?> <?php bbp_get_template_part('pagination', 'topics'); ?> <?php } else { ?> <p><?php bbp_is_user_home() ? _e('You are not currently subscribed to any topics.', 'wpdance') : _e('This user is not currently subscribed to any topics.', 'wpdance'); ?> </p> <?php } ?>
bbp_topic_tag_list(); bbp_single_topic_description(); } ?> </div> </div> <div class="col-md-3 col-sm-4"> <?php if (bbp_allow_search()) { ?> <div class="bbp-search-form"> <?php bbp_get_template_part('form', 'search'); ?> </div> <?php } ?> </div> </div> </div> </section> <section id="content"> <div class="<?php echo vibe_get_container(); ?>
/*_e( 'Freshness', 'bbpress' ); */ ?> </li> --> </ul> </li><!-- .bbp-header --> <li class="bbp-body"> <?php while (bbp_forums()) { bbp_the_forum(); ?> <?php bbp_get_template_part('loop', 'single-forum'); ?> <?php } ?> </li><!-- .bbp-body --> <!---<li class="bbp-footer"> <div class="tr"> <p class="td colspan4"> </p> </div> </li>
/** * Replaces the_content() if the post_type being displayed is one that would * normally be handled by bbPress, but proper single page templates do not * exist in the currently active theme. * * Note that we do *not* currently use is_main_query() here. This is because so * many existing themes either use query_posts() or fail to use wp_reset_query() * when running queries before the main loop, causing theme compat to fail. * * @since bbPress (r3034) * @param string $content * @return type */ function bbp_replace_the_content($content = '') { // Bail if not inside the query loop if (!in_the_loop()) { return $content; } $bbp = bbpress(); // Define local variable(s) $new_content = ''; // Bail if shortcodes are unset somehow if (!is_a($bbp->shortcodes, 'BBP_Shortcodes')) { return $content; } // Use shortcode API to display forums/topics/replies because they are // already output buffered and ready to fit inside the_content /** Users *************************************************************/ // Profile View if (bbp_is_single_user_edit() || bbp_is_single_user()) { ob_start(); bbp_get_template_part('content', 'single-user'); $new_content = ob_get_contents(); ob_end_clean(); /** Forums ************************************************************/ // Forum archive } elseif (bbp_is_forum_archive()) { // Page exists where this archive should be $page = bbp_get_page_by_path(bbp_get_root_slug()); if (!empty($page)) { // Restore previously unset filters bbp_restore_all_filters('the_content'); // Remove 'bbp_replace_the_content' filter to prevent infinite loops remove_filter('the_content', 'bbp_replace_the_content'); // Start output buffer ob_start(); // Grab the content of this page $new_content = apply_filters('the_content', $page->post_content); // Clean up the buffer ob_end_clean(); // Add 'bbp_replace_the_content' filter back (@see $this::start()) add_filter('the_content', 'bbp_replace_the_content'); // No page so show the archive } else { $new_content = $bbp->shortcodes->display_forum_index(); } // Forum Edit } elseif (bbp_is_forum_edit()) { $new_content = $bbp->shortcodes->display_forum_form(); // Single Forum } elseif (bbp_is_single_forum()) { $new_content = $bbp->shortcodes->display_forum(array('id' => get_the_ID())); /** Topics ************************************************************/ // Topic archive } elseif (bbp_is_topic_archive()) { // Page exists where this archive should be $page = bbp_get_page_by_path(bbp_get_topic_archive_slug()); if (!empty($page)) { // Restore previously unset filters bbp_restore_all_filters('the_content'); // Remove 'bbp_replace_the_content' filter to prevent infinite loops remove_filter('the_content', 'bbp_replace_the_content'); // Start output buffer ob_start(); // Grab the content of this page $new_content = apply_filters('the_content', $page->post_content); // Clean up the buffer ob_end_clean(); // Add 'bbp_replace_the_content' filter back (@see $this::start()) add_filter('the_content', 'bbp_replace_the_content'); // No page so show the archive } else { $new_content = $bbp->shortcodes->display_topic_index(); } // Topic Edit } elseif (bbp_is_topic_edit()) { // Split if (bbp_is_topic_split()) { ob_start(); bbp_get_template_part('form', 'topic-split'); $new_content = ob_get_contents(); ob_end_clean(); // Merge } elseif (bbp_is_topic_merge()) { ob_start(); bbp_get_template_part('form', 'topic-merge'); $new_content = ob_get_contents(); ob_end_clean(); // Edit } else { $new_content = $bbp->shortcodes->display_topic_form(); } // Single Topic } elseif (bbp_is_single_topic()) { $new_content = $bbp->shortcodes->display_topic(array('id' => get_the_ID())); /** Replies ***********************************************************/ // Reply archive } elseif (is_post_type_archive(bbp_get_reply_post_type())) { //$new_content = $bbp->shortcodes->display_reply_index(); // Reply Edit } elseif (bbp_is_reply_edit()) { $new_content = $bbp->shortcodes->display_reply_form(); // Single Reply } elseif (bbp_is_single_reply()) { $new_content = $bbp->shortcodes->display_reply(array('id' => get_the_ID())); /** Views *************************************************************/ } elseif (bbp_is_single_view()) { $new_content = $bbp->shortcodes->display_view(array('id' => get_query_var('bbp_view'))); /** Topic Tags ********************************************************/ // Show topics of tag } elseif (bbp_is_topic_tag()) { $new_content = $bbp->shortcodes->display_topics_of_tag(array('id' => bbp_get_topic_tag_id())); // Edit topic tag } elseif (bbp_is_topic_tag_edit()) { $new_content = $bbp->shortcodes->display_topic_tag_form(); } // Juggle the content around and try to prevent unsightly comments if (!empty($new_content) && $new_content != $content) { // Set the content to be the new content $content = apply_filters('bbp_replace_the_content', $new_content, $content); // Clean up after ourselves unset($new_content); // Reset the $post global wp_reset_postdata(); } // Return possibly hi-jacked content return $content; }
?> <?php while (have_posts()) { the_post(); ?> <div id="bbp-edit-page" class="bbp-edit-page"> <h1 class="entry-title"><?php the_title(); ?> </h1> <div class="entry-content"> <?php bbp_get_template_part('form', 'topic-merge'); ?> </div> </div><!-- #bbp-edit-page --> <?php } ?> <?php do_action('bbp_after_main_content'); ?> <?php get_sidebar();
?> </h1> <div class="entry-content"> <?php the_content(); ?> <div id="bbpress-forums"> <?php bbp_breadcrumb(); ?> <?php bbp_get_template_part('form', 'user-register'); ?> </div> </div> </div><!-- #bbp-register --> <?php } ?> <?php do_action('bbp_after_main_content'); ?> <?php
bbp_get_template_part('content', 'single-forum'); ?> </div> </div><!-- #forum-<?php bbp_forum_id(); ?> --> <?php } else { // Forum exists, user no access ?> <?php bbp_get_template_part('feedback', 'no-access'); ?> <?php } ?> <?php } ?> <?php do_action('bbp_after_main_content'); ?> <?php
<?php do_action('bbp_before_main_content'); ?> <?php while (have_posts()) { the_post(); ?> <div id="bbp-edit-page" class="bbp-edit-page"> <div class="entry-content"> <?php bbp_get_template_part('form', 'forum'); ?> </div> </div><!-- #bbp-edit-page --> <?php } ?> <?php do_action('bbp_after_main_content'); ?> </section> <!-- /#content -->
/** * Render the search form. */ public function add_search_form() { if (bbp_allow_search()) { ?> <div class="bbp-search-form"> <?php bbp_get_template_part('form', 'search'); ?> </div> <?php } }
_e('Freshness', 'bbpress'); ?> </th> </tr> </thead> <tfoot> <tr><td colspan="4"> </td></tr> </tfoot> <tbody> <?php while (bbp_forums()) { bbp_the_forum(); ?> <?php bbp_get_template_part('bbpress/loop', 'single-forum'); ?> <?php } ?> </tbody> </table> <?php do_action('bbp_template_after_forums_loop');
?> <script>console.log('loop-search.php');</script> <?php do_action('bbp_template_before_search_results_loop'); ?> <ul id="bbp-search-results" class="forums bbp-search-results"> <li class="bbp-body"> <?php while (bbp_search_results()) { bbp_the_search_result(); ?> <?php bbp_get_template_part('loop', 'search-' . get_post_type()); ?> <?php } ?> </li><!-- .bbp-body --> </ul><!-- #bbp-search-results --> <?php do_action('bbp_template_after_search_results_loop');
_e('Last Post', 'cubell'); ?> </li> </ul> </li> <li class="bbp-body"> <?php while (bbp_topics()) { bbp_the_topic(); ?> <?php bbp_get_template_part('loop', 'single-topic'); ?> <?php } ?> </li> </ul><!-- #bbp-forum-<?php bbp_forum_id(); ?> --> <?php do_action('bbp_template_after_topics_loop');
<?php /** * Single User Part * * @package bbPress * @subpackage Theme */ ?> <?php do_action('bbp_template_notices'); // Profile details bbp_get_template_part('bbpress/user', 'details'); // Subscriptions bbp_get_template_part('bbpress/user', 'subscriptions'); // Favorite topics bbp_get_template_part('bbpress/user', 'favorites'); // Topics created bbp_get_template_part('bbpress/user', 'topics-created');
<div id="content" role="main"> <?php while (have_posts()) { the_post(); ?> <div id="bbp-edit-page" class="bbp-edit-page"> <h1 class="entry-title"><?php the_title(); ?> </h1> <div class="entry-content"> <?php bbp_get_template_part('form', 'topic'); ?> </div> </div><!-- #bbp-edit-page --> <?php } ?> </div><!-- #content --> </div><!-- #container --> <?php get_sidebar(); get_footer();
?> </p> </div> <?php } ?> <?php do_action('bbp_template_notices'); ?> <div> <?php bbp_get_template_part('bbpress/form', 'anonymous'); ?> <?php do_action('bbp_theme_before_topic_form_title'); ?> <p> <label for="bbp_topic_title"><?php printf(__('Topic Title (Maximum Length: %d):', 'bbpress'), bbp_get_title_max_length()); ?> </label><br /> <input type="text" id="bbp_topic_title" value="<?php bbp_form_topic_title(); ?> " tabindex="<?php
the_post(); ?> <div id="forum-front" class="bbp-forum-front"> <h1 class="entry-title"><?php the_title(); ?> </h1> <div class="entry-content"> <?php the_content(); ?> <?php bbp_get_template_part('content', 'archive-forum'); ?> </div> </div><!-- #forum-front --> <?php } ?> </div><!-- #content --> </div><!-- #container --> <?php get_sidebar(); get_footer();
* @subpackage Theme */ get_header(); st_before_content($columns); do_action('bbp_template_notices'); ?> <?php while (have_posts()) { the_post(); } ?> <div id="bbp-edit-page" class="bbp-edit-page"> <h1 class="entry-title"><?php the_title(); ?> </h1> <div class="entry-content"> <?php bbp_get_template_part('bbpress/form', 'topic-merge'); ?> </div> </div><!-- #bbp-edit-page --> <?php st_after_content(); // get_sidebar('bbpress'); get_footer();
?> </p> </div> <?php } ?> <?php do_action('bbp_template_notices'); ?> <div> <?php bbp_get_template_part('form', 'anonymous'); ?> <?php do_action('bbp_theme_before_reply_form_content'); ?> <?php bbp_the_content(array('context' => 'reply')); ?> <?php do_action('bbp_theme_after_reply_form_content'); ?> <?php
* @package bbPress * @subpackage Theme */ get_header(); st_before_content($columns); do_action('bbp_template_notices'); ?> <div id="bbp-view-<?php bbp_view_id(); ?> " class="bbp-view"> <h1 class="entry-title"><?php bbp_view_title(); ?> </h1> <div class="entry-content"> <?php bbp_get_template_part('bbpress/content', 'single-view'); ?> </div> </div><!-- #bbp-view-<?php bbp_view_id(); ?> --> <?php st_after_content(); // get_sidebar('bbpress'); get_footer();
<h2 class="entry-title"><?php _e('Popular Topics', 'bbpress'); ?> </h2> <?php bbp_get_template_part('bbpress/pagination', 'topics'); ?> <?php bbp_get_template_part('bbpress/loop', 'topics'); ?> <?php bbp_get_template_part('bbpress/pagination', 'topics'); ?> <?php } ?> <?php bbp_reset_query_name(); ?> <?php do_action('bbp_after_popular_topics'); ?> </div>
<div class="container"> <!-- #content --> <section id="content" role="main"> <?php do_action('bbp_before_main_content'); ?> <div id="bbp-user-<?php bbp_current_user_id(); ?> " class="bbp-single-user"> <div class="entry-content"> <?php bbp_get_template_part('content', 'single-user'); ?> </div><!-- .entry-content --> </div><!-- #bbp-user-<?php bbp_current_user_id(); ?> --> <?php do_action('bbp_after_main_content'); ?> </section> <!-- /#content -->
<?php bbp_get_template_part('pagination', 'replies'); ?> <?php bbp_get_template_part('loop', 'replies'); ?> <?php bbp_get_template_part('pagination', 'replies'); ?> <?php } ?> <?php bbp_get_template_part('form', 'reply'); ?> <?php } ?> <?php do_action('bbp_template_after_single_topic'); ?> </div>
* @subpackage Theme */ ?> <?php do_action('bbp_template_before_search_results_loop'); ?> <div id="bbp-search-results" class="forums bbp-search-results"> <section class="bbp-body"> <?php while (bbp_search_results()) { bbp_the_search_result(); ?> <?php bbp_get_template_part('loop', 'single-' . get_post_type()); ?> <?php } ?> </section><!-- .bbp-body --> </div><!-- #bbp-search-results --> <?php do_action('bbp_template_after_search_results_loop');
do_action('bbp_template_before_forums_index'); ?> <?php if (bbp_has_forums()) { ?> <?php bbp_get_template_part('loop', 'forums'); ?> <?php } else { ?> <?php bbp_get_template_part('feedback', 'no-forums'); ?> <?php } ?> <?php do_action('bbp_template_after_forums_index'); ?> </div> <?php do_action('oxy-bbpress-global-bottom');
<?php do_action('bbp_template_before_single_reply'); ?> <?php if (post_password_required()) { ?> <?php bbp_get_template_part('form', 'protected'); ?> <?php } else { ?> <?php bbp_get_template_part('loop', 'single-reply'); ?> <?php } ?> <?php do_action('bbp_template_after_single_reply'); ?> </div>