Commit 2a51f4ec authored by David Loiret's avatar David Loiret Committed by Hugo Beauzée-Luyssen

vdd17: add VDD17 banner

Signed-off-by: default avatarHugo Beauzée-Luyssen <hugo@beauzee.fr>
parent 1da374d5
......@@ -270,7 +270,7 @@ function start_head( $title,
}
/* Actual start of the body */
function start_body( $body_color, $language, $b_show_donate = true, $nobanner, $alternate_lang, $new_design_class, $show_sponsors_carousel )
function start_body( $body_color, $language, $b_show_donate = true, $nobanner, $alternate_lang, $new_design_class, $show_sponsors_carousel, $show_vdd_banner )
{
echo "<body class='$new_design_class'>";
echo "<div id='bodyInner' class='$body_color'>";
......@@ -307,6 +307,11 @@ function start_body( $body_color, $language, $b_show_donate = true, $nobanner, $
</div>
</div>
<?php } ?>
<?php if ($show_vdd_banner) { ?>
<a href='/videolan/events/vdd17'>
<?php image( 'events/vdd17/banner01.jpg' , 'VDD17 Videolan banner', 'vdd17-videolan-banner img-responsive center-block'); ?>
</a>
<?php } ?>
</div>
<?php
}
......@@ -328,10 +333,11 @@ if(!isset($nobanner)) $nobanner = false;
if(!isset($show_donate)) $show_donate = true;
if(!isset($new_design)) $new_design = false;
if(!isset($show_sponsors_carousel)) $show_sponsors_carousel = false;
if(!isset($show_vdd_banner)) $show_vdd_banner = true;
$new_design_class = $new_design ? 'new-design' : '';
/* render the page */
start_head( preg_replace( "/<[^>]*>/", "" , $title ), $body_color, $language,
$additional_css, $additional_js, $additional_meta, $alternate_lang, $body_onload, $body_onunload, $new_design );
start_body( $body_color, $language, $show_donate, $nobanner, $alternate_lang, $new_design_class, $show_sponsors_carousel );
start_body( $body_color, $language, $show_donate, $nobanner, $alternate_lang, $new_design_class, $show_sponsors_carousel, $show_vdd_banner );
?>
......@@ -3,6 +3,7 @@
$body_color = "green";
$new_design = true;
$show_vdd_banner = false;
$lang = "en";
$menu = array( "videolan", "events" );
......@@ -37,7 +38,7 @@
<p>For its <b>ninth edition</b>, people from the VideoLAN and open source multimedia communities will meet on the
<strong>22nd and 24th of September 2017</strong>, to gather, work, discuss and meet, in: <strong>Paris, France</strong>!</p>
<p>This event is focused on technical discussions and decisions about <strong>multimedia</strong>.</p>
<?php image( 'events/vdd17/banner01.jpg' , 'VDD17 Videolan banner', 'vdd17-videolan-banner img-responsive center-block'); ?>
</div>
</div>
</div>
......
......@@ -117,3 +117,7 @@ h2 {
header-bg .container {
position: relative;
}
.vdd17-videolan-banner {
margin-top: 10px;
}
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