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 / tab-permissions.php
wordpress-popup / views / admin / settings Last commit date
analytics 6 years ago data 5 years ago dialogs 5 years ago general 5 years ago permissions 5 years ago privacy 5 years ago recaptcha 5 years ago unsubscribe 6 years ago tab-accessibility.php 6 years ago tab-analytics.php 5 years ago tab-data.php 6 years ago tab-general.php 5 years ago tab-metrics.php 6 years ago tab-palettes.php 5 years ago tab-permissions.php 6 years ago tab-privacy.php 6 years ago tab-recaptcha.php 6 years ago tab-unsubscribe.php 6 years ago
tab-permissions.php
114 lines
1 <?php
2 /**
3 * Permissions tab.
4 *
5 * @package Hustle
6 * @since 4.0.0
7 */
8
9 $form_id = 'hustle-permissions-settings-form';
10 $settings = Hustle_Settings_Admin::get_permissions_settings();
11 $roles = Opt_In_Utils::get_user_roles();
12 ?>
13 <div id="permissions-box" class="sui-box" data-tab="permissions"
14 <?php
15 if ( 'permissions' !== $section ) {
16 echo 'style="display: none;"';}
17 ?>
18 >
19
20 <div class="sui-box-header">
21 <h2 class="sui-box-title"><?php esc_html_e( 'Permissions', 'hustle' ); ?></h2>
22 </div>
23
24 <div class="sui-box-body">
25
26 <?php
27 // SETTINGS: Create Modules.
28 $this->render(
29 'admin/settings/permissions/permissions-row',
30 array(
31 'roles' => $roles,
32 'form_id' => $form_id,
33 'label' => __( 'Create Modules', 'hustle' ),
34 'description' => __( 'Choose the user roles which can create new modules.', 'hustle' ),
35 'input_name' => 'create[]',
36 'current_value' => $settings['create'],
37 )
38 );
39
40 // SETTINGS: Edit Existing Modules.
41 $this->render(
42 'admin/settings/permissions/edit-modules',
43 array(
44 'roles' => $roles,
45 'form_id' => $form_id,
46 )
47 );
48
49 // SETTINGS: Access Email List.
50 $this->render(
51 'admin/settings/permissions/permissions-row',
52 array(
53 'roles' => $roles,
54 'form_id' => $form_id,
55 'label' => __( 'Access Email List', 'hustle' ),
56 'description' => __( 'Choose the user roles which can access the Email List for the opt-in modules.', 'hustle' ),
57 'input_name' => 'access_emails[]',
58 'current_value' => $settings['access_emails'],
59 )
60 );
61
62 // SETTINGS: Edit Integrations.
63 $this->render(
64 'admin/settings/permissions/permissions-row',
65 array(
66 'roles' => $roles,
67 'form_id' => $form_id,
68 'label' => __( 'Edit Integrations', 'hustle' ),
69 'description' => __( 'Choose the user roles which can access the Integrations page and connect or disconnect Hustle to 3rd party apps.', 'hustle' ),
70 'input_name' => 'edit_integrations[]',
71 'current_value' => $settings['edit_integrations'],
72 )
73 );
74
75 // SETTINGS: Edit Settings.
76 $this->render(
77 'admin/settings/permissions/permissions-row',
78 array(
79 'roles' => $roles,
80 'form_id' => $form_id,
81 'label' => __( 'Edit Settings', 'hustle' ),
82 'description' => __( 'Choose the user roles which can access the Settings page and update any settings.', 'hustle' ),
83 'input_name' => 'edit_settings[]',
84 'current_value' => $settings['edit_settings'],
85 )
86 );
87 ?>
88
89 <?php // All inputs point to this form. We can't have them nested due to the filter's form. ?>
90 <form id="<?php echo esc_attr( $form_id ); ?>"></form>
91
92 </div>
93
94
95
96 <div class="sui-box-footer">
97
98 <div class="sui-actions-right">
99
100 <button
101 class="sui-button sui-button-blue hustle-settings-save"
102 data-form-id="<?php echo esc_attr( $form_id ); ?>"
103 data-target="permissions"
104 >
105 <span class="sui-loading-text"><?php esc_html_e( 'Save Settings', 'hustle' ); ?></span>
106 <span class="sui-icon-loader sui-loading" aria-hidden="true"></span>
107 </button>
108
109 </div>
110
111 </div>
112
113 </div>
114