组合输入框
效果图

范例:
- $ashu_meta[] = array(
- 'name' => 'Input And Upload',
- 'id' => 'input_upload',
- 'desc' => 'Set the type as group, And set the subtype as array, The fields as a group.',
- 'std' => '',
- 'subtype' => array(
- array(
- 'name' => 'Title',
- 'id' => 'title',
- 'desc' => 'Title for image.',
- 'std' => '',
- 'type' => 'text'
- ),
- array(
- 'name' => 'Link',
- 'id' => 'link',
- 'desc' => 'Link for image',
- 'std' => '',
- 'type' => 'text'
- ),
- array(
- 'name' => 'Image',
- 'id' => 'image',
- 'desc' => 'Pleas upload a image, Or fill the blank with image uri.',
- 'std' => '',
- 'button_text' => 'Upload',
- 'type' => 'upload'
- ),
- ),
- 'type' => 'group'
- );
详解:
type - 值设置为group
subtype - 值为数组,数组中的各项为普通的配置项,数量不限。
其它:
'type' => 'group'和'multiple' => true可同时配置,效果如图:
