job-title-company.php 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <?php
  2. /**
  3. * The template for displaying job title and company name in grid view
  4. *
  5. * Override this template by copying it to yourtheme/simple_job_board/listing/grid-view/job-title-company.php
  6. *
  7. * @author PressTigers
  8. * @package Simple_Job_Board
  9. * @subpackage Simple_Job_Board/templates/listing/grid-view
  10. * @version 1.0.0
  11. * @since 2.4.0
  12. */
  13. ob_start();
  14. $class = ( 'logo-detail' === get_option('job_board_listing') || 'without-detail' === get_option('job_board_listing') ) ?
  15. 'col-sm-9' : 'col-sm-12';
  16. ?>
  17. <!-- start Company Title -->
  18. <div class="<?php echo $class; ?>">
  19. <div class="job-info">
  20. <h4>
  21. <a href="<?php the_permalink(); ?>">
  22. <?php
  23. /**
  24. * Template -> Title:
  25. *
  26. * - Job Title
  27. */
  28. get_simple_job_board_template('listing/grid-view/title.php');
  29. /**
  30. * Template -> Company:
  31. *
  32. * - Company Name
  33. */
  34. get_simple_job_board_template('listing/grid-view/company.php');
  35. /**
  36. * Fires after Job heading on job listing page.
  37. *
  38. * @since 2.2.3
  39. */
  40. do_action('sjb_job_listing_heading_after');
  41. ?>
  42. </a>
  43. </h4>
  44. </div>
  45. </div><!-- end Company Title -->
  46. <?php
  47. $html = ob_get_clean();
  48. /**
  49. * Modify the Job Listing -> Job Title & Company Name Template
  50. *
  51. * @since 2.4.0
  52. *
  53. * @param html $html Job Title & Company Name HTML.
  54. */
  55. echo apply_filters('sjb_grid_view_job_title_company_template', $html);