Changeset View
Changeset View
Standalone View
Standalone View
core/kernel/db/db_tag_processor.php
Context not available. | |||||
$value = $this->Field($params); | $value = $this->Field($params); | ||||
$name = array_key_exists('name', $params) ? $params['name'] : $this->InputName($params); | $name = array_key_exists('name', $params) ? $params['name'] : $this->InputName($params); | ||||
$theme_path = $this->Application->GetFrontThemePath() . '/inc'; | /** @var ThemeItem $theme */ | ||||
$theme = $this->Application->recallObject('theme.current'); | |||||
$stylesheet_file = $theme->getStylesheetFile(true); | |||||
if ( file_exists(FULL_PATH . $theme_path . '/style.css') ) { | if ( $stylesheet_file ) { | ||||
$stylesheet_folder_url = dirname($stylesheet_file) . '/'; | |||||
$url_params = Array ( | $url_params = Array ( | ||||
'events[fck]' => 'OnGetsEditorStyles', | 'events[fck]' => 'OnGetsEditorStyles', | ||||
'no_pass_through' => 1, 'pass' => 'm', 'no_amp' => 1 | 'no_pass_through' => 1, 'pass' => 'm', 'no_amp' => 1 | ||||
Context not available. | |||||
$styles_css = $this->Application->HREF('index', '_FRONT_END_', $url_params, 'index.php'); | $styles_css = $this->Application->HREF('index', '_FRONT_END_', $url_params, 'index.php'); | ||||
} | } | ||||
else { | else { | ||||
$theme_path = rtrim(EDITOR_PATH, '/'); | $stylesheet_folder_url = $this->Application->BaseURL(rtrim(EDITOR_PATH, '/')); | ||||
$styles_css = $this->Application->BaseURL($theme_path) . 'style.css'; | $styles_css = $stylesheet_folder_url . 'style.css'; | ||||
} | } | ||||
$styles_js = $this->Application->BaseURL($theme_path) . 'styles.js'; | $styles_js = $stylesheet_folder_url . 'styles.js'; | ||||
/*$page_id = $this->Application->GetVar('c_id'); | /*$page_id = $this->Application->GetVar('c_id'); | ||||
$content_id = $this->Application->GetVar('content_id'); | $content_id = $this->Application->GetVar('content_id'); | ||||
Context not available. | |||||
return ''; | return ''; | ||||
} | } | ||||
} | } | ||||
No newline at end of file | |||||
Context not available. |