Revision: 1771
          http://mrbs.svn.sourceforge.net/mrbs/?rev=1771&view=rev
Author:   jberanek
Date:     2011-01-28 21:33:34 +0000 (Fri, 28 Jan 2011)

Log Message:
-----------
* Added the ability to specify a footer in the theme. Patch submitted
 by rudd_j in SF #3166889.
 

Modified Paths:
--------------
    mrbs/trunk/web/functions.inc

Added Paths:
-----------
    mrbs/trunk/web/Themes/default/footer.inc

Added: mrbs/trunk/web/Themes/default/footer.inc
===================================================================
--- mrbs/trunk/web/Themes/default/footer.inc                            (rev 0)
+++ mrbs/trunk/web/Themes/default/footer.inc    2011-01-28 21:33:34 UTC (rev 
1771)
@@ -0,0 +1,15 @@
+<?php // -*-mode: PHP; coding:utf-8;-*-
+// $Id$
+
+function print_theme_footer()
+{
+  // The &nbsp; fixes a display bug with a div having no content
+  // (only child tables)
+?>
+    &nbsp;
+  </body>
+</html>
+<?php
+
+}
+ 
\ No newline at end of file


Property changes on: mrbs/trunk/web/Themes/default/footer.inc
___________________________________________________________________
Added: svn:mime-type
   + text/x-php
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native

Modified: mrbs/trunk/web/functions.inc
===================================================================
--- mrbs/trunk/web/functions.inc        2011-01-28 21:15:11 UTC (rev 1770)
+++ mrbs/trunk/web/functions.inc        2011-01-28 21:33:34 UTC (rev 1771)
@@ -98,10 +98,18 @@
 // TRUE to exit afterwards
 function print_footer($and_exit)
 {
+  global $theme;
+  @include_once "Themes/$theme/footer.inc";
+  if (function_exists("print_theme_footer"))
+  {
+    print_theme_footer();
+  }
+  else {
 ?>
 </body>
 </html>
 <?php
+  }
   if ($and_exit)
   {
     exit(0);


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits

Reply via email to