get($themeKey); $file = ''; if (isset($theme['prefix'])) { $file .= $theme['prefix']; } $file .= $themes->cssId($cssExt, $cssFile); $file = $res->filterMinify($theme['ext'], $file); if ($res->getPath($theme['ext'], $file)) { return array($res->getUrl($theme['ext'], $file, TRUE)); } else { return Civi\Core\Themes::PASSTHRU; } } /** * The base handler falls back to loading files from the main application (rather than * using the theme). * * @param \Civi\Core\Themes $themes * The theming subsystem. * @param string $themeKey * The active/desired theme key. * @param string $cssExt * The extension for which we want a themed CSS file (e.g. "civicrm"). * @param string $cssFile * File name (e.g. "css/bootstrap.css"). * @return array|string * List of CSS URLs, or PASSTHRU. */ public static function fallback($themes, $themeKey, $cssExt, $cssFile) { $res = Civi::resources(); return array($res->getUrl($cssExt, $cssFile, TRUE)); } }