Skip to content

Commit c6c3501

Browse files
committed
Move misc inc templates to Includes directory
1 parent 9c881cc commit c6c3501

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+107
-107
lines changed

src/Templates/Comment/Delete.phtml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ if ($c)
2626
$c_user_url = $c_user->getURI();
2727
}
2828
$id = $this->getContext()->id;
29-
require('./header.inc.phtml'); ?>
29+
require('./Includes/header.inc.phtml'); ?>
3030
<div class="container">
3131
<? if (is_null($this->getContext()->error)) { ?>
3232

@@ -63,4 +63,4 @@ require('./header.inc.phtml'); ?>
6363

6464
<? } ?>
6565
</div>
66-
<? require('./footer.inc.phtml'); ?>
66+
<? require('./Includes/footer.inc.phtml'); ?>

src/Templates/Comment/Edit.phtml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ if ($c)
2929
$c_user_url = $c_user->getURI();
3030
$c_user_avatar = $c_user->getAvatarURI(22);
3131
}
32-
require('./header.inc.phtml'); ?>
32+
require('./Includes/header.inc.phtml'); ?>
3333
<div class="container">
3434
<? if (is_null($this->getContext()->error) && !is_null($c)) { ?>
3535

@@ -67,4 +67,4 @@ require('./header.inc.phtml'); ?>
6767

6868
<? } ?>
6969
</div>
70-
<? require('./footer.inc.phtml'); ?>
70+
<? require('./Includes/footer.inc.phtml'); ?>

src/Templates/Community/Credits.phtml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ $top_contributors_by_news_posts = $this->getContext()->top_contributors_by_news_
1212
$top_contributors_by_packets = $this->getContext()->top_contributors_by_packets;
1313
$top_contributors_by_servers = $this->getContext()->top_contributors_by_servers;
1414
$users = []; // used for User object lookup cache
15-
require('./header.inc.phtml');
15+
require('./Includes/header.inc.phtml');
1616
?>
1717
<div class="container">
1818
<h2>Contributors</h2>
@@ -193,4 +193,4 @@ require('./header.inc.phtml');
193193
} ?>
194194
</tbody></table>
195195
</div>
196-
<? require('./footer.inc.phtml'); ?>
196+
<? require('./Includes/footer.inc.phtml'); ?>

src/Templates/Community/Discord.phtml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ $title = 'Discord';
66
$description = 'Join our Discord and have a chat with us!';
77
$this->opengraph->attach(new Pair('url', '/discord'));
88
$this->opengraph->attach(new Pair('type', 'article'));
9-
require('./header.inc.phtml'); ?>
9+
require('./Includes/header.inc.phtml'); ?>
1010
<div class="container">
1111
<h2><?=$title?></h2>
1212
<p><?=$description?></p>
@@ -31,4 +31,4 @@ require('./header.inc.phtml'); ?>
3131
</div>
3232
<? } ?>
3333
</div>
34-
<? require('./footer.inc.phtml'); ?>
34+
<? require('./Includes/footer.inc.phtml'); ?>

src/Templates/Community/Donate.phtml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ $email_address = $this->getContext()->donations->email_address;
1111
$paypal_url = $this->getContext()->donations->paypal_url;
1212
$user_id = $this->getContext()->donations->user_id;
1313
$user = (!empty($user_id) ? new \BNETDocs\Libraries\User\User($user_id) : null);
14-
require('./header.inc.phtml'); ?>
14+
require('./Includes/header.inc.phtml'); ?>
1515
<div class="container">
1616
<h1>Support Us</h1>
1717
<p>The following are the methods available for supporting us:</p>
@@ -39,4 +39,4 @@ require('./header.inc.phtml'); ?>
3939
</ol>
4040
<p>Please see our <a href="<?=Common::relativeUrlToAbsolute('/legal')?>">Legal</a> and <a href="<?=Common::relativeUrlToAbsolute('/privacy')?>">Privacy Policy</a> pages for more info.</p>
4141
</div>
42-
<? require('./footer.inc.phtml'); ?>
42+
<? require('./Includes/footer.inc.phtml'); ?>

