1
0
mirror of https://github.com/ascribe/wp-theme synced 2024-12-23 01:30:09 +01:00
wp-theme/template-tour.php

50 lines
1.9 KiB
PHP
Raw Normal View History

2015-09-19 00:03:57 +02:00
<?php
/*
Template Name: Landing Page / Product Tour
*/
require 'controller/init.php';
2015-09-19 00:03:57 +02:00
get_header();
$bgImage = get_field('header_background_image')['url'];
$headerTagline = get_field('header_tagline');
$buttonText = get_field('create_account_button_text');
2015-10-16 05:27:03 +02:00
$buttonColour = get_field('header_button_colour');
2015-09-25 07:55:31 +02:00
$controller = new Controller();
2015-09-19 00:03:57 +02:00
?>
<header style="background-image:url(<?php echo $bgImage; ?>)">
<div class="sticky">
<div class="centered-header">
2015-10-17 02:32:29 +02:00
<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>
<img src="<?php echo WPTHEME_TEMPLATE_URL; ?>/images/svg/hamburger.svg" class="phone-only hamburger">
</div>
<nav class="tour-switcher"><?php wp_nav_menu( array(
'theme_location' => 'landing-menu',
'container' => false
)); ?>
</nav>
</div>
</div>
<div class="centered-header">
<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>
2015-09-19 00:03:57 +02:00
</header>
<main>
<?php echo $controller->loopSubtemplates(); ?>
</main>
2015-09-19 00:03:57 +02:00
2015-11-03 14:50:24 +01:00
<?php get_footer(); ?>