content-job-listing-list-view.php 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. <?php
  2. /**
  3. * The template for displaying job content in list view within loops.
  4. *
  5. * Override this template by copying it to yourtheme/simple_job_board/content-job-listing-list-view.php
  6. *
  7. * @author PressTigers
  8. * @package Simple_Job_Board
  9. * @subpackage Simple_Job_Board/Templates
  10. * @version 2.0.0
  11. * @since 2.2.0
  12. * @since 2.2.3 Added @hook sjb_job_listing_heading_after.
  13. * @since 2.3.0 Added "sjb_list_view_template" filter.
  14. * @since 2.4.0 Revised whole HTML template
  15. */
  16. ob_start();
  17. global $post;
  18. /**
  19. * Fires before job listing on job listing page.
  20. *
  21. * @since 2.2.0
  22. */
  23. do_action('sjb_job_listing_list_view_before');
  24. ?>
  25. <!-- Start Jobs List View
  26. ================================================== -->
  27. <div class="list-data">
  28. <!-- Jobs List view header -->
  29. <header>
  30. <div class="row">
  31. <?php
  32. /**
  33. * Template -> Logo:
  34. *
  35. * - Company Logo
  36. */
  37. get_simple_job_board_template('listing/list-view/logo.php');
  38. $class = ( 'logo-detail' === get_option( 'job_board_listing' ) || 'without-detail' === get_option( 'job_board_listing' ) )?
  39. 'col-md-11 col-sm-10':'col-md-12 col-sm-10';
  40. ?>
  41. <div class="<?php echo $class; ?>">
  42. <div class="row">
  43. <?php
  44. /**
  45. * Template -> Job Title & Company Name:
  46. *
  47. * - Job Title
  48. * - Company Name
  49. */
  50. get_simple_job_board_template('listing/list-view/job-title-company.php');
  51. /**
  52. * Template -> Type:
  53. *
  54. * - Job Type
  55. */
  56. get_simple_job_board_template('listing/list-view/type.php');
  57. /**
  58. * Template -> Posted Date:
  59. *
  60. * - Job Posted Date
  61. */
  62. get_simple_job_board_template('listing/list-view/posted-date.php');
  63. ?>
  64. </div>
  65. <div class="clearfix"></div>
  66. <div class="job_location">
  67. <?php
  68. /**
  69. * Template -> Location:
  70. *
  71. * - Job Location
  72. */
  73. get_simple_job_board_template('listing/list-view/location.php');
  74. ?>
  75. </div>
  76. </div>
  77. </div>
  78. </header>
  79. <?php
  80. /**
  81. * Template -> Short Description:
  82. *
  83. * - Job Description
  84. */
  85. get_simple_job_board_template('listing/list-view/short-description.php');
  86. ?>
  87. </div>
  88. <!-- ==================================================
  89. End Jobs List View -->
  90. <div class="clearfix"></div>
  91. <?php
  92. /**
  93. * Fires after job listing on job listing page.
  94. *
  95. * @since 2.2.0
  96. */
  97. do_action('sjb_job_listing_list_view_after');
  98. $html_list_view = ob_get_clean();
  99. /**
  100. * Modify the Job Listing List View Template.
  101. *
  102. * @since 2.3.0
  103. *
  104. * @param html $html_list_view Job Listing List View HTML.
  105. */
  106. echo apply_filters('sjb_list_view_template', $html_list_view);