render_screen_reader_content example

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">' .
            /* translators: Hidden accessibility text. */
            __( 'Ordered by Comment Date, descending.' ) .
            '</caption>';
        } else {
            

        $views = apply_filters( "views_{$this->screen->id}", $views );

        if ( empty( $views ) ) {
            return;
        }

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

        echo "<ul class='subsubsub'>\n";
        foreach ( $views as $class => $view ) {
            $views[ $class ] = "\t<li class='$class'>$view";
        }
        echo implode( " |</li>\n", $views ) . "</li>\n";
        echo '</ul>';
    }

    /** * Retrieves the list of bulk actions available for this table. * * The format is an associative array where each element represents either a top level option value and label, or * an array representing an optgroup and its options. * * For a standard option, the array element key is the field value and the array element value is the field label. * * For an optgroup, the array element key is the label and the array element value is an associative array of * options as above. * * Example: * * [ * 'edit' => 'Edit', * 'delete' => 'Delete', * 'Change State' => [ * 'feature' => 'Featured', * 'sale' => 'On Sale', * ] * ] * * @since 3.1.0 * @since 5.6.0 A bulk action can now contain an array of options in order to create an optgroup. * * @return array */


    /** * Overrides parent views so we can use the filter bar display. */
    public function views() {
        $views = $this->get_views();

        /** This filter is documented in wp-admin/inclues/class-wp-list-table.php */
        $views = apply_filters( "views_{$this->screen->id}", $views );

        $this->screen->render_screen_reader_content( 'heading_views' );
        ?> <div class="wp-filter"> <ul class="filter-links"> <?php         if ( ! empty( $views ) ) {
            foreach ( $views as $class => $view ) {
                $views[ $class ] = "\t<li class='$class'>$view";
            }
            echo implode( " </li>\n", $views ) . "</li>\n";
        }
        ?>
/** * Overrides parent views to use the filter bar display. * * @global string $mode List table view mode. */
    public function views() {
        global $mode;

        $views = $this->get_views();

        $this->screen->render_screen_reader_content( 'heading_views' );
        ?> <div class="wp-filter"> <div class="filter-items"> <?php $this->view_switcher( $mode ); ?> <label for="attachment-filter" class="screen-reader-text"> <?php                     /* translators: Hidden accessibility text. */
                    _e( 'Filter by type' );
                    ?> </label> <select class="attachment-filters" name="attachment-filter" id="attachment-filter">
Home | Imprint | This part of the site doesn't use cookies.