ldc-groupe/content/themes/ldc/page-brands.php
2020-12-14 10:14:37 +01:00

49 lines
1.4 KiB
PHP

<?php
/*
Template Name: Page Brands
*/
?>
<?php
global $tp;
get_header();
$learn_more = get_field('learn_more');
$wcloud = get_field('words_cloud', 'options');
$brands_text = get_field('brands_text');
// var_dump('<pre style="margin: ;">', $brands_text ,'</pre>'); die;
?>
<div class="page-brands">
<?php get_template_part('partials/hero'); ?>
<?php get_template_part('partials/breadcrumbs'); ?>
<?php
set_query_var('addclass', 'no-bottom-padding');
set_query_var('text_block', $brands_text['text_block']);
get_template_part('partials/text-block');
?>
<?php get_template_part('partials/tag-cloud'); ?>
<?php get_template_part('partials/brands-list'); ?>
<?php if(!empty($learn_more)) : ?>
<div class="learn-more fw fw-container">
<div class="learn-more__wrapper wrapper">
<?php if(!empty($learn_more['text'])) : ?>
<div class="learn-more__text description"><?php echo $learn_more['text']; ?></div>
<?php endif; ?>
<?php if(!empty($learn_more['button']['url'])) : ?>
<a class="learn-more__btn btn" href="<?php echo $learn_more['button']['url']; ?>" title="<?php echo $learn_more['button']['title']; ?>"><?php echo $learn_more['button']['title']; ?> <i class="btn__icon btn__icon_arrow-right"></i></a>
<?php endif; ?>
</div>
</div>
<?php endif; ?>
</div>
<?php get_footer(); ?>