Note: You are currently viewing documentation for Moodle 2.0. Up-to-date documentation for the latest stable version is available here: Footer replacement.

Footer replacement: Difference between revisions

From MoodleDocs
No edit summary
No edit summary
Line 31: Line 31:


which places the "small" logo at the bottom and has a link to the web page as well.  The three astericks on either side of the address keep the image from showing up as an image here on this document.  Yippee!
which places the "small" logo at the bottom and has a link to the web page as well.  The three astericks on either side of the address keep the image from showing up as an image here on this document.  Yippee!
The text must be a little diiferent for 1.9.3.
Replace  -  echo $homelink;
with - echo '<a href="http:***//www.fundacionanisa.org/"><img src=http://www.fundacionanisa.org/moodle_anisa/file.php/1/anisa_logo_small.jpg>***</a>';
Remember to remove the stars.

Revision as of 21:15, 6 January 2009

Well, this is my first, so please bear with me.

This is to replace the Mooldle logo and web address with your own address at least. i still haven't gotten it to show up as a real link, but at least the text appears properly.

i'm using the StandardGreen theme.

Open the footer.html file.

Replace this line

<?php echo $home ?>

with your web address, like so...

<?php echo "www.fundacionanisa.org" ?>

Save the file and check it with your browser.

Perhaps someone more familiar with how this thing works could add the code so that the address shows up as a regular web link.

Well, after a Google and a visit to a How-To on basic HTML i see that this will give us an underlined web address

<a href="http://www.fundacionanisa.org/">Fundación Anisa, A.C.</a>

Now, if i can just figure out how to get my icon/image in this position and use it as a link, just like the Moodle icon was...

After some more experimentation, i got this to work...

<?php echo $loggedinas ?> <a href="http://www.fundacionanisa.org/"><img src=http:***//www.fundacionanisa.org/moodle_anisa/file.php/1/anisa_logo_small.jpg>***</a>

which places the "small" logo at the bottom and has a link to the web page as well. The three astericks on either side of the address keep the image from showing up as an image here on this document. Yippee!

The text must be a little diiferent for 1.9.3. Replace - echo $homelink; with - echo '<a href="http:***//www.fundacionanisa.org/"><img src=http://www.fundacionanisa.org/moodle_anisa/file.php/1/anisa_logo_small.jpg>***</a>'; Remember to remove the stars.