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

21 lines
501 B
PHP

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