Skip to:
Content

BuddyPress.org

Changeset 9889


Ignore:
Timestamp:
05/21/2015 08:54:25 PM (11 years ago)
Author:
johnjamesjacoby
Message:

Admin: Updated welcome screen text and featured image.

Props mercime, imath. Fixes #6433.

Location:
trunk/src/bp-core
Files:
1 added
1 deleted
1 edited

Legend:

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

    r9857 r9889  
    1717 * @package BuddyPress
    1818 * @subpackage CoreAdministration
     19 * @todo Break this apart into each applicable Component
    1920 *
    2021 * @since BuddyPress (1.6.0)
    … …  
    159160
    160161                // Add a description of new BuddyPress tools in the available tools page
    161                 add_action( 'tool_box', 'bp_core_admin_available_tools_intro' );
     162                add_action( 'tool_box',            'bp_core_admin_available_tools_intro' );
    162163                add_action( 'bp_network_tool_box', 'bp_core_admin_available_tools_intro' );
    163164
    … …  
    315316
    316317                // Add the main section
    317                 add_settings_section( 'bp_main',            __( 'Main Settings',    'buddypress' ), 'bp_admin_setting_callback_main_section',     'buddypress'            );
     318                add_settings_section( 'bp_main', __( 'Main Settings', 'buddypress' ), 'bp_admin_setting_callback_main_section', 'buddypress' );
    318319
    319320                // Hide toolbar for logged out users setting
    320                 add_settings_field( 'hide-loggedout-adminbar',        __( 'Toolbar',        'buddypress' ), 'bp_admin_setting_callback_admin_bar',        'buddypress', 'bp_main' );
    321                 register_setting  ( 'buddypress',           'hide-loggedout-adminbar',        'intval'                                                                              );
     321                add_settings_field( 'hide-loggedout-adminbar', __( 'Toolbar', 'buddypress' ), 'bp_admin_setting_callback_admin_bar', 'buddypress', 'bp_main' );
     322                register_setting( 'buddypress', 'hide-loggedout-adminbar', 'intval' );
    322323
    323324                // Only show 'switch to Toolbar' option if the user chose to retain the BuddyBar during the 1.6 upgrade
    … …  
    329330                // Allow account deletion
    330331                add_settings_field( 'bp-disable-account-deletion', __( 'Account Deletion', 'buddypress' ), 'bp_admin_setting_callback_account_deletion', 'buddypress', 'bp_main' );
    331                 register_setting  ( 'buddypress',           'bp-disable-account-deletion', 'intval'                                                                              );
     332                register_setting( 'buddypress', 'bp-disable-account-deletion', 'intval' );
    332333
    333334                /** XProfile Section **************************************************/
    … …  
    342343
    343344                        // Profile sync setting
    344                         add_settings_field( 'bp-disable-profile-sync',   __( 'Profile Syncing',  'buddypress' ), 'bp_admin_setting_callback_profile_sync',     'buddypress', 'bp_xprofile' );
    345                         register_setting  ( 'buddypress',         'bp-disable-profile-sync',     'intval'                                                                                  );
     345                        add_settings_field( 'bp-disable-profile-sync',   __( 'Profile Syncing',  'buddypress' ), 'bp_admin_setting_callback_profile_sync', 'buddypress', 'bp_xprofile' );
     346                        register_setting  ( 'buddypress', 'bp-disable-profile-sync', 'intval' );
    346347                }
    347348
    … …  
    351352
    352353                        // Add the main section
    353                         add_settings_section( 'bp_groups',        __( 'Groups Settings',  'buddypress' ), 'bp_admin_setting_callback_groups_section',   'buddypress'              );
     354                        add_settings_section( 'bp_groups', __( 'Groups Settings',  'buddypress' ), 'bp_admin_setting_callback_groups_section', 'buddypress' );
    354355
    355356                        // Allow subscriptions setting
    356                         add_settings_field( 'bp_restrict_group_creation', __( 'Group Creation',   'buddypress' ), 'bp_admin_setting_callback_group_creation',   'buddypress', 'bp_groups' );
    357                         register_setting  ( 'buddypress',         'bp_restrict_group_creation',   'intval'                                                                                );
     357                        add_settings_field( 'bp_restrict_group_creation', __( 'Group Creation', 'buddypress' ), 'bp_admin_setting_callback_group_creation',   'buddypress', 'bp_groups' );
     358                        register_setting( 'buddypress', 'bp_restrict_group_creation', 'intval' );
    358359
    359360                        // Allow group avatars.
    … …  
    367368
    368369                        // Add the main section
    369                         add_settings_section( 'bp_forums',        __( 'Legacy Group Forums',       'buddypress' ), 'bp_admin_setting_callback_bbpress_section',       'buddypress'              );
     370                        add_settings_section( 'bp_forums', __( 'Legacy Group Forums', 'buddypress' ), 'bp_admin_setting_callback_bbpress_section', 'buddypress' );
    370371
    371372                        // Allow subscriptions setting
    372373                        add_settings_field( 'bb-config-location', __( 'bbPress Configuration', 'buddypress' ), 'bp_admin_setting_callback_bbpress_configuration', 'buddypress', 'bp_forums' );
    373                         register_setting  ( 'buddypress',         'bb-config-location',        ''                                                                                          );
     374                        register_setting( 'buddypress', 'bb-config-location', '' );
    374375                }
    375376
    … …  
    379380
    380381                        // Add the main section
    381                         add_settings_section( 'bp_activity',      __( 'Activity Settings', 'buddypress' ), 'bp_admin_setting_callback_activity_section', 'buddypress'                );
     382                        add_settings_section( 'bp_activity', __( 'Activity Settings', 'buddypress' ), 'bp_admin_setting_callback_activity_section', 'buddypress' );
    382383
    383384                        // Activity commenting on blog and forum posts
    … …  
    391392                        // Allow activity akismet
    392393                        if ( is_plugin_active( 'akismet/akismet.php' ) && defined( 'AKISMET_VERSION' ) ) {
    393                                 add_settings_field( '_bp_enable_akismet', __( 'Akismet',          'buddypress' ), 'bp_admin_setting_callback_activity_akismet', 'buddypress', 'bp_activity' );
    394                                 register_setting  ( 'buddypress',         '_bp_enable_akismet',   'intval'                                                                                  );
     394                                add_settings_field( '_bp_enable_akismet', __( 'Akismet', 'buddypress' ), 'bp_admin_setting_callback_activity_akismet', 'buddypress', 'bp_activity' );
     395                                register_setting( 'buddypress', '_bp_enable_akismet', 'intval' );
    395396                        }
    396397                }
    … …  
    546547                                </div>
    547548
    548                                 <hr />
    549 
    550549                        <?php endif; ?>
    551550
    552                         <div class="changelog headline-feature">
    553                                 <h2><?php esc_html_e( 'Member Types', 'buddypress' ); ?></h2>
     551                        <div class="headline-feature">
     552                                <h3><?php esc_html_e( 'Upload Avatars with a Drag and a Drop', 'buddypress' ); ?></h3>
     553
    554554                                <div class="featured-image">
    555                                         <img src="<?php echo esc_url( buddypress()->plugin_url . 'bp-core/admin/images/member-types.png' ); ?>" alt="<?php esc_attr_e( 'Member types metabox', 'buddypress' ); ?>">
     555                                        <img src="<?php echo esc_url( buddypress()->plugin_url . 'bp-core/admin/images/avatar-ui.gif' ); ?>" alt="<?php esc_attr_e( 'Revamped Avatar Upload UI', 'buddypress' ); ?>">
    556556                                </div>
    557557
    558558                                <div class="feature-section">
    559                                         <h3><?php esc_html_e( 'Native APIs for crafting great new member experiences.', 'buddypress' ); ?></h3>
    560                                         <p><?php esc_html_e( 'Registering member types finally enables a strict separation of different and explicit types of community members.', 'buddypress' ); ?></p>
    561                                         <p><?php esc_html_e( 'This amazing new feature is available to plugin developers starting with BuddyPress 2.2', 'buddypress' ); ?></p>
    562                                         <p><a href="https://codex.buddypress.org/developer/member-types/"><?php esc_html_e( 'Learn more &rarr;', 'buddypress' ); ?></a></p>
     559                                        <h3><?php esc_html_e( 'Built with the Attachments API, the new foundation for BuddyPress media management.', 'buddypress' ); ?></h3>
     560                                        <p><?php esc_html_e( 'You can drag and drop any image you choose to upload as your profile photo. The interface is mobile-ready and now includes integration with phone or laptop cameras. This is an example of what can be developed using the new Attachments API, the long-awaited foundation for media-related BuddyPress components and features.', 'buddypress' ); ?> <a href="https://codex.buddypress.org/plugindev/bp_attachment/"><?php esc_html_e( 'Learn more &rarr;', 'buddypress' ); ?></a></p>
    563561                                </div>
    564562
    … …  
    566564                        </div>
    567565
    568                         <hr />
    569 
    570                         <div class="changelog feature-list finer-points">
     566                        <div class="feature-list finer-points">
    571567                                <h2><?php esc_html_e( 'The Finer Points', 'buddypress' ); ?></h2>
    572568
    573569                                <div class="feature-section col two-col">
    574570                                        <div>
    575                                                 <span class=" dashicons dashicons-admin-post"></span>
    576                                                 <h4><?php esc_html_e( 'Post Types Activities', 'buddypress' ); ?></h4>
    577                                                 <p><?php esc_html_e( 'Register custom post types so they appear as activity stream items, complete with custom verbiage.', 'buddypress' ); ?></p>
     571                                                <span class=" dashicons dashicons-admin-users"></span>
     572                                                <h4><?php esc_html_e( 'Member Type Directories', 'buddypress' ); ?></h4>
     573                                                <p><?php esc_html_e( 'Create directories of member types in your site using the Member Type API.', 'buddypress' ); ?></p>
    578574                                        </div>
    579575
    580576                                        <div class="template-pack last-feature">
    581577                                                <span class=" dashicons dashicons-admin-appearance"></span>
    582                                                 <h4><?php esc_html_e( 'Template Pack', 'buddypress' ); ?></h4>
    583                                                 <p><?php esc_html_e( 'The Legacy template pack is now more responsive and accommodating to more WordPress themes.', 'buddypress' ); ?></p>
     578                                                <h4><?php esc_html_e( 'Core Theme Companion Styling', 'buddypress' ); ?></h4>
     579                                                <p><?php esc_html_e( 'Improved integration of components in WordPress core themes Twenty Fifteen and Twenty Fourteen.', 'buddypress' ); ?></p>
    584580                                        </div>
    585581
    586582                                        <div class="group-invites">
    587                                                 <span class=" dashicons dashicons-editor-code"></span>
    588                                                 <h4><?php esc_html_e( 'Message Meta', 'buddypress' ); ?></h4>
    589                                                 <p><?php esc_html_e( 'Private message conversations made infinitely more flexible with an additional metadata table.', 'buddypress' ); ?></p>
     583                                                <span class=" dashicons dashicons-admin-post"></span>
     584                                                <h4><?php esc_html_e( 'Blog Post Activity', 'buddypress' ); ?></h4>
     585                                                <p><?php esc_html_e( 'Generate better excerpts in the activity streams for posts containing images or other embedded media content.', 'buddypress' ); ?></p>
    590586                                        </div>
    591587
    592588                                        <div class="last-feature">
    593                                                 <span class=" dashicons dashicons-heart"></span>
    594                                                 <h4><?php esc_html_e( 'WordPress 3.6 - 4.1', 'buddypress' ); ?></h4>
    595                                                 <p><?php esc_html_e( 'We support a wide range of WordPress versions, even though you should always stay up-to-date.', 'buddypress' ); ?></p>
     589                                                <span class=" dashicons dashicons-star-filled"></span>
     590                                                <h4><?php esc_html_e( 'Star Private Messages ', 'buddypress' ); ?></h4>
     591                                                <p><?php esc_html_e( 'Mark important messages in your inbox from your friends with a star.', 'buddypress' ); ?></p>
    596592                                        </div>
    597593                                </div>
    598594                        </div>
    599595
    600                         <hr />
    601 
    602                         <div class="changelog feature-list">
     596                        <div class="feature-list">
    603597                                <h2><?php esc_html_e( 'Under the Hood', 'buddypress' ); ?></h2>
    604598
    605599                                <div class="feature-section col two-col">
    606600                                        <div>
    607                                                 <h4><?php esc_html_e( 'Complex Activity Queries', 'buddypress' ); ?></h4>
    608                                                 <p><?php esc_html_e( 'Metadata, multiple scopes, actions, post types, and more are now easily queried using core APIs and functionality.', 'buddypress' ); ?></p>
     601                                                <h4><?php esc_html_e( 'Components can register new features', 'buddypress' ); ?></h4>
     602                                                <p><?php esc_html_e( 'Plugin developers can register new features or check if a component feature is registered using the `BP_Component` class.', 'buddypress' ); ?></p>
    609603
    610604                                                <h4><?php esc_html_e( 'Cache Improvements', 'buddypress' ); ?></h4>
    611                                                 <p><?php esc_html_e( 'We now properly group and cache several different types of queries and objects, with an emphasis on multi-network environments.', 'buddypress' ); ?></p>
     605                                                <p><?php esc_html_e( 'Improved cacheing for the following components: Messages, Profiles, Members &amp; Member Types, and Friends.', 'buddypress' ); ?></p>
    612606                                        </div>
    613607                                        <div class="last-feature">
    … …  
    615609                                                <p><?php esc_html_e( 'Continued improvements to inline code documentation make it easier for developers to understand how BuddyPress works.', 'buddypress' ); ?></p>
    616610
    617                                                 <h4><?php esc_html_e( 'And so Much More', 'buddypress' ); ?></h4>
    618                                                 <p><?php esc_html_e( 'With over 130 bugs squashed and constant attention to improving unit-test coverage, we think this version is just the bee&#8217;s knees.', 'buddypress' ); ?></p>
     611                                                <h4><?php esc_html_e( 'User Documentation', 'buddypress' ); ?></h4>
     612                                                <p><?php esc_html_e( 'The BuddyPress Codex is maintained and updated regularly with new articles and tutorials.', 'buddypress' ); ?></p>
    619613                                        </div>
    620614                                </div>
    621615                        </div>
     616
     617                        <p><?php esc_html_e( 'Official:', 'buddypress' ); ?> <a href="https://buddypress.org/blog/"><?php esc_html_e( 'News', 'buddypress' ); ?></a> &bullet; <a href="https://buddypress.org/suppport/"><?php esc_html_e( 'Support', 'buddypress' ); ?></a> &bullet; <a href="https://codex.buddypress.org/"><?php esc_html_e( 'Documentation', 'buddypress' ); ?></a> &bullet; <a href="https://bpdevel.wordpress.com/"><?php esc_html_e( 'Development Blog', 'buddypress' ); ?></a></p>
     618                        <p><?php esc_html_e( 'Twitter:',  'buddypress' ); ?> <a href="https://twitter.com/buddypress/"><?php esc_html_e( 'BuddyPress', 'buddypress' ); ?></a> &bullet; <a href="https://twitter.com/bptrac/"><?php esc_html_e( 'BuddyPress Trac', 'buddypress' ); ?></a> &bullet; <a href="https://twitter.com/buddypressdev/"><?php esc_html_e( 'BuddyPress Dev', 'buddypress' ); ?></a></p>
    622619
    623620                <?php
Note: See TracChangeset for help on using the changeset viewer.