Bug #4315 - Use current_theme() instead of the $CFG-theme

This commit is contained in:
urs_hunkler 2006-04-23 19:02:17 +00:00
parent 25b7cdf308
commit 2ca8a6c672
4 changed files with 8 additions and 17 deletions

View File

@ -10,7 +10,7 @@
?>
<?php echo $loggedinas ?>
<p align="center"><a href="http://moodle.org" target="_blank"><img src="<?php echo "$CFG->wwwroot/theme/$CFG->theme/images/moodlelogo.gif" ?>" border="0"></a></p>
<p align="center"><a href="http://moodle.org" target="_blank"><img src="<?php echo $CFG->wwwroot.'/theme/'.current_theme() ?>/images/moodlelogo.gif" border="0" /></a></p>
</div>
</div>

View File

@ -1,7 +1,7 @@
</div> <!-- end div containerContent -->
<!-- START OF FOOTER -->
<?php global $CFG, $course; ?>
<div id="footer">
<?php
echo '<p class="helplink">';
@ -11,12 +11,7 @@
<?php echo $loggedinas ?>
<?php echo $homelink ?>
<!-- <p><div class="homelink"><a target="<?php echo $CFG->framename ?>" href="<?php $CFG->wwwroot ?>/course/view.php?id=<?php $course->id ?>"> <?php $course->shortname ?> </a></div></p> -->
<p>
<!-- <<a href="http://validator.w3.org/check?verbose=1&amp;ss=1&amp;uri=<?php echo urlencode(qualified_me()) ?>"><img src="<?php echo "$CFG->wwwroot/theme/$CFG->theme" ?>/xhtml_1_0.gif" alt="XHTML Validator" /></a>
<a href="http://jigsaw.w3.org/css-validator/validator?uri=<?php echo urlencode(qualified_me()) ?>&amp;warning=1&amp;profile=css2&amp;usermedium=all"><img src="<?php echo "$CFG->wwwroot/theme/$CFG->theme" ?>/css.gif" alt="CSS Validator" /></a>
<a href="http://www.contentquality.com/mynewtester/cynthia.exe?rptmode=-1&amp;url1=<?php echo urlencode(qualified_me()) ?>"><img src="<?php echo "$CFG->wwwroot/theme/$CFG->theme" ?>/section_508.gif" alt="Section 508 Validator" /></a> -->
</p>
</div>
</div>
</body>

View File

@ -1,21 +1,17 @@
</div> <!-- end div containerContent -->
<!-- START OF FOOTER -->
<?php global $CFG, $course; ?>
<div id="footer">
<?php
echo '<p class="helplink">';
echo page_doc_link(get_string('moodledocslink'));
echo '</p>';
?>
<?php echo $loggedinas ?>
<?php echo $homelink ?>
<!-- <p><div class="homelink"><a target="<?php echo $CFG->framename ?>" href="<?php $CFG->wwwroot ?>/course/view.php?id=<?php $course->id ?>"> <?php $course->shortname ?> </a></div></p> -->
<p>
<!-- <<a href="http://validator.w3.org/check?verbose=1&amp;ss=1&amp;uri=<?php echo urlencode(qualified_me()) ?>"><img src="<?php echo "$CFG->wwwroot/theme/$CFG->theme" ?>/xhtml_1_0.gif" alt="XHTML Validator" /></a>
<a href="http://jigsaw.w3.org/css-validator/validator?uri=<?php echo urlencode(qualified_me()) ?>&amp;warning=1&amp;profile=css2&amp;usermedium=all"><img src="<?php echo "$CFG->wwwroot/theme/$CFG->theme" ?>/css.gif" alt="CSS Validator" /></a>
<a href="http://www.contentquality.com/mynewtester/cynthia.exe?rptmode=-1&amp;url1=<?php echo urlencode(qualified_me()) ?>"><img src="<?php echo "$CFG->wwwroot/theme/$CFG->theme" ?>/section_508.gif" alt="Section 508 Validator" /></a> -->
</p>
</div>
</div>
</body>

View File

@ -13,7 +13,7 @@
if ($focus) {
echo " onload=\"setfocus()\"";
};
?>
?>>
<div id="page">
@ -41,4 +41,4 @@
</div>
<?php } ?>
<!-- END OF HEADER -->
<div id="content">
<div id="content">