GUU UI rough in. see #10973

git-svn-id: http://svn.automattic.com/wordpress/trunk@12086 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2009-10-22 16:10:28 +00:00
parent 201d24f044
commit 5653e587b3
1 changed files with 10 additions and 4 deletions

View File

@ -129,27 +129,31 @@ function core_upgrade_preamble() {
echo '</div>'; echo '</div>';
list_plugin_updates(); list_plugin_updates();
list_theme_updates(); //list_theme_updates();
} }
function list_plugin_updates() { function list_plugin_updates() {
$plugins = get_plugin_updates(); $plugins = get_plugin_updates();
if ( empty($plugins) ) if ( empty($plugins) )
return; return;
?> $form_action = '';
?>
<h3><?php _e('Plugins'); ?></h3> <h3><?php _e('Plugins'); ?></h3>
<form method="post" action="<?php $form_action; ?>" name="upgrade-plugins" class="upgrade">
<?php wp_nonce_field('upgrade-core'); ?>
<p><input id="upgrade-plugins" class="button" type="submit" value="<?php esc_attr_e('Upgrade Plugins'); ?>" name="upgrade" /></p>
<table class="widefat" cellspacing="0" id="update-plugins-table"> <table class="widefat" cellspacing="0" id="update-plugins-table">
<thead> <thead>
<tr> <tr>
<th scope="col" class="manage-column check-column"><input type="checkbox" /></th> <th scope="col" class="manage-column check-column"><input type="checkbox" /></th>
<th scope="col" class="manage-column"><?php _e('Name'); ?></th> <th scope="col" class="manage-column"><?php _e('Select All'); ?></th>
</tr> </tr>
</thead> </thead>
<tfoot> <tfoot>
<tr> <tr>
<th scope="col" class="manage-column check-column"><input type="checkbox" /></th> <th scope="col" class="manage-column check-column"><input type="checkbox" /></th>
<th scope="col" class="manage-column"><?php _e('Name'); ?></th> <th scope="col" class="manage-column"><?php _e('Select All'); ?></th>
</tr> </tr>
</tfoot> </tfoot>
<tbody class="plugins"> <tbody class="plugins">
@ -164,6 +168,8 @@ function list_plugin_updates() {
?> ?>
</tbody> </tbody>
</table> </table>
<p><input id="upgrade-plugins-2" class="button" type="submit" value="<?php esc_attr_e('Upgrade Plugins'); ?>" name="upgrade" /></p>
</form>
<?php <?php
} }