dialog-filter.php
5 years ago
emails-list.php
5 years ago
pagination-desktop.php
5 years ago
pagination-mobile.php
5 years ago
search-bar.php
6 years ago
pagination-mobile.php
41 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Title section. |
| 4 | * |
| 5 | * @var Hustle_Layout_Helper $this |
| 6 | * |
| 7 | * @package Hustle |
| 8 | * @since 4.0.0 |
| 9 | */ |
| 10 | |
| 11 | $total = $this->admin->filtered_total_entries(); |
| 12 | $is_filter_enabled = $this->admin->is_filter_box_enabled(); |
| 13 | $date_range = ''; |
| 14 | $date_created = isset( $this->admin->filters['date_created'] ) ? $this->admin->filters['date_created'] : ''; |
| 15 | if ( is_array( $date_created ) && isset( $date_created[0] ) && isset( $date_created[1] ) ) { |
| 16 | $date_created[0] = date( 'm/d/Y', strtotime( $date_created[0] ) ); // phpcs:ignore WordPress.DateTime.RestrictedFunctions.date_date |
| 17 | $date_created[1] = date( 'm/d/Y', strtotime( $date_created[1] ) ); // phpcs:ignore WordPress.DateTime.RestrictedFunctions.date_date |
| 18 | $date_range = implode( ' - ', $date_created ); |
| 19 | } |
| 20 | $search_email = isset( $this->admin->filters['search_email'] ) ? $this->admin->filters['search_email'] : ''; |
| 21 | $order_by = isset( $this->admin->order['order_by'] ) ? $this->admin->order['order_by'] : ''; |
| 22 | |
| 23 | $order_by_array = array( |
| 24 | 'entries.entry_id' => esc_html__( 'Id', 'hustle' ), |
| 25 | 'entries.date_created' => esc_html__( 'Date submitted', 'hustle' ), |
| 26 | ); |
| 27 | ?> |
| 28 | |
| 29 | <?php |
| 30 | $entries_per_page = $this->admin->get_per_page(); |
| 31 | |
| 32 | $this->render( |
| 33 | 'admin/commons/pagination', |
| 34 | array( |
| 35 | 'total' => $total, |
| 36 | 'entries_per_page' => $entries_per_page, |
| 37 | 'filterclass' => 'hustle-open-dialog-filter', |
| 38 | 'filter' => array(), |
| 39 | ) |
| 40 | ); |
| 41 |