Advertisement
Guest User

Untitled

a guest
Mar 12th, 2018
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.06 KB | None | 0 0
  1. $meta_boxes[] = array(
  2. 'id' => "{$prefix}manufacturing_facilities_optionss",
  3. 'title' => __( 'Manufacturing Facilities Options', 'goalkick' ),
  4. 'post_types' => array( 'page' ),
  5. 'context' => 'normal',
  6. 'priority' => 'high',
  7. 'autosave' => true,
  8. 'fields' => array(
  9. array(
  10. 'name' => __( 'Title','goalkick'),
  11. 'id' => "{$prefix}facility_title_name",
  12. 'type' => 'text',
  13. ),
  14. array(
  15. 'id' => "{$prefix}facility_options",
  16. 'type' => 'group',
  17. 'clone' => true,
  18. 'fields' => array(
  19. // Normal field (cloned)
  20. array(
  21. 'name' => __( 'Facility Name','goalkick'),
  22. 'id' => "{$prefix}facility_name",
  23. 'type' => 'text',
  24. ),
  25. array(
  26. 'name' => __( 'Description', 'goalkick' ),
  27. 'id' => "{$prefix}manufacturing_facilities_description",
  28. 'type' => 'wysiwyg',
  29. ),
  30. array(
  31. 'id' => "{$prefix}facilities_images",
  32. 'name' => 'Upload Facilities Images',
  33. 'type' => 'image_advanced',
  34. 'force_delete' => false,
  35. 'max_file_uploads' => 1,
  36. 'max_status' => 'false',
  37. 'image_size' => 'thumbnail',
  38. ),
  39. array(
  40. 'name' => 'Video',
  41. 'id' => "{$prefix}facilities_videos",
  42. 'type' => 'video',
  43. 'max_file_uploads' => 3,
  44. 'force_delete' => false,
  45. 'max_status' => true,
  46. ),
  47.  
  48. array(
  49. 'name' => 'Sub group',
  50. 'id' => "{$prefix}facility_media",
  51. 'type' => 'group',
  52. 'clone' => true,
  53. 'fields' => array(
  54. // Normal field (cloned)
  55. array(
  56. 'name' => __( 'Facility Name','goalkick'),
  57. 'id' => "{$prefix}facility_image_caption",
  58. 'type' => 'text',
  59. ),
  60.  
  61. ),
  62. ),
  63. // Nested group level 2
  64. array(
  65. 'name' => 'Sub group',
  66. 'id' => "{$prefix}facility_video_type",
  67. 'type' => 'group',
  68. 'clone' => true,
  69. 'fields' => array(
  70. // Normal field (cloned)
  71.  
  72. array(
  73. 'name' => __( 'Video Type', 'skeleton' ),
  74. 'id' => "{$prefix}facility_video_type",
  75. 'type' => 'select',
  76. 'options' => array(
  77. 'embed' => __( 'Embed', 'skeleton' ),
  78. 'selfhosted' => __( 'Self Hosted', 'skeleton' ),
  79. ),
  80. 'multiple' => false,
  81. 'std' => '',
  82. 'placeholder' => __( 'Select Video Type', 'skeleton' ),
  83. ),
  84.  
  85. array(
  86. 'name' => __( 'Video Embed URL', 'skeleton' ) .' <a href="http://codex.wordpress.org/Embeds" target="_blank">'. __( '(Learn More)', 'skeleton' ) .'</a>',
  87. 'id' => "{$prefix}facility_video_embed_url",
  88. 'type' => 'oembed',
  89. ),
  90.  
  91. array(
  92. 'name' => __( 'Self Hosted Video', 'skeleton' ),
  93. 'id' => "{$prefix}facility_self_hosted_video",
  94. 'type' => 'file_input',
  95. ),
  96. ),
  97. ),
  98. ),
  99. ),
  100. ),
  101. );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement