Changeset 2168 for trunk/bp-core/bp-core-admin.php
- Timestamp:
- 12/14/2009 03:24:05 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/bp-core/bp-core-admin.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-admin.php
r2077 r2168 77 77 </td> 78 78 </tr> 79 <?php if ( function_exists('bp_wire_install') ) { ?>80 <tr>81 <th scope="row"><?php _e( 'Allow non-friends to post on profile wires?', 'buddypress' ) ?>:</th>82 <td>83 <input type="radio" name="bp-admin[non-friend-wire-posting]"<?php if ( (int)get_site_option( 'non-friend-wire-posting' ) ) : ?> checked="checked"<?php endif; ?> id="bp-admin-non-friend-wire-post" value="1" /> <?php _e( 'Yes', 'buddypress' ) ?> 84 <input type="radio" name="bp-admin[non-friend-wire-posting]"<?php if ( !(int)get_site_option( 'non-friend-wire-posting' ) ) : ?> checked="checked"<?php endif; ?> id="bp-admin-non-friend-wire-post" value="0" /> <?php _e( 'No', 'buddypress' ) ?>85 </td>86 </tr>87 <?php } ?>88 79 <tr> 89 80 <th scope="row"><?php _e( 'Disable user account deletion?', 'buddypress' ) ?>:</th> … … 101 92 </td> 102 93 </tr> 103 <?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 <?php112 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 94 <?php endif; ?> 131 95 … … 206 170 <?php if ( file_exists( BP_PLUGIN_DIR . '/bp-activity.php') ) : ?> 207 171 <tr> 208 <td><h3><?php _e( 'Activity Streams', 'buddypress' ) ?></h3><p><?php _e( ' Tracks useractivity across the entire site.', 'buddypress' ) ?></p></td>172 <td><h3><?php _e( 'Activity Streams', 'buddypress' ) ?></h3><p><?php _e( 'Allow users to post activity updates and track all activity across the entire site.', 'buddypress' ) ?></p></td> 209 173 <td> 210 174 <input type="radio" name="bp_components[bp-activity.php]" value="1"<?php if ( !isset( $disabled_components['bp-activity.php'] ) ) : ?> checked="checked" <?php endif; ?>/> <?php _e( 'Enabled', 'buddypress' ) ?> … … 255 219 <input type="radio" name="bp_components[bp-messages.php]" value="1"<?php if ( !isset( $disabled_components['bp-messages.php'] ) ) : ?> checked="checked" <?php endif; ?>/> <?php _e( 'Enabled', 'buddypress' ) ?> 256 220 <input type="radio" name="bp_components[bp-messages.php]" value="0"<?php if ( isset( $disabled_components['bp-messages.php'] ) ) : ?> checked="checked" <?php endif; ?>/> <?php _e( 'Disabled', 'buddypress' ) ?> 257 </td>258 </tr>259 <?php endif; ?>260 <?php if ( file_exists( BP_PLUGIN_DIR . '/bp-wire.php') ) : ?>261 <tr>262 <td><h3><?php _e( 'Comment Wire', 'buddypress' ) ?></h3><p><?php _e( 'Let users leave a comment on groups, profiles and custom components.', 'buddypress' ) ?></p></td>263 <td>264 <input type="radio" name="bp_components[bp-wire.php]" value="1"<?php if ( !isset( $disabled_components['bp-wire.php'] ) ) : ?> checked="checked" <?php endif; ?>/> <?php _e( 'Enabled', 'buddypress' ) ?> 265 <input type="radio" name="bp_components[bp-wire.php]" value="0"<?php if ( isset( $disabled_components['bp-wire.php'] ) ) : ?> checked="checked" <?php endif; ?>/> <?php _e( 'Disabled', 'buddypress' ) ?>266 221 </td> 267 222 </tr> … … 276 231 </tr> 277 232 <?php endif; ?> 278 <?php if ( file_exists( BP_PLUGIN_DIR . '/bp-status.php') ) : ?>279 <tr>280 <td><h3><?php _e( 'Status Updates', 'buddypress' ) ?></h3><p><?php _e( 'Allow users to post status updates.', 'buddypress' ) ?></p></td>281 <td width="45%">282 <input type="radio" name="bp_components[bp-status.php]" value="1"<?php if ( !isset( $disabled_components['bp-status.php'] ) ) : ?> checked="checked" <?php endif; ?>/> <?php _e( 'Enabled', 'buddypress' ) ?> 283 <input type="radio" name="bp_components[bp-status.php]" value="0"<?php if ( isset( $disabled_components['bp-status.php'] ) ) : ?> checked="checked" <?php endif; ?>/> <?php _e( 'Disabled', 'buddypress' ) ?>284 </td>285 </tr>286 <?php endif; ?>287 233 </tbody> 288 234 </table>
Note: See TracChangeset
for help on using the changeset viewer.