set('icons', 'regular'); $site->setAll([ 'is_directory', 'membership', 'dashboard', 'magic_link', 'feed_block', 'favourites', 'help_menu' // 'has_map', // 'referrals', ]); $site->setIntegrations([ 'cloudflare', 'facebook', 'gmb', 'maps', 'helcim', 'postmark', 'instagram', 'umami' ]); $login = $site->login(); } add_action('plugins_loaded', 'aei_membership_settings', 10); function aei_membership_settings():void { if (!class_exists('JVBase\base\Site')) { return; } $site = Site::getInstance(); $membership = $site->membership(); $membership->setAll([ 'invitable', 'term_approval', 'member_verified' ]); $membership->setInvitable([ 'artist' => ['artist', 'enthusiast'], 'enthusiast' => ['enthusiast'] ]); $membership->setApprovers(['artist']); $membership->setCanSeeForum(['artist']); } //add_filter('jvbBelowHeader', 'aei_header'); //function aei_header(string $header):string //{ // return '
FREE LOCAL PICKUP at Legacy Tattoo Removal.
'; //} add_filter('jvbMenuExtra', 'aei_contact_nav', 10, 3); function aei_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 = 'Respectfully, this land was Amiskwaciwâskahikan before it was ever Edmonton.
'; } add_action('jvbBlockStyles', 'aei_blockStyles'); function aei_blockStyles() { register_block_style( 'core/list', [ 'name'=>'blocky', 'label' => __('Blocky', 'aei') ] ); register_block_style( 'core/group', [ 'name'=>'triangle', 'label' => __('Triangle', 'aei') ] ); } add_filter('jvbRandomFooterText', 'aei_footer_text'); function aei_footer_text(string $text):string { $aOpen = ''; $options = array( [ 'text' => 'Built with ♡ by '.$aOpen.'your friendly neighbourhood laser nerds.', 'weight' => 25 ], [ 'text' => 'Built with ♡ by your friends at '.$aOpen.'Legacy Tattoo Removal.', 'weight' => 15 ], [ 'text' => 'Your friendly '.$aOpen.'Edmonton tattoo removal crew.', 'weight' => 15 ], [ 'text' => $aOpen.'tattoo removal with ♡', 'weight' => 15 ], [ 'text' => 'From '.$aOpen.'cover ups to fresh starts - we\'re the laser nerds with ♡.', 'weight' => 10 ], [ 'text' => $aOpen.'See the difference at Legacy Tattoo Removal', 'weight' => 10 ], [ 'text' => 'Make space for your next tattoo at '.$aOpen.'Legacy Tattoo Removal.', 'weight' => 10 ], [ 'text' => $aOpen.'We\'re your artist\'s secret weapon.', 'weight' => 15 ] ); $totalWeight = 0; foreach ($options as $option) { $totalWeight += (int)$option['weight']; } $randomNumber = mt_rand(1, $totalWeight); $weightSum = 0; foreach ($options as $option) { $weightSum += (int)$option['weight']; if ($randomNumber <= $weightSum) { return ''.$option['text'].'
'; } } return ''.$options[0]['text'].'
'; } add_filter('jvbRegisterCustomIcons', 'aei_custom_icons'); function aei_custom_icons(array $icons):array { $icons['logo'] = AEI_DIR . '/assets/icons/edmonton-ink-logo.svg'; $icons['logo-text'] = AEI_DIR . '/assets/icons/edmonton-ink-circle.svg'; return $icons; } add_filter('jvbMapIcons', 'aei_icons_map'); function aei_icons_map(array $icons):array { return array_merge($icons, [ 'tattoo' => 'drop-simple', 'event' => 'calendar', 'piercing' => 'needle', 'artwork' => 'palette', 'artform' => 'shapes', 'city' => 'map-pin', 'piercing-type' => 'nut', 'theme' => 'folder-open', 'style' => 'hash', 'colour' => 'drop', 'placement' => 'person-arms-spread', 'media' => 'squares-four', 'artist' => 'user', 'artists' => 'users-three', 'partner' => 'currency-circle-dollar', 'shop' => 'storefront', 'past' => 'clock-counter-clockwise', 'future' => 'clock-clockwise', 'offer' => 'hand-heart', ]); }