From 1f802c17c022a649e5fa51ce903240de61d15f09 Mon Sep 17 00:00:00 2001 From: Jerome Mouneyrac Date: Fri, 8 Nov 2013 11:58:56 +0800 Subject: [PATCH] MDL-42184 bootstrapbase: popup should have no header --- theme/bootstrapbase/config.php | 2 +- theme/bootstrapbase/layout/popup.php | 97 ++++++++++++++++++++++++++++ 2 files changed, 98 insertions(+), 1 deletion(-) create mode 100644 theme/bootstrapbase/layout/popup.php diff --git a/theme/bootstrapbase/config.php b/theme/bootstrapbase/config.php index bcf4697fdf2..35cfb4745e2 100644 --- a/theme/bootstrapbase/config.php +++ b/theme/bootstrapbase/config.php @@ -110,7 +110,7 @@ $THEME->layouts = array( // Pages that appear in pop-up windows - no navigation, no blocks, no header. 'popup' => array( - 'file' => 'columns1.php', + 'file' => 'popup.php', 'regions' => array(), 'options' => array('nofooter'=>true, 'nonavbar'=>true), ), diff --git a/theme/bootstrapbase/layout/popup.php b/theme/bootstrapbase/layout/popup.php new file mode 100644 index 00000000000..fd7b19aff16 --- /dev/null +++ b/theme/bootstrapbase/layout/popup.php @@ -0,0 +1,97 @@ +. + +echo $OUTPUT->doctype() ?> +htmlattributes(); ?>> + + <?php echo $OUTPUT->page_title(); ?> + + standard_head_html() ?> + + + +body_attributes(); ?>> + +standard_top_of_body_html() ?> + + + + + +
+ + + +
+
+ course_content_header(); + echo $OUTPUT->main_content(); + echo $OUTPUT->course_content_footer(); + ?> +
+
+ +
+ + + login_info(); + echo $OUTPUT->home_link(); + echo $OUTPUT->standard_footer_html(); + ?> +
+ + standard_end_of_body_html() ?> + +
+ +