FEATURE Adding a link to the author single
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
e513739105
commit
d491283f2c
|
|
@ -59,15 +59,21 @@ $authors = get_posts(array(
|
||||||
<li class="comity-type__item author-card <?php echo $is_director ? 'author-card--director' : ''; ?>">
|
<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']; ?>">
|
<a href="<?php echo get_the_permalink($author->ID); ?>">
|
||||||
|
<img src="<?php echo $author_thumbnail['url']; ?>" alt="<?php echo $author_thumbnail['alt']; ?>">
|
||||||
|
</a>
|
||||||
<?php else : ?>
|
<?php else : ?>
|
||||||
<div class="author-card__profile-picture-placeholder lol author-card__profile-picture-placeholder--<?php echo $placeholder_thumbnail_counter % 3 + 1; ?>n">
|
<a href="<?php echo get_the_permalink($author->ID); ?>">
|
||||||
<!-- <img class="" src="<?php echo get_template_directory_uri(); ?>/assets/images/placeholder-author.png" alt="Placeholder author"> -->
|
<div class="author-card__profile-picture-placeholder lol author-card__profile-picture-placeholder--<?php echo $placeholder_thumbnail_counter % 3 + 1; ?>n">
|
||||||
</div>
|
<!-- <img class="" src="<?php echo get_template_directory_uri(); ?>/assets/images/placeholder-author.png" alt="Placeholder author"> -->
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
<?php $placeholder_thumbnail_counter++; ?>
|
<?php $placeholder_thumbnail_counter++; ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</div>
|
</div>
|
||||||
<h4 class="author-card__name"><?php echo $author->post_title; ?></h4>
|
<h4 class="author-card__name">
|
||||||
|
<a href="<?php echo get_the_permalink($author->ID); ?>"> <?php echo $author->post_title; ?></a>
|
||||||
|
</h4>
|
||||||
|
|
||||||
<p class="author-card__bio"><?php echo $author_description; ?></p>
|
<p class="author-card__bio"><?php echo $author_description; ?></p>
|
||||||
<?php if ($author_email) : ?>
|
<?php if ($author_email) : ?>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user