From: dongsheng Date: Fri, 4 Sep 2009 05:26:18 +0000 (+0000) Subject: "MDL-20221, create a embeded layout for iframe, or other embeded page, it doesn't... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=ff1b34157be84450f311affc14428f58bc354ca8;p=moodle.git "MDL-20221, create a embeded layout for iframe, or other embeded page, it doesn't have footer and header" --- diff --git a/theme/standard/config.php b/theme/standard/config.php index 27d3b7c700..12f259e36c 100644 --- a/theme/standard/config.php +++ b/theme/standard/config.php @@ -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 index 0000000000..e83dcec517 --- /dev/null +++ b/theme/standard/layout-embeded.php @@ -0,0 +1,40 @@ +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() ?> + +