<?php 
$newsCentre = array (
  'key' => 'news_centre',
  'label' => 'News Centre',
  'name' => 'news-centre-block',
  'type' => 'repeater',
  'instructions' => __('This block has no controls.', 'ipsen-master'),
  'sub_fields' => array (
    array(
      'key' => 'news_centre_title',
      'label' => 'News section title',
      'name' => 'title',
      'type' => 'text',
      'instructions' => '',
      'required' => 0,
      'conditional_logic' => 0,
      'wrapper' => array(
          'width' => '',
          'class' => '',
          'id' => '',
      ),
      'default_value' => '',
      'placeholder' => '',
      'prepend' => '',
      'append' => '',
      'maxlength' => '',
    ),
    array (
      'key' => 'mini_carousel_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'),
    ),
    array (
      'key' => 'news_centre_category',
      'name' => 'posts', 
      'type' => 'message',
	    'message' => __('This block has no controls.', 'ipsen-master'),
    ),
  ),
  'row_min' => 0,
  'row_limit' => '',
  'layout' => 'row',
);

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