introduce WP_List_Table::views(). See #14579

git-svn-id: http://svn.automattic.com/wordpress/trunk@15578 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
scribu
2010-09-05 21:26:27 +00:00
parent 614929f25b
commit 9a9e872597
9 changed files with 297 additions and 255 deletions

View File

@@ -41,19 +41,11 @@ include('./admin-header.php');
<?php screen_icon(); ?>
<h2><?php echo esc_html( $title ); ?></h2>
<ul class="subsubsub">
<?php
$display_tabs = array();
foreach ( (array) $tabs as $action => $text ) {
$sep = ( end($tabs) != $text ) ? ' | ' : '';
$class = ( $action == $tab ) ? ' class="current"' : '';
$href = admin_url('plugin-install.php?tab=' . $action);
echo "\t\t<li><a href='$href'$class>$text</a>$sep</li>\n";
}
?>
</ul>
<br class="clear" />
<?php do_action('install_plugins_' . $tab, $paged); ?>
<?php $wp_list_table->views(); ?>
<br class="clear" />
<?php do_action('install_plugins_' . $tab, $paged); ?>
</div>
<?php
include('./admin-footer.php');