PluginProbe ʕ •ᴥ•ʔ
Hustle – Email Marketing, Lead Generation, Optins, Popups / 7.3.7
Hustle – Email Marketing, Lead Generation, Optins, Popups v7.3.7
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 / settings.php
wordpress-popup / views / admin Last commit date
commons 5 years ago dashboard 5 years ago dialogs 5 years ago email-lists 5 years ago embedded 5 years ago footer 5 years ago global 5 years ago integrations 5 years ago integrations-page 5 years ago popup 5 years ago settings 5 years ago slidein 5 years ago sshare 5 years ago dashboard.php 5 years ago entries.php 5 years ago integrations.php 5 years ago settings.php 5 years ago upsell.php 5 years ago widget-analytics.php 5 years ago
settings.php
155 lines
1 <?php
2 /**
3 * Main wrapper for the Settings page.
4 *
5 * @package Hustle
6 * @since 4.0.0
7 */
8
9 $sections = array(
10 'general' => array(
11 'label' => __( 'General', 'hustle' ),
12 'data' => array(
13 'settings' => Hustle_Settings_Admin::get_general_settings(),
14 ),
15 ),
16 'palettes' => array(
17 'label' => __( 'Color Palettes', 'hustle' ),
18 'data' => array(
19 'palettes' => Hustle_Settings_Admin::get_custom_color_palettes(),
20 ),
21 ),
22 'analytics' => array(
23 'label' => __( 'Dashboard Analytics', 'hustle' ),
24 ),
25 'data' => array(
26 'label' => __( 'Data', 'hustle' ),
27 ),
28 'privacy' => array(
29 'label' => __( 'Viewer\'s Privacy', 'hustle' ),
30 ),
31 'permissions' => array(
32 'label' => __( 'Permissions', 'hustle' ),
33 ),
34 'recaptcha' => array(
35 'label' => __( 'reCAPTCHA', 'hustle' ),
36 'data' => array(
37 'settings' => Hustle_Settings_Admin::get_recaptcha_settings(),
38 ),
39 ),
40 'accessibility' => array(
41 'label' => __( 'Accessibility', 'hustle' ),
42 'data' => array(
43 'settings' => Hustle_Settings_Admin::get_hustle_settings( 'accessibility' ),
44 ),
45 ),
46 'metrics' => array(
47 'label' => __( 'Top Metrics', 'hustle' ),
48 'data' => array(
49 'stored_metrics' => Hustle_Settings_Admin::get_top_metrics_settings(),
50 ),
51 ),
52 'unsubscribe' => array(
53 'label' => __( 'Unsubscribe', 'hustle' ),
54 ),
55 );
56 ?>
57
58 <div class="sui-header">
59 <h1 class="sui-header-title"><?php esc_html_e( 'Settings', 'hustle' ); ?></h1>
60 <?php $this->render( 'admin/commons/view-documentation', array( 'docs_section' => 'settings' ) ); ?>
61 </div>
62
63 <div id="hustle-floating-notifications-wrapper" class="sui-floating-notices"></div>
64
65 <div class="sui-row-with-sidenav">
66
67 <div class="sui-sidenav">
68
69 <ul class="sui-vertical-tabs sui-sidenav-hide-md">
70 <?php
71 foreach ( $sections as $key => $value ) {
72
73 $classes = array(
74 'sui-vertical-tab',
75 );
76
77 if ( $section === $key ) {
78 $classes[] = 'current';
79 }
80
81 printf(
82 '<li class="%s"><a href="#" data-tab="%s">%s</a></li>',
83 esc_attr( implode( ' ', $classes ) ),
84 esc_attr( $key ),
85 esc_html( $value['label'] )
86 );
87 }
88 ?>
89 </ul>
90
91 <div class="sui-sidenav-hide-lg">
92
93 <select class="sui-mobile-nav" style="display: none;">
94 <?php
95 foreach ( $sections as $key => $value ) {
96
97 printf(
98 '<option value="%1$s" %2$s>%3$s</option>',
99 esc_attr( $key ),
100 selected( $section, $key, false ),
101 esc_html( $value['label'] )
102 );
103
104 }
105 ?>
106 </select>
107
108 </div>
109
110 </div>
111
112 <?php
113 foreach ( $sections as $key => $value ) {
114
115 if ( ! empty( $value['status'] ) && 'hide' === $value['status'] ) {
116 continue;
117 }
118
119 $data = isset( $value['data'] ) ? $value['data'] : array();
120 $data['section'] = $section;
121 $template = sprintf( 'admin/settings/tab-%s', esc_attr( $key ) );
122
123 $this->render( $template, $data );
124 }
125 ?>
126
127 </div>
128
129 <?php
130 // Global Footer.
131 $this->render( 'admin/footer/footer' );
132
133 // DIALOG: Delete.
134 $this->render( 'admin/commons/sui-listing/dialogs/delete-module' );
135
136 // DIALOG: Delete All IPs.
137 $this->render( 'admin/settings/dialogs/privacy-ip-delete' );
138
139 // DIALOG: Dissmiss migrate tracking notice modal confirmation.
140 if ( Hustle_Notifications::is_show_migrate_tracking_notice() ) {
141 $this->render( 'admin/dialogs/migrate-dismiss-confirmation' );
142 }
143
144 // DIALOG: Data -> Reset plugin.
145 $this->render( 'admin/settings/dialogs/data-reset-data-dialog' );
146
147 // DIALOG: Palettes -> Edit palette.
148 $this->render(
149 'admin/settings/dialogs/palettes-edit-palette',
150 array(
151 'palettes' => Hustle_Palettes_Helper::get_all_palettes_slug_and_name(),
152 )
153 );
154 ?>
155