1, 'name' => $name ), BB_URI_CONTEXT_HEADER + BB_URI_CONTEXT_BB_ADMIN ) ); exit; } if ( isset($_GET['activated']) ) $theme_notice = bb_admin_notice( sprintf(__('Theme "%s" activated'), attribute_escape($_GET['name'])) ); if ( !in_array($activetheme, $themes) ) { if ($activetheme == BB_DEFAULT_THEME) { remove_action( 'bb_admin_notices', $theme_notice ); bb_admin_notice( __('Default theme is missing.'), 'error' ); } else { bb_delete_option( 'bb_active_theme' ); remove_action( 'bb_admin_notices', $theme_notice ); bb_admin_notice( __('Theme not found. Default theme applied.'), 'error' ); } } function bb_admin_theme_row( $theme ) { $theme_directory = bb_get_theme_directory( $theme ); $theme_data = file_exists( $theme_directory . 'style.css' ) ? bb_get_theme_data( $theme ) : false; $screen_shot = file_exists( $theme_directory . 'screenshot.png' ) ? clean_url( bb_get_theme_uri( $theme ) . 'screenshot.png' ) : false; $activation_url = bb_get_uri('bb-admin/themes.php', array('theme' => urlencode($theme)), BB_URI_CONTEXT_A_HREF + BB_URI_CONTEXT_BB_ADMIN); $activation_url = clean_url( bb_nonce_url( $activation_url, 'switch-theme' ) ); ?> >
<?php echo attribute_escape( $theme_data['Title'] ); ?>

%s'), $theme_data['Author']); if ( $theme_data['Porter'] ) printf(__(', ported by %s'), $theme_data['Porter']); ?>
safemode ) && $bb->safemode === true ) { bb_admin_notice( __('"Safe mode" is on, the default theme will be used instead of the active theme indicated below.'), 'error' ); } bb_get_admin_header(); ?>