Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit 2ca8a6c6724d3598d627db04b0a111faa4d97e0d 1 parent 25b7cdf
urs_hunkler authored
View
2  theme/cornflower/footer.html
@@ -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
9 theme/orangewhite/footer.html
@@ -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
10 theme/orangewhitepda/footer.html
@@ -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
4 theme/orangewhitepda/header.html
@@ -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">
Please sign in to comment.
Something went wrong with that request. Please try again.