PluginProbe ʕ •ᴥ•ʔ
Hustle – Email Marketing, Lead Generation, Optins, Popups / 7.4.5.1
Hustle – Email Marketing, Lead Generation, Optins, Popups v7.4.5.1
7.8.14.2 7.8.14 7.8.14.1 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 6 years ago pagination-desktop.php 5 years ago pagination-mobile.php 6 years ago search-bar.php 5 years ago
pagination-desktop.php
209 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 id="hustle-select-bulk-actions-<?php echo $is_bottom ? 'bottom' : 'top'; ?>"
46 class="sui-select sui-select-sm"
47 data-placeholder="<?php esc_html_e( 'Bulk actions', 'hustle' ); ?>"
48 >
49 <option></option>
50 <option value="delete-all"><?php esc_html_e( 'Delete', 'hustle' ); ?></option>
51 </select>
52
53 <input
54 type="hidden"
55 name="hustle_nonce"
56 value="<?php echo esc_attr( wp_create_nonce( 'hustle_entries_request' ) ); ?>"
57 />
58
59 <button
60 class="hustle-bulk-apply-button sui-button"
61 data-title="<?php esc_html_e( 'Delete Entries', 'hustle' ); ?>"
62 data-description="<?php esc_html_e( 'Are you sure you wish to permanently delete these entries?', 'hustle' ); ?>"
63 <?php disabled( true ); ?>
64 >
65 <?php esc_html_e( 'Apply', 'hustle' ); ?>
66 </button>
67
68 </form>
69
70 <?php // ELEMENT: Pagination (Desktop). ?>
71 <div class="hui-pagination hui-pagination-desktop">
72
73 <?php
74 $entries_per_page = $this->admin->get_per_page();
75
76 $this->render(
77 'admin/commons/pagination',
78 array(
79 'total' => $total,
80 'entries_per_page' => $entries_per_page,
81 'filterclass' => 'hustle-open-inline-filter',
82 'filter' => array(),
83 )
84 );
85 ?>
86
87 </div>
88
89 </div>
90
91 <div class="sui-pagination-filter">
92
93 <form method="get">
94
95 <input type="hidden" name="page" value="hustle_entries">
96 <input type="hidden" name="module_type" value="<?php echo esc_attr( $this->admin->get_module_type() ); ?>">
97 <input type="hidden" name="module_id" value="<?php echo esc_attr( $this->admin->get_module_id() ); ?>">
98
99 <div class="sui-row">
100
101 <div class="sui-col-md-6">
102
103 <div class="sui-form-field">
104 <label class="sui-label"><?php esc_html_e( 'Email id has keyword', 'hustle' ); ?></label>
105 <div class="sui-control-with-icon">
106 <input type="text"
107 name="search_email"
108 placeholder="<?php esc_html_e( 'E.g. gmail', 'hustle' ); ?>"
109 class="sui-form-control"
110 value="<?php echo esc_attr( $search_email ); ?>" />
111 <span class="sui-icon-magnifying-glass-search" aria-hidden="true"></span>
112 </div>
113 </div>
114
115 </div>
116
117 <div class="sui-col-md-6">
118
119 <div class="sui-form-field">
120 <label class="sui-label"><?php esc_html_e( 'Sort by', 'hustle' ); ?></label>
121 <select name="order_by" id="hustle-select-order-by-<?php echo $is_bottom ? 'bottom' : 'top'; ?>">
122 <?php foreach ( $order_by_array as $key => $name ) { ?>
123 <option value="<?php echo esc_attr( $key ); ?>" <?php selected( $key, $order_by ); ?>><?php echo esc_html( $name ); ?></option>
124 <?php } ?>
125 </select>
126 </div>
127
128 </div>
129
130 </div>
131
132 <div class="sui-row">
133
134 <div class="sui-col-md-6">
135
136 <div class="sui-form-field">
137 <label class="sui-label"><?php esc_html_e( 'Conversion date range', 'hustle' ); ?></label>
138 <div class="sui-date">
139 <span class="sui-icon-calendar" aria-hidden="true"></span>
140 <input type="text"
141 name="date_range"
142 value="<?php echo esc_attr( $date_range ); ?>"
143 placeholder="<?php esc_html_e( 'Pick a date range', 'hustle' ); ?>"
144 class="hustle-entries-filter-date sui-form-control"
145 autocomplete="off"
146 />
147 </div>
148 </div>
149
150 </div>
151
152 </div>
153
154 <div class="sui-filter-footer">
155
156 <button type="button" class="sui-button sui-button-ghost hustle-entries-clear-filter">
157 <?php esc_html_e( 'Clear Filters', 'hustle' ); ?>
158 </button>
159
160 <button class="sui-button">
161 <?php esc_html_e( 'Apply', 'hustle' ); ?>
162 </button>
163
164 </div>
165
166 </form>
167
168 </div>
169
170 <?php
171 $get_order_by = filter_input( INPUT_GET, 'order_by', FILTER_SANITIZE_STRING );
172 $ordered = ! is_null( $get_order_by ) && key_exists( $get_order_by, $order_by_array );
173
174 if ( $ordered || $search_email || $date_range ) {
175 ?>
176
177 <div class="sui-pagination-filters-list">
178
179 <label class="sui-label"><?php esc_html_e( 'Active filters', 'hustle' ); ?></label>
180
181 <div class="sui-pagination-active-filters">
182
183 <?php if ( $search_email ) { ?>
184 <span class="sui-active-filter">
185 <?php esc_html_e( 'Has keyword:', 'hustle' ); ?> <?php echo esc_html( $search_email ); ?>
186 <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>
187 <?php } ?>
188
189 <?php if ( $ordered ) { ?>
190 <span class="sui-active-filter">
191 <?php esc_html_e( 'Sort by:', 'hustle' ); ?> <?php echo esc_html( $order_by_array[ $get_order_by ] ); ?>
192 <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>
193 <?php } ?>
194
195 <?php if ( $date_range ) { ?>
196 <?php $date_range_to = str_replace( ' - ', __( ' to ', 'hustle' ), $date_range ); ?>
197 <span class="sui-active-filter">
198 <?php esc_html_e( 'Submission date range:', 'hustle' ); ?> <?php echo esc_html( $date_range_to ); ?>
199 <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>
200 <?php } ?>
201
202 </div>
203
204 </div>
205
206 <?php } ?>
207
208 </div>
209