Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
4 contributors

Users who have contributed to this file

@domtra @steffenbew @usingthesystem @Qakulukiam
68 lines (65 sloc) 2 KB
<?php
namespace Flynt\Components\BlockImageText;
use Flynt\FieldVariables;
function getACFLayout()
{
return [
'name' => 'blockImageText',
'label' => 'Block: Image Text',
'sub_fields' => [
[
'label' => 'General',
'name' => 'generalTab',
'type' => 'tab',
'placement' => 'top',
'endpoint' => 0,
],
[
'label' => 'Image Position',
'name' => 'imagePosition',
'type' => 'button_group',
'choices' => [
'imageLeft' => '<i class=\'dashicons dashicons-align-left\' title=\'Image on the left\'></i>',
'imageRight' => '<i class=\'dashicons dashicons-align-right\' title=\'Image on the right\'></i>'
]
],
[
'label' => 'Image',
'name' => 'image',
'type' => 'image',
'preview_size' => 'medium',
'instructions' => '',
'max_size' => 4,
'required' => true,
'mime_types' => 'gif,jpg,jpeg,png,svg'
],
[
'name' => 'contentHtml',
'label' => 'Content',
'type' => 'wysiwyg',
'delay' => 1,
'media_upload' => 0,
'required' => true,
'wrapper' => [
'class' => 'autosize',
],
],
[
'label' => 'Options',
'name' => 'optionsTab',
'type' => 'tab',
'placement' => 'top',
'endpoint' => 0
],
[
'label' => '',
'name' => 'options',
'type' => 'group',
'layout' => 'row',
'sub_fields' => [
FieldVariables\getTheme()
]
]
]
];
}
You can’t perform that action at this time.