PluginProbe ʕ •ᴥ•ʔ
Hustle – Email Marketing, Lead Generation, Optins, Popups / 7.8.14.1
Hustle – Email Marketing, Lead Generation, Optins, Popups v7.8.14.1
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 / general / unsubscribe-form.php
wordpress-popup / views / general Last commit date
option.php 5 months ago policy-text.php 2 years ago unsubscribe-form.php 5 months ago
unsubscribe-form.php
80 lines
1 <?php
2 /**
3 * Template for the unsubscribe form in frontend.
4 *
5 * @package Hustle
6 * @since 4.0.0
7 */
8
9 if ( ! $ajax_step ) : ?>
10 <?php $button_text = ! empty( $skip_confirmation ) ? $messages['submit_button_text'] : $messages['get_lists_button_text']; ?>
11 <?php $step = ! empty( $skip_confirmation ) ? 'choose_list' : 'enter_email'; ?>
12 <form class="hustle-unsubscribe-form">
13
14 <span
15 class="wpoi-submit-failure"
16 style="display:none;"
17 data-default-error="<?php esc_html_e( 'There was an error submitting the form', 'hustle' ); ?>"
18 ></span>
19
20 <div class="hustle-form-body">
21
22 <div class="hustle-email-section">
23 <input type="email"
24 name="email"
25 class="required"
26 placeholder="john@doe.com" >
27 </div>
28
29 <button type="submit" class="hustle-unsub-button">
30 <span class="hustle-loading-text"><?php echo esc_html( $button_text ); ?></span>
31 <span class="hustle-loading-icon"></span>
32 </button>
33 <input type="hidden" name="form_step" value="<?php echo esc_attr( $step ); ?>">
34
35 <input type="hidden" name="form_module_id" value="<?php echo esc_attr( $shortcode_attr_id ); ?>">
36 <input type="hidden" name="current_url" value="<?php echo esc_attr( Opt_In_Utils::get_current_url() ); ?>">
37
38 <?php if ( ! empty( $skip_confirmation ) ) { ?>
39 <input type="hidden" name="skip_confirmation" value="true">
40 <?php } ?>
41
42 </div>
43
44 </form>
45
46 <?php else : ?>
47
48 <div class="hustle-email-lists">
49
50 <?php foreach ( $modules_id as $module_id ) : ?>
51 <?php
52 $current_module = Hustle_Module_Model::new_instance( $module_id );
53 $list_name = __( 'Undefined', 'hustle' );
54 if ( ! is_wp_error( $current_module ) ) {
55 $local_list = $current_module->get_provider_settings( 'local_list' );
56 if ( ! empty( $local_list['local_list_name'] ) ) {
57 $list_name = $local_list['local_list_name'];
58 } elseif ( ! empty( $current_module->module_name ) ) {
59 $list_name = $current_module->module_name;
60 }
61 }
62 ?>
63 <label for="hustle-list-<?php echo esc_attr( $module_id ); ?>">
64 <input type="checkbox" name="lists_id[]" value="<?php echo esc_attr( $module_id ); ?>" id="hustle-list-<?php echo esc_attr( $module_id ); ?>">
65 <span><?php echo esc_html( $list_name ); ?></span>
66 </label>
67
68 <?php endforeach; ?>
69
70 </div>
71 <input type="hidden" name="form_step" value="choose_list">
72 <input type="hidden" name="email" value="<?php echo esc_attr( $email ); ?>">
73 <input type="hidden" name="current_url" value="<?php echo esc_attr( $current_url ); ?>">
74 <button type="submit" class="hustle-unsub-button">
75 <span class="hustle-loading-text"><?php echo esc_html( $messages['submit_button_text'] ); ?></span>
76 <span class="hustle-loading-icon"></span>
77 </button>
78
79 <?php endif; ?>
80