34 lines
1.1 KiB
PHP
34 lines
1.1 KiB
PHP
|
<?php
|
||
|
|
||
|
if (! isset($prefix)) {
|
||
|
$prefix = '';
|
||
|
} else {
|
||
|
$prefix = $prefix . '_';
|
||
|
}
|
||
|
|
||
|
$options = [
|
||
|
$prefix . 'document-attachments' => [
|
||
|
'label' => __( 'Document & Attachments', 'blocksy-tainacan' ),
|
||
|
'type' => 'ct-panel',
|
||
|
'sync' => blocksy_sync_whole_page([
|
||
|
'prefix' => $prefix,
|
||
|
]),
|
||
|
'inner-options' => [
|
||
|
blocksy_get_options(get_stylesheet_directory() . '/inc/options/single-elements/gallery-mode.php', [
|
||
|
'prefix' => $prefix,
|
||
|
'enabled' => 'no'
|
||
|
], false),
|
||
|
blocksy_get_options(get_stylesheet_directory() . '/inc/options/single-elements/hide-download-button.php', [
|
||
|
'prefix' => $prefix,
|
||
|
'enabled' => 'no'
|
||
|
], false),
|
||
|
blocksy_get_options(get_stylesheet_directory() . '/inc/options/single-elements/hide-files-name.php', [
|
||
|
'prefix' => $prefix,
|
||
|
'enabled' => 'no'
|
||
|
], false),
|
||
|
blocksy_get_options(get_stylesheet_directory() . '/inc/options/single-elements/document-attachments-columns.php', [
|
||
|
'prefix' => $prefix
|
||
|
], false)
|
||
|
]
|
||
|
]
|
||
|
];
|