display_tablenav example


    }

    /** * Displays the table. * * @since 3.1.0 */
    public function display() {
        $singular = $this->_args['singular'];

        $this->display_tablenav( 'top' );

        $this->screen->render_screen_reader_content( 'heading_list' );
        ?> <table class="wp-list-table <?php echo implode( ' ', $this->get_table_classes() ); ?>"> <?php $this->print_table_description(); ?> <thead> <tr> <?php $this->print_column_headers(); ?> </tr> </thead> <tbody id="the-list"

    public function display() {
        wp_nonce_field( 'fetch-list-' . get_class( $this ), '_ajax_fetch_list_nonce' );
        static $has_items;

        if ( ! isset( $has_items ) ) {
            $has_items = $this->has_items();

            if ( $has_items ) {
                $this->display_tablenav( 'top' );
            }
        }

        $this->screen->render_screen_reader_content( 'heading_list' );

        ?> <table class="wp-list-table <?php echo implode( ' ', $this->get_table_classes() ); ?>"> <?php         if ( ! isset( $_GET['orderby'] ) ) {
            // In the initial view, Comments are ordered by comment's date but there's no column for that.             echo '<caption class="screen-reader-text">' .
            

    public function display() {
        $singular = $this->_args['singular'];

        $data_attr = '';

        if ( $singular ) {
            $data_attr = " data-wp-lists='list:$singular'";
        }

        $this->display_tablenav( 'top' );

        ?> <div class="wp-list-table <?php echo implode( ' ', $this->get_table_classes() ); ?>"> <?php         $this->screen->render_screen_reader_content( 'heading_list' );
        ?> <div id="the-list"<?php echo $data_attr; ?>> <?php $this->display_rows_or_placeholder(); ?> </div> </div> <?php
Home | Imprint | This part of the site doesn't use cookies.