Changeset 3027
- Timestamp:
- 04/24/2011 04:30:56 AM (15 years ago)
- File:
-
- 1 edited
-
branches/plugin/bbp-admin/bbp-admin.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/plugin/bbp-admin/bbp-admin.php
r3019 r3027 263 263 * Admin area activation notice 264 264 * 265 * Shows the message of activating a bbPress-compatible theme to 266 * capable users. 265 * Shows a nag message in admin area about the theme not supporting bbPress 267 266 * 268 267 * @since bbPress (r2743) 269 268 * 270 * @ uses current_user_can() To check if we need to show the message to271 * the current user.272 * @uses current_ theme_info() To get the current theme info for checking273 * if it's bbPress-compatible or not269 * @global bbPress $bbp 270 * 271 * @uses current_user_can() To check notice should be displayed. 272 * @uses current_theme_supports() To check theme for bbPress support 274 273 */ 275 274 function activation_notice() { 275 global $bbp; 276 277 // Bail if user cannot change the theme 276 278 if ( !current_user_can( 'switch_themes' ) ) 277 279 return; 278 280 279 $current_theme = current_theme_info(); 280 281 if ( !in_array( 'bbpress', (array) $current_theme->tags ) ) { ?> 281 // Set $bbp->theme_compat to true to bypass nag 282 if ( !empty( $bbp->theme_compat ) || !current_theme_supports( 'bbpress' ) ) { ?> 282 283 283 284 <div id="message" class="updated fade"> 284 <p style="line-height: 150%"><?php printf( __( "<strong>bbPress is almost ready</strong>. First you'll need to <a href='%s'>activate a bbPress compatible theme</a>. We've bundled a child themeof Twenty Ten to get you started.", 'bbpress' ), admin_url( 'themes.php' ), admin_url( 'theme-install.php?type=tag&s=bbpress&tab=search' ) ) ?></p>285 <p style="line-height: 150%"><?php printf( __( "<strong>bbPress is almost ready</strong>. First you'll need to <a href='%s'>activate a bbPress compatible theme</a>. We've bundled a special version of Twenty Ten to get you started.", 'bbpress' ), admin_url( 'themes.php' ), admin_url( 'theme-install.php?type=tag&s=bbpress&tab=search' ) ) ?></p> 285 286 </div> 286 287
Note: See TracChangeset
for help on using the changeset viewer.