This repository has been archived by the owner on Oct 29, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 120
/
donate.php
76 lines (71 loc) · 3.36 KB
/
donate.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<?php
namespace Destiny;
use Destiny\Common\Config;
use Destiny\Common\Session\Session;
use Destiny\Common\User\UserRole;
use Destiny\Common\Utils\Tpl;
?>
<!DOCTYPE html>
<html lang="en">
<head>
<?=Tpl::title($this->title)?>
<?php include 'seg/meta.php' ?>
<?=Tpl::manifestLink('web.css')?>
</head>
<body id="donate">
<div id="page-wrap">
<?php include 'seg/nav.php' ?>
<section class="container">
<div class="title d-flex align-items-center">
<h1>Donate</h1>
<span> (send a message too)</span>
</div>
<div class="content content-dark clearfix">
<form id="donateform" class="validate" action="/donate" method="post">
<?php if(!Session::hasRole(UserRole::USER)): ?>
<div class="ds-block">
<div id="donation-username" class="form-group form-group-lg">
<input class="form-control required" id="username" name="username" placeholder="Enter a username ..." value="<?=Tpl::out($this->username)?>" autofocus />
</div>
</div>
<?php else: ?>
<div class="ds-block">
<div id="donation-username" class="form-group form-group-lg">
<input readonly="readonly" class="form-control" value="<?=Tpl::out($this->username)?>" autofocus />
</div>
</div>
<?php endif; ?>
<div class="ds-block">
<div id="donation-amount" class="form-group form-group-lg">
<label class="sr-only" for="amount">Amount (in dollars)</label>
<input class="form-control required number" id="amount" name="amount" placeholder="5.00" autofocus />
<div id="donation-amount-currency">$</div>
<span class="help-block">Donate $<?= Config::$a['commerce']['minimum_donation_for_unban'] ?> or more remove a non-permanent ban or mute in chat.</span>
</div>
</div>
<div class="ds-block text-message">
<textarea name="message" autocomplete="off" maxlength="255" rows="3" class="form-control" placeholder="Write a message ..."></textarea>
</div>
<div class="form-actions">
<button class="btn btn-primary btn-lg"><i class="fas fa-shopping-cart"></i> Continue</button>
<a href="/" class="btn btn-dark">Cancel</a>
</div>
</form>
</div>
<p class="agreement">By clicking the "Continue" button, you are confirming that this purchase is what you wanted and that you have read the <a href="/agreement">user agreement</a>.</p>
</br>
<div class="d-flex align-items-center justify-content-end">
<span>prefer </span>
<a href="https://streamlabs.com/destiny" class="streamlabs-logo"></a>
<span> ?</span>
</div>
</section>
</div>
<?php include 'seg/alerts.php' ?>
<?php include 'seg/foot.php' ?>
<?php include 'seg/tracker.php' ?>
<?=Tpl::manifestScript('runtime.js')?>
<?=Tpl::manifestScript('common.vendor.js')?>
<?=Tpl::manifestScript('web.js')?>
</body>
</html>