emails
1 week ago
form-fields
1 week 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
3 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
1 week ago
content-summary-job_listing.php
3 months ago
content-widget-job_listing.php
3 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
3 months ago
job-submit.php
2 years ago
job-submitted.php
2 years ago
notice.php
2 years ago
pagination.php
6 years ago
account-signin.php
75 lines
| 1 | <?php |
| 2 | /** |
| 3 | * In job listing creation flow, this template shows above the job creation form. |
| 4 | * |
| 5 | * This template can be overridden by copying it to yourtheme/job_manager/account-signin.php. |
| 6 | * |
| 7 | * @see https://wpjobmanager.com/document/template-overrides/ |
| 8 | * @author Automattic |
| 9 | * @package wp-job-manager |
| 10 | * @category Template |
| 11 | * @version 1.33.0 |
| 12 | */ |
| 13 | |
| 14 | if ( ! defined( 'ABSPATH' ) ) { |
| 15 | exit; // Exit if accessed directly. |
| 16 | } |
| 17 | ?> |
| 18 | <?php if ( is_user_logged_in() ) : ?> |
| 19 | |
| 20 | <fieldset class="fieldset-logged_in"> |
| 21 | <label><?php esc_html_e( 'Your account', 'wp-job-manager' ); ?></label> |
| 22 | <div class="field account-sign-in"> |
| 23 | <?php |
| 24 | $user = wp_get_current_user(); |
| 25 | // translators: Placeholder %s is the username. |
| 26 | printf( wp_kses_post( __( 'You are currently signed in as <strong>%s</strong>.', 'wp-job-manager' ) ), esc_html( $user->user_login ) ); |
| 27 | ?> |
| 28 | |
| 29 | <a class="button" href="<?php echo esc_url( apply_filters( 'submit_job_form_logout_url', wp_logout_url( get_permalink() ) ) ); ?>"><?php esc_html_e( 'Sign out', 'wp-job-manager' ); ?></a> |
| 30 | </div> |
| 31 | </fieldset> |
| 32 | |
| 33 | <?php else : |
| 34 | $account_required = job_manager_user_requires_account(); |
| 35 | $registration_enabled = job_manager_enable_registration(); |
| 36 | $registration_fields = wpjm_get_registration_fields(); |
| 37 | $use_standard_password_email = wpjm_use_standard_password_setup_email(); |
| 38 | ?> |
| 39 | <fieldset class="fieldset-login_required"> |
| 40 | <label><?php esc_html_e( 'Have an account?', 'wp-job-manager' ); ?></label> |
| 41 | <div class="field account-sign-in"> |
| 42 | <a class="button" href="<?php echo esc_url( apply_filters( 'submit_job_form_login_url', wp_login_url( get_permalink() ) ) ); ?>"><?php esc_html_e( 'Sign in', 'wp-job-manager' ); ?></a> |
| 43 | |
| 44 | <?php if ( $registration_enabled ) : ?> |
| 45 | |
| 46 | <?php printf( esc_html__( 'If you don\'t have an account you can create one below by entering your email address/username.', 'wp-job-manager' ), $account_required ? '' : esc_html__( 'optionally', 'wp-job-manager' ) . ' ' ); ?> |
| 47 | <?php if ( $use_standard_password_email ) : ?> |
| 48 | <?php printf( esc_html__( 'Your account details will be confirmed via email.', 'wp-job-manager' ) ); ?> |
| 49 | <?php endif; ?> |
| 50 | |
| 51 | <?php elseif ( $account_required ) : ?> |
| 52 | |
| 53 | <?php echo wp_kses_post( apply_filters( 'submit_job_form_login_required_message', __( 'You must sign in to create a new listing.', 'wp-job-manager' ) ) ); ?> |
| 54 | |
| 55 | <?php endif; ?> |
| 56 | </div> |
| 57 | </fieldset> |
| 58 | <?php |
| 59 | if ( ! empty( $registration_fields ) ) { |
| 60 | foreach ( $registration_fields as $key => $field ) { |
| 61 | ?> |
| 62 | <fieldset class="fieldset-<?php echo esc_attr( $key ); ?>"> |
| 63 | <label |
| 64 | for="<?php echo esc_attr( $key ); ?>"><?php echo esc_html( $field[ 'label' ] ) . wp_kses_post( apply_filters( 'submit_job_form_required_label', $field[ 'required' ] ? '' : ' <small>' . __( '(optional)', 'wp-job-manager' ) . '</small>', $field ) ); ?></label> |
| 65 | <div class="field <?php echo $field[ 'required' ] ? 'required-field draft-required' : ''; ?>"> |
| 66 | <?php get_job_manager_template( 'form-fields/' . $field[ 'type' ] . '-field.php', [ 'key' => $key, 'field' => $field ] ); ?> |
| 67 | </div> |
| 68 | </fieldset> |
| 69 | <?php |
| 70 | } |
| 71 | do_action( 'job_manager_register_form' ); |
| 72 | } |
| 73 | ?> |
| 74 | <?php endif; ?> |
| 75 |