Skip to content
This repository has been archived by the owner on Jun 2, 2018. It is now read-only.

Commit

Permalink
Custom styling
Browse files Browse the repository at this point in the history
  • Loading branch information
Oreolek committed Jan 17, 2014
1 parent eadeaad commit c24008b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
12 changes: 7 additions & 5 deletions classes/Kohana/Debugtoolbar.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,23 +115,25 @@ public static function render($print = FALSE)
{
self::firephp();
}

Profiler::stop($token);

// Javascript for toolbar
$template->set('scripts', file_get_contents(Kohana::find_file('views', 'toolbar', 'js')));

// CSS for toolbar
$styles = file_get_contents(Kohana::find_file('views', 'toolbar', 'css'));

Profiler::stop($token);
if ($config->styles === TRUE)
{
$styles = file_get_contents(Kohana::find_file('views', 'toolbar', 'css'));
$template->set('styles', $styles);
}

// Benchmarks panel
if ($config->panels['benchmarks'] === TRUE)
{
$template->set('benchmarks', self::get_benchmarks());
}

$template->set('styles', $styles);

$result = $template->render();

if ($print === TRUE)
Expand Down
5 changes: 5 additions & 0 deletions config/debug_toolbar.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@
*/
$config['secret_key'] = FALSE;

/**
* CSS style
**/
$config['styles'] = TRUE;

/**
* Exclude configs
*/
Expand Down

0 comments on commit c24008b

Please sign in to comment.