Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $meta_boxes[] = array(
- 'id' => "{$prefix}manufacturing_facilities_optionss",
- 'title' => __( 'Manufacturing Facilities Options', 'goalkick' ),
- 'post_types' => array( 'page' ),
- 'context' => 'normal',
- 'priority' => 'high',
- 'autosave' => true,
- 'fields' => array(
- array(
- 'name' => __( 'Title','goalkick'),
- 'id' => "{$prefix}facility_title_name",
- 'type' => 'text',
- ),
- array(
- 'id' => "{$prefix}facility_options",
- 'type' => 'group',
- 'clone' => true,
- 'fields' => array(
- // Normal field (cloned)
- array(
- 'name' => __( 'Facility Name','goalkick'),
- 'id' => "{$prefix}facility_name",
- 'type' => 'text',
- ),
- array(
- 'name' => __( 'Description', 'goalkick' ),
- 'id' => "{$prefix}manufacturing_facilities_description",
- 'type' => 'wysiwyg',
- ),
- array(
- 'id' => "{$prefix}facilities_images",
- 'name' => 'Upload Facilities Images',
- 'type' => 'image_advanced',
- 'force_delete' => false,
- 'max_file_uploads' => 1,
- 'max_status' => 'false',
- 'image_size' => 'thumbnail',
- ),
- array(
- 'name' => 'Video',
- 'id' => "{$prefix}facilities_videos",
- 'type' => 'video',
- 'max_file_uploads' => 3,
- 'force_delete' => false,
- 'max_status' => true,
- ),
- array(
- 'name' => 'Sub group',
- 'id' => "{$prefix}facility_media",
- 'type' => 'group',
- 'clone' => true,
- 'fields' => array(
- // Normal field (cloned)
- array(
- 'name' => __( 'Facility Name','goalkick'),
- 'id' => "{$prefix}facility_image_caption",
- 'type' => 'text',
- ),
- ),
- ),
- // Nested group level 2
- array(
- 'name' => 'Sub group',
- 'id' => "{$prefix}facility_video_type",
- 'type' => 'group',
- 'clone' => true,
- 'fields' => array(
- // Normal field (cloned)
- array(
- 'name' => __( 'Video Type', 'skeleton' ),
- 'id' => "{$prefix}facility_video_type",
- 'type' => 'select',
- 'options' => array(
- 'embed' => __( 'Embed', 'skeleton' ),
- 'selfhosted' => __( 'Self Hosted', 'skeleton' ),
- ),
- 'multiple' => false,
- 'std' => '',
- 'placeholder' => __( 'Select Video Type', 'skeleton' ),
- ),
- array(
- 'name' => __( 'Video Embed URL', 'skeleton' ) .' <a href="http://codex.wordpress.org/Embeds" target="_blank">'. __( '(Learn More)', 'skeleton' ) .'</a>',
- 'id' => "{$prefix}facility_video_embed_url",
- 'type' => 'oembed',
- ),
- array(
- 'name' => __( 'Self Hosted Video', 'skeleton' ),
- 'id' => "{$prefix}facility_self_hosted_video",
- 'type' => 'file_input',
- ),
- ),
- ),
- ),
- ),
- ),
- );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement