<?php

$meta_boxes[] = array(

    'id'        => 'construction-format-video',    
    'title'     => esc_html__('Video Post Format', 'construction' ),    
    'pages'     => array( 'post' ),    
    'context'   => 'normal',
    'fields'    => array(

        array(
            'name'      => esc_html__( 'Video URL:', 'construction' ),
            'id'        => 'video_url',
            'type'      => 'text',
            'desc'      => esc_html__( 'Enter Video URL', 'construction' ),            
        ),

        array(
            'name'              => esc_html__( 'Video Image:', 'construction' ),
            'desc'              => esc_html__( 'Upload video image', 'construction' ),
            'id'                => 'video_image',
            'type'              => 'image_advanced',
            'max_file_uploads'  => 1,
        ),        
    )
);

$meta_boxes[] = array(

    'id'        => 'construction-format-audio',    
    'title'     => esc_html__('Audio Post Format', 'construction' ),    
    'pages'     => array( 'post' ),    
    'context'   => 'normal',
    'fields'    => array(

        array(
            'name'      => esc_html__( 'Audio link', 'construction' ),
            'id'        => 'audio_embed',
            'type'      => 'text',
            'desc'      => esc_html__( 'Enter audion link', 'construction' ),
        ),
    )
);

$meta_boxes[] = array(

    'id'        => 'construction-format-gallery',    
    'title'     => esc_html__('Gallery Post Format', 'construction' ),    
    'pages'     => array( 'post' ),    
    'context'   => 'normal',
    'fields'    => array(

        array(
            'name'      => esc_html__( 'Gallery images', 'construction' ),
            'id'        => 'gallery_images',
            'type'      => 'image_advanced',
            'desc'      => esc_html__( 'Select images for gallery post', 'construction' ),
        ),
    )
);