src/Templates/Community/Legal.phtml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ $this->opengraph->attach(new Pair('url', '/legal'));
88
$this->opengraph->attach(new Pair('type', 'article'));
99
$email_domain = $this->getContext()->email_domain;
1010
$email_mailbox = $this->getContext()->email_mailbox;
11-
require('./header.inc.phtml'); ?>
11+
require('./Includes/header.inc.phtml'); ?>
1212
<div class="container">
1313
<h1>Disclaimer &amp; Terms of Service</h1>
1414
<p>
@@ -76,4 +76,4 @@ and/or other countries.
7676
<p>Last updated: <time datetime="<?=$this->getContext()->license_version[1]->format('c')?>"><?=$this->getContext()->license_version[1]->format('l, F j, Y')?></time><? if ($this->getContext()->license_version[0]) { ?> (<a href="https://github.com/BNETDocs/bnetdocs-web/commit/<?=$this->getContext()->license_version[0]?>">version</a>)<? } ?></p>
7777
<pre class="border border-primary overflow-auto pre-scrollable rounded bg-dark text-light"><code class="language-plaintext"><?=filter_var($this->getContext()->license, FILTER_SANITIZE_FULL_SPECIAL_CHARS)?></code></pre>
7878
</div>
79-
<? require('./footer.inc.phtml'); ?>
79+
<? require('./Includes/footer.inc.phtml'); ?>

src/Templates/Community/PrivacyPolicy.phtml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ $description = sprintf(
1717
$title, $org, Common::relativeUrlToAbsolute('/')
1818
);
1919

20-
require('./header.inc.phtml'); ?>
20+
require('./Includes/header.inc.phtml'); ?>
2121
<div class="container">
2222
<h1><?=filter_var($title, FILTER_SANITIZE_FULL_SPECIAL_CHARS)?></h1>
2323
<p>Last Updated: March 1, 2024</p>
@@ -106,4 +106,4 @@ require('./header.inc.phtml'); ?>
106106
<?=(Common::$config->discord->enabled ? '<p>Alternatively, you may try reaching ' . filter_var($org, FILTER_SANITIZE_FULL_SPECIAL_CHARS) . ' staff via <a href="' . Common::relativeUrlToAbsolute('/discord') . '">Discord</a>.</p>' : '')?>
107107

108108
</div>
109-
<? require('./footer.inc.phtml'); ?>
109+
<? require('./Includes/footer.inc.phtml'); ?>

src/Templates/Community/Welcome.phtml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ $title = 'Welcome';
66
$description = 'Welcome to the documentation and discussion for the Battle.net&trade; protocol';
77
$this->opengraph->attach(new Pair('url', '/welcome'));
88
$this->opengraph->attach(new Pair('type', 'article'));
9-
require('./header.inc.phtml'); ?>
9+
require('./Includes/header.inc.phtml'); ?>
1010
<div class="container">
1111
<h1>Welcome to BNETDocs!</h1>
1212
<p>BNETDocs is a community website that documents and discusses the Battle.net&trade; protocol.</p>
@@ -32,4 +32,4 @@ require('./header.inc.phtml'); ?>
3232
<a class="btn btn-success m-1" href="<?=Common::relativeUrlToAbsolute('/servers')?>">View Servers</a>
3333
</div></div>
3434
</div>
35-
<?php require('./footer.inc.phtml'); ?>
35+
<?php require('./Includes/footer.inc.phtml'); ?>

src/Templates/Core/Legacy.phtml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php namespace BNETDocs\Templates\Core; $title = 'Legacy'; ?>
2-
<?php require('./header.inc.phtml'); ?>
2+
<?php require('./Includes/header.inc.phtml'); ?>
33
<article>
44
<header><?=$title?></header>
55
<section>
@@ -13,4 +13,4 @@
1313
<a href="<?=$this->getContext()->url?>"><?=$this->getContext()->url?></a><br/></p>
1414
</section>
1515
</article>
16-
<?php require('./footer.inc.phtml'); ?>
16+
<?php require('./Includes/footer.inc.phtml'); ?>

src/Templates/Core/Maintenance.phtml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ namespace BNETDocs\Templates\Core;
33
$title = 'Maintenance';
44
$description = $this->getContext()->message;
55
$_header_maintenance = true;
6-
require('./header.inc.phtml'); ?>
6+
require('./Includes/header.inc.phtml'); ?>
77
<div class="container">
88
<div class="alert alert-danger" role="alert">
99
<h4 class="alert-heading"><?=$title?></h4>
1010
<p class="mb-0"><?=$description?></p>
1111
</div>
1212
</div>
13-
<?php require('./footer.inc.phtml'); ?>
13+
<?php require('./Includes/footer.inc.phtml'); ?>

0 commit comments

Comments
 (0)