'light', 'is_directory' => true, //as in, a membership directory 'has_membership' => false, 'has_map' => true, 'dashboard' => true, 'referrals' => true, 'magicLink' => true, 'support' => false, 'feed_block' => true, 'email_notifications' => false, '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 10AM - 6PM
By Appointment
'; } 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 = 'amiskwacîwâskahikan ᐊᒥᐢᑲᐧᒋᐋᐧᐢᑲᐦᐃᑲᐣ
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 '