Commit 0dbdca05 authored by David Loiret's avatar David Loiret Committed by Jean-Baptiste Kempf

Add partners title

Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent 7cf9198a
......@@ -297,13 +297,16 @@ function start_body( $body_color, $language, $b_show_donate = true, $nobanner, $
$sponsors = getSponsors();
shuffle($sponsors);
?>
<div id="sponsors-carousel">
<?php foreach($sponsors as $sponsor) {
echo '<a target="_blank" href="' . $sponsor["link"] .'">' .
'<img src="' . $sponsorsDir . $sponsor["imgSrc"] . '">' .
'</a>';
}
?>
<div class="sponsors-carousel-wrapper">
<h6><?= _("Partners"); ?></h6>
<div id="sponsors-carousel">
<?php foreach($sponsors as $sponsor) {
echo '<a target="_blank" href="' . $sponsor["link"] .'">' .
'<img src="' . $sponsorsDir . $sponsor["imgSrc"] . '">' .
'</a>';
}
?>
</div>
</div>
<?php } ?>
</div>
......
......@@ -108,13 +108,17 @@ $bg-color-hover: rgba(0, 0, 0, 0.4);
display: block;
}
#sponsors-carousel {
.sponsors-carousel-wrapper {
position: absolute;
display: inline-block;
text-align: center;
right: 15px;
top: 0;
top: -22px;
max-width: 150px;
h6 {
color: #97a5ac;
margin: 5px;
}
}
#sponsors-carousel a {
......@@ -129,7 +133,7 @@ $bg-color-hover: rgba(0, 0, 0, 0.4);
}
@media only screen and (max-width : 480px) {
#sponsors-carousel {
.sponsors-carousel-wrapper {
display: none;
}
}
......
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