FIxed up the intro boxes XHTML Strict
This commit is contained in:
+1
-2
@@ -147,8 +147,7 @@
|
||||
}
|
||||
|
||||
if ($chat->intro) {
|
||||
print_simple_box(format_text($chat->intro), 'center', '70%', '', 5, 'generalbox', 'intro');
|
||||
echo '<br />';
|
||||
print_box(format_text($chat->intro), 'generalbox', 'intro');
|
||||
}
|
||||
|
||||
chat_delete_old_users();
|
||||
|
||||
+1
-1
@@ -67,7 +67,7 @@
|
||||
}
|
||||
|
||||
if ($choice->text) {
|
||||
print_simple_box(format_text($choice->text, $choice->format), 'center', '70%', '', 5, 'generalbox', 'intro');
|
||||
print_box(format_text($choice->text, $choice->format), 'generalbox', 'intro');
|
||||
}
|
||||
|
||||
//if user has already made a selection, and they are not allowed to update it, show their selected answer.
|
||||
|
||||
+1
-1
@@ -192,7 +192,7 @@
|
||||
}
|
||||
|
||||
if ($data->intro and empty($page) and empty($record) and $mode != 'single') {
|
||||
print_simple_box(format_text($data->intro), 'center', '70%', '', 5, 'generalbox', 'intro');
|
||||
print_box(format_text($data->intro), 'generalbox', 'intro');
|
||||
}
|
||||
|
||||
/// Check to see if groups are being used here
|
||||
|
||||
+1
-1
@@ -700,7 +700,7 @@
|
||||
} else {
|
||||
$forum->intro = trim($forum->intro);
|
||||
if (!empty($forum->intro)) {
|
||||
print_simple_box(format_text($forum->intro), 'center');
|
||||
print_box(format_text($forum->intro), 'generalbox', 'intro');
|
||||
}
|
||||
if ($forum->type == 'qanda') {
|
||||
$heading = get_string('yournewquestion', 'forum');
|
||||
|
||||
+2
-2
@@ -277,7 +277,7 @@
|
||||
|
||||
case 'eachuser':
|
||||
if (!empty($forum->intro)) {
|
||||
print_simple_box(format_text($forum->intro), 'center', '70%', '', 5, 'generalbox', 'intro');
|
||||
print_box(format_text($forum->intro), 'generalbox', 'intro');
|
||||
}
|
||||
echo '<p align="center">';
|
||||
if (forum_user_can_post_discussion($forum)) {
|
||||
@@ -303,7 +303,7 @@
|
||||
|
||||
default:
|
||||
if (!empty($forum->intro)) {
|
||||
print_simple_box(format_text($forum->intro), 'center', '70%', '', 5, 'generalbox', 'intro');
|
||||
print_box(format_text($forum->intro), 'generalbox', 'intro');
|
||||
}
|
||||
echo '<br />';
|
||||
if (!empty($showall)) {
|
||||
|
||||
@@ -260,7 +260,7 @@
|
||||
|
||||
/// Info box
|
||||
if ( $glossary->intro ) {
|
||||
print_simple_box(format_text($glossary->intro), 'center', '70%', '', 5, 'generalbox', 'intro');
|
||||
print_box(format_text($glossary->intro), 'generalbox', 'intro');
|
||||
}
|
||||
|
||||
/// Search box
|
||||
|
||||
@@ -52,7 +52,7 @@
|
||||
$journal->intro = trim($journal->intro);
|
||||
|
||||
if (!empty($journal->intro)) {
|
||||
print_simple_box( format_text($journal->intro, $journal->introformat), 'center', '70%', '', 5, 'generalbox', 'intro');
|
||||
print_box( format_text($journal->intro, $journal->introformat), 5, 'generalbox', 'intro');
|
||||
}
|
||||
|
||||
echo '<br />';
|
||||
|
||||
+1
-2
@@ -95,8 +95,7 @@ if(has_capability('mod/lams:manage', $context)){
|
||||
}
|
||||
|
||||
if ($lams->introduction) {
|
||||
print_simple_box(format_text($lams->introduction), 'center', '70%', '', 5, 'generalbox', 'description');
|
||||
echo '<br />';
|
||||
print_box(format_text($lams->introduction), 'generalbox', 'intro');
|
||||
}
|
||||
|
||||
|
||||
|
||||
+1
-1
@@ -87,7 +87,7 @@
|
||||
// Print quiz description
|
||||
if (trim(strip_tags($quiz->intro))) {
|
||||
$formatoptions->noclean = true;
|
||||
print_simple_box(format_text($quiz->intro, FORMAT_MOODLE, $formatoptions), "center");
|
||||
print_box(format_text($quiz->intro, FORMAT_MOODLE, $formatoptions), 'generalbox', 'intro');
|
||||
}
|
||||
|
||||
echo '<div class="quizinfo">';
|
||||
|
||||
+1
-1
@@ -85,7 +85,7 @@
|
||||
|
||||
// Print the main part of the page
|
||||
print_heading(format_string($scorm->name));
|
||||
print_simple_box(format_text($scorm->summary), 'center', '70%', '', 5, 'generalbox', 'intro');
|
||||
print_box(format_text($scorm->summary), 'generalbox', 'intro');
|
||||
scorm_view_display($USER, $scorm, 'view.php?id='.$cm->id, $cm);
|
||||
print_footer($course);
|
||||
?>
|
||||
|
||||
+1
-1
@@ -76,7 +76,7 @@
|
||||
|
||||
} else {
|
||||
|
||||
print_simple_box(format_text($survey->intro), 'center', '70%', '', 5, 'generalbox', 'intro');
|
||||
print_box(format_text($survey->intro), 'generalbox', 'intro');
|
||||
print_spacer(30);
|
||||
|
||||
$questions = get_records_list("survey_questions", "id", $survey->questions);
|
||||
|
||||
+1
-1
@@ -356,7 +356,7 @@
|
||||
|
||||
if($wiki_entry && $ewiki_title==$wiki_entry->pagename && !empty($wiki->summary)) {
|
||||
if (trim(strip_tags($wiki->summary))) {
|
||||
print_simple_box(format_text($wiki->summary, FORMAT_MOODLE), 'center', '70%', '', 5, 'generalbox', 'intro');
|
||||
print_box(format_text($wiki->summary, FORMAT_MOODLE), 'generalbox', 'intro');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -181,7 +181,7 @@
|
||||
|
||||
// if the student has not yet submitted show the full description
|
||||
if (!record_exists('workshop_submissions', 'workshopid', $workshop->id, 'userid', $USER->id)) {
|
||||
print_simple_box(format_text($workshop->description, $workshop->format), 'center', '70%', '', 5, 'generalbox', 'intro');
|
||||
print_box(format_text($workshop->description, $workshop->format), 'generalbox', 'intro');
|
||||
} else {
|
||||
print_heading("<b><a href=\"view.php?id=$cm->id&action=showdescription\">".
|
||||
get_string("showdescription", 'workshop')."</a></b>");
|
||||
@@ -526,7 +526,7 @@
|
||||
/****************** show description ************/
|
||||
elseif ($action == 'showdescription') {
|
||||
workshop_print_assignment_info($workshop);
|
||||
print_simple_box(format_text($workshop->description, $workshop->format), 'center', '70%', '', 5, 'generalbox', 'intro');
|
||||
print_box(format_text($workshop->description, $workshop->format), 'generalbox', 'intro');
|
||||
if (isset($_SERVER["HTTP_REFERER"])) {
|
||||
print_continue(htmlentities($_SERVER["HTTP_REFERER"]));
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user