1, 'name' => urlencode( $name ) ), BB_URI_CONTEXT_HEADER + BB_URI_CONTEXT_BB_ADMIN ) ); exit; } if ( isset($_GET['activated']) ) $theme_notice = bb_admin_notice( sprintf( __( 'Theme "%s" activated' ), esc_attr($_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, $position ) { $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' ) ? esc_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 = esc_url( bb_nonce_url( $activation_url, 'switch-theme' ) ); if ( 1 === $position || 0 === $position ) { echo '
%s' ), $theme_data['Porter'] ); ?>
'; break; case 2: echo ' | '; break; case 3: break; } ?> |