Merge branch 'custom-share-texts' of pmpc/website into master
commit
c418afd205
|
@ -120,6 +120,7 @@ DefaultContentLanguage = "en"
|
||||||
promoButtonText = "Get promo material"
|
promoButtonText = "Get promo material"
|
||||||
promoButtonLink = "https://fsfe.org/promo#pmpc"
|
promoButtonLink = "https://fsfe.org/promo#pmpc"
|
||||||
shareText = "Tell your friends and followers about Public Code"
|
shareText = "Tell your friends and followers about Public Code"
|
||||||
|
defaultSocialText = "If it is public money, it should be public code as well. I support this call for more public code under a Free Software license: "
|
||||||
|
|
||||||
|
|
||||||
# Legal Section
|
# Legal Section
|
||||||
|
@ -218,6 +219,7 @@ DefaultContentLanguage = "en"
|
||||||
promoButtonText = "Promomaterial bestellen"
|
promoButtonText = "Promomaterial bestellen"
|
||||||
promoButtonLink = "https://fsfe.org/promo#pmpc"
|
promoButtonLink = "https://fsfe.org/promo#pmpc"
|
||||||
shareText = "Erzähle Deinen Freunden und Followern von PMPC"
|
shareText = "Erzähle Deinen Freunden und Followern von PMPC"
|
||||||
|
defaultSocialText = "Wenn es mit öffentlichem Geld bezahlt wird, muss es immer öffentlicher Code sein! Ich unterstütze diesen Aufruf, damit es mehr öffentlichen Code unter einer Freie-Software-Lizenz gibt: "
|
||||||
# Legal Section
|
# Legal Section
|
||||||
[Languages.de.legal]
|
[Languages.de.legal]
|
||||||
by = "Eine Kampagne der Free Software Foundation Europe"
|
by = "Eine Kampagne der Free Software Foundation Europe"
|
||||||
|
|
|
@ -3,3 +3,5 @@ name: GNU Social
|
||||||
titleBefore: Auf
|
titleBefore: Auf
|
||||||
titleAfter: teilen
|
titleAfter: teilen
|
||||||
userinput: true
|
userinput: true
|
||||||
|
# This "customText" shouldn't have more than 115 characters!
|
||||||
|
customText: "Öffentliches Geld muss öffentlichen Code bedeuten! Ich unterstütze den Aufruf der @fsfe@quitter.no für mehr #publiccode: "
|
||||||
|
|
|
@ -2,3 +2,5 @@ id: twitter
|
||||||
name: Twitter
|
name: Twitter
|
||||||
titleBefore: Auf
|
titleBefore: Auf
|
||||||
titleAfter: teilen
|
titleAfter: teilen
|
||||||
|
# This "customText" must not have more than 115 characters!
|
||||||
|
customText: "Öffentliches Geld muss öffentlichen Code bedeuten! Ich unterstütze den Aufruf der @fsfe für mehr #publiccode: "
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
id: support
|
id: support
|
||||||
name: Kampagne unterstützen!
|
name: Unterstütze die FSFE!
|
||||||
titleBefore:
|
titleBefore:
|
||||||
titleAfter:
|
titleAfter:
|
||||||
|
|
|
@ -3,3 +3,5 @@ name: GNU Social
|
||||||
titleBefore: Share on
|
titleBefore: Share on
|
||||||
titleAfter:
|
titleAfter:
|
||||||
userinput: true
|
userinput: true
|
||||||
|
# This "customText" shouldn't have more than 115 characters!
|
||||||
|
customText: "If it is public money, it should be public code as well! I support @fsfe@quitter.no's call for more #publiccode: "
|
||||||
|
|
|
@ -2,3 +2,5 @@ id: twitter
|
||||||
name: Twitter
|
name: Twitter
|
||||||
titleBefore: Share on
|
titleBefore: Share on
|
||||||
titleAfter:
|
titleAfter:
|
||||||
|
# This "customText" must not have more than 115 characters!
|
||||||
|
customText: "If it is public money, it should be public code as well! I support @fsfe's call for more #publiccode: "
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
id: support
|
id: support
|
||||||
name: Support the Campaign!
|
name: Become an FSFE supporter!
|
||||||
titleBefore:
|
titleBefore:
|
||||||
titleAfter:
|
titleAfter:
|
||||||
|
|
|
@ -5,8 +5,8 @@
|
||||||
<form action="/share" method="GET" class="share-buttons side" target="_blank">
|
<form action="/share" method="GET" class="share-buttons side" target="_blank">
|
||||||
<input name="popup" id="no-share-popup-side" type="radio" />
|
<input name="popup" id="no-share-popup-side" type="radio" />
|
||||||
<input name="ref" value="pmpc-side" type="hidden" />
|
<input name="ref" value="pmpc-side" type="hidden" />
|
||||||
<input name="url" value="{{ .Site.Params.url }}{{ .RelPermalink }}" type="hidden" />
|
<input name="url" value="{{ .Site.Params.url }}" type="hidden" />
|
||||||
<input name="title" value="{{ with .Params.Title }}{{ . }} - {{ end }}{{ .Site.Title }}" type="hidden" />
|
<input id="sharetitle-side" name="title" value="{{ .Site.Params.spread.defaultSocialText }}" type="hidden" />
|
||||||
<input class="n" name="website" placeholder="Please do not put anything here" />
|
<input class="n" name="website" placeholder="Please do not put anything here" />
|
||||||
|
|
||||||
{{ range $data.share }}
|
{{ range $data.share }}
|
||||||
|
@ -16,14 +16,14 @@
|
||||||
<span class="popup {{ .id }}">
|
<span class="popup {{ .id }}">
|
||||||
<label for="no-share-popup-side"></label>
|
<label for="no-share-popup-side"></label>
|
||||||
<input name="{{ .id }}pod" value="" placeholder="{{ .name }} URL ({{ .id }}.tld)" type="text" />
|
<input name="{{ .id }}pod" value="" placeholder="{{ .name }} URL ({{ .id }}.tld)" type="text" />
|
||||||
<button type="submit" name="service" value="{{ .id }}">OK</button>
|
<button type="submit" name="service" value="{{ .id }}" onclick="return changeTitleSide('{{if isset . "customText"}}{{.customText}}{{else}}{{$.Site.Params.spread.defaultSocialText}}{{end}}')">OK</button>
|
||||||
</span>
|
</span>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ range $data.share }}
|
{{ range $data.share }}
|
||||||
{{ if ne .userinput true }}
|
{{ if ne .userinput true }}
|
||||||
<button type="submit" name="service" value="{{ .id }}" class="button share-{{ .id }}" title="{{ .titleBefore}} {{ .name }} {{ .titleAfter }}"> </button>
|
<button type="submit" name="service" value="{{ .id }}" class="button share-{{ .id }}" title="{{ .titleBefore}} {{ .name }} {{ .titleAfter }}" onclick="return changeTitleSide('{{if isset . "customText"}}{{.customText}}{{else}}{{$.Site.Params.spread.defaultSocialText}}{{end}}')"> </button>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</form>
|
</form>
|
||||||
|
|
|
@ -22,8 +22,8 @@
|
||||||
<form action="/share" method="GET" class="share-buttons spread" target="_blank">
|
<form action="/share" method="GET" class="share-buttons spread" target="_blank">
|
||||||
<input name="popup" id="no-share-popup-spread" type="radio" />
|
<input name="popup" id="no-share-popup-spread" type="radio" />
|
||||||
<input name="ref" value="pmpc-spread" type="hidden" />
|
<input name="ref" value="pmpc-spread" type="hidden" />
|
||||||
<input name="url" value="{{ .Site.Params.url }}{{ .RelPermalink }}" type="hidden" />
|
<input name="url" value="{{ .Site.Params.url }}" type="hidden" />
|
||||||
<input name="title" value="Public Money, Public Code!" type="hidden" />
|
<input id="sharetitle-spread" name="title" value="{{ .Site.Params.spread.defaultSocialText }}" type="hidden" />
|
||||||
<input class="n" name="website" placeholder="Please do not put anything here" />
|
<input class="n" name="website" placeholder="Please do not put anything here" />
|
||||||
|
|
||||||
{{ range $data.share }}
|
{{ range $data.share }}
|
||||||
|
@ -33,14 +33,14 @@
|
||||||
<span class="popup {{ .id }}">
|
<span class="popup {{ .id }}">
|
||||||
<label for="no-share-popup-spread"></label>
|
<label for="no-share-popup-spread"></label>
|
||||||
<input name="{{ .id }}pod" value="" placeholder="{{ .name }} URL ({{ .id }}.tld)" type="text" />
|
<input name="{{ .id }}pod" value="" placeholder="{{ .name }} URL ({{ .id }}.tld)" type="text" />
|
||||||
<button type="submit" name="service" value="{{ .id }}">OK</button>
|
<button type="submit" name="service" value="{{ .id }}" onclick="return changeTitle('{{if isset . "customText"}}{{.customText}}{{else}}{{$.Site.Params.spread.defaultSocialText}}{{end}}')">OK</button>
|
||||||
</span>
|
</span>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ range $data.share }}
|
{{ range $data.share }}
|
||||||
{{ if ne .userinput true }}
|
{{ if ne .userinput true }}
|
||||||
<button type="submit" name="service" value="{{ .id }}" class="button share-{{ .id }}" title="{{ .titleBefore}} {{ .name }} {{ .titleAfter }}">{{ .name }}</button>
|
<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>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</form>
|
</form>
|
||||||
|
|
|
@ -39,3 +39,12 @@
|
||||||
new WOW().init();
|
new WOW().init();
|
||||||
|
|
||||||
})(jQuery); // End of use strict
|
})(jQuery); // End of use strict
|
||||||
|
|
||||||
|
function changeTitle(val){
|
||||||
|
document.getElementById('sharetitle-spread').value = val;
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
function changeTitleSide(val){
|
||||||
|
document.getElementById('sharetitle-side').value = val;
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue