Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
10/02/2009 10:57:45 PM (17 years ago)
Author:
apeatling
Message:

Fixes #1141

File:
1 edited

Legend:

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

    r1963 r2029  
    102102                                </tr>                           
    103103                                <?php endif; ?>
    104 
    105                                 <?php if ( '' == locate_template( array( 'registration/register.php' ), false ) && $current_blog->blog_id == BP_ROOT_BLOG ) : ?>
    106                                 <tr>
    107                                         <th scope="row"><?php _e('Select theme to use for BuddyPress generated pages', 'buddypress' ) ?>:</th>
    108                                         <td>
    109                                                 <?php $themes = bp_core_get_buddypress_themes() ?>
    110                                                 <?php if ( $themes ) : ?>
    111                                                 <select name="bp-admin[active-member-theme]" id="active-member-theme">
    112                                                         <?php
    113                                                         for ( $i = 0; $i < count($themes); $i++ ) {
    114                                                                 if ( $themes[$i]['template'] == get_site_option( 'active-member-theme' ) ) {
    115                                                                         $selected = ' selected="selected"';
    116                                                                 } else {
    117                                                                         $selected = '';
    118                                                                 }
    119                                                         ?>
    120                                                         <option<?php echo $selected ?> value="<?php echo $themes[$i]['template'] ?>"><?php echo $themes[$i]['name'] ?> (<?php echo $themes[$i]['version'] ?>)</option>
    121                                                         <?php } ?>
    122                                                 </select>
    123                                                 <?php else : ?>
    124                                                         <div class="error">
    125                                                                 <p><?php printf( __( '<strong>You do not have any BuddyPress themes installed.</strong><p style="line-height: 150%%">Please move the default BuddyPress themes to their correct location (move %s to %s) and reload this page. You can <a href="http://buddypress.org/extend/themes" title="Download">download more themes here</a>.</p>', 'buddypress' ), BP_PLUGIN_DIR . '/bp-themes/', WP_CONTENT_DIR . '/bp-themes/' ) ?></p>
    126                                                         </div>
    127                                                         <p><?php _e( 'No Themes Installed.', 'buddypress' ) ?></p>
    128                                                 <?php endif; ?>
    129                                         </td>                   
    130                                 </tr>
    131                                 <?php endif; ?>
     104                               
     105                                <?php $themes = bp_core_get_buddypress_themes() ?>
     106                                <?php if ( $themes ) : ?>
     107                                        <tr>
     108                                                <th scope="row"><?php _e('Select theme to use for BuddyPress generated pages', 'buddypress' ) ?>:</th>
     109                                                <td>
     110                                                                <select name="bp-admin[active-member-theme]" id="active-member-theme">
     111                                                                <?php
     112                                                                for ( $i = 0; $i < count($themes); $i++ ) {
     113                                                                        if ( $themes[$i]['template'] == get_site_option( 'active-member-theme' ) ) {
     114                                                                                $selected = ' selected="selected"';
     115                                                                        } else {
     116                                                                                $selected = '';
     117                                                                        }
     118                                                                ?>
     119                                                                <option<?php echo $selected ?> value="<?php echo $themes[$i]['template'] ?>"><?php echo $themes[$i]['name'] ?> (<?php echo $themes[$i]['version'] ?>)</option>
     120                                                                <?php } ?>
     121                                                        </select>
     122                                                </td>                   
     123                                        </tr>
     124                                <?php else : ?>
     125                                        <?php if ( '' == locate_template( array( 'registration/register.php' ), false ) && $current_blog->blog_id == BP_ROOT_BLOG ) : ?>
     126                                                <div class="error">
     127                                                        <p><?php _e( '<strong>Your currently active theme is not BuddyPress enabled.</strong><p style="margin: 2px 0">Visit <a href="http://buddypress.org/extend/themes/">http://buddypress.org/extend/themes/</a> to browse themes that include support for BuddyPress features.</p>', 'buddypress' ) ?></p>
     128                                                </div>
     129                                        <?php endif; ?>
     130                                <?php endif; ?>
     131                                                       
    132132                                <tr>
    133133                                        <th scope="row"><?php _e( 'Default User Avatar', 'buddypress' ) ?></th>
Note: See TracChangeset for help on using the changeset viewer.