From ea878456600108101127c743a7fb5096a8fdbd15 Mon Sep 17 00:00:00 2001 From: skodak Date: Tue, 14 Jul 2009 06:33:34 +0000 Subject: [PATCH] MDL-16089 new general page type needed for framed resources, this is not accessible but unfortunately it works much better than object embedding; it will be also used by phpmyadmin integration --- theme/standard/config.php | 5 ++++ theme/standard/layout-topframe.php | 41 ++++++++++++++++++++++++++++++ theme/standardwhite/config.php | 7 +++++ 3 files changed, 53 insertions(+) create mode 100644 theme/standard/layout-topframe.php diff --git a/theme/standard/config.php b/theme/standard/config.php index aa18cd08d0..27d3b7c700 100644 --- a/theme/standard/config.php +++ b/theme/standard/config.php @@ -67,6 +67,11 @@ $THEME->layouts = array( 'layout' => 'layout-popup.php', 'regions' => array(), ), + // Legacy frameset pages + 'topframe' => array( + 'layout' => 'layout-topframe.php', + 'regions' => array(), + ), // Used during upgrade and install, and for the 'This site is undergoing maintenance' message. // This must not have any blocks, and it is good idea if it does not have links to // other places - for example there should not be a home link in the footer.. diff --git a/theme/standard/layout-topframe.php b/theme/standard/layout-topframe.php new file mode 100644 index 0000000000..e62ec7f328 --- /dev/null +++ b/theme/standard/layout-topframe.php @@ -0,0 +1,41 @@ +doctype() ?> +htmlattributes() ?>> + + <?php echo $PAGE->title ?> + + standard_head_html() ?> + + +standard_top_of_body_html() ?> + +
+ +heading) { ?> + + + + + +heading) { // If no navigation, but a heading, then print a line ?> +
+ + + +
+ [MAIN CONTENT GOES HERE] +
+ + + +
+standard_end_of_body_html() ?> + + \ No newline at end of file diff --git a/theme/standardwhite/config.php b/theme/standardwhite/config.php index f57def84ce..ec58590750 100644 --- a/theme/standardwhite/config.php +++ b/theme/standardwhite/config.php @@ -67,7 +67,14 @@ $THEME->layouts = array( 'layout' => 'standard:layout-popup.php', 'regions' => array(), ), + // Legacy frameset pages + 'topframe' => array( + 'layout' => 'standard:layout-topframe.php', + 'regions' => array(), + ), // Used during upgrade and install, and for the 'This site is undergoing maintenance' message. + // This must not have any blocks, and it is good idea if it does not have links to + // other places - for example there should not be a home link in the footer.. 'maintenance' => array( 'layout' => 'standard:layout-popup.php', 'regions' => array(), -- 2.39.5