Minor touch-ups to the front page HTML

This commit is contained in:
moodler 2003-05-15 14:02:13 +00:00
parent e48feed988
commit c6a0f9d5bf
3 changed files with 8 additions and 8 deletions

View file

@ -31,7 +31,7 @@
}
print_header("$site->fullname", "$site->fullname", "home", "",
"<META NAME=\"Description\" CONTENT=\"".stripslashes(strip_tags($site->summary))."\">",
"<meta name=\"description\" content=\"".stripslashes(strip_tags($site->summary))."\">",
true, "", "<div align=right>$loginstring$langmenu</div>");
$firstcolumn = false; // for now

View file

@ -1,5 +1,5 @@
<SCRIPT LANGUAGE="JavaScript">
<script language="JavaScript">
<!-- //hide
function popUpProperties(inobj) {
@ -16,7 +16,7 @@ function fillmessagebox(text) {
}
function openpopup(url,name,height,width) {
fullurl = "<?=$CFG->wwwroot ?>" + url;
fullurl = "<?php echo $CFG->wwwroot ?>" + url;
options = "menubar=0,location=0,scrollbars,resizable,width="+width+",height="+height;
windowobj = window.open(fullurl,name, options);
windowobj.focus();
@ -35,7 +35,7 @@ function checkall() {
}
function inserttext(text) {
<?PHP
<?php
if (!empty($SESSION->inserttextform)) {
$insertfield = "opener.document.forms['$SESSION->inserttextform'].$SESSION->inserttextfield";
} else {
@ -52,8 +52,8 @@ function inserttext(text) {
?>
}
<?PHP if ($focus) { echo "function setfocus() { document.$focus.focus() }\n"; } ?>
<?php if ($focus) { echo "function setfocus() { document.$focus.focus() }\n"; } ?>
// done hiding -->
</SCRIPT>
</script>

View file

@ -665,9 +665,9 @@ function print_header ($title="", $heading="", $navigation="", $focus="", $meta=
if (!$menu and $navigation) {
if (isset($USER->id)) {
$menu = "<font size=2><a target=_parent href=\"$CFG->wwwroot/login/logout.php\">".get_string("logout")."</a></font>";
$menu = "<font size=2><a target=\"$CFG->framename\" href=\"$CFG->wwwroot/login/logout.php\">".get_string("logout")."</a></font>";
} else {
$menu = "<font size=2><a target=_parent href=\"$CFG->wwwroot/login/index.php\">".get_string("login")."</a></font>";
$menu = "<font size=2><a target=\"$CFG->framename\" href=\"$CFG->wwwroot/login/index.php\">".get_string("login")."</a></font>";
}
}