single-jobpost.php 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. <?php
  2. /**
  3. * The Template for displaying job details
  4. *
  5. * Override this template by copying it to yourtheme/simple_job_board/single-jobpost.php
  6. *
  7. * @author PressTigers
  8. * @package Simple_Job_Board
  9. * @subpackage Simple_Job_Board/Templates
  10. * @version 1.1.0
  11. * @since 2.2.0
  12. * @since 2.2.3 Enqueued Front Styles & Revised the HTML structure.
  13. * @since 2.2.4 Enqueued Front end Scripts.
  14. * @since 2.3.0 Added "sjb_archive_template" filter.
  15. */
  16. get_header();
  17. ob_start();
  18. global $post;
  19. /**
  20. * Enqueue Frontend Scripts.
  21. *
  22. * @since 2.2.4
  23. */
  24. do_action('sjb_enqueue_scripts');
  25. /**
  26. * Hook -> sjb_before_main_content
  27. *
  28. * @hooked sjb_job_listing_wrapper_start - 10
  29. * - Output Opening div of Main Container.
  30. * - Output Opening div of Content Area.
  31. *
  32. * @since 2.2.0
  33. * @since 2.2.3 Removed the content wrapper opening div.
  34. */
  35. do_action( 'sjb_before_main_content' );
  36. ?>
  37. <!-- Start Content Wrapper
  38. ================================================== -->
  39. <div class="sjb-page">
  40. <div class="sjb-detail">
  41. <div class="list-data">
  42. <?php
  43. while ( have_posts() ) : the_post();
  44. /**
  45. * Template -> Content Single Job Listing:
  46. *
  47. * - Company Meta
  48. * - Job Description
  49. * - Job Features
  50. * - Job Application Form
  51. */
  52. get_simple_job_board_template('content-single-job-listing.php');
  53. endwhile;
  54. ?>
  55. </div>
  56. <div class="clearfix"></div>
  57. </div>
  58. </div>
  59. <!-- ==================================================
  60. End Content Wrapper -->
  61. <?php
  62. /**
  63. * Hook -> sjb_after_main_content
  64. *
  65. * @hokoed sjb_job_listing_wrapper_end - 10
  66. *
  67. * - Output Closing div of Main Container.
  68. * - Output Closing div of Content Area.
  69. *
  70. * @since 2.2.0
  71. * @since 2.2.3 Removed the content wrapper closing div
  72. */
  73. do_action('sjb_after_main_content');
  74. $html_single = ob_get_clean();
  75. /**
  76. * Modify the Jobs Archive Page Template.
  77. *
  78. * @since 2.3.0
  79. *
  80. * @param html $html_archive Jobs Archive Page HTML.
  81. */
  82. echo apply_filters('sjb_single_template', $html_single);
  83. get_footer();