'light', 'is_directory' => false, //as in, a membership directory 'has_membership' => false, 'has_map' => true, 'dashboard' => true, 'referrals' => true, 'magicLink' => true, 'support' => false, 'feed_block' => true, 'email_notifications' => true, 'integrations' => [ 'bluesky' => true, 'cloudflare' => true, 'facebook' => true, 'maps' => true, 'gmb' => true, 'helcim' => false, 'postmark' => true, 'instagram' => true, 'square' => false, 'umami' => true, ], 'is_restaurant' => false, 'limit_hours' => false, 'enthusiast' => false, 'favourites' => false, //optional flag to allow enthusiasts, but not favourites ]; } /** * JVB_MEMBERSHIP defines the structure of the directory * Options include: * - membership_expires = useful if members pay a yearly membership fee * - hide_expired = removes users once membership expired; only used if membership_expires is true * - clip_expired = keeps users once membership expires, but limits the information shown; only used if membership_expires is true * - membership_approval = verified users can approve other users * - term_approval = (bool) verified users can create new terms, but needs approval * - member_only = (array) if empty, open to any registered user. otherwise an array of registered user roles */ //add_filter('jvb_membership', 'altr_setup_membership'); //function altr_setup_membership():array //{ // return [ // 'member_content' => true, // 'can_invite' => ['artist' => ['artist']], // 'member_verified' => true, // 'notifications' => true, // 'forum' => true, // 'member_only' => [ 'artist' ], // 'member_expires' => false, // 'hide_expired' => false, // 'clip_expired' => false, // 'term_approval' => true, // 'can_approve' => [ 'artist' ] // ]; //} // //add_filter('jvbLoadingQuips', 'altr_loading_quips'); //function altr_loading_quips(array $quips):array //{ // return []; //} add_filter('jvbAboveHeader', 'altr_legacy_header'); function altr_legacy_header(string $header):string { return '

WED - SUN 11:00AM - 6:00PM

By Appointment Only

'; } add_filter('jvbMenuExtra', 'altr_contact_nav', 10, 3); function altr_contact_nav(string $nav, string $menuName, array $block):string { if (array_key_exists('attrs', $block) && array_key_exists('className', $block['attrs']) && $block['attrs']['className'] === 'is-style-fixed' && $nav === '') { $call = '
  • '.jvbIcon('phone').'Call Us
  • '; $text = '
  • '.jvbIcon('chat').'825.925.7398PEWU
  • '; $email = '
  • '.jvbIcon('envelope').'info@legacytattooremoval.ca
  • '; return $call.$text.$email; } if (array_key_exists('attrs', $block) && array_key_exists('className', $block['attrs']) && $block['attrs']['className'] === 'is-style-floating' ) { return $nav.'
  • '; } return $nav; } add_filter('jvbBeforeFooter', 'altr_acknowledgement'); function altr_acknowledgement():string { return '

    amiskwacîwâskahikan ᐊᒥᐢᑲᐧᒋᐋᐧᐢᑲᐦᐃᑲᐣ

    Treaty 6 territory

    Edmonton, Alberta, Canada

    '; } add_action('jvbBlockStyles', 'altr_blockStyles'); function altr_blockStyles() { register_block_style( 'core/list', [ 'name'=>'blocky', 'label' => __('Blocky', 'altr') ] ); register_block_style( 'core/group', [ 'name'=>'triangle', 'label' => __('Triangle', 'altr') ] ); } function altr_render_core_post_excerpt(array $block, string $content) { global $post; if (!has_excerpt($post)) { return ''; } $excerpt = $post->post_excerpt; $before = is_singular() ? 'TLDR:' : ''; $excerpt = $before.$excerpt; return '
    '.apply_filters('the_content', $excerpt).'
    '; } add_action( 'init', 'altr_add_excerpts_to_pages' ); function altr_add_excerpts_to_pages() { add_post_type_support( 'page', 'excerpt' ); } add_filter('jvbRegisterCustomIcons', 'altr_custom_icons'); function altr_custom_icons(array $icons):array { $icons['logo-triangle'] = AJV_DIR . '/assets/icons/triangle.svg'; $icons['logo-triangle-fill'] = AJV_DIR . '/assets/icons/triangle-fill.svg'; $icons['logo-text'] = AJV_DIR . '/assets/icons/text.svg'; $icons['logo-text-only'] = AJV_DIR . '/assets/icons/text-only.svg'; $icons['logo-complete'] = AJV_DIR . '/assets/icons/triangle text back.svg'; return $icons; } add_filter('jvbLoadingIcon', 'altr_loading_icon'); function altr_loading_icon():string { return 'logo-triangle'; } function altr_render_core_site_logo(array $block, string $content):string { $open = $close = ''; if (!is_home() && !is_front_page()) { $open = ''; $close = ''; } return $open.''.$close; } add_filter('jvbSummaryHeader', 'altr_progress_summary_header', 10, 2); function altr_progress_summary_header(string $title, string $type):string { switch ($type) { case 'progress': return JVB_CONTENT[$type]['plural']; default: $obj = get_queried_object(); return 'Before & After Laser Tattoo Removal'.JVB_TAXONOMY[$type]['singular'].':'.str_replace(JVB_TAXONOMY[$type]['singular'].': ','',$title); } } add_filter('jvbSummaryHeaderExtra', 'altr_progress_summary_header_extra', 10, 2); function altr_progress_summary_header_extra(string $title, string $type):string { switch ($type) { case 'progress': return '

    See real results of tattoos before and after laser tattoo removal.

    Filter results by number of treatments, age of original tattoo, location on body, fading goal, skin type, timeline between treatments, tattoo style, or tattoo subject matter.

    '; } return $title; } //add_filter('jvbSummaryDetails', 'altr_summary_details', 10, 2); //function altr_summary_details(array $sections, string $type):array //{ // switch ($type) { // case 'progress': // $sections = [ // 'summary' => '

    We recommend spacing treatments out at least 12 weeks apart for best results.

    See the difference at Legacy.

    ' // ]; // break; // } // 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() { ?>