2022-05-12 15:05:35 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
if (! isset($prefix)) {
|
|
|
|
$prefix = '';
|
|
|
|
}
|
|
|
|
|
|
|
|
$options = [
|
|
|
|
$prefix . 'metadata_sections_layout_type' => [
|
|
|
|
'label' => false,
|
|
|
|
'type' => 'ct-image-picker',
|
|
|
|
'value' => 'metadata-section-type-1',
|
|
|
|
'design' => 'block',
|
|
|
|
'setting' => [ 'transport' => 'postMessage' ],
|
|
|
|
'choices' => [
|
|
|
|
'metadata-section-type-1' => [
|
|
|
|
'src' => tainacan_blocksy_image_picker_url( 'metadata-section-type-1.svg' ),
|
2022-06-10 20:25:27 +00:00
|
|
|
'title' => __( 'Default', 'tainacan-blocksy' )
|
2022-05-12 15:05:35 +00:00
|
|
|
],
|
|
|
|
'metadata-section-type-2' => [
|
|
|
|
'src' => tainacan_blocksy_image_picker_url( 'metadata-section-type-2.svg' ),
|
2022-06-10 20:25:27 +00:00
|
|
|
'title' => __( 'Tabs', 'tainacan-blocksy' )
|
2022-05-12 15:05:35 +00:00
|
|
|
],
|
|
|
|
'metadata-section-type-3' => [
|
|
|
|
'src' => tainacan_blocksy_image_picker_url( 'metadata-section-type-3.svg' ),
|
2022-06-10 20:25:27 +00:00
|
|
|
'title' => __( 'Collapses', 'tainacan-blocksy' )
|
2022-05-12 15:05:35 +00:00
|
|
|
],
|
|
|
|
'metadata-section-type-4' => [
|
|
|
|
'src' => tainacan_blocksy_image_picker_url( 'metadata-section-type-4.svg' ),
|
2022-06-10 20:25:27 +00:00
|
|
|
'title' => __( 'Accordion', 'tainacan-blocksy' )
|
2022-05-12 15:05:35 +00:00
|
|
|
]
|
|
|
|
],
|
|
|
|
'sync' => blocksy_sync_single_post_container([
|
|
|
|
'prefix' => $prefix
|
|
|
|
])
|
2022-06-10 20:25:27 +00:00
|
|
|
]
|
2022-05-12 15:05:35 +00:00
|
|
|
];
|