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

40 lines
1.2 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="centered-header">
2015-09-25 07:55:31 +02:00
<a href="<?php echo get_bloginfo('wpurl');?>"><img src="<?php echo WPTHEME_TEMPLATE_URL; ?>/images/logo/logo-white.png" class="logo"></a>
<div class="app-links">
<a href="<?php echo $signInLink; ?>">Sign In</a> / <a href="<?php echo $signUpLink; ?>">Sign Up</a>
</div>
2015-10-15 03:41:36 +02:00
<nav class="tour-switcher"><?php wp_nav_menu( array(
'theme_location' => 'landing-menu',
'container' => false
)); ?>
2015-09-19 00:03:57 +02:00
</nav>
<section class="description">
<h1><?php echo $headerTagline; ?></h1>
2015-10-16 05:27:03 +02:00
<a href="<?php echo $signUpLink; ?>" class="button <?php echo $buttonColour; ?>-overPic"><?php echo $buttonText; ?></a>
</section>
2015-09-19 00:03:57 +02:00
</div>
<div class="chevron-divider"></div>
2015-09-19 00:03:57 +02:00
</header>
2015-09-25 07:55:31 +02:00
<main>
<?php echo $controller->loopSubtemplates(); ?>
</main>
2015-09-19 00:03:57 +02:00
<?php get_footer(); ?>