$meta_boxes[] = array(
// Meta box id, UNIQUE per meta box. Optional since 4.1.5
'id' => 'heading',
// Meta box title - Will appear at the drag and drop handle bar. Required.
'title' => __( 'Page Heading Options', 'i-craft' ),
// Post types, accept custom post types as well - DEFAULT is array('post'). Optional.
'pages' => array( 'post', 'page' ),
// Where the meta box appear: normal (default), advanced, side. Optional.
'context' => 'normal',
// Order of meta box: high (default), low. Optional.
'priority' => 'high',
// Auto save: true, false (default). Optional.
'autosave' => true,
// List of meta fields
'fields' => array(
// Hide Title
array(
'name' => __( 'Hide Title', 'i-craft' ),
'id' => "{$prefix}hidetitle",
'type' => 'checkbox',
// Value can be 0 or 1
'std' => 0,
'class' => 'hide-ttl',
),
array(
'name' => __( 'Show Default i-craft Slider', 'i-craft' ),
'id' => "{$prefix}show_slider",
'type' => 'checkbox',
// Value can be 0 or 1
'std' => 0,
'class' => 'show-slider',
),
// Custom Title
array(
// Field name - Will be used as label
'name' => __( 'Custom title', 'i-craft' ),
// Field ID, i.e. the meta key
'id' => "{$prefix}customtitle",
// Field description (optional)
'desc' => __( 'Enter custom title for the page', 'i-craft' ),
'type' => 'text',
// Default value (optional)
'std' => __( '', 'i-craft' ),
// CLONES: Add to make the field cloneable (i.e. have multiple value)
//'clone' => true,
'class' => 'cust-ttl',
),
// hide breadcrum
array(
'name' => __( 'Hide breadcrumb', 'i-craft' ),
'id' => "{$prefix}hide_breadcrumb",
'type' => 'checkbox',
// Value can be 0 or 1
'std' => 0,
),
// Custom Title
array(
// Field name - Will be used as label
'name' => __( 'Other Slider Plugin Shortcode', 'i-craft' ),
// Field ID, i.e. the meta key
'id' => "{$prefix}other_slider",
// Field description (optional)
'desc' => __( 'Enter a 3rd party slider shortcode, ex. meta slider, smart slider 2, wow slider, etc.', 'i-craft' ),
'type' => 'text',
// Default value (optional)
'std' => __( '', 'i-craft' ),
// CLONES: Add to make the field cloneable (i.e. have multiple value)
//'clone' => true,
'class' => 'cust-ttl',
),
)
);