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

31 lines
815 B
PHP
Raw Normal View History

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' => [
'src' => tainacan_blocksy_image_picker_url( 'gallery-type-1.svg' ),
'title' => __( 'Document and Attachments separate', 'tainacan-blocksy' )
2021-01-04 21:40:54 +00:00
],
'gallery-type-2' => [
'src' => tainacan_blocksy_image_picker_url( 'gallery-type-2.svg' ),
'title' => __( 'Document and Attachments merged', 'tainacan-blocksy' )
]
2021-01-04 21:40:54 +00:00
],
'sync' => blocksy_sync_single_post_container([
'prefix' => $prefix
])
]
2021-01-04 21:40:54 +00:00
];