| 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/dynamic-styles/admin/ |
Upload File : |
<?php
blocksy_output_responsive([
'css' => $css,
'tablet_css' => $tablet_css,
'mobile_css' => $mobile_css,
'selector' => ".editor-styles-wrapper",
'variableName' => 'has-boxed',
'value' => blocksy_map_values([
'value' => $has_boxed,
'map' => [
'boxed' => 'var(--true)',
'wide' => 'var(--false)'
]
]),
'unit' => ''
]);
blocksy_output_responsive([
'css' => $css,
'tablet_css' => $tablet_css,
'mobile_css' => $mobile_css,
'selector' => ".editor-styles-wrapper",
'variableName' => 'has-wide',
'value' => blocksy_map_values([
'value' => $has_boxed,
'map' => [
'wide' => 'var(--true)',
'boxed' => 'var(--false)'
]
]),
'unit' => ''
]);
// boxed content area styles
if (blocksy_some_device($has_boxed, 'boxed')) {
blocksy_output_background_css([
'selector' => '.editor-styles-wrapper',
'css' => $css,
'tablet_css' => $tablet_css,
'mobile_css' => $mobile_css,
'value' => blocksy_akg_or_customizer(
'content_background',
$source,
blocksy_background_default_value([
'backgroundColor' => [
'default' => [
'color' => 'var(--theme-palette-color-8)'
],
],
])
),
'responsive' => true,
'conditional_var' => '--has-boxed'
]);
blocksy_output_spacing([
'css' => $css,
'tablet_css' => $tablet_css,
'mobile_css' => $mobile_css,
'selector' => '.editor-styles-wrapper',
'property' => 'theme-boxed-content-border-radius',
'value' => blocksy_akg_or_customizer(
'content_boxed_radius',
$source,
blocksy_spacing_value([
'top' => '3px',
'left' => '3px',
'right' => '3px',
'bottom' => '3px',
])
)
]);
blocksy_output_border([
'css' => $css,
'tablet_css' => $tablet_css,
'mobile_css' => $mobile_css,
'selector' => '.editor-styles-wrapper',
'variableName' => 'theme-boxed-content-border',
'value' => blocksy_akg_or_customizer(
'content_boxed_border',
$source,
[
'width' => 1,
'style' => 'none',
'color' => [
'color' => 'rgba(44,62,80,0.2)',
],
]
),
'default' => [
'width' => 1,
'style' => 'none',
'color' => [
'color' => 'rgba(44,62,80,0.2)',
],
],
'responsive' => true,
'skip_none' => true
]);
blocksy_output_spacing([
'css' => $css,
'tablet_css' => $tablet_css,
'mobile_css' => $mobile_css,
'selector' => '.editor-styles-wrapper',
'property' => 'theme-boxed-content-spacing',
'value' => blocksy_akg_or_customizer(
'boxed_content_spacing',
$source,
[
'desktop' => blocksy_spacing_value([
'top' => '40px',
'left' => '40px',
'right' => '40px',
'bottom' => '40px',
]),
'tablet' => blocksy_spacing_value([
'top' => '35px',
'left' => '35px',
'right' => '35px',
'bottom' => '35px',
]),
'mobile'=> blocksy_spacing_value([
'top' => '20px',
'left' => '20px',
'right' => '20px',
'bottom' => '20px',
]),
]
)
]);
blocksy_output_box_shadow([
'css' => $css,
'tablet_css' => $tablet_css,
'mobile_css' => $mobile_css,
'selector' => '.editor-styles-wrapper',
'variableName' => 'theme-boxed-content-box-shadow',
'value' => blocksy_akg_or_customizer(
'content_boxed_shadow',
$source,
blocksy_box_shadow_value([
'enable' => true,
'h_offset' => 0,
'v_offset' => 12,
'blur' => 18,
'spread' => -6,
'inset' => false,
'color' => [
'color' => 'rgba(34, 56, 101, 0.04)',
],
])
),
'responsive' => true
]);
} else {
$css->put(
'.editor-styles-wrapper',
'background-color: transparent'
);
}