<?php if ($job_location = sjb_get_the_job_location()) { ?> <div id="sjb_job-bolits"> <i class="fa fa-location-arrow"></i><?php sjb_the_job_location(); ?> </div> <?php } ?> </div> <div class="sjb-col-md-2"> <?php if ($job_posting_time = sjb_get_the_job_posting_time()) { ?> <div id="sjb_job-bolits"> <i class="fa fa-calendar"></i><?php sjb_the_job_posting_time(); ?> </div> <?php } ?> </div> </article> <?php do_action('single_job_listing_meta_end'); ?>
/** * Display or retrieve the job posting time. * * @access public * @param mixed $id (default: null) * @return void */ function sjb_the_job_posting_time($post = null) { $job_posting_time = sjb_get_the_job_posting_time($post); if (strlen($job_posting_time) == 0) { return; } printf(__('Posted %s ago', 'simple-job-board'), $job_posting_time); }