Single
**Site relevance:** 2IA.org
**Memory type:** theme source memory
**Source path:** 2IA.org/wp-content/themes/twoia-intelligence/single.php
**Size:** 5 KB
Summary
if ( function exists( 'twoia render breadcrumbs' ) )
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(); ?>
<?php
if ( function_exists( 'twoia_render_breadcrumbs' ) ) {
twoia_render_breadcrumbs();
}
?>
<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( home_url( '/research-archive/' ) ); ?>"><?php esc_html_e( 'Research Archive', 'two-identities-anonymous' ); ?></a>
<a class="button button--ghost" href="<?php echo esc_url( home_url( '/corrections-and-right-of-reply/' ) ); ?>"><?php esc_html_e( 'Request correction', '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', 'decoding' => 'async', 'fetchpriority' => 'high' ) ); ?>
<?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">
<section class="briefing-panel editorial-review-panel" aria-labelledby="twoia-briefing-standards-title">
<p class="eyebrow"><?php esc_html_e( 'Briefing standards', 'two-identities-anonymous' ); ?></p>
<h2 id="twoia-briefing-standards-title"><?php esc_html_e( 'Evidence and correction path', 'two-identities-anonymous' ); ?></h2>
<div class="editorial-review-grid">
<section class="editorial-review-item">
<h3><?php esc_html_e( 'Confidence label', 'two-identities-anonymous' ); ?></h3>
<p><?php echo esc_html( function_exists( 'twoia_get_editorial_meta_display_value' ) ? ( twoia_get_editorial_meta_display_value( get_the_ID(), 'twoia_confidence_label' ) ?: __( 'Not labeled yet', 'two-identities-anonymous' ) ) : __( 'Not labeled yet', 'two-identities-anonymous' ) ); ?></p>
</section>
<section class="editorial-review-item">
<h3><?php esc_html_e( 'Source notes', 'two-identities-anonymous' ); ?></h3>
<p><?php echo esc_html( (string) get_post_meta( get_the_ID(), 'twoia_source_notes', true ) ?: __( 'Source notes are required before a briefing is treated as complete.', 'two-identities-anonymous' ) ); ?></p>
</section>
<section class="editorial-review-item">
<h3><?php esc_html_e( 'Correction link', 'two-identities-anonymous' ); ?></h3>
<p><a href="<?php echo esc_url( home_url( '/corrections-and-right-of-reply/' ) ); ?>"><?php esc_html_e( 'Send a correction, update, or right-of-reply request.', 'two-identities-anonymous' ); ?></a></p>
</section>
</div>
</section>
<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();