Better plugin support on Theme and SmartyAdapter