</a> <?php } else { echo ' | '; sjb_the_company_name(); } } ?> </h4> </div> </div> </header> <div class="sjb-col-md-2"> <?php if ($job_type = sjb_get_the_job_type()) { ?> <div id="sjb_job-bolits"> <i class="fa fa-clock-o"></i><?php sjb_the_job_type(); ?> </div> <?php } ?> </div> <div class="sjb-col-md-2"> <?php if ($job_location = sjb_get_the_job_location()) { ?>
/** * Single view Job Meta Box * * Hooked into single_job_listing_start priority 20 * * @since 2.1.0 */ global $post; do_action('single_job_listing_meta_before'); ?> <ul class="meta"> <?php do_action('single_job_listing_meta_start'); ?> <li class="<?php echo sjb_get_the_job_type() ? sanitize_title(sjb_get_the_job_type()->slug) : ''; ?> "><?php sjb_the_job_type(); ?> </li> <li><?php sjb_the_job_location(); ?> </li> <li><date><span class="glyphicon glyphicon-calendar"></span><?php printf(__('Posted %s ago', 'simple-job-board'), human_time_diff(get_post_time('U'), current_time('timestamp'))); ?> </date></li> <?php do_action('single_job_listing_meta_end');
/** * sjb_the_job_type function. * * @access public * @return void */ function sjb_the_job_type($post = NULL) { if ($job_types = sjb_get_the_job_type($post)) { $count = sizeof($job_types); foreach ($job_types as $job_type) { echo $job_type->name; if ($count > 1) { echo ',  '; } $count--; } } }
/** * sjb_the_job_type function. * * @access public * @return void */ function sjb_the_job_type($post = NULL) { if ($job_type = sjb_get_the_job_type($post)) { echo "<div class=\"job-type\"><span class=\"glyphicon glyphicon-time full-time\"></span>" . $job_type->name . "</div>"; } }