32 lines
1.5 KiB
HTML
32 lines
1.5 KiB
HTML
{{ "<!-- SHARE COLUMN -->" | safeHTML }}
|
|
{{ $data := index .Site.Data .Site.Language.Lang }}
|
|
<div class="sharecolumn">
|
|
|
|
<form action="/share" method="GET" class="share-buttons side" target="_blank">
|
|
<input name="popup" id="no-share-popup-side" type="radio" />
|
|
<input name="ref" value="pmpc-side" type="hidden" />
|
|
<input name="url" value="{{ .Site.Params.url }}" type="hidden" /> <!-- replace with your URL -->
|
|
<input name="title" value="{{ .Site.Title }}" type="hidden" /> <!-- replace with site/share title -->
|
|
<input class="n" name="website" placeholder="Please do not put anything here" /> <!-- stupid bot detection -->
|
|
|
|
{{ range $data.share }}
|
|
{{ if eq .userinput true }}
|
|
<label class="button share-{{ .id }}" title="{{ .titleBefore}} {{ .name }} {{ .titleAfter }}" for="{{ .id }}-share-side"> </label>
|
|
<input name="popup" id="{{ .id }}-share-side" type="radio" />
|
|
<span class="popup {{ .id }}">
|
|
<label for="no-share-popup-side"></label>
|
|
<input name="{{ .id }}pod" value="" placeholder="{{ .name }} URL ({{ .id }}.tld)" type="text" />
|
|
<button type="submit" name="service" value="{{ .id }}">OK</button>
|
|
</span>
|
|
{{ end }}
|
|
{{ end }}
|
|
|
|
{{ range $data.share }}
|
|
{{ if ne .userinput true }}
|
|
<button type="submit" name="service" value="{{ .id }}" class="button share-{{ .id }}" title="{{ .titleBefore}} {{ .name }} {{ .titleAfter }}"> </button>
|
|
{{ end }}
|
|
{{ end }}
|
|
</form>
|
|
|
|
</div>
|