32 if ( isset( $options[
'themeScripts'] ) ) {
34 if ( !isset( $options[
'skinScripts'] ) ) {
35 $options[
'skinScripts'] = [];
39 if ( isset( $options[
'themeStyles'] ) ) {
41 if ( !isset( $options[
'skinStyles'] ) ) {
42 $options[
'skinStyles'] = [];
47 parent::__construct( $options );
62 array_keys( $themes ),
63 array_map(
function ( $theme ) use ( $module, $which ) {
64 if ( $which ===
'scripts' ) {
69 }, array_values( $themes ) )
82 foreach ( $skinSpecific as $skin => $files ) {
83 if ( !is_array( $files ) ) {
86 if ( isset( $extraSkinSpecific[$skin] ) ) {
87 $skinSpecific[$skin] = array_merge( [ $extraSkinSpecific[$skin] ], $files );
88 } elseif ( isset( $extraSkinSpecific[
'default'] ) ) {
89 $skinSpecific[$skin] = array_merge( [ $extraSkinSpecific[
'default'] ], $files );
93 foreach ( $extraSkinSpecific as $skin =>
$file ) {
94 if ( !isset( $skinSpecific[$skin] ) ) {
95 $skinSpecific[$skin] =
$file;