I've just installed Storez and decided to customise the layout a little by editing the templates (cos that's what templates are for), and came across an issue that I wonder if you would take into consideration for a future release.
Take the search menu for example.
The template used is search_menu.html. I edited this template and found I was not getting exactly the results I was expecting. On examining the code I see the search menu template is output by this function in includes/functions.php
The problem is that the function is calling OpenTable() and CloseTable() (which using reDesign3 puts a <div class="table"> wrapper around the output, and it also echo's a <br /> at the end.
I can only change / remove the table div and the line break by editing PHP code, which kinda defeats the point of templates.
This happens in other *_menu() functions as well.
Would you consider putting all output, whether it be a simple line break or anything else, in the templates? I've made the changes I want for now, but if I update the code I'll have to re-edit the PHP.
Please enter your server specs in your user profile! 😢
PhoenixOffline
Joined: Mar 18, 2004
Posts: 1543
Location: Netosphere
When it was setup, it wasn't envisaged that a theme would cause such issues, since OpenTable() et al used to be a standard way of doing things.
Indeed, I used to wrap everything in OpenTable() as it was a quick way to put content in nice looking boxes, but that was when we were all using tables for layout as well.
Nowadays I try to ensure the template does ALL the work as far as output is concerned, which means no "echo" statements anywhere in code.
If you would just remove the "echo <br />" and add the "<br />" into the template it'd look the same but allow us to adjust the layout completely via templates.
Please enter your server specs in your user profile! 😢