| Server IP : 38.190.208.107 / Your IP : 216.73.217.46 Web Server : nginx/1.28.1 System : Linux ht2026040333114 6.1.0-10-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.37-1 (2023-07-03) x86_64 User : root ( 0) PHP Version : 8.2.28 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,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_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv,eval,assert,passthru,system,exec,shell_exec,popen,proc_open MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /www/wwwroot/wp.9/wp-content/themes/blocksy/inc/options/single-elements/ |
Upload File : |
<?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('blocksy_companion_site_has_feature')
&&
blocksy_companion_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
],
],
],
],
],
];