diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-01-01 00:16:08 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-01-01 00:16:08 +0000 |
commit | 7c82691e0057188e07601c30069385c3f17cbff1 (patch) | |
tree | a1bc9b21b62314bc34784625b0f1b0e8dfdddb47 /core/helpers/core_block.php | |
parent | 11d2788af8111a036d2279563fe6a21f374b5b9c (diff) |
Move debug CSS into core/css/debug.css, and enable it for admin themes also
Diffstat (limited to 'core/helpers/core_block.php')
-rw-r--r-- | core/helpers/core_block.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/core/helpers/core_block.php b/core/helpers/core_block.php index 1bc70a13..c82ca53d 100644 --- a/core/helpers/core_block.php +++ b/core/helpers/core_block.php @@ -19,6 +19,20 @@ */ class core_block_Core { + public static function head($theme) { + if (Session::instance()->get("debug")) { + return "<link rel=\"stylesheet\" type=\"text/css\" href=\"" . + url::file("core/css/debug.css") . "\" />"; + } + } + + public static function admin_head($theme) { + if (Session::instance()->get("debug")) { + return "<link rel=\"stylesheet\" type=\"text/css\" href=\"" . + url::file("core/css/debug.css") . "\" />"; + } + } + public static function page_bottom($theme) { if (Session::instance()->get("profiler", false)) { $profiler = new Profiler(); |