"MDL-20221, create a embeded layout for iframe, or other embeded page, it doesn't have footer and header"

This commit is contained in:
dongsheng 2009-09-04 05:26:18 +00:00
parent f22f13330a
commit ff1b34157b
2 changed files with 45 additions and 0 deletions

View 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 =

View File

@ -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>