array( 'id' => 'codepress_corporate_page_layout', 'value' => 'right-content', 'label' => esc_html__( 'Left Sidebar', 'codepress-corporate' ), 'thumbnail' => get_template_directory_uri() . '/images/left-sidebar.png' ), 'right-sidebar' => array( 'id' => 'codepress_corporate_page_layout', 'value' => 'left-content', 'label' => codepress_corporate_textarea_saniize( 'Right sidebar
(default)', array('br') ), 'thumbnail' => get_template_directory_uri() . '/images/right-sidebar.png' ), 'no-sidebar-content-centered' => array( 'id' => 'codepress_corporate_page_layout', 'value' => 'content-middle-area', 'label' => esc_html__( 'Both Sidebar', 'codepress-corporate' ), 'thumbnail' => get_template_directory_uri() . '/images/both-sidebar.png' ), 'no-sidebar-full-width' => array( 'id' => 'codepress_corporate_page_layout', 'value' => 'content-full-area', 'label' => esc_html__( 'Full Width', 'codepress-corporate' ), 'thumbnail' => get_template_directory_uri() . '/images/no-sidebar.png' ) ); /************************************************************************************************************************************/ /** * Displays metabox to for select layout option */ function codepress_corporate_page_layout() { global $codepress_corporate_page_layout, $post; // Use nonce for verification wp_nonce_field( basename( __FILE__ ), 'custom_meta_box_nonce' ); ?>
ID, $field['id'], true ); if( empty( $layout_meta ) ) { $layout_meta = 'left-content'; } ?>