| Server IP : 151.101.66.159 / Your IP : 216.73.216.66 Web Server : Flywheel/5.1.0 System : Linux wordpress 6.12.113+ #1 SMP Thu Oct 22 02:38:20 UTC 2026 x86_64 User : root ( ) PHP Version : 7.4.33.18 Disable Function : disk_free_space,diskfreespace,dl,exec,fpassthru,getmypid,getmyuid,highlight_file,link,opcache_compile_file,opcache_get_configuration,opcache_is_script_cached,passthru,pcntl_alarm,pcntl_exec,pcntl_fork,pcntl_get_last_error,pcntl_getpriority,pcntl_setpriority,pcntl_signal,pcntl_signal_dispatch,pcntl_sigprocmask,pcntl_sigtimedwait,pcntl_sigwaitinfo,pcntl_strerror,pcntl_wait,pcntl_waitpid,pcntl_wexitstatus,pcntl_wifcontinued,pcntl_wifexited,pcntl_wifsignaled,pcntl_wifstopped,pcntl_wstopsig,pcntl_wtermsig,phpinfo,popen,posix_ctermid,posix_getcwd,posix_getegid,posix_geteuid,posix_getgid,posix_getgrgid,posix_getgrnam,posix_getgroups,posix_getlogin,posix_getpgid,posix_getpgrp,posix_getpid,posix_getppid,posix_getpwnam,posix_getpwuid,posix_getrlimit,posix_getsid,posix_getuid,posix_isatty,posix_kill,posix_mkfifo,posix_setegid,posix_seteuid,posix_setgid,posix_setpgid,posix_setsid,posix_setuid,posix_times,posix_ttyname,posix_uname,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,shell_exec,show_source,socket_listen,source,system,virtual MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /www/wp-content/plugins/wpmudev-updates/template/sui/whitelabel-settings/ |
Upload File : |
<?php /** * The whitelabel label configuration content for a project. * * @var array $project Project data. * @var array $settings Settings. * * @package WPMUDEV_Dashboard * @since 4.11.1 */ defined( 'WPINC' ) || die(); $icon_types = array( 'default' => __( 'Default', 'wpmudev' ), 'dashicon' => __( 'Dashicon', 'wpmudev' ), 'upload' => __( 'Upload Icon', 'wpmudev' ), 'link' => __( 'Link Icon', 'wpmudev' ), 'none' => __( 'None', 'wpmudev' ), ); // Default settings. $defaults = array( 'name' => '', 'icon_type' => 'default', 'thumb_id' => false, 'icon_url' => '', 'icon_class' => '', ); // Get settings values. $settings = isset( $settings['labels_config'][ $project->pid ] ) ? (array) $settings['labels_config'][ $project->pid ] : array(); // Merge with default values. $settings = wp_parse_args( $settings, $defaults ); ?> <div class="sui-form-field"> <label for="project-name-<?php echo esc_attr( $project->pid ); ?>" id="project-name-label-<?php echo esc_attr( $project->pid ); ?>" class="sui-label" > <?php esc_html_e( 'Plugin Name', 'wpmudev' ); ?> </label> <input placeholder="<?php echo esc_attr( $project->name ); ?>" id="project-name-<?php echo esc_attr( $project->pid ); ?>" class="sui-form-control" aria-labelledby="project-name-label-<?php echo esc_attr( $project->pid ); ?>" name="labels_config[<?php echo esc_attr( $project->pid ); ?>][name]" value="<?php echo esc_attr( $settings['name'] ); ?>" /> </div> <div class="sui-form-field"> <label id="project-icon-label-<?php echo esc_attr( $project->pid ); ?>" class="sui-label" > <?php esc_html_e( 'Icon', 'wpmudev' ); ?> </label> <div class="sui-side-tabs"> <div class="sui-tabs-menu"> <?php foreach ( $icon_types as $icon_type => $icon_label ) : ?> <label for="project-icon-<?php echo esc_attr( $icon_type ); ?>-<?php echo esc_attr( $project->pid ); ?>" class="sui-tab-item <?php echo $icon_type === $settings['icon_type'] ? 'active' : ''; ?>" > <input type="radio" name="labels_config[<?php echo esc_attr( $project->pid ); ?>][icon_type]" value="<?php echo esc_attr( $icon_type ); ?>" id="project-icon-<?php echo esc_attr( $icon_type ); ?>-<?php echo esc_attr( $project->pid ); ?>" data-checked="<?php echo $icon_type === $settings['icon_type'] ? 'true' : 'false'; ?>" data-tab-menu="project-icon-<?php echo esc_attr( $icon_type ); ?>-<?php echo esc_attr( $project->pid ); ?>-content" <?php checked( $icon_type, $settings['icon_type'] ); ?> /> <?php echo esc_attr( $icon_label ); ?> </label> <?php endforeach; ?> </div> <div class="sui-tabs-content"> <?php $this->render( 'sui/whitelabel-settings/dashicon-settings', array( 'project' => $project, 'settings' => $settings, ) ); $this->render( 'sui/whitelabel-settings/upload-settings', array( 'project' => $project, 'settings' => $settings, ) ); $this->render( 'sui/whitelabel-settings/link-settings', array( 'project' => $project, 'settings' => $settings, ) ); ?> </div> </div> </div>