return [
‘name’ => ‘blockCallToAction’,
‘label’ => ‘Block: CallToAction’,
‘sub_fields’ => [
[
[
‘label’ => __(‘General’, ‘flynt’),
‘name’ => ‘generalTab’,
‘type’ => ‘tab’,
‘placement’ => ‘top’,
‘endpoint’ => 0
],
[
‘label’ => __(‘Desktop Background’, ‘flynt’),
‘name’ => ‘contentBackground’,
‘type’ => ‘image’,
‘delay’ => 1,
‘media_upload’ => 1,
‘required’ => 1,
‘instructions’ => ‘Ratio: 1444×730’,
‘wrapper’ => array(
‘width’ => ’50’,
‘class’ => ”,
‘id’ => ”,
),
],
[
‘label’ => __(‘Mobile Background’, ‘flynt’),
‘name’ => ‘contentBackgroundMobile’,
‘type’ => ‘image’,
‘delay’ => 1,
‘media_upload’ => 1,
‘required’ => 1,
‘instructions’ => ‘Ratio: 375×187’,
‘wrapper’ => array(
‘width’ => ’50’,
‘class’ => ”,
‘id’ => ”,
),
],
[
‘label’ => __(‘CallToAction Heading’, ‘flynt’),
‘name’ => ‘heading’,
‘type’ => ‘text’,
],
[
‘label’ => __(‘CallToAction Description’, ‘flynt’),
‘name’ => ‘description’,
‘type’ => ‘wysiwyg’,
],
[
‘label’ => __(‘Link’, ‘flynt’),
‘name’ => ‘button’,
‘type’ => ‘link’,
‘return_format’ => ‘array’
],
[
‘label’ => __(‘Options’, ‘flynt’),
‘name’ => ‘optionsTab’,
‘type’ => ‘tab’,
‘placement’ => ‘top’,
‘endpoint’ => 0
],
[
‘label’ => __(‘Section Properies’, ‘flynt’),
‘name’ => ‘section’,
‘type’ => ‘group’,
‘layout’ => ‘table’,
‘sub_fields’ => [
FieldVariables\getSection()
]
],
[
‘label’ => ”,
‘name’ => ‘options’,
‘type’ => ‘group’,
‘layout’ => ‘row’,
‘sub_fields’ => [
FieldVariables\getTheme()
]
]
],
]
];