Update file-gallery.php

add replacement attachment template for media modals using `print_media_templates` hook.