array(
'id' => 'bikaro_page_layout',
'value' => 'default_layout',
'label' => __('Default Layout', 'bikaro')
),
'right_sidebar' => array(
'id' => 'bikaro_page_layout',
'value' => 'right_sidebar',
'label' => __('Right Sidebar', 'bikaro')
),
'left_sidebar' => array(
'id' => 'bikaro_page_layout',
'value' => 'left_sidebar',
'label' => __('Left Sidebar', 'bikaro')
),
'both_sidebar' => array(
'id' => 'bikaro_page_layout',
'value' => 'both_sidebar',
'label' => __('Both Sidebar', 'bikaro')
),
'no_sidebar_full_width' => array(
'id' => 'bikaro_page_layout',
'value' => 'no_sidebar_full_width',
'label' => __('No Sidebar Full Width', 'bikaro')
),
'no_sidebar_content_centered' => array(
'id' => 'bikaro_page_layout',
'value' => 'no_sidebar_content_centered',
'label' => __('No Sidebar Content Centered', 'bikaro')
)
);
/****************************************************************************************/
/**
* Displays metabox to for select layout option
*/
function bikaro_page_layout() {
global $page_layout, $post, $bikaro_metabox_field_icons;
// Use nonce for verification
wp_nonce_field(basename(__FILE__), 'custom_meta_box_nonce');
foreach ($page_layout as $field) {
$layout_meta = get_post_meta($post->ID, $field['id'], true);
if (empty($layout_meta)) {
$layout_meta = 'default_layout';
}
?>
/>