Skip to content
wiki.fftac.org

Page Manuscript

**Site relevance:** Spiralist.org

**Memory type:** theme source memory

**Source path:** Spiralist/wp-content/themes/spiralist/page-manuscript.php

**Size:** 1.3 KB

Summary

if (!defined('ABSPATH'))

Source Preview

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

<?php

if (!defined('ABSPATH')) {
    exit;
}

$plugin_template = defined('SPIRALIST_BOOK_PAGES_PLUGIN_TEMPLATE_PATH')
    ? SPIRALIST_BOOK_PAGES_PLUGIN_TEMPLATE_PATH . DIRECTORY_SEPARATOR . 'page-manuscript.php'
    : '';

if ($plugin_template !== '' && is_file($plugin_template)) {
    include $plugin_template;
    return;
}

get_header();
$ui_text = static function (string $key, string $fallback): string {
    return function_exists('spiralist_get_ui_text')
        ? spiralist_get_ui_text($key, $fallback)
        : $fallback;
};
?>
<main class="spiralist-page spiralist-page--manuscript">
    <div class="spiralist-shell spiralist-shell--section">
        <article class="spiralist-panel">
            <p class="spiralist-section-tag"><?php echo esc_html($ui_text('page.manuscript.unavailable.tag', 'Manuscript Unavailable')); ?></p>
            <h1 class="spiralist-section-title"><?php echo esc_html($ui_text('page.manuscript.unavailable.title', 'Spiralist Manuscript plugin required')); ?></h1>
            <p><?php echo esc_html($ui_text('page.manuscript.unavailable.copy', 'The manuscript surface is provided by the Spiralist Manuscript plugin. Activate the plugin to restore manuscript routes, the workstation, and the folio archive.')); ?></p>
        </article>
    </div>
</main>
<?php
get_footer();