HEX
Server: nginx/1.18.0
System: Linux iZuf6ar3jbed2aosvzu1ofZ 4.18.0-240.22.1.el8_3.x86_64 #1 SMP Thu Apr 8 19:01:30 UTC 2021 x86_64
User: root (0)
PHP: 7.3.28
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/wood-lk.cn/wp-content/themes/mlk/options.php
<?php
/**
 * A unique identifier is defined to store the options in the database and reference them from the theme.
 */
function optionsframework_option_name() {
	// Change this to use your theme slug
	return 'options-framework-theme';
}

/**
 * Defines an array of options that will be used to generate the settings page and be saved in the database.
 * When creating the 'id' fields, make sure to use all lowercase and no spaces.
 *
 * If you are making your theme translatable, you should replace 'theme-textdomain'
 * with the actual text domain for your theme.  Read more:
 * http://codex.wordpress.org/Function_Reference/load_theme_textdomain
 */

function optionsframework_options() {
	// 将所有分类(categories)加入数组
    $options_categories = array();
    $options_categories_obj = get_categories();
    foreach ($options_categories_obj as $category) {
        $options_categories[$category->cat_ID] = $category->cat_name;
    }
    $options = array();
    $options[] = array(
        'name' => __('全站设置', 'GJ') ,
        'type' => 'heading'
    );
	$options[] = array(
	    'name' => __('公司名称', 'GJ') ,
	    'id' => 'company_name',
	    'type' => 'text'
	);
    $options[] = array(
        'name' => __('LOGO设置', 'GJ') ,
        'id' => 'pc_logo',
        'type' => 'upload'
    );
    $options[] = array(
        'name' => __('400号码', 'GJ') ,
        'id' => '400_tel',
        'type' => 'text'
	);
	$options[] = array(
	    'name' => __('座机号码', 'GJ') ,
	    'id' => 'zuoji_tel',
	    'type' => 'text'
	);
    $options[] = array(
        'name' => __('手机号码', 'GJ') ,
        'id' => 'shouji_tel',
        'type' => 'text'
    );       
    $options[] = array(
        'name' => __('邮箱', 'GJ') ,
        'id' => 'email',
        'type' => 'text'
    ); 
    $options[] = array(
        'name' => __('公司地址', 'GJ') ,
        'id' => 'address',
        'type' => 'text'
    );
	$options[] = array(
	    'name' => __('咨询沟通链接', 'GJ') ,
	    'id' => 'bdzx_link',
	    'type' => 'text'
	);
    $options[] = array(
        'name' => __('ICP备案号', 'GJ') ,
        'id' => 'icp_number',
        'type' => 'text'
    );
     $options[] = array(
        'name' => __('微信二维码', 'GJ') ,
        'id' => 'weixin_erweima',
        'type' => 'upload'
	);
	/*******分隔*******/
    $options[] = array(
        'name' => __('首页轮播图/广告图', 'GJ') ,
        'type' => 'heading'
    );
	$options[] = array(
	    'name' => __('以下图片宽度应为1920px', 'GJ') ,
	);
    for ($i = 1; $i <= 6; $i++) {
        $options[] = array(
            'name' => __('轮播图' . $i, 'GJ') ,
            'id' => 'banner_src' . $i,
            'std' => '',
            'type' => 'upload'
        );
        $options[] = array(
            'name' => __('手机端轮播图' . $i, 'GJ') ,
            'id' => 'banner_m_src' . $i,
            'std' => '',
            'type' => 'upload'
        );
		
    }
    
	
   /*******分隔*******/
    // $options[] = array(
    //     'name' => __('内页横幅(Banner)', 'GJ') ,
    //     'type' => 'heading'
    // );
    // $options[] = array(
    //     'name' => __('以下图片宽度应为1920px', 'GJ') ,
    // );
	// $options[] = array(
	//     'id' => 'banner_news',
	//     'desc' => __('新闻资讯', 'GJ') ,
	//     'type' => 'upload'
	// );
	// $options[] = array(
	//     'id' => 'bannerm_news',
	//     'desc' => __('手机端新闻资讯', 'GJ') ,
	//     'type' => 'upload'
	// );
	// $options[] = array(
	//     'id' => 'banner_about',
	//     'desc' => __('关于我们', 'GJ') ,
	//     'type' => 'upload'
	// );
    // $options[] = array(
	//     'id' => 'bannerm_about',
	//     'desc' => __('手机端关于我们', 'GJ') ,
	//     'type' => 'upload'
	// );
    // $options[] = array(
	//     'id' => 'banner_contact',
	//     'desc' => __('联系我们', 'GJ') ,
	//     'type' => 'upload'
	// );
    // $options[] = array(
	//     'id' => 'bannerm_contact',
	//     'desc' => __('手机端联系我们', 'GJ') ,
	//     'type' => 'upload'
	// );
     /*******分隔*******/
	 $options[] = array(
        'name' => __('统计代码', 'GJ') ,
        'type' => 'heading'
    );
    $options[] = array(
        'name' => __('网站统计代码', 'Solome') ,
        'desc' => __('位于底部,用于添加第三方流量数据统计代码,如:Google analytics、百度统计、CNZZ、51la,国内站点推荐使用百度统计,国外站点推荐使用Google analytics', 'Solome') ,
        'id' => 'trackcode',
        'std' => '',
        'type' => 'textarea'
    );
	/*******分隔*******/
	 $options[] = array(
	    'name' => __('客服系统代码', 'GJ') ,
	    'type' => 'heading'
	);
	$options[] = array(
	    'name' => __('百度商桥代码', 'Solome') ,
	    'desc' => __('百度商桥代码直接粘贴在左方区域', 'Solome') ,
	    'id' => 'shangqiaocode',
	    'std' => '',
	    'type' => 'textarea'
	);
	$options[] = array(
	    'name' => __('其它客服系统代码', 'Solome') ,
	    'desc' => __('如:商务通,53客服等', 'Solome') ,
	    'id' => 'qitacode',
	    'std' => '',
	    'type' => 'textarea'
	);
	return $options;
}