-
Notifications
You must be signed in to change notification settings - Fork 0
/
entry.php
35 lines (33 loc) · 1.68 KB
/
entry.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
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header>
<?php if (is_singular()) { echo '<h1 class="entry-title">'; } else { echo '<h2 class="entry-title">'; } ?>
<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a>
<?php if (is_singular()) { echo '</h1>'; } else { echo '</h2>'; } ?> <?php edit_post_link(); ?>
<?php if (!is_search()) { ?>
<section class="entry-meta">
<span class="author vcard"><?php the_author_posts_link(); ?></span>
<span class="meta-sep"> | </span>
<span class="entry-date"><?php the_time(get_option('date_format')); ?></span>
</section>
<?php } ?>
</header>
<?php if (is_archive() || is_search()) { ?>
<section class="entry-summary">
<?php the_excerpt(); ?>
<?php if (is_search()) { ?><div class="entry-links"><?php wp_link_pages(); ?></div><?php } ?>
</section>
<?php } else { ?>
<section class="entry-content">
<?php the_content(); ?>
<div class="entry-links"><?php wp_link_pages(); ?></div>
</section>
<?php } ?>
<?php if (!is_search()) { ?>
<footer class="entry-footer">
<span class="cat-links"><?php _e('Categories: ', 'noir-ui'); ?><?php the_category(', '); ?></span>
<?php if (comments_open()) {
echo '<span class="meta-sep">|</span> <span class="comments-link"><a href="' . get_comments_link() . '">' . sprintf(__('Comments', 'noir-ui')) . '</a></span>';
} ?>
</footer>
<?php } ?>
</article>