PluginProbe ʕ •ᴥ•ʔ
Hustle – Email Marketing, Lead Generation, Optins, Popups / 7.6.4
Hustle – Email Marketing, Lead Generation, Optins, Popups v7.6.4
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 / entries.php
wordpress-popup / views / admin Last commit date
commons 3 years ago dashboard 3 years ago dialogs 3 years ago email-lists 4 years ago embedded 3 years ago global 3 years ago integrations 4 years ago integrations-page 5 years ago popup 3 years ago settings 3 years ago slidein 3 years ago sshare 3 years ago dashboard.php 3 years ago entries.php 4 years ago integrations.php 3 years ago settings.php 4 years ago tutorials.php 3 years ago upsell.php 4 years ago widget-analytics.php 4 years ago
entries.php
187 lines
1 <?php
2 /**
3 * Main wrapper for the Email lists (entries/form submissions) page.
4 *
5 * @package Hustle
6 * @since 4.0.0
7 */
8
9 // Email Lists: Images.
10 $empty_image = self::$plugin_url . 'assets/images/hustle-empty-message';
11 $choose_image = self::$plugin_url . 'assets/images/hustle-email-lists';
12 ?>
13
14 <div class="sui-header">
15 <h1 class="sui-header-title"><?php esc_html_e( 'Email Lists', 'hustle' ); ?></h1>
16 <?php $this->render( 'admin/commons/view-documentation', array( 'docs_section' => 'email-lists' ) ); ?>
17 </div>
18
19 <div id="hustle-floating-notifications-wrapper" class="sui-floating-notices"></div>
20
21 <?php
22 // Search Bar.
23 $this->render(
24 'admin/email-lists/search-bar',
25 array(
26 'has_entries' => ( $is_module_selected && ! empty( $entries ) ),
27 'module' => $module,
28 )
29 );
30 ?>
31
32 <?php
33 // If a module is selected, get its entries. Show a placeholder message otherwise.
34 if ( $is_module_selected ) :
35
36 $integrations_url = add_query_arg(
37 array(
38 'page' => $module->get_wizard_page(),
39 'id' => $module->id,
40 'section' => 'integrations',
41 ),
42 get_admin_url( get_current_blog_id(), 'admin.php' )
43 );
44
45 $add_local_list = sprintf(
46 /* translators: 1: module name, 2: opening 'a' tag with the module's edit integrations url, 3: closing 'a' tag */
47 esc_html__( 'Hustle\'s Local List is inactive for this %1$s. %2$sActivate Local List%3$s integration for this module to store the submissions in your database and see those submissions here.', 'hustle' ),
48 esc_html( $module_name ),
49 '<a href="' . esc_url( $integrations_url ) . '" target="_blank">',
50 '</a>'
51 );
52
53 // If there are entries, show them. Show a placeholder message otherwise.
54 if ( ! empty( $entries ) || $is_filtered ) :
55
56 // List Emails.
57 $this->render(
58 'admin/email-lists/emails-list',
59 array(
60 'module' => $module,
61 'no_local_list' => $no_local_list,
62 'add_local_list' => $add_local_list,
63 'wizard_page' => add_query_arg(
64 array(
65 'page' => $module->get_wizard_page(),
66 'id' => $module->module_id,
67 'section' => 'integrations',
68 ),
69 'admin.php'
70 ),
71 'form_fields' => $module->get_form_fields(),
72 )
73 );
74 ?>
75
76 <?php elseif ( $no_local_list ) : ?>
77
78 <div class="sui-box sui-message">
79 <?php
80 if ( $this->is_branding_hidden ) :
81 echo $this->render_image_markup( $this->branding_image, '', 'sui-image', 172, 192 ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
82 else :
83 $this->hustle_image( $empty_image, 'png', '', true );
84 endif;
85 ?>
86 <div class="sui-message-content">
87
88 <h2><?php esc_html_e( 'Local List is Inactive!', 'hustle' ); ?></h2>
89
90 <p><?php echo $add_local_list; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?></p>
91
92 </div>
93
94 </div>
95
96 <?php else : ?>
97
98 <div class="sui-box sui-message">
99 <?php
100 if ( $this->is_branding_hidden ) :
101 echo $this->render_image_markup( $this->branding_image, '', 'sui-image', 172, 192 ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
102 else :
103 $this->hustle_image( $empty_image, 'png', '', true );
104 endif;
105 ?>
106 <div class="sui-message-content">
107
108 <h2><?php esc_html_e( 'No Emails Collected!', 'hustle' ); ?></h2>
109
110 <?php /* translators: module name */ ?>
111 <p><?php printf( esc_html__( "Your %s hasn't collected any emails yet. When it starts converting, you'll be able to view the collected emails here.", 'hustle' ), esc_html( $module_name ) ); ?></p>
112
113 </div>
114
115 </div>
116
117 <?php endif; ?>
118
119 <?php else : ?>
120
121 <?php if ( 0 === $global_entries ) { ?>
122
123 <div class="sui-box sui-message">
124 <?php
125 if ( $this->is_branding_hidden ) :
126 echo $this->render_image_markup( $this->branding_image, '', 'sui-image', 172, 192 ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
127 else :
128 $this->hustle_image( $empty_image, 'png', '', true );
129 endif;
130 ?>
131 <div class="sui-message-content">
132
133 <h2><?php esc_html_e( 'Email Lists', 'hustle' ); ?></h2>
134
135 <p><?php esc_html_e( "You haven't yet collected emails through email opt-ins inside any of your popup, slide-in or embed. When you do, you'll be able to view the email list here.", 'hustle' ); ?></p>
136
137 </div>
138
139 </div>
140
141 <?php } else { ?>
142
143 <div class="sui-box sui-message">
144 <?php
145 if ( $this->is_branding_hidden ) :
146 echo $this->render_image_markup( $this->branding_image, '', 'sui-image', 172, 192 ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
147 else :
148 $this->hustle_image( $choose_image, 'png', '', true );
149 endif;
150 ?>
151 <div class="sui-message-content">
152
153 <h2><?php esc_html_e( 'Almost there!', 'hustle' ); ?></h2>
154
155 <p><?php esc_html_e( 'Select the popup, slide-in or embed to view the corresponding email list.', 'hustle' ); ?></p>
156
157 </div>
158
159 </div>
160
161 <?php } ?>
162
163 <?php endif; ?>
164
165 <?php
166 // Global Footer.
167 $this->render( 'admin/global/sui-components/sui-footer' );
168 ?>
169
170 <?php
171 // DIALOG: Dialog Filter for MOBILE.
172 $this->render(
173 'admin/email-lists/dialog-filter',
174 array( 'module' => $module )
175 );
176 ?>
177
178 <?php
179 // DIALOG: Delete Email.
180 $this->render( 'admin/commons/sui-listing/dialogs/delete-module', array() );
181
182 // DIALOG: Dissmiss migrate tracking notice modal confirmation.
183 if ( Hustle_Notifications::is_show_migrate_tracking_notice() ) {
184 $this->render( 'admin/dialogs/migrate-dismiss-confirmation' );
185 }
186 ?>
187