blocksy-tainacan/tainacan-blocksy/inc/options/single-elements/metadata-columns.php

34 lines
598 B
PHP
Raw Normal View History

<?php
if (! isset($prefix)) {
$prefix = '';
}
$options = [
$prefix . 'tainacan_metadata_columns' => [
'label' => __( 'Metadata columns width', 'tainacan-blocksy' ),
'type' => 'ct-slider',
'value' => [
'mobile' => '200px',
'tablet' => '300px',
'desktop' => '400px',
],
'units' => blocksy_units_config([
[
'unit' => 'px',
'min' => 200,
'max' => 1200,
],
[
'unit' => 'vw',
'min' => 20,
'max' => 100,
],
]),
'responsive' => true,
'divider' => 'bottom',
'sync' => blocksy_sync_single_post_container([
'prefix' => $prefix
])
],
];