From ce2413d4ba78cacb8d5e098ed1421456bb811e53 Mon Sep 17 00:00:00 2001 From: David Aspinall Date: Thu, 28 Sep 2000 15:14:22 +0000 Subject: Moved to use .html instead of .phtml --- html/functions.php3 | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'html/functions.php3') diff --git a/html/functions.php3 b/html/functions.php3 index 28130564..1b9bfbe0 100644 --- a/html/functions.php3 +++ b/html/functions.php3 @@ -116,7 +116,7 @@ function date_modified($filename) { /* A link to one of the main pages (must appear in navbar menu) */ function link_root($page,$text) { - print ""; + print ""; print $text; print ""; } @@ -124,22 +124,22 @@ function link_root($page,$text) { function small_header($title) { print $dtd; print ""; - include('head.phtml'); - include('smallheader.phtml'); + include('head.html'); + include('smallheader.html'); print "

" . $title . "

\n\n\n"; } function small_header_body($title) { - include('smallheader.phtml'); + include('smallheader.html'); print "

" . $title . "

\n\n\n"; /* print "

"; FIXME: hack to get CSS to work with bad HTML from texi2html */ } /* FIXME: remove this function: maybe just set a global variable, - or use SCRIPT_NAME, and then include footer.phtml. */ + or use SCRIPT_NAME, and then include footer.html. */ function footer($filemodified=".") { - include('footer.phtml'); + include('footer.html'); date_modified($filemodified); print "\n"; // print "\n"; /* Naughty stuff for older browsers, shouldn't do if V4 */ @@ -148,7 +148,7 @@ function footer($filemodified=".") { } function click_to_go_back() { - print "

\nClick here to go back to the "; + print "

\nClick here to go back to the "; print $project_title; // FIXME: doesn't work. print " front page.

\n"; } @@ -161,7 +161,7 @@ function fileshow($filename,$text="",$title="") { $message=$title; if ( $message == "") { $message=$filename; }; $titlecode = ($title == "" ? "" : "&title=" . urlencode($title)); - hlink("fileshow.phtml?file=" . urlencode($filename) . $titlecode, + hlink("fileshow.html?file=" . urlencode($filename) . $titlecode, $text, $message); } @@ -173,7 +173,7 @@ function htmlshow($filename,$text="",$title="") { $message=$title; if ( $message == "") { $message=$filename; }; $urlbits = parse_url($filename); - hlink("htmlshow.phtml" + hlink("htmlshow.html" . "?title=" . urlencode($title) . "&file=" . urlencode($urlbits["path"]) . ($urlbits["fragment"]=="" ? "" : "#" . $urlbits["fragment"]), @@ -196,7 +196,7 @@ function markup_plain_text($filename) { } /* Hack an html file to be shown with our style sheet - and hack relative links to go via htmlshow.phtml. + and hack relative links to go via htmlshow.html. This isn't particularly robust, but seems to work for the output of texi2html. */ @@ -233,7 +233,7 @@ function hack_html($filename,$title="") { if ($urlbits["host"]=="") { /* Assume a relative link, let's hack it. */ /* Use same title */ - $newurl = "htmlshow.phtml?title=" . urlencode($title); + $newurl = "htmlshow.html?title=" . urlencode($title); if ($urlbits["path"]=="") { /* A fragment in same file */ $newurl = $newurl . "&file=" @@ -272,7 +272,7 @@ function smallpage($filename,$text="",$title="",$message="") { if ( $message == "") { $message=$title; }; if ( $message == "") { $message=$filename; }; $urlbits = parse_url($filename); - hlink("smallpage.phtml" + hlink("smallpage.html" . "?title=" . urlencode($title) . "&file=" . urlencode($urlbits["path"]) . ($urlbits["fragment"]=="" ? "" : "#" . $urlbits["fragment"]), -- cgit v1.2.3