示例#1
0
 private function _view_searchresults($args) {
     bbp_register_view(
             'search', 
             __("Search Results", "gd-bbpress-tools"), 
             array(), 
             false);
 }
示例#2
0
 /**
  * Register the bbPress views
  *
  * @since bbPress (r2789)
  * @uses bbp_register_view() To register the views
  */
 public static function register_views()
 {
     // Popular topics
     bbp_register_view('popular', __('Most popular topics', 'bbpress'), apply_filters('bbp_register_view_popular', array('meta_key' => '_bbp_reply_count', 'max_num_pages' => 1, 'orderby' => 'meta_value_num', 'show_stickies' => false)));
     // Topics with no replies
     bbp_register_view('no-replies', __('Topics with no replies', 'bbpress'), apply_filters('bbp_register_view_no_replies', array('meta_key' => '_bbp_reply_count', 'meta_value' => 1, 'meta_compare' => '<', 'orderby' => '', 'show_stickies' => false)));
 }
示例#3
0
 /**
  * Register the bbPress views
  *
  * @since bbPress (r2789)
  * @uses bbp_register_view() To register the views
  */
 public static function register_views()
 {
     // Topics with no replies
     bbp_register_view('no-replies', __('Topics with no replies', 'bbpress'), apply_filters('bbp_register_view_no_replies', array('meta_key' => '_bbp_reply_count', 'meta_value' => 1, 'meta_compare' => '<', 'orderby' => '')));
 }