<?php
$video = array (
	'key' => 'group_5bfd5b6dbe4e5',
	'title' => 'Video',
  	'label' => 'Video',
  	'name' => 'video',
  	'type' => 'group',
  	'sub_fields' => array (
		array(
			'key' => 'field_5bfd5dd485fcf',
			'label' => 'Title',
			'name' => 'title',
			'type' => 'text',
			'instructions' => 'Optional video title',
			'required' => 0,
			'conditional_logic' => 0,
			'wrapper' => array(
				'width' => '',
				'class' => '',
				'id' => '',
			),
			'default_value' => '',
			'placeholder' => '',
			'prepend' => '',
			'append' => '',
			'maxlength' => '',
		),
		array(
			'key' => 'video-provider',
			'label' => 'Video host',
			'name' => 'provider',
			'type' => 'radio',
			'instructions' => '',
			'required' => 0,
			'conditional_logic' => 0,
			'wrapper' => array(
				'width' => '',
				'class' => '',
				'id' => '',
			),
			'choices' => array(
				'youtube' => 'Youtube',
				'vimeo' => 'Vimeo',
			),
			'allow_null' => 0,
			'other_choice' => 0,
			'default_value' => '',
			'layout' => 'horizontal',
			'return_format' => 'value',
			'save_other_choice' => 0,
		),
		array(
			'key' => 'field_5bfd5df385fd0',
			'label' => 'Video URL or ID',
			'name' => 'id',
			'type' => 'text',
			'instructions' => '',
			'required' => 1,
			'conditional_logic' => 0,
			'wrapper' => array(
				'width' => '',
				'class' => '',
				'id' => '',
			),
			'default_value' => '',
			'placeholder' => '',
			'prepend' => '',
			'append' => '',
			'maxlength' => '',
		),
	),
	'location' => array(
		array(
			array(
				'param' => 'post_type',
				'operator' => '==',
				'value' => 'post',
			),
		),
	),
	'menu_order' => 0,
	'position' => 'normal',
	'style' => 'default',
	'label_placement' => 'top',
	'instruction_placement' => 'label',
	'hide_on_screen' => '',
	'active' => 1,
	'description' => '',
);

array_push($_SESSION["blocks"], $video);

