<?php
$fiftyFifty = array (
  'key' => 'fifty_fifty',
  'label' => '50/50 Content',
  'name' => 'fifty-fifty',
  'type' => 'repeater',
  'sub_fields' => array (
    array (
      'key' => 'fifty_fifty_stuff',
      'label' => '',
      'name' => 'content', 
      'type' => 'group',
      'sub_fields' => array (
        array(
          'key' => 'fifty_fifty_title',
          'label' => 'Title',
          'name' => 'title', // the 'name' value for each field has to match the variable in the Twig file.
          'type' => 'text',
          'instructions' => '',
          'required' => 0,
          'conditional_logic' => 0,
          'wrapper' => array(
            'width' => '50%',
            'class' => '',
            'id' => '',
          ),
          'default_value' => '',
          'placeholder' => '',
          'prepend' => '',
          'append' => '',
          'maxlength' => '',
        ),
        array (
          'key' => 'fifty_fifty_section_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'),
          'wrapper' => array(
            'width' => '50%',
            'class' => '',
            'id' => '',
          ),
        ),
        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' => 'fifty_fifty_content_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' => 'fifty_fifty_content_one',
          'label' => __('Content', 'ipsen-master'),
          'name' => 'one', 
          // 'instructions' => __('This is optional', 'ipsen-master'),
          'type' => 'wysiwyg',
          'tabs' => 'visual',
          // 'toolbar' => 'basic',
          'media_upload' => 1,
          'wrapper' => array(
              'width' => '50%',
              'class' => '',
              'id' => '',
          ),
        ),
        array (
          'key' => 'fifty_fifty_content_two',
          'label' => __('Content', 'ipsen-master'),
          'name' => 'two', 
          // 'instructions' => __('This is optional', 'ipsen-master'),
          'type' => 'wysiwyg',
          'tabs' => 'visual',
          // 'toolbar' => 'basic',
          'media_upload' => 1,
          'wrapper' => array(
              'width' => '50%',
              'class' => '',
              'id' => '',
          ),
        ),
      ),
    ),
    array (
      'key' => 'fifty_fifty_settings',
      'label' => 'Settings',
      'name' => 'settings', 
      'type' => 'group',
      'sub_fields' => array (
        array (
          'key' => 'fifty_fifty_content_sticky',
          'label' => __('Sticky?', 'ipsen-master'),
          'name' => 'sticky', 
          // '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' => 'fifty_fifty_content_reversed',
          'label' => __('Reversed?', 'ipsen-master'),
          'name' => 'reversed', 
          // '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' => '',
          ),
        ),
      ),
    ),
  ),
  'row_min' => 0,
  'row_limit' => '',
  'layout' => 'row',
);

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