Define and use the footer template
authorRobert Sesek <rsesek@bluestatic.org>
Tue, 6 Jan 2009 06:57:26 +0000 (22:57 -0800)
committerRobert Sesek <rsesek@bluestatic.org>
Tue, 6 Jan 2009 06:57:26 +0000 (22:57 -0800)
* admin/global.php: Store the footer template in the globalVars
* admin/templates/footer.html: New file
* admin/templates/main.html: Add the footer

admin/global.php
admin/templates/footer.html [new file with mode: 0644]
admin/templates/main.html

index 83b1ecd17c92a00e88f099d3fce847cd2cb60cd4..05a95e645bf591e985d5cf1cf246ee6079c238a9 100755 (executable)
@@ -35,7 +35,8 @@ BSTemplate::$globalVars = array(
                'doctype'               => BSTemplate::fetch('doctype')->evaluate()->getTemplate(),
                'nav'                   => BSTemplate::fetch('nav')->evaluate()->getTemplate(),
                'headinclude'   => BSTemplate::fetch('headinclude')->evaluate()->getTemplate(),
-               'title'                 => T('Bugdar Administration')
+               'title'                 => T('Bugdar Administration'),
+               'footer'                => BSTemplate::fetch('footer')->evaluate()->getTemplate()
        )
 );
 
diff --git a/admin/templates/footer.html b/admin/templates/footer.html
new file mode 100644 (file)
index 0000000..4d0e56b
--- /dev/null
@@ -0,0 +1,4 @@
+
+<div id="footer"><a href="http://www.bluestatic.org">Bugdar <%- bugdar::$options['trackerversion'] %>, Copyright &copy;2004-<%- date('Y') %>, Blue Static.</a></div>
+
+<%- BSTemplate::get_debug_block() %>
index ce0416e001a692e75ffe3a692dfb3e33532a12d9..cd654a6c2a4464cc203aae4318dc42d0713a101b 100644 (file)
@@ -79,6 +79,8 @@
 
 </table>
 
+<%- $templates['footer'] %>
+
 </div>
 
 <script type="text/javascript"> nav_init() </script>