[dev] giapeto application blocks

Ben Chavet ben at chavet.net
Thu Nov 18 21:12:28 PST 2004


The attached patch adds the application block titles to the generated 
html.

--Ben
-------------- next part --------------
Index: Page.php
===================================================================
RCS file: /repository/giapeto/lib/Page.php,v
retrieving revision 1.82
diff -u -r1.82 Page.php
--- Page.php	19 Oct 2004 19:02:21 -0000	1.82
+++ Page.php	19 Nov 2004 05:10:57 -0000
@@ -695,7 +695,9 @@
             return PEAR::raiseError(_("Block contents not available."));
         }
 
-        return $app->getContent();
+        $html = '<div class="header">' . $app->getTitle() . '</div>';
+        $html .= $app->getContent();
+        return $html;
     }
 
     function _toAttributes()


More information about the dev mailing list