Jake Vanderwerf
2026-02-10 8c4279f9bbe7ec4681412865b999f2f4457d80ac
alegacy.php
@@ -92,7 +92,8 @@
{
    return [
        'icons'               => 'light',
        'is_directory'        => false,        //as in, a membership directory
        'is_directory'        => true,        //as in, a membership directory
        'directory_label'     => ['List', 'Lists'],
        'has_membership'      => false,
        'has_map'             => true,
        'dashboard'           => true,
@@ -325,36 +326,9 @@
//    return $sections;
//}
add_filter('render_block', 'altr_tldr_script', 10, 2);
function altr_tldr_script($content, $block) {
    if ($block['blockName'] === 'core/post-excerpt') {
        add_action('wp_footer', function() {
           ?>
            <script>
            document.addEventListener('DOMContentLoaded', function() {
               const tldrElements = document.querySelectorAll('.tldr');
               tldrElements.forEach(function(el) {
                  let isExpanded = false;
                  el.addEventListener('click', function(e) {
                     e.preventDefault();
                     isExpanded = !isExpanded;
                     window.eraseText(el, 5).then(() => window.typeText(el, isExpanded ? this.dataset.long : this.dataset.short));
                     el.classList.remove('typeText');
                  });
               });
            });
            </script>
            <?php
        },999);
    }
    return $content;
}
add_filter('the_seo_framework_meta_render_data', 'altr_no_next_archive', 10, 1);
function altr_no_next_archive($tags) {
    if (is_post_type_archive(BASE.'progress') || is_post_type_archive(BASE.'terms') || is_post_type_archive(BASE.'faq')) {
    if (is_tax() || is_post_type_archive('altr_progress') || is_post_type_archive('altr_terms') || is_post_type_archive('altr_faq')) {
        if (array_key_exists('next', $tags)) {
            unset($tags['next']);
        }
@@ -372,4 +346,31 @@
function altr_estimate_link(string $link):string
{
    return 'https://legacytattooremoval.ca/get-an-estimate/';
}
}
add_filter('jvbLogoIcon', 'altr_logostring');
function altr_logostring():string
{
    return 'logo-triangle';
}
add_filter('jvbDefaultIcon', 'altr_default_icon');
function altr_default_icon():string
{
    return 'triangle';
}
add_action('init', 'altr_RegisterScripts', 5);
function altr_RegisterScripts() {
    wp_enqueue_script(
        'altr-base',
        AJV_URL.'assets/js/legacy.js',
       [],
        '1.0',
        [
            'strategy'  => 'defer',
            'in_footer' => true
        ]
    );
}