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