Single
**Site relevance:** 2IA.org
**Memory type:** theme source memory
**Source path:** 2IA.org/wp-content/themes/twoia-intelligence/single.php
**Size:** 3.1 KB
Summary
'briefing-image briefing-image--hero' ) ); ?
Source Preview
This source file is short enough to preview directly on its source-memory page.
<?php
/**
* Single post template.
*
* @package TwoIA
*/
get_header();
?>
<?php while ( have_posts() ) : the_post(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class( 'single-briefing' ); ?>>
<header class="single-briefing__header section section--compact">
<div class="single-briefing__kicker">
<?php twoia_post_categories(); ?>
</div>
<h1><?php echo esc_html( get_the_title() ); ?></h1>
<?php twoia_post_meta(); ?>
<?php if ( has_excerpt() ) : ?>
<p class="single-briefing__excerpt"><?php echo esc_html( get_the_excerpt() ); ?></p>
<?php endif; ?>
<div class="single-briefing__actions">
<button type="button" class="button button--ghost" data-copy-link data-copy-success="<?php esc_attr_e( 'Link copied', 'two-identities-anonymous' ); ?>"><?php esc_html_e( 'Copy citation link', 'two-identities-anonymous' ); ?></button>
<a class="button button--ghost" href="<?php echo esc_url( get_post_type_archive_link( 'post' ) ? get_post_type_archive_link( 'post' ) : home_url( '/' ) ); ?>"><?php esc_html_e( 'Archive', 'two-identities-anonymous' ); ?></a>
</div>
</header>
<?php if ( has_post_thumbnail() ) : ?>
<figure class="single-briefing__image section section--flush">
<?php the_post_thumbnail( 'briefing-hero', array( 'class' => 'briefing-image briefing-image--hero' ) ); ?>
<?php if ( get_the_post_thumbnail_caption() ) : ?>
<figcaption><?php echo wp_kses_post( get_the_post_thumbnail_caption() ); ?></figcaption>
<?php endif; ?>
</figure>
<?php endif; ?>
<div class="section article-layout">
<aside class="article-sidebar" aria-label="<?php esc_attr_e( 'Article navigation', 'two-identities-anonymous' ); ?>">
<nav class="table-of-contents briefing-panel" data-toc data-toc-source=".entry-content" aria-labelledby="toc-title">
<h2 id="toc-title"><?php esc_html_e( 'Briefing map', 'two-identities-anonymous' ); ?></h2>
<p><?php esc_html_e( 'Headings will appear here when the article contains sections.', 'two-identities-anonymous' ); ?></p>
</nav>
</aside>
<div class="article-main">
<div class="briefing-panel briefing-panel--warning">
<p><strong><?php esc_html_e( 'Boundary note:', 'two-identities-anonymous' ); ?></strong> <?php esc_html_e( 'This briefing is for public education and accountability research. It does not provide instructions for unauthorized access, evasion, sensor triggering, or interference with any system.', 'two-identities-anonymous' ); ?></p>
</div>
<div class="entry-content">
<?php
the_content();
wp_link_pages(
array(
'before' => '<nav class="page-links" aria-label="' . esc_attr__( 'Post pages', 'two-identities-anonymous' ) . '">',
'after' => '</nav>',
)
);
?>
</div>
<?php
if ( function_exists( 'twoia_render_editorial_review_panel' ) ) {
twoia_render_editorial_review_panel();
}
?>
<footer class="entry-footer">
<?php twoia_post_tags(); ?>
</footer>
</div>
</div>
</article>
<?php twoia_related_posts(); ?>
<?php if ( comments_open() || get_comments_number() ) : ?>
<?php comments_template(); ?>
<?php endif; ?>
<?php endwhile; ?>
<?php
get_footer();