]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-16089 new general page type needed for framed resources, this is not accessible...
authorskodak <skodak>
Tue, 14 Jul 2009 06:33:34 +0000 (06:33 +0000)
committerskodak <skodak>
Tue, 14 Jul 2009 06:33:34 +0000 (06:33 +0000)
theme/standard/config.php
theme/standard/layout-topframe.php [new file with mode: 0644]
theme/standardwhite/config.php

index aa18cd08d0be2983ec67bf14d7ffb99d4601d5eb..27d3b7c70065b68d76869e80f7eaebc3b28d3645 100644 (file)
@@ -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 (file)
index 0000000..e62ec7f
--- /dev/null
@@ -0,0 +1,41 @@
+<?php echo $OUTPUT->doctype() ?>
+<html <?php echo $OUTPUT->htmlattributes() ?>>
+<head>
+    <title><?php echo $PAGE->title ?></title>
+    <link rel="shortcut icon" href="<?php echo $CFG->themewww .'/'. current_theme() ?>/favicon.ico" />
+    <?php echo $OUTPUT->standard_head_html() ?>
+</head>
+<body id="<?php echo $PAGE->pagetype ?>" class="<?php echo $PAGE->bodyclasses ?>">
+<?php echo $OUTPUT->standard_top_of_body_html() ?>
+
+<div id="page">
+
+<?php if ($PAGE->heading) { ?>
+    <div id="header" class="clearfix">
+        <h1 class="headermain"><?php echo $PAGE->heading ?></h1>
+        <div class="headermenu"><?php echo $menu ?></div>
+    </div>
+<?php } ?>
+
+<?php if ($navigation) { // This is the navigation bar with breadcrumbs  ?>
+    <div class="navbar clearfix">
+        <div class="breadcrumb"><?php print_navigation($navigation); ?></div>
+        <div class="navbutton"><?php echo $PAGE->button; ?></div>
+    </div>
+<?php } else if ($PAGE->heading) { // If no navigation, but a heading, then print a line ?>
+    <hr />
+<?php } ?>
+<!-- END OF HEADER -->
+
+    <div id="content" class="clearfix">
+        [MAIN CONTENT GOES HERE]
+    </div>
+
+<!-- START OF FOOTER -->
+    <div id="footer" class="clearfix">
+        <?php echo $OUTPUT->standard_footer_html() ?>
+    </div>
+</div>
+<?php echo $OUTPUT->standard_end_of_body_html() ?>
+</body>
+</html>
\ No newline at end of file
index f57def84ce261d3c50b02d6a26f03eb062b0e7e0..ec58590750d41e11f1a0e22132497aac5d159659 100644 (file)
@@ -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(),