Raw源

The Raw field provides the ability to output raw HTML directly into the options panel both full width and sectioned.

原始字段提供了将原始HTML直接输出到选项面板的能力。

Full Width全宽度

分段(' full_width”= >假)

Arguments参数

NameTypeDefaultDescription
typestring‘raw’Value identifying the field type.字符串类型的字段类型。
idstring Unique ID identifying the field. Must be different from all other field IDs.
标识字段的id字符串唯一ID。必须与所有其他字段ID不同。
titlestring Displays title of the option.
subtitlestring Subtitle display of the option, situated beneath the title.
标题下字幕选项的字幕字符串显示。
descstring Description of the option, appearing beneath the field control.
classstring Appends any number of classes to the field’s class attribute.
添加任意数量的类的字段的类属性。
requiredarray Provide the parent, comparison operator, and value which affects the field’s visibility.  More info
提供影响字段可见性的父、比较运算符和值。更多信息
full_widthtrue Flag to set denote if the field is full width or sectioned.
markdownbool Flag to set the markdown of standard line-break and tab characters to HTML.
设置标准换行字符为HTML和标签的降价旗帜。
contentstring HTML content to display.  String values or file output may be used.可以使用字符串值或文件输出。
content_pathstring Full path to file that will be used as the content for this field.
将作为该字段内容使用的文件的完整路径。
hintarray Array containing the content and optional title arguments for the hint tooltip.  More info
包含提示工具提示的内容和可选标题参数的数组。更多信息

Example Declaration 示例 宣言

1
2
3
4
5
6
7
8
$fields = array (
     'id'       => 'opt-raw' ,
     'type'     => 'raw' ,
     'title'    => __( 'Raw output' , 'redux-framework-demo' ),
     'subtitle' => __( 'Subtitle text goes here.' , 'redux-framework-demo' ),
     'desc'     => __( 'This is the description field for additional info.' , 'redux-framework-demo' ),
     'content'  => file_get_contents (dirname( __FILE__ ) . '/myfile.txt' )
);

Related Articles


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值