Advertisement
Guest User

Untitled

a guest
Mar 27th, 2020
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.78 KB | None | 0 0
  1. <?php
  2. /**
  3. * Job listing preview when submitting job listings.
  4. *
  5. * This template can be overridden by copying it to yourtheme/job_manager/job-preview.php.
  6. *
  7. * @see https://wpjobmanager.com/document/template-overrides/
  8. * @author Automattic
  9. * @package wp-job-manager
  10. * @category Template
  11. * @version 1.32.2
  12. */
  13.  
  14. if ( ! defined( 'ABSPATH' ) ) {
  15. exit; // Exit if accessed directly.
  16. }
  17. ?>
  18. <form method="post" id="job_preview" action="<?php echo esc_url( $form->get_action() ); ?>">
  19. <?php
  20. /**
  21. * Fires at the top of the preview job form.
  22. *
  23. * @since 1.32.2
  24. */
  25. do_action( 'preview_job_form_start' );
  26. ?>
  27. <div class="job_listing_preview_title">
  28. <input type="submit" name="continue" id="job_preview_submit_button" class="button job-manager-button-submit-listing" value="<?php echo esc_attr( apply_filters( 'submit_job_step_preview_submit_text', __( 'Submit Listing', 'wp-job-manager' ) ) ); ?>" />
  29. <input type="submit" name="edit_job" class="button job-manager-button-edit-listing" value="<?php esc_attr_e( 'Edit listing', 'wp-job-manager' ); ?>" />
  30. <h2><?php esc_html_e( 'Preview', 'wp-job-manager' ); ?></h2>
  31. </div>
  32. <div class="job_listing_preview single_job_listing">
  33. <h1><?php wpjm_the_job_title(); ?></h1>
  34.  
  35. <?php get_job_manager_template_part( 'content-single', 'job_listing' ); ?>
  36.  
  37. <input type="hidden" name="job_id" value="<?php echo esc_attr( $form->get_job_id() ); ?>" />
  38. <input type="hidden" name="step" value="<?php echo esc_attr( $form->get_step() ); ?>" />
  39. <input type="hidden" name="job_manager_form" value="<?php echo esc_attr( $form->get_form_name() ); ?>" />
  40. </div>
  41. <?php
  42. /**
  43. * Fires at the bottom of the preview job form.
  44. *
  45. * @since 1.32.2
  46. */
  47. do_action( 'preview_job_form_end' );
  48. ?>
  49. </form>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement