Virtual Pages - Source Excerpt 73
Summary
This source excerpt preserves a bounded section of 2IA.org/wp-content/themes/twoia-intelligence/inc/virtual-pages.php so readers can inspect the evidence without opening the full source file.
**Source path:** 2IA.org/wp-content/themes/twoia-intelligence/inc/virtual-pages.php
'hurt' => __( 'Readers get branding instead of a standard. Serious work needs a public boundary, not a costume.', 'two-identities-anonymous' ),
'action' => __( 'State the scope, funding posture, independence, correction path, public limits, and the exact public work readers should expect.', 'two-identities-anonymous' ),
),
);
$brief = $briefs[ $parent_slug ] ?? array(
'broken' => $body ? $body : sprintf( __( '%s names a failure that should be tied to a record, a harmed public, and a demand.', 'two-identities-anonymous' ), $title ),
'profits' => __( 'The beneficiary is whoever can make the decision without showing the record, the rule, the cost, or the correction path.', 'two-identities-anonymous' ),
'hurt' => __( 'The harm lands on people who are scored, watched, denied, priced, flagged, exposed, or ignored without a practical way to challenge the file.', 'two-identities-anonymous' ),
'action' => __( 'Name the institution, pull the document, quote the clause, mark the uncertainty, and demand the repair in public.', 'two-identities-anonymous' ),
);
$brief['document'] = $first_record;
return $brief;
}
/**
* Return a compact above-the-fold brief for detail pages.
*
* @param array $page Section-backed child route definition.
* @param array $section Section definition.
* @param array $dossier Dossier payload.
* @return array
*/
function twoia_get_virtual_dossier_fast_brief( $page, $section, $dossier ) {
$evidence = twoia_virtual_text_items( $dossier['evidence'] ?? array() );
$first_record = ! empty( $evidence ) ? $evidence[0] : __( 'Public records, policies, source notes, correction logs, and reviewable claims.', 'two-identities-anonymous' );
$brief = twoia_get_virtual_dossier_failure_brief( $page, $section, $dossier, $first_record );
return array(
array(
'label' => __( 'What is broken', 'two-identities-anonymous' ),
'text' => $brief['broken'],
),
array(
'label' => __( 'Who benefits', 'two-identities-anonymous' ),
'text' => $brief['profits'],
),
array(
'label' => __( 'Who gets hurt', 'two-identities-anonymous' ),
'text' => $brief['hurt'],
),
array(
'label' => __( 'Do this first', 'two-identities-anonymous' ),
'text' => $brief['action'],
),
array(
'label' => __( 'Document to pull', 'two-identities-anonymous' ),
'text' => $brief['document'],
),
);
}
/**
* Return compact reference notes for durable detail pages.
*
* @param array $page Section-backed child route definition.
* @param array $section Section definition.
* @param array $dossier Dossier payload.
* @return array
*/
function twoia_get_virtual_dossier_reference_notes( $page, $section, $dossier ) {
$title = isset( $section['title'] ) ? wp_strip_all_tags( $section['title'] ) : $page['title'];
$parent_title = isset( $page['parent_page']['title'] ) ? wp_strip_all_tags( $page['parent_page']['title'] ) : '';
$evidence = twoia_virtual_text_items( $dossier['evidence'] ?? array() );
$first_record = ! empty( $evidence ) ? $evidence[0] : __( 'Public records, source notes, correction logs, and reviewable policy material.', 'two-identities-anonymous' );
$second_record = isset( $evidence[1] ) ? $evidence[1] : __( 'A dated public statement, governing policy, audit trail, or correction route that can be checked later.', 'two-identities-anonymous' );
return array(
array(
'label' => __( 'Best records', 'two-identities-anonymous' ),
'text' => $first_record . ' ' . $second_record,
),
array(
'label' => __( 'Confidence limit', 'two-identities-anonymous' ),
'text' => sprintf(
/* translators: %s: dossier title. */
__( '%s should not be treated as confirmed beyond the records named on the page. Purchase is not use, stated purpose is not performance, and a denial is not a complete audit.', 'two-identities-anonymous' ),
$title
),
),
array(
'label' => __( 'Minimize harm', 'two-identities-anonymous' ),
'text' => __( 'Keep the focus on institutions, vendors, rules, records, and decision paths. Remove private identifiers unless the public-interest claim genuinely cannot be made without them.', 'two-identities-anonymous' ),
),
array(
'label' => __( 'Correction path', 'two-identities-anonymous' ),
'text' => sprintf(
/* translators: 1: dossier title, 2: parent route title. */
__( 'To challenge %1$s inside %2$s, send the dated record, the exact sentence at issue, what it proves, and what wording should change.', 'two-identities-anonymous' ),
$title,
$parent_title
),
),
);
}
/**
* Return concrete record targets for a detail page.
*
* @param array $page Section-backed child route definition.
* @param array $section Section definition.
* @param array $dossier Dossier payload.
* @return array
*/
function twoia_get_virtual_dossier_record_targets( $page, $section, $dossier ) {
$title = isset( $section['title'] ) ? wp_strip_all_tags( $section['title'] ) : $page['title'];
$parent_slug = isset( $page['parent_slug'] ) ? sanitize_title( $page['parent_slug'] ) : '';
$parent_title = isset( $page['parent_page']['title'] ) ? wp_strip_all_tags( $page['parent_page']['title'] ) : '';
$evidence = twoia_virtual_text_items( $dossier['evidence'] ?? array() );
$questions = twoia_virtual_text_items( $dossier['review_questions'] ?? array() );
$use_items = twoia_virtual_text_items( $dossier['use'] ?? array() );
$first_record = ! empty( $evidence ) ? $evidence[0] : __( 'a dated public record, policy, source note, correction log, or decision trail that can be checked later.', 'two-identities-anonymous' );
$second_record = isset( $evidence[1] ) ? $evidence[1] : __( 'a second source class that can corroborate the claim without depending on tone or assumption.', 'two-identities-anonymous' );
$first_action = ! empty( $use_items ) ? $use_items[0] : __( 'turn the concern into a narrow public question.', 'two-identities-anonymous' );
$first_question = ! empty( $questions ) ? $questions[0] : __( 'what record would prove, narrow, dispute, or repair the claim?', 'two-identities-anonymous' );