<?php /** * Template Name: Sponsor Template * * Template for displaying contact page. * * @package UnderStrap */ // Exit if accessed directly. defined( 'ABSPATH' ) || exit; $page_title = get_the_title(); $hero_section = get_field('sponsor_page_cover'); $first_section_title = get_field('sponsor_page_introduction')['title']; $first_section_notice = get_field('sponsor_page_introduction')['notice']; $first_section_text = get_field('sponsor_page_introduction')['text']; $first_section_visibility = get_field('sponsor_page_introduction')['section_visivility']; $form_title = get_field('form_info_title'); $form_text = get_field('form_info_text'); $form_shortcode = get_field('form_short_code'); get_header(); ?> <main> <section class="hero"> <?php $hero_args = array( 'image' => $hero_section, 'pageTitle' => $page_title, ); get_template_part('global-templates/cover', null, $hero_args); ?> </section> <?php if($first_section_visibility): ?> <section class="S01 p-t-5"> <div class="container"> <h1 class="heading2"><?php echo esc_html($first_section_title) ?></h1> <span class="btnText__alt"><?php echo esc_html($first_section_notice) ?></span> <p class="paragraph"><?php echo esc_html($first_section_text) ?></p> </div> </section> <?php endif; ?> <section class="p-t-5 sponsors S02"> <div class="container"> <div class="forms__wrapper"> <div class="forms__fieldsWrapper"> <div class="forms__fields"> <?php echo do_shortcode( $form_shortcode ); ?> </div> </div> <div class="forms__ill"> <div class="forms__illContent"> <h1 class="heading3"><?php echo esc_html($form_title); ?></h1> <p class="paragraph"><?php echo esc_html($form_text); ?></p> <?php get_template_part( "global-templates/contacts"); ?> </div> </div> </div> <div class="seperators__top"></div> <div class="seperators__bottom"></div> </div> </section> <section class="S02"> <?php get_template_part( 'loop-templates/sponsors' ); ?> </section> </main> <?php get_footer(); ?>