LLMS_Admin_Table::get_thead_html()
Get a thead element for the table.
Return Return
(string)
Source Source
File: includes/abstracts/abstract.llms.admin.table.php
public function get_thead_html() { ob_start(); ?> <thead> <tr> <?php foreach ( $this->get_columns() as $id => $data ) : ?> <th class="<?php echo $id; ?>"> <?php if ( is_array( $data ) ) : ?> <?php if ( isset( $data['sortable'] ) && $data['sortable'] ) : ?> <a class="llms-sortable<?php echo ( $this->get_orderby() === $id ) ? ' active' : ''; ?>" data-order="<?php echo $this->get_new_order( $id ); ?>" data-orderby="<?php echo $id; ?>" href="#llms-gb-table-resort"> <?php echo $data['title']; ?> <span class="dashicons dashicons-arrow-up asc"></span> <span class="dashicons dashicons-arrow-down desc"></span> </a> <?php else : ?> <?php echo $data['title']; ?> <?php endif; ?> <?php else : ?> <?php echo $data; ?> <?php endif; ?> </th> <?php endforeach; ?> </tr> </thead> <?php return ob_get_clean(); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.2.0 | Introduced. |