put the ad (quote) banners in - last major feature in MISSINGFUNCS

This commit is contained in:
2026-03-02 22:52:45 -07:00
parent c26e7340c7
commit 5fa05bb086
33 changed files with 125 additions and 2 deletions
+10 -1
View File
@@ -49,7 +49,16 @@
<!-- Banner Ad -->
<div class="w-2/5 flex justify-end">
<img src="/img/builtin/placeholder_ad.gif" alt="" class="w-96 h-15 mx-2 my-2">
{{ p := __bannerad.ResolvePath() }}
{{ if p != "" }}
{{ if isset(__bannerad.LinkURL) }}
<a href="{{ __bannerad.LinkURL }}"><img src="{{ p }}" {{ if isset(__bannerad.Caption) }}alt="{{ __bannerad.Caption }}"{{ end }} class="w-96 h-15 mx-2 my-2"></a>
{{ else }}
<img src="{{ p }}" {{ if isset(__bannerad.Caption) }}alt="{{ __bannerad.Caption }}"{{ end }} class="w-96 h-15 mx-2 my-2">
{{ end }}
{{ else }}
&nbsp;
{{ end }}
</div>
</div>