blocksy-tainacan/inc/options/single-elements/tainacan-single-structure.php

46 lines
1.2 KiB
PHP

<?php
if (! isset($prefix)) {
$prefix = '';
} else {
$prefix = $prefix . '_';
}
$options = [
$prefix . 'page_structure_type' => [
'label' => false,
'type' => 'ct-image-picker',
'value' => 'type-dam',
'design' => 'block',
'setting' => [ 'transport' => 'postMessage' ],
'choices' => [
'type-dam' => [
'src' => blocksy_tainacan_image_picker_url( 'type-dam.svg' ),
'title' => __( 'Document, Attachments, Metadata', 'blocksy' ),
],
'type-dma' => [
'src' => blocksy_tainacan_image_picker_url( 'type-dma.svg' ),
'title' => __( 'Document, Metadata, Attachments', 'blocksy' ),
],
'type-mda' => [
'src' => blocksy_tainacan_image_picker_url( 'type-mda.svg' ),
'title' => __( 'Metadata, Document, Attachments', 'blocksy' ),
],
'type-gm' => [
'src' => blocksy_tainacan_image_picker_url( 'type-gm.svg' ),
'title' => __( 'Metadata to the right', 'blocksy' ),
],
'type-mg' => [
'src' => blocksy_tainacan_image_picker_url( 'type-mg.svg' ),
'title' => __( 'Metadata to the left', 'blocksy' ),
],
],
'sync' => blocksy_sync_single_post_container([
'prefix' => $prefix
])
],
];