HEX
Server: Apache/2.4.41 (Ubuntu)
System: Linux vm8 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: afleverb (1000)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: //var/www/drakkar_site/wp-content/themes/blocksy/inc/options/single-elements/featured-image.php
<?php

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

$options = [
	$prefix . 'has_featured_image' => [
		'label' => __( 'Featured Image', 'blocksy' ),
		'type' => 'ct-panel',
		'switch' => true,
		'value' => 'no',
		'sync' => blocksy_sync_single_post_container([
			'prefix' => $prefix
		]),
		'inner-options' => [

			blocksy_rand_md5() => [
				'title' => __( 'General', 'blocksy' ),
				'type' => 'tab',
				'options' => [

					[

						$prefix . 'featured_image_ratio' => [
							'label' => __( 'Image Ratio', 'blocksy' ),
							'type' => 'ct-ratio',
							'view' => 'inline',
							'value' => 'original',
							'sync' => 'live',
						],

						$prefix . 'featured_image_size' => [
							'label' => __('Image Size', 'blocksy'),
							'type' => 'ct-select',
							'value' => 'full',
							'view' => 'text',
							'design' => 'block',
							'divider' => 'top',
							'sync' => blocksy_sync_single_post_container([
								'prefix' => $prefix
							]),
							'choices' => blocksy_ordered_keys(blocksy_get_all_image_sizes())
						],

					],

					(
						function_exists('blc_site_has_feature')
						&&
						blc_site_has_feature('base_pro')
					) ? [
						$prefix . 'video_thumbnail' => [
							'label' => __( 'Video Thumbnail', 'blocksy' ),
							'type' => 'ct-switch',
							'value' => 'no',
							'divider' => 'top',
							'sync' => blocksy_sync_single_post_container([
								'prefix' => $prefix
							]),
						]
					] : [],

					blocksy_rand_md5() => [
						'type' => 'ct-condition',
						'condition' => [
							$prefix . 'structure' => 'type-3 | type-4',
							$prefix . 'content_style' => '~wide',
						],
						'options' => [
							$prefix . 'featured_image_width' => [
								'label' => __( 'Image Width', 'blocksy' ),
								'type' => 'ct-radio',
								'value' => 'default',
								'view' => 'text',
								'design' => 'block',
								'divider' => 'top',
								'choices' => [
									'default' => __( 'Default', 'blocksy' ),
									'wide' => __( 'Wide', 'blocksy' ),
									'full' => __( 'Full', 'blocksy' ),
								],
								'sync' => 'live'
							],
						],
					],

					blocksy_rand_md5() => [
						'type' => 'ct-condition',
						'condition' => [
							$prefix . 'hero_enabled' => 'yes',
							$prefix . 'hero_section' => '!type-2'
						],
						'options' => [
							$prefix . 'featured_image_location' => [
								'label' => __( 'Image Location', 'blocksy' ),
								'type' => 'ct-radio',
								'value' => 'above',
								'view' => 'text',
								'design' => 'block',
								'divider' => 'top',
								'choices' => [
									'above' => __( 'Above Title', 'blocksy' ),
									'below' => __( 'Below Title', 'blocksy' ),
								],
								'sync' => blocksy_sync_single_post_container([
									'prefix' => $prefix
								]),
							],
						],
					],

					$prefix . 'featured_image_visibility' => [
						'label' => __( 'Image Visibility', 'blocksy' ),
						'type' => 'ct-visibility',
						'design' => 'block',
						'divider' => 'top',
						'value' => blocksy_default_responsive_value([
							'desktop' => true,
							'tablet' => true,
							'mobile' => true,
						]),
						'choices' => blocksy_ordered_keys([
							'desktop' => __( 'Desktop', 'blocksy' ),
							'tablet' => __( 'Tablet', 'blocksy' ),
							'mobile' => __( 'Mobile', 'blocksy' ),
						]),

						'sync' => 'live'
					],

				],
			],

			blocksy_rand_md5() => [
				'title' => __( 'Design', 'blocksy' ),
				'type' => 'tab',
				'options' => [

					$prefix . 'featured_image_border_radius' => [
						'label' => __( 'Border Radius', 'blocksy' ),
						'sync' => 'live',
						'type' => 'ct-spacing',
						'divider' => 'top',
						'value' => blocksy_spacing_value(),
						'min' => 0,
						'responsive' => true
					],

				],
			],

		],
	],

];