PluginProbe ʕ •ᴥ•ʔ
Hustle – Email Marketing, Lead Generation, Optins, Popups / 7.3.7
Hustle – Email Marketing, Lead Generation, Optins, Popups v7.3.7
7.8.13 7.8.13.1 trunk 3.0 3.1 3.1.1 3.1.2 3.1.3 3.1.4 4.3.2 4.4.4 4.4.5 4.4.5.1 4.4.5.4 4.6 4.6.1.1 4.6.1.4 4.7.0.2 4.7.0.3 4.7.0.7 4.7.0.9 4.7.1.0 4.7.1.1 4.8.0.0 5.0.0 5.0.1 5.0.1.1 5.0.1.2 5.1 5.1.1 5.1.2 5.1.3 5.1.3.1 5.1.3.2 5.1.4 5.1.5 6.0 6.0.1 6.0.2 6.0.3 6.0.4.2 6.0.5 6.0.6.1 6.0.7 6.0.8.1 6.0.9 7.0.0.1 7.0.2 7.0.3 7.0.4 7.1.0 7.1.1 7.2.0 7.2.1 7.3.0 7.3.1 7.3.3 7.3.5 7.3.6 7.3.7 7.4.0 7.4.1 7.4.11 7.4.13 7.4.13.1 7.4.2 7.4.3 7.4.4 7.4.5 7.4.5.1 7.4.5.2 7.4.6 7.4.7 7.5.0 7.6.0 7.6.1 7.6.3 7.6.4 7.6.6 7.7.0 7.7.1 7.8.0 7.8.1 7.8.10 7.8.10.1 7.8.10.2 7.8.11 7.8.12 7.8.12.1 7.8.2 7.8.3 7.8.4 7.8.5 7.8.6 7.8.7 7.8.8 7.8.9 7.8.9.1 7.8.9.2 7.8.9.3
wordpress-popup / views / admin / email-lists / pagination-desktop.php
wordpress-popup / views / admin / email-lists Last commit date
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-desktop.php
208 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
16 if ( is_array( $date_created ) && isset( $date_created[0] ) && isset( $date_created[1] ) ) {
17 $date_created[0] = date( 'm/d/Y', strtotime( $date_created[0] ) ); // phpcs:ignore WordPress.DateTime.RestrictedFunctions.date_date
18 $date_created[1] = date( 'm/d/Y', strtotime( $date_created[1] ) ); // phpcs:ignore WordPress.DateTime.RestrictedFunctions.date_date
19 $date_range = implode( ' - ', $date_created );
20 }
21
22 $search_email = isset( $this->admin->filters['search_email'] ) ? $this->admin->filters['search_email'] : '';
23 $order_by = isset( $this->admin->order['order_by'] ) ? $this->admin->order['order_by'] : '';
24
25 $order_by_array = array(
26 'entries.entry_id' => esc_html__( 'Id', 'hustle' ),
27 'entries.date_created' => esc_html__( 'Date submitted', 'hustle' ),
28 );
29 ?>
30
31 <div class="hui-box-actions
32 <?php
33 if ( isset( $actions_class ) ) {
34 echo ' ' . esc_attr( $actions_class );}
35 ?>
36 ">
37
38 <div class="hui-actions-bar">
39
40 <?php // ELEMENT: Bulk Actions. ?>
41 <form method="post" class="hustle-bulk-actions-container hui-bulk-actions">
42
43 <select
44 name="hustle_action"
45 class="sui-select-sm"
46 id="hustle-select-bulk-actions-<?php echo $is_bottom ? 'bottom' : 'top'; ?>"
47 >
48 <option value=""><?php esc_html_e( 'Bulk actions', 'hustle' ); ?></option>
49 <option value="delete-all"><?php esc_html_e( 'Delete', 'hustle' ); ?></option>
50 </select>
51
52 <input
53 type="hidden"
54 name="hustle_nonce"
55 value="<?php echo esc_attr( wp_create_nonce( 'hustle_entries_request' ) ); ?>"
56 />
57
58 <button
59 class="hustle-bulk-apply-button sui-button"
60 data-title="<?php esc_html_e( 'Delete Entries', 'hustle' ); ?>"
61 data-description="<?php esc_html_e( 'Are you sure you wish to permanently delete these entries?', 'hustle' ); ?>"
62 <?php disabled( true ); ?>
63 >
64 <?php esc_html_e( 'Apply', 'hustle' ); ?>
65 </button>
66
67 </form>
68
69 <?php // ELEMENT: Pagination (Desktop). ?>
70 <div class="hui-pagination hui-pagination-desktop">
71
72 <?php
73 $entries_per_page = $this->admin->get_per_page();
74
75 $this->render(
76 'admin/commons/pagination',
77 array(
78 'total' => $total,
79 'entries_per_page' => $entries_per_page,
80 'filterclass' => 'hustle-open-inline-filter',
81 'filter' => array(),
82 )
83 );
84 ?>
85
86 </div>
87
88 </div>
89
90 <div class="sui-pagination-filter">
91
92 <form method="get">
93
94 <input type="hidden" name="page" value="hustle_entries">
95 <input type="hidden" name="module_type" value="<?php echo esc_attr( $this->admin->get_module_type() ); ?>">
96 <input type="hidden" name="module_id" value="<?php echo esc_attr( $this->admin->get_module_id() ); ?>">
97
98 <div class="sui-row">
99
100 <div class="sui-col-md-6">
101
102 <div class="sui-form-field">
103 <label class="sui-label"><?php esc_html_e( 'Email id has keyword', 'hustle' ); ?></label>
104 <div class="sui-control-with-icon">
105 <input type="text"
106 name="search_email"
107 placeholder="<?php esc_html_e( 'E.g. gmail', 'hustle' ); ?>"
108 class="sui-form-control"
109 value="<?php echo esc_attr( $search_email ); ?>" />
110 <span class="sui-icon-magnifying-glass-search" aria-hidden="true"></span>
111 </div>
112 </div>
113
114 </div>
115
116 <div class="sui-col-md-6">
117
118 <div class="sui-form-field">
119 <label class="sui-label"><?php esc_html_e( 'Sort by', 'hustle' ); ?></label>
120 <select name="order_by" id="hustle-select-order-by-<?php echo $is_bottom ? 'bottom' : 'top'; ?>">
121 <?php foreach ( $order_by_array as $key => $name ) { ?>
122 <option value="<?php echo esc_attr( $key ); ?>" <?php selected( $key, $order_by ); ?>><?php echo esc_html( $name ); ?></option>
123 <?php } ?>
124 </select>
125 </div>
126
127 </div>
128
129 </div>
130
131 <div class="sui-row">
132
133 <div class="sui-col-md-6">
134
135 <div class="sui-form-field">
136 <label class="sui-label"><?php esc_html_e( 'Conversion date range', 'hustle' ); ?></label>
137 <div class="sui-date">
138 <span class="sui-icon-calendar" aria-hidden="true"></span>
139 <input type="text"
140 name="date_range"
141 value="<?php echo esc_attr( $date_range ); ?>"
142 placeholder="<?php esc_html_e( 'Pick a date range', 'hustle' ); ?>"
143 class="hustle-entries-filter-date sui-form-control"
144 autocomplete="off"
145 />
146 </div>
147 </div>
148
149 </div>
150
151 </div>
152
153 <div class="sui-filter-footer">
154
155 <button type="button" class="sui-button sui-button-ghost hustle-entries-clear-filter">
156 <?php esc_html_e( 'Clear Filters', 'hustle' ); ?>
157 </button>
158
159 <button class="sui-button">
160 <?php esc_html_e( 'Apply', 'hustle' ); ?>
161 </button>
162
163 </div>
164
165 </form>
166
167 </div>
168
169 <?php
170 $get_order_by = filter_input( INPUT_GET, 'order_by', FILTER_SANITIZE_STRING );
171 $ordered = ! is_null( $get_order_by ) && key_exists( $get_order_by, $order_by_array );
172
173 if ( $ordered || $search_email || $date_range ) {
174 ?>
175
176 <div class="sui-pagination-filters-list">
177
178 <label class="sui-label"><?php esc_html_e( 'Active filters', 'hustle' ); ?></label>
179
180 <div class="sui-pagination-active-filters">
181
182 <?php if ( $search_email ) { ?>
183 <span class="sui-active-filter">
184 <?php esc_html_e( 'Has keyword:', 'hustle' ); ?> <?php echo esc_html( $search_email ); ?>
185 <span class="sui-active-filter-remove" data-filter="search_email" role="button"><span class="sui-screen-reader-text"><?php esc_html_e( 'Remove this filter', 'hustle' ); ?></span></span></span>
186 <?php } ?>
187
188 <?php if ( $ordered ) { ?>
189 <span class="sui-active-filter">
190 <?php esc_html_e( 'Sort by:', 'hustle' ); ?> <?php echo esc_html( $order_by_array[ $get_order_by ] ); ?>
191 <span class="sui-active-filter-remove" data-filter="order_by" role="button"><span class="sui-screen-reader-text"><?php esc_html_e( 'Remove this filter', 'hustle' ); ?></span></span></span>
192 <?php } ?>
193
194 <?php if ( $date_range ) { ?>
195 <?php $date_range_to = str_replace( ' - ', __( ' to ', 'hustle' ), $date_range ); ?>
196 <span class="sui-active-filter">
197 <?php esc_html_e( 'Submission date range:', 'hustle' ); ?> <?php echo esc_html( $date_range_to ); ?>
198 <span class="sui-active-filter-remove" data-filter="date_range" role="button"><span class="sui-screen-reader-text"><?php esc_html_e( 'Remove this filter', 'hustle' ); ?></span></span></span>
199 <?php } ?>
200
201 </div>
202
203 </div>
204
205 <?php } ?>
206
207 </div>
208