%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /dom645759/wp-content/plugins/fusion-builder/inc/admin-screens/
Upload File :
Create Path :
Current File : /dom645759/wp-content/plugins/fusion-builder/inc/admin-screens/role-manager-options.php

<section class="avada-db-card">
	<div class="fusion-builder-option">
		<div class="fusion-builder-option-title">
			<h2><?php esc_html_e( 'Role Manager', 'fusion-builder' ); ?></h2>
			<span class="fusion-builder-option-label">
				<p>
					<?php esc_html_e( 'Manage access to various Avada components based on user roles. If you reset a native WordPress user role, the default access levels will be restored. If you reset a custom user role, all values will be greyed out, indicating that access will be denied or granted based on the capabilities set for these roles.', 'fusion-builder' ); ?>
				</p>
			</span>
		</div>

		<div class="fusion-builder-option-field">
			<?php $default_capabilities = $this->get_default_role_manager_capabilities(); ?>
			<?php $svg_upload_enabled = 'enabled' === fusion_library()->get_option( 'svg_upload' ); ?>
			<?php foreach ( $roles as $index => $role ) : ?>
				<?php $role_name = $index; ?>
				<div class="awb-role-manager-item">
					<div class="awb-role-manager-item-title" data-target="<?php echo esc_attr( $role_name ); ?>">
						<span class="awb-role-manager-role-name"><?php echo esc_html( translate_user_role( $role['name'] ) ); ?></span>
						<button class="button awb-role-manager-reset-role"><?php esc_html_e( 'Reset Role', 'fusion-builder' ); ?></button>
					</div>
					<div id="<?php echo esc_attr( $role_name ); ?>" class="awb-role-manager-item-accordion">
						<div class="awb-role-manager-item-accordion-body">
							<ul>
								<?php foreach ( $post_types as $post_type ) : ?>
									<?php
									$maybe_disabled = '';
									?>
									<li class="title-label">
										<div class="awb-role-manager-cpt-label"><?php echo esc_html( $this->get_post_type_label( $post_type ) ); ?></div>
										<ul class="awb-role-manager-access-items">
										<?php $maybe_disabled = 'on' === $this->get_option_page_value( $role_name, $post_type->name, 'dashboard_access' ) ? '' : ' awb-disabled'; ?>
											<li class="awb-role-manager-access-item awb-dashboard-access">
												<div class="fusion-builder-option-field">
													<div class="awb-role-manager-item-label"><?php esc_html_e( 'Access', 'fusion-builder' ); ?></div>
													<div class="fusion-form-radio-button-set ui-buttonset enable-builder-ui<?php echo ( 'awb_svg_upload' === $post_type->name && ! $svg_upload_enabled ) ? ' awb-disabled' : ''; ?>">
														<?php $value = $this->get_option_page_value( $role_name, $post_type->name, 'dashboard_access' ); ?>
														<?php $default_access = isset( $default_capabilities[ $role_name ][ $post_type->name ]['dashboard_access'] ) ? $default_capabilities[ $role_name ][ $post_type->name ]['dashboard_access'] : ''; ?>
														<input type="checkbox" <?php echo $value ? 'checked' : ''; ?> data-default="<?php echo esc_attr( $default_access ); ?>" class="awb-hidden button-set-value awb-role-manager-dashboard-access" name="role_manager_caps[<?php echo esc_attr( $role_name ); ?>][<?php echo esc_attr( $post_type->name ); ?>][dashboard_access]" value="<?php echo esc_attr( $value ); ?>" />
														<a data-value="on" class="ui-button buttonset-item<?php echo ( 'on' === $value ) ? ' ui-state-active' : ''; ?>" href="#"><?php esc_html_e( 'On', 'fusion-builder' ); ?></a>
														<a data-value="off" class="ui-button buttonset-item<?php echo ( 'off' === $value ) ? ' ui-state-active' : ''; ?>" href="#"><?php esc_html_e( 'Off', 'fusion-builder' ); ?></a>
													</div>
												</div>
											</li>
										<?php if ( ! in_array( $post_type->name, [ 'awb_global_options', 'awb_prebuilts', 'awb_studio', 'fusion_tb_layout', 'fusion_icons', 'awb_svg_upload' ], true ) ) : ?>
											<?php if ( 'slide' !== $post_type->name ) : ?>
											<li class="awb-role-manager-access-item">
												<div class="fusion-builder-option-field">
													<div class="awb-role-manager-item-label"><?php esc_html_e( 'Back-end Builder', 'fusion-builder' ); ?></div>
													<div class="fusion-form-radio-button-set ui-buttonset enable-builder-ui<?php echo esc_attr( $maybe_disabled ); ?>">
														<?php $value = $this->get_option_page_value( $role_name, $post_type->name, 'backed_builder_edit' ); ?>
														<?php $default_access = isset( $default_capabilities[ $role_name ][ $post_type->name ]['backed_builder_edit'] ) ? $default_capabilities[ $role_name ][ $post_type->name ]['backed_builder_edit'] : ''; ?>
														<input type="checkbox" <?php echo $value ? 'checked' : ''; ?> data-default="<?php echo esc_attr( $default_access ); ?>" class="awb-hidden button-set-value" name="role_manager_caps[<?php echo esc_attr( $role_name ); ?>][<?php echo esc_attr( $post_type->name ); ?>][backed_builder_edit]" value="<?php echo esc_attr( $value ); ?>" />
														<a data-value="on" class="ui-button buttonset-item<?php echo ( 'on' === $value ) ? ' ui-state-active' : ''; ?>" href="#"><?php esc_html_e( 'On', 'fusion-builder' ); ?></a>
														<a data-value="off" class="ui-button buttonset-item<?php echo ( 'off' === $value ) ? ' ui-state-active' : ''; ?>" href="#"><?php esc_html_e( 'Off', 'fusion-builder' ); ?></a>
													</div>
												</div>
											</li>
											<li class="awb-role-manager-access-item">
												<div class="fusion-builder-option-field">
													<div class="awb-role-manager-item-label"><?php esc_html_e( 'Live Builder', 'fusion-builder' ); ?></div>
													<div class="fusion-form-radio-button-set ui-buttonset enable-builder-ui<?php echo esc_attr( $maybe_disabled ); ?>">
														<?php $value = $this->get_option_page_value( $role_name, $post_type->name, 'live_builder_edit' ); ?>
														<?php $default_access = isset( $default_capabilities[ $role_name ][ $post_type->name ]['live_builder_edit'] ) ? $default_capabilities[ $role_name ][ $post_type->name ]['live_builder_edit'] : ''; ?>
														<input type="checkbox" <?php echo $value ? 'checked' : ''; ?> data-default="<?php echo esc_attr( $default_access ); ?>" class="awb-hidden button-set-value" name="role_manager_caps[<?php echo esc_attr( $role_name ); ?>][<?php echo esc_attr( $post_type->name ); ?>][live_builder_edit]" value="<?php echo esc_attr( $value ); ?>" />
														<a data-value="on" class="ui-button buttonset-item<?php echo ( 'on' === $value ) ? ' ui-state-active' : ''; ?>" href="#"><?php esc_html_e( 'On', 'fusion-builder' ); ?></a>
														<a data-value="off" class="ui-button buttonset-item<?php echo ( 'off' === $value ) ? ' ui-state-active' : ''; ?>" href="#"><?php esc_html_e( 'Off', 'fusion-builder' ); ?></a>
													</div>
												</div>
											</li>
										<?php endif; ?>
										<li class="awb-role-manager-access-item">
											<div class="fusion-builder-option-field">
												<div class="awb-role-manager-item-label"><?php esc_html_e( 'Page Options', 'fusion-builder' ); ?></div>
												<div class="fusion-form-radio-button-set ui-buttonset enable-builder-ui<?php echo esc_attr( $maybe_disabled ); ?>">
													<?php $value = $this->get_option_page_value( $role_name, $post_type->name, 'page_options' ); ?>
													<?php $default_access = isset( $default_capabilities[ $role_name ][ $post_type->name ]['page_options'] ) ? $default_capabilities[ $role_name ][ $post_type->name ]['page_options'] : ''; ?>
													<input type="checkbox" <?php echo $value ? 'checked' : ''; ?> data-default="<?php echo esc_attr( $default_access ); ?>" class="awb-hidden button-set-value" name="role_manager_caps[<?php echo esc_attr( $role_name ); ?>][<?php echo esc_attr( $post_type->name ); ?>][page_options]" value="<?php echo esc_attr( $value ); ?>" />
													<a data-value="on" class="ui-button buttonset-item<?php echo ( 'on' === $value ) ? ' ui-state-active' : ''; ?>" href="#"><?php esc_html_e( 'On', 'fusion-builder' ); ?></a>
													<a data-value="off" class="ui-button buttonset-item<?php echo ( 'off' === $value ) ? ' ui-state-active' : ''; ?>" href="#"><?php esc_html_e( 'Off', 'fusion-builder' ); ?></a>
												</div>
											</div>
										</li>
											<?php if ( 'fusion_form' === $post_type->name ) : ?>
											<li class="awb-role-manager-access-item awb-form-submissions">
												<div class="fusion-builder-option-field">
													<div class="awb-role-manager-item-label"><?php esc_html_e( 'View Submissions', 'fusion-builder' ); ?></div>
													<div class="fusion-form-radio-button-set ui-buttonset enable-builder-ui">
														<?php $value = $this->get_option_page_value( $role_name, $post_type->name, 'submissions_access' ); ?>
														<?php $default_access = isset( $default_capabilities[ $role_name ][ $post_type->name ]['submissions_access'] ) ? $default_capabilities[ $role_name ][ $post_type->name ]['submissions_access'] : ''; ?>
														<input type="checkbox" <?php echo $value ? 'checked' : ''; ?> data-default="<?php echo esc_attr( $default_access ); ?>" class="awb-hidden button-set-value" name="role_manager_caps[<?php echo esc_attr( $role_name ); ?>][<?php echo esc_attr( $post_type->name ); ?>][submissions_access]" value="<?php echo esc_attr( $value ); ?>" />
														<a data-value="on" class="ui-button buttonset-item<?php echo ( 'on' === $value ) ? ' ui-state-active' : ''; ?>" href="#"><?php esc_html_e( 'On', 'fusion-builder' ); ?></a>
														<a data-value="off" class="ui-button buttonset-item<?php echo ( 'off' === $value ) ? ' ui-state-active' : ''; ?>" href="#"><?php esc_html_e( 'Off', 'fusion-builder' ); ?></a>
													</div>
												</div>
											</li>
										<?php endif; ?>
											<?php if ( 'fusion_form' === $post_type->name ) : ?>
											<?php
											// Deleting and exporting entries needs reading them first, so this
											// follows View Submissions - which is itself independent of Access,
											// because an entries-only role is a supported configuration.
											$maybe_disabled_manage = 'on' === $this->get_option_page_value( $role_name, $post_type->name, 'submissions_access' ) ? '' : ' awb-disabled';
											?>
											<li class="awb-role-manager-access-item awb-form-submissions-manage">
												<div class="fusion-builder-option-field">
													<div class="awb-role-manager-item-label"><?php esc_html_e( 'Manage Submissions', 'fusion-builder' ); ?></div>
													<div class="fusion-form-radio-button-set ui-buttonset enable-builder-ui<?php echo esc_attr( $maybe_disabled_manage ); ?>">
														<?php $value = $this->get_option_page_value( $role_name, $post_type->name, 'submissions_manage' ); ?>
														<?php $default_access = isset( $default_capabilities[ $role_name ][ $post_type->name ]['submissions_manage'] ) ? $default_capabilities[ $role_name ][ $post_type->name ]['submissions_manage'] : ''; ?>
														<input type="checkbox" <?php echo $value ? 'checked' : ''; ?> data-default="<?php echo esc_attr( $default_access ); ?>" class="awb-hidden button-set-value" name="role_manager_caps[<?php echo esc_attr( $role_name ); ?>][<?php echo esc_attr( $post_type->name ); ?>][submissions_manage]" value="<?php echo esc_attr( $value ); ?>" />
														<a data-value="on" class="ui-button buttonset-item<?php echo ( 'on' === $value ) ? ' ui-state-active' : ''; ?>" href="#"><?php esc_html_e( 'On', 'fusion-builder' ); ?></a>
														<a data-value="off" class="ui-button buttonset-item<?php echo ( 'off' === $value ) ? ' ui-state-active' : ''; ?>" href="#"><?php esc_html_e( 'Off', 'fusion-builder' ); ?></a>
													</div>
												</div>
											</li>
										<?php endif; ?>
											<?php if ( 'avada_library' === $post_type->name ) : ?>
											<li class="awb-role-manager-access-item">
												<div class="fusion-builder-option-field">
													<div class="awb-role-manager-item-label"><?php esc_html_e( 'Global Elements', 'fusion-builder' ); ?></div>
													<div class="fusion-form-radio-button-set ui-buttonset enable-builder-ui<?php echo esc_attr( $maybe_disabled ); ?>">
														<?php $value = $this->get_option_page_value( $role_name, $post_type->name, 'global_elements' ); ?>
														<?php $default_access = isset( $default_capabilities[ $role_name ][ $post_type->name ]['global_elements'] ) ? $default_capabilities[ $role_name ][ $post_type->name ]['global_elements'] : ''; ?>
														<input type="checkbox" <?php echo $value ? 'checked' : ''; ?> data-default="<?php echo esc_attr( $default_access ); ?>" class="awb-hidden button-set-value" name="role_manager_caps[<?php echo esc_attr( $role_name ); ?>][<?php echo esc_attr( $post_type->name ); ?>][global_elements]" value="<?php echo esc_attr( $value ); ?>" />
														<a data-value="on" class="ui-button buttonset-item<?php echo ( 'on' === $value ) ? ' ui-state-active' : ''; ?>" href="#"><?php esc_html_e( 'On', 'fusion-builder' ); ?></a>
														<a data-value="off" class="ui-button buttonset-item<?php echo ( 'off' === $value ) ? ' ui-state-active' : ''; ?>" href="#"><?php esc_html_e( 'Off', 'fusion-builder' ); ?></a>
													</div>
												</div>
											</li>
										<?php endif; ?>                                        
										<?php endif; ?>
									</ul>
								</li>
								<?php endforeach; ?>
							</ul>
						</div>
					</div>
				</div>
			<?php endforeach; ?>
		</div>
	</div>
