2021-01-04 21:40:54 +00:00
|
|
|
<?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' => [
|
2021-04-14 17:40:23 +00:00
|
|
|
'src' => tainacan_blocksy_image_picker_url( 'gallery-type-1.svg' ),
|
2022-06-10 20:25:27 +00:00
|
|
|
'title' => __( 'Document and Attachments separate', 'tainacan-blocksy' )
|
2021-01-04 21:40:54 +00:00
|
|
|
],
|
|
|
|
'gallery-type-2' => [
|
2021-04-14 17:40:23 +00:00
|
|
|
'src' => tainacan_blocksy_image_picker_url( 'gallery-type-2.svg' ),
|
2022-06-10 20:25:27 +00:00
|
|
|
'title' => __( 'Document and Attachments merged', 'tainacan-blocksy' )
|
|
|
|
]
|
2021-01-04 21:40:54 +00:00
|
|
|
],
|
|
|
|
'sync' => blocksy_sync_single_post_container([
|
|
|
|
'prefix' => $prefix
|
2021-04-02 13:58:40 +00:00
|
|
|
])
|
2022-06-10 20:25:27 +00:00
|
|
|
]
|
2021-01-04 21:40:54 +00:00
|
|
|
];
|