Skip to content
wiki.fftac.org

Content Excerpt

**Site relevance:** Anti-Christ.org

**Memory type:** theme source memory

**Source path:** Anti-Christ.org/wp-content/themes/antichrist-engine/template-parts/content-excerpt.php

**Size:** 2.7 KB

Summary

@package Antichrist Engine

Source Preview

This source file is short enough to preview directly on its source-memory page.

<?php
/**
 * Excerpt card template.
 *
 * @package Antichrist_Engine
 */

$record_id      = antichrist_engine_post_record_id();
$classification = antichrist_engine_post_classification();
$topic          = antichrist_engine_post_primary_topic();
$series         = antichrist_engine_post_series();
$release_profile = antichrist_engine_post_release_profile();
$publication_copy = antichrist_engine_foundation_publication_interface_copy();
$support_route  = !empty($release_profile['routes'][0]) ? $release_profile['routes'][0] : array();
?>
<article id="post-<?php the_ID(); ?>" <?php post_class('card foundation-panel post-card publication-card'); ?>>
    <p class="eyebrow"><?php echo esc_html($series ? $series['eyebrow'] : $publication_copy['excerpt_eyebrow']); ?></p>
    <p class="publication-kicker"><?php echo esc_html($record_id); ?> / <?php echo esc_html($classification); ?></p>
    <p class="publication-card__signal"><?php echo esc_html($release_profile['role_label']); ?></p>
    <h2 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
    <?php antichrist_engine_posted_on(); ?>
    <div class="publication-meta publication-meta--inline">
        <div class="publication-meta__item">
            <span><?php echo esc_html($publication_copy['topic_label']); ?></span>
            <strong><?php echo esc_html($topic); ?></strong>
        </div>
        <div class="publication-meta__item">
            <span><?php echo esc_html($publication_copy['role_label']); ?></span>
            <strong><?php echo esc_html($release_profile['role_label']); ?></strong>
        </div>
        <div class="publication-meta__item">
            <span><?php echo esc_html($publication_copy['status_label']); ?></span>
            <strong><?php echo esc_html($publication_copy['archive_status']); ?></strong>
        </div>
    </div>
    <div class="entry-summary">
        <?php the_excerpt(); ?>
    </div>
    <p class="publication-use-note"><?php echo esc_html($release_profile['best_use']); ?></p>
    <div class="foundation-card-actions publication-card__actions">
        <a class="text-link" href="<?php the_permalink(); ?>"><?php echo esc_html($publication_copy['open_label']); ?></a>
        <?php if (!empty($support_route['target']) && !empty($support_route['cta'])) : ?>
            <a class="text-link" href="<?php echo esc_url(antichrist_engine_foundation_build_target_url(
                (string) $support_route['target'],
                (array) ($support_route['args'] ?? array()),
                (string) ($support_route['anchor'] ?? '')
            )); ?>"><?php echo esc_html($support_route['cta']); ?></a>
        <?php endif; ?>
    </div>
</article>