Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
12/14/2009 03:24:05 PM (16 years ago)
Author:
apeatling
Message:

Committing core code support for new default theme.

Removed all deprecated code since it will be released as a separate plugin for backwards compatibility if people need it.

Removed the wire and status updates components since there is no support in the theme for these. If people still want this functionality then I'm sure there is someone in the community that could spend a bit of time and release them as plugins. I'm happy to guide.

Removed a lot of template loop duplication. There are no longer site loops and user loops (e.g. bp_has_site_groups() / bp_has_groups() ). There are now bp_has_members(), bp_has_groups(), bp_has_blogs() and you can pass a "user_id" parameter into these loops to limit results to only that user or users.

Merged activity stream functions. There are no longer functions for bp_activity_get_sitewide() / bp_activity_get_for_user() / bp_activity_get_friends_activity() instead there is simply one function: bp_activity_get() and you can pass in parameters to filter on just friends, for a single user, or anything your heart desires. Actually, filtering is extremely fine grained, so I encourage devs to check out the filter functions.

Lots of other code cleanup.

The new default theme will be committed straight after this. The original default folder will be renamed to bp-classic.

File:
1 edited

Legend:

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

    r2114 r2168  
    6464    add_action( 'bp_template_content', 'bp_core_screen_general_settings_content' );
    6565
    66     bp_core_load_template( apply_filters( 'bp_core_template_plugin', 'plugin-template' ) );
     66    bp_core_load_template( apply_filters( 'bp_core_template_plugin', 'members/single/plugins' ) );
    6767}
    6868
     
    9494        <input type="password" name="pass2" id="pass2" size="16" value="" class="settings-input small" /> &nbsp;<?php _e( 'Repeat New Password', 'buddypress' ) ?>
    9595
    96         <p class="submit"><input type="submit" name="submit" value="<?php _e( 'Save Changes', 'buddypress' ) ?>" id="submit" class="auto"/></p>
     96        <div class="submit">
     97            <input type="submit" name="submit" value="<?php _e( 'Save Changes', 'buddypress' ) ?>" id="submit" class="auto"/></p>
     98        </div>
     99
    97100        <?php wp_nonce_field('bp_settings_general') ?>
    98101    </form>
     
    122125    add_action( 'bp_template_content', 'bp_core_screen_notification_settings_content' );
    123126
    124     bp_core_load_template( apply_filters( 'bp_core_template_plugin', 'plugin-template' ) );
     127    bp_core_load_template( apply_filters( 'bp_core_template_plugin', 'members/single/plugins' ) );
    125128}
    126129
     
    144147        <?php do_action( 'bp_notification_settings' ) ?>
    145148
    146         <p class="submit"><input type="submit" name="submit" value="<?php _e( 'Save Changes', 'buddypress' ) ?>" id="submit" class="auto"/></p>
     149        <div class="submit">
     150            <input type="submit" name="submit" value="<?php _e( 'Save Changes', 'buddypress' ) ?>" id="submit" class="auto"/></p>
     151        </div>
    147152
    148153        <?php wp_nonce_field('bp_settings_notifications') ?>
     
    166171    add_action( 'bp_template_content', 'bp_core_screen_delete_account_content' );
    167172
    168     bp_core_load_template( apply_filters( 'bp_core_template_plugin', 'plugin-template' ) );
     173    bp_core_load_template( apply_filters( 'bp_core_template_plugin', 'members/single/plugins' ) );
    169174}
    170175
     
    183188
    184189        <input type="checkbox" name="delete-account-understand" id="delete-account-understand" value="1" onclick="if(this.checked) { document.getElementById('delete-account-button').disabled = ''; } else { document.getElementById('delete-account-button').disabled = 'disabled'; }" /> <?php _e( 'I understand the consequences of deleting my account.', 'buddypress' ); ?>
    185         <p><input type="submit" disabled="disabled" value="<?php _e( 'Delete My Account', 'buddypress' ) ?> &raquo;" id="delete-account-button" name="delete-account-button" /></p>
     190
     191        <div class="submit">
     192            <input type="submit" disabled="disabled" value="<?php _e( 'Delete My Account', 'buddypress' ) ?> &raquo;" id="delete-account-button" name="delete-account-button" /></p>
     193        </div>
     194
    186195        <?php wp_nonce_field('delete-account') ?>
    187196    </form>
Note: See TracChangeset for help on using the changeset viewer.