PluginProbe
Hustle – Email Marketing, Lead Generation, Optins, Popups / 7.8.3
Hustle – Email Marketing, Lead Generation, Optins, Popups v7.8.3
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 All 103 releases
wordpress-popup / views / admin / email-lists / search-bar.php
search-bar.php
75 lines 2.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Search bar section.
4 *
5 * @var Hustle_Layout_Helper $this
6 *
7 * @package Hustle
8 * @since 4.0.0
9 */
10
11 $modules = $this->admin->get_modules();
12 ?>
13 <div class="sui-box">
14
15 <div class="hui-box-entries-search">
16
17 <form id="hustle-entries-search-form" class="hui-search-left" method="get">
18
19 <input
20 type="hidden"
21 name="page"
22 value="hustle_entries"
23 />
24
25 <select
26 name="module_type"
27 class="sui-select sui-select-sm sui-select-inline"
28 onchange="submit()"
29 data-width="150"
30 >
31 <?php foreach ( $this->admin->get_module_types() as $module_type => $name ) { ?>
32 <option value="<?php echo esc_attr( $module_type ); ?>" <?php echo selected( $module_type, $this->admin->get_current_module_type() ); ?>><?php echo esc_html( $name ); ?></option>
33 <?php } ?>
34 </select>
35
36 <select name="module_id" class="sui-select sui-select-sm sui-select-inline" data-width="250" data-search="true" data-placeholder="<?php esc_attr_e( 'Choose module', 'hustle' ); ?>">
37
38 <option></option>
39
40 <?php foreach ( $modules as $module ) { ?>
41 <option value="<?php echo esc_attr( $module->module_id ); ?>" <?php selected( $module->module_id, $this->admin->get_current_module_id() ); ?>>
42 <?php echo esc_html( ! empty( $module->module_name ) ? $module->module_name : $module->module_id ); ?>
43 </option>
44 <?php } ?>
45
46 </select>
47
48 <button class="sui-button sui-button-blue" onclick="submit()">
49 <?php esc_html_e( 'Show Email List', 'hustle' ); ?>
50 </button>
51
52 </form>
53
54 <?php if ( $has_entries ) : ?>
55
56 <div class="hui-search-right">
57
58 <form method="post">
59 <input type="hidden" name="hustle_action" value="export_listing">
60 <input type="hidden" name="id" value="<?php echo esc_attr( $module->id ); ?>">
61 <?php wp_nonce_field( 'hustle_module_export_listing' ); ?>
62 <button class="sui-button sui-button-ghost">
63 <span class="sui-icon-paperclip" aria-hidden="true"></span>
64 <?php esc_html_e( 'Export CSV', 'hustle' ); ?>
65 </button>
66 </form>
67
68 </div>
69
70 <?php endif; ?>
71
72 </div>
73
74 </div>
75