Add the ability to call the author's avatar using the $next and $prev arrays.

Static placeholders in themes can be replaced with this code now to call the author's avatar:
<?php echo $next['authorAvatar']; ?>
<?php echo $prev['authorAvatar']; ?>
This commit is contained in:
KuJoe 2024-09-02 16:51:56 -04:00
commit c1ae1c2cbf

View file

@ -2045,6 +2045,7 @@ function has_prev($prev)
'authorName' => $prev->authorName,
'authorAbout' => $prev->authorAbout,
'authorUrl' => $prev->authorUrl,
'authorAvatar' => $prev->authorAvatar,
'related' => $prev->related,
'views' => $prev->views,
'type' => $prev->type,
@ -2083,6 +2084,7 @@ function has_next($next)
'authorName' => $next->authorName,
'authorAbout' => $next->authorAbout,
'authorUrl' => $next->authorUrl,
'authorAvatar' => $next->authorAvatar,
'related' => $next->related,
'views' => $next->views,
'type' => $next->type,