Skip to content

Commit 9183b00

Browse files
committed
Hide user register navigation link if is disabled
1 parent f514109 commit 9183b00

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/templates/header.inc.phtml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ if ( isset( Authentication::$user )) {
2020
}
2121

2222
$_header_navigation_config = Common::$config->bnetdocs->navigation;
23+
$_header_user_register_disabled = Common::$config->bnetdocs->user_register_disabled;
2324

2425
if ( !Common::$config->bnetdocs->asset_versioning ) {
2526
$_unique_asset = '';
@@ -120,7 +121,9 @@ $_campaign_vultr = (
120121
<a href="<?php echo Common::relativeUrlToAbsolute($_header_user_url); ?>">View Profile</a>
121122
<?php } else { ?>
122123
<a href="<?php echo Common::relativeUrlToAbsolute("/user/login"); ?>">Log In</a>
124+
<?php if (!$_header_user_register_disabled) { ?>
123125
<a href="<?php echo Common::relativeUrlToAbsolute("/user/register"); ?>">Create</a>
126+
<?php } ?>
124127
<?php } ?>
125128
<a>The Docs</a>
126129
<a href="<?php echo Common::relativeUrlToAbsolute("/document/index"); ?>">Document Index</a>

0 commit comments

Comments
 (0)