2017-03-17 12:13:58 +01:00
|
|
|
{{ "<!-- SPREAD -->" | safeHTML }}
|
2017-03-20 18:40:55 +01:00
|
|
|
{{ $data := index .Site.Data .Site.Language.Lang }}
|
2017-03-17 12:13:58 +01:00
|
|
|
<section id="spread" class="bg-dark">
|
|
|
|
<div class="container">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-lg-8 col-lg-offset-2 text-center">
|
|
|
|
{{ with .Site.Params.spread.headline }}
|
|
|
|
<h2 class="section-heading">{{ . }}</h2>
|
|
|
|
{{ end }}
|
2017-03-20 12:13:07 +01:00
|
|
|
{{ with .Site.Params.spread.promoText }}
|
|
|
|
<p class="text-faded">{{ . | markdownify }}</p>
|
2017-03-17 12:13:58 +01:00
|
|
|
{{ end }}
|
2017-03-20 15:05:03 +01:00
|
|
|
<a href="{{ .Site.Params.spread.promoButtonLink }}" class="btn btn-default btn-xl page-scroll wow tada">{{ .Site.Params.spread.promoButtonText }}</a>
|
2017-03-20 12:13:07 +01:00
|
|
|
<hr class="light">
|
|
|
|
{{ with .Site.Params.spread.shareText }}
|
2017-03-17 12:13:58 +01:00
|
|
|
<p class="text-faded">{{ . | markdownify }}</p>
|
|
|
|
{{ end }}
|
2017-03-20 12:13:07 +01:00
|
|
|
|
|
|
|
<div class="share-buttons">
|
2017-03-20 18:40:55 +01:00
|
|
|
{{ .Site.Params.spread.shareTitle }}
|
2017-08-29 22:50:07 +02:00
|
|
|
|
2017-06-22 12:28:23 +02:00
|
|
|
<form action="/share" method="GET" class="share-buttons spread" target="_blank">
|
2017-05-25 23:36:54 +02:00
|
|
|
<input name="popup" id="no-share-popup-spread" type="radio" />
|
|
|
|
<input name="ref" value="pmpc-spread" type="hidden" />
|
2017-09-04 19:15:17 +02:00
|
|
|
<input name="url" value="{{ .Site.Params.url }}" type="hidden" />
|
|
|
|
<input id="sharetitle-spread" name="title" value="{{ .Site.Params.spread.defaultSocialText }}" type="hidden" />
|
2017-05-25 23:36:54 +02:00
|
|
|
<input class="n" name="website" placeholder="Please do not put anything here" />
|
|
|
|
|
|
|
|
{{ range $data.share }}
|
|
|
|
{{ if eq .userinput true }}
|
|
|
|
<label class="button share-{{ .id }}" title="{{ .titleBefore}} {{ .name }} {{ .titleAfter }}" for="{{ .id }}-share-spread">{{ .name }}</label>
|
|
|
|
<input name="popup" id="{{ .id }}-share-spread" type="radio" />
|
|
|
|
<span class="popup {{ .id }}">
|
|
|
|
<label for="no-share-popup-spread"></label>
|
|
|
|
<input name="{{ .id }}pod" value="" placeholder="{{ .name }} URL ({{ .id }}.tld)" type="text" />
|
2017-09-04 19:15:17 +02:00
|
|
|
<button type="submit" name="service" value="{{ .id }}" onclick="return changeTitle('{{if isset . "customText"}}{{.customText}}{{else}}{{$.Site.Params.spread.defaultSocialText}}{{end}}')">OK</button>
|
2017-05-25 23:36:54 +02:00
|
|
|
</span>
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ range $data.share }}
|
|
|
|
{{ if ne .userinput true }}
|
2017-09-04 19:15:17 +02:00
|
|
|
<button type="submit" name="service" value="{{ .id }}" class="button share-{{ .id }}" title="{{ .titleBefore}} {{ .name }} {{ .titleAfter }}" onclick="return changeTitle('{{if isset . "customText"}}{{.customText}}{{else}}{{$.Site.Params.spread.defaultSocialText}}{{end}}')">{{ .name }}</button>
|
2017-05-25 23:36:54 +02:00
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
</form>
|
2017-03-20 12:13:07 +01:00
|
|
|
</div>
|
2017-03-17 12:13:58 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</section>
|