Adding header, footer, doctype, and headinclude templates to the system
authorRobert Sesek <rsesek@bluestatic.org>
Sat, 10 Sep 2005 18:04:13 +0000 (18:04 +0000)
committerRobert Sesek <rsesek@bluestatic.org>
Sat, 10 Sep 2005 18:04:13 +0000 (18:04 +0000)
global.php
templates/default/blame.tpl
templates/default/browse.tpl
templates/default/diff.tpl
templates/default/doctype.tpl [new file with mode: 0644]
templates/default/footer.tpl [new file with mode: 0644]
templates/default/header.tpl [new file with mode: 0644]
templates/default/index.tpl
templates/default/log.tpl
templates/default/view.tpl

index 9760eea74aaf78171222e931c36b26ed3747b59d..4a6d198f2975a10bf7b4c6fbdd0183d439b827c8 100644 (file)
@@ -19,8 +19,18 @@ if (!defined('PATH_OVERRIDE') OR PATH_OVERRIDE != 1)
        $relpath = $viewsvn->paths->fetch_path($path);
 }
 
+$fetchtemplates[] = 'header';
+$fetchtemplates[] = 'footer';
+$fetchtemplates[] = 'doctype';
+$fetchtemplates[] = 'headinclude';
+
 $template->cache((array)$fetchtemplates);
 
+eval('$header = "' . $template->fetch('header') . '";');
+eval('$footer = "' . $template->fetch('footer') . '";');
+eval('$doctype = "' . $template->fetch('doctype') . '";');
+eval('$headinclude = "' . $template->fetch('headinclude') . '";');
+
 /*=====================================================================*\
 || ###################################################################
 || # $HeadURL$
index 8b5e3e861a32c0c36de8f218436c617710fa0908..5fd1f405e38d8aceb477893802429d66798e0ab7 100644 (file)
@@ -1,3 +1,12 @@
+$doctype
+<html lang="##LANG##" xml:lang="##XML-LANG##">
+<head>
+$headinclude
+       <title>Blame</title>
+</head>
+
+$header
+
 $navbar
 
 <br />
@@ -15,4 +24,6 @@ $navbar
 
 <table cellspacing="1" cellpadding="1" style="background-color: #EFEFEF; font: 11px monospace" width="100%">
 $lines
-</table>
\ No newline at end of file
+</table>
+
+$footer
\ No newline at end of file
index 4550fe453252b34d1682c2317ac7616c78e33fb6..11c139d97fa7730097ea2447beaa29173eaf5347 100644 (file)
@@ -1,3 +1,12 @@
+$doctype
+<html lang="##LANG##" xml:lang="##XML-LANG##">
+<head>
+$headinclude
+       <title>Browse</title>
+</head>
+
+$header
+
 $navbar
 
 <br />
@@ -15,4 +24,6 @@ $navbar
 
 <ul>
 $nodes
-</ul>
\ No newline at end of file
+</ul>
+
+$footer
\ No newline at end of file
index a51276d3ad689e08df84d7368cbdbc5cf0d44a11..5579fb889a2327de64e9fc2c1e46908ed652cb9e 100644 (file)
@@ -1,3 +1,12 @@
+$doctype
+<html lang="##LANG##" xml:lang="##XML-LANG##">
+<head>
+$headinclude
+       <title>Diff</title>
+</head>
+
+$header
+
 $navbar
 
 <br />
@@ -40,4 +49,6 @@ $navbar
 //-->
 </style>
 
-$changes
\ No newline at end of file
+$changes
+
+$footer
\ No newline at end of file
diff --git a/templates/default/doctype.tpl b/templates/default/doctype.tpl
new file mode 100644 (file)
index 0000000..c642479
--- /dev/null
@@ -0,0 +1,2 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
\ No newline at end of file
diff --git a/templates/default/footer.tpl b/templates/default/footer.tpl
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/templates/default/header.tpl b/templates/default/header.tpl
new file mode 100644 (file)
index 0000000..e69de29
index f26253f6fa7eebdceea5e4d3eab40464191aa2fc..fd6d0a0c72ce12d7a9dfb1136e245886802a32b6 100644 (file)
@@ -1,5 +1,16 @@
+$doctype
+<html lang="##LANG##" xml:lang="##XML-LANG##">
+<head>
+$headinclude
+       <title>Index</title>
+</head>
+
+$header
+
 Repositories:
 
 <ul>
 $nodes
-</ul>
\ No newline at end of file
+</ul>
+
+$footer
\ No newline at end of file
index 07523cf76ca4ab7bc0b6acb4c070adf1f6f7e129..35276caedd5af383ed57ebcb28a046064db4dd56 100644 (file)
@@ -1,7 +1,18 @@
+$doctype
+<html lang="##LANG##" xml:lang="##XML-LANG##">
+<head>
+$headinclude
+       <title>Log</title>
+</head>
+
+$header
+
 $navbar
 
 <br />
 
 <ul>
 $nodes
-</ul>
\ No newline at end of file
+</ul>
+
+$footer
\ No newline at end of file
index 20be49bc74f06cac731729479703803a415f7581..d4de0b43550278cc8f4b6adade0a6c76bb14cca8 100644 (file)
@@ -1,3 +1,12 @@
+$doctype
+<html lang="##LANG##" xml:lang="##XML-LANG##">
+<head>
+$headinclude
+       <title>View</title>
+</head>
+
+$header
+
 $navbar
 
 <br />
@@ -21,4 +30,6 @@ $navbar
 $catdata
                </td>
        </tr>
-</table>
\ No newline at end of file
+</table>
+
+$footer
\ No newline at end of file