2020-12-29 04:33:20 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
if (! isset($prefix)) {
|
|
|
|
$prefix = '';
|
|
|
|
} else {
|
|
|
|
$prefix = $prefix . '_';
|
|
|
|
}
|
|
|
|
|
|
|
|
$options = [
|
|
|
|
$prefix . 'metadata-list' => [
|
2020-12-30 03:31:53 +00:00
|
|
|
'label' => __( 'Metadata list', 'blocksy-tainacan' ),
|
2020-12-29 04:33:20 +00:00
|
|
|
'type' => 'ct-panel',
|
|
|
|
'sync' => blocksy_sync_whole_page([
|
|
|
|
'prefix' => $prefix,
|
|
|
|
]),
|
|
|
|
'inner-options' => [
|
|
|
|
blocksy_get_options(get_stylesheet_directory() . '/inc/options/single-elements/show-title-metadata.php', [
|
2020-12-30 03:31:53 +00:00
|
|
|
'prefix' => $prefix,
|
2020-12-29 04:33:20 +00:00
|
|
|
'enabled' => 'yes'
|
|
|
|
], false),
|
|
|
|
blocksy_get_options(get_stylesheet_directory() . '/inc/options/single-elements/show-thumbnail.php', [
|
2020-12-30 03:31:53 +00:00
|
|
|
'prefix' => $prefix,
|
2020-12-29 04:33:20 +00:00
|
|
|
'enabled' => 'no'
|
|
|
|
], false),
|
|
|
|
blocksy_get_options(get_stylesheet_directory() . '/inc/options/single-elements/metadata-columns.php', [
|
2020-12-30 03:31:53 +00:00
|
|
|
'prefix' => $prefix
|
2020-12-29 04:33:20 +00:00
|
|
|
], false)
|
|
|
|
]
|
|
|
|
]
|
|
|
|
];
|