LLMS_Admin_Table::output_thead_html()
Output the thead element for the table.
Return Return
(void)
Source Source
File: includes/abstracts/abstract.llms.admin.table.php
public function output_thead_html() {
?>
<thead>
<tr>
<?php foreach ( $this->get_columns() as $id => $data ) : ?>
<th class="<?php echo esc_attr( $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 esc_attr( $this->get_new_order( $id ) ); ?>" data-orderby="<?php echo esc_attr( $id ); ?>" href="#llms-gb-table-resort">
<?php echo esc_html( $data['title'] ); ?>
<span class="dashicons dashicons-arrow-up asc"></span>
<span class="dashicons dashicons-arrow-down desc"></span>
</a>
<?php else : ?>
<?php echo esc_html( $data['title'] ); ?>
<?php endif; ?>
<?php else : ?>
<?php echo esc_html( $data ); ?>
<?php endif; ?>
</th>
<?php endforeach; ?>
</tr>
</thead>
<?php
}
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 7.7.0 | Introduced. |