MDL-66548 theme_classic: secure layout block position fixes
authorBas Brands <bas@moodle.com>
Mon, 9 Sep 2019 10:03:06 +0000 (12:03 +0200)
committerBas Brands <bas@moodle.com>
Mon, 16 Sep 2019 14:02:30 +0000 (16:02 +0200)
- the secure layout for theme classic used an icorrect layout for blocks
and content. A fix has been submitted by G J Barnard.

theme/classic/templates/secure.mustache

index 0aeceec..bbcc07b 100644 (file)
@@ -70,7 +70,7 @@
         </div>
 
         <div id="page-content" class="row {{#haspreblocks}} blocks-pre {{/haspreblocks}} {{#haspostblocks}} blocks-post {{/haspostblocks}}">
-            <div id="region-main-box" class="region-main col-12">
+            <div id="region-main-box" class="region-main">
                 <section id="region-main" aria-label="{{#str}}content{{/str}}">
                     <div class="card">
                         <div class="card-body">
                         </div>
                     </div>
                 </section>
-                <div class="columnleft {{#haspreblocks}} has-blocks {{/haspreblocks}}">
-                    <section data-region="blocks-column" class="hidden-print" aria-label="{{#str}}blocks{{/str}}">
-                        {{{ sidepreblocks }}}
-                    </section>
-                </div>
+            </div>
+            <div class="columnleft {{#haspreblocks}} has-blocks {{/haspreblocks}}">
+                <section data-region="blocks-column" class="hidden-print" aria-label="{{#str}}blocks{{/str}}">
+                    {{{ sidepreblocks }}}
+                </section>
+            </div>
 
-                <div class="columnright {{#haspostblocks}} has-blocks {{/haspostblocks}}">
-                    <section data-region="blocks-column" class="hidden-print" aria-label="{{#str}}blocks{{/str}}">
-                        {{{ sidepostblocks }}}
-                    </section>
-                </div>
+            <div class="columnright {{#haspostblocks}} has-blocks {{/haspostblocks}}">
+                <section data-region="blocks-column" class="hidden-print" aria-label="{{#str}}blocks{{/str}}">
+                    {{{ sidepostblocks }}}
+                </section>
             </div>
         </div>
     </div>