Skip to content
wiki.fftac.org

Functions - Source Excerpt 03

Back to Functions

Summary

This source excerpt preserves a bounded section of Anti-Christ.org/wp-content/themes/antichrist-engine/functions.php so readers can inspect the evidence without opening the full source file.

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

* @param array $classes Existing body classes.
 * @return array
 */
function antichrist_engine_body_classes($classes)
{
    if (is_singular() && has_post_thumbnail()) {
        $classes[] = 'has-featured-image';
    }

    if (is_active_sidebar('sidebar-1')) {
        $classes[] = 'has-sidebar';
    }

    return $classes;
}
add_filter('body_class', 'antichrist_engine_body_classes');

/**
 * Excerpts more label.
 *
 * @return string
 */
function antichrist_engine_excerpt_more()
{
    return '…';
}
add_filter('excerpt_more', 'antichrist_engine_excerpt_more');