blocksy-tainacan/inc/options/single-elements/document-attachments.php

54 lines
2.1 KiB
PHP
Raw Normal View History

<?php
if (! isset($prefix)) {
$prefix = '';
} else {
$prefix = $prefix . '_';
}
$options = [
$prefix . 'document-attachments' => [
2021-01-04 21:40:54 +00:00
'label' => __( 'Document and attachments', 'blocksy-tainacan' ),
'type' => 'ct-panel',
'sync' => blocksy_sync_whole_page([
'prefix' => $prefix,
]),
'inner-options' => [
2021-01-04 21:40:54 +00:00
blocksy_rand_md5() => [
'title' => __( 'General', 'blocksy' ),
'type' => 'tab',
'options' => [
2021-02-23 02:09:46 +00:00
blocksy_get_options(BLOCKSY_TAINACAN_PLUGIN_DIR_PATH . '/inc/options/single-elements/document-attachments-structure.php', [
2021-01-04 21:40:54 +00:00
'prefix' => $prefix,
'enabled' => 'no'
], false),
2021-02-23 02:09:46 +00:00
blocksy_get_options(BLOCKSY_TAINACAN_PLUGIN_DIR_PATH . '/inc/options/single-elements/document-attachments-columns.php', [
2021-01-04 21:40:54 +00:00
'prefix' => $prefix
], false),
2021-02-23 02:09:46 +00:00
blocksy_get_options(BLOCKSY_TAINACAN_PLUGIN_DIR_PATH . '/inc/options/single-elements/hide-download-button.php', [
2021-01-04 21:40:54 +00:00
'prefix' => $prefix,
'enabled' => 'no'
], false),
2021-02-23 02:09:46 +00:00
blocksy_get_options(BLOCKSY_TAINACAN_PLUGIN_DIR_PATH . '/inc/options/single-elements/hide-files-name.php', [
2021-01-04 21:40:54 +00:00
'prefix' => $prefix,
'enabled' => 'no'
], false)
]
],
blocksy_rand_md5() => [
'title' => __( 'Design', 'blocksy' ),
'type' => 'tab',
'options' => [
2021-02-23 02:09:46 +00:00
blocksy_get_options(BLOCKSY_TAINACAN_PLUGIN_DIR_PATH . '/inc/options/single-elements/attachments-typography.php', [
'prefix' => $prefix
], false),
2021-02-23 02:09:46 +00:00
blocksy_get_options(BLOCKSY_TAINACAN_PLUGIN_DIR_PATH . '/inc/options/single-elements/attachments-size.php', [
2021-01-04 21:40:54 +00:00
'prefix' => $prefix
], false)
],
]
]
]
];