array( 'url' => get_template_directory_uri() . '/assets/images/left-sidebar.webp', 'label' => esc_html__( 'Left Sidebar', 'blogarc' ), ), 'right_sidebar' => array( 'url' => get_template_directory_uri() . '/assets/images/right-sidebar.webp', 'label' => esc_html__( 'Right Sidebar', 'blogarc' ), ), 'no_sidebar' => array( 'url' => get_template_directory_uri() . '/assets/images/no-sidebar.webp', 'label' => esc_html__( 'No Sidebar - Wide', 'blogarc' ), ), ) ); return $options; } endif; if ( ! function_exists( 'blogarc_add_theme_meta_box' ) ) : /** * Add the Meta Box * * @since 1.0.0 */ function blogarc_add_theme_meta_box() { $post_types = array( 'post', 'page' ); foreach ( $post_types as $post_type ) { add_meta_box( 'wpmotif-metabox-panel', sprintf( /* translators: %s: Post Type. */ esc_html__( '%s Settings', 'blogarc' ), ucwords( $post_type ) ), 'blogarc_meta_box_html', $post_type, 'normal', 'high' ); } } endif; add_action( 'add_meta_boxes', 'blogarc_add_theme_meta_box' ); if ( ! function_exists( 'blogarc_meta_box_html' ) ) : /** * Render theme settings meta box. * * @param mixed $post Post Object. * @since 1.0.0 */ function blogarc_meta_box_html( $post ) { global $post_type; wp_nonce_field( basename( __FILE__ ), 'blogarc_meta_box_nonce' ); $page_layout = get_post_meta( $post->ID, 'blogarc_page_layout', true ); $layouts = blogarc_get_sidebar_layouts(); if (empty($single_post_featured_post)) { $single_post_featured_post = 0; } ?>