array( 'id' => 'post-default-sidebar', 'value' => 'layout--default-sidebar', 'label' => __( 'Default Sidebar', 'sophia-after-dark' ), 'thumbnail' => get_template_directory_uri() . '/assets/images/default-sidebar.png' ), 'left-sidebar' => array( 'id' => 'post-left-sidebar', 'value' => 'left-sidebar', 'label' => __( 'Left sidebar', 'sophia-after-dark' ), 'thumbnail' => get_template_directory_uri() . '/assets/images/left-sidebar.png' ), 'right-sidebar' => array( 'id' => 'post-right-sidebar', 'value' => 'right-sidebar', 'label' => __( 'Right sidebar', 'sophia-after-dark' ), 'thumbnail' => get_template_directory_uri() . '/assets/images/right-sidebar.png' ), 'no-sidebar' => array( 'id' => 'post-no-sidebar', 'value' => 'no-sidebar', 'label' => __( 'No sidebar Full width', 'sophia-after-dark' ), 'thumbnail' => get_template_directory_uri() . '/assets/images/no-sidebar.png' ), 'no-sidebar-center' => array( 'id' => 'post-no-sidebar-center', 'value' => 'no-sidebar-center', 'label' => __( 'No sidebar Content Centered', 'sophia-after-dark' ), 'thumbnail' => get_template_directory_uri() . '/assets/images/no-sidebar-center.png' ) ); // Check for previously set. $post_sidebar_layout = get_post_meta( $post->ID, 'sophia_after_dark_post_sidebar_layout', true ); // If it is then we use it otherwise set to default. $post_sidebar_layout = ( $post_sidebar_layout ) ? $post_sidebar_layout : 'layout--default-sidebar'; // Create our nonce field. wp_nonce_field( 'sophia_after_dark_nonce_' . basename( __FILE__ ) , 'sophia_after_dark_sidebar_layout_nonce' ); ?>
/>