Skip to content

Instantly share code, notes, and snippets.

@mikejolley
Forked from anonymous/jobapplication
Last active August 29, 2017 16:51
Show Gist options
  • Save mikejolley/1b674702a94cde931015 to your computer and use it in GitHub Desktop.
Save mikejolley/1b674702a94cde931015 to your computer and use it in GitHub Desktop.

Revisions

  1. mikejolley revised this gist Aug 26, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion jobapplication
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    <?php if ( $apply = get_the_job_application_method() && current_user_can( 'employer' ) ) :
    <?php if ( ( $apply = get_the_job_application_method() ) && current_user_can( 'employer' ) ) :
    wp_enqueue_script( 'wp-job-manager-job-application' );
    ?>
    <div class="job_application application">
  2. mikejolley revised this gist Aug 25, 2015. 1 changed file with 1 addition and 4 deletions.
    5 changes: 1 addition & 4 deletions jobapplication
    Original file line number Diff line number Diff line change
    @@ -1,12 +1,9 @@
    <?php if ( $apply = get_the_job_application_method() ) :
    <?php if ( $apply = get_the_job_application_method() && current_user_can( 'employer' ) ) :
    wp_enqueue_script( 'wp-job-manager-job-application' );
    ?>
    <div class="job_application application">
    <?php do_action( 'job_application_start', $apply ); ?>

    <?php if ( ! current_user_can( 'employer' ) ) :?>
    <input type="button" class="application_button button" value="<?php _e( 'Apply for job', 'wp-job-manager' ); ?>" />

    <input type="button" class="application_button button" value="<?php _e( 'Apply for job', 'wp-job-manager' ); ?>" />

    <div class="application_details">
  3. @invalid-email-address Anonymous created this gist Aug 25, 2015.
    22 changes: 22 additions & 0 deletions jobapplication
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,22 @@
    <?php if ( $apply = get_the_job_application_method() ) :
    wp_enqueue_script( 'wp-job-manager-job-application' );
    ?>
    <div class="job_application application">
    <?php do_action( 'job_application_start', $apply ); ?>

    <?php if ( ! current_user_can( 'employer' ) ) :?>
    <input type="button" class="application_button button" value="<?php _e( 'Apply for job', 'wp-job-manager' ); ?>" />

    <input type="button" class="application_button button" value="<?php _e( 'Apply for job', 'wp-job-manager' ); ?>" />

    <div class="application_details">
    <?php
    /**
    * job_manager_application_details_email or job_manager_application_details_url hook
    */
    do_action( 'job_manager_application_details_' . $apply->type, $apply );
    ?>
    </div>
    <?php do_action( 'job_application_end', $apply ); ?>
    </div>
    <?php endif; ?>