Changeset 4012 for trunk/bp-forums/bp-forums-screens.php
- Timestamp:
- 02/02/2011 08:52:58 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-forums/bp-forums-screens.php
r4010 r4012 61 61 add_action( 'bp_screens', 'bp_forums_directory_forums_setup' ); 62 62 63 function bp_ forums_screen_topics() {63 function bp_member_forums_screen_topics() { 64 64 global $bp; 65 65 66 do_action( 'bp_ forums_screen_topics' );66 do_action( 'bp_member_forums_screen_topics' ); 67 67 68 68 bp_core_load_template( apply_filters( 'bp_forums_screen_topics', 'members/single/home' ) ); 69 69 } 70 70 71 function bp_forums_screen_replies() { 71 function bp_member_forums_screen_replies() { 72 global $bp; 73 74 do_action( 'bp_member_forums_screen_replies' ); 75 76 bp_core_load_template( apply_filters( 'bp_member_forums_screen_replies', 'members/single/home' ) ); 77 } 78 79 function bp_member_forums_screen_favorites() { 80 global $bp; 81 82 do_action( 'bp_member_forums_screen_favorites' ); 83 84 bp_core_load_template( apply_filters( 'bp_member_forums_screen_favorites', 'members/single/home' ) ); 85 } 86 87 function bp_forums_screen_single_forum() { 88 global $bp; 89 90 if ( !bp_is_forums_component() || !bp_is_current_action( 'forum' ) || empty( $bp->action_variables[0] ) ) 91 return false; 92 93 do_action( 'bp_forums_screen_single_forum' ); 94 95 bp_core_load_template( apply_filters( 'bp_forums_screen_single_forum', 'forums/single/forum' ) ); 96 } 97 add_action( 'bp_screens', 'bp_forums_screen_single_forum' ); 98 99 function bp_forums_screen_single_topic() { 72 100 global $bp; 73 101 … … 75 103 return false; 76 104 77 do_action( 'bp_forums_screen_ replies' );105 do_action( 'bp_forums_screen_single_topic' ); 78 106 79 bp_core_load_template( apply_filters( 'bp_forums_screen_ replies', 'forums/single/topic' ) );107 bp_core_load_template( apply_filters( 'bp_forums_screen_single_topic', 'forums/single/topic' ) ); 80 108 } 81 add_action( 'bp_screens', 'bp_forums_screen_replies' ); 82 83 function bp_forums_screen_favorites() { 84 global $bp; 85 86 do_action( 'bp_forums_screen_favorites' ); 87 88 bp_core_load_template( apply_filters( 'bp_forums_screen_favorites', 'members/single/home' ) ); 89 } 109 add_action( 'bp_screens', 'bp_forums_screen_single_topic' ); 90 110 91 111 ?>
Note: See TracChangeset
for help on using the changeset viewer.