Advertisement
Guest User

Untitled

a guest
Apr 16th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  
  3. get_header();
  4.  
  5. function get_end_date( $date ) {
  6. return date_i18n( get_option( 'date_format' ), strtotime( $date ) );
  7. }
  8.  
  9. while ( have_posts() ):
  10. the_post();
  11.  
  12. $model = JE_Job_Model::model()->find( get_the_ID() );
  13. $due = get_end_date( $model->dead_line );
  14. ?>
  15.  
  16. <div class="jbp_job_except">
  17. <div class="jbp_inside">
  18. <div class="row">
  19. <div class="jbp_terms">
  20. <div class="category-icon">
  21. <ul>
  22. <?php foreach (get_the_terms(get_the_ID(), 'jbp_category') as $cat) : ?>
  23. <li>
  24. <a title="<?php echo $cat->name; ?>" href="<?php echo get_term_link($cat->term_id, 'jbp_category'); ?>">
  25. <img src="<?php echo z_taxonomy_image_url($cat->term_id); ?>" />
  26. </a>
  27. </li>
  28. <?php endforeach; ?>
  29. </ul>
  30. </div>
  31. </div>
  32. <div class="job-content">
  33. <div class="job-heading"><p><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></p></div>
  34. <div class="deadline"><?php echo do_shortcode('[icon type="icon-calendar"]'); ?> <?php echo $due ?></div>
  35. <div class="budget"><?php echo do_shortcode('[icon type="icon-feather"]'); ?><?php echo $model->render_prices(); ?></div>
  36. <div class="job-button"><a href="<?php the_permalink(); ?>">View Task <?php echo do_shortcode('[icon type="icon-right-circled"]'); ?></a></div>
  37. </div>
  38. </div>
  39. <div style="clear: both"></div>
  40. </div>
  41. </div>
  42. <?php endwhile; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement