HEX
Server: nginx/1.16.1
System: Linux VM-0-14-centos 4.18.0-348.7.1.el8_5.x86_64 #1 SMP Wed Dec 22 13:25:12 UTC 2021 x86_64
User: www (1000)
PHP: 8.3.31
Disabled: passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
Upload Files
File: /www/wwwroot/www.sceybwg.com/wp-content/themes/Modular/admin/page/team-setting.php
<?php
//团队页设置
add_filter('wpjam_theme_setting', function(){

	$sections = [

		'team-banner'		=> [
			'title'			=> 'Banner图片',
			'fields'		=> [
				'team_banner'				=> [
					'title'					=> 'Banner图片',
					'type'					=> 'mu-fields',//mu-fields //fieldset
					'button_text'			=> '添加Banner',
					//'group'				=> true,
					'fields'				=> [
						'banner_img'		=> [
							'title'			=> '电脑端:',
							'type'			=> 'img',
							'item_type'		=> 'url',
							//'size'		=> '292×50'
							//'description' => '建议尺寸:1920 × 550 px'
						],
						'banner_img_mb' 	=> [
							'title'       	=> '手机端:',
							'type'        	=> 'img',
							'item_type'   	=> 'url',
							//'required'  	=> true,
							//'description' => '建议尺寸:790 × 560 px'
						],
						'banner_title'		=> [
							'title'			=> '标题:',
							'type'			=> 'text',
							'style'			=> 'width:500px',
						],
						'banner_desc'		=> [
							'title'			=> '描述:',
							'type'			=> 'text',
							'show_if'		=> ['key'=>'banner_title', 'compare'=>'!=', 'value'=>''],
							'style'			=> 'width:500px',
						],
						'banner_text_color'	=> [
							'title'			=> '文本颜色:',
							'type'			=> 'color',
							'description'	=> '文本颜色:标题 和 描述 的文本颜色',
							'show_if'		=> ['key'=>'banner_title', 'compare'=>'!=', 'value'=>''],
							'data-alpha-enabled' => true
						], 
						'banner_mask_color'	=> [
							'title'			=> '图片滤镜:',
							'type'			=> 'color',
							'description'	=> '图片滤镜:给图片增加一个 自定义颜色 的遮罩层',
							'data-alpha-enabled' => true
						], 
						'banner_url'		=> [
							'title'			=> '跳转链接:',
							'type'			=> 'url',
							//'class'		=> 'all-options',
							'style'			=> 'width:500px',
						],
						'banner_button'		=> [
							'title'			=> '按钮文本',
							'type'			=> 'text',
							'description'	=> '留空则点击图片进行跳转',
							'show_if'		=> ['key'=>'banner_url', 'compare'=>'!=', 'value'=>''],
							'style'			=> 'width:500px',
						],
						'banner_button_bg'	=> [
							'title'			=> '按钮颜色:',
							'type'			=> 'color',
							'description'	=> '按钮颜色:整个按钮颜色',
							'show_if'		=> ['key'=>'banner_button', 'compare'=>'!=', 'value'=>''],
							'data-alpha-enabled' => true
						], 
						'banner_button_co'	=> [
							'title'			=> '文本颜色:',
							'type'			=> 'color',
							'description'	=> '文本颜色:按钮文本颜色',
							'show_if'		=> ['key'=>'banner_button', 'compare'=>'!=', 'value'=>''],
							'data-alpha-enabled' => true
						], 
						'banner_target'		=> [
							'title'			=> '打开方式:',
							'type'			=> 'select',
							'options'		=> [
								''			=> '当前窗口打开',
								'_blank'	=> '新窗口打开'
							],
							'show_if'		=> ['key'=>'banner_url', 'compare'=>'!=', 'value'=>'']
						],

					]
				],
				'team_banner_h'		=> [
					'title'			=> '图片高度',
					'type'			=> 'fields',
					'fields'		=> [
						'team_banner_pc_h'	=> [
							'type'			=> 'number',
							'class'			=> 'small-text',
							'before'		=> 'PC端:',
							'after'			=> 'px &nbsp;&nbsp;&nbsp;&nbsp;'
						], 
						'team_banner_mb_h'	=> [
							'type'			=> 'number',
							'class'			=> 'small-text',
							'before'		=> '手机端:',
							'after'			=> 'px'
						],
					],
					'description'	=> '留空则不限制,显示图片原始比例'
				],
			]
		],

		'team-single'		=> [
			'title'			=> '详情页面',
			'fields'		=> [

				'more_team'			=> [
					'title'			=> '更多团队成员',
					'type'			=> 'checkbox',
					'class'			=> 'switch',
					'description'	=> '开启后,团队成员详情页面底部会显示全部团队成员列表'
				],
				'more_team_title'	=> [
					'title'			=> '标题',
					'type'			=> 'text',
					'style'			=> 'width:500px',
					'show_if'		=> ['key'=>'more_team','value'=>true]
				],

			]
		],

	];

	$field_validate	= function($value){
		flush_rewrite_rules();

		return $value;
	};

	return compact('sections', 'field_validate');
});