<?php $module = get_module_by_slug('intro'); $text = get_field("text", $module->ID, OBJECT); $background = get_field("background_image", $module->ID, OBJECT); $image = $background['sizes']['full-width']; ?> <div id="module-intro" style="background-image: url('<?php echo $image; ?> ')"> <div class="container"> <div class="row"> <div class="col-xs-12 col-sm-10 col-sm-offset-1 content"> <?php echo $text; ?> </div> </div> </div> </div>
<?php $module = get_module_by_slug('speakers'); $speakers = new WP_Query(array('post_type' => 'speaker', 'orderby' => 'menu_order', 'posts_per_page' => -1, 'order' => 'ASC', 'tax_query' => array(array('taxonomy' => 'group', 'field' => 'slug', 'terms' => 'featured')))); ?> <div id="module-speakers"> <div class="container"> <div class="row"> <div class="col-xs-12"> <h2>Speakers</h2> </div> </div> <div class="row"> <?php if ($speakers->have_posts()) { ?> <?php while ($speakers->have_posts()) { $speakers->the_post(); ?> <div class="speaker col-xs-12 col-sm-3 col-md-2"> <a href="<?php the_permalink(); ?> "> <?php if (has_post_thumbnail()) { $image = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), '300x300'); if ($image) { echo '<img src="' . $image[0] . '" class="img-responsive" />';
<?php $module = get_module_by_slug('map'); ?> <div id="module-map"> <div class="container"> <div class="row"> <div class="col-xs-12 col-md-8"> <div id="bil-global-statistics" class="bigtext"> <div><?php the_field('line_1', $module->ID); ?> </div> <div><?php the_field('line_2', $module->ID); ?> </div> <div><?php the_field('line_3', $module->ID); ?> </div> <div><?php the_field('line_4', $module->ID); ?> </div> <div><?php the_field('line_5', $module->ID); ?> </div> </div>
<?php $module = get_module_by_slug("hero"); $background = get_field("background_image", $module->ID, OBJECT); $image = $background['sizes']['full-width']; $text = get_field("text", $module->ID, OBJECT); ?> <div id="module-hero" style="background-image: url('<?php echo $image; ?> ');" > <div class="container"> <div class="row"> <div class="col-xs-12"> <img class="bil-logo img-responsive" src="wp-content/uploads/2015/07/bil-white-500.png"/> <?php echo $text; ?> </div> </div> </div> </div>
<?php $module = get_module_by_slug('sponsors'); $sponsors = new WP_Query(array('post_type' => 'sponsor', 'orderby' => 'menu_order', 'posts_per_page' => -1)); ?> <div id="module-sponsors"> <div class="container"> <div class="row"> <ul class="sponsors"> <?php if ($sponsors->have_posts()) { ?> <?php while ($sponsors->have_posts()) { $sponsors->the_post(); ?> <?php $imgObj = get_field('white_image'); $image = $imgObj['sizes']['1000x400']; $sponsor_url = get_field('url'); ?> <li class="sponsor-wrap"> <a href="<?php echo $sponsor_url; ?> " target="_blank"><img alt="<?php the_title(); ?> " src="<?php
<?php $module = get_module_by_slug('call-to-action'); ?> <div id="module-cta"> <div class="container"> <div class="row"> <div class="col-xs-12"> <div class="button"> <span class="label">Want to host your own BIL?</span> <span class="label">Let us show you how!</span> </div> </div> </div> </div> </div>