Changeset 659

Show
Ignore:
Timestamp:
07/12/06 11:46:30 (2 years ago)
Author:
donncha
Message:

Better theme admin page

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/index-install.php

    r656 r659  
    388388    $wpdb->query( "INSERT INTO ".$wpdb->sitemeta." (meta_id, site_id, meta_key, meta_value) VALUES (NULL, 1, 'fileupload_maxk', '1500' )" ); 
    389389    $wpdb->query( "INSERT INTO ".$wpdb->sitemeta." (meta_id, site_id, meta_key, meta_value) VALUES (NULL, 1, 'site_admins', '" . serialize( array( 'admin' ) ) . "' )" ); 
     390    $wpdb->query( "INSERT INTO ".$wpdb->sitemeta." (meta_id, site_id, meta_key, meta_value) VALUES (NULL, 1, 'allowed_themes', '" . serialize( array( 'WordPress Classic', 'WordPress Default' ) ) . "' )" ); 
    390391    $wpdb->query( "INSERT INTO ".$wpdb->sitemeta." (meta_id, site_id, meta_key, meta_value) VALUES (NULL, 1, 'illegal_names', '" . serialize( array(  "www", "web", "root", "admin", "main", "invite", "administrator" ) ) . "' )" ); 
    391392    $wpdb->query( "INSERT INTO ".$wpdb->sitemeta." (meta_id, site_id, meta_key, meta_value) VALUES (NULL, 1, 'welcome_email', 'Dear User, 
  • trunk/wp-admin/wpmu-themes.php

    r528 r659  
    1414$themes = get_themes(); 
    1515$allowed_themes = get_site_option( "allowed_themes" ); 
    16 if( $allowed_themes == false ) { 
    17         $allowed_themes = array_keys( $themes ); 
    18 } 
    1916?> 
    2017 
     
    2320<table border="0" cellspacing="5" cellpadding="5"> 
    2421<caption>Disable themes site-wide. You can enable themes on a blog by blog basis.</caption> 
    25 <tr><th width="100">Disabled</th><th>Theme</th><th>Description</th></tr> 
     22<tr><th width="100">Active</th><th>Theme</th><th>Description</th></tr> 
    2623<?php 
    2724while( list( $key, $val ) = each( $themes ) ) { 
     
    3835<tr valign="top" style="<?php if ($i%2) echo 'background: #eee'; ?>"> 
    3936<td> 
    40 <label><input name="theme[<?php echo $key ?>]" type="radio" id="<?php echo $key ?>" value="disabled" <?php echo $disabled ?>/> Yes</label> 
     37<label><input name="theme[<?php echo $key ?>]" type="radio" id="<?php echo $key ?>" value="disabled" <?php echo $disabled ?>/>No</label> 
    4138&nbsp;&nbsp;&nbsp;  
    42 <label><input name="theme[<?php echo $key ?>]" type="radio" id="<?php echo $key ?>" value="enabled" <?php echo $enabled ?>/> No</label> 
     39<label><input name="theme[<?php echo $key ?>]" type="radio" id="<?php echo $key ?>" value="enabled" <?php echo $enabled ?>/>Yes</label> 
    4340</td> 
    4441<th scope="row" align="left"><?php echo $key ?></th>