PATH:
home
/
letacommog
/
aacote
/
wp-content
/
plugins
/
wp-job-manager
/
templates
/
form-fields
<?php /** * Shows the `radio` form field on job listing forms. * * This template can be overridden by copying it to yourtheme/job_manager/form-fields/radio-field.php. * * Example definition: * * 'test_radio' => array( * 'label' => __( 'Test Radio', 'wp-job-manager' ), * 'type' => 'radio', * 'required' => false, * 'default' => 'option2', * 'priority' => 1, * 'options' => array( * 'option1' => 'This is option 1', * 'option2' => 'This is option 2' * ) * ) * * @see https://wpjobmanager.com/document/template-overrides/ * @author Automattic * @package WP Job Manager * @category Template * @version 1.31.1 */ if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } $field['default'] = empty( $field['default'] ) ? current( array_keys( $field['options'] ) ) : $field['default']; $default = ! empty( $field['value'] ) ? $field['value'] : $field['default']; foreach ( $field['options'] as $option_key => $value ) : ?> <label><input type="radio" name="<?php echo esc_attr( isset( $field['name'] ) ? $field['name'] : $key ); ?>" value="<?php echo esc_attr( $option_key ); ?>" <?php checked( $default, $option_key ); ?> /> <?php echo esc_html( $value ); ?></label><br/> <?php endforeach; ?> <?php if ( ! empty( $field['description'] ) ) : ?><small class="description"><?php echo wp_kses_post( $field['description'] ); ?></small><?php endif; ?>
[+]
..
[-] file-field.php
[edit]
[-] wp-editor-field.php
[edit]
[-] select-field.php
[edit]
[-] uploaded-file-html.php
[edit]
[-] term-multiselect-field.php
[edit]
[-] multiselect-field.php
[edit]
[-] term-checklist-field.php
[edit]
[-] recaptcha-field.php
[edit]
[-] term-select-field.php
[edit]
[-] password-field.php
[edit]
[-] text-field.php
[edit]
[-] textarea-field.php
[edit]
[-] date-field.php
[edit]
[-] checkbox-field.php
[edit]
[-] radio-field.php
[edit]