/home/desid573/verdenaturopathy.com.au/site3/wp-content/themes/clearwork/functions
Edit: /home/desid573/verdenaturopathy.com.au/site3/wp-content/themes/clearwork/functions/meta-boxes.php (2643B)
'page-options',
'title' => esc_html__( 'Page Options', 'clearwork' ),
'post_types' => array( 'page' ),
'context' => 'advanced',
'priority' => 'high',
'autosave' => false,
'fields' => array(
array(
'id' => $prefix . 'sidebar_primary',
'name' => esc_html__( 'Primary Sidebar', 'clearwork' ),
'type' => 'select',
'placeholder' => esc_html__( 'Select a sidebar', 'clearwork' ),
'options' => $sidebars_choices,
),
array(
'id' => $prefix . 'layout',
'type' => 'image_select',
'name' => esc_html__( 'Layout', 'clearwork' ),
'std' => 'inherit',
'force_delete' => false,
'max_file_uploads' => '4',
'options' => array(
'inherit' => get_template_directory_uri() . '/functions/images/layout-off.png',
'col-2cl' => get_template_directory_uri() . '/functions/images/col-2cl.png',
'col-2cr' => get_template_directory_uri() . '/functions/images/col-2cr.png',
),
),
),
);
/* Post options
/* ------------------------------------ */
$meta_boxes[] = array(
'id' => 'post-options',
'title' => esc_html__( 'Post Options', 'clearwork' ),
'post_types' => array( 'post' ),
'context' => 'advanced',
'priority' => 'high',
'autosave' => false,
'fields' => array(
array(
'id' => $prefix . 'sidebar_primary',
'name' => esc_html__( 'Primary Sidebar', 'clearwork' ),
'type' => 'select',
'placeholder' => esc_html__( 'Select a sidebar', 'clearwork' ),
'options' => $sidebars_choices,
),
array(
'id' => $prefix . 'layout',
'type' => 'image_select',
'name' => esc_html__( 'Layout', 'clearwork' ),
'std' => 'inherit',
'force_delete' => false,
'max_file_uploads' => '4',
'options' => array(
'inherit' => get_template_directory_uri() . '/functions/images/layout-off.png',
'col-2cl' => get_template_directory_uri() . '/functions/images/col-2cl.png',
'col-2cr' => get_template_directory_uri() . '/functions/images/col-2cr.png',
),
),
),
);
return $meta_boxes;
}
add_filter( 'rwmb_meta_boxes', 'clearwork_get_meta_box' );