esc_html__( 'Simple Layout', 'silvermountain' ), 'layout-2' => esc_html__( 'Banner Layout', 'silvermountain' ), ); $silvermountain_post_sidebar_fields = array( 'global-sidebar' => array( 'id' => 'post-global-sidebar', 'value' => 'global-sidebar', 'label' => esc_html__( 'Global sidebar', 'silvermountain' ), ), 'right-sidebar' => array( 'id' => 'post-left-sidebar', 'value' => 'right-sidebar', 'label' => esc_html__( 'Right sidebar', 'silvermountain' ), ), 'left-sidebar' => array( 'id' => 'post-right-sidebar', 'value' => 'left-sidebar', 'label' => esc_html__( 'Left sidebar', 'silvermountain' ), ), 'no-sidebar' => array( 'id' => 'post-no-sidebar', 'value' => 'no-sidebar', 'label' => esc_html__( 'No sidebar', 'silvermountain' ), ), ); $silvermountain_post_layout_options = array( 'global-layout' => esc_html__( 'Global Layout', 'silvermountain' ), 'layout-1' => esc_html__( 'Simple Layout', 'silvermountain' ), 'layout-2' => esc_html__( 'Banner Layout', 'silvermountain' ), ); $silvermountain_header_overlay_options = array( 'global-layout' => esc_html__( 'Global Layout', 'silvermountain' ), 'enable-overlay' => esc_html__( 'Enable Header Overlay', 'silvermountain' ), ); /** * Callback function for post option. */ if( ! function_exists( 'silvermountain_post_metafield_callback' ) ): function silvermountain_post_metafield_callback() { global $post, $silvermountain_post_sidebar_fields, $silvermountain_post_layout_options, $silvermountain_page_layout_options, $silvermountain_header_overlay_options; $post_type = get_post_type($post->ID); wp_nonce_field( basename( __FILE__ ), 'silvermountain_post_meta_nonce' ); ?>