PluginProbe ʕ •ᴥ•ʔ
Hustle – Email Marketing, Lead Generation, Optins, Popups / 7.4.6
Hustle – Email Marketing, Lead Generation, Optins, Popups v7.4.6
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 / commons / sui-wizard / tab-behaviour / additional-settings.php
wordpress-popup / views / admin / commons / sui-wizard / tab-behaviour Last commit date
trigger 4 years ago additional-settings.php 4 years ago animation-settings.php 5 years ago closing-behaviour.php 4 years ago closing-methods.php 5 years ago position.php 6 years ago schedule-tpl.php 5 years ago schedule.php 6 years ago trigger.php 5 years ago
additional-settings.php
197 lines
1 <?php
2 /**
3 * Additional settings section.
4 *
5 * @package Hustle
6 * @since 4.0.0
7 */
8
9 $hide_after_subscription_desc = $is_optin ?
10 /* translators: module type in small caps and in singular */
11 __( 'Choose the %s visibility after opt-in.', 'hustle' ) :
12 /* translators: module type in small caps and in singular */
13 __( 'Choose the %1$s visibility after opt-in, including conversion of external forms in your %1$s. Supported external form plugins include Forminator, Ninja Forms, Gravity Forms (for AJAX forms), and Contact Form 7.', 'hustle' );
14 ?>
15 <div class="sui-box-settings-row">
16
17 <div class="sui-box-settings-col-1">
18 <span class="sui-settings-label"><?php esc_html_e( 'Additional Settings', 'hustle' ); ?></span>
19 <?php /* translators: module type in small caps and in singular */ ?>
20 <span class="sui-description"><?php printf( esc_html__( 'These settings will add some extra control on your %s.', 'hustle' ), esc_html( $smallcaps_singular ) ); ?></span>
21 </div>
22
23 <div class="sui-box-settings-col-2">
24
25 <?php
26 if ( Hustle_Module_Model::POPUP_MODULE === $module_type ) :
27 // SETTINGS: Allow page scrolling.
28 ?>
29 <div class="sui-form-field">
30
31 <label class="sui-settings-label"><?php esc_html_e( 'Page scrolling', 'hustle' ); ?></label>
32
33 <?php /* translators: module type in small caps and in singular */ ?>
34 <span class="sui-description" style="margin-bottom: 10px;"><?php printf( esc_html__( 'Choose whether to enable page scrolling in the background while the %s is visible to the users.', 'hustle' ), esc_html( $smallcaps_singular ) ); ?></span>
35
36 <?php
37 $this->render(
38 'admin/global/sui-components/sui-tabs',
39 array(
40 'name' => 'allow_scroll_page',
41 'radio' => true,
42 'saved_value' => $settings['allow_scroll_page'],
43 'sidetabs' => true,
44 'content' => false,
45 'options' => array(
46 '1' => array(
47 'value' => '1',
48 'label' => __( 'Enable', 'hustle' ),
49 ),
50 '0' => array(
51 'value' => '0',
52 'label' => __( 'Disable', 'hustle' ),
53 ),
54 ),
55 )
56 );
57 ?>
58
59 </div>
60
61 <?php endif; ?>
62
63 <?php // SETTINGS: Visibility after opt-in. ?>
64 <div class="sui-form-field">
65
66 <label class="sui-settings-label"><?php esc_html_e( 'Visibility after opt-in', 'hustle' ); ?></label>
67
68 <span class="sui-description" style="margin-bottom: 10px;">
69 <?php printf( esc_html( $hide_after_subscription_desc ), esc_html( $smallcaps_singular ) ); ?>
70 </span>
71
72 <select class="sui-select hustle-select-with-container" data-attribute="hide_after_subscription" name="hide_after_subscription" data-content-on="no_show_on_post,no_show_all">
73 <option value="keep_show" <?php selected( $settings['hide_after_subscription'], 'keep_show' ); ?>>
74 <?php esc_html_e( 'Keep showing this module', 'hustle' ); ?>
75 </option>
76 <option value="no_show_all" <?php selected( $settings['hide_after_subscription'], 'no_show_all' ); ?>>
77 <?php esc_html_e( 'No longer show this module across the site', 'hustle' ); ?>
78 </option>
79 <option value="no_show_on_post" <?php selected( $settings['hide_after_subscription'], 'no_show_on_post' ); ?>>
80 <?php esc_html_e( 'No longer show this module on this post/page', 'hustle' ); ?>
81 </option>
82 </select>
83
84 <div style="margin-top: 10px;" data-field-content="hide_after_subscription">
85 <?php Opt_In_Utils::get_cookie_saving_notice(); ?>
86 </div>
87
88 </div>
89
90 <?php // SETTINGS: Visibility after CTA conversion. ?>
91 <div class="sui-form-field" data-toggle-content="show-cta">
92
93 <label class="sui-settings-label"><?php esc_html_e( 'Visibility after CTA conversion', 'hustle' ); ?></label>
94
95 <?php /* translators: module type in small caps and in singular */ ?>
96 <span class="sui-description" style="margin-bottom: 10px;"><?php printf( esc_html__( 'Choose the %s visibility once a visitor has clicked on the CTA button.', 'hustle' ), esc_html( $smallcaps_singular ) ); ?></span>
97
98 <select class="sui-select hustle-select-with-container" data-attribute="hide_after_cta" name="hide_after_cta" data-content-on="no_show_on_post,no_show_all">
99 <option value="keep_show" <?php selected( $settings['hide_after_cta'], 'keep_show' ); ?>><?php esc_html_e( 'Keep showing this module', 'hustle' ); ?></option>
100 <option value="no_show_all" <?php selected( $settings['hide_after_cta'], 'no_show_all' ); ?>><?php esc_html_e( 'No longer show this module across the site', 'hustle' ); ?></option>
101 <option value="no_show_on_post" <?php selected( $settings['hide_after_cta'], 'no_show_on_post' ); ?>><?php esc_html_e( 'No longer show this module on this post/page', 'hustle' ); ?></option>
102 </select>
103
104 <div style="margin-top: 10px;" data-field-content="hide_after_cta">
105 <?php Opt_In_Utils::get_cookie_saving_notice(); ?>
106 </div>
107
108 </div>
109
110 <?php // SETTINGS: External form conversion behavior. ?>
111
112 <div class="sui-form-field">
113
114 <label class="sui-settings-label"><?php esc_html_e( 'External form conversion behavior', 'hustle' ); ?></label>
115
116 <span class="sui-description"><?php printf( esc_html__( "If you have an external form in your %1\$s, choose how your %1\$s will behave on conversion of that form. Note that this doesn't affect your external form submission behavior.", 'hustle' ), esc_html( $smallcaps_singular ) ); ?></span>
117
118 <div style="margin-top: 10px;">
119
120 <div style="margin-bottom: 10px;">
121
122 <select class="sui-select" data-attribute="on_submit" >
123
124 <?php if ( 'embedded' !== $module_type ) { ?>
125 <option value="close"
126 <?php selected( $settings['on_submit'], 'close' ); ?>>
127 <?php /* translators: module type in small caps and in singular */ ?>
128 <?php printf( esc_html__( 'Close the %s', 'hustle' ), esc_html( $smallcaps_singular ) ); ?>
129 </option>
130 <?php } ?>
131
132 <option value="redirect"
133 <?php selected( $settings['on_submit'], 'redirect' ); ?>>
134 <?php esc_html_e( 'Re-direct to form target URL', 'hustle' ); ?>
135 </option>
136
137 <option value="nothing"
138 <?php selected( $settings['on_submit'], 'nothing' ); ?>>
139 <?php esc_html_e( 'Do nothing (use for Ajax Forms)', 'hustle' ); ?>
140 </option>
141
142 </select>
143
144 </div>
145
146 <div id="hustle-on-submit-delay-wrapper" class="sui-border-frame <?php echo 'nothing' === $settings['on_submit'] ? 'sui-hidden' : ''; ?>">
147
148 <label class="sui-label"><?php esc_html_e( 'Add delay', 'hustle' ); ?></label>
149
150 <div class="sui-row">
151
152 <div class="sui-col-md-6">
153
154 <input
155 type="number"
156 value="<?php echo esc_attr( $settings['on_submit_delay'] ); ?>"
157 min="0"
158 class="sui-form-control"
159 data-attribute="on_submit_delay"
160 />
161
162 </div>
163
164 <div class="sui-col-md-6">
165
166 <select data-attribute="on_submit_delay_unit">
167
168 <option
169 value="seconds"
170 <?php selected( $settings['on_submit_delay_unit'], 'seconds' ); ?>
171 >
172 <?php esc_html_e( 'seconds', 'hustle' ); ?>
173 </option>
174
175 <option
176 value="minutes"
177 <?php selected( $settings['on_submit_delay_unit'], 'minutes' ); ?>
178 >
179 <?php esc_html_e( 'minutes', 'hustle' ); ?>
180 </option>
181
182 </select>
183
184 </div>
185
186 </div>
187
188 </div>
189
190 </div>
191
192 </div>
193
194 </div>
195
196 </div>
197