Update footer.php

This change adds a rel='me' info to the mastodon link in the footer. This allows anyone using the Popeye theme to have their website validated in their Mastodon profile.
This commit is contained in:
Joshua Laase 2023-01-02 09:33:36 -06:00
parent 495ceb8bcc
commit 3787192ed8

View file

@ -1,8 +1,14 @@
<footer class="footer p-3 p-md-5 mt-5 text-center">
<div class="container">
<ul class="footer-links ps-0 mb-1">
<?php foreach (HTML::socialNetworks() as $key => $name) {
echo '<a class="color-blue" href="'.$site->{$key}().'"><li class="d-inline-block pe-4">' . $name . '</li></a>';
<?php foreach (HTML::socialNetworks() as $key => $name) {
$link = '<a ';
if(strtolower($key) == 'mastodon') {
$link .= 'rel="me" ';
}
$link .= 'class="color-blue" href="'.$site->{$key}().'"><li class="d-inline-block pe-4">' . $name . '</li></a>';
echo $link;
}
?>
</ul>