mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
"MDL-20221, create a embeded layout for iframe, or other embeded page, it doesn't have footer and header"
This commit is contained in:
parent
f22f13330a
commit
ff1b34157b
@ -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 =
|
||||
|
40
theme/standard/layout-embeded.php
Normal file
40
theme/standard/layout-embeded.php
Normal 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>
|
Loading…
x
Reference in New Issue
Block a user