Skip to content

Commit

Permalink
Minor - format code
Browse files Browse the repository at this point in the history
  • Loading branch information
jmontoyaa committed Jul 6, 2016
1 parent 71ef6ef commit 63c0c37
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions main/inc/lib/template.lib.php
Expand Up @@ -533,7 +533,6 @@ public function setCssFiles()
}

// Default CSS Bootstrap

$bowerCSSFiles = [
'bootstrap-daterangepicker/daterangepicker-bs3.css',
'fontawesome/css/font-awesome.min.css',
Expand Down Expand Up @@ -568,14 +567,20 @@ public function setCssFiles()
$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
Expand Down

0 comments on commit 63c0c37

Please sign in to comment.