]> git.mjollnir.org Git - moodle.git/commitdiff
"MDL-20221, create a embeded layout for iframe, or other embeded page, it doesn't...
authordongsheng <dongsheng>
Fri, 4 Sep 2009 05:26:18 +0000 (05:26 +0000)
committerdongsheng <dongsheng>
Fri, 4 Sep 2009 05:26:18 +0000 (05:26 +0000)
theme/standard/config.php
theme/standard/layout-embeded.php [new file with mode: 0644]

index 27d3b7c70065b68d76869e80f7eaebc3b28d3645..12f259e36cd174e88adba229462c9188344a1e14 100644 (file)
@@ -79,6 +79,11 @@ $THEME->layouts = array(
         'layout' => 'layout-popup.php',
         'regions' => array(),
     ),
+    // Embeded pages, like iframe embeded in moodleform
+    'embeded' => array(
+        'layout' => 'layout-embeded.php',
+        'regions' => array(),
+    )
 );
 
 $THEME->resource_mp3player_colors =
diff --git a/theme/standard/layout-embeded.php b/theme/standard/layout-embeded.php
new file mode 100644 (file)
index 0000000..e83dcec
--- /dev/null
@@ -0,0 +1,40 @@
+<?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 $PAGE->headingmenu ?></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">
+    </div>
+</div>
+<?php echo $OUTPUT->standard_end_of_body_html() ?>
+</body>
+</html>