Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- get_header();
- function get_end_date( $date ) {
- return date_i18n( get_option( 'date_format' ), strtotime( $date ) );
- }
- while ( have_posts() ):
- the_post();
- $model = JE_Job_Model::model()->find( get_the_ID() );
- $due = get_end_date( $model->dead_line );
- ?>
- <div class="jbp_job_except">
- <div class="jbp_inside">
- <div class="row">
- <div class="jbp_terms">
- <div class="category-icon">
- <ul>
- <?php foreach (get_the_terms(get_the_ID(), 'jbp_category') as $cat) : ?>
- <li>
- <a title="<?php echo $cat->name; ?>" href="<?php echo get_term_link($cat->term_id, 'jbp_category'); ?>">
- <img src="<?php echo z_taxonomy_image_url($cat->term_id); ?>" />
- </a>
- </li>
- <?php endforeach; ?>
- </ul>
- </div>
- </div>
- <div class="job-content">
- <div class="job-heading"><p><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></p></div>
- <div class="deadline"><?php echo do_shortcode('[icon type="icon-calendar"]'); ?> <?php echo $due ?></div>
- <div class="budget"><?php echo do_shortcode('[icon type="icon-feather"]'); ?><?php echo $model->render_prices(); ?></div>
- <div class="job-button"><a href="<?php the_permalink(); ?>">View Task <?php echo do_shortcode('[icon type="icon-right-circled"]'); ?></a></div>
- </div>
- </div>
- <div style="clear: both"></div>
- </div>
- </div>
- <?php endwhile; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement