2020-09-16 02:15:40 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
if (! isset($prefix)) {
|
|
|
|
$prefix = '';
|
|
|
|
}
|
|
|
|
if (! isset($enabled)) {
|
2020-09-29 21:38:03 +00:00
|
|
|
$enabled = 'no';
|
2020-09-16 02:15:40 +00:00
|
|
|
}
|
|
|
|
|
2020-09-23 23:11:03 +00:00
|
|
|
$options = [
|
2020-09-29 21:38:03 +00:00
|
|
|
$prefix . 'show_thumbnail' => [
|
2021-04-14 17:40:23 +00:00
|
|
|
'label' => __( 'Item thumbnail in the metadata list', 'tainacan-blocksy' ),
|
2020-09-23 23:11:03 +00:00
|
|
|
'type' => 'ct-switch',
|
2020-09-16 02:15:40 +00:00
|
|
|
'value' => $enabled,
|
2020-09-23 23:11:03 +00:00
|
|
|
'setting' => [ 'transport' => 'postMessage' ],
|
2021-11-20 15:54:06 +00:00
|
|
|
'desc' => __( 'Toggle to show or not the item thumbnail on the metadata list.', 'tainacan-blocksy' ),
|
2020-09-16 02:15:40 +00:00
|
|
|
'sync' => blocksy_sync_single_post_container([
|
|
|
|
'prefix' => $prefix
|
|
|
|
])
|
2020-09-23 23:11:03 +00:00
|
|
|
]
|
2020-09-16 02:15:40 +00:00
|
|
|
];
|