diff options
| author | Benjamin Southall <applemansigloo@gmail.com> | 2017-04-24 23:54:56 +0900 |
|---|---|---|
| committer | Benjamin Southall <applemansigloo@gmail.com> | 2017-04-24 23:54:56 +0900 |
| commit | e7f5e1ce1549ede9b8893489a96c3b1651090d8a (patch) | |
| tree | 46805ceabdc87f7016619345814760279be8eb5e /templates | |
| parent | 0cebb583905aa43c2a6ea6283601a32123fbc3bf (diff) | |
Add bitcoin fields (Receiving address and QR code file location) to Donate theme / extension
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/themes/donate/donate.html | 7 | ||||
| -rw-r--r-- | templates/themes/donate/info.php | 21 |
2 files changed, 24 insertions, 4 deletions
diff --git a/templates/themes/donate/donate.html b/templates/themes/donate/donate.html index 6a7c1042..345e8773 100644 --- a/templates/themes/donate/donate.html +++ b/templates/themes/donate/donate.html @@ -25,10 +25,13 @@ <h2>Thanks for donating</h2> <p>The server costs {{ settings.monthlyamount }} per month. If you buy stickers we get about 45-55% of whatever you spend. Historical donation records to the former owner are ForeverN2Dust is the top donator, giving about $3000. FOOFDOOF is #2 with $1000 and lots of cheap Chinese shit. Please specify what you'd like your money to go towards. If you don't want to buy stickers, but want to donate something else please either ask in /q/ or contact the Lainchan administration on IRC at #lainchan on Freenode. </p> - <p><a href="https://www.stickermule.com/marketplace/tags/lainchan"> Buy stickers here</a> </p> +<p>Bitcoin donations can be made to {{ settings.bitcoinreceivingaddress }} </p> + +<img src="/static/{{ settings.bitcoinreceivingqrcode }}"> </img> + <p>Monthly Funding Progress Bar</p> <p>Cost per month {{ settings.monthlyamount }}</p> @@ -37,6 +40,8 @@ <p>Funds from other donations {{ settings.otheramount }} </p> +<p>Funds from Bitcoin {{ settings.bitcoinamount }} </p> + <div class="container"> <div class="{{ settings.progressbarcssclass }}"> <span style="width:{{ settings.progressbarcsswidth }};position:relative;left:{{ settings.progressbarcssleft }}%; diff --git a/templates/themes/donate/info.php b/templates/themes/donate/info.php index 751f8a23..ecb53154 100644 --- a/templates/themes/donate/info.php +++ b/templates/themes/donate/info.php @@ -35,7 +35,12 @@ $theme = array( 'type' => 'text', 'default' => '$0'), - array('title' => 'Current Progress', + array('title' => 'Current Bitcoin Amount', + 'name' => 'bitcoinamount', + 'type' => 'text', + 'default' => '0 BTC'), + + array('title' => 'Current Progress', 'name' => 'currentprogress', 'type' => 'text', 'default' => '$0'), @@ -60,7 +65,17 @@ $theme = array( 'name' => 'progressbartextcssleft', 'type' => 'text', 'default' => '195'), - ), - + + array('title' => 'Bitcoin receiving address', + 'name' => 'bitcoinreceivingaddress', + 'type' => 'text', + 'default' => 'nothing'), + + array('title' => 'Bitcoin receiving QR code ', + 'name' => 'bitcoinreceivingqrcode', + 'type' => 'text', + 'default' => 'nothing'), + ), 'build_function' => 'donate_build'); + ?> |
