NWGallery Smarty Plugin