/
www
/
wwwroot
/
fxdst.com
/
wp-content
/
themes
/
fxdst
/
inc
/
frame
/
config
/
Upload File
HOME
<?php /* * @Theme Name:WebStack * @Theme URI:https://www.iotheme.cn/ * @Author: iowen * @Author URI: https://www.iowen.cn/ * @Date: 2021-08-22 19:00:30 * @LastEditors: iowen * @LastEditTime: 2024-07-30 18:14:07 * @FilePath: /WebStack/inc/frame/config/metabox.config.php * @Description: */ if ( ! defined( 'ABSPATH' ) ) { die; } // Cannot access pages directly. $options[] = array( 'id' => 'sites_meta', 'title' => '网址链接属性', 'post_type' => 'sites', 'data_type' => 'unserialize', 'context' => 'normal', 'priority' => 'high', 'sections' => array( array( 'name' => 'section_4', 'fields' => array( array( 'id' => '_visible', 'type' => 'radio', 'title' => '可查看用户', 'class' => 'horizontal', 'options' => array( '1' => '仅管理员可见', '2' => '登陆可见', '0' => '所有人', ), 'default' => '0', ), array( "id" => "_sites_link", "type"=>"text", "title" => "输入网址链接,", 'after' =>'需包含 http(s)://<br><span style="font-weight: normal;color: crimson;margin-top: 10px;display: block;">注意:“网址”和“公众号二维码”两者可同时填写,但是至少填一项。</span>', ), array( "id" => "_sites_sescribe", "type"=>"text", "title" => "描叙", ), array( "id" => "_sites_order", "std" => "0", "title" => "网址排序数值越大越靠前", "type"=>"text" ), array( "id" => "_thumbnail", "type"=>"image", "title" => "添加图标地址,调用自定义图标", 'add_title' => '添加图标', ), array( "id" => "_wechat_qr", "type"=>"image", "title" => "添加公众号二维码", 'add_title' => '添加二维码', ), ), ), ), ); CSFramework_Metabox::instance( $options );