SHOW:
|
|
- or go back to the newest paste.
1 | <?php | |
2 | get_header(); | |
3 | $model = JE_Job_Model::model()->find( get_the_ID() ); | |
4 | ?> | |
5 | ||
6 | <?php | |
7 | setup_postdata($model->wp_post); | |
8 | ||
9 | function get_end_date() { | |
10 | global $model; | |
11 | return date_i18n( get_option( 'date_format' ), strtotime( $model->dead_line ) ); | |
12 | $due = get_end_date(); | |
13 | ?> | |
14 | ||
15 | <?php while ( have_posts() ): the_post(); ?> | |
16 | ||
17 | <div class="jbp_job_except"> | |
18 | <div class="jbp_inside"> | |
19 | <div class="row"> | |
20 | <div class="jbp_terms"> | |
21 | <div class="category-icon"> | |
22 | <ul> | |
23 | <?php foreach (get_the_terms(get_the_ID(), 'jbp_category') as $cat) : ?> | |
24 | <li> | |
25 | <a title="<?php echo $cat->name; ?>" href="<?php echo get_term_link($cat->term_id, 'jbp_category'); ?>"> | |
26 | <img src="<?php echo z_taxonomy_image_url($cat->term_id); ?>" /> | |
27 | </a> | |
28 | </li> | |
29 | <?php endforeach; ?> | |
30 | </ul> | |
31 | </div> | |
32 | </div> | |
33 | <div class="job-content"> | |
34 | <div class="job-heading"><p><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></p></div> | |
35 | ||
36 | <div class="deadline"><?php echo do_shortcode('[icon type="icon-calendar"]'); ?> <?php echo $due ?></div> | |
37 | - | <div class="budget"><?php echo do_shortcode('[icon type="icon-feather"]'); ?></div> |
37 | + | <div class="budget"><?php echo do_shortcode('[icon type="icon-feather"]'); ?> <?php echo $model->render_prices(); ?></div> |
38 | <div class="job-button"><a href="<?php the_permalink(); ?>">View Task</a></div> | |
39 | ||
40 | </div> | |
41 | ||
42 | </div> | |
43 | <div style="clear: both"></div> | |
44 | ||
45 | </div> | |
46 | </div> | |
47 | <?php endwhile; ?> |