-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
100 lines (85 loc) · 2.91 KB
/
index.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
<?php
get_header();
/* The blog page
*
*/
?>
<div class="page-detail__header">
<nav class="sub-nav" role="navigation" itemscope itemtype="http://schema.org/SiteNavigationElement">
<?php
$menu = wp_nav_menu(
array(
'theme_location' => 'main-nav',
'menu' => '',
'container' => '',
'container_class' => '',
'container_id' => '',
'menu_class' => '',
'menu_id' => '',
'echo' => false,
'fallback_cb' => 'wp_page_menu',
'before' => '',
'after' => '',
'link_before' => '',
'link_after' => '',
'items_wrap' => '<ul>%3$s</ul>',
'depth' => 3,
'walker' => ''
)
);
if ( $menu ) { echo $menu; }
?>
</nav>
<!--
<h1 class="page-detail__title" itemprop="headline">
</h1>
-->
</div>
<div class="post-list">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="post-list__post">
<div class="post-list__post-header">
<h2 class="post-list__post-title"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
</div>
<!--
<p class="byline entry-meta vcard">
<?php printf( __( 'Posted', 'bonestheme' ).' %1$s %2$s',
/* the time the post was published */
'<time class="updated entry-time" datetime="' . get_the_time('Y-m-d') . '" itemprop="datePublished">' . get_the_time(get_option('date_format')) . '</time>',
/* the author of the post */
'<span class="by">'.__( 'by', 'bonestheme').'</span> <span class="entry-author author" itemprop="author" itemscope itemptype="http://schema.org/Person">' . get_the_author_link( get_the_author_meta( 'ID' ) ) . '</span>'
); ?>
</p>
-->
<div class="post-liat__post-body">
<?php the_excerpt(); ?>
</div>
<!--
<p class="footer-comment-count">
<?php comments_number( __( '<span>No</span> Comments', 'bonestheme' ), __( '<span>One</span> Comment', 'bonestheme' ), __( '<span>%</span> Comments', 'bonestheme' ) );?>
</p>
-->
<div class="post-list__post-footer">
<div class="post-meta">
<div class="post-meta__left">
<?php echo get_the_time(get_option('date_format')); ?>
</div>
<div class="post-meta__right">
<?php printf( '%1$s' , get_the_category_list(', ') ); ?>
</div>
</div>
<div class="post-tags">
<?php the_tags( '<div class="post-tags__tag">' . __( 'Tags:', 'bonestheme' ) . '</div> '); ?>
</div>
</div>
</div>
<?php endwhile; ?>
</div>
<?php pagination(); ?>
<?php else : ?>
<h1><?php _e( 'Oops, Post Not Found!', 'bonestheme' ); ?></h1>
<p><?php _e( 'Uh Oh. Something is missing. Try double checking things.', 'bonestheme' ); ?></p>
<p><?php _e( 'This is the error message in the index.php template.', 'bonestheme' ); ?></p>
<?php endif; ?>
<?php //get_sidebar(); ?>
<?php get_footer(); ?>