summaryrefslogtreecommitdiff
path: root/templates/banners
diff options
context:
space:
mode:
authorakpu1 <akpu1@inventati.org>2016-06-18 07:11:40 +0200
committerGitHub <noreply@github.com>2016-06-18 07:11:40 +0200
commit3f696ed6f463d5182915ea5c2c59275da1df4654 (patch)
treefe2dd889b3df7f03c54c4c263cac716bb083c719 /templates/banners
parent7ac985d48ff9306498362b121244c2cc08647b5c (diff)
Made donation banner more general
Made language more general Replaced static links with vars Made showing button conditonal on having matching info
Diffstat (limited to 'templates/banners')
-rw-r--r--templates/banners/donate.swig17
-rw-r--r--templates/banners/donations.swig23
2 files changed, 23 insertions, 17 deletions
diff --git a/templates/banners/donate.swig b/templates/banners/donate.swig
deleted file mode 100644
index dcd7f7c..0000000
--- a/templates/banners/donate.swig
+++ /dev/null
@@ -1,17 +0,0 @@
-<p class="alert alert-info">
- <strong>pomf.se is a free service, but our hosting bill isn't</strong> &mdash; we need almost $100 a month for that. Donations help keep pomf.se free, online, and fast. Everything (after fees) goes to the hosting bill.
- <span class="donate-btns">
- <a class="donate-btn donate-paypal" href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&amp;hosted_button_id=BHUVEZY96YZ6N" target="_BLANK">
- <span class="icon icon-paypal"></span>
- PayPal
- </a>
- <a class="donate-btn donate-bitcoin" href="bitcoin:1CrbCGSTFM5ccmjFoU4jRSQod44Ttu8nHY?label=pomf.se&amp;message=Hosting%20Bills" target="_BLANK">
- <span class="icon icon-bitcoin"></span>
- Bitcoin
- </a>
- <a class="donate-btn donate-flattr" href="https://flattr.com/submit/auto?user_id=neku&amp;url=http://pomf.se" target="_BLANK">
- <span class="icon icon-flattr"></span>
- Flattr
- </a>
- </span>
-</p>
diff --git a/templates/banners/donations.swig b/templates/banners/donations.swig
new file mode 100644
index 0000000..884f4ba
--- /dev/null
+++ b/templates/banners/donations.swig
@@ -0,0 +1,23 @@
+<p class="alert alert-info">
+ <strong>{{siteName}} is free to use, but our hosting costs are far from it</strong> &mdash; donations are what keep {{siteName}} alive, free, and fast.
+ <span class="donate-btns">
+ {% if paypalUrl != '' %}
+ <a class="donate-btn donate-paypal" href="{{paypalUrl}}" target="_BLANK">
+ <span class="icon icon-paypal"></span>
+ PayPal
+ </a>
+ {% endif %}
+ {% if bitcoinAddress != '' %}
+ <a class="donate-btn donate-bitcoin" href="bitcoin:{{bitcoinAddress}}?label={{siteName}}&amp;message=Hosting%20Costs" target="_BLANK">
+ <span class="icon icon-bitcoin"></span>
+ Bitcoin
+ </a>
+ {% endif %}
+ {% if flattrUrl != '' %}
+ <a class="donate-btn donate-flattr" href="{{flattrUrl}}" target="_BLANK">
+ <span class="icon icon-flattr"></span>
+ Flattr
+ </a>
+ {% endif %}
+ </span>
+</p>