blocksy-tainacan/tainacan-blocksy/inc/options/single-elements/disable-gallery-lightbox.php

21 lines
503 B
PHP
Raw Normal View History

<?php
if (! isset($prefix)) {
$prefix = '';
}
if (! isset($enabled)) {
$enabled = 'no';
}
$options = [
$prefix . 'disable_gallery_lightbox' => [
'label' => __( 'Disable lightbox on main view', 'tainacan-blocksy' ),
'type' => 'ct-switch',
'value' => $enabled,
'setting' => [ 'transport' => 'postMessage' ],
'desc' => __( 'Toggle to not open a modal when clicking in the document.', 'tainacan-blocksy' ),
'sync' => blocksy_sync_single_post_container([
'prefix' => $prefix,
]),
]
];