Jake Vanderwerf
2026-04-26 5fe601cd1962dca79c0765a54ce864af5abb7d40
content/_setup.php
@@ -28,6 +28,8 @@
 *  - 'section' => (string) the slug of the section, as defined above
 */
use JVBase\registrar\Registrar;
require(AJV_DIR . '/content/art.php');
require(AJV_DIR . '/content/design.php');
require(AJV_DIR . '/content/development.php');
@@ -35,7 +37,7 @@
require(AJV_DIR . '/content/support.php');
require(AJV_DIR . '/content/writing.php');
add_filter('jvb_content', 'ajv_content');
//add_filter('jvb_content', 'ajv_content');
function ajv_content($content):array
{
    return [
@@ -51,7 +53,9 @@
add_filter('wp_footer', 'ajv_gallery_output');
function ajv_gallery_output():void
{
    if (is_singular(array_map(function($item) { return BASE.$item; }, array_keys(JVB_CONTENT)))) {
    $types = array_map(function($type) { return jvbCheckBase($type); }, Registrar::getRegistered('post'));
    if (is_singular($types)) {
        jvbRenderGallery();
    }
}