'post' ] ); add_meta_box( 'page_layouts', esc_html__( 'Layouts', 'blogzee' ), 'blogzee_post_layouts_html', 'page', 'advanced', 'default', [ 'type' => 'page' ] ); } add_action( 'add_meta_boxes', 'blogzee_add_custom_metabox' ); endif; if( ! function_exists( 'blogzee_post_layouts_html' ) ) : /** * call back form posts layouts metabox * * @since 1.0.0 */ function blogzee_post_layouts_html( $post, $metabox ) { $sidebar_layout_args = [ 'customizer-setting' => BLOGZEE_IMAGE_URL . 'customizer_settings.png', 'right-sidebar' => BLOGZEE_IMAGE_URL . 'right-sidebar.png', 'left-sidebar' => BLOGZEE_IMAGE_URL . 'left-sidebar.png', 'no-sidebar' => BLOGZEE_IMAGE_URL . 'no-sidebar.png' ]; $post_sidebar_layout = metadata_exists( 'post', $post->ID, 'post_sidebar_layout' ) ? get_post_meta( $post->ID, 'post_sidebar_layout', true ) : 'customizer-setting'; $page_sidebar_layout = metadata_exists( 'post', $post->ID, 'page_sidebar_layout' ) ? get_post_meta( $post->ID, 'page_sidebar_layout', true ) : 'customizer-setting'; ?> $layout_value ) : $checked = ( $meta_value == $layout_key ) ? 'checked' : ''; $isactive = ( $meta_value == $layout_key ) ? ' isactive' : ''; ?>

>

term_id, "_blogzee_{$term->taxonomy}_sidebar_custom_meta_field" ) ? get_term_meta( $term->term_id, "_blogzee_{$term->taxonomy}_sidebar_custom_meta_field", true ) : 'customizer-setting'; $archive_meta = metadata_exists( 'term', $term->term_id, "_blogzee_{$term->taxonomy}_archive_custom_meta_field" ) ? get_term_meta( $term->term_id, "_blogzee_{$term->taxonomy}_archive_custom_meta_field", true ) : 'customizer-layout'; $sidebar_layout_args = [ 'customizer-setting' => BLOGZEE_IMAGE_URL . 'customizer_settings.png', 'right-sidebar' => BLOGZEE_IMAGE_URL . 'right-sidebar.png', 'left-sidebar' => BLOGZEE_IMAGE_URL . 'left-sidebar.png', 'no-sidebar' => BLOGZEE_IMAGE_URL . 'no-sidebar.png' ]; $archive_layout_args = [ 'customizer-layout' => BLOGZEE_IMAGE_URL . 'customizer_settings.png', 'list-two' => BLOGZEE_IMAGE_URL . 'archive-list-two.png', 'grid-two' => BLOGZEE_IMAGE_URL . 'archive-grid-two.png' ]; ?>
taxonomy}_sidebar_custom_meta_field", $sidebar_meta ); ?>
taxonomy}_archive_custom_meta_field", $archive_meta ); ?>
BLOGZEE_IMAGE_URL . 'customizer_settings.png', 'right-sidebar' => BLOGZEE_IMAGE_URL . 'right-sidebar.png', 'left-sidebar' => BLOGZEE_IMAGE_URL . 'left-sidebar.png', 'no-sidebar' => BLOGZEE_IMAGE_URL . 'no-sidebar.png' ]; $archive_layout_args = [ 'customizer-layout' => BLOGZEE_IMAGE_URL . 'customizer_settings.png', 'list-two' => BLOGZEE_IMAGE_URL . 'archive-list-two.png', 'grid-two' => BLOGZEE_IMAGE_URL . 'archive-grid-two.png' ]; ?>

$sidebar_value ) : ?>

" id="" value="" >

$archive_value ) : ?>

" id="" value="" >