forked from eddiemachado-zz/bones
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpage-home.php
63 lines (46 loc) · 1.83 KB
/
page-home.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
<?php
/*
Template Name: Home Template
*
* This is your custom page template. You can create as many of these as you need.
* Simply name is "page-whatever.php" and in add the "Template Name" title at the
* top, the same way it is here.
*
* When you create your page, you can just select the template and viola, you have
* a custom page template to call your very own. Your mother would be so proud.
*
* For more info: http://codex.wordpress.org/Page_Templates
*/
?>
<?php get_header(); ?>
<div id="content">
<div id="inner-content" class="wrap cf">
<div id="main" class="m-all cf" role="main">
<!-- RevSlider -->
<?php echo do_shortcode("[rev_slider homeslider]"); ?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<article id="home" <?php post_class( 'cf' ); ?> role="article" itemscope itemtype="http://schema.org/BlogPosting">
<div id="home-sections" class="wrap cf">
<?php for ($i=1;$i<=3;$i++) : ?>
<?php $fieldname = "home_".$i; ?>
<div class="home-section m-all t-1of3 d-1of3"><?php the_field($fieldname); ?></div>
<?php endfor; ?>
</div>
</article>
<?php endwhile; else : ?>
<article id="post-not-found" class="hentry cf">
<header class="article-header">
<h1><?php _e( 'Oops, Post Not Found!', 'bonestheme' ); ?></h1>
</header>
<section class="entry-content">
<p><?php _e( 'Uh Oh. Something is missing. Try double checking things.', 'bonestheme' ); ?></p>
</section>
<footer class="article-footer">
<p><?php _e( 'This is the error message in the page-custom.php template.', 'bonestheme' ); ?></p>
</footer>
</article>
<?php endif; ?>
</div>
</div>
</div>
<?php get_footer(); ?>