Single
**Site relevance:** Anti-Christ.net
**Memory type:** theme source memory
**Source path:** Anti-Christ.net/wp-content/themes/anti-christ-thin-veil/single.php
**Size:** 2.8 KB
Summary
@package Anti Christ Thin Veil
Source Preview
This source file is short enough to preview directly on its source-memory page.
<?php
/**
* Single post template.
*
* @package Anti_Christ_Thin_Veil
*/
get_header();
?>
<main id="primary" class="site-main entry-shell">
<?php
while ( have_posts() ) :
the_post();
$entry_label = __( 'Journal dispatch', 'anti-christ-thin-veil' );
if ( has_category( 'claim-review' ) ) {
$entry_label = __( 'Claim review', 'anti-christ-thin-veil' );
} elseif ( has_category( 'dossiers' ) ) {
$entry_label = __( 'Dossier', 'anti-christ-thin-veil' );
} elseif ( has_category( 'toolkit' ) ) {
$entry_label = __( 'Toolkit entry', 'anti-christ-thin-veil' );
} elseif ( has_category( 'source-desk' ) ) {
$entry_label = __( 'Source desk', 'anti-christ-thin-veil' );
} elseif ( has_category( 'field-guide' ) ) {
$entry_label = __( 'Field guide entry', 'anti-christ-thin-veil' );
}
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header">
<p class="section-label"><?php echo esc_html( $entry_label ); ?></p>
<?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
<?php actv_posted_on(); ?>
<?php if ( get_the_modified_time( 'U' ) > get_the_time( 'U' ) ) : ?>
<span class="entry-meta-line">
<?php esc_html_e( 'Updated', 'anti-christ-thin-veil' ); ?>
<time datetime="<?php echo esc_attr( get_the_modified_date( DATE_W3C ) ); ?>"><?php echo esc_html( get_the_modified_date() ); ?></time>
</span>
<?php endif; ?>
<div class="entry-standards-links" aria-label="<?php esc_attr_e( 'Editorial links', 'anti-christ-thin-veil' ); ?>">
<a href="<?php echo esc_url( actv_page_url( 'standards' ) ); ?>"><?php esc_html_e( 'Standards', 'anti-christ-thin-veil' ); ?></a>
<a href="<?php echo esc_url( actv_page_url( 'corrections' ) ); ?>"><?php esc_html_e( 'Corrections', 'anti-christ-thin-veil' ); ?></a>
<a href="<?php echo esc_url( actv_page_url( 'privacy' ) ); ?>"><?php esc_html_e( 'Privacy', 'anti-christ-thin-veil' ); ?></a>
</div>
</header>
<div class="entry-content">
<?php
the_content();
wp_link_pages(
array(
'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'anti-christ-thin-veil' ),
'after' => '</div>',
)
);
?>
</div>
<footer class="entry-footer">
<?php if ( get_the_category_list( ', ' ) ) : ?>
<div class="entry-taxonomy-links">
<span class="entry-meta-line"><?php esc_html_e( 'Filed under:', 'anti-christ-thin-veil' ); ?></span>
<?php echo wp_kses_post( get_the_category_list( '' ) ); ?>
</div>
<?php endif; ?>
<?php the_tags( '<span class="entry-meta-line">' . esc_html__( 'Tags: ', 'anti-christ-thin-veil' ), ', ', '</span>' ); ?>
</footer>
</article>
<?php
the_post_navigation();
if ( comments_open() || get_comments_number() ) {
comments_template();
}
endwhile;
?>
</main>
<?php
get_footer();