Changeset 6343 for trunk/bp-core/admin/bp-core-components.php
- Timestamp:
- 09/19/2012 06:52:23 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/admin/bp-core-components.php
r6342 r6343 173 173 break; 174 174 } 175 176 // The setup wizard uses different, more descriptive text 177 if ( bp_get_maintenance_mode() ) : ?> 178 179 <h3><?php _e( 'Available Components', 'buddypress' ); ?></h3> 180 181 <p><?php _e( 'Each component has a unique purpose, and your community may not need each one.', 'buddypress' ); ?></p> 182 183 <?php endif ?> 184 185 <ul class="subsubsub"> 186 <li><a href="<?php echo add_query_arg( array( 'page' => 'bp-components', 'action' => 'all' ), bp_get_admin_url( $page ) ); ?>" <?php if ( $action === 'all' ) : ?>class="current"<?php endif; ?>><?php printf( _nx( 'All <span class="count">(%s)</span>', 'All <span class="count">(%s)</span>', $all_count, 'plugins', 'buddypress' ), number_format_i18n( $all_count ) ); ?></a> | </li> 187 <li><a href="<?php echo add_query_arg( array( 'page' => 'bp-components', 'action' => 'active' ), bp_get_admin_url( $page ) ); ?>" <?php if ( $action === 'active' ) : ?>class="current"<?php endif; ?>><?php printf( _n( 'Active <span class="count">(%s)</span>', 'Active <span class="count">(%s)</span>', count( $active_components ), 'buddypress' ), number_format_i18n( count( $active_components ) ) ); ?></a> | </li> 188 <li><a href="<?php echo add_query_arg( array( 'page' => 'bp-components', 'action' => 'inactive' ), bp_get_admin_url( $page ) ); ?>" <?php if ( $action === 'inactive' ) : ?>class="current"<?php endif; ?>><?php printf( _n( 'Inactive <span class="count">(%s)</span>', 'Inactive <span class="count">(%s)</span>', count( $inactive_components ), 'buddypress' ), number_format_i18n( count( $inactive_components ) ) ); ?></a> | </li> 189 <li><a href="<?php echo add_query_arg( array( 'page' => 'bp-components', 'action' => 'mustuse' ), bp_get_admin_url( $page ) ); ?>" <?php if ( $action === 'mustuse' ) : ?>class="current"<?php endif; ?>><?php printf( _n( 'Must-Use <span class="count">(%s)</span>', 'Must-Use <span class="count">(%s)</span>', count( $required_components ), 'buddypress' ), number_format_i18n( count( $required_components ) ) ); ?></a></li> 190 </ul> 191 192 <table class="widefat fixed plugins" cellspacing="0"> 193 <thead> 194 <tr> 195 <th scope="col" id="cb" class="manage-column column-cb check-column"> </th> 196 <th scope="col" id="name" class="manage-column column-name" style="width: 190px;"><?php _e( 'Component', 'buddypress' ); ?></th> 197 <th scope="col" id="description" class="manage-column column-description"><?php _e( 'Description', 'buddypress' ); ?></th> 175 176 if ( ! bp_get_maintenance_mode() ) : ?> 177 178 <ul class="subsubsub"> 179 <li><a href="<?php echo add_query_arg( array( 'page' => 'bp-components', 'action' => 'all' ), bp_get_admin_url( $page ) ); ?>" <?php if ( $action === 'all' ) : ?>class="current"<?php endif; ?>><?php printf( _nx( 'All <span class="count">(%s)</span>', 'All <span class="count">(%s)</span>', $all_count, 'plugins', 'buddypress' ), number_format_i18n( $all_count ) ); ?></a> | </li> 180 <li><a href="<?php echo add_query_arg( array( 'page' => 'bp-components', 'action' => 'active' ), bp_get_admin_url( $page ) ); ?>" <?php if ( $action === 'active' ) : ?>class="current"<?php endif; ?>><?php printf( _n( 'Active <span class="count">(%s)</span>', 'Active <span class="count">(%s)</span>', count( $active_components ), 'buddypress' ), number_format_i18n( count( $active_components ) ) ); ?></a> | </li> 181 <li><a href="<?php echo add_query_arg( array( 'page' => 'bp-components', 'action' => 'inactive' ), bp_get_admin_url( $page ) ); ?>" <?php if ( $action === 'inactive' ) : ?>class="current"<?php endif; ?>><?php printf( _n( 'Inactive <span class="count">(%s)</span>', 'Inactive <span class="count">(%s)</span>', count( $inactive_components ), 'buddypress' ), number_format_i18n( count( $inactive_components ) ) ); ?></a> | </li> 182 <li><a href="<?php echo add_query_arg( array( 'page' => 'bp-components', 'action' => 'mustuse' ), bp_get_admin_url( $page ) ); ?>" <?php if ( $action === 'mustuse' ) : ?>class="current"<?php endif; ?>><?php printf( _n( 'Must-Use <span class="count">(%s)</span>', 'Must-Use <span class="count">(%s)</span>', count( $required_components ), 'buddypress' ), number_format_i18n( count( $required_components ) ) ); ?></a></li> 183 </ul> 184 185 <?php endif; ?> 186 187 <table class="widefat fixed plugins" cellspacing="0"> 188 <thead> 189 <tr> 190 <th scope="col" id="cb" class="manage-column column-cb check-column"> </th> 191 <th scope="col" id="name" class="manage-column column-name" style="width: 190px;"><?php _e( 'Component', 'buddypress' ); ?></th> 192 <th scope="col" id="description" class="manage-column column-description"><?php _e( 'Description', 'buddypress' ); ?></th> 193 </tr> 194 </thead> 195 196 <tfoot> 197 <tr> 198 <th scope="col" class="manage-column column-cb check-column"> </th> 199 <th scope="col" class="manage-column column-name" style="width: 190px;"><?php _e( 'Component', 'buddypress' ); ?></th> 200 <th scope="col" class="manage-column column-description"><?php _e( 'Description', 'buddypress' ); ?></th> 201 </tr> 202 </tfoot> 203 204 <tbody id="the-list"> 205 206 <?php if ( !empty( $current_components ) ) : ?> 207 208 <?php foreach ( $current_components as $name => $labels ) : ?> 209 210 <?php if ( !in_array( $name, array( 'core', 'members' ) ) ) : 211 $class = isset( $active_components[esc_attr( $name )] ) ? 'active' : 'inactive'; 212 else : 213 $class = 'active'; 214 endif; ?> 215 216 <tr id="<?php echo $name; ?>" class="<?php echo $name . ' ' . $class; ?>"> 217 <th scope="row"> 218 219 <?php if ( !in_array( $name, array( 'core', 'members' ) ) ) : ?> 220 221 <input type="checkbox" id="bp_components[<?php echo esc_attr( $name ); ?>]" name="bp_components[<?php echo esc_attr( $name ); ?>]" value="1"<?php checked( isset( $active_components[esc_attr( $name )] ) ); ?> /> 222 223 <?php endif; ?> 224 225 <label class="screen-reader-text" for="bp_components[<?php echo esc_attr( $name ); ?>]"><?php sprintf( __( 'Select %s', 'buddypress' ), esc_html( $labels['title'] ) ); ?></label> 226 </th> 227 <td class="plugin-title" style="width: 190px;"> 228 <span></span> 229 <strong><?php echo esc_html( $labels['title'] ); ?></strong> 230 <div class="row-actions-visible"> 231 232 </div> 233 </td> 234 235 <td class="column-description desc"> 236 <div class="plugin-description"> 237 <p><?php echo $labels['description']; ?></p> 238 </div> 239 <div class="active second plugin-version-author-uri"> 240 241 </div> 242 </td> 243 </tr> 244 245 <?php endforeach ?> 246 247 <?php else : ?> 248 249 <tr class="no-items"> 250 <td class="colspanchange" colspan="3"><?php _e( 'No components found.', 'buddypress' ); ?></td> 198 251 </tr> 199 </thead> 200 201 <tfoot> 202 <tr> 203 <th scope="col" class="manage-column column-cb check-column"> </th> 204 <th scope="col" class="manage-column column-name" style="width: 190px;"><?php _e( 'Component', 'buddypress' ); ?></th> 205 <th scope="col" class="manage-column column-description"><?php _e( 'Description', 'buddypress' ); ?></th> 206 </tr> 207 </tfoot> 208 209 <tbody id="the-list"> 210 211 <?php if ( !empty( $current_components ) ) : ?> 212 213 <?php foreach ( $current_components as $name => $labels ) : ?> 214 215 <?php if ( !in_array( $name, array( 'core', 'members' ) ) ) : 216 $class = isset( $active_components[esc_attr( $name )] ) ? 'active' : 'inactive'; 217 else : 218 $class = 'active'; 219 endif; ?> 220 221 <tr id="<?php echo $name; ?>" class="<?php echo $name . ' ' . $class; ?>"> 222 <th scope="row"> 223 224 <?php if ( !in_array( $name, array( 'core', 'members' ) ) ) : ?> 225 226 <input type="checkbox" id="bp_components[<?php echo esc_attr( $name ); ?>]" name="bp_components[<?php echo esc_attr( $name ); ?>]" value="1"<?php checked( isset( $active_components[esc_attr( $name )] ) ); ?> /> 227 228 <?php endif; ?> 229 230 <label class="screen-reader-text" for="bp_components[<?php echo esc_attr( $name ); ?>]"><?php sprintf( __( 'Select %s', 'buddypress' ), esc_html( $labels['title'] ) ); ?></label> 231 </th> 232 <td class="plugin-title" style="width: 190px;"> 233 <span></span> 234 <strong><?php echo esc_html( $labels['title'] ); ?></strong> 235 <div class="row-actions-visible"> 236 237 </div> 238 </td> 239 240 <td class="column-description desc"> 241 <div class="plugin-description"> 242 <p><?php echo $labels['description']; ?></p> 243 </div> 244 <div class="active second plugin-version-author-uri"> 245 246 </div> 247 </td> 248 </tr> 249 250 <?php endforeach ?> 251 252 <?php else : ?> 253 254 <tr class="no-items"> 255 <td class="colspanchange" colspan="3"><?php _e( 'No components found.', 'buddypress' ); ?></td> 256 </tr> 257 258 <?php endif; ?> 259 260 </tbody> 261 </table> 252 253 <?php endif; ?> 254 255 </tbody> 256 </table> 262 257 263 258 <input type="hidden" name="bp_components[members]" value="1" />
Note: See TracChangeset
for help on using the changeset viewer.