From 6e7ef70f19a48d0f57594f62cf8c9a7d5d61d1b5 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sat, 10 Sep 2005 18:04:13 +0000 Subject: [PATCH] Adding header, footer, doctype, and headinclude templates to the system --- global.php | 10 ++++++++++ templates/default/blame.tpl | 13 ++++++++++++- templates/default/browse.tpl | 13 ++++++++++++- templates/default/diff.tpl | 13 ++++++++++++- templates/default/doctype.tpl | 2 ++ templates/default/footer.tpl | 0 templates/default/header.tpl | 0 templates/default/index.tpl | 13 ++++++++++++- templates/default/log.tpl | 13 ++++++++++++- templates/default/view.tpl | 13 ++++++++++++- 10 files changed, 84 insertions(+), 6 deletions(-) create mode 100644 templates/default/doctype.tpl create mode 100644 templates/default/footer.tpl create mode 100644 templates/default/header.tpl diff --git a/global.php b/global.php index 9760eea..4a6d198 100644 --- a/global.php +++ b/global.php @@ -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$ diff --git a/templates/default/blame.tpl b/templates/default/blame.tpl index 8b5e3e8..5fd1f40 100644 --- a/templates/default/blame.tpl +++ b/templates/default/blame.tpl @@ -1,3 +1,12 @@ +$doctype + + +$headinclude + Blame + + +$header + $navbar
@@ -15,4 +24,6 @@ $navbar $lines -
\ No newline at end of file + + +$footer \ No newline at end of file diff --git a/templates/default/browse.tpl b/templates/default/browse.tpl index 4550fe4..11c139d 100644 --- a/templates/default/browse.tpl +++ b/templates/default/browse.tpl @@ -1,3 +1,12 @@ +$doctype + + +$headinclude + Browse + + +$header + $navbar
@@ -15,4 +24,6 @@ $navbar \ No newline at end of file + + +$footer \ No newline at end of file diff --git a/templates/default/diff.tpl b/templates/default/diff.tpl index a51276d..5579fb8 100644 --- a/templates/default/diff.tpl +++ b/templates/default/diff.tpl @@ -1,3 +1,12 @@ +$doctype + + +$headinclude + Diff + + +$header + $navbar
@@ -40,4 +49,6 @@ $navbar //--> -$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 index 0000000..c642479 --- /dev/null +++ b/templates/default/doctype.tpl @@ -0,0 +1,2 @@ + \ No newline at end of file diff --git a/templates/default/footer.tpl b/templates/default/footer.tpl new file mode 100644 index 0000000..e69de29 diff --git a/templates/default/header.tpl b/templates/default/header.tpl new file mode 100644 index 0000000..e69de29 diff --git a/templates/default/index.tpl b/templates/default/index.tpl index f26253f..fd6d0a0 100644 --- a/templates/default/index.tpl +++ b/templates/default/index.tpl @@ -1,5 +1,16 @@ +$doctype + + +$headinclude + Index + + +$header + Repositories: \ No newline at end of file + + +$footer \ No newline at end of file diff --git a/templates/default/log.tpl b/templates/default/log.tpl index 07523cf..35276ca 100644 --- a/templates/default/log.tpl +++ b/templates/default/log.tpl @@ -1,7 +1,18 @@ +$doctype + + +$headinclude + Log + + +$header + $navbar
\ No newline at end of file + + +$footer \ No newline at end of file diff --git a/templates/default/view.tpl b/templates/default/view.tpl index 20be49b..d4de0b4 100644 --- a/templates/default/view.tpl +++ b/templates/default/view.tpl @@ -1,3 +1,12 @@ +$doctype + + +$headinclude + View + + +$header + $navbar
@@ -21,4 +30,6 @@ $navbar $catdata - \ No newline at end of file + + +$footer \ No newline at end of file -- 2.22.5