sure you can use an if clause in the vb
Content visible to verified customers only.
Much like THIS_SCRIPT we use a variable defined PP_SCRIPT which defines our script name. That should allow you to place something in the vb
footer that would only show in the gallery/