Adding a logo to the home page footer

Adding a logo to the home page footer

by Peter Ruthven-Stuart -
Number of replies: 4
Picture of Plugin developers
How can I add a logo to the footer so it only appears on the home page?

My moodle site is here:
http://moodle.petesweb.org/

I used the 'standard white' theme as a template, and have changed the footer.html file to read as follows:

<!-- START OF FOOTER -->
<center>
<hr size="1" noshade="noshade" />
<p class="logininfo"><?php echo $loggedinas ?></p>
<p class="homelink"><?php echo $homelink ?></p>
<a href="http://www.fun.ac.jp/" target="_blank"><img src='<?php echo "$CFG->wwwroot/theme/$CFG->theme/FUN-logo.jpg" ?>' alt="FUN logo" height="56" width="250" border="0"></a>
</body>
</html>

With this code, my university logo appears at the bottom of every page. I only want it to appear at the bottom of the top page in the same was as the moodle logo. Any ideas? Your help will be much appreciated.

By the way, I'm not a programmer, but am willing to experiment; i.e. cut and paste.
Average of ratings: -
In reply to Peter Ruthven-Stuart

Re: Adding a logo to the footer

by Martin Dougiamas -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
Add this:

<?php  if ($course == 'home') {  ?>
          <img src="blah.jpg">
<?php  }  ?>
In reply to Martin Dougiamas

Re: Adding a logo to the footer

by Peter Ruthven-Stuart -
Picture of Plugin developers
Martin, thanks for that. However, now my logo does not even appear on the home page.

This is what the 'footer.html' now looks like:

<!-- START OF FOOTER -->
<center>
<hr size="1" noshade="noshade" />
<p class="logininfo"><?php echo $loggedinas ?></p>
<p class="homelink"><?php echo $homelink ?></p>
<?php if ($course == 'home') { ?>
<img src='" alt="FUN logo" height="56" width="250" border="0">
<?php } ?>
</body>
</html>

I have a feeling that I should be changing the word 'home' in
($course == 'home')
to something else? I've tried various alternatives, but with no luck. blush
In reply to Peter Ruthven-Stuart

Re: Adding a logo to the footer

by Martin Dougiamas -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
Sorry, my mistake (should have checked the code!)   Use this instead:

<?php  if (!empty($homepage)) {  ?>
          <img src="blah.jpg">
<?php  }  ?>