Uname: Linux premium294.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64
Software: LiteSpeed
PHP version: 8.1.32 [ PHP INFO ] PHP os: Linux
Server Ip: 104.21.112.1
Your Ip: 216.73.216.223
User: mjbynoyq (1574) | Group: mjbynoyq (1570)
Safe Mode: OFF
Disable Function:
NONE

name : 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', 'doma' ),
				'pages'   => array( 'post' ),
				'context' => 'side',
				'fields'  => array(
					array(
						'id'      => $zoo_prefix . "blog_single_sidebar_config",
						'type'    => 'select',
						'options' => array(
							'inherit' => esc_html__( 'Inherit', 'doma' ),
							'left'    => esc_html__( 'Left', 'doma' ),
							'right'   => esc_html__( 'Right', 'doma' ),
							''    => esc_html__( 'None', 'doma' ),
						),
						'std'     => 'inherit',
						'desc'    => esc_html__( 'Select sidebar layout you want set for this post.', 'doma' )
					),
				)
			);
			//All page
			$zoo_meta_boxes[] = array(
				'id'      => $zoo_prefix . 'layout_single_heading',
				'title'   => esc_html__( 'Layout Single Product', 'doma' ),
				'pages'   => array( 'product' ),
				'context' => 'advanced',
				'fields'  => array(
					array(
						'name'    => esc_html__( 'Layout Options', 'doma' ),
						'id'      => $zoo_prefix . "single_product_layout",
						'type'    => 'select',
						'options' => array(
							'inherit'          => esc_html__( 'Inherit', 'doma' ),
							'vertical-thumb'   => esc_html__( 'Product V1', 'doma' ),
							'horizontal-thumb' => esc_html__( 'Product V2', 'doma' ),
							'carousel'         => esc_html__( 'Product V3', 'doma' ),
							'grid-thumb'       => esc_html__( 'Product V4', 'doma' ),
							'sticky-1'         => esc_html__( 'Product V5', 'doma' ),
							'sticky-2'         => esc_html__( 'Product V6', 'doma' ),
							'sticky-3'         => esc_html__( 'Product V7', 'doma' ),
							//'accordion'        => esc_html__( 'Product V7', 'doma' ),
							'custom'           => esc_html__( 'Custom', 'doma' ),
						),
						'std'     => 'inherit',
					),
					array(
						'name'    => esc_html__( 'Content Options', 'doma' ),
						'id'      => $zoo_prefix . "single_product_content_layout",
						'type'    => 'select',
						'options' => array(
							'inherit'        => esc_html__( 'Inherit', 'doma' ),
							'right_content'  => esc_html__( 'Right Content', 'doma' ),
							'left_content'   => esc_html__( 'Left Content', 'doma' ),
							'full_content'   => esc_html__( 'Full width Content', 'doma' ),
							'sticky_content' => esc_html__( 'Sticky Content', 'doma' ),
						),
						'std'     => 'inherit',
					),
					array(
						'name'    => esc_html__( 'Gallery Options', 'doma' ),
						'id'      => $zoo_prefix . "product_gallery_layout",
						'type'    => 'select',
						'options' => array(
							'inherit'        => esc_html__( 'Inherit', 'doma' ),
							'vertical-left'  => esc_html__( 'Vertical Left Thumb', 'doma' ),
							'vertical-right' => esc_html__( 'Vertical Right Thumb', 'doma' ),
							'horizontal'     => esc_html__( 'Horizontal', 'doma' ),
							'slider'         => esc_html__( 'Slider', 'doma' ),
							'grid'           => esc_html__( 'Grid', 'doma' ),
							'sticky'         => esc_html__( 'Sticky', 'doma' ),
						),
						'std'     => 'inherit',
					),
					array(
						'name'    => esc_html__( 'Gallery Columns', 'doma' ),
						'id'      => $zoo_prefix . "product_gallery_columns",
						'type'    => 'select',
						'options' => array(
							'6' => esc_html__( '6', 'doma' ),
							'5' => esc_html__( '5', 'doma' ),
							'4' => esc_html__( '4', 'doma' ),
							'3' => esc_html__( '3', 'doma' ),
							'2' => esc_html__( '2', 'doma' ),
							'1' => esc_html__( '1', 'doma' ),
							'inherit' => esc_html__( 'Inherit', 'doma' ),
						),
						'std'     => 'inherit',
					),
                    array(
						'name'    => esc_html__( 'Display tab inside summary', 'doma' ),
						'id'      => $zoo_prefix . "add_tab_to_summary",
						'type'    => 'select',
						'options' => array(
							'no' => esc_html__( 'No', 'doma' ),
							'true' => esc_html__( 'Yes', 'doma' ),
							'inherit' => esc_html__( 'Inherit', 'doma' ),
						),
						'std'     => 'inherit',
					),
				)
			);
			$zoo_meta_boxes[] = array(
				'id'      => $zoo_prefix . 'single_product_image_360_heading',
				'title'   => esc_html__( 'Product image 360 view', 'doma' ),
				'pages'   => array( 'product' ),
				'context' => 'advanced',
				'fields'  => array(
					array(
						'id'   => $zoo_prefix . "single_product_image_360",
						'name' => esc_html__( 'Images', 'doma' ),
						'type' => 'image_advanced',
						'desc' => esc_html__( 'Images for 360 degree view.', 'doma' )
					),
				)
			);
			$zoo_meta_boxes[] = array(
				'id'      => $zoo_prefix . 'single_product_video_heading',
				'title'   => esc_html__( 'Product Video', 'doma' ),
				'pages'   => array( 'product' ),
				'context' => 'side',
				'fields'  => array(
					array(
						'id'   => $zoo_prefix . "single_product_video",
						'type' => 'oembed',
						'desc' => esc_html__( 'Enter your embed video url.', 'doma' )
					),
				)
			);
			$zoo_meta_boxes[] = array(
				'id'      => $zoo_prefix . 'single_product_new_heading',
				'title'   => esc_html__( 'Assign product is New', 'doma' ),
				'pages'   => array( 'product' ),
				'context' => 'side',
				'fields'  => array(
					array(
						'id'   => $zoo_prefix . "single_product_new",
						'std'  => '0',
						'type' => 'checkbox',
						'desc' => esc_html__( 'Is New Product.', 'doma' )
					),
				)
			);
			$zoo_meta_boxes[] = array(
				'id'      => 'title_meta_box',
				'title'   => esc_html__( 'Layout Options', 'doma' ),
				'pages'   => array( 'page', 'post' ),
				'context' => 'advanced',
				'fields'  => array(
					array(
						'name' => esc_html__( 'Title & Breadcrumbs Options', 'doma' ),
						'desc' => esc_html__( '', 'doma' ),
						'id'   => $zoo_prefix . "heading_title",
						'type' => 'heading'
					),
					array(
						'name' => esc_html__( 'Disable Title', 'doma' ),
						'desc' => esc_html__( '', 'doma' ),
						'id'   => $zoo_prefix . "disable_title",
						'std'  => '0',
						'type' => 'checkbox'
					),
					array(
						'name' => esc_html__( 'Disable Breadcrumbs', 'doma' ),
						'desc' => esc_html__( '', 'doma' ),
						'id'   => $zoo_prefix . "disable_breadcrumbs",
						'std'  => '0',
						'type' => 'checkbox'
					),
					array(
						'name' => esc_html__( 'Page Layout', 'doma' ),
						'desc' => esc_html__( '', 'doma' ),
						'id'   => $zoo_prefix . "body_heading",
						'type' => 'heading'
					),
					array(
						'name'    => esc_html__( 'Layout Options', 'doma' ),
						'id'      => $zoo_prefix . "site_layout",
						'type'    => 'select',
						'options' => array(
							'inherit'    => esc_html__( 'Inherit', 'doma' ),
							'normal'     => esc_html__( 'Normal', 'doma' ),
							'boxed'      => esc_html__( 'Boxed', 'doma' ),
							'full-width' => esc_html__( 'Full Width', 'doma' ),
						),
						'std'     => 'inherit',
					),
					array(
						'name' => esc_html__( 'Page Max Width', 'doma' ),
						'desc' => esc_html__( 'Accept only number. If not set, it will follow customize config.', 'doma' ),
						'id'   => $zoo_prefix . "site_max_width",
						'type' => 'number'
					),
				)
			);

			return $zoo_meta_boxes;
		}
	}
endif;
© 2025 XylotrechusZ