Changeset View
Changeset View
Standalone View
Standalone View
branches/5.2.x/core/units/helpers/fck_helper.php
Show First 20 Lines • Show All 535 Lines • ▼ Show 20 Line(s) | |||||
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'); | ||||
$prefix = $this->Application->isAdmin ? '_FRONT_END_' : ''; | $prefix = $this->Application->isAdmin ? '_FRONT_END_' : ''; | ||||
$styles_css = $this->Application->HREF('index', $prefix, $url_params, 'index.php'); | $styles_css = $this->Application->HREF('index', $prefix, $url_params, 'index.php'); | ||||
/** @var kCurlHelper $curl_helper */ | |||||
$curl_helper = $this->Application->recallObject('CurlHelper'); | |||||
$curl_helper->Send($styles_css, false); | |||||
$styles_css = $curl_helper->getInfo(CURLINFO_REDIRECT_URL); | |||||
$curl_helper->CloseConnection(); | |||||
} | } | ||||
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 84 Lines • Show Last 20 Lines |