Hello,
When I see all the functions inside a file.template.php, I can't really understand how SMF executes it. I guess, this is kinda interpreted by the loadSubtemplates(), but I don't know how it sets the order of execution. For example, in ManageBans.template.php I see this functions: template_ban_edit(), template_ban_edit_trigger(). This functions actually defines all the HTML structure, but I don't understand how it makes the order each other. Can somebody explain me, please? Thanks.
The code in ManageBans, in each area, sets the value of $context['sub_template'] to the one that fits the current task at hand...