|
1 |
| -<?php |
2 |
| - |
| 1 | +<?php /* vim: set colorcolumn= expandtab shiftwidth=2 softtabstop=2 tabstop=4 smarttab: */ |
3 | 2 | namespace BNETDocs\Templates;
|
4 |
| - |
5 | 3 | use \CarlBennett\MVC\Libraries\Common;
|
6 | 4 | use \CarlBennett\MVC\Libraries\Pair;
|
7 |
| - |
8 | 5 | use \BNETDocs\Libraries\User;
|
9 |
| - |
10 |
| -$title = 'Donate'; |
| 6 | +$title = 'Donate'; |
11 | 7 | $description = 'Donate to BNETDocs to show your support for this project!';
|
12 |
| - |
13 | 8 | $this->opengraph->attach(new Pair('url', '/donate'));
|
14 | 9 | $this->opengraph->attach(new Pair('type', 'article'));
|
15 |
| - |
16 |
| -$btc_address = $this->getContext()->donations->btc_address; |
| 10 | +$btc_address = $this->getContext()->donations->btc_address; |
17 | 11 | $email_address = $this->getContext()->donations->email_address;
|
18 |
| -$paypal_url = $this->getContext()->donations->paypal_url; |
19 |
| -$user_id = $this->getContext()->donations->user_id; |
20 |
| - |
21 |
| -if (!empty($user_id)) { |
| 12 | +$paypal_url = $this->getContext()->donations->paypal_url; |
| 13 | +$user_id = $this->getContext()->donations->user_id; |
| 14 | +if (!empty($user_id)) |
| 15 | +{ |
22 | 16 | $user = new User($user_id);
|
23 | 17 | }
|
24 |
| - |
25 |
| -require('./header.inc.phtml'); |
26 |
| -?> |
27 |
| - <article> |
28 |
| - <header>Support Us</header> |
29 |
| - <section> |
30 |
| - <p> |
31 |
| - The following are the methods available for supporting us: |
32 |
| - <ul type="circle"> |
33 |
| -<?php if ($user) { ?> |
34 |
| - <li>Contact: <a href="<?=$user->getURI()?>"><?=filter_var($user->getName(), FILTER_SANITIZE_FULL_SPECIAL_CHARS)?></a></li> |
35 |
| -<?php } ?> |
36 |
| -<?php if (!empty($paypal_url)) { ?> |
37 |
| - <li>PayPal: <a href="<?php echo filter_var($paypal_url, FILTER_SANITIZE_FULL_SPECIAL_CHARS); ?>"><?php echo filter_var($paypal_url, FILTER_SANITIZE_FULL_SPECIAL_CHARS); ?></a></li> |
38 |
| -<?php } ?> |
39 |
| -<?php if (!empty($btc_address)) { ?> |
40 |
| - <li>BTC: <code><?php echo $btc_address; ?></code></li> |
41 |
| -<?php } ?> |
42 |
| -<?php if (!empty($email_address)) { ?> |
43 |
| - <li>Email us: <a href="mailto:<?=rawurlencode($email_address)?>"><?=filter_var($email_address, FILTER_SANITIZE_FULL_SPECIAL_CHARS)?></a></li> |
44 |
| -<?php } ?> |
45 |
| - </ul> |
46 |
| - </p> |
47 |
| - </section> |
48 |
| - <header>Disclaimer</header> |
49 |
| - <section> |
50 |
| - <p>By donating to BNETDocs, you understand the following:</p> |
51 |
| - <p><ol> |
52 |
| - <li>The donation is non-refundable.</li> |
53 |
| - <li>The donation's purpose is to pay for hosting of this website and all associated costs, and to further the development of open-source software (OSS).</li> |
54 |
| - <li>A donation is not acceptable as payment for goods, products, or merchant items.</li> |
55 |
| - <li>In absolutely no scenario will a donation be used to willfully violate Blizzard Entertainment's Terms of Service or Battle.net™'s Terms of Service.</li> |
56 |
| - </ol></p> |
57 |
| - <p>Please see our <a href="<?php echo Common::relativeUrlToAbsolute('/legal'); ?>">Legal Policies</a> for more info.</p> |
58 |
| - </section> |
59 |
| - </article> |
60 |
| -<?php require('./footer.inc.phtml'); ?> |
| 18 | +require('./header.inc.phtml'); ?> |
| 19 | +<div class="container mb-3"> |
| 20 | + <h1>Support Us</h1> |
| 21 | + <p>The following are the methods available for supporting us:</p> |
| 22 | + <ul type="circle"> |
| 23 | +<? if ($user) { ?> |
| 24 | + <li>Contact: <a href="<?=$user->getURI()?>"><?=filter_var($user->getName(), FILTER_SANITIZE_FULL_SPECIAL_CHARS)?></a></li> |
| 25 | +<? } ?> |
| 26 | +<? if (!empty($paypal_url)) { ?> |
| 27 | + <li>PayPal: <a href="<?=filter_var($paypal_url, FILTER_SANITIZE_FULL_SPECIAL_CHARS)?>"><?=filter_var($paypal_url, FILTER_SANITIZE_FULL_SPECIAL_CHARS)?></a></li> |
| 28 | +<? } ?> |
| 29 | +<? if (!empty($btc_address)) { ?> |
| 30 | + <li>BTC: <code><?=$btc_address?></code></li> |
| 31 | +<? } ?> |
| 32 | +<? if (!empty($email_address)) { ?> |
| 33 | + <li>Email us: <a href="mailto:<?=rawurlencode($email_address)?>"><?=filter_var($email_address, FILTER_SANITIZE_FULL_SPECIAL_CHARS)?></a></li> |
| 34 | +<? } ?> |
| 35 | + </ul> |
| 36 | + <h3>Disclaimer</h3> |
| 37 | + <p>By donating to BNETDocs, you understand the following:</p> |
| 38 | + <ol> |
| 39 | + <li>The donation is non-refundable.</li> |
| 40 | + <li>The donation's purpose is to pay for hosting of this website and all associated costs, and to further the development of open-source software (OSS).</li> |
| 41 | + <li>A donation is not acceptable as payment for goods, products, or merchant items.</li> |
| 42 | + <li>In absolutely no scenario will a donation be used to willfully violate Blizzard Entertainment's Terms of Service or Battle.net's Terms of Service.</li> |
| 43 | + </ol> |
| 44 | + <p>Please see our <a href="<?=Common::relativeUrlToAbsolute('/legal')?>">Legal</a> and <a href="<?=Common::relativeUrlToAbsolute('/privacy')?>">Privacy Notice</a> pages for more info.</p> |
| 45 | +</div> |
| 46 | +<? require('./footer.inc.phtml'); ?> |
0 commit comments