ldc-groupe/content/themes/ldc/frontpage.php

46 lines
984 B
PHP
Raw Normal View History

2020-04-17 16:50:36 +02:00
<?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');
?>
2020-10-13 16:55:22 +02:00
<?php
2020-04-17 16:50:36 +02:00
$hero = get_field('homepage_hero');
2020-10-13 16:55:22 +02:00
get_template_part('partials/hero');
2020-04-17 16:50:36 +02:00
?>
2020-10-13 16:55:22 +02:00
<?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');
}
2020-04-17 16:50:36 +02:00
?>
<?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'); ?>
2020-10-13 16:55:22 +02:00
<?php
2020-04-17 16:50:36 +02:00
if($mob) {
get_template_part('partials/brands-icons', 'mobile');
} else {
get_template_part('partials/brands-icons');
}
?>
2020-10-13 16:55:22 +02:00
<?php get_footer(); ?>