Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
11/23/2015 03:55:00 AM (11 years ago)
Author:
tw2113
Message:

More documentation cleanup for BP-Blogs component.

See #6397.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-blogs/bp-blogs-screens.php

    r10100 r10374  
    77 */
    88
    9 // Exit if accessed directly
     9// Exit if accessed directly.
    1010defined( 'ABSPATH' ) || exit;
    1111
     
    9696        public function is_blogs() {
    9797
    98                 // Bail if not looking at a group
     98                // Bail if not looking at a group.
    9999                if ( ! bp_is_blogs_component() )
    100100                        return;
    101101
    102                 // Bail if looking at a users sites
     102                // Bail if looking at a users sites.
    103103                if ( bp_is_user() )
    104104                        return;
    105105
    106                 // Blog Directory
     106                // Blog Directory.
    107107                if ( is_multisite() && ! bp_current_action() ) {
    108108                        bp_update_is_directory( true, 'blogs' );
     
    120120                        add_filter( 'bp_replace_the_content',                    array( $this, 'directory_content'    ) );
    121121
    122                 // Create blog
     122                // Create blog.
    123123                } elseif ( is_user_logged_in() && bp_blog_signup_enabled() ) {
    124124                        add_filter( 'bp_get_buddypress_template',                array( $this, 'create_template_hierarchy' ) );
     
    139139         *
    140140         * @param string $templates The templates from bp_get_theme_compat_templates().
    141          *
    142141         * @return array $templates Array of custom templates to look for.
    143142         */
     
    156155
    157156                // Merge new templates with existing stack
    158                 // @see bp_get_theme_compat_templates()
     157                // @see bp_get_theme_compat_templates().
    159158                $templates = array_merge( (array) $new_templates, $templates );
    160159
     
    202201         *
    203202         * @param string $templates The templates from bp_get_theme_compat_templates().
    204          *
    205203         * @return array $templates Array of custom templates to look for.
    206204         */
     
    219217
    220218                // Merge new templates with existing stack
    221                 // @see bp_get_theme_compat_templates()
     219                // @see bp_get_theme_compat_templates().
    222220                $templates = array_merge( (array) $new_templates, $templates );
    223221
     
    232230        public function create_dummy_post() {
    233231
    234                 // Title based on ability to create blogs
     232                // Title based on ability to create blogs.
    235233                if ( is_user_logged_in() && bp_blog_signup_enabled() ) {
    236234                        $title = __( 'Create a Site', 'buddypress' );
Note: See TracChangeset for help on using the changeset viewer.