From 863e353911c5bab59e4bd6e9d0d70f79bcf37e46 Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Fri, 20 Mar 2009 17:20:17 +0000 Subject: rollback of r20469... see trac #161 --- core/libraries/Admin_View.php | 5 ----- core/libraries/Theme_View.php | 6 +----- themes/admin_default/views/admin.html.php | 16 ++++++++-------- themes/default/views/login_page.html.php | 16 ++++++++-------- themes/default/views/page.html.php | 16 ++++++++-------- 5 files changed, 25 insertions(+), 34 deletions(-) diff --git a/core/libraries/Admin_View.php b/core/libraries/Admin_View.php index e88b01ee..9ca585d2 100644 --- a/core/libraries/Admin_View.php +++ b/core/libraries/Admin_View.php @@ -45,11 +45,6 @@ class Admin_View_Core extends View { return $absolute_url ? url::abs_file($arg) : url::file($arg); } - public function file($path) { - $theme_path = "themes/{$this->theme_name}/$path"; - return url::file(file_exists($theme_path) ? $theme_path : $path); - } - public function display($page_name, $view_class="View") { return new $view_class($page_name); } diff --git a/core/libraries/Theme_View.php b/core/libraries/Theme_View.php index fba61afe..84d86b0b 100644 --- a/core/libraries/Theme_View.php +++ b/core/libraries/Theme_View.php @@ -46,6 +46,7 @@ class Theme_View_Core extends View { if ($maintenance_mode) { message::warning(t("This site is currently in maintenance mode")); } + } public function url($path, $absolute_url=false) { @@ -53,11 +54,6 @@ class Theme_View_Core extends View { return $absolute_url ? url::abs_file($arg) : url::file($arg); } - public function file($path) { - $theme_path = "themes/{$this->theme_name}/$path"; - return url::file(file_exists($theme_path) ? $theme_path : $path); - } - public function item() { return $this->item; } diff --git a/themes/admin_default/views/admin.html.php b/themes/admin_default/views/admin.html.php index d56015db..55f0f884 100644 --- a/themes/admin_default/views/admin.html.php +++ b/themes/admin_default/views/admin.html.php @@ -6,11 +6,11 @@ G3: Admin Dashboard " type="image/x-icon" /> - " + " media="screen,projection" /> - " + " media="screen,projection" /> - " + " media="screen,projection" /> " media="screen,projection" /> @@ -20,11 +20,11 @@ " media="screen,print,projection" /> - - - - - + + + + + admin_head() ?> diff --git a/themes/default/views/login_page.html.php b/themes/default/views/login_page.html.php index 933a8bc2..1bd76c18 100644 --- a/themes/default/views/login_page.html.php +++ b/themes/default/views/login_page.html.php @@ -8,11 +8,11 @@ " type="image/x-icon" /> - " + " media="screen,print,projection" /> - " + " media="screen" /> - " + " media="screen,print,projection" /> " media="screen,print,projection" /> @@ -20,11 +20,11 @@ " media="screen,print,projection" /> - - - - - + + + + + - - - - + + + + + -- cgit v1.2.3