stylesheet ) ] ) == false ) $allowed_themes[ wp_specialchars( $ct->stylesheet ) ] = true; reset( $themes ); foreach( $themes as $key => $theme ) { if( isset( $allowed_themes[ wp_specialchars( $theme[ 'Stylesheet' ] ) ] ) == false ) { unset( $themes[ $key ] ); } } reset( $themes ); if ( isset($_GET['action']) ) { check_admin_referer('switch-theme_' . $_GET['template']); if ('activate' == $_GET['action']) { $found = false; while( list( $key, $details ) = each( $themes ) ) { if( $details[ 'Template' ] == $_GET['template'] && $details[ 'Stylesheet' ] == $_GET['stylesheet'] ) { $found = true; break; } } if( $found == true ) { if ( isset($_GET['template']) ) update_option('template', $_GET['template']); if ( isset($_GET['stylesheet']) ) update_option('stylesheet', $_GET['stylesheet']); do_action('switch_theme', get_current_theme()); wp_redirect('themes.php?activated=true'); } else { wp_redirect('themes.php'); } exit; } } $title = __('Manage Themes'); $parent_file = 'themes.php'; require_once('admin-header.php'); if( is_site_admin() ) { ?>

Themes Admin page before they appear here.'); ?>

View site »'), get_bloginfo('url') . '/'); ?>

screenshot ) : ?> <?php _e('Current theme preview'); ?>

title, $ct->version, $ct->author) ; ?>

description; ?>


name ) continue; $template = $themes[$theme_name]['Template']; $stylesheet = $themes[$theme_name]['Stylesheet']; $title = $themes[$theme_name]['Title']; $version = $themes[$theme_name]['Version']; $description = $themes[$theme_name]['Description']; $author = $themes[$theme_name]['Author']; $screenshot = $themes[$theme_name]['Screenshot']; $stylesheet_dir = $themes[$theme_name]['Stylesheet Dir']; $activate_link = wp_nonce_url("themes.php?action=activate&template=".urlencode($template)."&stylesheet=".urlencode($stylesheet), 'switch-theme_' . $template); ?>

(Site admin only)

"; } ?>
$title $description