<?php
$wysiwygContent = array (
  'key' => 'wysiwyg_content_block',
  'label' => 'Editorial Content',
  'name' => 'wysiwyg-content',
  'type' => 'repeater',
  'sub_fields' => array (
    array(
      'key' => 'hide_block',
      'label' => 'Hide this block from anchor links',
      'name' => 'hide_block',
      'type' => 'true_false',
      'instructions' => '',
      'required' => 0,
      'wrapper' => array(
        'width' => '',
        'class' => '',
        'id' => '',
      ),
      'message' => '',
      'default_value' => 0,
      'ui' => 1,
      'ui_on_text' => '',
      'ui_off_text' => '',
    ),
    array (
      'key' => 'wysiwyg_content_block__Title',
      'label' => 'Section Title',
      'name' => 'title', // the 'name' value for each field has to match the variable in the Twig file.
      'type' => 'text',
      'wrapper' => array(
        'width' => '50%',
        'class' => '',
        'id' => '',
      ),
    ),
     array (
      'key' => 'wysiwyg_content_block_center_title',
      'label' => __('Center Title?', 'ipsen-master'),
      'name' => 'center_title', 
      // 'instructions' => __('This is optional', 'ipsen-master'),
      'type' => 'true_false',
      'instructions' => '',
      'required' => 0,
      'conditional_logic' => 0,
      'message' => '',
      'default_value' => 0,
      'ui' => 1,
      'ui_on_text' => '',
      'ui_off_text' => '',
      'wrapper' => array(
          'width' => '50%',
          'class' => '',
          'id' => '',
      ),
    ),
    array (
      'key' => 'widescreen_content_block_label',
      'label' => 'Section Label',
      'name' => 'blocklabel',
      'type' => 'text',
      'instructions' => __('This label appears in in-page navigation and within the content of some blocks, overriding the title.', 'ipsen-master'),
    ),
    array (
      'key' => 'wysiwyg_content_block__Intro',
      'label' => __('Content', 'ipsen-master'),
      'name' => 'content', 
      // 'instructions' => __('This is optional', 'ipsen-master'),
      'type' => 'wysiwyg',
      'tabs' => 'visual',
      // 'toolbar' => 'basic',
      'media_upload' => 1,
    ),
  ),
  'row_min' => 0,
  'row_limit' => '',
  'layout' => 'row',
);

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

$widescreen = array (
  'key' => 'widescreen',
  'label' => 'Widescreen Content',
  'name' => 'widescreen',
  'type' => 'repeater',
  'sub_fields' => array (
    array (
      'key' => 'widescreen_content_block__Title',
      'label' => 'Section Title',
      'name' => 'title', // the 'name' value for each field has to match the variable in the Twig file.
      'type' => 'text',
      'wrapper' => array(
        'width' => '50%',
        'class' => '',
        'id' => '',
      ),
    ),
    array (
      'key' => 'widescreen_content_block_label_wide',
      'label' => 'Section Label',
      'name' => 'blocklabel',
      'type' => 'text',
      'instructions' => __('This label appears in in-page navigation and within the content of some blocks, overriding the title.', 'ipsen-master'),
    ),
    array(
      'key' => 'hide_block',
      'label' => 'Hide this block from anchor links',
      'name' => 'hide_block',
      'type' => 'true_false',
      'instructions' => '',
      'required' => 0,
      'wrapper' => array(
        'width' => '',
        'class' => '',
        'id' => '',
      ),
      'message' => '',
      'default_value' => 0,
      'ui' => 1,
      'ui_on_text' => '',
      'ui_off_text' => '',
    ),
     array (
      'key' => 'widescreen_content_block_orientation',
      'label' => __('Image Orientation', 'ipsen-master'),
      'name' => 'orientation', 
      // 'instructions' => __('This is optional', 'ipsen-master'),
      'type' => 'true_false',
      'instructions' => '',
      'required' => 0,
      'conditional_logic' => 0,
      'message' => '',
      'default_value' => 1,
      'ui' => 1,
      'ui_on_text' => 'Right',
      'ui_off_text' => 'Left',
      'wrapper' => array(
          'width' => '50%',
          'class' => '',
          'id' => '',
      ),
    ),
    array (
      'key' => 'widescreen_content_block_image',
      'label' => 'Image',
      'name' => 'image',
      'type' => 'image',
    ),
    array(
      'key' => 'mobile_preserve_image',
      'label' => 'Preserve full image display on mobile',
      'name' => 'mobile_preserve_image',
      'type' => 'true_false',
      'instructions' => '',
      'required' => 0,
      'wrapper' => array(
        'width' => '',
        'class' => '',
        'id' => '',
      ),
      'message' => '',
      'default_value' => 0,
      'ui' => 1,
      'ui_on_text' => '',
      'ui_off_text' => '',
    ),
    array (
      'key' => 'widescreen_content_block_content',
      'label' => __('Content', 'ipsen-master'),
      'name' => 'content', 
      // 'instructions' => __('This is optional', 'ipsen-master'),
      'type' => 'wysiwyg',
      'tabs' => 'all',
      // 'toolbar' => 'basic',
      'media_upload' => 1,
    ),
  ),
  'row_min' => 0,
  'row_limit' => '',
  'layout' => 'row',
);

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