blocksy-tainacan/tainacan-blocksy/inc/options/single-elements/hide-files-caption-lightbox...

20 lines
504 B
PHP
Raw Normal View History

2022-03-21 18:31:34 +00:00
<?php
if (! isset($prefix)) {
$prefix = '';
}
if (! isset($enabled)) {
$enabled = 'no';}
$options = [
$prefix . 'hide_files_caption_lightbox' => [
'label' => __( 'Hide files caption', 'tainacan-blocksy' ),
'type' => 'ct-switch',
'value' => $enabled,
'setting' => [ 'transport' => 'postMessage' ],
'desc' => __( 'Toggle to hide the attachments and document caption on the lightbox.', 'tainacan-blocksy' ),
'sync' => blocksy_sync_single_post_container([
'prefix' => $prefix,
])
2022-03-21 18:31:34 +00:00
]
];