*' : "" : '
*';
$id = preg_replace('/[^\p{L}\p{N}\_]/u', '_', $key);
$name = preg_replace('/[^\p{L}\p{N}\_]/u', '_', $key);
$label = isset($val['label']) ? $val['label'] : ucwords(str_replace('_', ' ', substr($key, 7)));
// Field Type Meta
$field_type_meta = array(
'id' => $id,
'name' => $name,
'label' => $label,
'type' => $val['type'],
'is_required' => $is_required,
'required_class' => $required_class,
'required_field_asterisk' => $required_field_asterisk,
);
/**
* Fires on job detail page at start of job application form.
*
* @since 2.3.0
*/
do_action('sjb_job_application_form_fields', $field_type_meta);
switch ($val['type']) {
case 'text':
echo '
'
. ''
. ''
. '
';
break;
case 'text_area':
echo '
'
. ''
. ''
. '
';
break;
case 'email':
echo '
'
. ''
. '' . esc_html__('A valid email address is required.', 'simple-job-board') . ''
. '
';
break;
case 'phone':
echo '
'
. ''
. '' . esc_html__('A valid phone number is required.', 'simple-job-board') . ' '
. '
';
break;
case 'date':
echo '
'
. ''
. ''
. '
';
break;
case 'radio':
if ($val['options'] != '') {
echo '
';
}
break;
case 'dropdown':
if ($val['options'] != '') {
echo '
';
}
break;
case 'checkbox' :
if ($val['options'] != '') {
echo '
';
}
break;
}
endif;
endforeach;
endif;
/**
* Modify the output of file upload button.
*
* @since 2.2.0
*
* @param string $sjb_attach_resume Attach resume button.
*/
$sjb_attach_resume = '
'
. ''
. ''
. ''
. '
';
echo apply_filters('sjb_attach_resume', $sjb_attach_resume);
/**
* GDPR Part
*
* @since 2.6.0
*/
//Enable GDPR Settings
$sjb_gdpr_settings = get_option('job_board_privacy_settings');
$privacy_policy_label = get_option('job_board_privacy_policy_label', '');
$privacy_policy_content = get_option('job_board_privacy_policy_content', '');
$term_conditions_label = get_option('job_board_term_conditions_label', '');
$term_conditions_content = get_option('job_board_term_conditions_content', '');
if ('yes' == $sjb_gdpr_settings) {
?>