Moved some printing out of the center column (keeps blocks and center column content aligned) and cleaned some white space

This commit is contained in:
mark-nielsen 2007-07-24 07:13:14 +00:00
parent 16a7ab9826
commit 124b1091fa
2 changed files with 16 additions and 17 deletions

View file

@ -510,6 +510,16 @@
/// 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

View file

@ -26,27 +26,16 @@
<?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 ?>
<?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 ($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);
}
?>
<!-- End view start -->