forked from crosspeaksoftware/scaffolding
-
Notifications
You must be signed in to change notification settings - Fork 0
/
front-page.php
68 lines (48 loc) · 1.28 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
<?php
/**
* Front Page Template
*
* Latest Posts or Static Front Page Template as defined in Settings->Reading. Takes precedence over home.php.
* Recommended usage: Static Front Page Template
*
* @see http://codex.wordpress.org/Template_Hierarchy
*
* @package Scaffolding
*/
get_header();
?>
<div id="inner-content" class="container">
<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">
<header class="page-header">
<h1 class="page-title"><?php the_title(); ?></h1>
</header>
<section class="page-content clearfix">
<?php
the_content();
wp_link_pages(
array(
'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'scaffolding' ) . '</span>',
'after' => '</div>',
'link_before' => '<span>',
'link_after' => '</span>',
)
);
?>
</section>
</article>
<?php
endwhile;
else :
get_template_part( 'template-parts/error' ); // WordPress template error message.
endif;
?>
</div><?php // END #main. ?>
</div><?php // END #inner-content. ?>
<?php
get_footer();