summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/helpers/core_block.php7
-rw-r--r--core/libraries/Admin_View.php8
-rw-r--r--core/libraries/Theme_View.php1
-rw-r--r--themes/admin_default/views/admin.html.php6
-rw-r--r--themes/default/views/footer.html.php1
5 files changed, 18 insertions, 5 deletions
diff --git a/core/helpers/core_block.php b/core/helpers/core_block.php
index 06354a10..ec1ee066 100644
--- a/core/helpers/core_block.php
+++ b/core/helpers/core_block.php
@@ -30,6 +30,13 @@ class core_block_Core {
}
}
+ public static function admin_page_bottom($theme) {
+ if (Session::instance()->get("profiler", false)) {
+ $profiler = new Profiler();
+ $profiler->render();
+ }
+ }
+
public static function admin_dashboard_blocks($theme) {
$block = new Block();
$block->id = "gWelcome";
diff --git a/core/libraries/Admin_View.php b/core/libraries/Admin_View.php
index 5752d659..c172b76b 100644
--- a/core/libraries/Admin_View.php
+++ b/core/libraries/Admin_View.php
@@ -65,9 +65,11 @@ class Admin_View_Core extends View {
*/
public function __call($function, $args) {
switch ($function) {
- case "dashboard_blocks":
- case "sidebar_blocks":
- $function = "admin_$function";
+ case "admin_dashboard_blocks":
+ case "admin_footer":
+ case "admin_page_bottom":
+ case "admin_page_top":
+ case "admin_sidebar_blocks":
$blocks = array();
foreach (module::installed() as $module) {
$helper_class = "{$module->name}_block";
diff --git a/core/libraries/Theme_View.php b/core/libraries/Theme_View.php
index 02609063..3144ca2a 100644
--- a/core/libraries/Theme_View.php
+++ b/core/libraries/Theme_View.php
@@ -93,6 +93,7 @@ class Theme_View_Core extends View {
case "album_bottom":
case "album_top":
case "credits";
+ case "footer":
case "head":
case "header_bottom":
case "header_top":
diff --git a/themes/admin_default/views/admin.html.php b/themes/admin_default/views/admin.html.php
index 6aa5c3c9..0bd90237 100644
--- a/themes/admin_default/views/admin.html.php
+++ b/themes/admin_default/views/admin.html.php
@@ -22,6 +22,7 @@
</head>
<body>
+ <?= $theme->admin_page_top() ?>
<div id="doc4" class="yui-t5 gView">
<div id="hd">
<div id="gHeader">
@@ -58,16 +59,17 @@
</form>
</div>
- <?= $theme->sidebar_blocks() ?>
+ <?= $theme->admin_sidebar_blocks() ?>
</div>
</div>
<div id="ft">
<div id="gFooter">
+ <?= $theme->admin_footer(); ?>
Footer
</div>
</div>
</div>
-
+ <?= $theme->admin_page_bottom() ?>
</body>
</html>
diff --git a/themes/default/views/footer.html.php b/themes/default/views/footer.html.php
index 7f011735..b5f842b7 100644
--- a/themes/default/views/footer.html.php
+++ b/themes/default/views/footer.html.php
@@ -1,4 +1,5 @@
<? defined("SYSPATH") or die("No direct script access."); ?>
+<?= $theme->footer() ?>;
<ul id="gCredits">
<li class="first"> Powered by <a href="http://gallery.menalto.com">Gallery3</a> </li>
<?= $theme->credits() ?>