PluginProbe ʕ •ᴥ•ʔ
Hustle – Email Marketing, Lead Generation, Optins, Popups / 7.8.6
Hustle – Email Marketing, Lead Generation, Optins, Popups v7.8.6
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 2 years ago dashboard 2 years ago dialogs 3 years ago email-lists 2 years ago embedded 3 years ago global 2 years ago integrations 2 years ago integrations-page 3 years ago popup 3 years ago settings 2 years ago slidein 3 years ago sshare 2 years ago dashboard.php 3 years ago entries.php 2 years ago image-markup.php 3 years ago integrations.php 3 years ago settings.php 4 years ago tutorials.php 3 years ago upsell.php 2 years ago widget-analytics.php 3 years ago
settings.php
157 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 <label class="sui-label"><?php esc_html_e( 'Navigate', 'hustle' ); ?></label>
94
95 <select class="sui-mobile-nav" style="margin-bottom: 20px;">
96 <?php
97 foreach ( $sections as $key => $value ) {
98
99 printf(
100 '<option value="%1$s" %2$s>%3$s</option>',
101 esc_attr( $key ),
102 selected( $section, $key, false ),
103 esc_html( $value['label'] )
104 );
105
106 }
107 ?>
108 </select>
109
110 </div>
111
112 </div>
113
114 <?php
115 foreach ( $sections as $key => $value ) {
116
117 if ( ! empty( $value['status'] ) && 'hide' === $value['status'] ) {
118 continue;
119 }
120
121 $data = isset( $value['data'] ) ? $value['data'] : array();
122 $data['section'] = $section;
123 $template = sprintf( 'admin/settings/tab-%s', esc_attr( $key ) );
124
125 $this->render( $template, $data );
126 }
127 ?>
128
129 </div>
130
131 <?php
132 // Global Footer.
133 $this->render( 'admin/global/sui-components/sui-footer' );
134
135 // DIALOG: Delete.
136 $this->render( 'admin/commons/sui-listing/dialogs/delete-module' );
137
138 // DIALOG: Delete All IPs.
139 $this->render( 'admin/settings/dialogs/privacy-ip-delete' );
140
141 // DIALOG: Dissmiss migrate tracking notice modal confirmation.
142 if ( Hustle_Notifications::is_show_migrate_tracking_notice() ) {
143 $this->render( 'admin/dialogs/migrate-dismiss-confirmation' );
144 }
145
146 // DIALOG: Data -> Reset plugin.
147 $this->render( 'admin/settings/dialogs/data-reset-data-dialog' );
148
149 // DIALOG: Palettes -> Edit palette.
150 $this->render(
151 'admin/settings/dialogs/palettes-edit-palette',
152 array(
153 'palettes' => Hustle_Palettes_Helper::get_all_palettes_slug_and_name(),
154 )
155 );
156 ?>
157