blocksy-tainacan/tainacan-blocksy/inc/options/single-elements/hide-files-description-ligh...

21 lines
517 B
PHP

<?php
if (! isset($prefix)) {
$prefix = '';
}
if (! isset($enabled)) {
$enabled = 'no';
}
$options = [
$prefix . 'hide_files_description_lightbox' => [
'label' => __( 'Hide files description', 'tainacan-blocksy' ),
'type' => 'ct-switch',
'value' => $enabled,
'setting' => [ 'transport' => 'postMessage' ],
'desc' => __( 'Toggle to hide the attachments and document description on the lightbox.', 'tainacan-blocksy' ),
'sync' => blocksy_sync_single_post_container([
'prefix' => $prefix,
])
]
];