Changeset View
Changeset View
Standalone View
Standalone View
branches/5.3.x/core/units/helpers/fck_helper.php
Show First 20 Lines • Show All 525 Lines • ▼ Show 20 Line(s) | |||||
/** @var ThemeItem $theme */ | /** @var ThemeItem $theme */ | ||||
$theme = $this->Application->recallObject('theme.current'); | $theme = $this->Application->recallObject('theme.current'); | ||||
$stylesheet_file = $theme->getStylesheetFile(true); | $stylesheet_file = $theme->getStylesheetFile(true); | ||||
if ( $stylesheet_file ) { | if ( $stylesheet_file ) { | ||||
$stylesheet_folder_url = dirname($stylesheet_file) . '/'; | $stylesheet_folder_url = dirname($stylesheet_file) . '/'; | ||||
$url_params = Array ('events[fck]' => 'OnGetsEditorStyles', 'no_pass_through' => 1, 'pass' => 'm'); | $url_params = Array ('events[fck]' => 'OnGetsEditorStyles', 'no_pass_through' => 1, 'pass' => 'm'); | ||||
$styles_css = $this->Application->HREF('index', '_FRONT_END_', $url_params, 'index.php'); | |||||
$prefix = $this->Application->isAdmin ? '_FRONT_END_' : ''; | |||||
$styles_css = $this->Application->HREF('index', $prefix, $url_params, 'index.php'); | |||||
} | } | ||||
else { | else { | ||||
$stylesheet_folder_url = $this->Application->BaseURL(rtrim(EDITOR_PATH, '/')); | $stylesheet_folder_url = $this->Application->BaseURL(rtrim(EDITOR_PATH, '/')); | ||||
$styles_css = $stylesheet_folder_url . 'style.css'; | $styles_css = $stylesheet_folder_url . 'style.css'; | ||||
} | } | ||||
$styles_js = $stylesheet_folder_url . 'styles.js'; | $styles_js = $stylesheet_folder_url . 'styles.js'; | ||||
▲ Show 20 Lines • Show All 83 Lines • Show Last 20 Lines |