ldc-groupe/content/themes/ldc/frontpage.php
2020-10-13 16:55:22 +02:00

45 lines
984 B
PHP

<?php
/*
Template Name: Homepage
*/
?>
<?php get_header(); ?>
<?php
/*set_query_var('tabscontent_dark', get_field('expertise'));
get_template_part('partials/tabscontent', 'dark');*/
global $tp;
global $mob;
$add_block = get_field('additional_video_text');
?>
<?php
$hero = get_field('homepage_hero');
get_template_part('partials/hero');
?>
<?php
if ($add_block['text_block'] !== NULL) {
set_query_var('text_block', $add_block['text_block']);
set_query_var('addclass', 'no-bottom-padding');
get_template_part('partials/text-block');
}
?>
<?php get_template_part('partials/engagements'); ?>
<?php get_template_part('partials/key-figures'); ?>
<?php get_template_part('partials/values'); ?>
<?php get_template_part('partials/text-block'); ?>
<?php
if($mob) {
get_template_part('partials/brands-icons', 'mobile');
} else {
get_template_part('partials/brands-icons');
}
?>
<?php get_footer(); ?>