emails
2 years ago
form-fields
4 weeks ago
access-denied-browse-job_listings.php
4 years ago
access-denied-single-job_listing.php
3 years ago
account-signin.php
4 years ago
content-job_listing.php
2 months ago
content-no-jobs-found.php
7 years ago
content-single-job_listing-company.php
3 years ago
content-single-job_listing-meta.php
4 years ago
content-single-job_listing.php
4 years ago
content-summary-job_listing.php
2 months ago
content-widget-job_listing.php
2 months ago
content-widget-no-jobs-found.php
7 years ago
job-application-email.php
4 years ago
job-application-url.php
7 years ago
job-application.php
7 years ago
job-dashboard-login.php
7 years ago
job-dashboard-overlay.php
2 years ago
job-dashboard.php
2 years ago
job-filter-job-types.php
2 years ago
job-filters.php
2 years ago
job-listings-end.php
7 years ago
job-listings-start.php
7 years ago
job-pagination.php
7 years ago
job-preview.php
2 years ago
job-stats.php
2 months ago
job-submit.php
2 years ago
job-submitted.php
2 years ago
notice.php
2 years ago
pagination.php
6 years ago
job-submit.php
93 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Content for job submission (`[submit_job_form]`) shortcode. |
| 4 | * |
| 5 | * This template can be overridden by copying it to yourtheme/job_manager/job-submit.php. |
| 6 | * |
| 7 | * @see https://wpjobmanager.com/document/template-overrides/ |
| 8 | * @author Automattic |
| 9 | * @package wp-job-manager |
| 10 | * @category Template |
| 11 | * @version 1.34.3 |
| 12 | */ |
| 13 | |
| 14 | if ( ! defined( 'ABSPATH' ) ) { |
| 15 | exit; // Exit if accessed directly. |
| 16 | } |
| 17 | |
| 18 | global $job_manager; |
| 19 | $captcha_version = WP_Job_Manager\WP_Job_Manager_Recaptcha::instance()->get_recaptcha_version(); |
| 20 | ?> |
| 21 | <form action="<?php echo esc_url( $action ); ?>" method="post" id="submit-job-form" class="job-manager-form" enctype="multipart/form-data"> |
| 22 | |
| 23 | <?php |
| 24 | if ( isset( $resume_edit ) && $resume_edit ) { |
| 25 | printf( '<p><strong>' . esc_html__( "You are editing an existing job. %s", 'wp-job-manager' ) . '</strong></p>', '<a href="?job_manager_form=submit-job&new=1&key=' . esc_attr( $resume_edit ) . '">' . esc_html__( 'Create A New Job', 'wp-job-manager' ) . '</a>' ); |
| 26 | } |
| 27 | ?> |
| 28 | |
| 29 | <?php do_action( 'submit_job_form_start' ); ?> |
| 30 | |
| 31 | <?php if ( apply_filters( 'submit_job_form_show_signin', true ) ) : ?> |
| 32 | |
| 33 | <?php get_job_manager_template( 'account-signin.php' ); ?> |
| 34 | |
| 35 | <?php endif; ?> |
| 36 | |
| 37 | <?php if ( job_manager_user_can_post_job() || job_manager_user_can_edit_job( $job_id ) ) : ?> |
| 38 | |
| 39 | <!-- Job Information Fields --> |
| 40 | <?php do_action( 'submit_job_form_job_fields_start' ); ?> |
| 41 | |
| 42 | <?php foreach ( $job_fields as $key => $field ) : ?> |
| 43 | <fieldset class="fieldset-<?php echo esc_attr( $key ); ?> fieldset-type-<?php echo esc_attr( $field['type'] ); ?>"> |
| 44 | <label for="<?php echo esc_attr( $key ); ?>"><?php echo wp_kses_post( $field['label'] ) . wp_kses_post( apply_filters( 'submit_job_form_required_label', $field['required'] ? '' : ' <small>' . __( '(optional)', 'wp-job-manager' ) . '</small>', $field ) ); ?></label> |
| 45 | <div class="field <?php echo $field['required'] ? 'required-field' : ''; ?>"> |
| 46 | <?php get_job_manager_template( 'form-fields/' . $field['type'] . '-field.php', [ 'key' => $key, 'field' => $field ] ); ?> |
| 47 | </div> |
| 48 | </fieldset> |
| 49 | <?php endforeach; ?> |
| 50 | |
| 51 | <?php do_action( 'submit_job_form_job_fields_end' ); ?> |
| 52 | |
| 53 | <!-- Company Information Fields --> |
| 54 | <?php if ( $company_fields ) : ?> |
| 55 | <h2><?php esc_html_e( 'Company Details', 'wp-job-manager' ); ?></h2> |
| 56 | |
| 57 | <?php do_action( 'submit_job_form_company_fields_start' ); ?> |
| 58 | |
| 59 | <?php foreach ( $company_fields as $key => $field ) : ?> |
| 60 | <fieldset class="fieldset-<?php echo esc_attr( $key ); ?> fieldset-type-<?php echo esc_attr( $field['type'] ); ?>"> |
| 61 | <label for="<?php echo esc_attr( $key ); ?>"><?php echo wp_kses_post( $field['label'] ) . wp_kses_post( apply_filters( 'submit_job_form_required_label', $field['required'] ? '' : ' <small>' . __( '(optional)', 'wp-job-manager' ) . '</small>', $field ) ); ?></label> |
| 62 | <div class="field <?php echo $field['required'] ? 'required-field' : ''; ?>"> |
| 63 | <?php get_job_manager_template( 'form-fields/' . $field['type'] . '-field.php', [ 'key' => $key, 'field' => $field ] ); ?> |
| 64 | </div> |
| 65 | </fieldset> |
| 66 | <?php endforeach; ?> |
| 67 | |
| 68 | <?php do_action( 'submit_job_form_company_fields_end' ); ?> |
| 69 | <?php endif; ?> |
| 70 | |
| 71 | <?php do_action( 'submit_job_form_end' ); ?> |
| 72 | |
| 73 | <p> |
| 74 | <input type="hidden" name="job_manager_form" value="<?php echo esc_attr( $form ); ?>" /> |
| 75 | <input type="hidden" name="job_id" value="<?php echo esc_attr( $job_id ); ?>" /> |
| 76 | <input type="hidden" name="step" value="<?php echo esc_attr( $step ); ?>" /> |
| 77 | <input type="submit" name="submit_job" class="button" |
| 78 | <?php if ('v3' === $captcha_version) echo 'onclick="jm_job_submit_click(event)"'; ?> value="<?php echo esc_attr($submit_button_text); ?>" /> |
| 79 | <?php |
| 80 | if ( isset( $can_continue_later ) && $can_continue_later ) { |
| 81 | echo '<input type="submit" name="save_draft" class="button secondary save_draft" value="' . esc_attr__( 'Save Draft', 'wp-job-manager' ) . '" formnovalidate />'; |
| 82 | } |
| 83 | ?> |
| 84 | <span class="spinner" style="background-image: url(<?php echo esc_url( includes_url( 'images/spinner.gif' ) ); ?>);"></span> |
| 85 | </p> |
| 86 | |
| 87 | <?php else : ?> |
| 88 | |
| 89 | <?php do_action( 'submit_job_form_disabled' ); ?> |
| 90 | |
| 91 | <?php endif; ?> |
| 92 | </form> |
| 93 |