mirror of
https://github.com/Oreolek/debug-toolbar.git
synced 2024-05-07 03:28:14 +03:00
Custom styling
This commit is contained in:
parent
eadeaad31f
commit
c24008b2e2
|
@ -116,13 +116,17 @@ abstract class Kohana_Debugtoolbar {
|
||||||
self::firephp();
|
self::firephp();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Profiler::stop($token);
|
||||||
|
|
||||||
// Javascript for toolbar
|
// Javascript for toolbar
|
||||||
$template->set('scripts', file_get_contents(Kohana::find_file('views', 'toolbar', 'js')));
|
$template->set('scripts', file_get_contents(Kohana::find_file('views', 'toolbar', 'js')));
|
||||||
|
|
||||||
// CSS for toolbar
|
// CSS for toolbar
|
||||||
$styles = file_get_contents(Kohana::find_file('views', 'toolbar', 'css'));
|
if ($config->styles === TRUE)
|
||||||
|
{
|
||||||
Profiler::stop($token);
|
$styles = file_get_contents(Kohana::find_file('views', 'toolbar', 'css'));
|
||||||
|
$template->set('styles', $styles);
|
||||||
|
}
|
||||||
|
|
||||||
// Benchmarks panel
|
// Benchmarks panel
|
||||||
if ($config->panels['benchmarks'] === TRUE)
|
if ($config->panels['benchmarks'] === TRUE)
|
||||||
|
@ -130,8 +134,6 @@ abstract class Kohana_Debugtoolbar {
|
||||||
$template->set('benchmarks', self::get_benchmarks());
|
$template->set('benchmarks', self::get_benchmarks());
|
||||||
}
|
}
|
||||||
|
|
||||||
$template->set('styles', $styles);
|
|
||||||
|
|
||||||
$result = $template->render();
|
$result = $template->render();
|
||||||
|
|
||||||
if ($print === TRUE)
|
if ($print === TRUE)
|
||||||
|
|
|
@ -37,6 +37,11 @@ $config['panels'] = array(
|
||||||
*/
|
*/
|
||||||
$config['secret_key'] = FALSE;
|
$config['secret_key'] = FALSE;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* CSS style
|
||||||
|
**/
|
||||||
|
$config['styles'] = TRUE;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Exclude configs
|
* Exclude configs
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in a new issue