summaryrefslogtreecommitdiff
path: root/templates/themes/donate
diff options
context:
space:
mode:
authorAppleman1234 <applemansigloo@gmail.com>2022-09-25 13:30:13 +1000
committerAppleman1234 <applemansigloo@gmail.com>2022-09-25 13:30:13 +1000
commit2c69095a1edf7474073451285238659d0f62ce3f (patch)
tree5dee476605402c66dc2853d0836b29f6aedae62b /templates/themes/donate
parente9a61e2fbbd930eaa80d6a5f33420cedc59d748c (diff)
PHP8.1 fixes from Rector
Diffstat (limited to 'templates/themes/donate')
-rw-r--r--templates/themes/donate/donate.html2
-rw-r--r--templates/themes/donate/info.php79
-rw-r--r--templates/themes/donate/theme.php4
3 files changed, 3 insertions, 82 deletions
diff --git a/templates/themes/donate/donate.html b/templates/themes/donate/donate.html
index 955beaab..592b5a64 100644
--- a/templates/themes/donate/donate.html
+++ b/templates/themes/donate/donate.html
@@ -25,7 +25,7 @@
<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 Lainchan IRC at irc.lainchan.org or Freenode.
</p>
- <p>Stickermule shutdown their stickermarket place ages ago. So stickers are no longer avaliable for purchase. Lainstore is being slowly worked on but isn't finished yet.
+ <p>Stickermule shutdown their stickermarket place ages ago. So stickers are no longer avaliable for purcahse. Lainstore is being slowly worked on but isn't finished yet.
</p>
<p> <a href="/stickers.html">To view the sticker gallery click here </a>
diff --git a/templates/themes/donate/info.php b/templates/themes/donate/info.php
index ecb53154..6f5b725e 100644
--- a/templates/themes/donate/info.php
+++ b/templates/themes/donate/info.php
@@ -1,81 +1,4 @@
<?php
-$theme = array(
- 'name' => 'Donate',
- 'description' => 'le wales face',
- 'version' => 'v9001',
-
- 'config' => array(
- array('title' => 'Page title',
- 'name' => 'title',
- 'type' => 'text'),
-
- array('title' => 'Slogan',
- 'name' => 'subtitle',
- 'type' => 'text',
- 'comment' => '(optional)'),
-
- array('title' => 'File',
- 'name' => 'file',
- 'type' => 'text',
- 'default' => 'donate.html'),
-
- array('title' => 'Monthly Amount',
- 'name' => 'monthlyamount',
- 'type' => 'text',
- 'default' => '$0'),
-
-
- array('title' => 'Current Sticker Amount',
- 'name' => 'stickeramount',
- 'type' => 'text',
- 'default' => '$0'),
-
- array('title' => 'Current Other Donations Amount',
- 'name' => 'otheramount',
- 'type' => 'text',
- 'default' => '$0'),
-
- array('title' => 'Current Bitcoin Amount',
- 'name' => 'bitcoinamount',
- 'type' => 'text',
- 'default' => '0 BTC'),
-
- array('title' => 'Current Progress',
- 'name' => 'currentprogress',
- 'type' => 'text',
- 'default' => '$0'),
-
- array('title' => 'Progress Bar CSS class',
- 'name' => 'progressbarcssclass',
- 'type' => 'text',
- 'default' => 'progress-bar green glow'),
-
-
- array('title' => 'Progress Bar CSS width',
- 'name' => 'progressbarcsswidth',
- 'type' => 'text',
- 'default' => '15%'),
-
- array('title' => 'Progress Bar CSS left',
- 'name' => 'progressbarcssleft',
- 'type' => 'text',
- 'default' => '51'),
-
- array('title' => 'Progress Bar Text CSS left',
- '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');
+$theme = ['name' => 'Donate', 'description' => 'le wales face', 'version' => 'v9001', 'config' => [['title' => 'Page title', 'name' => 'title', 'type' => 'text'], ['title' => 'Slogan', 'name' => 'subtitle', 'type' => 'text', 'comment' => '(optional)'], ['title' => 'File', 'name' => 'file', 'type' => 'text', 'default' => 'donate.html'], ['title' => 'Monthly Amount', 'name' => 'monthlyamount', 'type' => 'text', 'default' => '$0'], ['title' => 'Current Sticker Amount', 'name' => 'stickeramount', 'type' => 'text', 'default' => '$0'], ['title' => 'Current Other Donations Amount', 'name' => 'otheramount', 'type' => 'text', 'default' => '$0'], ['title' => 'Current Bitcoin Amount', 'name' => 'bitcoinamount', 'type' => 'text', 'default' => '0 BTC'], ['title' => 'Current Progress', 'name' => 'currentprogress', 'type' => 'text', 'default' => '$0'], ['title' => 'Progress Bar CSS class', 'name' => 'progressbarcssclass', 'type' => 'text', 'default' => 'progress-bar green glow'], ['title' => 'Progress Bar CSS width', 'name' => 'progressbarcsswidth', 'type' => 'text', 'default' => '15%'], ['title' => 'Progress Bar CSS left', 'name' => 'progressbarcssleft', 'type' => 'text', 'default' => '51'], ['title' => 'Progress Bar Text CSS left', 'name' => 'progressbartextcssleft', 'type' => 'text', 'default' => '195'], ['title' => 'Bitcoin receiving address', 'name' => 'bitcoinreceivingaddress', 'type' => 'text', 'default' => 'nothing'], ['title' => 'Bitcoin receiving QR code ', 'name' => 'bitcoinreceivingqrcode', 'type' => 'text', 'default' => 'nothing']], 'build_function' => 'donate_build'];
?>
diff --git a/templates/themes/donate/theme.php b/templates/themes/donate/theme.php
index 736519a8..23acdb81 100644
--- a/templates/themes/donate/theme.php
+++ b/templates/themes/donate/theme.php
@@ -19,9 +19,7 @@ class donate {
global $config;
return Element('themes/donate/donate.html',
- array('settings' => $settings,
- 'config' => $config,
- 'boardlist' => createBoardlist()));
+ ['settings' => $settings, 'config' => $config, 'boardlist' => createBoardlist()]);
}
}