'standard', // Meta box title - Will appear at the drag and drop handle bar. Required. 'title' => __( 'Page Layout Setting', 'basee' ), // Post types, accept custom post types as well - DEFAULT is 'post'. Can be array (multiple post types) or string (1 post type). Optional. 'post_types' => array( 'page' ), // Where the meta box appear: normal (default), advanced, side. Optional. 'context' => 'normal', // Order of meta box: high (default), low. Optional. 'priority' => 'low', // Auto save: true, false (default). Optional. 'autosave' => true, // List of meta fields 'fields' => array( // CHECKBOX array( 'name' => __( 'Enable Fullwidth Layout', 'basee' ), 'id' => "{$prefix}enable_fullwidth_layout", 'type' => 'checkbox', // Value can be 0 or 1 'std' => 0, ), // HEADER SELECT BOX array( 'name' => __( 'Header Layout', 'basee' ), 'id' => "{$prefix}header_layout", 'type' => 'select', // Array of 'value' => 'Label' pairs for select box 'options' => basetheme_fnc_get_header_layouts(), // Select multiple values, optional. Default is false. 'multiple' => false, 'std' => '', 'placeholder' => __( 'Global', 'basee' ), ), array( 'name' => __( 'Footer Layout', 'basee' ), 'id' => "{$prefix}footer_profile", 'type' => 'select', // Array of 'value' => 'Label' pairs for select box 'options' => basetheme_fnc_get_footer_profiles(), // Select multiple values, optional. Default is false. 'multiple' => false, 'std' => '', 'placeholder' => __( 'Global', 'basee' ), ), // CHECKBOX array( 'name' => __( 'Disable Breadscrumb', 'basee' ), 'id' => "{$prefix}disable_breadscrumb", 'type' => 'checkbox', // Value can be 0 or 1 'std' => 1, ), // COLOR array( 'name' => __( 'Breadcrumbs Background', 'basee' ), 'id' => "{$prefix}color_breadscrumb", 'type' => 'color', 'description' => __('Custom Background for breadscrumb','basee') ), // THICKBOX IMAGE UPLOAD (WP 3.3+) // FILE ADVANCED (WP 3.5+) array( 'name' => __( 'Breadscrumb Background', 'basee' ), 'id' => "{$prefix}file_advanced", 'type' => 'file_advanced', 'max_file_uploads' => 1, 'mime_type' => 'image', // Leave blank for all file types ), ), 'validation' => array( ) ); return $meta_boxes; }