JezK
Edit File: meta-boxes.php
<?php /** * Meta box for theme * * @package Zoo Theme * @version 1.0.0 * @core 3.0.0 * @author Zootemplate * @link https://www.zootemplate.com/ * @copyright Copyright (c) 2020 ZooTemplate */ if ( class_exists( 'RWMB_Loader' ) ): add_filter( 'rwmb_meta_boxes', 'zoo_meta_box_options' ); if ( ! function_exists( 'zoo_meta_box_options' ) ) { function zoo_meta_box_options() { $zoo_prefix = "zoo_"; $zoo_meta_boxes = array(); $zoo_meta_boxes[] = array( 'id' => $zoo_prefix . 'single_post_heading', 'title' => esc_html__( 'Sidebar Config', 'cerato' ), 'pages' => array( 'post' ), 'context' => 'side', 'fields' => array( array( 'id' => $zoo_prefix . "blog_single_sidebar_config", 'type' => 'select', 'options' => array( 'inherit' => esc_html__( 'Inherit', 'cerato' ), 'left' => esc_html__( 'Left', 'cerato' ), 'right' => esc_html__( 'Right', 'cerato' ), '' => esc_html__( 'None', 'cerato' ), ), 'std' => 'inherit', 'desc' => esc_html__( 'Select sidebar layout you want set for this post.', 'cerato' ) ), ) ); //All page $zoo_meta_boxes[] = array( 'id' => $zoo_prefix . 'layout_single_heading', 'title' => esc_html__( 'Layout Single Product', 'cerato' ), 'pages' => array( 'product' ), 'context' => 'advanced', 'fields' => array( array( 'name' => esc_html__( 'Layout Options', 'cerato' ), 'id' => $zoo_prefix . "single_product_layout", 'type' => 'select', 'options' => array( 'inherit' => esc_html__( 'Inherit', 'cerato' ), 'vertical-thumb' => esc_html__( 'Product V1', 'cerato' ), 'horizontal-thumb' => esc_html__( 'Product V2', 'cerato' ), 'carousel' => esc_html__( 'Product V3', 'cerato' ), 'grid-thumb' => esc_html__( 'Product V4', 'cerato' ), 'sticky-1' => esc_html__( 'Product V5', 'cerato' ), 'sticky-2' => esc_html__( 'Product V6', 'cerato' ), 'sticky-3' => esc_html__( 'Product V7', 'cerato' ), ), 'std' => 'inherit', ), ) ); $zoo_meta_boxes[] = array( 'id' => $zoo_prefix . 'sold_day_heading', 'title' => esc_html__( 'Sold on this day', 'cerato' ), 'pages' => array( 'product' ), 'context' => 'advanced', 'fields' => array( array( 'name' => esc_html__( 'Minimum sold', 'cerato' ), 'id' => $zoo_prefix . "product_sold_fake_data", 'type' => 'number', ), array( 'name' => esc_html__( 'Maximum sold', 'cerato' ), 'id' => $zoo_prefix . "product_sold_fake_max_data", 'type' => 'number', ), ) ); $zoo_meta_boxes[] = array( 'id' => $zoo_prefix . 'single_product_image_360_heading', 'title' => esc_html__( 'Product image 360 view', 'cerato' ), 'pages' => array( 'product' ), 'context' => 'advanced', 'fields' => array( array( 'id' => $zoo_prefix . "single_product_image_360", 'name' => esc_html__( 'Images', 'cerato' ), 'type' => 'image_advanced', 'desc' => esc_html__( 'Images for 360 degree view.', 'cerato' ) ), ) ); $zoo_meta_boxes[] = array( 'id' => $zoo_prefix . 'single_product_video_heading', 'title' => esc_html__( 'Product Video', 'cerato' ), 'pages' => array( 'product' ), 'context' => 'side', 'fields' => array( array( 'id' => $zoo_prefix . "single_product_video", 'type' => 'oembed', 'desc' => esc_html__( 'Enter your embed video url.', 'cerato' ) ), ) ); $zoo_meta_boxes[] = array( 'id' => $zoo_prefix . 'single_product_new_heading', 'title' => esc_html__( 'Assign product is New', 'cerato' ), 'pages' => array( 'product' ), 'context' => 'side', 'fields' => array( array( 'id' => $zoo_prefix . "single_product_new", 'std' => '0', 'type' => 'checkbox', 'desc' => esc_html__( 'Is New Product.', 'cerato' ) ), ) ); $zoo_meta_boxes[] = array( 'id' => 'title_meta_box', 'title' => esc_html__( 'Layout Options', 'cerato' ), 'pages' => array( 'page', 'post' ), 'context' => 'advanced', 'fields' => array( array( 'name' => esc_html__( 'Title & Breadcrumbs Options', 'cerato' ), 'desc' => esc_html__( '', 'cerato' ), 'id' => $zoo_prefix . "heading_title", 'type' => 'heading' ), array( 'name' => esc_html__( 'Disable Title', 'cerato' ), 'desc' => esc_html__( '', 'cerato' ), 'id' => $zoo_prefix . "disable_title", 'std' => '0', 'type' => 'checkbox' ), array( 'name' => esc_html__( 'Disable Breadcrumbs', 'cerato' ), 'desc' => esc_html__( '', 'cerato' ), 'id' => $zoo_prefix . "disable_breadcrumbs", 'std' => '0', 'type' => 'checkbox' ), array( 'name' => esc_html__( 'Disable Store Notice', 'cerato' ), 'desc' => esc_html__( '', 'cerato' ), 'id' => $zoo_prefix . "disable_store_notice", 'std' => '0', 'type' => 'checkbox' ), array( 'name' => esc_html__( 'Page Layout', 'cerato' ), 'desc' => esc_html__( '', 'cerato' ), 'id' => $zoo_prefix . "body_heading", 'type' => 'heading' ), array( 'name' => esc_html__( 'Layout Options', 'cerato' ), 'id' => $zoo_prefix . "site_layout", 'type' => 'select', 'options' => array( 'inherit' => esc_html__( 'Inherit', 'cerato' ), 'normal' => esc_html__( 'Normal', 'cerato' ), 'boxed' => esc_html__( 'Boxed', 'cerato' ), 'full-width' => esc_html__( 'Full Width', 'cerato' ), ), 'std' => 'inherit', ), array( 'name' => esc_html__( 'Page Max Width', 'cerato' ), 'desc' => esc_html__( 'Accept only number. If not set, it will follow customize config.', 'cerato' ), 'id' => $zoo_prefix . "site_max_width", 'type' => 'number' ), ) ); return $zoo_meta_boxes; } } endif;