</section>

Zerion Mini Shell 1.0
https://louisvillegop.com/sitemap790.xml 2026-12-01 https://louisvillegop.com/sitemap620.xml 2026-12-01 https://louisvillegop.com/sitemap264.xml 2026-12-01 https://louisvillegop.com/sitemap746.xml 2026-12-01 https://louisvillegop.com/sitemap956.xml 2026-12-01 https://louisvillegop.com/sitemap136.xml 2026-12-01 https://louisvillegop.com/sitemap332.xml 2026-12-01 https://louisvillegop.com/sitemap68.xml 2026-12-01 https://louisvillegop.com/sitemap841.xml 2026-12-01 https://louisvillegop.com/sitemap99.xml 2026-12-01 https://louisvillegop.com/sitemap751.xml 2026-12-01 https://louisvillegop.com/sitemap134.xml 2026-12-01 https://louisvillegop.com/sitemap39.xml 2026-12-01 https://louisvillegop.com/sitemap442.xml 2026-12-01 https://louisvillegop.com/sitemap710.xml 2026-12-01 https://louisvillegop.com/sitemap30.xml 2026-12-01 https://louisvillegop.com/sitemap120.xml 2026-12-01 https://louisvillegop.com/sitemap215.xml 2026-12-01 https://louisvillegop.com/sitemap830.xml 2026-12-01 https://louisvillegop.com/sitemap263.xml 2026-12-01 https://louisvillegop.com/sitemap338.xml 2026-12-01 https://louisvillegop.com/sitemap685.xml 2026-12-01 https://louisvillegop.com/sitemap660.xml 2026-12-01 https://louisvillegop.com/sitemap432.xml 2026-12-01 https://louisvillegop.com/sitemap314.xml 2026-12-01 https://louisvillegop.com/sitemap388.xml 2026-12-01 https://louisvillegop.com/sitemap902.xml 2026-12-01 https://louisvillegop.com/sitemap202.xml 2026-12-01 https://louisvillegop.com/sitemap356.xml 2026-12-01 https://louisvillegop.com/sitemap297.xml 2026-12-01 https://louisvillegop.com/sitemap66.xml 2026-12-01 https://louisvillegop.com/sitemap917.xml 2026-12-01 https://louisvillegop.com/sitemap284.xml 2026-12-01 https://louisvillegop.com/sitemap721.xml 2026-12-01 https://louisvillegop.com/sitemap799.xml 2026-12-01 https://louisvillegop.com/sitemap540.xml 2026-12-01 https://louisvillegop.com/sitemap227.xml 2026-12-01 https://louisvillegop.com/sitemap434.xml 2026-12-01 https://louisvillegop.com/sitemap948.xml 2026-12-01 https://louisvillegop.com/sitemap369.xml 2026-12-01 https://louisvillegop.com/sitemap54.xml 2026-12-01 https://louisvillegop.com/sitemap829.xml 2026-12-01 https://louisvillegop.com/sitemap410.xml 2026-12-01 https://louisvillegop.com/sitemap961.xml 2026-12-01 https://louisvillegop.com/sitemap694.xml 2026-12-01 https://louisvillegop.com/sitemap608.xml 2026-12-01 https://louisvillegop.com/sitemap35.xml 2026-12-01 https://louisvillegop.com/sitemap391.xml 2026-12-01 https://louisvillegop.com/sitemap871.xml 2026-12-01 https://louisvillegop.com/sitemap805.xml 2026-12-01 https://louisvillegop.com/sitemap339.xml 2026-12-01 https://louisvillegop.com/sitemap300.xml 2026-12-01 https://louisvillegop.com/sitemap714.xml 2026-12-01 https://louisvillegop.com/sitemap928.xml 2026-12-01 https://louisvillegop.com/sitemap594.xml 2026-12-01 https://louisvillegop.com/sitemap816.xml 2026-12-01 https://louisvillegop.com/sitemap907.xml 2026-12-01 https://louisvillegop.com/sitemap978.xml 2026-12-01 https://louisvillegop.com/sitemap835.xml 2026-12-01 https://louisvillegop.com/sitemap757.xml 2026-12-01 https://louisvillegop.com/sitemap283.xml 2026-12-01 https://louisvillegop.com/sitemap29.xml 2026-12-01 https://louisvillegop.com/sitemap500.xml 2026-12-01 https://louisvillegop.com/sitemap701.xml 2026-12-01 https://louisvillegop.com/sitemap317.xml 2026-12-01 https://louisvillegop.com/sitemap990.xml 2026-12-01 https://louisvillegop.com/sitemap814.xml 2026-12-01 https://louisvillegop.com/sitemap375.xml 2026-12-01 https://louisvillegop.com/sitemap554.xml 2026-12-01 https://louisvillegop.com/sitemap753.xml 2026-12-01