Skip to content

Commit d4ffebb

Browse files
committed
Add vultr campaign to header
1 parent a576630 commit d4ffebb

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

etc/config.sample.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
"bnetdocs": {
33
"btc_donate_address": "",
44
"campaigns": {
5-
"battleforthenet": ""
5+
"battleforthenet": "",
6+
"vultr": ""
67
},
78
"maintenance": [
89
false,

src/templates/header.inc.phtml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@ if ( isset( Authentication::$user )) {
1818
$_header_staff = null;
1919
}
2020

21+
$_campaign_vultr = ( !empty( Common::$config->bnetdocs->campaigns->vultr ) ?
22+
'<a href="' . Common::$config->bnetdocs->campaigns->vultr . '"><img src="' .
23+
Common::relativeUrlToAbsolute( '/a/vultr_badge_ondark.svg' ) .
24+
'" style="float:right;margin-right:16px;height:32px;"/></a>' : ''
25+
);
26+
2127
?><!DOCTYPE html>
2228
<html lang="en-US">
2329
<head>
@@ -74,7 +80,7 @@ if ( isset( Authentication::$user )) {
7480
<?php } ?>
7581
</head>
7682
<body>
77-
<header class="main-page"><img src="<?php echo Common::relativeUrlToAbsolute("/a/VSZX0bJ.png"); ?>" style="float:left;margin-right:6px;height:32px;"/> BNETDocs<span id="mobile-nav">&#9776;</span></header>
83+
<header class="main-page"><img src="<?php echo Common::relativeUrlToAbsolute("/a/VSZX0bJ.png"); ?>" style="float:left;margin-right:6px;height:32px;"/> BNETDocs<span id="mobile-nav">&#9776;</span><?php echo $_campaign_vultr; ?></header>
7884
<?php if (!(isset($slim_ui) && $slim_ui)) { ?>
7985
<nav>
8086
<a>Portal</a>

0 commit comments

Comments
 (0)