File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change 11
11
" BNETDocs has to take a brief moment to do some system maintenance. We'll be back shortly."
12
12
],
13
13
"mobile_site_enabled" : true ,
14
+ "navigation" : {
15
+ "hide_search_documents" : false ,
16
+ "hide_search_packets" : false ,
17
+ "hide_popular_documents" : false ,
18
+ "hide_popular_packets" : false
19
+ },
14
20
"server_update_job_token" : null ,
15
21
"user_login_disabled" : false ,
16
22
"user_password_pepper" : " bnetdocs-INSERTRANDOMVALUEHERE" ,
Original file line number Diff line number Diff line change @@ -19,6 +19,8 @@ if ( isset( Authentication::$user )) {
19
19
$ _header_staff = null ;
20
20
}
21
21
22
+ $ _header_navigation_config = Common::$ config ->bnetdocs ->navigation ;
23
+
22
24
if ( !Common::$ config ->bnetdocs ->asset_versioning ) {
23
25
$ _unique_asset = '' ;
24
26
} else if ( !is_null ( VersionInfo::$ version ->bnetdocs )) {
@@ -121,11 +123,19 @@ $_campaign_vultr = (
121
123
<?php } ?>
122
124
<a>Documentation</a>
123
125
<a href="<?php echo Common::relativeUrlToAbsolute ("/document/index " ); ?> ">Document Index</a>
126
+ <?php if (!$ _header_navigation_config ->hide_search_documents ) { ?>
124
127
<a href="<?php echo Common::relativeUrlToAbsolute ("/document/search " ); ?> ">Search Documents</a>
128
+ <?php } ?>
129
+ <?php if (!$ _header_navigation_config ->hide_popular_documents ) { ?>
125
130
<a href="<?php echo Common::relativeUrlToAbsolute ("/document/popular " ); ?> ">Popular Documents</a>
131
+ <?php } ?>
126
132
<a href="<?php echo Common::relativeUrlToAbsolute ("/packet/index " ); ?> ">Packet Index</a>
133
+ <?php if (!$ _header_navigation_config ->hide_search_packets ) { ?>
127
134
<a href="<?php echo Common::relativeUrlToAbsolute ("/packet/search " ); ?> ">Search Packets</a>
135
+ <?php } ?>
136
+ <?php if (!$ _header_navigation_config ->hide_popular_packets ) { ?>
128
137
<a href="<?php echo Common::relativeUrlToAbsolute ("/packet/popular " ); ?> ">Popular Packets</a>
138
+ <?php } ?>
129
139
<?php if ($ _header_staff ) { ?>
130
140
<a>Administration</a>
131
141
<a href="<?php echo Common::relativeUrlToAbsolute ("/document/create " ); ?> ">Create Document</a>
You can’t perform that action at this time.
0 commit comments