| Server IP : 141.193.213.10 / Your IP : 216.73.216.116 Web Server : nginx System : Linux pod-400555 6.8.0-1055-gke #61-Ubuntu SMP Tue May 26 22:57:42 UTC 2026 x86_64 User : fpm200079 ( 200079) PHP Version : 8.2.35 Disable Function : apache_child_terminate,apache_get_modules,apache_get_version,apache_getenv,apache_note,apache_setenv,disk_free_space,disk_total_space,diskfreespace,dl,exec,fastcgi_finish_request,link,opcache_compile_file,opcache_get_configuration,opcache_invalidate,opcache_is_script_cached,opcache_reset,passthru,pclose,pcntl_exec,popen,posix_getpid,posix_getppid,posix_getpwuid,posix_kill,posix_mkfifo,posix_setegid,posix_seteuid,posix_setgid,posix_setpgid,posix_setsid,posix_setuid,posix_uname,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,realpath_cache_get,shell_exec,show_source,symlink,system MySQL : OFF | cURL : ON | WGET : OFF | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /nas/content/live/bartislaw/wp-content/plugins/js_composer/include/templates/form-fields/ |
Upload File : |
<?php
/**
* Radio form field template.
*
* @var string $id Field id attribute.
* @var string $name Field name attribute.
* @var string $value Field value.
* @var string $label Label text.
* @var bool $checked Whether radio is checked.
* @var string $class Additional CSS classes for item wrapper.
* @var string $wrapper_class Additional CSS classes for outer wrapper.
* @var string $input_attr_class Pre-built input class attribute string (e.g. ' class="..."').
* @var string $description Optional description text.
* @var string $label_attr_string Pre-built label data attributes string.
* @var string $data_attr_string Pre-built input data attributes string.
*
* @package WPBakeryPageBuilder
* @since 9.0
*/
if ( ! defined( 'ABSPATH' ) ) {
die( '-1' );
}
?>
<div class="wpb_radio-item <?php echo esc_attr( $class ); ?> <?php echo esc_attr( $wrapper_class ); ?>">
<input type="radio"
<?php echo $id ? 'id="' . esc_attr( $id ) . '"' : ''; ?>
<?php echo $name ? 'name="' . esc_attr( $name ) . '"' : ''; ?>
<?php
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- escaped by caller.
echo $input_attr_class;
?>
value="<?php echo esc_attr( $value ); ?>"
<?php checked( $checked ); ?>
<?php
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- escaped during string build.
echo $data_attr_string;
?>
/>
<label class="wpb_radio-label" <?php echo $id ? 'for="' . esc_attr( $id ) . '"' : ''; ?>
<?php
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- escaped during string build.
echo $label_attr_string;
?>
>
<span class="wpb_radio-visual"></span>
<span class="wpb_radio-label-text"><?php echo esc_html( $label ); ?></span>
<?php
if ( $description ) :
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- description contains pre-escaped HTML from templates.
echo $description;
endif;
?>
</label>
</div>