Hello peter,
indeed, I also was missing many important tags and added some more exceptions to the
strip_tags() function for my site.
Your second change (commenting out
nl2br($content)) might be a problem for a layout outside of tables — not sure, though, will have to test that.
About your third change: That might work fine for your purpose. However, a better way might be to adjust the parameters when calling this function — after all, the variables $stag and $etag in displayMenu($stags,$etags) stand for start tag and end tag.
The function is called twice (once for the top menu, once for the footer navi) from default.php (or whatever your theme's PHP file might be). A quick and dirty way could be something along the lines:
Change line
Code: Select all
displayMenu("<li><a ","</a></li>");
to
or
Code: Select all
displayMenu("<li><a ","</a></li> | ");
To have the top menu displayed like "Home | About | Contact | Map | ". As you see, it would result in a " | " paired with each menu element, though (as in the footer by default). It could be avoided with some more code, but it doesn't necessarily have to be a bad thing.
Anyway, I think that in order to be as free and flexible as possible for making themes for WonderCMS, the menu layouting should be ‚outsourced‘ to the theme specific PHP code. There will probably be a new development section in these forums, soon, where such things can be suggested and discussed in depth.
(I'm ready to fire away as soon as it's there, too...
)
Kind regards,
xss