From ce4aefe8288c0dddf9137521dcc8f4033431e0e6 Mon Sep 17 00:00:00 2001 From: Gordon Stanton Date: Sun, 12 Mar 2023 18:48:51 +1100 Subject: [PATCH] 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. --- templates/content-correspondent.tpl.html | 2 +- templates/content-correspondents.tpl.html | 6 +----- templates/content-episode.tpl.html | 4 ++-- templates/content-index.tpl.html | 5 ++--- templates/content-twat_episode.tpl.html | 4 ++-- templates/host-thumbnail.tpl.html | 3 --- templates/shared-avatar.tpl.html | 5 ++++- 7 files changed, 12 insertions(+), 17 deletions(-) delete mode 100644 templates/host-thumbnail.tpl.html diff --git a/templates/content-correspondent.tpl.html b/templates/content-correspondent.tpl.html index 2b677a2..ea5398c 100644 --- a/templates/content-correspondent.tpl.html +++ b/templates/content-correspondent.tpl.html @@ -55,7 +55,7 @@

Correspondent

-

Host Image
:


diff --git a/templates/content-correspondents.tpl.html b/templates/content-correspondents.tpl.html index 585eeae..b9bd96f 100644 --- a/templates/content-correspondents.tpl.html +++ b/templates/content-correspondents.tpl.html @@ -18,7 +18,7 @@ on h.hostid = e.hostid ' ) %--> - +
@@ -30,7 +30,3 @@

Become a Correspondent

- - -avatar of <!--% host_name | html %--> 9 %-->loading="lazy" /> - diff --git a/templates/content-episode.tpl.html b/templates/content-episode.tpl.html index b4d1040..2c6ec91 100644 --- a/templates/content-episode.tpl.html +++ b/templates/content-episode.tpl.html @@ -16,8 +16,8 @@

-

-
+

+
Hosted by on is flagged as and is released under a license.

| diff --git a/templates/content-index.tpl.html b/templates/content-index.tpl.html index 9116754..6de2665 100644 --- a/templates/content-index.tpl.html +++ b/templates/content-index.tpl.html @@ -1,5 +1,4 @@ - @@ -44,9 +43,9 @@

hpr ::

-

+

- +
Hosted by on is flagged as and released under a license.

diff --git a/templates/content-twat_episode.tpl.html b/templates/content-twat_episode.tpl.html index a408bea..0d7b65f 100644 --- a/templates/content-twat_episode.tpl.html +++ b/templates/content-twat_episode.tpl.html @@ -52,8 +52,8 @@

-

-
+

+
Hosted by on is flagged as and is released under a license.

diff --git a/templates/host-thumbnail.tpl.html b/templates/host-thumbnail.tpl.html deleted file mode 100644 index a7dda96..0000000 --- a/templates/host-thumbnail.tpl.html +++ /dev/null @@ -1,3 +0,0 @@ - -Thumbnail of <!--% host_name | html %-->loading="lazy" /> - diff --git a/templates/shared-avatar.tpl.html b/templates/shared-avatar.tpl.html index ffda253..c0e05db 100644 --- a/templates/shared-avatar.tpl.html +++ b/templates/shared-avatar.tpl.html @@ -1,5 +1,8 @@ - + hosts/ hpr_logo.png + +Thumbnail of <!--% host_name | html %--> min_cnt %-->loading="lazy" /> +