Esempio n. 1
0
 /**
  * Returns a set of sass parameters set by the webapp that should not be saved to wiki themesettings
  * For example, skin width is an webapp, application, setting.  It is not user controllable.
  * Rationale: User-set theme settings and skin logic should be kept separate.
  *            User-set theme settings should be saved.
  *            Non-settable settings should be driven programmatically.
  */
 public static function getApplicationThemeSettings()
 {
     if (class_exists('BodyController') && BodyController::isOasisBreakpoints()) {
         $params = ['widthType' => 0];
         if (BodyController::isOasisTypography()) {
             $params['oasisTypography'] = 1;
         }
         return $params;
     } else {
         $params = [];
         global $wgOasisGrid;
         if ($wgOasisGrid) {
             $params['widthType'] = 3;
         }
         // Should be last so it can override wgOasisGrid
         if (class_exists('BodyController') && BodyController::isResponsiveLayoutEnabled()) {
             $params['widthType'] = 2;
         }
         return $params;
     }
 }