GUU UI rough in. see #10973

git-svn-id: https://develop.svn.wordpress.org/trunk@12086 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2009-10-22 16:10:28 +00:00
parent 50c42a07fc
commit 48ecfaf219

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
} }