@@ 585-592 (lines=8) @@ | ||
582 | ||
583 | // Skin selector, if there is at least one valid skin |
|
584 | $skinOptions = self::generateSkinOptions( $user, $context ); |
|
585 | if ( $skinOptions ) { |
|
586 | $defaultPreferences['skin'] = [ |
|
587 | 'type' => 'radio', |
|
588 | 'options' => $skinOptions, |
|
589 | 'label' => ' ', |
|
590 | 'section' => 'rendering/skin', |
|
591 | ]; |
|
592 | } |
|
593 | ||
594 | $config = $context->getConfig(); |
|
595 | $allowUserCss = $config->get( 'AllowUserCss' ); |
|
@@ 654-661 (lines=8) @@ | ||
651 | static function datetimePreferences( $user, IContextSource $context, &$defaultPreferences ) { |
|
652 | # # Date and time ##################################### |
|
653 | $dateOptions = self::getDateOptions( $context ); |
|
654 | if ( $dateOptions ) { |
|
655 | $defaultPreferences['date'] = [ |
|
656 | 'type' => 'radio', |
|
657 | 'options' => $dateOptions, |
|
658 | 'label' => ' ', |
|
659 | 'section' => 'rendering/dateformat', |
|
660 | ]; |
|
661 | } |
|
662 | ||
663 | // Info |
|
664 | $now = wfTimestampNow(); |