2020-11-18 01:04:40 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
if (! isset($prefix)) {
|
|
|
|
$prefix = '';
|
|
|
|
}
|
|
|
|
if (! isset($enabled)) {
|
|
|
|
$enabled = 'no';
|
|
|
|
}
|
|
|
|
|
|
|
|
$options = [
|
|
|
|
$prefix . 'hide_download_button' => [
|
2021-04-14 17:40:23 +00:00
|
|
|
'label' => __( 'Hide document download button', 'tainacan-blocksy' ),
|
2020-11-18 01:04:40 +00:00
|
|
|
'type' => 'ct-switch',
|
|
|
|
'value' => $enabled,
|
|
|
|
'setting' => [ 'transport' => 'postMessage' ],
|
2021-04-14 17:40:23 +00:00
|
|
|
'desc' => __( 'Toggle to never display a "Download" button when hovering the document.', 'tainacan-blocksy' ),
|
2020-11-18 01:04:40 +00:00
|
|
|
'sync' => blocksy_sync_single_post_container([
|
2020-12-30 03:31:53 +00:00
|
|
|
'prefix' => $prefix,
|
|
|
|
]),
|
2020-11-18 01:04:40 +00:00
|
|
|
]
|
|
|
|
];
|