GC_Application_Passwords_List_Table::display_tablenav()

最后更新于:2021-11-26 09:15:52

GC_Application_Passwords_List_Table::display_tablenav( string$which)

Generates custom table navigation to prevent conflicting nonces.

参数

$which

(string) (Required) The location of the bulk actions: ‘top’ or ‘bottom’.

源文件

文件: gc-admin/includes/class-gc-application-passwords-list-table.php

	protected function display_tablenav( $which ) {
		?>
		<div class="tablenav <?php echo esc_attr( $which ); ?>">
			<?php if ( 'bottom' === $which ) : ?>
				<div class="alignright">
					<button type="button" name="revoke-all-application-passwords" id="revoke-all-application-passwords" class="button delete"><?php _e( 'Revoke all application passwords' ); ?></button>
				</div>
			<?php endif; ?>
			<div class="alignleft actions bulkactions">
				<?php $this->bulk_actions( $which ); ?>
			</div>
			<?php
			$this->extra_tablenav( $which );
			$this->pagination( $which );
			?>
			<br class="clear" />
		</div>
		<?php
	}