Initial support for webfonts in MobileFrontend
Written in pair-programming with Ryan Kaldari. This adds a version of webfonts initialization that is stripped of any smart features. It only loads the basic jquery.webfonts library and the fonts repository in a way that is usable with the MobileFronted extension. It is completely disabled by default. It can be enabled by setting $wgULSMobileWebfontsEnabled = true; and even then it will only be enabled for users who opted in for the mobile beta mode. Change-Id: I488e411232a1192bbf46ae5675c701366bda9a3e
This commit is contained in:
@@ -153,6 +153,16 @@ $wgResourceModules['ext.uls.webfonts'] = array(
|
||||
|
||||
$wgResourceModules['ext.uls.webfonts.repository'] = array(
|
||||
'scripts' => 'resources/js/ext.uls.webfonts.repository.js',
|
||||
'targets' => array( 'desktop', 'mobile' ),
|
||||
) + $resourcePaths;
|
||||
|
||||
$wgResourceModules['ext.uls.webfonts.mobile'] = array(
|
||||
'scripts' => 'resources/js/ext.uls.webfonts.mobile.js',
|
||||
'targets' => array( 'mobile' ),
|
||||
'dependencies' => array(
|
||||
'jquery.webfonts',
|
||||
'ext.uls.webfonts.repository',
|
||||
),
|
||||
) + $resourcePaths;
|
||||
|
||||
$wgResourceModules['jquery.i18n'] = array(
|
||||
@@ -234,6 +244,7 @@ $wgResourceModules['jquery.uls.grid'] = array(
|
||||
|
||||
$wgResourceModules['jquery.webfonts'] = array(
|
||||
'scripts' => 'lib/jquery.webfonts.js',
|
||||
'targets' => array( 'desktop', 'mobile' ),
|
||||
) + $resourcePaths;
|
||||
|
||||
// A module named rangy is defined in VisualExtension with more features of rangy.
|
||||
|
||||
Reference in New Issue
Block a user