From 469e5eb18ee865019a14c698b134164656371c26 Mon Sep 17 00:00:00 2001 From: moodler Date: Mon, 9 Dec 2002 12:09:33 +0000 Subject: [PATCH] More style and layout tweaking --- course/lib.php | 1 - course/weeks.php | 4 ++-- index.php | 2 +- lib/moodlelib.php | 12 ++++++------ lib/setup.php | 2 +- login/index_form.html | 8 ++++---- login/signup_form.php | 2 +- 7 files changed, 15 insertions(+), 16 deletions(-) diff --git a/course/lib.php b/course/lib.php index f583fc036d..f019bb0498 100644 --- a/course/lib.php +++ b/course/lib.php @@ -634,7 +634,6 @@ function print_admin_links ($siteid, $width=180) { function print_course_admin_links($course, $width=180) { global $THEME, $CFG; - echo "
"; $adminicon[]="wwwroot/pix/i/edit.gif\" HEIGHT=16 WIDTH=16 ALT=\"\">"; if (isediting($course->id)) { $admindata[]="id&edit=off\">".get_string("turneditingoff").""; diff --git a/course/weeks.php b/course/weeks.php index d8186b5f45..fed9125988 100644 --- a/course/weeks.php +++ b/course/weeks.php @@ -209,7 +209,7 @@ forum_print_latest_discussions($news->id, $course->newsitems, "minimal", "DESC", false); echo ""; print_simple_box_end(); - echo "
"; + echo "
"; } // Print all the recent activity @@ -220,7 +220,7 @@ print_simple_box_end(); } - echo "
"; + echo "
"; } echo "\n"; diff --git a/index.php b/index.php index 4874402b65..323ddbaa8e 100644 --- a/index.php +++ b/index.php @@ -26,7 +26,7 @@ "summary))."\">", true, "", $headerbutton); - $side = 165; + $side = 175; ?> diff --git a/lib/moodlelib.php b/lib/moodlelib.php index fee36b81b1..c261e77077 100644 --- a/lib/moodlelib.php +++ b/lib/moodlelib.php @@ -21,10 +21,10 @@ function print_header ($title="", $heading="", $navigation="", $focus="", $meta= // $menu - HTML code for a popup menu global $USER, $CFG, $THEME; - if (file_exists("$CFG->dirroot/theme/$CFG->theme/styles.css")) { - $styles = "$CFG->wwwroot/theme/$CFG->theme/styles.css"; + if (file_exists($CFG->stylesheet)) { + $styles = $CFG->stylesheet; } else { - $styles = "$CFG->wwwroot/theme/standard/styles.css"; + $styles = "$CFG->wwwroot/theme/standard/styles.php"; } if ($navigation == "home") { @@ -299,12 +299,12 @@ function print_table($table) { print_simple_box_start("CENTER", "$table->width", "#FFFFFF", 0); echo "cellpadding\" cellspacing=\"$table->cellspacing\">\n"; + echo " cellpadding=\"$table->cellpadding\" cellspacing=\"$table->cellspacing\" class=\"generaltable\">\n"; if ($table->head) { echo ""; foreach ($table->head as $key => $heading) { - echo ""; + echo ""; } echo "\n"; } @@ -312,7 +312,7 @@ function print_table($table) { foreach ($table->data as $row) { echo ""; foreach ($row as $key => $item) { - echo ""; + echo ""; } echo "\n"; } diff --git a/lib/setup.php b/lib/setup.php index ab9c5db0c5..0e04b3b8f4 100644 --- a/lib/setup.php +++ b/lib/setup.php @@ -53,7 +53,7 @@ $CFG->wordlist = "$CFG->libdir/wordlist.txt"; $CFG->javascript = "$CFG->libdir/javascript.php"; - $CFG->stylesheet = "$CFG->wwwroot/theme/$CFG->theme/styles.css"; + $CFG->stylesheet = "$CFG->wwwroot/theme/$CFG->theme/styles.php"; $CFG->header = "$CFG->dirroot/theme/$CFG->theme/header.html"; $CFG->footer = "$CFG->dirroot/theme/$CFG->theme/footer.html"; $CFG->moddata = "moddata"; diff --git a/login/index_form.html b/login/index_form.html index 91d174e92c..41ff81378e 100644 --- a/login/index_form.html +++ b/login/index_form.html @@ -3,16 +3,16 @@
$heading$heading
$item$item
- - - -
cellheading2?>> + cellheading2?> class="generaltableheader">

cellheading2?>> + cellheading2?> class="generaltableheader">

+

:
()
@@ -74,7 +74,7 @@

+ auth) { case "email": ?> diff --git a/login/signup_form.php b/login/signup_form.php index ec82a6a0db..ac50411200 100644 --- a/login/signup_form.php +++ b/login/signup_form.php @@ -1,5 +1,5 @@
-
+
-- 2.39.5