PluginProbe ʕ •ᴥ•ʔ
Hustle – Email Marketing, Lead Generation, Optins, Popups / 7.8.9
Hustle – Email Marketing, Lead Generation, Optins, Popups v7.8.9
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 9 months ago dashboard 9 months ago dialogs 3 years ago email-lists 9 months ago embedded 3 years ago global 9 months ago integrations 9 months ago integrations-page 3 years ago popup 3 years ago settings 9 months ago slidein 3 years ago sshare 9 months ago dashboard.php 3 years ago entries.php 2 years ago image-markup.php 3 years ago integrations.php 3 years ago settings.php 9 months ago tutorials.php 3 years ago upsell.php 3 years ago widget-analytics.php 3 years ago
entries.php
174 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 if ( ! $this->is_branding_hidden ) :
11 $image_attrs = array(
12 'path' => self::$plugin_url . 'assets/images/no-result.png',
13 'retina_path' => self::$plugin_url . 'assets/images/no-result@2x.png',
14 );
15 else :
16 $image_attrs = array(
17 'path' => $this->branding_image,
18 'width' => 172,
19 'height' => 192,
20 'class' => 'sui-image',
21 );
22 endif;
23 ?>
24
25 <div class="sui-header">
26 <h1 class="sui-header-title"><?php esc_html_e( 'Email Lists', 'hustle' ); ?></h1>
27 <?php $this->render( 'admin/commons/view-documentation', array( 'docs_section' => 'email-lists' ) ); ?>
28 </div>
29
30 <div id="hustle-floating-notifications-wrapper" class="sui-floating-notices"></div>
31
32 <?php
33 // Search Bar.
34 $this->render(
35 'admin/email-lists/search-bar',
36 array(
37 'has_entries' => ( $is_module_selected && ! empty( $entries ) ),
38 'module' => $module,
39 )
40 );
41 ?>
42
43 <?php
44 // If a module is selected, get its entries. Show a placeholder message otherwise.
45 if ( $is_module_selected ) :
46
47 $integrations_url = add_query_arg(
48 array(
49 'page' => $module->get_wizard_page(),
50 'id' => $module->id,
51 'section' => 'integrations',
52 ),
53 get_admin_url( get_current_blog_id(), 'admin.php' )
54 );
55
56 $add_local_list = sprintf(
57 /* translators: 1: module name, 2: opening 'a' tag with the module's edit integrations url, 3: closing 'a' tag 4. Plugin name */
58 esc_html__( '%4$s\'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' ),
59 esc_html( $module_name ),
60 '<a href="' . esc_url( $integrations_url ) . '" target="_blank">',
61 '</a>',
62 Opt_In_Utils::get_plugin_name()
63 );
64
65 // If there are entries, show them. Show a placeholder message otherwise.
66 if ( ! empty( $entries ) || $is_filtered ) :
67
68 // List Emails.
69 $this->render(
70 'admin/email-lists/emails-list',
71 array(
72 'module' => $module,
73 'no_local_list' => $no_local_list,
74 'add_local_list' => $add_local_list,
75 'wizard_page' => add_query_arg(
76 array(
77 'page' => $module->get_wizard_page(),
78 'id' => $module->module_id,
79 'section' => 'integrations',
80 ),
81 'admin.php'
82 ),
83 'form_fields' => $module->get_form_fields(),
84 )
85 );
86 ?>
87
88 <?php elseif ( $no_local_list ) : ?>
89
90 <div class="sui-box sui-message">
91 <?php $this->render( 'admin/image-markup', $image_attrs ); ?>
92 <div class="sui-message-content">
93
94 <h2><?php esc_html_e( 'Local List is Inactive!', 'hustle' ); ?></h2>
95
96 <p><?php echo wp_kses_post( $add_local_list ); ?></p>
97
98 </div>
99
100 </div>
101
102 <?php else : ?>
103
104 <div class="sui-box sui-message">
105 <?php $this->render( 'admin/image-markup', $image_attrs ); ?>
106 <div class="sui-message-content">
107
108 <h2><?php esc_html_e( 'No Emails Collected!', 'hustle' ); ?></h2>
109
110 <p><?php /* translators: module name */ 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>
111
112 </div>
113
114 </div>
115
116 <?php endif; ?>
117
118 <?php else : ?>
119
120 <?php if ( 0 === $global_entries ) { ?>
121
122 <div class="sui-box sui-message">
123 <?php $this->render( 'admin/image-markup', $image_attrs ); ?>
124 <div class="sui-message-content">
125
126 <h2><?php esc_html_e( 'Email Lists', 'hustle' ); ?></h2>
127
128 <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>
129
130 </div>
131
132 </div>
133
134 <?php } else { ?>
135
136 <div class="sui-box sui-message">
137 <?php $this->render( 'admin/image-markup', $image_attrs ); ?>
138 <div class="sui-message-content">
139
140 <h2><?php esc_html_e( 'Almost there!', 'hustle' ); ?></h2>
141
142 <p><?php esc_html_e( 'Select the popup, slide-in or embed to view the corresponding email list.', 'hustle' ); ?></p>
143
144 </div>
145
146 </div>
147
148 <?php } ?>
149
150 <?php endif; ?>
151
152 <?php
153 // Global Footer.
154 $this->render( 'admin/global/sui-components/sui-footer' );
155 ?>
156
157 <?php
158 // DIALOG: Dialog Filter for MOBILE.
159 $this->render(
160 'admin/email-lists/dialog-filter',
161 array( 'module' => $module )
162 );
163 ?>
164
165 <?php
166 // DIALOG: Delete Email.
167 $this->render( 'admin/commons/sui-listing/dialogs/delete-module', array() );
168
169 // DIALOG: Dissmiss migrate tracking notice modal confirmation.
170 if ( Hustle_Notifications::is_show_migrate_tracking_notice() ) {
171 $this->render( 'admin/dialogs/migrate-dismiss-confirmation' );
172 }
173 ?>
174