Updated the plugin for smarty multidomain template usage