This repository was archived by the owner on Aug 31, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathindex.php
More file actions
53 lines (42 loc) · 1.3 KB
/
index.php
File metadata and controls
53 lines (42 loc) · 1.3 KB
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
<?php
/* Catch-all templates */
get_header();
?>
<div class="main-content">
<?php while ( have_posts() ) : the_post(); ?>
<article id="<?php echo get_post_type(); ?>-<?php the_ID(); ?>" <?php post_class(); ?> role="article">
<div class="entry-header">
<h1 class="entry-title">
<?php the_title(); ?>
</h1>
<?php if ( ! is_page() ) : ?>
<p class="entry-byline">
<?php
$categories = ( has_category() ) ? ' <span class="entry-byline-amp">&</span> filed under %4$s' : '';
printf(
__( 'Posted <time class="entry-updated" datetime="%1$s" pubdate>%2$s</time> by <span class="entry-author">%3$s</span>' . $categories . '.', THEME_TEXT_DOMAIN ),
get_the_time( 'Y-m-j' ),
get_the_time( get_option( 'date_format' ) ),
get_the_author(),
get_the_category_list( ', ' )
);
?>
</p>
<?php endif; ?>
</div>
<div class="entry-content clearfix" itemprop="articleBody">
<?php the_content(); ?>
</div>
<div class="entry-footer">
<p class="entry-tags">
<?php the_tags( '<span class="entry-tags-label">' . __( 'Tags:' ) . '</span> ', ', ', '' ); ?>
</p>
</div>
<?php posts_nav_link(); ?>
<?php comments_template(); ?>
</article>
<?php endwhile; ?>
</div>
<?php
get_sidebar();
get_footer();