This repository has been archived by the owner on Nov 14, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
page-ng.php
72 lines (67 loc) · 2.55 KB
/
page-ng.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<?php
/*
** Template Name: Newsletter Gift Page
*/
?>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title><?php wp_title('|', true, 'right'); bloginfo('name'); ?></title>
<link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/css/ngstyle.css">
<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
<link href='https://fonts.googleapis.com/css?family=Source+Sans+Pro:200,300,400,600,700,900,200italic,300italic,400italic,600italic,700italic,900italic' rel='stylesheet' type='text/css'>
<link href='https://fonts.googleapis.com/css?family=Open+Sans:300' rel='stylesheet' type='text/css'>
<link href='https://fonts.googleapis.com/css?family=Oswald:400,300,700' rel='stylesheet' type='text/css'>
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<link rel="icon" type="image/png" href="<?php echo get_template_directory_uri(); ?>/images/cwpfavicon.png">
</head>
<body>
<section id="intro">
<header class="container cf">
<div id="logo">
<a href="<?php echo esc_url( home_url( '/' ) ); ?>">
<img src="<?php echo get_template_directory_uri(); ?>/images/gift/logo.png" alt="">
</a>
</div><!--/logo-->
<nav id="headernav">
<?php wp_nav_menu( array( 'theme_location' => 'primary') ); ?>
</nav>
</header><!--/container-->
<div class="container">
<div class="subheader">
<em>Thank you for subscribing!</em>
<h2>Here's the content we promised you:</h2>
<h3><p>10 Tools We Use When Designing for WP That Cut Our Work Time in Half</p></h3>
<h4>(by the Way, 7 of Them Are Free)</h4>
<a href="#scrollto">
Start Read
</a><!--/a-->
<div class="wordpress-logo-one">
</div><!--/.wordpress-logo-one-->
<div class="wordpress-logo-two">
</div><!--/.wordpress-logo-two-->
</div><!--/.subheader-->
</div><!--/container-->
</section><!--/intro-->
<a name="scrollto" id="scrollto"></a>
<section id="stripe">
<div class="container cf">
<?php while ( have_posts() ) : the_post(); ?>
<?php the_content(); ?>
<?php endwhile; ?>
</div><!--/.container .cf-->
</section><!--/stripe-->
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script>
var viewportHeight = $(window).height()
$('#intro').css('height', viewportHeight);
$('.subheader a').click(function() {
$('html, body').animate({
scrollTop: $( $(this).attr('href') ).offset().top
}, 500);
return false;
});
</script>
<?php get_footer(); ?>