Changeset 7555 for trunk/bp-blogs/bp-blogs-screens.php
- Timestamp:
- 11/10/2013 02:04:14 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-blogs/bp-blogs-screens.php
r7386 r7555 11 11 if ( !defined( 'ABSPATH' ) ) exit; 12 12 13 /** 14 * Load the "My Blogs" screen. 15 */ 13 16 function bp_blogs_screen_my_blogs() { 14 17 if ( !is_multisite() ) … … 20 23 } 21 24 25 /** 26 * Load the "Create a Blog" screen. 27 */ 22 28 function bp_blogs_screen_create_a_blog() { 23 29 … … 34 40 add_action( 'bp_screens', 'bp_blogs_screen_create_a_blog', 3 ); 35 41 42 /** 43 * Load the top-level Blogs directory. 44 */ 36 45 function bp_blogs_screen_index() { 37 46 if ( is_multisite() && bp_is_blogs_component() && !bp_current_action() ) { … … 48 57 49 58 /** 50 * The main theme compat class for BuddyPress Activity59 * The main theme compat class for BuddyPress Blogs 51 60 * 52 61 * This class sets up the necessary theme compatability actions to safely output 53 62 * group template parts to the_title and the_content areas of a theme. 54 63 * 55 * @since BuddyPress (1.7 )64 * @since BuddyPress (1.7.0) 56 65 */ 57 66 class BP_Blogs_Theme_Compat { 58 67 59 68 /** 60 * Set up the groups component theme compatibility61 * 62 * @since BuddyPress (1.7 )69 * Set up theme compatibility for the Blogs component. 70 * 71 * @since BuddyPress (1.7.0) 63 72 */ 64 73 public function __construct() { … … 67 76 68 77 /** 69 * Are we looking at something that needs grouptheme compatability?70 * 71 * @since BuddyPress (1.7 )78 * Are we looking at something that needs Blogs theme compatability? 79 * 80 * @since BuddyPress (1.7.0) 72 81 */ 73 82 public function is_blogs() { … … 104 113 * Add template hierarchy to theme compat for the blog directory page. 105 114 * 106 * This is to mirror how WordPress has {@link https://codex.wordpress.org/Template_Hierarchy template hierarchy}. 107 * 108 * @since BuddyPress (1.8) 109 * 110 * @param string $templates The templates from bp_get_theme_compat_templates() 115 * This is to mirror how WordPress has 116 * {@link https://codex.wordpress.org/Template_Hierarchy template hierarchy}. 117 * 118 * @since BuddyPress (1.8.0) 119 * 120 * @param string $templates The templates from 121 * bp_get_theme_compat_templates(). 111 122 * @return array $templates Array of custom templates to look for. 112 123 */ … … 125 136 126 137 /** 127 * Update the global $post with directory data 128 * 129 * @since BuddyPress (1.7 )138 * Update the global $post with directory data. 139 * 140 * @since BuddyPress (1.7.0) 130 141 */ 131 142 public function directory_dummy_post() { … … 152 163 153 164 /** 154 * Filter the_content with the groups index template part 155 * 156 * @since BuddyPress (1.7 )165 * Filter the_content with the groups index template part. 166 * 167 * @since BuddyPress (1.7.0) 157 168 */ 158 169 public function directory_content() { … … 165 176 * Add custom template hierarchy to theme compat for the blog create page. 166 177 * 167 * This is to mirror how WordPress has {@link https://codex.wordpress.org/Template_Hierarchy template hierarchy}. 168 * 169 * @since BuddyPress (1.8) 170 * 171 * @param string $templates The templates from bp_get_theme_compat_templates() 178 * This is to mirror how WordPress has 179 * {@link https://codex.wordpress.org/Template_Hierarchy template hierarchy}. 180 * 181 * @since BuddyPress (1.8.0) 182 * 183 * @param string $templates The templates from 184 * bp_get_theme_compat_templates(). 172 185 * @return array $templates Array of custom templates to look for. 173 186 */ … … 186 199 187 200 /** 188 * Update the global $post with create screen data 189 * 190 * @since BuddyPress (1.7 )201 * Update the global $post with create screen data. 202 * 203 * @since BuddyPress (1.7.0) 191 204 */ 192 205 public function create_dummy_post() { … … 213 226 214 227 /** 215 * Filter the_content with the create screen template part 216 * 217 * @since BuddyPress (1.7 )228 * Filter the_content with the create screen template part. 229 * 230 * @since BuddyPress (1.7.0) 218 231 */ 219 232 public function create_content() {
Note: See TracChangeset
for help on using the changeset viewer.