2020-12-30 03:31:53 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
if (! isset($prefix)) {
|
|
|
|
$prefix = '';
|
|
|
|
} else {
|
|
|
|
$prefix = $prefix . '_';
|
|
|
|
}
|
|
|
|
|
|
|
|
$options = [
|
|
|
|
$prefix . 'document-attachments' => [
|
2021-04-14 17:40:23 +00:00
|
|
|
'label' => __( 'Document and attachments', 'tainacan-blocksy' ),
|
2020-12-30 03:31:53 +00:00
|
|
|
'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-04-14 17:40:23 +00:00
|
|
|
blocksy_get_options(TAINACAN_BLOCKSY_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-04-14 17:40:23 +00:00
|
|
|
blocksy_get_options(TAINACAN_BLOCKSY_PLUGIN_DIR_PATH . '/inc/options/single-elements/document-attachments-columns.php', [
|
2021-01-04 21:40:54 +00:00
|
|
|
'prefix' => $prefix
|
|
|
|
], false),
|
2021-04-14 17:40:23 +00:00
|
|
|
blocksy_get_options(TAINACAN_BLOCKSY_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-09-06 19:32:50 +00:00
|
|
|
blocksy_get_options(TAINACAN_BLOCKSY_PLUGIN_DIR_PATH . '/inc/options/single-elements/disable-gallery-lightbox.php', [
|
|
|
|
'prefix' => $prefix,
|
|
|
|
'enabled' => 'no'
|
|
|
|
], false),
|
2021-04-14 17:40:23 +00:00
|
|
|
blocksy_get_options(TAINACAN_BLOCKSY_PLUGIN_DIR_PATH . '/inc/options/single-elements/hide-files-name.php', [
|
2021-01-04 21:40:54 +00:00
|
|
|
'prefix' => $prefix,
|
|
|
|
'enabled' => 'no'
|
2021-04-02 13:58:40 +00:00
|
|
|
], false),
|
2021-04-14 17:40:23 +00:00
|
|
|
blocksy_get_options(TAINACAN_BLOCKSY_PLUGIN_DIR_PATH . '/inc/options/single-elements/hide-files-caption-main.php', [
|
2021-04-02 13:58:40 +00:00
|
|
|
'prefix' => $prefix,
|
|
|
|
'enabled' => 'yes'
|
|
|
|
], false),
|
2021-04-14 17:40:23 +00:00
|
|
|
blocksy_get_options(TAINACAN_BLOCKSY_PLUGIN_DIR_PATH . '/inc/options/single-elements/hide-files-name-main.php', [
|
2021-04-02 13:58:40 +00:00
|
|
|
'prefix' => $prefix,
|
|
|
|
'enabled' => 'yes'
|
|
|
|
], false),
|
2021-04-14 17:40:23 +00:00
|
|
|
blocksy_get_options(TAINACAN_BLOCKSY_PLUGIN_DIR_PATH . '/inc/options/single-elements/hide-files-description-main.php', [
|
2021-04-02 13:58:40 +00:00
|
|
|
'prefix' => $prefix,
|
|
|
|
'enabled' => 'yes'
|
2022-03-21 18:31:34 +00:00
|
|
|
], false),
|
|
|
|
blocksy_rand_md5() => [
|
|
|
|
'type' => 'ct-condition',
|
|
|
|
'condition' => [
|
|
|
|
$prefix . 'disable_gallery_lightbox' => 'no'
|
|
|
|
],
|
|
|
|
'options' => [
|
|
|
|
blocksy_get_options(TAINACAN_BLOCKSY_PLUGIN_DIR_PATH . '/inc/options/single-elements/hide-files-caption-lightbox.php', [
|
|
|
|
'prefix' => $prefix,
|
|
|
|
'enabled' => 'no'
|
|
|
|
], false),
|
|
|
|
blocksy_get_options(TAINACAN_BLOCKSY_PLUGIN_DIR_PATH . '/inc/options/single-elements/hide-files-name-lightbox.php', [
|
|
|
|
'prefix' => $prefix,
|
|
|
|
'enabled' => 'no'
|
|
|
|
], false),
|
|
|
|
blocksy_get_options(TAINACAN_BLOCKSY_PLUGIN_DIR_PATH . '/inc/options/single-elements/hide-files-description-lightbox.php', [
|
|
|
|
'prefix' => $prefix,
|
|
|
|
'enabled' => 'no'
|
|
|
|
], false)
|
|
|
|
]
|
|
|
|
]
|
2021-01-04 21:40:54 +00:00
|
|
|
]
|
|
|
|
],
|
|
|
|
|
|
|
|
blocksy_rand_md5() => [
|
|
|
|
'title' => __( 'Design', 'blocksy' ),
|
|
|
|
'type' => 'tab',
|
|
|
|
'options' => [
|
2021-07-06 18:11:01 +00:00
|
|
|
blocksy_get_options(TAINACAN_BLOCKSY_PLUGIN_DIR_PATH . '/inc/options/single-elements/document-attachments-colors.php', [
|
|
|
|
'prefix' => $prefix
|
|
|
|
], false),
|
|
|
|
blocksy_get_options(TAINACAN_BLOCKSY_PLUGIN_DIR_PATH . '/inc/options/single-elements/document-height.php', [
|
|
|
|
'prefix' => $prefix
|
|
|
|
], false),
|
|
|
|
blocksy_get_options(TAINACAN_BLOCKSY_PLUGIN_DIR_PATH . '/inc/options/single-elements/document-width.php', [
|
|
|
|
'prefix' => $prefix
|
|
|
|
], false),
|
|
|
|
blocksy_get_options(TAINACAN_BLOCKSY_PLUGIN_DIR_PATH . '/inc/options/single-elements/attachments-carousel-width.php', [
|
|
|
|
'prefix' => $prefix
|
|
|
|
], false),
|
|
|
|
blocksy_get_options(TAINACAN_BLOCKSY_PLUGIN_DIR_PATH . '/inc/options/single-elements/document-typography.php', [
|
2021-01-04 22:57:51 +00:00
|
|
|
'prefix' => $prefix
|
|
|
|
], false),
|
2021-04-14 17:40:23 +00:00
|
|
|
blocksy_get_options(TAINACAN_BLOCKSY_PLUGIN_DIR_PATH . '/inc/options/single-elements/attachments-size.php', [
|
2021-01-04 21:40:54 +00:00
|
|
|
'prefix' => $prefix
|
2021-07-06 18:11:01 +00:00
|
|
|
], false),
|
|
|
|
blocksy_get_options(TAINACAN_BLOCKSY_PLUGIN_DIR_PATH . '/inc/options/single-elements/attachments-typography.php', [
|
|
|
|
'prefix' => $prefix
|
2021-08-26 20:21:24 +00:00
|
|
|
], false),
|
2022-03-21 18:31:34 +00:00
|
|
|
blocksy_rand_md5() => [
|
|
|
|
'type' => 'ct-condition',
|
|
|
|
'condition' => [
|
|
|
|
$prefix . 'disable_gallery_lightbox' => 'no'
|
|
|
|
],
|
|
|
|
'options' => [
|
|
|
|
blocksy_get_options(TAINACAN_BLOCKSY_PLUGIN_DIR_PATH . '/inc/options/single-elements/gallery-color-scheme.php', [
|
|
|
|
'prefix' => $prefix
|
|
|
|
], false)
|
|
|
|
]
|
|
|
|
]
|
2021-01-04 21:40:54 +00:00
|
|
|
],
|
|
|
|
]
|
2020-12-30 03:31:53 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
];
|