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 / settings / tab-permissions.php
wordpress-popup / views / admin / settings Last commit date
analytics 3 years ago data 3 years ago dialogs 9 months ago general 9 months ago permissions 5 years ago privacy 5 years ago recaptcha 6 years ago unsubscribe 9 months ago tab-accessibility.php 6 years ago tab-analytics.php 3 years ago tab-data.php 4 years ago tab-general.php 3 years ago tab-metrics.php 3 years ago tab-palettes.php 3 years ago tab-permissions.php 3 years ago tab-privacy.php 6 years ago tab-recaptcha.php 6 years ago tab-unsubscribe.php 6 years ago
tab-permissions.php
115 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 and Update Modules', 'hustle' ),
34 'description' => __( 'Choose the user roles which can create new modules and update all 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 /* translators: Plugin name */
70 'description' => sprintf( __( 'Choose the user roles which can access the Integrations page and connect or disconnect %s to third-party apps.', 'hustle' ), Opt_In_Utils::get_plugin_name() ),
71 'input_name' => 'edit_integrations[]',
72 'current_value' => $settings['edit_integrations'],
73 )
74 );
75
76 // SETTINGS: Edit Settings.
77 $this->render(
78 'admin/settings/permissions/permissions-row',
79 array(
80 'roles' => $roles,
81 'form_id' => $form_id,
82 'label' => __( 'Edit Settings', 'hustle' ),
83 'description' => __( 'Choose the user roles which can access the Settings page and update any settings.', 'hustle' ),
84 'input_name' => 'edit_settings[]',
85 'current_value' => $settings['edit_settings'],
86 )
87 );
88 ?>
89
90 <?php // All inputs point to this form. We can't have them nested due to the filter's form. ?>
91 <form id="<?php echo esc_attr( $form_id ); ?>"></form>
92
93 </div>
94
95
96
97 <div class="sui-box-footer">
98
99 <div class="sui-actions-right">
100
101 <button
102 class="sui-button sui-button-blue hustle-settings-save"
103 data-form-id="<?php echo esc_attr( $form_id ); ?>"
104 data-target="permissions"
105 >
106 <span class="sui-loading-text"><?php esc_html_e( 'Save Settings', 'hustle' ); ?></span>
107 <span class="sui-icon-loader sui-loading" aria-hidden="true"></span>
108 </button>
109
110 </div>
111
112 </div>
113
114 </div>
115