1
0
forked from HPR/hpr_generator

Renamed macro get_avatar to get_avatar_src as per suggestion.

Moved host_thumb macro into shared avatar template file.
Made condition of lazy loading a parameter.
This commit is contained in:
Gordon Stanton
2023-03-12 18:48:51 +11:00
parent ebcd906300
commit ce4aefe828
7 changed files with 12 additions and 17 deletions

View File

@@ -18,7 +18,7 @@
on h.hostid = e.hostid '
) %-->
<tr height="80">
<td><!--% PROCESS host_thumb avatar=get_avatar(host.hostid) host_name=host.host host_cnt=host_cnt %--></td>
<td><!--% host_thumb(get_avatar_src(host.hostid), host.host, host_cnt, 8) %--></td>
<td><strong><!--% host.host %--></strong><br>
@@ -30,7 +30,3 @@
</table>
<p><a href="<!--% absolute_path(baseurl) %-->contribute.html">Become a Correspondent</a></p>
</article>
<!--% BLOCK host_thumb %-->
<img src="<!--% absolute_path(baseurl) %-->images/<!--% avatar %-->" height="80" width="80" alt="avatar of <!--% host_name | html %-->" <!--% IF host_cnt > 9 %-->loading="lazy"<!--% END %--> />
<!--% END %-->