<div class="awards">
<div class="awards__list">
<div class="awards__list__item">
<a href="http://google.com">
<img src="/img/Ipsen_logo.png" alt="google" />
</a>
</div>
<div class="awards__list__item">
<a href="http://google.com">
<img src="/img/newsletter-icon.png" alt="google" />
</a>
</div>
<div class="awards__list__item">
<a href="http://google.com">
<img src="/img/onivyde.png" alt="google" />
</a>
</div>
<div class="awards__list__item">
<a href="http://google.com">
<img src="/img/patients-icon.png" alt="google" />
</a>
</div>
<div class="awards__list__item">
<a href="http://google.com">
<img src="/img/photo-1484583066749-c2129489f52f.jpeg" alt="google" />
</a>
</div>
<div class="awards__list__item">
<a href="http://google.com">
<img src="/img/cabometyx-logo.jpg" alt="google" />
</a>
</div>
<div class="awards__list__item">
<a href="http://google.com">
<img src="/img/placeimg_1000_650_people.jpg" alt="google" />
</a>
</div>
<div class="awards__list__item">
<a href="http://google.com">
<img src="/img/research-icon.png" alt="google" />
</a>
</div>
<div class="awards__list__item">
<a href="http://google.com">
<img src="/img/somatuline-hero.jpg" alt="google" />
</a>
</div>
</div>
</div>
<?php
$awards = array (
'key' => 'awardsfield',
'label' => 'Awards',
'name' => 'awards',
'type' => 'group',
'sub_fields' => array(
array(
'key' => 'awards__Title',
'label' => 'Awards Title',
'name' => 'heading', // the 'name' value for each field has to match the variable in the Twig file.
'type' => 'text'
),
array (
'key' => 'wards_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' => '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' => 'awards__logos',
'label' => 'Awards Logos',
'name' => 'logos',
'layout' => 'block',
'type' => 'repeater',
'button_label' => 'Add Logo',
'sub_fields' => array (
array(
'key' => 'awards__logo__link',
'label' => 'Logo Link',
'name' => 'url',
'type' => 'link',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'return_format' => 'url',
),
array(
'key' => 'awards__logo__text',
'label' => 'Logo Image Alternative Text',
'name' => 'title',
'type' => 'text',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'default_value' => '',
'placeholder' => '',
'prepend' => '',
'append' => '',
'maxlength' => '',
),
array(
'key' => 'awards__logo__image',
'label' => 'Logo Image',
'name' => 'img',
'type' => 'image',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'return_format' => 'url',
'preview_size' => 'thumbnail',
'library' => 'all',
'min_width' => '',
'min_height' => '',
'min_size' => '',
'max_width' => '',
'max_height' => '',
'max_size' => '',
'mime_types' => '',
)
),
),
),
'parent' => 'contentblocks_flex', //flex field key
'parent_layout' => '56ff5b1a77c76', // layout key
'row_min' => 0,
'row_limit' => '',
'layout' => 'row'
);
array_push($_SESSION["blocks"], $awards);