Add donate page
This commit is contained in:
parent
341e6476f9
commit
81bfe2e910
41
templates/themes/donate/donate.html
Normal file
41
templates/themes/donate/donate.html
Normal file
@ -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 %}
|
23
templates/themes/donate/info.php
Normal file
23
templates/themes/donate/info.php
Normal file
@ -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');
|
||||
?>
|
28
templates/themes/donate/theme.php
Normal file
28
templates/themes/donate/theme.php
Normal file
@ -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()));
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
BIN
templates/themes/donate/thumb.png
Normal file
BIN
templates/themes/donate/thumb.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 8.9 KiB |
Loading…
Reference in New Issue
Block a user