-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhome-template.php
62 lines (47 loc) · 1.49 KB
/
home-template.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
<?php
/*
Template Name: Home Template
*/
include('includes/header.php');
?>
<div class="pusher">
<div class="wrapper">
<div class="hero">
<img src="<?php echo get_theme_mod('home-hero-heading-image');?>" alt="hero" class="ui image">
<div class="hero-overlay">
<p>
<?php bloginfo('name'); ?>
<span>
<?php bloginfo('description'); ?>
</span>
</p>
</div> <!-- hero overlay -->
</div> <!-- hero -->
<div class="main-content index-main">
<div class="ui container">
<div class="ui two column stackable grid">
<div class="column">
</div> <!-- column -->
<div class="middle aligned column">
<div class="home-text">
<?php if(have_posts()) : ?>
<?php while(have_posts()) : the_post(); ?>
<div class="blog-post">
<h4 class="blog-post-title">
<?php the_title(); ?>
</h4>
<?php the_content(); ?>
</div><!-- /.blog-post -->
<?php endwhile; ?>
<?php else : ?>
<p><?php __('No Page Found'); ?></p>
<?php endif; ?>
</div> <!-- home-text -->
</div> <!-- column -->
</div> <!-- grid -->
</div> <!-- container -->
</div> <!-- main-content -->
</div> <!-- wrapper -->
</div> <!-- pusher -->
</div>
<?php include('includes/footer.php'); ?>