HEX
Server: Apache
System: Linux b5.s-host.com.ua 4.18.0-305.10.2.el7.x86_64 #1 SMP Fri Jul 23 21:00:55 UTC 2021 x86_64
User: unelbhzm (1470)
PHP: 8.0.18
Disabled: NONE
Upload Files
File: /sites/nuofama.com/wp-content/themes/blocksy/inc/options/general/sidebar-particular.php
<?php

if (! isset($prefix)) {
	$prefix = '';
	$initial_prefix = '';
} else {
	$initial_prefix = $prefix;
	$prefix = $prefix . '_';
}

$options = [

	blocksy_rand_md5() => [
		'type' => 'ct-condition',
		'condition' => [
			$prefix . 'structure' => '!gutenberg'
		],
		'options' => [
			$prefix . 'has_sidebar' => [
				'label' => __( 'Sidebar', 'blocksy' ),
				'type' => 'ct-panel',
				'switch' => true,
				'value' => 'no',
				'sync' => blocksy_sync_whole_page([
					'prefix' => $prefix,
					'loader_selector' => '[class*="ct-container"]'
				]),
				'inner-options' => [
					$prefix . 'sidebar_position' => [
						'label' => __( 'Sidebar Position', 'blocksy' ),
						'type' => 'ct-image-picker',
						'value' => 'right',
						'divider' => 'bottom',
						'condition' => [ $prefix . 'has_sidebar' => 'yes' ],
						'sync' => 'live',
						'choices' => [
							'left' => [
								'src'   => blocksy_image_picker_url( 'left-sidebar.svg' ),
								'title' => __( 'Left Sidebar', 'blocksy' ),
							],

							'right' => [
								'src'   => blocksy_image_picker_url( 'right-sidebar.svg' ),
								'title' => __( 'Right Sidebar', 'blocksy' ),
							],
						],
					],

				],
			],

		]
	],

];