esc_html__( 'Simple Layout', 'allinone' ), 'layout-2' => esc_html__( 'Banner Layout', 'allinone' ), ); $allinone_post_sidebar_fields = array( 'global-sidebar' => array( 'id' => 'post-global-sidebar', 'value' => 'global-sidebar', 'label' => esc_html__( 'Global sidebar', 'allinone' ), ), 'right-sidebar' => array( 'id' => 'post-left-sidebar', 'value' => 'right-sidebar', 'label' => esc_html__( 'Right sidebar', 'allinone' ), ), 'left-sidebar' => array( 'id' => 'post-right-sidebar', 'value' => 'left-sidebar', 'label' => esc_html__( 'Left sidebar', 'allinone' ), ), 'no-sidebar' => array( 'id' => 'post-no-sidebar', 'value' => 'no-sidebar', 'label' => esc_html__( 'No sidebar', 'allinone' ), ), ); $allinone_post_layout_options = array( 'global-layout' => esc_html__( 'Global Layout', 'allinone' ), 'layout-1' => esc_html__( 'Simple Layout', 'allinone' ), 'layout-2' => esc_html__( 'Banner Layout', 'allinone' ), ); $allinone_header_overlay_options = array( 'global-layout' => esc_html__( 'Global Layout', 'allinone' ), 'enable-overlay' => esc_html__( 'Enable Header Overlay', 'allinone' ), ); /** * Callback function for post option. */ if( ! function_exists( 'allinone_post_metafield_callback' ) ): function allinone_post_metafield_callback() { global $post, $allinone_post_sidebar_fields, $allinone_post_layout_options, $allinone_page_layout_options, $allinone_header_overlay_options; $post_type = get_post_type($post->ID); wp_nonce_field( basename( __FILE__ ), 'allinone_post_meta_nonce' ); ?>