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.sceycy.com/wp-content/themes/Zing-Pro/admin/dahuzi-framework/config/shortcoder.php
<?php if ( ! defined( 'ABSPATH' )  ) { die; } // Cannot access directly.

//
// Set a unique slug-like ID
//
$prefix = 'csf_joy_shortcodes';

//
// Create a shortcoder
//
DAHUZI::createShortcoder( $prefix, array(
  'button_title'   => '添加短代码',
  'select_title'   => '选择短代码',
  'insert_title'   => '插入短代码',
  'show_in_editor' => true,
  'gutenberg'      => array(
    'title'        => '【主题自带】短代码',
    'description'  => '【主题自带】短代码',
    'icon'         => 'editor-code',
    'category'     => 'widgets',
    'keywords'     => array( 'shortcode', 'csf', 'insert' ),
    'placeholder'  => '主题自带短代码...',
  )
) );

//
// 百度地图
//
DAHUZI::createSection( $prefix, array(
	'title'     => '[baidu_map] 百度地图',
	//'view'      => 'group',
	'shortcode' => 'baidu_map',
	'fields'    => array(

		array(
          'id'		=> 'dtmishi',
          'type'	=> 'text',
          'title'	=> '应用AK',
          'attributes' => array(
            'style'    => 'width: 100%;'
          ),
          'after'	=> '<p class="cs-text-muted">百度地图没有密钥是不能调用的,获取地址:http://lbsyun.baidu.com/apiconsole/key</p>',
        ),
        array(
          'id'     => 'zuobiao',
          'type'   => 'text',
          'title' => '地址坐标',
          'attributes' => array(
            'style'    => 'width: 100%;'
          ),
          'after'  => '<p class="cs-text-muted">输入地址坐标,坐标获取地址:http://api.map.baidu.com/lbsapi/getpoint/index.html</p>',
        ),
        array(
          'id'     => 'dzmc',
          'type'   => 'text',
          'title' => '公司名称',
          'attributes' => array(
            'style'    => 'width: 100%;'
          ),
          'after'  => '<p class="cs-text-muted">输入公司名称</p>',
        ),
        array(
          'id'     => 'dtxxms',
          'type'   => 'textarea',
          'title' => '详细描述',
          'attributes' => array(
            'style'    => 'width: 100%;'
          ),
          'after'  => '<p class="cs-text-muted">输入公司详细描述</p>',
        ),

	),

) );