Skip to:
Content

BuddyPress.org

Changeset 3716


Ignore:
Timestamp:
01/15/2011 01:30:39 AM (16 years ago)
Author:
johnjamesjacoby
Message:

More installer/updater restyling; this time to more closely match the existing WordPress UI.

Location:
trunk/bp-core
Files:
3 edited

Legend:

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

    r3643 r3716  
    66                <div id="bp-admin-header">
    77                        <h3><?php _e( 'BuddyPress', 'buddypress' ) ?></h3>
    8                         <h4><?php _e( 'Dashboard', 'buddypress' ) ?></h4>
     8                        <h2><?php _e( 'Dashboard', 'buddypress' ) ?></h2>
    99                </div>
    1010
  • trunk/bp-core/admin/bp-core-update.php

    r3714 r3716  
    167167                        <div id="bp-admin-header">
    168168                                <h3><?php _e( 'BuddyPress', 'buddypress' ) ?></h3>
    169                                 <h4>
     169                                <h2>
    170170                                        <?php if ( 'update' == $this->setup_type ) : ?>
     171
    171172                                                <?php _e( 'Update', 'buddypress' ) ?>
     173
    172174                                        <?php else : ?>
     175
    173176                                                <?php _e( 'Setup', 'buddypress' ) ?>
     177
    174178                                        <?php endif; ?>
    175                                 </h4>
    176                         </div>
    177 
    178                         <div id="bp-admin-nav">
    179                                 <ol>
    180                                         <?php foreach( (array)$this->steps as $i => $name ) : ?>
    181                                                 <li<?php if ( $this->current_step == $i ) : ?> class="current"<?php endif; ?>>
    182                                                         <?php if ( $this->current_step > $i ) : ?>
    183                                                                 <span class="complete">&nbsp;</span>
    184                                                         <?php else : ?>
    185                                                                 <?php echo $i + 1 . '. ' ?>
    186                                                         <?php endif; ?>
    187                                                         <?php echo esc_attr( $name ) ?>
    188                                                 </li>
    189                                         <?php endforeach; ?>
    190                                 </ol>
     179                                </h2>
    191180                        </div>
    192181
     
    199188
    200189                        <form action="<?php echo $form_action; ?>" method="post" id="bp-admin-form">
     190                                <div id="bp-admin-nav">
     191                                        <ol>
     192                                                <?php foreach( (array)$this->steps as $i => $name ) : ?>
     193                                                        <li<?php if ( $this->current_step == $i ) : ?> class="current"<?php endif; ?>>
     194                                                                <?php if ( $this->current_step > $i ) : ?>
     195                                                                        <span class="complete">&nbsp;</span>
     196                                                                <?php else : ?>
     197                                                                        <?php echo $i + 1 . '. ' ?>
     198                                                                <?php endif; ?>
     199                                                                <?php echo esc_attr( $name ) ?>
     200                                                        </li>
     201                                                <?php endforeach; ?>
     202                                        </ol>
     203                                        <div class="prev-next submit clear">
     204                                                <input type="submit" value="<?php _e( 'Save &amp; Next &rarr;', 'buddypress' ) ?>" name="submit" />
     205                                        </div>
     206                                </div>
     207
    201208                                <div id="bp-admin-content">
    202209                                        <?php switch ( $this->steps[$this->current_step] ) {
     
    267274                        $existing_pages = get_blog_option( BP_ROOT_BLOG, 'bp-pages' );
    268275                else
    269                         $existing_pages = get_option( 'bp-pages' );
    270 
    271         ?>
    272                 <div class="prev-next submit clear">
    273                         <p><input type="submit" value="<?php _e( 'Save &amp; Next &rarr;', 'buddypress' ) ?>" name="submit" /></p>
    274                 </div>
     276                        $existing_pages = get_option( 'bp-pages' ); ?>
    275277
    276278                <p><?php printf( __( 'It looks like you have just activated WordPress Multisite mode, which allows members of your BuddyPress community to have their own WordPress blogs. You can enable or disable this feature at any time at <a href="%s">Network Options</a>.', 'buddypress' ), admin_url( 'ms-options.php' ) ); ?></p>
     
    335337                $disabled_components = apply_filters( 'bp_deactivated_components', get_site_option( 'bp-deactivated-components' ) ); ?>
    336338
    337                 <div class="prev-next submit clear">
    338                         <p><input type="submit" value="<?php _e( 'Save &amp; Next &rarr;', 'buddypress' ) ?>" name="submit" /></p>
    339                 </div>
    340 
    341339                <p><?php _e( "BuddyPress is made up of a number of individual components, each one adding a distinct feature. The first step is to decide which of these features you'd like to enable on your site. All features are enabled by default, and don't worry, you can change your mind at any point in the future.", 'buddypress' ) ?></p>
    342340
     
    493491                        $activation_slug = __( 'activate', 'buddypress' );
    494492
    495         ?>
    496                 <div class="prev-next submit clear">
    497                         <p><input type="submit" value="<?php _e( 'Save &amp; Next &rarr;', 'buddypress' ) ?>" name="submit" /></p>
    498                 </div>
    499 
    500                 <?php if ( 'new' == $this->setup_type ) : ?>
     493                if ( 'new' == $this->setup_type ) : ?>
    501494
    502495                        <p><?php _e( "BuddyPress needs to use pages to display content and directories.", 'buddypress' ) ?></p>
     
    637630                        $prefix = '/index.php';
    638631        ?>
    639                 <div class="prev-next submit clear">
    640                         <p><input type="submit" value="<?php _e( 'Save &amp; Next &rarr;', 'buddypress' ) ?>" name="submit" /></p>
    641                 </div>
    642632
    643633                <p><?php _e( "To make sure the pages we created in the previous step work correctly, you will need to enable permalink support on your site.", 'buddypress' ) ?></p>
     
    695685                }
    696686        ?>
    697                 <div class="prev-next submit clear">
    698                         <p><input type="submit" value="<?php _e( 'Save &amp; Next &rarr;', 'buddypress' ) ?>" name="submit" /></p>
    699                 </div>
    700687
    701688                <p><?php _e( "BuddyPress introduces a whole range of new screens to display content. To display these screens you will need to decide how you want to handle them in your active theme. There are a few different options, please choose the option that best suits your demands and needs.", 'buddypress' ) ?></p>
     
    793780                if ( !current_user_can( 'activate_plugins' ) )
    794781                        return false;
    795         ?>
    796                 <div class="prev-next submit clear">
    797                         <p><input type="submit" value="<?php _e( 'Finish &amp; Activate &rarr;', 'buddypress' ) ?>" name="submit" /></p>
    798                 </div>
    799 
    800                 <?php if ( 'new' == $this->setup_type ) :
     782
     783                if ( 'new' == $this->setup_type ) :
    801784                        $type = __( 'setup', 'buddypress' ); ?>
    802785
  • trunk/bp-core/css/admin.dev.css

    r3714 r3716  
    11div#bp-admin {
    2         background: #fff;
    32        margin: 25px 15px 25px 0;
    4         padding: 20px;
    5         -moz-border-radius: 6px;
    6         -webkit-border-radius: 6px;
    7         border-radius: 6px;
    8         -moz-box-shadow: #eee 0 -1px 4px;
    9         -webkit-box-shadow: #eee 0 -1px 4px;
    10         -khtml-box-shadow: #eee 0 -1px 4px;
    11         box-shadow: #eee 0 -1px 4px;
    12         font-family: helvetica, arial, tahoma, sans-serif;
     3        padding: 0 20px 20px 20px;
    134        color: #555;
    145        overflow: hidden;
     
    2516}
    2617        div#bp-admin h2 {
    27                 font-family: helvetica, arial, tahoma, sans-serif;
    2818                color: #555;
    29                 font-style: normal;
    30                 font-weight: bold;
    31                 font-size: 22px;
     19                position: relative;
     20                top: -6px;
    3221        }
    3322
     
    3827                height: 49px;
    3928                background: url( ../images/logo.gif ) top left no-repeat;
    40                 border-right: 1px solid #eee;
    4129                padding-right: 20px;
    4230                float: left;
     
    5139
    5240div#bp-admin-nav {
    53         background: #f0f0f0;
    54         margin: 15px -19px 10px -19px;
    55         padding: 8px 19px 0 19px;
     41        background: #e0e0e0;
     42        margin: 15px -10px 10px;
     43        padding: 10px 10px 0 10px;
    5644        height: 30px;
     45        -moz-border-radius: 6px;
     46        -webkit-border-radius: 6px;
     47        border-radius: 6px;
     48}
     49div#bp-admin-nav div.submit {
     50        position: relative;
     51        float: right;
     52        margin-top: -36px !important;
     53}
     54div#bp-admin-nav div.submit input {
     55        padding: 6px 10px;
    5756}
    5857        div#bp-admin-nav ol {
     
    6463                        float: left;
    6564                        margin: 0 10px 0 0;
    66                         color: #bbb;
     65                        color: #666;
    6766                }
    6867                        div#bp-admin-nav ol li {
     
    7574                        }
    7675                                div#bp-admin-nav ol li.current {
    77                                         background: #fff;
     76                                        background: #f9f9f9;
    7877                                        color: #555;
    7978                                }
     
    9089        div.component div.radio {
    9190                position: relative;
    92                 background: #f4f4f4;
     91                background: #e0e0e0;
    9392                padding: 5px 10px;
    94                 -moz-border-radius: 3px;
    95                 -webkit-border-radius: 3px;
    96                 border-radius: 3px;
     93                -moz-border-radius: 6px;
     94                -webkit-border-radius: 6px;
     95                border-radius: 6px;
    9796                top: -6px;
    98                 right: 10px;
    9997        }
    10098
    10199        div.component img {
    102                 margin-top: 2px;
     100                margin-top: 10px;
    103101        }
    104102
     
    108106
    109107        div.component h5 {
    110                 font-size: 15px;
     108                font-size: 18px;
    111109                float: left;
    112110                margin: 0 0 0 4px;
     111                width: 100px;
    113112        }
    114113
     
    116115                font-size: 11px;
    117116                float: right;
     117                top: 5px;
    118118        }
    119119
     
    127127
    128128div#bp-admin div.prev-next {
    129         border-bottom: 1px solid #f0f0f0;
    130129        margin: 0 -20px;
    131130        padding: 0 20px 10px;
Note: See TracChangeset for help on using the changeset viewer.