'diaspora', 'Friendica' => 'friendica', 'GNU Social' => 'gnu-social', 'Mastodon' => 'mastodon', 'PeerTube' => 'peertube', 'Pixelfed' => 'pixelfed', ); // If the URL in `$item_output` matches any of the sites above, apply // the SVG icon. For this to work, the menu item must actually be named // after the platform, as we can't deduce anything from a domain name // anymore (an instance's domain could be just about anything)! if ( 'jetpack-social-menu' === $args->theme_location ) { foreach ( $social_icons as $attr => $value ) { if ( false !== stripos( $item_output, $attr ) ) { $item_output = str_ireplace( $args->link_after, '' . jetpack_social_menu_get_svg( array( 'icon' => esc_attr( $value ) ) ), $item_output ); } } } return $item_output; } } new Fediverse_Icons_Jetpack();