array( 'id' => 'default-sidebar', 'value' => 'default_sidebar', 'label' => __( 'Default Layout', 'editorial' ), ), 'right-sidebar' => array( 'id' => 'rigth-sidebar', 'value' => 'right_sidebar', 'label' => __( 'Right Sidebar', 'editorial' ), ), 'left-sidebar' => array( 'id' => 'left-sidebar', 'value' => 'left_sidebar', 'label' => __( 'Left Sidebar', 'editorial' ), ), 'no-sidebar-full-width' => array( 'id' => 'no-sidebar', 'value' => 'no_sidebar', 'label' => __( 'No Sidebar Full Width', 'editorial' ), ), 'no-sidebar-content-centered' => array( 'id' => 'no-sidebar-center', 'value' => 'no_sidebar_center', 'label' => __( 'No Sidebar Content Centered', 'editorial' ), ), ); // Check for previously set. $location = get_post_meta( $post->ID, 'editorial_sidebar_location', true ); // If it is then we use it otherwise set to default. $location = ( $location ) ? $location : 'default_sidebar'; // Create our nonce field. wp_nonce_field( 'editorial_nonce_' . basename( __FILE__ ) , 'editorial_sidebar_location_nonce' ); foreach ( $editorial_page_sidebar_option as $field ) { ?>
/>