Don't include the third nav element for nav banner when there is no banner set so as to take up less space
parent
7596cdcde3
commit
b01908e93c
|
@ -290,10 +290,7 @@ function getNormalNavBarHTML($running, $user, $bandwidth_options, $view, $skin)
|
|||
|
||||
<?php
|
||||
} // end if (!ZM_OPT_USE_AUTH) or $user )
|
||||
$banner_html = getConsoleBannerHTML();
|
||||
if ($banner_html) {
|
||||
echo '<nav class="navbar navbar-expand-md justify-content-center" id="navbar-three">'.$banner_html.'</nav>';
|
||||
}
|
||||
echo getConsoleBannerHTML();
|
||||
?>
|
||||
</div>
|
||||
<?php
|
||||
|
@ -380,10 +377,7 @@ function getCollapsedNavBarHTML($running, $user, $bandwidth_options, $view, $ski
|
|||
</div>
|
||||
|
||||
</nav><!-- End First Navbar -->
|
||||
|
||||
<nav class="navbar navbar-expand-md justify-content-center" id="navbar-three">
|
||||
<?php echo getConsoleBannerHTML() ?>
|
||||
</nav><!-- End Second Navbar -->
|
||||
<?php echo getConsoleBannerHTML() ?>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
|
@ -533,7 +527,9 @@ function getConsoleBannerHTML() {
|
|||
$result = '';
|
||||
|
||||
if ( defined('ZM_WEB_CONSOLE_BANNER') and ZM_WEB_CONSOLE_BANNER != '' ) {
|
||||
$result .= '<nav class="navbar navbar-expand-md justify-content-center" id="navbar-three">';
|
||||
$result .= '<h2 id="getConsoleBannerHTML">'.validHtmlStr(ZM_WEB_CONSOLE_BANNER).'</h2>';
|
||||
$result .= '</nav>';
|
||||
}
|
||||
return $result;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue