From fe5240730a0f281db1ed6ad3be0a3c63c72868bc Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Tue, 10 Feb 2009 05:12:31 +0000 Subject: Show the translation dashboard on admin pages also. --- core/helpers/core_theme.php | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) (limited to 'core/helpers') diff --git a/core/helpers/core_theme.php b/core/helpers/core_theme.php index 1e1f08d5..db40f368 100644 --- a/core/helpers/core_theme.php +++ b/core/helpers/core_theme.php @@ -64,22 +64,30 @@ class core_theme_Core { } static function admin_head($theme) { + $buf = ""; if (Session::instance()->get("debug")) { - return ""; } - } - static function page_bottom($theme) { - $output = ''; if (Session::instance()->get("l10n_mode", false)) { - $output .= L10n_Client_Controller::l10n_form(); + $buf .= ""; + $buf .= html::script("lib/jquery.cookie.js"); + $buf .= html::script("core/js/l10n_client.js"); } + + return $buf; + } + + static function page_bottom($theme) { if (Session::instance()->get("profiler", false)) { $profiler = new Profiler(); $profiler->render(); } - return $output; + if (Session::instance()->get("l10n_mode", false)) { + return L10n_Client_Controller::l10n_form(); + } } static function admin_page_bottom($theme) { @@ -87,5 +95,8 @@ class core_theme_Core { $profiler = new Profiler(); $profiler->render(); } + if (Session::instance()->get("l10n_mode", false)) { + return L10n_Client_Controller::l10n_form(); + } } } \ No newline at end of file -- cgit v1.2.3