summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorMichael Walker <mike@barrucadu.co.uk>2014-09-28 19:43:09 +0000
committerMichael Walker <mike@barrucadu.co.uk>2014-09-28 23:05:52 +0000
commit81bfe2e910d5c6fbe69e5e11cfc3d3003660b173 (patch)
treee51e8275bc6f13041281ad2fb9298f1502f85e69 /templates
parent341e6476f9f98b17483e368ded8cc3c6fca271d7 (diff)
Add donate page
Diffstat (limited to 'templates')
-rw-r--r--templates/themes/donate/donate.html41
-rw-r--r--templates/themes/donate/info.php23
-rw-r--r--templates/themes/donate/theme.php28
-rw-r--r--templates/themes/donate/thumb.pngbin0 -> 9098 bytes
4 files changed, 92 insertions, 0 deletions
diff --git a/templates/themes/donate/donate.html b/templates/themes/donate/donate.html
new file mode 100644
index 00000000..8edf7bd7
--- /dev/null
+++ b/templates/themes/donate/donate.html
@@ -0,0 +1,41 @@
+{% filter remove_whitespace %}
+<!DOCTYPE html>
+<html>
+ <head>
+ <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
+ <title>{{ settings.title }}</title>
+ <link rel="shortcut icon" href="/favicon.png">
+ <link rel="stylesheet" media="screen" href="/stylesheets/style.css"/>
+ <link rel="stylesheet" media="screen" href="/stylesheets/dark.css"/>
+ </head>
+ <body>
+ {{ boardlist.top }}
+
+ <header>
+ <h1>{{ settings.title }}</h1>
+ <div class="subtitle">{{ settings.subtitle }}</div>
+ </header>
+
+ <img src="/static/lain_is_cute_datass_small.png"/>
+
+ <div class="ban">
+ <h2>gibe pls</h2>
+ <p>Lainchan costs something to run, $30 per month to be
+ exact. Your donations go entirely towards funding lainchan. Here
+ are some ways you can help out.</p>
+
+ <p>You can donate via paypal here:</p>
+
+ <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top" style="margin-bottom: 0;">
+ <input type="hidden" name="cmd" value="_s-xclick">
+ <input type="hidden" name="hosted_button_id" value="VJDX3C5R2LMC8">
+ <input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donate_SM.gif" border="0" name="submit" alt="PayPal - The safe, easier way to pay online!" style="position: relative; left: 7px;">
+ <img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
+ </form>
+
+ <p>Or, you can donate BTC
+ to <code>19ibcphZdSNEANBSawNNQmzCa3eoybxLUA</code>.</p>
+ </div>
+ </body>
+</html>
+{% endfilter %}
diff --git a/templates/themes/donate/info.php b/templates/themes/donate/info.php
new file mode 100644
index 00000000..fa3f649b
--- /dev/null
+++ b/templates/themes/donate/info.php
@@ -0,0 +1,23 @@
+<?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')),
+
+ 'build_function' => 'donate_build');
+?>
diff --git a/templates/themes/donate/theme.php b/templates/themes/donate/theme.php
new file mode 100644
index 00000000..736519a8
--- /dev/null
+++ b/templates/themes/donate/theme.php
@@ -0,0 +1,28 @@
+<?php
+
+require 'info.php';
+
+function donate_build($action, $settings, $board) {
+ donate::build($action, $settings);
+}
+
+class donate {
+ public static function build($action, $settings) {
+ global $config;
+
+ if ($action == 'all') {
+ file_write($config['dir']['home'] . $settings['file'], donate::install($settings));
+ }
+ }
+
+ public static function install($settings) {
+ global $config;
+
+ return Element('themes/donate/donate.html',
+ array('settings' => $settings,
+ 'config' => $config,
+ 'boardlist' => createBoardlist()));
+ }
+}
+
+?>
diff --git a/templates/themes/donate/thumb.png b/templates/themes/donate/thumb.png
new file mode 100644
index 00000000..f3f88e27
--- /dev/null
+++ b/templates/themes/donate/thumb.png
Binary files differ