Custom styling

This commit is contained in:
Alexander Yakovlev 2014-01-17 12:39:58 +07:00
parent eadeaad31f
commit c24008b2e2
2 changed files with 12 additions and 5 deletions

View File

@ -116,13 +116,17 @@ abstract class Kohana_Debugtoolbar {
self::firephp();
}
Profiler::stop($token);
// Javascript for toolbar
$template->set('scripts', file_get_contents(Kohana::find_file('views', 'toolbar', 'js')));
// CSS for toolbar
if ($config->styles === TRUE)
{
$styles = file_get_contents(Kohana::find_file('views', 'toolbar', 'css'));
Profiler::stop($token);
$template->set('styles', $styles);
}
// Benchmarks panel
if ($config->panels['benchmarks'] === TRUE)
@ -130,8 +134,6 @@ abstract class Kohana_Debugtoolbar {
$template->set('benchmarks', self::get_benchmarks());
}
$template->set('styles', $styles);
$result = $template->render();
if ($print === TRUE)

View File

@ -37,6 +37,11 @@ $config['panels'] = array(
*/
$config['secret_key'] = FALSE;
/**
* CSS style
**/
$config['styles'] = TRUE;
/**
* Exclude configs
*/