FEATURE Passing special color for director
This commit is contained in:
parent
7b9d16d5b3
commit
a6045b8bbb
|
|
@ -53,8 +53,10 @@ $authors = get_posts(array(
|
||||||
$author_description = get_field('description', $author->ID);
|
$author_description = get_field('description', $author->ID);
|
||||||
$author_email = get_field('email', $author->ID);
|
$author_email = get_field('email', $author->ID);
|
||||||
|
|
||||||
|
$is_director = $author->ID === 476 ? true : false;
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<li class="comity-type__item author-card ">
|
<li class="comity-type__item author-card <?php echo $is_director ? 'author-card--director' : ''; ?>">
|
||||||
<div class="author-card__profile-picture">
|
<div class="author-card__profile-picture">
|
||||||
<?php if ($author_thumbnail) : ?>
|
<?php if ($author_thumbnail) : ?>
|
||||||
<img src="<?php echo $author_thumbnail['url']; ?>" alt="<?php echo $author_thumbnail['alt']; ?>">
|
<img src="<?php echo $author_thumbnail['url']; ?>" alt="<?php echo $author_thumbnail['alt']; ?>">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user