For this particular project, the original template should show if the user is registered, and a completely different table if they are a guest.
SO, I still added a new custom template and did the complete template swap. Why? The user should still have the ability to customize my table, as with any other template.
However, in the <else /> clause, instead of a copy of some original version of the template, I have $GLOBALS[$orig_template]. My plugin, prior to swapping templates, evaluates $orig_template to the users current version.
Best of both words: I don't stomp all over their template changes, but I give them another template to edit to modify my plugin's appearance.
Thanks for your help.
|