Adding a logo to the home page footer

Adding a logo to the home page footer

by Peter Ruthven-Stuart -
Number of replies: 4
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.
In reply to Peter Ruthven-Stuart

Re: Adding a logo to the footer

by Martin Dougiamas -
Core developers की तस्वीर Documentation writers की तस्वीर Moodle HQ की तस्वीर Particularly helpful Moodlers की तस्वीर Plugin developers की तस्वीर 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 -
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 -
Core developers की तस्वीर Documentation writers की तस्वीर Moodle HQ की तस्वीर Particularly helpful Moodlers की तस्वीर Plugin developers की तस्वीर Testers की तस्वीर
Sorry, my mistake (should have checked the code!)   Use this instead:

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