Commit 4f428a68 authored by David Loiret's avatar David Loiret Committed by Jean-Baptiste Kempf

menus: add sponsor if available

Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent 81ba36e5
......@@ -5,6 +5,7 @@ require_once($_SERVER["DOCUMENT_ROOT"]."/include/donate.php");
/* Menus */
function draw_menus( $nobanner, $alternate_lang, $imgSrc, $b_show_donate )
{
global $sponsor;
?>
<nav id="nav" class="navbar navbar-default navbar-fixed-top">
<div class="container">
......@@ -99,6 +100,13 @@ function draw_menus( $nobanner, $alternate_lang, $imgSrc, $b_show_donate )
</li>
</ul>
<?php } ?>
<?php if (isset($sponsor) && !$b_show_donate) { ?>
<div class="navbar-header pull-right">
<div id="sponsor">
<?php echo $sponsor ?>
</div>
</div>
<?php } ?>
</div>
</div>
</nav>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment