From c809b6d690e864f8be94a704ef4c11bc77aeb6c8 Mon Sep 17 00:00:00 2001 From: R4356th <61620631+R4356th@users.noreply.github.com> Date: Sat, 17 Apr 2021 17:14:21 +0600 Subject: [PATCH] Update LocalWiki.php (#3833) --- LocalWiki.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/LocalWiki.php b/LocalWiki.php index ac5e35171e..786ebf0457 100644 --- a/LocalWiki.php +++ b/LocalWiki.php @@ -252,6 +252,15 @@ function onSkinBuildSidebar( $skin, &$bar ) { } } +if ( $wgDBname === 'pokemundowiki') { + $wgHooks['BeforePageDisplay'][] = 'loadFonts'; + + function loadFonts ( OutputPage $out ) { + $out->addLink( ['rel' => 'preconnect', 'href' => 'https://fonts.gstatic.com'] ); + $out->addLink( ['rel' => 'stylesheet', 'href' => 'https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap'] ); + } +} + if ( $wgDBname === 'newusopediawiki' ) { $wgFilterLogTypes['comments'] = false; }