Minor - format code

pull/2487/head
Julio 9 years ago
parent 71ef6efb49
commit 63c0c3759e
  1. 15
      main/inc/lib/template.lib.php

@ -533,7 +533,6 @@ class Template
}
// Default CSS Bootstrap
$bowerCSSFiles = [
'bootstrap-daterangepicker/daterangepicker-bs3.css',
'fontawesome/css/font-awesome.min.css',
@ -568,14 +567,20 @@ class Template
$this->assign('css_static_file_to_string', $css_file_to_string);
}
}
public function setCSSEditor() {
/**
*
*/
public function setCSSEditor()
{
$cssEditor = api_get_cdn_path(api_get_path(WEB_CSS_PATH).'editor.css');
if (is_file(api_get_path(SYS_CSS_PATH).'themes/'.$this->theme.'/editor.css')) {
$cssEditor = api_get_path(WEB_CSS_PATH).'themes/'.$this->theme.'/editor.css';
}
if (is_file(api_get_path(SYS_CSS_PATH).'themes/'.$this->theme.'/editor.css')) {
$cssEditor = api_get_path(WEB_CSS_PATH).'themes/'.$this->theme.'/editor.css';
}
$this->assign('cssEditor', $cssEditor);
}
/**
* Prepare custom CSS to be added at the very end of the <head> section
* @return void

Loading…
Cancel
Save