content-single-job-listing.php 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <?php
  2. /**
  3. * Single view Job Fetures
  4. *
  5. * The template for displaying job content in the single-jobpost.php template
  6. *
  7. * Override this template by copying it to yourtheme/simple_job_board/content-single-job-listing.php
  8. *
  9. * @author PressTigers
  10. * @package Simple_Job_Board
  11. * @subpackage Simple_Job_Board/Templates
  12. * @version 1.0.0
  13. * @since 2.1.0
  14. * @since 2.2.3 Added the_content function.
  15. * @since 2.3.0 Added "sjb_single_job_listing_template" filter.
  16. */
  17. ob_start();
  18. ?>
  19. <!-- Start Job Details
  20. ================================================== -->
  21. <?php
  22. /**
  23. * single_job_listing_start hook
  24. *
  25. * @hooked job_listing_meta_display - 20 ( Job Listing Company Meta )
  26. *
  27. * @since 2.1.0
  28. */
  29. do_action('sjb_single_job_listing_start');
  30. ?>
  31. <div class="job-description">
  32. <?php
  33. /**
  34. * Display the post content.
  35. *
  36. * The "the_content" is used to filter the content of the job post. Also make other plugins shortcode compatible with job post editor.
  37. */
  38. the_content();
  39. ?>
  40. </div>
  41. <div class="clearfix"></div>
  42. <?php
  43. /**
  44. * single-job-listing-end hook
  45. *
  46. * @hooked job_listing_features - 20 ( Job Features )
  47. * @hooked job_listing_application_form - 30 ( Job Application Form )
  48. *
  49. * @since 2.1.0
  50. */
  51. do_action('sjb_single_job_listing_end');
  52. ?>
  53. <!-- ==================================================
  54. End Job Details -->
  55. <?php
  56. $html = ob_get_clean();
  57. /**
  58. * Modify the Single Job Listing Template.
  59. *
  60. * @since 2.3.0
  61. *
  62. * @param html $html Single Job Listing HTML.
  63. */
  64. echo apply_filters('sjb_single_job_listing_template', $html);