From 76c0c7f3a1246319242e8fff7649c1450da0f98e Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Tue, 27 Oct 2009 13:46:24 -0700 Subject: Change our menu building blocks to use PHP templates so that themes can override them and define their own menu formats. I worry a little bit that this approach may be too heavy since we're now doing a lot more template includes than we were before. Also, I had to change the Menu API to stop using __toString() because you can't throw exceptions from __toString() which would make it an unhappy experience for developers. --- modules/gallery/views/menu.html.php | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 modules/gallery/views/menu.html.php (limited to 'modules/gallery/views/menu.html.php') diff --git a/modules/gallery/views/menu.html.php b/modules/gallery/views/menu.html.php new file mode 100644 index 00000000..0731c7b6 --- /dev/null +++ b/modules/gallery/views/menu.html.php @@ -0,0 +1,23 @@ + +is_root): ?> + + + + + +
  • + + label->for_html() ?> + + +
  • + + -- cgit v1.2.3