mirror of
https://github.com/ascribe/wp-theme
synced 2024-12-22 17:23:55 +01:00
53 lines
1.9 KiB
PHP
53 lines
1.9 KiB
PHP
<?php
|
|
/*
|
|
Template Name: Landing Page / Product Tour
|
|
*/
|
|
require 'controller/init.php';
|
|
|
|
get_header();
|
|
|
|
$bgImage = get_field('header_background_image')['url'];
|
|
$headerTagline = get_field('header_tagline');
|
|
$buttonText = get_field('create_account_button_text');
|
|
$buttonColour = get_field('header_button_colour');
|
|
$controller = new Controller();
|
|
?>
|
|
|
|
<header class="hero" style="background-image:url(<?php echo $bgImage; ?>)">
|
|
<div class="sticky">
|
|
<div class="row">
|
|
<a href="<?php echo get_bloginfo('wpurl');?>"><img src="<?php echo WPTHEME_TEMPLATE_URL; ?>/images/logo/logo-white.png" class="logo phone-and-up"></a>
|
|
<a href="<?php echo get_bloginfo('wpurl');?>"><img src="<?php echo WPTHEME_TEMPLATE_URL; ?>/images/logo/ascribeicon-white.svg" class="logo phone-only"></a>
|
|
<div class="app-links">
|
|
<a href="<?php echo $signInLink; ?>">Log In</a> / <a href="<?php echo $signUpLink; ?>">Sign Up</a>
|
|
|
|
<button class="hamburger phone-only">
|
|
<span></span>
|
|
</button>
|
|
|
|
</div>
|
|
<nav class="tour-switcher"><?php wp_nav_menu( array(
|
|
'theme_location' => 'landing-menu',
|
|
'container' => false
|
|
)); ?>
|
|
</nav>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<section class="description">
|
|
<h1><?php echo $headerTagline; ?></h1>
|
|
<a href="<?php echo $signUpLink; ?>" class="button <?php echo $buttonColour; ?>-overPic"><?php echo $buttonText; ?></a>
|
|
</section>
|
|
<div class="mobile-nav">
|
|
<?php wp_nav_menu( array( 'theme_location' => 'main-footer-menu', 'container' => false ) ); ?>
|
|
</div>
|
|
</div>
|
|
<div class="chevron-divider"></div>
|
|
</header>
|
|
|
|
<main>
|
|
<?php echo $controller->loopSubtemplates(); ?>
|
|
</main>
|
|
|
|
<?php get_footer(); ?>
|