I’ve been trying build a theme for 2.2 Moodle site, that would be a mirror copy of an existing web site created in version 1.9.
At the moment I am stuck with re-creating the menu. In 2.2 building a custom menu is easy enough, but I have trouble finding a way to insert individual images into its buttons.
In Moodle 1.9 it was done with hard coding the image names:
<div class="navbar clearfix">
<div id="nav">
<ul>
<li><a href="<?php echo $CFG->wwwroot; ?>/index.php"><img src="<?php echo $CFG->wwwroot; ?>/theme/myCool/pix/icons/icon8.png"/> home</a></li>
<li><a href="<?php echo $CFG->wwwroot; ?>/mod/resource/view.php?id=25"><img src="<?php echo $CFG->wwwroot; ?>/theme/myCool/pix/icons/icon9.png"/> about</a></li>
<li><a href="<?php echo $CFG->wwwroot; ?>/mod/resource/view.php?id=49"><img src="<?php echo $CFG->wwwroot; ?>/theme/myCool/pix/icons/icon12.png"/> contact</a></li>
</ul>
</div>
Can somebody point me into a right direction how to tackle this problem, please? Is there a proper way of using individual images in buttons?