From: moodler Date: Sat, 22 May 2004 08:53:22 +0000 (+0000) Subject: Improved Standard Logo theme now actually uses the standard logo. ;-) X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=7387fa2620fe3b2187ece69d94111294a1688c05;p=moodle.git Improved Standard Logo theme now actually uses the standard logo. ;-) Replacing the logo is as easy as dropping a logo.jpg in the Moodle home directory OR in the site files --- diff --git a/theme/standardlogo/README.html b/theme/standardlogo/README.html new file mode 100644 index 0000000000..1431b76386 --- /dev/null +++ b/theme/standardlogo/README.html @@ -0,0 +1,13 @@ +

Standard Logo Theme

+ +

To add your own homepage logo to this theme, you can simply:

+ +
    +
  1. upload a file called logo.jpg in your Site Files (look on the home page), + +

    OR

  2. + +
  3. put a file called logo.jpg in the main Moodle directory (using FTP, for example).
  4. + +
+ diff --git a/theme/standardlogo/header.html b/theme/standardlogo/header.html index 5d5ada7392..8dbe422019 100644 --- a/theme/standardlogo/header.html +++ b/theme/standardlogo/header.html @@ -18,10 +18,23 @@ - +dirroot/logo.jpg")) { + $standardlogo = "$CFG->wwwroot/logo.jpg"; + } else if (file_exists("$CFG->dataroot/1/logo.jpg")) { + if (empty($CFG->slasharguments)) { + $standardlogo = "$CFG->wwwroot/file.php?file=/1/logo.jpg"; + } else { + $standardlogo = "$CFG->wwwroot/file.php/1/logo.jpg"; + } + } else { + $standardlogo = "$CFG->wwwroot/theme/$CFG->theme/logo.jpg"; + } +?> + +
+ border="0" src="">
wwwroot/theme/$CFG->theme/logo.jpg" ?>">
diff --git a/theme/standardlogo/logo.jpg b/theme/standardlogo/logo.jpg index d3eae131a8..78dfa9f520 100755 Binary files a/theme/standardlogo/logo.jpg and b/theme/standardlogo/logo.jpg differ