Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
08/10/2011 06:32:02 AM (14 years ago)
Author:
djpaul
Message:

Tidy up whitespace. Fixes #3466, props cnorris23

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/admin/bp-core-admin.php

    r4920 r4961  
    1919 * @since {@internal Unknown}}
    2020 */
    21 function bp_core_admin_dashboard() { 
     21function bp_core_admin_dashboard() {
    2222    $base_url = bp_get_admin_url( 'admin.php' );
    2323    $action   = add_query_arg( array( 'page' => 'bp-general-settings' ), $base_url );
     
    331331function bp_core_admin_component_options() {
    332332    global $bp_wizard;
    333    
     333
    334334    // Load core functions, if needed
    335335    if ( !function_exists( 'bp_get_option' ) )
     
    337337
    338338    $active_components = apply_filters( 'bp_active_components', bp_get_option( 'bp-active-components' ) );
    339    
     339
    340340    // An array of strings looped over to create component setup markup
    341341    $optional_components = apply_filters( 'bp_admin_optional_components', array(
     
    388388        ),
    389389    ) );
    390    
     390
    391391    // On new install, set all components to be active by default
    392392    if ( !empty( $bp_wizard ) && 'install' == $bp_wizard->setup_type && empty( $active_components ) )
     
    394394
    395395    ?>
    396    
     396
    397397    <?php /* The setup wizard uses different, more descriptive text here */ ?>
    398398    <?php if ( empty( $bp_wizard ) ) : ?>
    399399
    400400        <h3><?php _e( 'Available Components', 'buddypress' ); ?></h3>
    401                
     401
    402402        <p><?php _e( 'Each component has a unique purpose, and your community may not need each one.', 'buddypress' ); ?></p>
    403403
    404404    <?php endif ?>
    405    
     405
    406406    <table class="form-table">
    407407        <tbody>
     
    480480function bp_core_admin_page_options() {
    481481    global $bp;
    482    
     482
    483483    // Get the existing WP pages
    484484    $existing_pages = bp_core_get_directory_page_ids();
     
    492492        // Only components that need directories should be listed here
    493493        if ( isset( $bp->{$component_id} ) && !empty( $bp->{$component_id}->has_directory ) ) {
    494            
     494
    495495            // component->name was introduced in BP 1.5, so we must provide a fallback
    496496            $component_name = !empty( $bp->{$component_id}->name ) ? $bp->{$component_id}->name : ucwords( $component_id );
    497            
     497
    498498            $directory_pages[$component_id] = $component_name;
    499499        }
    500500    }
    501    
     501
    502502    $directory_pages = apply_filters( 'bp_directory_pages', $directory_pages );
    503    
     503
    504504    ?>
    505    
     505
    506506    <h3><?php _e( 'Directories', 'buddypress' ); ?></h3>
    507    
     507
    508508    <p><?php _e( 'Associate a WordPress Page with each BuddyPress component directory.', 'buddypress' ); ?></p>
    509509
     
    513513            <?php foreach ( $directory_pages as $name => $label ) : ?>
    514514                <?php $disabled = !bp_is_active( $name ) ? ' disabled="disabled"' : ''; ?>
    515                
     515
    516516                <tr valign="top">
    517517                    <th scope="row">
     
    520520
    521521                    <td>
    522                         <?php if ( !bp_is_root_blog() ) 
     522                        <?php if ( !bp_is_root_blog() )
    523523                            switch_to_blog( bp_get_root_blog_id() ) ?>
    524                        
     524
    525525                        <?php echo wp_dropdown_pages( array(
    526526                            'name'             => 'bp_pages[' . esc_attr( $name ) . ']',
     
    538538
    539539                        <?php endif; ?>
    540                        
    541                         <?php if ( !bp_is_root_blog() ) 
     540
     541                        <?php if ( !bp_is_root_blog() )
    542542                            restore_current_blog() ?>
    543543
     
    552552        </tbody>
    553553    </table>
    554    
     554
    555555    <?php
    556556
Note: See TracChangeset for help on using the changeset viewer.