Skip to content

Commit 3ed8637

Browse files
committed
Add configurable front page value
1 parent 3b6a9b2 commit 3ed8637

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

etc/config.sample.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
],
1313
"mobile_site_enabled": true,
1414
"navigation": {
15+
"front_page": "/welcome",
1516
"hide_search_documents": false,
1617
"hide_search_packets": false,
1718
"hide_popular_documents": false,

src/controllers/Legacy.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public function &run(Router &$router, View &$view, array &$args) {
4646
}
4747

4848
if (is_null($model->url)) {
49-
$model->url = '/welcome';
49+
$model->url = Common::$config->bnetdocs->navigation->front_page;
5050
$model->is_legacy = false;
5151
$code = 302;
5252
} else {

src/templates/header.inc.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ $_campaign_vultr = (
9999
<?php } ?>
100100
</head>
101101
<body>
102-
<header class="main-page"><a href="<?php echo Common::relativeUrlToAbsolute('/welcome'); ?>"><img src="<?php echo Common::relativeUrlToAbsolute("/a/VSZX0bJ.png"); ?>" style="float:left;margin-right:6px;height:32px;"/> BNETDocs</a> <span id="mobile-nav">&#9776;</span><?php echo $_campaign_vultr; ?></header>
102+
<header class="main-page"><a href="<?php echo Common::relativeUrlToAbsolute($_header_navigation_config->front_page); ?>"><img src="<?php echo Common::relativeUrlToAbsolute("/a/VSZX0bJ.png"); ?>" style="float:left;margin-right:6px;height:32px;"/> BNETDocs</a> <span id="mobile-nav">&#9776;</span><?php echo $_campaign_vultr; ?></header>
103103
<?php if (!(isset($slim_ui) && $slim_ui)) { ?>
104104
<nav>
105105
<a>Portal</a>

0 commit comments

Comments
 (0)