<?php if ($pod = get_current_pod()) { switch ($pod->pod) { case 'industry_category': $pod_listing_type = 'industry'; break; case 'service_category': $pod_listing_type = 'service'; break; case 'solution_category': $pod_listing_type = 'solution'; break; default: return; } $listing = pods($pod_listing_type, array('where' => 't.post_status = "Publish" AND category.id = ' . $pod->field('ID'), 'orderby' => 'CAST(display_order.meta_value AS SIGNED) ASC')); $position = 'left'; } ?> <?php if (isset($listing)) { ?> <div class="pod-listing"> <?php while ($listing->fetch()) { ?> <div class="row listing">
<?php $pod = get_current_pod(); $fields = array('location', 'requirements', 'responsibilities', 'qualifications', 'apply_url'); $title = get_the_title(); foreach ($fields as $field_name) { ${$field_name} = trim($pod->field($field_name)); } if (!empty($location)) { echo "<p id='location'><strong>Location</strong>: {$location}</p>"; } if (!empty($responsibilities)) { echo "<p><strong>Responsibilities:</strong><br />{$responsibilities}</p>"; } if (!empty($qualifications)) { echo "<p><strong>Qualifications:</strong><br />{$qualifications}</p>"; } if (!empty($requirements)) { echo "<p><strong>Education Requirements:</strong><br />{$requirements}</p>"; } //if(!empty($apply_url)) { // $target = strpos($apply_url, "mailto") === 0 ? "" : " target='_blank'"; echo "<p><a href='mailto:hr@alteva.com?subject=Position: {$title} - {$location}'{$target}>Apply Now</a></p>"; //}