Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- get_header();
- $model = JE_Job_Model::model()->find( get_the_ID() );
- ?>
- <?php
- setup_postdata($model->wp_post);
- function get_end_date() {
- global $model;
- return date_i18n( get_option( 'date_format' ), strtotime( $model->dead_line ) );
- $due = get_end_date();
- ?>
- <?php while ( have_posts() ): the_post(); ?>
- <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</a></div>
- </div>
- </div>
- <div style="clear: both"></div>
- </div>
- </div>
- <?php endwhile; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement