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

21 lines
516 B
PHP
Raw Normal View History

<?php
if (! isset($prefix)) {
$prefix = '';
}
if (! isset($enabled)) {
$enabled = 'yes';
}
$options = [
$prefix . 'hide_files_description_main' => [
'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 main view.', 'tainacan-blocksy' ),
'sync' => blocksy_sync_single_post_container([
'prefix' => $prefix,
]),
]
];