RedFoxy
12-10-2009, 11:43 AM
Hi all!
I want write a plugin (admincp ->Plugins & Products -> Add New Plugin) to manage some variables that I'll print it in template, my code will prepare the variables only for the templates that will be loaded in current page, like, if the template "ad_showthread_firstpost_start" will be loaded in current page, my code will prepare the variables for that template, if the template "pm_messagelistbit" will be loaded, my code will prepare the variables for "ad_navbar_below" and not for "ad_showthread_firstpost_start" etc...
But to do that, I need to know what template will be loaded in current page... There is an array or something with current templates names? (not whole templates, only the group that will be loaded in current page)
I want write a plugin (admincp ->Plugins & Products -> Add New Plugin) to manage some variables that I'll print it in template, my code will prepare the variables only for the templates that will be loaded in current page, like, if the template "ad_showthread_firstpost_start" will be loaded in current page, my code will prepare the variables for that template, if the template "pm_messagelistbit" will be loaded, my code will prepare the variables for "ad_navbar_below" and not for "ad_showthread_firstpost_start" etc...
But to do that, I need to know what template will be loaded in current page... There is an array or something with current templates names? (not whole templates, only the group that will be loaded in current page)