Moved some printing out of the center column (keeps blocks and center column content...
authormark-nielsen <mark-nielsen>
Tue, 24 Jul 2007 07:13:14 +0000 (07:13 +0000)
committermark-nielsen <mark-nielsen>
Tue, 24 Jul 2007 07:13:14 +0000 (07:13 +0000)
mod/lesson/view.php
mod/lesson/viewstart.html

index 347b73852f82e9f71369914c4195c4c892505f58..5f43117b560b51dcdd304a19836b52406dca195f 100644 (file)
 
     /// Print the page header, heading and tabs
         $PAGE->print_header();
+
+        if ($attemptflag) {
+            print_heading(get_string('attempt', 'lesson', $retries + 1));
+        }
+
+        /// This calculates and prints the ongoing score
+        if ($lesson->ongoing and !empty($pageid)) {
+            lesson_print_ongoing_score($lesson);
+        }
+
         require($CFG->dirroot.'/mod/lesson/viewstart.html');
 
         // now starting to print the page's contents   
index 15f17dbe944509e6389f61be5f9626c6a9382a70..d9286e96aece75d0ec6be6b0888cdbc2d8240d0d 100644 (file)
         <?php } ?>
         <!-- Start main column -->
         <td id="middle-column" align="center">
-            
+
             <?php if ($lesson->displayleft) { ?>
-            
+
             <a name="maincontent" id="maincontent" title="<?php print_string('anchortitle', 'lesson') ?>"></a>
-            
+
             <?php } ?>
 
-<?php if($lesson->slideshow && $page->qtype == LESSON_BRANCHTABLE) { // Starts the slideshow div ?>
-    
-            <div class="slideshow" style="background-color: <?php echo $lesson->bgcolor?>; height: <?php echo $lesson->height ?>px; width: <?php echo $lesson->width?>px;">
-                
-<?php } ?>
+<?php if ($lesson->slideshow && $page->qtype == LESSON_BRANCHTABLE) { // Starts the slideshow div ?>
 
-<?php 
-    if ($attemptflag) {
-        print_heading(get_string('attempt', 'lesson', $retries + 1));
-    }
+            <div class="slideshow" style="background-color: <?php echo $lesson->bgcolor?>; height: <?php echo $lesson->height ?>px; width: <?php echo $lesson->width?>px;">
 
-    /// This calculates and prints the ongoing score
-    if ($lesson->ongoing and !empty($pageid)) {
-        lesson_print_ongoing_score($lesson);
-    }
-?>
+<?php } ?>
 <!-- End view start -->
\ No newline at end of file