Skip to content
Permalink
master
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time
<?php
namespace Flynt\Components\BlockImageText;
use Flynt\FieldVariables;
function getACFLayout()
{
return [
'name' => 'blockImageText',
'label' => 'Block: Image Text',
'sub_fields' => [
[
'label' => __('General', 'flynt'),
'name' => 'generalTab',
'type' => 'tab',
'placement' => 'top',
'endpoint' => 0,
],
[
'label' => __('Image Position', 'flynt'),
'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', 'flynt'),
'name' => 'image',
'type' => 'image',
'preview_size' => 'medium',
'instructions' => __('Image-Format: JPG, PNG, SVG.', 'flynt'),
'required' => 1,
'mime_types' => 'jpg,jpeg,png,svg'
],
[
'label' => __('Content', 'flynt'),
'name' => 'contentHtml',
'type' => 'wysiwyg',
'delay' => 1,
'media_upload' => 0,
'required' => 1,
],
[
'label' => __('Options', 'flynt'),
'name' => 'optionsTab',
'type' => 'tab',
'placement' => 'top',
'endpoint' => 0
],
[
'label' => '',
'name' => 'options',
'type' => 'group',
'layout' => 'row',
'sub_fields' => [
FieldVariables\getTheme()
]
]
]
];
}