blocksy-tainacan/tainacan-blocksy/inc/options/single-elements/document-attachments-struct...

31 lines
819 B
PHP

<?php
if (! isset($prefix)) {
$prefix = '';
}
if (! isset($enabled)) {
$enabled = 'no';
}
$options = [
$prefix . 'document_attachments_structure' => [
'label' => false,
'type' => 'ct-image-picker',
'value' => 'gallery-type-1',
'design' => 'block',
'setting' => [ 'transport' => 'postMessage' ],
'choices' => [
'gallery-type-1' => [
'src' => tainacan_blocksy_image_picker_url( 'gallery-type-1.svg' ),
'title' => __( 'Document and Attachments separate', 'tainacan-blocksy' ),
],
'gallery-type-2' => [
'src' => tainacan_blocksy_image_picker_url( 'gallery-type-2.svg' ),
'title' => __( 'Document and Attachments merged', 'tainacan-blocksy' ),
],
],
'sync' => blocksy_sync_single_post_container([
'prefix' => $prefix
])
],
];