-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfront-page.php
101 lines (85 loc) · 4.01 KB
/
front-page.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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
<?php
/**
* Homepage
*
*/
?>
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title><?php $key="seo_title"; echo get_post_meta($post->ID, $key, true); ?></title>
<meta name="description" content="<?php $key="seo_description"; echo get_post_meta($post->ID, $key, true); ?>" />
<link rel="shortcut icon" href="<?php echo get_stylesheet_directory_uri(); ?>/favicon.ico" />
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<?php wp_head(); ?>
<?php do_action('wp_head()'); ?><!-- added for custom wp_colors from theme customizer -->
</head>
<body <?php body_class(); ?> >
<header id="header">
<div class="cover-container">
<img src="<?php bloginfo('stylesheet_directory'); ?>/images/hero.jpg" alt="FasTrax Solutions">
</div><!--/.cover-container-->
<div class="cover-wrapper-inner">
<!-- NAVBAR ================================================== -->
<nav class="navbar navbar-inverse navbar-fixed-top">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#jd-bootstrap-nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<!-- custom calls to options stored in Admin section "Theme Options" to display the logo or not -->
<a class="navbar-brand" id="logo" href="<?php echo site_url(); ?>"><img src="<?php header_image(); ?>" alt="Our logo" class="img-responsive logo"/></a>
<!-- custom calls to options stored in Admin section "Theme Options" to display the logo or not -->
</div><!-- /. navbar-header -->
<!-- Collect the nav links from WordPress -->
<div id="jd-bootstrap-nav-collapse" class="collapse navbar-collapse">
<?php $args = array(
'theme_location' => 'primary',
'depth' => 0,
'container' => '',
'menu_class' => 'nav navbar-nav',
'walker' => new BootstrapNavMenuWalker()
);
wp_nav_menu($args);
?>
</div><!-- ./collapse -->
</div><!-- /.container -->
</nav>
<div id="hero-content" class="container">
<div class="inner cover">
<h1 class="cover-heading">This is the heading Text</h1>
<p class="lead pull-right">
<a href="#" class="btn btn-lg btn-default hidden-sm hidden-xs">Learn more</a>
<a href="#" class="btn btn-sm btn-default visible-sm">Learn more</a>
<a href="#" class="btn btn-xs btn-default visible-xs">Learn more</a>
</p>
</div>
</div><!--/.container-->
</div><!-- /.cover-wrapper-inner-->
</header>
<div id="content">
<div class="container-fluid">
<div class="row">
<div id="main" class="clearfix" role="main">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?> role="article">
<section class="post_content">
<?php the_content(); ?>
</section> <!-- end article section -->
</article> <!-- end article -->
<?php endwhile; ?>
<?php endif; ?>
</div><!--/main-->
</div><!--row-->
</div><!--/container-->
</div><!-- /. content -->
<?php get_footer(); ?>