mirror of
https://github.com/ascribe/wp-theme
synced 2024-12-22 17:23:55 +01:00
fallback content for job listings
This commit is contained in:
parent
be7ef5ad6b
commit
d57d073905
@ -720,6 +720,7 @@ class Subtemplate {
|
|||||||
|
|
||||||
$careers = get_posts($args);
|
$careers = get_posts($args);
|
||||||
$careerMarkup = '';
|
$careerMarkup = '';
|
||||||
|
|
||||||
if (!empty($careers)) {
|
if (!empty($careers)) {
|
||||||
foreach ($careers as $career) {
|
foreach ($careers as $career) {
|
||||||
$id = $career->ID;
|
$id = $career->ID;
|
||||||
@ -728,6 +729,8 @@ class Subtemplate {
|
|||||||
|
|
||||||
$careerMarkup .= "<li class='career'><a href='{$url}'>{$name}</a></li>";
|
$careerMarkup .= "<li class='career'><a href='{$url}'>{$name}</a></li>";
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
$careerMarkup .= get_sub_field('empty_text');
|
||||||
}
|
}
|
||||||
|
|
||||||
$result = "<section class='subtemplate careers'>
|
$result = "<section class='subtemplate careers'>
|
||||||
|
Loading…
Reference in New Issue
Block a user