/** * sjb_the_job_location function. * * @access public * @return void */ function sjb_the_job_location($post = NULL) { $post = get_post($post); if ($job_locations = sjb_get_the_job_location($post)) { $count = sizeof($job_locations); foreach ($job_locations as $location) { echo $location->name; if ($count > 1) { echo ',  '; } $count--; } } }
<?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()) { ?> <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()) { ?>
/** * sjb_the_job_location function. * * @access public * @return void */ function sjb_the_job_location($post = NULL) { $post = get_post($post); if ($job_location = sjb_get_the_job_location($post)) { echo "<span class=\"job-location\"><i class=\"glyphicon glyphicon-map-marker\"></i> " . $job_location->name . "</span>"; } }