Skip to:
Content

BuddyPress.org

Changeset 8980


Ignore:
Timestamp:
09/05/2014 09:16:59 AM (7 years ago)
Author:
djpaul
Message:

Welcome Screen: update "new install" messaging.

Resembling the design of the top part of WordPress' dashboard, the first column shows the list and links to Settings > BuddyPress panels, the second column lists the BP panels in wp-admin, and the third column shows the links to the support forums and codex.

Props mercime, fixes #5840

File:
1 edited

Legend:

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

    r8940 r8980  
    517517            </h2>
    518518
    519             <?php if ( $is_new_install ) : ?>
    520             <h3><?php _e( 'Getting Started', 'buddypress' ); ?></h3>
    521 
    522                 <div class="feature-section">
    523                     <h4><?php _e( 'Your Default Setup', 'buddypress' ); ?></h4>
    524 
    525                     <?php if ( bp_is_active( 'members' ) && bp_is_active( 'activity' ) && current_user_can( $this->capability ) ) : ?>
    526                         <p><?php printf(
    527                         __( 'BuddyPress&#8217;s powerful features help your users connect and collaborate. To help get your community started, we&#8217;ve activated two of the most commonly used tools in BP: <strong>Extended Profiles</strong> and <strong>Activity Streams</strong>. See these components in action at the %1$s and %2$s directories, and be sure to spend a few minutes <a href="%3$s">configuring user profiles</a>. Want to explore more of BP&#8217;s features? Visit the <a href="%4$s">Components panel</a>.', 'buddypress' ),
    528                         $pretty_permalinks_enabled ? '<a href="' . trailingslashit( bp_get_root_domain() . '/' . bp_get_members_root_slug() ) . '">' . __( 'Members', 'buddypress' ) . '</a>' : __( 'Members', 'buddypress' ),
    529                         $pretty_permalinks_enabled ? '<a href="' . trailingslashit( bp_get_root_domain() . '/' . bp_get_activity_root_slug() ) . '">' . __( 'Activity', 'buddypress' ) . '</a>' : __( 'Activity', 'buddypress' ),
    530                         bp_get_admin_url( add_query_arg( array( 'page' => 'bp-profile-setup' ), 'users.php' ) ),
    531                         bp_get_admin_url( add_query_arg( array( 'page' => 'bp-components' ), $this->settings_page ) )
    532                     ); ?></p>
    533 
    534                     <?php else : ?>
    535                         <p><?php printf(
    536                         __( 'BuddyPress&#8217; powerful features help your users connect and collaborate. Want to explore BP&#8217;s features? Visit the <a href="%s">Components panel</a>.', 'buddypress' ),
    537                         bp_get_admin_url( add_query_arg( array( 'page' => 'bp-components' ), $this->settings_page ) )
    538                     ); ?></p>
    539 
    540                     <?php endif; ?>
    541 
    542                     <h4><?php _e( 'Community and Support', 'buddypress' ); ?></h4>
    543                     <p><?php _e( 'Looking for help? The <a href="http://codex.buddypress.org/">BuddyPress Codex</a> has you covered, with dozens of user-contributed guides on how to configure and use your BP site. Can&#8217;t find what you need? Stop by <a href="http://buddypress.org/support/">our support forums</a>, where a vibrant community of BuddyPress users and developers is waiting to share tips, show off their sites, talk about the future of BuddyPress, and much more.', 'buddypress' ) ?></p>
    544                     <p><?php _e( 'Read on to learn more about this version of BuddyPress.', 'buddypress' ); ?></p>
     519            <?php if ( $is_new_install ) : ?>
     520
     521                <div id="welcome-panel" class="welcome-panel">
     522                    <div class="welcome-panel-content">
     523                        <h3 style="margin:0"><?php _e( 'Getting Started with BuddyPress', 'buddypress' ); ?></h3>
     524                        <div class="welcome-panel-column-container">
     525                            <div class="welcome-panel-column">
     526                                <h4><?php _e( 'Configure Buddypress', 'buddypress' ); ?></h4>
     527                                <ul>
     528                                    <li><?php printf(
     529                                    '<a href="%s" class="welcome-icon welcome-edit-page">' . __( 'Set Up Components', 'buddypress' ) . '</a>', bp_get_admin_url( add_query_arg( array( 'page' => 'bp-components' ), $this->settings_page ) )
     530                                    ); ?></li>
     531                                    <li><?php printf(
     532                                    '<a href="%s" class="welcome-icon welcome-edit-page">' . __( 'Assign Components to Pages', 'buddypress' ) . '</a>', bp_get_admin_url( add_query_arg( array( 'page' => 'bp-page-settings' ), $this->settings_page ) )
     533                                    ); ?></li>
     534                                    <li><?php printf(
     535                                    '<a href="%s" class="welcome-icon welcome-edit-page">' . __( 'Customize Settings', 'buddypress' ) . '</a>', bp_get_admin_url( add_query_arg( array( 'page' => 'bp-settings' ), $this->settings_page ) )
     536                                    ); ?></li>
     537                                </ul>
     538                                <a class="button button-primary button-hero" style="margin-bottom:20px;margin-top:0;" href="<?php bp_get_admin_url( add_query_arg( array( 'page' => 'bp-components' ), $this->settings_page ) ); ?>" ><?php _e( 'Get Started', 'buddypress' ); ?></a>
     539                            </div>
     540                            <div class="welcome-panel-column">
     541                                <h4><?php _e( 'Administration Tools', 'buddypress' ); ?></h4>
     542                                <ul>
     543                                    <?php if ( bp_is_active( 'members' ) ) : ?>
     544                                        <li><?php printf( '<a href="%s" class="welcome-icon welcome-add-page">' . __( 'Add User Profile Fields', 'buddypress' ) . '</a>', bp_get_admin_url( add_query_arg( array( 'page' => 'bp-profile-setup' ), 'users.php' ) ) ); ?></li>
     545                                    <?php endif; ?>
     546                                    <li><?php printf( '<a href="%s" class="welcome-icon welcome-add-page">' . __( 'Manage User Signups', 'buddypress' ) . '</a>', bp_get_admin_url( add_query_arg( array( 'page' => 'bp-signups' ), 'users.php' ) ) ); ?></li>
     547                                    <?php if ( bp_is_active( 'activity' ) ) : ?>
     548                                        <li><?php printf( '<a href="%s" class="welcome-icon welcome-add-page">' . __( 'Moderate Activity Streams', 'buddypress' ) . '</a>', bp_get_admin_url( add_query_arg( array( 'page' => 'bp-activity' ), 'admin.php' ) ) ); ?></li>
     549                                    <?php endif; ?>
     550                                    <?php if ( bp_is_active( 'groups' ) ) : ?>
     551                                        <li><?php printf( '<a href="%s" class="welcome-icon welcome-add-page">' . __( 'Manage Groups', 'buddypress' ) . '</a>', bp_get_admin_url( add_query_arg( array( 'page' => 'bp-groups' ), 'admin.php' ) ) ); ?></li>
     552                                    <?php endif; ?>
     553                                    <li><?php printf( '<a href="%s" class="welcome-icon welcome-add-page">' . __( 'Repair Data', 'buddypress' ) . '</a>', bp_get_admin_url( add_query_arg( array( 'page' => 'bp-tools' ), 'tools.php' ) ) ); ?>
     554                                    </li>
     555                                </ul>
     556                            </div>
     557                            <div class="welcome-panel-column welcome-panel-last">
     558                                <h4><?php _e( 'Community and Support', 'buddypress'  ); ?></h4>
     559                                <p class="welcome-icon welcome-learn-more" style="margin-right:10px"><?php _e( 'Looking for help? The <a href="http://codex.buddypress.org/">BuddyPress Codex</a> has you covered.', 'buddypress' ) ?></p>
     560                                <p class="welcome-icon welcome-learn-more" style="margin-right:10px"><?php _e( 'Can&#8217;t find what you need? Stop by <a href="http://buddypress.org/support/">our support forums</a>, where active BuddyPress users and developers are waiting to share tips and more.', 'buddypress' ) ?></p>
     561                            </div>
     562                        </div>
     563                    </div>
    545564                </div>
    546                 <hr />
    547565
    548566            <?php endif; ?>
     567
     568            <hr />
    549569
    550570            <div class="changelog">
Note: See TracChangeset for help on using the changeset viewer.