Jake Vanderwerf
2026-09-14 7935d26cd16a4f8f69a59a44e27a7263b60e54bf
build/summary/render.php
@@ -19,12 +19,10 @@
    // Buffer output
    if (is_tax()) {
        switch (get_queried_object()->taxonomy) {
            case BASE.'shop':
                return jvbRenderShopSummary();
            default:
                return jvbRenderTermSummary();
        }
      return match (get_queried_object()->taxonomy) {
          BASE . 'shop' => jvbRenderShopSummary(),
          default => jvbRenderTermSummary(),
       };
    } elseif (is_singular()) {
        return jvbRenderArtistSummary();
    }
@@ -45,7 +43,7 @@
    $meta = Meta::forPost($current->ID);
    $artist = jvbContentFromUser((int)$current->post_author);
   $registrar = Registrar::getInstance($current->post_type));
   $registrar = Registrar::getInstance($current->post_type);
   $sections = [];
   if ($registrar) {
      $sections = $registrar->getSections();
@@ -120,7 +118,7 @@
    </header>
    <section>
        <details class="bio-info">
            <summary class="row btw">
            <summary class="row x-btw">
                <h2>About <?= ($artist['name'] !== '') ? $artist['name'] : strtok($artist['display_name'], ' ')?></h2>
            </summary>
            <div class="columns stack-small">
@@ -152,7 +150,7 @@
        <h2>Contact <?=$artist['name']?></h2>
        <?php
        echo jvbRenderContactInfo($current->ID, 'post');
        echo jvbRenderLinks($current->ID, 'post');
        echo jvbRenderLinks($current->ID);
        ?>
    </section>
    <?php
@@ -165,7 +163,7 @@
{
    $current = get_queried_object();
    $cache = Cache::for('shop_bio', WEEK_IN_SECONDS)->connect('taxonomy');
    $cache = Cache::for('shop_bio', 'term',WEEK_IN_SECONDS);
    $key = $current->term_id;
    $cached = $cache->get($key);
    if ($cached !== false) {
@@ -242,7 +240,7 @@
    </header>
    <section>
        <details class="bio-info">
            <summary class="row btw">
            <summary class="row x-btw">
                <h2>Learn More About <?=$current->name?></h2>
            </summary>
            <div class="map">
@@ -285,7 +283,7 @@
function jvbRenderTermSummary()
{
    $current = get_queried_object();
    $cache = Cache::for('term_summary', WEEK_IN_SECONDS)->connect('taxonomy');
    $cache = Cache::for('term_summary', 'term',WEEK_IN_SECONDS);
    $key = $current->ID;
    $cached = $cache->get($key);
    if ($cached !== false) {
@@ -294,16 +292,11 @@
    ob_start();
   $tax = jvbNoBase($current->taxonomy);
    switch ($tax) {
        case 'style':
            $title = 'Tattoo Artists';
            break;
        case 'theme':
            $title = 'Tattoos';
            break;
        default:
            $title = '';
    }
   $title = match ($tax) {
      'style' => 'Tattoo Artists',
      'theme' => 'Tattoos',
      default => '',
   };
    $meta = Meta::forTerm($current->ID);
    $fields = $meta->getAll();