-
Notifications
You must be signed in to change notification settings - Fork 39
/
home.php
90 lines (63 loc) · 1.98 KB
/
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
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
<?php
/**
* Page for Posts Template as defined in Settings->Reading
*
* Used to display blog archive.
*
* @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="entry-header">
<h2 class="entry-title"><a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
<?php echo scaffolding_post_meta(); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
</header>
<section class="entry-content clearfix">
<?php
the_content(
sprintf(
wp_kses(
/* translators: %s: Name of current post. Only visible to screen readers */
__( 'Continue reading<span class="screen-reader-text"> "%s"</span>', 'scaffolding' ),
array(
'span' => array(
'class' => array(),
),
)
),
get_the_title()
)
);
wp_link_pages(
array(
'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'scaffolding' ),
'after' => '</div>',
)
);
?>
</section>
<?php if ( get_the_tag_list() ) : ?>
<footer class="entry-footer clearfix">
<?php the_tags( '<p class="tags"><span class="tags-title">Tags:</span> ', ', ', '</p>' ); ?>
</footer>
<?php endif; ?>
</article>
<?php endwhile; ?>
<?php get_template_part( 'template-parts/pager' ); // WordPress template pager/pagination. ?>
<?php else : ?>
<?php get_template_part( 'template-parts/error' ); // WordPress template error message. ?>
<?php endif; ?>
</div><?php // END #main. ?>
</div><?php // END #inner-content. ?>
<?php
get_footer();