<div class="video-wrapper">
    <div class="video-wrapper__inner">
        <h2>Video title</h2>
        <div class="js-player" data-plyr-provider="vimeo" data-plyr-embed-id="https://www.youtube.com/watch?v=R5waoUXqCtI"></div>
        <div>
        </div>
  • Content:
    <?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);
    
    
  • URL: /components/raw/video-cms/video-cms.php
  • Filesystem Path: src/components/cms-blocks/video-cms/video-cms.php
  • Size: 1.9 KB