2021-01-04 22:57:51 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
if (! isset($prefix)) {
|
|
|
|
$prefix = '';
|
|
|
|
}
|
|
|
|
|
|
|
|
$options = [
|
|
|
|
[
|
|
|
|
blocksy_rand_md5() => [
|
|
|
|
'type' => 'ct-title',
|
2021-04-14 17:40:23 +00:00
|
|
|
'label' => __( 'Metadata Label', 'tainacan-blocksy' ),
|
2021-01-04 22:57:51 +00:00
|
|
|
],
|
|
|
|
],
|
|
|
|
$prefix . 'tainacan_metadata_label_font' => [
|
|
|
|
'type' => 'ct-typography',
|
2021-04-14 17:40:23 +00:00
|
|
|
'label' => __( 'Font settings', 'tainacan-blocksy' ),
|
2021-01-04 22:57:51 +00:00
|
|
|
'value' => blocksy_typography_default_values([
|
|
|
|
'size' => '20px',
|
|
|
|
'variation' => 'n6',
|
|
|
|
'line-height' => '1.2'
|
|
|
|
]),
|
|
|
|
'sync' => blocksy_sync_single_post_container([
|
|
|
|
'prefix' => $prefix
|
|
|
|
])
|
|
|
|
],
|
|
|
|
$prefix . 'tainacan_metadata_label_alignment' => [
|
|
|
|
'type' => 'ct-radio',
|
|
|
|
'label' => __( 'Text alignment', 'blocksy' ),
|
|
|
|
'value' => 'left',
|
|
|
|
'view' => 'text',
|
|
|
|
'attr' => [ 'data-type' => 'alignment' ],
|
|
|
|
'responsive' => true,
|
|
|
|
'design' => 'block',
|
|
|
|
'choices' => [
|
|
|
|
'left' => '',
|
|
|
|
'center' => '',
|
|
|
|
'right' => '',
|
|
|
|
],
|
|
|
|
'sync' => blocksy_sync_single_post_container([
|
|
|
|
'prefix' => $prefix
|
|
|
|
])
|
|
|
|
],
|
|
|
|
$prefix . 'metadata_label_border' => [
|
|
|
|
'label' => __( 'Separator', 'blocksy' ),
|
|
|
|
'type' => 'ct-border',
|
|
|
|
'design' => 'block',
|
|
|
|
'responsive' => true,
|
|
|
|
'setting' => [ 'transport' => 'postMessage' ],
|
|
|
|
'value' => [
|
|
|
|
'width' => 0,
|
|
|
|
'style' => 'solid',
|
|
|
|
'color' => [
|
|
|
|
'color' => 'rgba(125, 125, 125, 0.5)',
|
|
|
|
],
|
|
|
|
],
|
|
|
|
'sync' => blocksy_sync_single_post_container([
|
|
|
|
'prefix' => $prefix
|
|
|
|
])
|
|
|
|
],
|
|
|
|
];
|