Jake Vanderwerf
2026-05-11 aa974bf5954d0cca2506003a3cd9ec4eb89ed0bc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<?php
 
function altr_render_core_site_logo(array $block, string $content):string
{
    $open = $close = '';
 
    if (!is_home() && !is_front_page()) {
        $open = '<a href="'.get_home_url().'" rel="home">';
        $close = '</a>';
    }
    return $open.'<span class="logo">'.jvbIcon('logo-triangle').jvbIcon('logo-text-only').'</span>'.$close;
}
 
 
function altr_render_core_post_excerpt(array $block, string $content)
{
 
    global $post;
    if (!has_excerpt($post)) {
        return '';
    }
    $excerpt = $post->post_excerpt;
 
    $before = is_singular() ? '<span class="tldr" title="Too Long, Didn\'t Read" data-short="TLDR:" data-long="TOO LONG, DIDN\'T READ:">TLDR:</span>' : '';
    $excerpt = $before.$excerpt;
    return '<div class="excerpt">'.apply_filters('the_content', $excerpt).'</div>';
}
 
function altr_render_core_media_text(array $block, string $content):string
{
    if (!array_key_exists('attrs', $block) || !array_key_exists('className', $block['attrs']) || $block['attrs']['className'] !== 'ltr-logo'){
        return JVB()->blocks()->render_core_media_text($block, $content);
    }
 
    $imgs = [
        [
            'title' => 'Edmonton tattoo artist Amy Miketon of Bombshell Tattoo & Art Galerie',
            'img'   => 'Amy Miketon Octopus',
            'alt'   => 'An Octopus hugging Legacy\'s triangle by Edmonton tattoo artist Amy Miketon of Bombshell Tattoos',
            'slug'  => 'amy-miketon'
        ],
        [
            'title' => 'Edmonton tattoo artist Dave Huns of Blvck Chapel',
            'img'   => 'Dave Huns Script',
            'alt'   => 'A signature script of the words "Legacy Tattoo Removal" by Edmonton tattoo artist Dave Huns of Blvck Chapel',
            'slug'  => 'dave-huns'
        ],
//        [
//            'title' => 'Edmonton tattoo artist Jon Squires of Homesick Tattoos',
//            'img'   => 'Jon Squires Pinup',
//            'alt'   => 'A two-headed pinup girl (with Madi and Heidi\'s heads) by Edmonton tattoo artist Jon Squires of Homesick Tattoos',
//            'slug'  => 'jon-squires'
//        ],
        [
            'title' => 'Sherwood Park tattoo artist Scott Rusnak',
            'img'   => 'Scott Rusnak Kitsune',
            'slug'  => 'scott-rusnak',
            'alt'  => 'A Japanese Kitsune by Sherwood Park tattoo artist Scott Rusnak'
        ]
    ];
 
    $rand = rand(0, count($imgs) - 1);
 
    return sprintf(
        '<div class="media-text row nowrap">
            <figure>
                <a href="%s" title="A design by %s">
                    <img src="%s" alt="%s" loading="lazy" decoding="async">
                </a>
            </figure>
            <div>
                <h1>Legacy Tattoo Removal</h1>
                <p>See the Difference</p>
            </div>
        </div>',
        '#'.$imgs[$rand]['slug'],
        $imgs[$rand]['title'],
        AJV_URL.'/assets/img/'.$imgs[$rand]['img'].'.png',
        $imgs[$rand]['alt'],
        );
}