Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
08/27/2011 01:37:06 PM (13 years ago)
Author:
boonebgorges
Message:

Modifies layout of Site Tracking tab when upgrading to MS. Fixes #3471

File:
1 edited

Legend:

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

    r4992 r5038  
    299299        <p><strong><?php _e( 'Please Note:', 'buddypress' ) ?></strong> <?php _e( "If you have manually added BuddyPress navigation links in your theme you may need to remove these from your header.php to avoid duplicate links.", 'buddypress' ) ?></p>
    300300
     301        <p><?php _e( 'Would you like to enable site tracking, which tracks blog posts and comments from across your network?', 'buddypress' ); ?></p>
     302
    301303        <table class="form-table">
    302304
    303305            <tr valign="top">
    304                 <th scope="row">
    305                     <h5><?php _e( 'Sites', 'buddypress' ); ?></h5>
    306                     <p><?php _e( 'Displays a directory of the sites in your network.', 'buddypress' ); ?></p>
    307                 </th>
     306                <th scope="row"><?php _e( "Enable Site Tracking?", 'buddypress' ) ?></th>
     307
     308                <td>
     309                    <label for="bp_components[blogs]">
     310                        <input id="site-tracking-enabled" type="checkbox" id="bp_components[blogs]" name="bp_components[blogs]" value="1"<?php checked( isset( $active_components[blogs] ) ); ?> />
     311
     312                        <?php _e( "Track new sites, new posts and new comments across your entire network.", 'buddypress' ) ?>
     313
     314                    </label>
     315
     316                </td>
     317            </tr>
     318
     319            <tr valign="top" id="site-tracking-page-selector">
     320                <th scope="row"><?php _e( 'Select a WordPress page for the Sites directory.', 'buddypress' ); ?></th>
     321
    308322                <td>
    309323                    <p><input type="radio" name="bp_pages[blogs]" checked="checked" value="<?php echo $blogs_slug; ?>" /> <?php _e( 'Automatically create a page at:', 'buddypress' ); ?> <?php echo site_url( $blogs_slug ); ?>/</p>
     
    314328        </table>
    315329
    316         <p><?php _e( 'Would you like to enable site tracking, which tracks blog posts and comments from across your network?', 'buddypress' ); ?></p>
    317 
    318         <div class="left-col">
    319 
    320             <div class="component">
    321                 <h5><?php _e( "Site Tracking", 'buddypress' ); ?></h5>
    322 
    323                 <div class="radio">
    324                     <input type="radio" name="bp_components[blogs]" value="1"<?php if ( isset( $active_components['blogs'] ) ) : ?> checked="checked" <?php endif; ?>/> <?php _e( 'Enabled', 'buddypress' ) ?> &nbsp;
    325                     <input type="radio" name="bp_components[blogs]" value="0"<?php if ( !isset( $active_components['blogs'] ) ) : ?> checked="checked" <?php endif; ?>/> <?php _e( 'Disabled', 'buddypress' ) ?>
    326                 </div>
    327 
    328                 <img src="<?php echo plugins_url( 'buddypress/screenshot-7.gif' ) ?>" alt="Activity Streams" />
    329 
    330                 <p><?php _e( "Track new sites, new posts and new comments across your entire network.", 'buddypress' ) ?></p>
    331 
    332             </div>
    333         </div>
    334330
    335331        <div class="submit clear">
     
    12291225
    12301226function bp_core_update_add_admin_menu_styles() {
    1231     if ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG )
     1227    if ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) {
    12321228        wp_enqueue_style( 'bp-admin-css', apply_filters( 'bp_core_admin_css', plugins_url( '/buddypress' ) . '/bp-core/css/admin.dev.css' ), array(), '20110723' );
    1233     else
     1229        wp_enqueue_script( 'bp-update-js', apply_filters( 'bp_core_update_js', plugins_url( '/buddypress' ) . '/bp-core/js/update.dev.js' ), array( 'jquery' ), '20110723' );
     1230    } else {
    12341231        wp_enqueue_style( 'bp-admin-css', apply_filters( 'bp_core_admin_css', plugins_url( '/buddypress' ) . '/bp-core/css/admin.css' ), array(), '20110723' );
     1232        wp_enqueue_script( 'bp-update-js', apply_filters( 'bp_core_update_js', plugins_url( '/buddypress' ) . '/bp-core/js/update.js' ), array( 'jquery' ), '20110723' );
     1233
     1234    }
    12351235
    12361236    wp_enqueue_script( 'thickbox' );
Note: See TracChangeset for help on using the changeset viewer.