short-description.php 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. /**
  3. * The template for displaying job short description in list view
  4. *
  5. * Override this template by copying it to yourtheme/simple_job_board/listing/list-view/short-description.php
  6. *
  7. * @author PressTigers
  8. * @package Simple_Job_Board
  9. * @subpackage Simple_Job_Board/templates/listing/list-view
  10. * @version 2.0.0
  11. * @since 2.2.3
  12. * @since 2.3.0 Added "sjb_list_view_short_description_template" filter.
  13. * @since 2.4.0 Revised whole HTML template
  14. */
  15. ob_start();
  16. if ('logo-detail' === get_option('job_board_listing') || 'without-logo' === get_option('job_board_listing')) {
  17. ?>
  18. <!-- Start Job Short Description
  19. ================================================== -->
  20. <div class="job-description">
  21. <?php echo sjb_get_the_excerpt(); ?>
  22. </div>
  23. <!-- ==================================================
  24. End Job Short Description -->
  25. <?php
  26. }
  27. $html = ob_get_clean();
  28. /**
  29. * Modify the Job Listing -> Short Description Template.
  30. *
  31. * @since 2.3.0
  32. *
  33. * @param html $html Short Description HTML.
  34. */
  35. echo apply_filters( 'sjb_list_view_short_description_template', $html );