Skip to content

Commit

Permalink
Fix issue Accessibility Check error
Browse files Browse the repository at this point in the history
  • Loading branch information
Sonny committed May 16, 2022
1 parent 989dd4a commit a62e91f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions framework/frontend/blog/modules/author_info.php
Expand Up @@ -41,13 +41,13 @@
<div class="author-thumb">
<?php if ($params->get('astroid_author_picture', 'gravatar') == "upload") { ?>
<?php if (!empty($params->get('upload', ''))) { ?>
<img width="100" src="<?php echo JURI::base() . $params->get('upload', ''); ?>">
<img width="100" src="<?php echo JURI::base() . $params->get('upload', ''); ?>" alt="<?php echo $user->name."'s Avatar"; ?>" />
<?php } else { ?>
<img width="100" src="<?php echo JURI::base(); ?>images/<?php echo $template->template; ?>/user-avatar.png">
<img width="100" src="<?php echo JURI::base(); ?>images/<?php echo $template->template; ?>/user-avatar.png" alt="<?php echo $user->name."'s Avatar"; ?>" />
<?php } ?>
<?php } ?>
<?php if ($params->get('astroid_author_picture', '') == "gravatar") { ?>
<img src="https://www.gravatar.com/avatar/<?php echo $hash_email; ?>" />
<img src="https://www.gravatar.com/avatar/<?php echo $hash_email; ?>" alt="<?php echo $user->name."'s Avatar"; ?>" />
<?php } ?>
</div>
<?php } ?>
Expand All @@ -58,7 +58,7 @@
<?php foreach ($socials['icon'] as $key => $icon) { ?>
<?php if (empty($socials['link'][$key])) continue; ?>
<li class="author-social-link">
<a target="_blank" rel="noopener" href="<?php echo $socials['link'][$key]; ?>"><i class="<?php echo $icon; ?> fa-lg"></i></a>
<a target="_blank" rel="noopener" href="<?php echo $socials['link'][$key]; ?>"><i class="<?php echo $icon; ?> fa-lg" aria-hidden="true"></i><span class="visually-hidden"><?php echo $icon; ?></span></a>
</li>
<?php } ?>
</ul>
Expand Down

0 comments on commit a62e91f

Please sign in to comment.