Changeset View
Changeset View
Standalone View
Standalone View
branches/5.2.x/core/units/fck/fck_eh.php
Show First 20 Lines • Show All 237 Lines • ▼ Show 20 Line(s) | |||||
/** | /** | ||||
* Returns compressed CSS file | * Returns compressed CSS file | ||||
* | * | ||||
* @param kEvent $event | * @param kEvent $event | ||||
*/ | */ | ||||
function OnGetsEditorStyles($event) | function OnGetsEditorStyles($event) | ||||
{ | { | ||||
kUtil::safeDefine('DBG_SKIP_REPORTING', 1); | |||||
/** @var ThemeItem $theme */ | /** @var ThemeItem $theme */ | ||||
$theme = $this->Application->recallObject('theme.current'); | $theme = $this->Application->recallObject('theme.current'); | ||||
/** @var MinifyHelper $minify_helper */ | /** @var MinifyHelper $minify_helper */ | ||||
$minify_helper = $this->Application->recallObject('MinifyHelper'); | $minify_helper = $this->Application->recallObject('MinifyHelper'); | ||||
$this->Application->InitParser(); | $this->Application->InitParser(); | ||||
$styles_css = $minify_helper->CompressScriptTag(array('files' => $theme->getStylesheetFile(true))); | $styles_css = $minify_helper->CompressScriptTag(array('files' => $theme->getStylesheetFile(true))); | ||||
$event->redirect = 'external:' . $styles_css; | $event->redirect = 'external:' . $styles_css; | ||||
} | } | ||||
} | } |