display_rows_or_placeholder example

$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         $this->display_tablenav( 'bottom' );
    }

    /** * @global string $tab * * @param string $which */
    
?> <table class="<?php echo implode( ' ', $this->get_table_classes() ); ?>" style="display:none;"> <tbody id="the-comment-list" <?php         if ( $singular ) {
            echo " data-wp-lists='list:$singular'";
        }
        ?> > <?php         if ( ! $output_empty ) {
            $this->display_rows_or_placeholder();
        }
        ?> </tbody> </table> <?php     }

    /** * @param bool $comment_status * @return int */
    

    public function display() {
        wp_nonce_field( 'fetch-list-' . get_class( $this ), '_ajax_fetch_list_nonce' );
        ?> <?php $this->tablenav( 'top' ); ?> <div id="availablethemes"> <?php $this->display_rows_or_placeholder(); ?> </div> <?php $this->tablenav( 'bottom' ); ?> <?php     }

    /** * @return string[] Array of column titles keyed by their column name. */
    public function get_columns() {
        return array();
    }

                do_action( 'install_themes_table_header' );
                ?> </div> <?php $this->pagination( 'top' ); ?> <br class="clear" /> </div> <div id="availablethemes"> <?php $this->display_rows_or_placeholder(); ?> </div> <?php         $this->tablenav( 'bottom' );
    }

    /** */
    public function display_rows() {
        $themes = $this->items;
        foreach ( $themes as $theme ) {
            
 else {
            $this->print_table_description();
        }
        ?> <thead> <tr> <?php $this->print_column_headers(); ?> </tr> </thead> <tbody id="the-comment-list" data-wp-lists="list:comment"> <?php $this->display_rows_or_placeholder(); ?> </tbody> <tbody id="the-extra-comment-list" data-wp-lists="list:comment" style="display: none;"> <?php             /* * Back up the items to restore after printing the extra items markup. * The extra items may be empty, which will prevent the table nav from displaying later. */
            $items       = $this->items;
            $this->items = $this->extra_items;
            $this->display_rows_or_placeholder();
            
<?php $this->print_column_headers(); ?> </tr> </thead> <tbody id="the-list" <?php         if ( $singular ) {
            echo " data-wp-lists='list:$singular'";
        }
        ?> > <?php $this->display_rows_or_placeholder(); ?> </tbody> <tfoot> <tr> <?php $this->print_column_headers( false ); ?> </tr> </tfoot> </table> <?php         $this->display_tablenav( 'bottom' );
    }
Home | Imprint | This part of the site doesn't use cookies.